:root {
  --bg: #070b14; --card: #0d1424; --line: #1c2333; --text: #f4f7fb; --dim: #8a94a8;
  --green: #3ee6a0; --red: #ff3b3b; --amber: #ffb020; --safe: #ffd23f;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: radial-gradient(120% 60% at 50% 0%, #10203a 0%, var(--bg) 60%) fixed, var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; min-height: 100vh; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 14px 16px 60px; }

.top { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.top img { width: 44px; height: 44px; border-radius: 50%; }
.brand { font-family: Anton, sans-serif; font-size: 22px; letter-spacing: .5px; line-height: 1; flex: 1; }
.brand span { color: var(--green); }
.nav { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.nav a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 9px; color: var(--dim); }
.nav a.on { background: #ffffff14; color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font-family: Anton, sans-serif; font-weight: 400; font-size: 28px; }
.stat small { color: var(--dim); font-weight: 700; font-size: 10px; letter-spacing: 1.5px; }

.day { border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.day.join { background: #3ee6a014; border-color: #3ee6a055; }
.day.out { background: #ff3b3b14; border-color: #ff3b3b55; }
.day h2 { font-family: Anton, sans-serif; font-weight: 400; font-size: 22px; }
.day p { color: var(--dim); font-size: 14px; line-height: 1.4; flex-basis: 100%; }
.clock { font-family: Anton, sans-serif; font-size: 20px; margin-left: auto; }

.mapcard { position: relative; background: #0a1120; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.mapcard svg { display: block; width: 100%; height: min(62vh, 560px); cursor: grab; }
.mapcard svg.drag { cursor: grabbing; }
.mapcard path.c { stroke: #070b14; stroke-width: .5; vector-effect: non-scaling-stroke; transition: filter .15s; }
.mapcard path.c.hl { stroke: #fff; stroke-width: 1.6; filter: brightness(1.25); }
.zoombtns { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.zoombtns button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #0d1424e6; color: var(--text); font-size: 20px; font-weight: 800; cursor: pointer; }
.tip { position: fixed; pointer-events: none; z-index: 20; background: #0d1424f2; border: 1px solid #ffffff22; border-radius: 12px; padding: 10px 12px; min-width: 170px; box-shadow: 0 10px 30px #000a; display: none; }
.tip .t1 { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.tip .t2 { color: var(--dim); font-size: 13px; margin-top: 4px; }
.tip .cmd { color: var(--amber); font-size: 12px; font-weight: 800; margin-top: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 2px 14px; font-size: 13px; color: var(--dim); font-weight: 700; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.yt { background: #ff0033; } .ig { background: linear-gradient(45deg, #f9a825, #e1306c, #833ab4); }
.share { grid-column: 1 / -1; background: var(--green); color: #04130c; }
.search { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; font-family: inherit; margin: 4px 0 12px; }
.label { color: var(--dim); font-weight: 800; font-size: 12px; letter-spacing: 3px; margin: 18px 0 10px; }

.row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; width: 100%; text-align: left; color: inherit; font-family: inherit; }
.row.safe { border-color: #ffd23f77; }
.row.danger { border-color: #ff3b3b66; }
.rank { font-family: Anton, sans-serif; color: var(--dim); width: 34px; font-size: 20px; text-align: right; }
.flag { width: 40px; height: 30px; border-radius: 5px; object-fit: cover; box-shadow: 0 2px 8px #0008; flex: none; }
.mid { flex: 1; min-width: 0; }
.name { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdline { color: var(--amber); font-size: 12px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 3px; background: #ffffff12; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.row.safe .bar i { background: var(--safe); }
.row.danger .bar i { background: var(--red); }
.count { font-family: Anton, sans-serif; font-size: 24px; color: var(--green); min-width: 44px; text-align: right; }
.row.safe .count { color: var(--safe); }
.row.danger .count { color: var(--red); }
.zero { color: var(--dim); font-size: 14px; line-height: 1.5; background: var(--card); border: 1px dashed #ff3b3b55; border-radius: 14px; padding: 12px 14px; }
.zero b { color: var(--red); }
.dead { display: flex; flex-wrap: wrap; gap: 8px; }
.dead span { display: flex; align-items: center; gap: 6px; background: #2a1316; border-radius: 8px; padding: 4px 10px; font-size: 13px; color: #c98a8f; text-decoration: line-through; }
.dead img { width: 20px; height: 15px; border-radius: 3px; filter: grayscale(1); }
.more { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--dim); }

.sheet { position: fixed; inset: 0; z-index: 30; display: none; align-items: flex-end; justify-content: center; background: #000a; }
.sheet.open { display: flex; }
.panel { width: 100%; max-width: 560px; max-height: 80vh; overflow: auto; background: var(--card); border: 1px solid #ffffff1f; border-radius: 22px 22px 0 0; padding: 18px 18px 28px; }
@media (min-width: 700px) { .sheet { align-items: center; } .panel { border-radius: 22px; } }
.panel .head { display: flex; align-items: center; gap: 12px; }
.panel .head img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; }
.panel h3 { font-family: Anton, sans-serif; font-weight: 400; font-size: 30px; flex: 1; line-height: 1.05; }
.panel .x { background: #ffffff14; border: 0; color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.panel .status { margin-top: 10px; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 8px; display: inline-block; }
.panel .big { display: flex; gap: 10px; margin: 14px 0; }
.panel .big div { flex: 1; background: #ffffff0a; border-radius: 12px; padding: 10px; text-align: center; }
.panel .big b { font-family: Anton, sans-serif; font-size: 28px; display: block; font-weight: 400; }
.panel .big small { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; }
.who span { background: #ffffff12; border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 700; }
.who span.c { background: #ffb02026; color: var(--amber); }
.hint { color: var(--dim); font-size: 13px; margin-top: 14px; line-height: 1.5; }

footer { color: var(--dim); font-size: 12px; text-align: center; margin-top: 28px; line-height: 1.6; }

/* Call-to-action buttons */
.actions { grid-template-columns: 1fr 1fr; gap: 12px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: #fff; border: 1px solid #ffffff1f; cursor: pointer; font-family: inherit; text-align: left; transition: transform .15s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); }
.cta .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px #0006; }
.cta .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.1; }
.cta small { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.cta b { font-family: Anton, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta .go { font-size: 30px; font-weight: 800; opacity: .8; transition: transform .2s; }
.cta:hover .go { transform: translateX(3px); }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, #ffffff40, transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
.cta-yt { background: linear-gradient(135deg, #ff1f4b 0%, #c4001f 100%); box-shadow: 0 8px 26px #ff003355; }
.cta-ig { background: linear-gradient(120deg, #f9a825 0%, #e1306c 45%, #833ab4 100%); box-shadow: 0 8px 26px #e1306c55; }
.cta-ig::after { animation-delay: 1.5s; }
.cta-share { grid-column: 1 / -1; background: linear-gradient(135deg, #5cf2b4 0%, #22c98a 100%); color: #04130c; box-shadow: 0 8px 30px #3ee6a066; animation: breathe 2.6s ease-in-out infinite; }
.cta-share .ico { background: #ffffffcc; }
.cta-share::after { animation-delay: 3s; }
.cta-share b { font-size: 24px; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 8px 30px #3ee6a055; } 50% { box-shadow: 0 8px 44px #3ee6a0aa, 0 0 0 4px #3ee6a022; } }
@media (max-width: 420px) { .cta { padding: 10px 11px; gap: 9px; } .cta .ico { width: 38px; height: 38px; border-radius: 11px; } .cta b { font-size: 19px; } .cta small { font-size: 10px; } .cta .go { display: none; } }

/* News: just eliminated + fastest growing */
#news { display: grid; gap: 10px; margin-bottom: 12px; }
#news:empty { display: none; }
.justout { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, #ff3b3b33, #ff3b3b0d); border: 1px solid #ff3b3b77; cursor: pointer; }
.justout .fl { position: relative; flex: none; }
.justout .fl img { width: 58px; height: 43px; border-radius: 6px; object-fit: cover; filter: grayscale(1) brightness(.8); display: block; }
.justout .fl svg { position: absolute; left: -6px; top: -6px; animation: stamp 2.4s ease-in-out infinite; }
.justout small { color: #ff8a8a; font-weight: 800; font-size: 11px; letter-spacing: 2px; }
.justout b { display: block; font-family: Anton, sans-serif; font-weight: 400; font-size: 26px; line-height: 1.05; }
.justout span.n { color: var(--dim); font-size: 13px; font-weight: 700; }
@keyframes stamp { 0% { transform: scale(1.8); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.growing { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(90deg, #ffb02026, #ffb0200a); border: 1px solid #ffb02066; cursor: pointer; }
.growing img { width: 44px; height: 33px; border-radius: 5px; object-fit: cover; }
.growing small { color: var(--amber); font-weight: 800; font-size: 11px; letter-spacing: 2px; }
.growing b { display: block; font-weight: 800; font-size: 17px; }
.growing .plus { margin-left: auto; font-family: Anton, sans-serif; font-size: 26px; color: var(--amber); }
.fire { display: inline-block; animation: flick 1.2s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
.chip { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; color: var(--amber); background: #ffb0201f; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.mapcard path.c.justgone { animation: gone 1.6s ease-in-out infinite; }
@keyframes gone { 0%, 100% { fill: #ff3b3b; } 50% { fill: #ffd0d0; } }

/* How to add soldiers */
.howto { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed #ffb02088; background: #ffb0200f; color: var(--text); cursor: pointer; font-family: inherit; text-align: left; transition: transform .15s; }
.howto:hover { transform: translateY(-2px); }
.howto .q { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #1a1000; font-family: Anton, sans-serif; font-size: 24px; display: grid; place-items: center; }
.howto b { display: block; font-size: 16px; }
.howto small { color: var(--dim); font-size: 12px; font-weight: 700; }
.howto .go { margin-left: auto; font-size: 28px; color: var(--amber); }
.steps { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #04130c; font-family: Anton, sans-serif; font-size: 20px; display: grid; place-items: center; }
.steps b { display: block; font-size: 16px; }
.steps p { color: var(--dim); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.examples span { background: #ffffff12; border-radius: 8px; padding: 3px 9px; font-size: 14px; font-weight: 700; color: var(--text); }
.rules { background: #ffffff08; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.rules h4 { font-size: 12px; letter-spacing: 2px; color: var(--dim); margin-bottom: 8px; }
.rules li { color: var(--text); font-size: 14px; line-height: 1.45; margin: 0 0 6px 18px; }
.panel .btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.panel .btnrow .cta { padding: 10px 12px; }
.panel .btnrow .cta b { font-size: 17px; }
.panel .btnrow .cta .ico { width: 36px; height: 36px; border-radius: 10px; }
.recruit { width: 100%; margin-top: 14px; justify-content: center; }
.examples img.ex { width: 20px; height: 15px; border-radius: 3px; vertical-align: -2px; object-fit: cover; }
.steps .n.plus { font-family: Inter, sans-serif; font-weight: 800; font-size: 22px; background: var(--amber); }
