feat(gameplay): Adding a military power section to exploit population numbers and steal ennemy tiles
This commit is contained in:
130
public/style.css
130
public/style.css
@@ -941,6 +941,136 @@ button:hover {
|
||||
color: rgba(255, 220, 100, 0.9);
|
||||
}
|
||||
|
||||
/* ── Military power section ───────────────────────────────────────────────── */
|
||||
|
||||
.milPowerTotals {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0;
|
||||
padding: 8px 12px 4px;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 12px;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 4px;
|
||||
}
|
||||
|
||||
.milPowerTeam {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.milPowerTeam--blue { justify-content: flex-end; }
|
||||
.milPowerTeam--red { justify-content: flex-start; }
|
||||
|
||||
.milPowerTeam--blue .milPowerLabel { color: rgba(90, 200, 255, 0.75); font-size: 10px; }
|
||||
.milPowerTeam--blue .milPowerVal { color: rgba(90, 200, 255, 1); font-weight: 800; font-size: 13px; }
|
||||
.milPowerTeam--red .milPowerLabel { color: rgba(220, 75, 85, 0.75); font-size: 10px; }
|
||||
.milPowerTeam--red .milPowerVal { color: rgba(220, 75, 85, 1); font-weight: 800; font-size: 13px; }
|
||||
|
||||
.milPowerUnit {
|
||||
font-size: 10px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.milPowerSep {
|
||||
opacity: 0.3;
|
||||
flex: 0 0 auto;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
/* ── Military attack modal ────────────────────────────────────────────────── */
|
||||
|
||||
.attackOverlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 20;
|
||||
background: rgba(5, 8, 18, 0.72);
|
||||
backdrop-filter: blur(6px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.attackOverlay.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.attackModal {
|
||||
width: 340px;
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
background: rgba(15, 22, 42, 0.97);
|
||||
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
|
||||
padding: 28px 28px 24px;
|
||||
text-align: center;
|
||||
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
.attackModal__icon {
|
||||
font-size: 36px;
|
||||
line-height: 1;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.attackModal__title {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
color: #e9eef6;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.attackModal__body {
|
||||
font-size: 13px;
|
||||
color: rgba(233, 238, 246, 0.8);
|
||||
line-height: 1.6;
|
||||
white-space: pre-line;
|
||||
margin-bottom: 22px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 12px 14px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.attackModal__actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.attackModal__btn {
|
||||
flex: 1;
|
||||
padding: 9px 0;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: filter 0.15s;
|
||||
}
|
||||
|
||||
.attackModal__btn--cancel {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: rgba(233, 238, 246, 0.75);
|
||||
}
|
||||
|
||||
.attackModal__btn--cancel:hover {
|
||||
filter: brightness(1.3);
|
||||
}
|
||||
|
||||
.attackModal__btn--confirm {
|
||||
background: rgba(220, 75, 85, 0.85);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.attackModal__btn--confirm:hover {
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
||||
/* ── Galaxy: square, fills viewport height, 1:1 ratio ────────────────────── */
|
||||
|
||||
.galaxyMain {
|
||||
|
||||
Reference in New Issue
Block a user