/* CannonFil — interfaccia: targhe militari stampinate sopra il campo di battaglia vivo */
:root {
  --ink: #0e1209;
  --panel: rgba(17, 21, 13, 0.92);
  --panel-2: #1c2215;
  --line: #3b4530;
  --line-2: #56623f;
  --text: #eef0e2;
  --muted: #b9bfa6;
  --accent: #ffd23f;
  --accent-ink: #1d1806;
  --verdi: #8fc24f;
  --sabbia: #e7b866;
  --danger: #ef6a4c;
  --ok: #8fc24f;
  --cut: 10px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --f-ui: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-logo: "Saira Stencil One", "Barlow Condensed", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--f-body); overflow: hidden; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, textarea { caret-color: var(--accent); -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

/* ---------- targhe (pulsanti) ---------- */
.plate {
  --bg: #2a3220; --fg: var(--text); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 22px; border: 0; color: var(--fg);
  font-family: var(--f-ui); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--bg), var(--bg)) padding-box;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 2px var(--bd), inset 0 -4px 0 rgba(0,0,0,.28);
  transition: transform .12s cubic-bezier(.2,.9,.3,1), background-color .15s, filter .15s;
}
.plate:hover { filter: brightness(1.12); }
.plate:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--bd), inset 0 -1px 0 rgba(0,0,0,.28); }
.plate:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.plate.primary { --bg: var(--accent); --fg: var(--accent-ink); --bd: #b8921a; }
.plate.ghost { --bg: rgba(14,18,9,.6); --bd: var(--line); }
.plate.danger { --fg: var(--danger); --bd: #6b3426; }
.plate.small { min-height: 40px; padding: 0 14px; font-size: 1rem; --cut: 7px; }
.plate.big { min-height: 60px; font-size: 1.35rem; padding: 0 34px; }
.plate svg { width: 22px; height: 22px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: rgba(14,18,9,.75); color: var(--text); border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; }
.link { background: none; border: 0; padding: 6px 2px; color: var(--muted); font-family: var(--f-ui); font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.link:hover { color: var(--text); text-decoration-color: var(--accent); }

/* ---------- schermate ---------- */
.screen { position: fixed; inset: 0; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l)); }
.screen.on { display: block; }

/* HOME: la battaglia dei bot gira dietro, a pieno schermo */
#home { background: linear-gradient(90deg, rgba(10,13,7,.92) 0%, rgba(10,13,7,.72) 38%, rgba(10,13,7,.05) 70%); display: none; }
#home.on { display: grid; grid-template-columns: minmax(0, 520px) 1fr; grid-template-rows: 1fr auto; gap: 24px; }
.hero { align-self: center; display: flex; flex-direction: column; gap: 22px; padding: 12px 8px 0; }
.logo { margin: 0; font-family: var(--f-logo); font-weight: 400; font-size: clamp(3.4rem, 11vw, 6rem); line-height: .86; letter-spacing: -.01em; color: var(--text); text-shadow: 0 6px 24px rgba(0,0,0,.55); }
.logo span { color: var(--accent); }
.tag { margin: -8px 0 0; max-width: 34ch; font-size: 1.12rem; line-height: 1.45; color: var(--muted); }
.enlist { display: grid; gap: 6px; max-width: 420px; }
.enlist label, .settings label, form label { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#nick { height: 54px; padding: 0 16px; border: 0; border-radius: 4px; background: rgba(6,8,4,.75); box-shadow: inset 0 0 0 2px var(--line-2); font-family: var(--f-ui); font-size: 1.4rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
#nick::placeholder { color: #6f765f; }
#nick:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.actions { display: grid; gap: 12px; max-width: 420px; }
.actions.row { grid-template-columns: 1fr 1fr; max-width: 520px; margin: 0 auto; }
.rooms h2 { margin: 6px 0 8px; font-family: var(--f-ui); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rooms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.rooms li button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border: 0; border-radius: 6px; background: rgba(6,8,4,.7); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.rooms li button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rooms .rc { font-family: var(--f-ui); font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; color: var(--accent); }
.rooms .rh { font-family: var(--f-ui); font-size: 1.05rem; font-weight: 600; }
.rooms .rm { color: var(--muted); font-size: .9rem; }
.hill-card { align-self: end; justify-self: end; width: min(420px, 100%); margin: 0; padding: 0; background: var(--panel); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1.5px var(--line); }
#hill { display: block; width: 100%; height: auto; }
.hill-txt { margin: 0; padding: 12px 16px 14px; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.hill-txt strong { color: var(--text); font-family: var(--f-ui); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 4px 8px 0; }
.credit { margin-left: auto; color: var(--muted); font-size: .92rem; text-decoration: none; }
.credit b { color: var(--text); font-weight: 600; }
.credit:hover b { color: var(--accent); }

/* LOBBY */
#lobby { background: rgba(10,13,7,.84); }
#lobby.on { display: flex; flex-direction: column; gap: 22px; padding-left: max(16px, calc((100vw - 980px) / 2)); padding-right: max(16px, calc((100vw - 980px) / 2)); }
.lob-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.code-box { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 18px; padding: 14px 18px; background: var(--panel); border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.code-box .lab { grid-column: 1 / -1; font-family: var(--f-ui); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#lCode { font-family: var(--f-ui); font-weight: 800; font-size: 3rem; letter-spacing: .18em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.code-acts { display: flex; gap: 8px; align-items: center; }
.wa { --bg: #146c3a; --bd: #0e5229; }
.lob-hint { flex: 1 1 260px; margin: 0; color: var(--muted); line-height: 1.45; max-width: 46ch; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.team { background: var(--panel); border-radius: 6px; padding: 14px 14px 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.team h2 { margin: 0 0 10px; font-family: var(--f-logo); font-weight: 400; font-size: 1.9rem; letter-spacing: .02em; }
.t0 h2 { color: var(--verdi); } .t1 h2 { color: var(--sabbia); }
.team ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 4px; background: rgba(255,255,255,.035); font-family: var(--f-ui); font-size: 1.15rem; font-weight: 600; }
.team li .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team li .tagp { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.team li.bot { color: #8b927a; font-weight: 500; }
.team li.me { background: rgba(255,210,63,.14); box-shadow: inset 0 0 0 1.5px rgba(255,210,63,.6); }
.team li .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.t0 .dot { background: var(--verdi); } .t1 .dot { background: var(--sabbia); }
.team li.bot .dot { background: #4a5040; }
.swap { align-self: center; flex-direction: column; min-height: 76px; }
.settings { display: grid; gap: 14px; padding: 16px; background: var(--panel); border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); }
.settings.readonly { pointer-events: none; opacity: .75; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { min-height: 48px; border: 0; border-radius: 4px; background: rgba(255,255,255,.05); font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.settings .row { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.settings select, form select, form input, form textarea { display: block; margin-top: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 4px; background: rgba(6,8,4,.8); box-shadow: inset 0 0 0 1.5px var(--line-2); font-family: var(--f-ui); font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--text); }
form textarea { font-family: var(--f-body); font-size: 1rem; font-weight: 400; width: 100%; resize: vertical; }
form input { width: 100%; }
form input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 4px; background: var(--line-2); color: var(--text); font-family: var(--f-ui); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.mode-desc { margin: 0; color: var(--muted); line-height: 1.45; max-width: 70ch; }
.lob-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wait { margin: 0; color: var(--muted); font-family: var(--f-ui); font-size: 1.15rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; font-family: var(--f-ui); }
#hud > * { pointer-events: auto; }
.score { position: absolute; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 14px; padding: 6px 16px; background: var(--panel); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.35); pointer-events: none !important; }
.sc { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.sc b { font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sc.t0 { color: var(--verdi); justify-content: flex-end; } .sc.t1 { color: var(--sabbia); }
.clock { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 3.2em; text-align: center; }
.goal { grid-column: 1 / -1; text-align: center; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.feed { position: absolute; top: calc(88px + var(--safe-t)); left: calc(10px + var(--safe-l)); margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-width: min(360px, 60vw); pointer-events: none !important; }
.feed li { padding: 5px 10px; border-radius: 4px; background: rgba(14,18,9,.78); font-size: 1rem; font-weight: 600; animation: feedIn .35s cubic-bezier(.16,1,.3,1); transition: opacity .6s; }
.feed li.good { color: var(--verdi); } .feed li.bad { color: var(--danger); } .feed li.info { color: var(--accent); }
.feed li.out { opacity: 0; }
@keyframes feedIn { from { transform: translateX(-14px); opacity: 0; } }
.mini-wrap { position: absolute; top: calc(8px + var(--safe-t)); right: calc(8px + var(--safe-r)); display: flex; gap: 8px; align-items: flex-start; }
#mini { width: 168px; height: 126px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 2px rgba(14,18,9,.9); background: #000; cursor: pointer; touch-action: none; }
.squad { position: absolute; left: calc(10px + var(--safe-l)); bottom: calc(10px + var(--safe-b)); display: grid; gap: 3px; padding: 8px 12px; background: var(--panel); border-radius: 6px; min-width: 170px; pointer-events: none !important; }
.squad .m { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; }
.squad .m i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.squad .m.hurt i { background: var(--danger); }
.squad .m.dead { color: #6d7360; text-decoration: line-through; }
.squad .m.dead i { background: #3d4236; }
.squad .k { margin-top: 4px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.respawn { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 14px 22px; background: var(--panel); border-radius: 6px; font-size: 1.4rem; font-weight: 700; text-align: center; pointer-events: none !important; }
.respawn b { color: var(--accent); font-variant-numeric: tabular-nums; }
.weapons { position: absolute; right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); display: flex; gap: 10px; align-items: flex-end; }
.wbtn { position: relative; display: grid; justify-items: center; align-content: center; gap: 0; width: 82px; height: 82px; border: 0; border-radius: 50%; background: rgba(14,18,9,.82); color: var(--text); box-shadow: inset 0 0 0 2px var(--line-2), 0 6px 16px rgba(0,0,0,.35); touch-action: manipulation; }
.wbtn svg { width: 40px; height: 40px; }
.wbtn span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wbtn b { position: absolute; top: 2px; right: 2px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); font-size: 1rem; line-height: 26px; font-variant-numeric: tabular-nums; }
.wbtn.armed { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,210,63,.4), 0 6px 16px rgba(0,0,0,.35); }
.wbtn.armed span { color: var(--accent-ink); }
.wbtn.armed b { background: var(--accent-ink); color: var(--accent); }
.wbtn.empty { opacity: .45; }
.wbtn.auto { width: 64px; height: 64px; color: var(--muted); }
.wbtn.auto svg { width: 28px; height: 28px; }
.wbtn.auto.on { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 6px 16px rgba(0,0,0,.35); }
.armed-hint, .help-hint { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 6px; background: rgba(14,18,9,.85); font-size: 1.05rem; font-weight: 600; pointer-events: none !important; white-space: nowrap; }
.armed-hint { bottom: calc(108px + var(--safe-b)); color: var(--accent); }
.help-hint { bottom: calc(12px + var(--safe-b)); color: var(--muted); transition: opacity 1s; max-width: calc(100vw - 420px); white-space: normal; text-align: center; }
.help-hint:empty { display: none; }

/* FINE */
#end { background: rgba(10,13,7,.9); text-align: center; }
#end.on { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.result { margin: 18px 0 0; font-family: var(--f-logo); font-weight: 400; font-size: clamp(3rem, 12vw, 5.5rem); line-height: .9; }
.result.win { color: var(--accent); } .result.lose { color: var(--danger); }
.why { margin: 0; color: var(--muted); font-size: 1.15rem; }
#endHill { width: min(720px, 100%); height: auto; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); }
.fallen { margin: 0; max-width: 60ch; color: var(--muted); line-height: 1.5; }
.fallen b { color: var(--text); font-weight: 600; }
.stats { border-collapse: collapse; width: min(520px, 100%); font-family: var(--f-ui); font-size: 1.1rem; }
.stats th { padding: 6px 10px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: right; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats td { padding: 7px 10px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.stats tr.t0 td:first-child { color: var(--verdi); } .stats tr.t1 td:first-child { color: var(--sabbia); }
.stats tr.me td { background: rgba(255,210,63,.1); }

/* FOGLI */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(5,7,3,.66); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet-in { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px 22px 22px; background: var(--panel-2); border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1.5px var(--line-2); display: grid; gap: 12px; animation: rise .32s cubic-bezier(.16,1,.3,1); -webkit-user-select: text; user-select: text; }
.sheet-in.wide { width: min(940px, 100%); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.sheet-in h2 { margin: 0 44px 0 0; font-family: var(--f-logo); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.sheet-in p { margin: 0; color: var(--muted); line-height: 1.5; }
.sheet-in .x { position: absolute; top: 12px; right: 12px; }
.code-in { height: 70px; border: 0; border-radius: 4px; background: rgba(6,8,4,.8); box-shadow: inset 0 0 0 2px var(--line-2); text-align: center; font-family: var(--f-ui); font-size: 2.6rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.code-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.err { color: var(--danger) !important; font-weight: 600; }
.howto { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; }
.howto h3 { margin: 4px 0 10px; font-family: var(--f-ui); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.keys { border-collapse: collapse; width: 100%; font-size: .98rem; }
.keys th { text-align: left; font-family: var(--f-ui); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; color: var(--muted); padding: 4px 8px; }
.keys td { padding: 7px 8px; border-top: 1px solid var(--line); line-height: 1.3; }
.keys td:first-child { font-weight: 600; color: var(--text); }
.feat { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.45; color: var(--muted); }
.feat b { color: var(--text); font-weight: 600; }
form { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#myBugs h3 { margin: 10px 0 6px; font-family: var(--f-ui); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#myBugs li { margin-bottom: 6px; line-height: 1.4; color: var(--muted); }
#myBugs li b { color: var(--text); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; color: var(--muted); }
.steps b { color: var(--text); }
#pauseSheet .sheet-in .plate { width: 100%; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); padding: 12px 18px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-ui); font-size: 1.1rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .3s cubic-bezier(.16,1,.3,1); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--danger); color: #1c0904; }
.loading { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10,13,7,.92); font-family: var(--f-ui); font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.loading span { animation: pulse 1.2s ease-in-out infinite; }

/* ---------- telefono ---------- */
@media (max-width: 760px) {
  #home { background: linear-gradient(180deg, rgba(10,13,7,.25) 0%, rgba(10,13,7,.85) 34%, rgba(10,13,7,.95) 100%); }
  #home.on { display: flex; flex-direction: column; gap: 22px; }
  .hero { padding-top: 18vh; gap: 18px; align-self: stretch; }
  .hill-card { justify-self: stretch; width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .credit { margin: 10px 0 0; }
  .teams { grid-template-columns: 1fr; }
  .swap { flex-direction: row; min-height: 44px; justify-self: center; }
  .seg { grid-template-columns: 1fr; }
  #lCode { font-size: 2.4rem; }
  .howto { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .lob-foot .plate.big { flex: 1; }
  .score { padding: 4px 12px; gap: 2px 10px; left: calc(8px + var(--safe-l)); transform: none; }
  .sc b { font-size: 1.35rem; }
  .sc { font-size: .75rem; }
  .goal { display: none; }
  #mini { width: 112px; height: 84px; }
  .feed { top: calc(64px + var(--safe-t)); font-size: .9rem; }
  .feed li { font-size: .9rem; }
  .squad { min-width: 0; padding: 6px 10px; }
  .squad .m { font-size: .85rem; }
  .wbtn { width: 70px; height: 70px; }
  .wbtn svg { width: 34px; height: 34px; }
  .wbtn.auto { width: 56px; height: 56px; }
  .help-hint { display: none; }
  .armed-hint { bottom: calc(96px + var(--safe-b)); }
}
@media (max-height: 480px) and (orientation: landscape) {
  #home.on { grid-template-columns: minmax(0, 460px) 1fr; }
  .hero { padding-top: 0; gap: 12px; }
  .logo { font-size: 3.2rem; }
  .plate { min-height: 44px; }
  .hill-card { display: none; }
  .feed { top: calc(56px + var(--safe-t)); }
  .score { padding: 3px 10px; }
  .goal { display: none; }
  #mini { width: 120px; height: 90px; }
  .squad { padding: 5px 9px; min-width: 0; }
  .squad .m { font-size: .82rem; }
  .squad .m:not(.lead) span { display: none; }
  .squad .m:not(.lead) { display: inline-flex; }
  .squad .k { font-size: .72rem; }
  .wbtn { width: 66px; height: 66px; }
  .wbtn svg { width: 32px; height: 32px; }
  .wbtn.auto { width: 52px; height: 52px; }
  .help-hint { display: none; }
  .armed-hint { bottom: calc(86px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
