:root { --bg: #121418; --panel: rgba(18, 20, 26, .94); --btn: #2b3140; --btnh: #39425a; --off: #1d1f26;
  --line: #4a5268; --txt: #e8e8ea; --dim: #8a8d96; --gold: #ffd25a; --panelH: 196px; --mmW: 266px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt);
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#view, #view canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#floats { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#floats div { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 700; font-size: 13px;
  text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#selbox { position: fixed; border: 1px solid #6f6; background: rgba(90, 255, 90, .14); pointer-events: none; display: none; }
#wallcount { position: fixed; pointer-events: none; color: #ffffb0; font-weight: 600; text-shadow: 0 1px 2px #000; display: none; }
.hidden { display: none !important; }

/* barra superior */
#top { position: fixed; left: 0; right: 0; top: 0; height: 30px; padding: 0 8px; padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 10px; background: var(--panel); border-bottom: 1px solid #000; z-index: 5; }
#res { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#res b { font-weight: 600; margin-right: 3px; }
#res .it { margin-right: 12px; }
#facs { display: flex; gap: 4px; }
#facs i { width: 12px; height: 12px; border-radius: 2px; display: block; border: 1px solid #0008; }
#facs i.me { width: 15px; height: 15px; outline: 1px solid #fff; }
#topbtns { display: flex; gap: 4px; }
#topbtns button { background: var(--btn); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; height: 24px; }
#topbtns button:hover { background: var(--btnh); }
#msgs { position: fixed; left: 10px; top: 36px; pointer-events: none; z-index: 4; max-width: 62vw;
  text-shadow: 0 1px 2px #000, 0 0 4px #000; font-size: 13px; }
#msgs div { margin-bottom: 2px; }

/* painel inferior */
#panel { position: fixed; left: 0; right: 0; bottom: 0; height: var(--panelH); background: var(--panel);
  border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 6px 8px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
#btns { display: grid; grid-template-columns: repeat(9, 86px); grid-auto-rows: 42px; gap: 4px; align-content: start; }
.cb { position: relative; background: var(--btn); border: 1px solid var(--line); border-radius: 5px; text-align: left;
  padding: 2px 5px; overflow: hidden; line-height: 1.15; font-size: 12px; }
.cb:hover { background: var(--btnh); }
.cb .k { color: var(--gold); font-weight: 700; margin-right: 3px; font-size: 11px; }
.cb small { display: block; color: #cfcf9f; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cb.off { background: var(--off); color: #7d7f86; }
.cb.off small, .cb.off .k { color: #6f6a58; }
.cb.act { border-color: var(--gold); background: #5a4f1c; color: #fff; }
.cb:active { transform: translateY(1px); }
#info { flex: 1; min-width: 0; background: #20232c; border: 1px solid #3a4052; border-radius: 5px; padding: 6px 9px; overflow: auto; font-size: 12.5px; }
#info .w { color: #fff; font-weight: 700; } #info .y, .y { color: #ffe16a; } #info .r, .r { color: #ff6b6b; }
#info .a, .a { color: #8fd8ff; } #info .v, .v { color: #c890ff; } #info .g, .g { color: #8b8e98; } .l { color: #8cff8c; }
#mmwrap { position: relative; width: var(--mmW); flex: none; }
#minimap { width: 100%; height: 100%; display: block; border: 1px solid var(--line); border-radius: 4px; background: #000; touch-action: none; }
#mmzoom { position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; pointer-events: none; }
#mmz { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; gap: 3px; }
#mmz button { width: 24px; height: 22px; padding: 0; background: rgba(30, 34, 44, .8); border: 1px solid var(--line); border-radius: 3px; line-height: 1; }

/* ferramentas de toque */
#tools { position: fixed; right: 8px; bottom: calc(var(--panelH) + 8px); display: none; flex-direction: column; gap: 6px; z-index: 6; }
#tools button { width: 52px; height: 46px; border-radius: 10px; background: rgba(28, 32, 42, .86); border: 1px solid var(--line);
  font-size: 18px; line-height: 1; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#tools button small { font-size: 9.5px; margin-top: 2px; color: #cfd2da; }
#tools button.on { background: #6a5a12; border-color: var(--gold); }

/* janelas */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 12px; }
.modal .box { position: relative; background: #0d1018f2; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px;
  max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; touch-action: pan-y; user-select: text; }
.modal .box.small { max-width: 320px; text-align: center; }
.modal h2 { margin: 0 0 8px; font-size: 20px; } .modal h3 { margin: 10px 0 4px; font-size: 15px; color: #9fd0ff; }
.modal ul { margin: 0; padding-left: 18px; } .modal li { margin: 2px 0; }
.modal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal .tip { color: #ffe9a0; }
.modal .close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 20px; color: #ccc; }
.rep { border-top: 1px solid #2c3242; padding: 8px 0; }
button.big { display: block; width: 100%; margin: 8px 0; padding: 11px; font-size: 16px; background: #2a3346; border: 1px solid #56617d; border-radius: 7px; }
button.big:hover { background: #3a4660; }
button.big:disabled { opacity: .6; cursor: default; }
#banner { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
#banner h1 { font-size: 64px; margin: 0; text-shadow: 0 3px 8px #000; }
#banner p { font-size: 18px; white-space: pre-line; text-shadow: 0 1px 3px #000; }
#bannerBtns { display: none; gap: 10px; pointer-events: auto; } #bannerBtns .big { width: 180px; }
#banner.over #bannerBtns { display: flex; }

button.link { background: none; border: 0; color: #8fc3ff; text-decoration: underline; font-size: 14px; }
#err { position: fixed; left: 10px; right: 10px; top: 40px; background: #400; color: #fff; padding: 10px; z-index: 50; white-space: pre-wrap; font: 12px monospace; }

/* ======================= celular / telas pequenas ======================= */
body.mobile { --panelH: 118px; --mmW: 150px; font-size: 12px; }
body.mobile #top { height: 28px; gap: 6px; padding: 0 6px; }
body.mobile #res { font-size: 11.5px; }
body.mobile #res .it { margin-right: 7px; }
body.mobile #facs i { width: 9px; height: 9px; } body.mobile #facs i.me { width: 11px; height: 11px; }
body.mobile #topbtns button { padding: 1px 7px; height: 24px; }
body.mobile #msgs { font-size: 11.5px; top: 32px; max-width: calc(100vw - 180px); }
body.mobile #tools { display: flex; }
body.mobile #panel { flex-direction: row; padding: 5px 6px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); gap: 6px; }
body.mobile #btns { flex: 1; min-width: 0; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, 50px);
  grid-auto-columns: 82px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; scrollbar-width: thin; padding-bottom: 2px; }
body.mobile .cb { font-size: 11.5px; padding: 3px 4px; }
body.mobile #info { position: fixed; left: 6px; bottom: calc(var(--panelH) + 6px); width: min(360px, calc(100vw - 80px));
  max-height: 24vh; font-size: 11.5px; background: rgba(20, 23, 30, .88); z-index: 5; padding: 5px 7px; touch-action: pan-y; }
body.mobile #mmwrap { position: fixed; right: 6px; top: 34px; width: var(--mmW); height: calc(var(--mmW) / 1.4); z-index: 5; }
body.mobile #tools { bottom: calc(var(--panelH) + 6px); right: 6px; }
body.mobile.nopanel #panel { height: auto; padding: 0; border: 0; background: none; }
body.mobile.nopanel #btns { display: none; }
body.mobile.nopanel { --panelH: 0px; }
body.mobile.noinfo #info { display: none; }
body.mobile #banner h1 { font-size: 40px; }
body.mobile .modal .cols { grid-template-columns: 1fr; }
@media (max-height: 420px) {
  body.mobile { --panelH: 112px; }
  body.mobile #btns { grid-template-rows: repeat(2, 47px); }
  body.mobile #tools button { height: 38px; width: 48px; font-size: 15px; }
  body.mobile #tools { gap: 4px; flex-direction: row; }
  body.mobile #info { width: min(360px, calc(100vw - 380px)); }
  body.mobile #info { max-height: 30vh; }
}
@media (orientation: portrait) {
  body.mobile { --panelH: 166px; }
  body.mobile #btns { grid-template-rows: repeat(3, 50px); }
}

/* barra de ações rápidas da seleção */
#ctx { position: fixed; top: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 6; flex-wrap: wrap; justify-content: center; max-width: 70vw; }
#ctx button { background: rgba(32, 38, 52, .92); border: 1px solid #6a7594; border-radius: 8px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
#ctx button:hover { background: #3a4660; }
#ctx button.warn { background: #7a1f1f; border-color: #ff7070; animation: pulse .6s infinite alternate; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.35); } }
body.mobile #ctx { top: 32px; max-width: calc(100vw - 180px); left: calc(50% - 80px); }
body.mobile #ctx button { padding: 8px 9px; font-size: 12px; }
body.hasctx #msgs { top: 80px; }
body.mobile.hasctx #msgs { top: 78px; }

/* multijogador */
#bOnline { background: #23463a; border-color: #4fae86; }
.mpbox label { display: block; text-align: left; margin: 6px 0; }
.mpbox input { width: 100%; padding: 10px; font-size: 16px; border-radius: 7px; border: 1px solid #56617d; background: #141822; color: #fff; margin-top: 4px; user-select: text; }
.mpbox .row { display: flex; gap: 8px; align-items: center; }
.mpbox .row input { text-transform: uppercase; letter-spacing: 4px; text-align: center; font-weight: 700; margin: 0; }
.mpbox .row .big { width: auto; padding: 10px 16px; margin: 0; }
.mpbox .orline { color: #8a8f9c; margin: 10px 0 6px; font-size: 13px; }
#mpCodeShow { font-size: 44px; font-weight: 800; letter-spacing: 8px; color: #8fd8ff; user-select: text; }
#mpPlayers { list-style: none; padding: 0; margin: 6px 0; text-align: left; }
#mpPlayers li { padding: 5px 8px; border-bottom: 1px solid #262c3a; display: flex; align-items: center; gap: 8px; }
#mpPlayers li i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
#mpPlayers small { color: #8a8f9c; }
#mpStatus { color: #ffcf8a; min-height: 1em; }
body.online #bSpeed, body.online #bPause { display: none; }
#mpLink { font-size: 13px !important; text-align: center; color: #9fd0ff !important; }
.mpbox .row.inv { flex-wrap: wrap; margin-top: 6px; } .mpbox .row.inv .big { flex: 1; font-size: 14px; padding: 9px 8px; }
#mpWhats { background: #1d5c3a; border-color: #3fb26f; }
#ctx button.on { background: #1f5a3c; border-color: #4fd08a; }
#bInvite { display: none; background: #23463a !important; border-color: #4fae86 !important; }
body.online.host #bInvite { display: inline-block; }
.spinner { width: 34px; height: 34px; margin: 10px auto; border: 4px solid #2c3446; border-top-color: #8fd8ff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.mobile #bInvite { padding: 1px 6px; }
#modeSel { margin-bottom: 0; }
#mpCreateDuo { background: #3a2a52; border-color: #8a6fd0; }
#mpCreateDuel { background: #52302a; border-color: #d0806f; }

/* contas */
#acctBar { position: absolute; top: 12px; right: 12px; }
#acctBar button { background: #1d2433; border: 1px solid #4a5268; border-radius: 18px; padding: 7px 14px; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.tabs button { flex: 1; padding: 8px; border-radius: 7px; background: #1d2433; border: 1px solid #4a5268; }
.tabs button.on { background: #2f5ec4; border-color: #6d9bff; }
#meName { font-size: 20px; font-weight: 700; }
#meStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
#meStats div { background: #1a2030; border-radius: 8px; padding: 8px 4px; } #meStats b { display: block; font-size: 20px; color: #8fd8ff; }
#lgStatus { color: #ffcf8a; min-height: 1em; }
#mpRoomList { list-style: none; padding: 0; margin: 4px 0 8px; max-height: 32vh; overflow: auto; text-align: left; }
#mpRoomList li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #2c3446; border-radius: 8px; margin-bottom: 5px; cursor: pointer; background: #151a26; }
#mpRoomList li:hover { background: #1f2738; }
#mpRoomList li b { color: #8fd8ff; letter-spacing: 2px; } #mpRoomList li span { flex: 1; } #mpRoomList small { color: #8a8f9c; }
#mpRoomList .empty { cursor: default; color: #8a8f9c; justify-content: center; }

/* tutorial guiado */
#tut { position: fixed; left: 50%; top: 38px; transform: translateX(-50%); z-index: 25; display: flex; gap: 10px; align-items: flex-start;
  width: min(640px, calc(100vw - 24px)); pointer-events: none; }
#tut .sarge { flex: none; text-align: center; filter: drop-shadow(0 3px 6px #000a); animation: sarge 1.6s ease-in-out infinite alternate; }
#tut .sarge small { display: block; font-size: 10.5px; color: #ffe9a0; text-shadow: 0 1px 2px #000; }
@keyframes sarge { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
#tut .bubble { position: relative; flex: 1; background: #fffdf3; color: #1d1f26; border-radius: 12px; padding: 10px 13px 9px; box-shadow: 0 6px 18px #000a;
  border: 2px solid #ffd25a; pointer-events: auto; font-size: 14px; line-height: 1.38; }
#tut .bubble::before { content: ""; position: absolute; left: -10px; top: 22px; border: 8px solid transparent; border-right-color: #ffd25a; }
#tut .tstep { font-size: 11px; color: #8a6a10; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
#tut .tbtns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 7px; }
#tut .tbtns button { background: #2f5ec4; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 700; }
#tut .tbtns .thelp { background: #6b5a1f; }
#tut.ok .bubble { border-color: #4fd08a; background: #effff4; }
#tutRing { position: fixed; z-index: 24; pointer-events: none; border: 3px solid #ffd25a; border-radius: 10px;
  box-shadow: 0 0 0 4000px rgba(0,0,0,.18), 0 0 18px #ffd25a; animation: tring 0.9s ease-in-out infinite alternate; }
#tutRing.round { border-radius: 50%; }
@keyframes tring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.07); opacity: .75; } }
body.tut #msgs, body.tut #bInvite { display: none !important; }
body.mobile.tut #info { display: none; }
body.mobile #tut { top: 32px; width: min(560px, calc(100vw - 172px)); left: 8px; transform: none; }
body.mobile #tut .bubble { font-size: 12.5px; padding: 7px 10px; }
body.mobile #tut .sarge svg { width: 46px; height: 46px; }
body.mobile.tut #tools { display: none; }
.mpbox .big.locked { opacity: .55; filter: grayscale(.6); }
#mpLockMsg { color: #ffcf8a; }
#login { z-index: 45; }
#tut .tvoice { position: absolute; right: 8px; top: 6px; background: #2f5ec4; color: #fff; border: 0; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; line-height: 1; padding: 0; }
#tut .tvoice.off { background: #8a8f9c; }
#tut .tstep { padding-right: 36px; }
#tut .tbtns .trepeat { background: #e9e4cf; color: #3a3420; }
body.mobile #tut .tvoice { width: 28px; height: 28px; font-size: 14px; }

/* chat */
#bChat { display: none; position: relative; }
body.online #bChat { display: inline-block; }
#chatBadge { position: absolute; top: -6px; right: -6px; background: #e33; color: #fff; border-radius: 9px; font-size: 10px; padding: 1px 5px; font-weight: 700; }
#chatFeed { position: fixed; left: 10px; bottom: calc(var(--panelH) + 12px); z-index: 6; display: flex; flex-direction: column; gap: 4px; pointer-events: none; max-width: min(420px, 60vw); }
#chatFeed .toast { list-style: none; background: rgba(12, 14, 20, .82); border-radius: 8px; padding: 5px 9px; font-size: 13px; transition: opacity 1s; border-left: 3px solid #8fd8ff; }
#chatFeed .toast.fade { opacity: 0; }
#chatBox { position: fixed; left: 10px; bottom: calc(var(--panelH) + 10px); z-index: 12; width: min(400px, calc(100vw - 20px)); max-height: min(420px, 60vh);
  display: flex; flex-direction: column; background: rgba(13, 16, 24, .95); border: 1px solid #4a5268; border-radius: 10px; padding: 8px; }
#chatBox .chead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } #chatBox .chead b { flex: 1; }
#chatBox .chead > button { background: none; border: 0; color: #ccc; font-size: 16px; }
#chatScope { display: flex; gap: 4px; } #chatScope button { padding: 3px 8px; border-radius: 6px; background: #1d2433; border: 1px solid #4a5268; font-size: 12px; }
#chatScope button.on { background: #2f5ec4; border-color: #6d9bff; }
#chatList { list-style: none; margin: 0; padding: 0 2px; overflow-y: auto; flex: 1; min-height: 80px; font-size: 13px; touch-action: pan-y; user-select: text; }
#chatList li { padding: 3px 0; border-bottom: 1px solid #1e2433; word-wrap: break-word; } #chatList li.muted { opacity: .35; }
#chatList b { cursor: pointer; } .ctag { font-style: normal; font-size: 10px; background: #2f5ec4; border-radius: 4px; padding: 0 4px; margin-right: 4px; }
#chatQuick { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; touch-action: pan-x; }
#chatQuick button { flex: none; background: #232a38; border: 1px solid #4a5268; border-radius: 14px; padding: 4px 9px; font-size: 12px; white-space: nowrap; }
#chatBox .crow { display: flex; gap: 6px; }
#chatBox input { flex: 1; min-width: 0; padding: 8px; border-radius: 7px; border: 1px solid #56617d; background: #141822; color: #fff; font-size: 15px; user-select: text; }
#chatBox .crow button { background: #2f5ec4; border: 0; border-radius: 7px; padding: 0 12px; font-weight: 700; }
#chatBox .small { margin: 4px 0 0; color: #8a8f9c; font-size: 11px; }
body.mobile #chatBox { max-height: calc(100vh - var(--panelH) - 50px); }
body.mobile #chatFeed { font-size: 12px; }
/* ranqueada */
#rankBox { background: #1b1f2c; border: 1px solid #6a5a12; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
#rankBox .rkhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } #rkMe { margin-left: auto; color: #ffe16a; font-size: 13px; }
#rkFind { background: #6a5a12 !important; border-color: #ffd25a !important; }
.big-time { font-size: 30px; font-weight: 800; color: #8fd8ff; margin: 4px 0; }
#rkList { list-style: none; padding: 0; margin: 6px 0; max-height: 52vh; overflow: auto; text-align: left; }
#rkList li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-bottom: 1px solid #262c3a; }
#rkList li b { width: 34px; color: #ffd25a; } #rkList li span { flex: 1; } #rkList li em { font-style: normal; text-align: right; color: #8fd8ff; }
#rkList li.me { background: #1f2a1f; } #rkList small { color: #8a8f9c; }
#mSurrender { display: none; background: #5a2020; border-color: #c05050; }
body.ranked #mSurrender { display: block; }
body.ranked #mNew, body.ranked #bInvite { display: none !important; }
#meStats .wide { grid-column: 1 / -1; font-size: 13px; }
#chatQuick, #chatBox .crow, #chatBox .chead { flex: none; }
#chatQuick button { min-height: 30px; }
body.mobile #chatBox .small { display: none; }

/* ======================= tela inicial (tema militar) ======================= */
:root { --olive: #3f4a24; --olive2: #2b3318; --khaki: #c9b98a; --rust: #d9822b; --steel: #8d969e; }
#title { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; padding: 26px 4vw;
  background: radial-gradient(ellipse at 72% 55%, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 40%, rgba(5,6,4,.85) 100%),
              linear-gradient(180deg, rgba(10,12,8,.55) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(10,12,8,.75) 100%); }
#title .hazard { position: absolute; left: 0; right: 0; height: 10px; opacity: .9;
  background: repeating-linear-gradient(-45deg, #e8b923 0 18px, #1a1a1a 18px 36px); box-shadow: 0 0 12px #000; }
#title .htop { top: 0; } #title .hbottom { bottom: 0; }
#title .tpanel { position: relative; width: min(500px, 100%); max-height: calc(100vh - 52px); overflow-y: auto; padding: 22px 24px 16px;
  color: #ece6d2; border: 2px solid #7d7448; border-radius: 6px; touch-action: pan-y;
  background:
    radial-gradient(circle at 18% 22%, rgba(90,105,50,.55) 0 14%, transparent 15%),
    radial-gradient(circle at 78% 30%, rgba(40,48,22,.65) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 78%, rgba(95,88,52,.5) 0 16%, transparent 17%),
    radial-gradient(circle at 25% 80%, rgba(30,36,18,.6) 0 11%, transparent 12%),
    linear-gradient(160deg, rgba(63,74,36,.94), rgba(34,40,20,.95));
  box-shadow: 0 18px 50px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 40px rgba(0,0,0,.45); }
#title .rivets { position: absolute; inset: 7px; pointer-events: none;
  background: radial-gradient(circle at 0 0, #b9b29a 0 2.5px, transparent 3px), radial-gradient(circle at 100% 0, #b9b29a 0 2.5px, transparent 3px),
    radial-gradient(circle at 0 100%, #b9b29a 0 2.5px, transparent 3px), radial-gradient(circle at 100% 100%, #b9b29a 0 2.5px, transparent 3px); }
#title .emblem { width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #d6c27a, #8a7a35 70%); border: 3px solid #2b2a18; box-shadow: 0 3px 10px #000a; }
#title .emblem span { font-size: 30px; color: #2b2a18; line-height: 1; }
#title h1 { margin: 2px 0 2px; text-align: center; font-family: "Black Ops One", Impact, sans-serif; font-weight: 400; line-height: .95; letter-spacing: 2px; }
#title h1 .t1 { display: block; font-size: clamp(34px, 6.4vw, 54px); color: #efe6c8; text-shadow: 0 3px 0 #1d2110, 0 6px 14px #000; }
#title h1 .t2 { display: block; font-size: clamp(40px, 8vw, 68px); color: var(--rust); text-shadow: 0 3px 0 #4a2508, 0 8px 18px #000; }
#title .tagline { text-align: center; font-family: "Saira Condensed", sans-serif; font-weight: 700; letter-spacing: 2.5px; font-size: 12.5px; color: var(--khaki); margin: 6px 0 10px; }
#title .lore { font-family: "Saira Condensed", system-ui, sans-serif; font-size: 15px; line-height: 1.35; color: #ddd6bd; background: rgba(0,0,0,.28);
  border-left: 3px solid var(--rust); padding: 8px 11px; border-radius: 3px; margin-bottom: 12px; }
#title .lore b { color: #fff3c4; } .c-ore { color: #ffb25a !important; } .c-coal { color: #c9c9d4 !important; } .c-wood { color: #9be07a !important; } .c-red { color: #ff8a6a !important; }
#title .sel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 7px 0; }
#title .sel span { font-family: "Saira Condensed", sans-serif; font-weight: 800; letter-spacing: 2px; font-size: 12px; color: var(--khaki); width: 100%; text-align: center; }
#title .sel button { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 15px; padding: 7px 13px; border-radius: 3px;
  background: linear-gradient(#3a4029, #262b18); color: #d8d0b0; border: 1px solid #6b6542; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
#title .sel button.on { background: linear-gradient(#e2a33f, #b86d1d); color: #1c1306; border-color: #f2c06a; box-shadow: 0 0 10px rgba(217,130,43,.55); }
#title #diffTip { text-align: center; color: #b8b195; margin: 2px 0 10px; font-size: 12.5px; }
#title .big { font-family: "Black Ops One", Impact, sans-serif; letter-spacing: 1.5px; font-weight: 400; border-radius: 4px; position: relative; overflow: hidden; }
#title .btn-play { font-size: 22px; padding: 13px; color: #1d1405; border: 2px solid #f2c06a; text-shadow: 0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(#f0b555, #c8781f); box-shadow: 0 6px 0 #6a3a0c, 0 10px 20px rgba(0,0,0,.5); }
#title .btn-play:active { transform: translateY(3px); box-shadow: 0 3px 0 #6a3a0c; }
#title .btn-online { font-size: 18px; padding: 11px; color: #e8f0dc; border: 2px solid #7f9a5a;
  background: linear-gradient(#5b6e36, #3a4722); box-shadow: 0 5px 0 #1f2711, 0 9px 18px rgba(0,0,0,.45); margin-top: 12px; }
#title .btn-online:active { transform: translateY(3px); box-shadow: 0 2px 0 #1f2711; }
#title .big:disabled { filter: grayscale(.7); opacity: .7; }
#title .tfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: #a8a184; gap: 8px; flex-wrap: wrap; }
#title .tfoot .link { color: #f2c06a; font-size: 14px; padding: 0; }
#acctBar { position: absolute; top: 20px; right: 18px; z-index: 2; }
.dogtag { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 15px; color: #1b1d1f !important; padding: 8px 16px 8px 26px !important;
  border-radius: 22px 10px 10px 22px !important; border: 1px solid #5d646b !important; position: relative;
  background: linear-gradient(135deg, #e3e7ea, #9aa3aa 55%, #c9d0d5) !important; box-shadow: 0 4px 12px rgba(0,0,0,.55), inset 0 1px 0 #fff; }
.dogtag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #3b4045; box-shadow: inset 0 1px 2px #000; }
body.ontitle #top, body.ontitle #panel, body.ontitle #tools, body.ontitle #msgs, body.ontitle #ctx, body.ontitle #chatFeed,
body.ontitle #info, body.ontitle #selbox, body.ontitle #floats { display: none !important; }
body.ontitle #mmwrap { display: none !important; }
/* celular */
body.mobile #title { padding: 18px 10px; justify-content: center; align-items: center; }
body.mobile #title .tpanel { padding: 16px 14px 12px; max-height: calc(100vh - 36px); }
body.mobile #title .lore { font-size: 13.5px; }
body.mobile #acctBar { top: 14px; right: 10px; }
@media (orientation: landscape) and (max-height: 500px) {
  body.mobile #title { justify-content: flex-start; padding: 14px 12px; }
  body.mobile #title .tpanel { width: min(440px, 58vw); padding: 10px 14px; }
  body.mobile #title .emblem { display: none; }
  body.mobile #title h1 .t1 { font-size: 28px; } body.mobile #title h1 .t2 { font-size: 34px; }
  body.mobile #title .lore { max-height: 3.9em; overflow: hidden; font-size: 12.5px; line-height: 1.3; padding: 5px 8px; margin-bottom: 6px; position: relative; }
  body.mobile #title .lore::after { content: "▼ toque para ler"; position: absolute; right: 6px; bottom: 2px; font-size: 10px; color: var(--rust); background: #262c16; padding: 0 4px; }
  body.mobile #title .lore.open { max-height: none; } body.mobile #title .lore.open::after { display: none; }
  body.mobile #title .sel { margin: 4px 0; } body.mobile #title .sel span { width: auto; }
  body.mobile #title .sel button { padding: 5px 9px; font-size: 13px; }
  body.mobile #title .btn-play { font-size: 18px; padding: 9px; } body.mobile #title .btn-online { font-size: 15px; padding: 8px; margin-top: 9px; }
  body.mobile #title #diffTip, body.mobile #title .tagline { display: none; }
}
@media (orientation: portrait) {
  body.mobile #title { align-items: flex-end; padding-bottom: 16px; }
  body.mobile #title .emblem { display: none; }
  body.mobile #title .tagline { font-size: 11px; letter-spacing: 1.5px; }
  body.mobile #title .tpanel { background-color: transparent; }
}
#err { cursor: pointer; }
#tut kbd { font-family: inherit; font-size: 12px; color: #6a5212; background: #f4ecc8; border-radius: 4px; padding: 0 4px; }

/* ======================= painel de comandos em abas ======================= */
#cmd { flex: none; width: 500px; display: flex; flex-direction: column; min-width: 0; }
#ptabs { display: flex; gap: 3px; margin-bottom: 5px; }
.ptab { flex: 1; height: 30px; padding: 0 4px; border-radius: 7px 7px 2px 2px; background: #1b202c; border: 1px solid #343b4e; color: #aeb4c2;
  font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.ptab .ti { font-size: 15px; }
.ptab:hover { background: #242b3b; }
.ptab.on { background: linear-gradient(#3b4a6b, #2a3550); color: #fff; border-color: #6d8ac0; box-shadow: inset 0 -3px 0 #ffd25a; }
#btns { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 64px; gap: 5px; align-content: start; }
.cb { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4px 7px 3px; border-radius: 7px;
  background: linear-gradient(#2e3546, #262c3b); }
.cb .ic { font-size: 19px; line-height: 1.05; margin-bottom: 2px; }
.cb .nm { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cb .k { position: absolute; top: 3px; right: 5px; margin: 0; font-size: 10.5px; background: rgba(0,0,0,.35); border-radius: 3px; padding: 0 3px; }
.cb small { margin-top: 1px; max-width: 100%; }
.cb.tabhide { display: none !important; }
.cb.off .ic { filter: grayscale(1); opacity: .55; }
/* celular deitado: abas compactas + uma linha de botões grandes */
body.mobile #cmd { flex: 1; width: auto; }
body.mobile #ptabs { margin-bottom: 4px; gap: 3px; }
body.mobile .ptab { height: 28px; font-size: 11.5px; }
body.mobile #btns { flex: none; display: grid; grid-template-columns: none; grid-template-rows: 70px; grid-auto-flow: column; grid-auto-columns: minmax(80px, 1fr);
  overflow-x: auto; overflow-y: hidden; touch-action: pan-x; padding-bottom: 0; }
body.mobile .cb { padding: 3px 5px; }
body.mobile .cb .ic { font-size: 20px; }
body.mobile .cb .nm { font-size: 11.5px; }
body.mobile { --panelH: 116px; }
body.mobile.nopanel #cmd { display: none; }
@media (max-height: 420px) {
  body.mobile { --panelH: 112px; }
  body.mobile #btns { grid-template-rows: 66px; }
}
/* celular em pé: abas no topo + grade de 4 colunas */
@media (orientation: portrait) {
  body.mobile { --panelH: 244px; }
  body.mobile #btns { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: 56px; grid-auto-columns: auto; overflow: visible; }
  body.mobile .ptab { flex-direction: column; gap: 0; height: 38px; font-size: 10.5px; }
  body.mobile .ptab .ti { font-size: 16px; }
}
body.mobile.nosel #info { display: none; }
@media (orientation: portrait) {
  body.mobile #tut { width: calc(100vw - 12px); left: 6px; }
  body.mobile #tut .sarge svg { width: 40px; height: 40px; }
  body.mobile.tut #mmwrap { top: auto; bottom: calc(var(--panelH) + 8px); }
}
#tut .tstep { min-height: 26px; }
body.mobile #tut .tvoice { top: 4px; right: 6px; }

/* loja */
.shopbox { max-width: 440px !important; text-align: left !important; }
#shopRes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; background: #151a26; border-radius: 8px; padding: 6px 8px; font-weight: 600; }
.shopq { margin: 10px 0 5px; font-weight: 700; color: #ffe16a; text-align: center; }
#shopTabs { display: flex; gap: 5px; }
#shopTabs button { flex: 1; padding: 8px 4px; border-radius: 8px; background: #1d2433; border: 1px solid #4a5268; font-weight: 600; font-size: 13px; }
#shopTabs button.on { background: #2f5ec4; border-color: #6d9bff; }
#shopList { list-style: none; padding: 0; margin: 8px 0; }
#shopList li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #2c3446; border-radius: 8px; margin-bottom: 6px; background: #151a26; }
#shopList li .deal { flex: 1; font-size: 14px; } #shopList li .deal b { font-size: 15px; }
#shopList li .give { color: #ff9a8a; } #shopList li .get { color: #8cff9c; }
#shopList li button { padding: 8px 11px; border-radius: 7px; background: #2f5ec4; border: 0; font-weight: 700; color: #fff; }
#shopList li button:disabled { background: #333a48; color: #777; }
@media (max-height: 500px) { body.mobile #shopRes { font-size: 12px; gap: 8px; padding: 4px; } body.mobile .shopq { margin: 5px 0 3px; } body.mobile #shopTabs button { padding: 5px 3px; } body.mobile #shopList li { padding: 5px 8px; } body.mobile .shopbox h2 { font-size: 17px; margin-bottom: 4px; } body.mobile .shopbox { padding: 10px 14px; } }
/* ===== celular deitado: mais espaço para o jogo ===== */
@media (orientation: landscape) and (max-height: 500px) {
  body.mobile { --panelH: 92px; }
  body.mobile #top { height: 24px; }
  body.mobile #res { font-size: 11px; } body.mobile #topbtns button { height: 21px; padding: 0 6px; font-size: 11px; }
  body.mobile #ptabs { margin-bottom: 3px; } body.mobile .ptab { height: 24px; font-size: 11px; } body.mobile .ptab .ti { font-size: 13px; }
  body.mobile #btns { grid-template-rows: 56px; grid-auto-columns: minmax(74px, 1fr); }
  body.mobile .cb { padding: 2px 5px; } body.mobile .cb .ic { font-size: 16px; margin-bottom: 0; } body.mobile .cb .nm { font-size: 11px; } body.mobile .cb small { font-size: 9.5px; }
  body.mobile #msgs { top: 27px; font-size: 10.5px; max-width: calc(100vw - 190px); }
  body.mobile #tools button { width: 40px; height: 34px; font-size: 15px; } body.mobile #tools button small { display: none; }
  body.mobile #mmwrap { top: 28px; } body.mobile { --mmW: 132px; }
  body.mobile #ctx { top: 27px; } body.mobile #ctx button { padding: 5px 8px; font-size: 11.5px; }
  body.mobile #chatFeed { bottom: calc(var(--panelH) + 44px); }
}

/* ======================= tela inicial: campanha e atalhos ======================= */
#title .btn-camp { font-size: 17px; padding: 11px; margin-top: 12px; color: #fff3d6; border: 2px solid #c0603a;
  background: linear-gradient(#8e3a22, #5e2314); box-shadow: 0 5px 0 #2c0f08, 0 9px 18px rgba(0,0,0,.45); }
#title .btn-camp:active { transform: translateY(3px); box-shadow: 0 2px 0 #2c0f08; }
#title .tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
#title .tgrid button { position: relative; font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 15px; padding: 8px 6px; border-radius: 4px;
  background: linear-gradient(#3a4029, #262b18); color: #e4dcbc; border: 1px solid #6b6542; }
#title .tgrid button:active { transform: translateY(1px); }
#title #mapSel button, #title #wxSel button { padding: 6px 10px; font-size: 14px; }
.badge { position: absolute; top: -6px; right: -4px; background: #e23b2e; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 6px; font-family: system-ui; }
.lvl { background: #ffd25a; color: #2b2208; border-radius: 4px; padding: 0 5px; font-weight: 800; }
@media (orientation: landscape) and (max-height: 500px) {
  body.mobile #title .btn-camp { font-size: 14px; padding: 7px; margin-top: 8px; }
  body.mobile #title .tgrid { grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-top: 8px; }
  body.mobile #title .tgrid button { font-size: 13px; padding: 5px 4px; }
  body.mobile #title #mapSel button, body.mobile #title #wxSel button { padding: 4px 7px; font-size: 12px; }
}

/* ======================= telas do hub (perfil, missões, campanha, amigos, clãs) ======================= */
.modal .box.hub { max-width: 440px; width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; text-align: left; touch-action: pan-y; }
.modal .box.hub.wide { max-width: 620px; }
.hub h2 { text-align: center; } .hub h3 small { color: #8a8f9c; font-weight: 400; }
.hub .row input { text-transform: none; letter-spacing: 0; text-align: left; font-weight: 400; }
.hub #clJoinTag, .hub #clTag { text-transform: uppercase; letter-spacing: 2px; }
.xpbar { position: relative; height: 20px; background: #1b1f2a; border: 1px solid #3e4659; border-radius: 10px; overflow: hidden; margin: 8px 0; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #d38b1f, #ffd25a); }
.xpbar span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 18px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.phead { display: flex; gap: 12px; align-items: center; margin: 4px 0; }
.pem { font-size: 34px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d6c27a, #8a7a35 70%); border: 3px solid #2b2a18; }
.pname { font-size: 18px; } .ptitle { color: #ffd25a; } .ctag2 { color: #8fd8ff; font-weight: 700; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 6px 0; }
.pstats div { background: #171b25; border: 1px solid #333b4e; border-radius: 7px; padding: 5px; font-size: 11.5px; color: #9aa0ad; }
.pstats b { display: block; font-size: 17px; color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.sw { background: #171b25; border: 2px solid #333b4e; border-radius: 8px; padding: 6px 4px; text-align: center; font-size: 12px; color: #dfe3ea; }
.sw i { display: block; width: 44px; height: 30px; margin: 0 auto 4px; border-radius: 6px; border: 1px solid #0008; }
.sw small { display: block; color: #8a8f9c; font-size: 10px; line-height: 1.15; margin-top: 2px; }
.sw.on, .em.on { border-color: #ffd25a; box-shadow: 0 0 8px rgba(255,210,90,.45); }
.sw.lock, .em.lock { opacity: .5; }
.emblems { display: flex; flex-wrap: wrap; gap: 6px; }
.em { position: relative; width: 46px; height: 46px; font-size: 24px; background: #171b25; border: 2px solid #333b4e; border-radius: 8px; }
.em small { position: absolute; right: 1px; bottom: 0; font-size: 10px; }
.seas { list-style: none; padding: 0 !important; }
.hub input[readonly] { font-size: 13px; }
.mlist { list-style: none; padding: 0 !important; }
.mlist li { background: #171b25; border: 1px solid #333b4e; border-radius: 8px; padding: 7px 9px; margin: 5px 0 !important; }
.mlist li.done { border-color: #3f8a46; background: #15241a; }
.mt { display: flex; justify-content: space-between; gap: 8px; } .mt b { color: #ffd25a; white-space: nowrap; }
.mbar { position: relative; height: 14px; background: #0c0f16; border-radius: 7px; overflow: hidden; margin-top: 5px; }
.mbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2f8a3c, #6fd36f); }
.mbar span { position: relative; display: block; text-align: center; font-size: 10.5px; line-height: 14px; font-weight: 700; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
.cm { position: relative; text-align: left; background: linear-gradient(160deg, #2c3420, #1a1f13); border: 2px solid #5f5a3a; border-radius: 8px; padding: 8px 8px 8px 36px; color: #ece6d2; min-height: 96px; }
.cm .cmn { position: absolute; left: 6px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: #d9822b; color: #1c1306; font-weight: 800; display: grid; place-items: center; }
.cm b { display: block; font-family: "Saira Condensed", sans-serif; font-size: 16px; }
.cm small { display: block; color: #b8b195; font-size: 11.5px; line-height: 1.2; margin: 2px 0 4px; }
.cm .cms { color: #ffd25a; font-size: 15px; letter-spacing: 1px; } .cm .cms i, .cstars i { color: #4a4a40; font-style: normal; }
.cm.lock { opacity: .55; filter: grayscale(.7); } .cm.lock .cms { font-size: 11px; color: #b8b195; letter-spacing: 0; }
.cm.done { border-color: #b8952f; }
.flist { list-style: none; padding: 0 !important; }
.flist li { display: flex; align-items: center; gap: 8px; background: #171b25; border: 1px solid #333b4e; border-radius: 8px; padding: 6px 8px; margin: 4px 0 !important; }
.flist li span { flex: 1; min-width: 0; } .flist li small { color: #8a8f9c; } .flist li em { font-style: normal; color: #ffd25a; font-size: 12px; }
.flist li button { background: #2f5ec4; border: 0; color: #fff; border-radius: 6px; padding: 6px 9px; font-size: 12.5px; }
.flist li button.x { background: #2a2f3c; }
.flist li.empty { justify-content: center; color: #8a8f9c; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #555b68; flex: none; } .dot.on { background: #4fe36a; box-shadow: 0 0 6px #4fe36a; }
.clhead { background: #171b25; border: 1px solid #333b4e; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.cltag { color: #8fd8ff; font-size: 18px; }
.kb { background: #2a3040; padding: 0 5px; border-radius: 4px; }
.shareimg { width: 100%; border-radius: 8px; border: 1px solid #444; margin: 6px 0; }
.btnlike { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
.invtoast { position: fixed; right: 12px; bottom: calc(var(--panelH, 0px) + 12px); z-index: 60; background: #12161f; border: 2px solid #ffd25a; border-radius: 10px;
  padding: 10px 12px; max-width: 300px; box-shadow: 0 8px 24px #000c; animation: slidein .3s ease-out; }
body.ontitle .invtoast { bottom: 16px; }
.invtoast div { display: flex; gap: 8px; margin-top: 8px; } .invtoast button { flex: 1; padding: 8px; border-radius: 7px; border: 0; background: #2f5ec4; color: #fff; font-weight: 700; }
.invtoast button[data-no] { background: #2a2f3c; }
@keyframes slidein { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* resultado: XP */
.xpbox { pointer-events: auto; max-width: 380px; width: calc(100% - 24px); margin: 6px auto 12px; text-align: left; }
#bannerXp:empty { display: none; }
#bannerXp { background: rgba(10,13,20,.88); border: 1px solid #4a5268; border-radius: 10px; padding: 8px 12px; max-height: 36vh; overflow-y: auto; }
.xpbox .xptot { font-family: "Black Ops One", Impact, sans-serif; color: #ffd25a; font-size: 26px; text-align: center; }
.xpbox ul { list-style: none; padding: 0 !important; margin: 4px 0 !important; font-size: 13px; }
.xpbox li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #333b4e; padding: 2px 0; } .xpbox li b { color: #ffd25a; }
.xpbox .lvup { background: linear-gradient(90deg, #6a4a0c, #a8741a); color: #fff3c4; border-radius: 7px; padding: 6px 8px; text-align: center; font-weight: 800; margin-top: 6px; animation: pop .5s; }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: none; } }
body.mobile #banner h1 { font-size: 40px; } body.mobile #banner p { font-size: 14px; margin: 4px 0; }
@media (max-height: 500px) { #bannerXp { max-height: 30vh; font-size: 12px; } .xpbox .xptot { font-size: 20px; } #bannerBtns .big { width: auto; padding: 8px 14px; } }

/* ======================= campanha ======================= */
#campHud { position: fixed; left: 10px; top: 36px; z-index: 6; background: rgba(14,17,24,.88); border: 1px solid #b8952f; border-left: 4px solid #d9822b;
  border-radius: 6px; padding: 5px 10px; font-size: 13px; max-width: min(560px, 70vw); pointer-events: none; }
#campHud .cn { color: #d9822b; font-family: "Saira Condensed", sans-serif; letter-spacing: 1px; margin-right: 6px; }
body.camp #msgs { top: 68px; }
#campRadio { position: fixed; left: 50%; transform: translateX(-50%); top: 70px; z-index: 24; display: flex; gap: 8px; align-items: center; max-width: min(520px, 92vw);
  background: #fffdf3; color: #1d1f26; border: 2px solid #ffd25a; border-radius: 12px; padding: 6px 12px 6px 6px; box-shadow: 0 6px 18px #000a; transition: opacity .6s; pointer-events: none; }
#campRadio.warn { border-color: #e2493a; }
#campRadio.fade { opacity: 0; }
#campRadio .sarge svg { width: 40px; height: 40px; } #campRadio .rt b { display: block; font-size: 11px; color: #8a6a10; text-transform: uppercase; }
#campRadio .rt span { font-size: 14px; }
.cbrief { max-width: 480px !important; text-align: left !important; }
.cbrief .ctop { display: flex; gap: 12px; align-items: center; }
.cbrief .sarge { text-align: center; flex: none; } .cbrief .sarge small { display: block; font-size: 10.5px; color: #ffe9a0; }
.cbrief .cnum { font-size: 11.5px; color: #d9822b; font-weight: 700; letter-spacing: 1px; }
.cbrief h2 { font-family: "Black Ops One", Impact, sans-serif; font-weight: 400; letter-spacing: 1px; margin: 2px 0 !important; font-size: 24px; }
.cbrief h2.win { color: #73ff80; } .cbrief h2.lose { color: #ff5b4d; }
.cbrief .cbest { font-size: 12px; color: #ffd25a; }
.cbrief .ctext { font-size: 14.5px; line-height: 1.4; color: #e2e4ea; }
.cbrief .cgoal { background: #1f2a1a; border: 1px solid #4f6a3a; border-radius: 7px; padding: 7px 10px; }
.cbrief .ctips { font-size: 13px; color: #c7cbd4; margin: 8px 0 !important; }
.cstars { color: #ffd25a; font-size: 30px; letter-spacing: 3px; }
body.mobile.camp #campHud { top: 32px; font-size: 11.5px; max-width: 64vw; padding: 3px 8px; }
@media (max-height: 500px) {
  .modal .box.cbrief { max-height: calc(100vh - 16px); overflow-y: auto; padding: 10px 14px; }
  .cbrief .ctext { font-size: 13px; margin: 6px 0; } .cbrief .ctips { display: none; }
  #campRadio { top: 56px; } #campRadio .rt span { font-size: 12.5px; }
}

/* continuar partida */
#title .btn-resume { font-size: 18px; padding: 11px; margin-bottom: 8px; color: #06210c; border: 2px solid #8ff09a;
  background: linear-gradient(#7fe08a, #3fae52); box-shadow: 0 5px 0 #1d5a28, 0 9px 18px rgba(0,0,0,.45); animation: glowr 1.6s ease-in-out infinite alternate; }
@keyframes glowr { from { box-shadow: 0 5px 0 #1d5a28, 0 0 0 rgba(127,224,138,0); } to { box-shadow: 0 5px 0 #1d5a28, 0 0 18px rgba(127,224,138,.6); } }
#title #resumeInfo { text-align: center; color: #b9e6bd; margin: -4px 0 8px; font-size: 12.5px; }
@media (orientation: landscape) and (max-height: 500px) { body.mobile #title .btn-resume { font-size: 15px; padding: 7px; } }
