/* ==========================================================================
   Sector 196 - the APP's look on the website (reskin, Sam 30 Oct 2026).
   Loaded AFTER style.css. The colours, fonts and buttons match the phone app
   (app/src/app.css) - change them here, never per screen.
   Phones get the app's screens; laptops get wider layouts of the same pieces
   (Sam, 30 Oct: "on laptop it should be better sized for normal screens").
   ========================================================================== */

:root {
  /* the app's palette (app/src/app.css), under the website's own token names */
  --bg: #10151c;
  --surface: #1a212b;
  --surface-2: #222a35;
  --surface-3: #2c3542;
  --line-2: rgba(255, 255, 255, 0.18);
  --panel: #1a212b;
  --panel-solid: #1a212b;
  --line: rgba(255, 255, 255, 0.09);
  --control: rgba(255, 255, 255, 0.18);
  --text: #f5f8fa;
  --muted: #a2adba;
  --faint: #6f7b88;
  --accent: #22d3ee;
  --accent-deep: #0b8ea3;
  --accent-ink: #00171c;
  --gold: #f5c542;
  --gold-deep: #a87a12;
  --ocean: #141b24;
  --land: #2e3a48;
  --border: #435264;
  --radius: 14px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bubble-bg: #1a222c;
  --bubble-line: #3a4757;
  /* style guide (31 Oct 2026, docs/STYLE_GUIDE.md on branch app): rewards, gems, results, power-ups, art-only colours */
  --gold-ink: #2b1d00; --gem: #c084fc; --gem-deep: #7e22ce; --flame: #fb923c; --win: #2dd4bf; --loss: #fb7185;
  --pu-reroll: #22d3ee; --pu-intel: #c084fc; --pu-location: #4ade80; --pu-swap: #fb923c; --pu-freeze: #7dd3fc;
  --art-olive: #418441; --art-olive-deep: #094f2a; --art-skin: #de927a; --art-skin-deep: #c17a67; --art-silver: #e2e2e2;
  --art-silver-deep: #a9aeb6; --art-ink: #292015; --art-red: #ed3d5a; --art-blue: #3e84ec; --art-bronze: #c47a3a;
  --art-bronze-deep: #8f5223; --art-platinum: #b8e3ef; --art-platinum-deep: #6fb2c7; --art-wood: #a8641f; --art-wood-deep: #6e3f12;
}

body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- The page colour runs across the whole screen, the top bar edge to edge (no grid paper: maps only) ---- */
html { background: var(--bg); }
.top-bar {
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}

/* ---- Buttons: pressable, like the app's (Sam, 27 Oct: buttons should feel like real buttons) ---- */
button,
.button-link {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 4px 0 #0b0f14, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}
@media (hover: hover) {
  button:hover,
  .button-link:hover {
    background: var(--surface-3);
    box-shadow: 0 4px 0 #0b0f14, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}
button:active:not(:disabled),
.button-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b0f14, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* The one main button on a screen: the app's chunky cyan "cta" */
.btn-primary,
a.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--accent-deep);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: #3ddbf1;
    color: var(--accent-ink);
    box-shadow: 0 5px 0 var(--accent-deep);
  }
}
.btn-primary:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--accent-deep);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

/* ---- Top bar: the app's HUD pills ---- */
.top-bar {
  border-bottom: 0;
  background: var(--bg); /* solid (iOS Safari draws a gap above a see-through bar) */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.logo {
  font-weight: 800;
  text-shadow: none;
}
.streak-btn,
.sound-btn,
.account-btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.account-btn {
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
}
.account-btn.signed-in {
  background: var(--surface);
  color: var(--text);
}
.streak-btn:active,
.sound-btn:active,
.account-btn:active {
  transform: scale(0.96);
  box-shadow: none;
}

/* ---- Small labels: the app's "micro" style ---- */
.micro {
  font: 600 10px/1.2 var(--num-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- The Commander + speech bubbles (Duolingo-style, as in the app) ---- */
.advisor {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.adv-face {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #1d2a36, #10161d);
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.adv-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bubble {
  position: relative;
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--bubble-bg);
  border: 2px solid var(--bubble-line);
  color: var(--text);
  font: 700 14px/1.35 var(--body-font);
}
.bubble.tail-l::after,
.bubble.tail-r::after {
  content: "";
  position: absolute;
  top: var(--ty, 50%);
  width: 13px;
  height: 13px;
  background: var(--bubble-bg);
  border: 2px solid var(--bubble-line);
}
.bubble.tail-l::after {
  left: -8.5px;
  border-top: 0;
  border-right: 0;
  transform: translateY(-50%) rotate(45deg);
  border-bottom-left-radius: 3px;
}
.bubble.tail-r::after {
  right: -8.5px;
  border-bottom: 0;
  border-left: 0;
  transform: translateY(-50%) rotate(45deg);
  border-top-right-radius: 3px;
}

/* ---- Home ---- */
.home-hero {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ocean);
}
.home-logo {
  font-weight: 800;
  text-shadow: none;
}
.home-hero .advisor {
  justify-content: center;
  margin: 6px 0 14px;
}
.home-hero .advisor .bubble {
  max-width: 250px;
  text-align: left;
}
.start-button.btn-primary {
  width: 100%;
  min-height: 72px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}
.start-button small {
  display: block;
  margin-top: 4px;
  font: 600 10px var(--num-font);
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.home-tiles {
  gap: 8px;
}
.home-tile {
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 0 #0b0f14;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.home-tile:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b0f14;
}
.home-tile-title {
  font-family: var(--body-font);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.home-steps li {
  border: 0;
  border-radius: 18px;
  background: var(--surface);
}
.home-steps strong {
  font-weight: 800;
}

/* "App coming soon!" (Sam, 30 Oct) - becomes "Get the app" once the app is out */
.app-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}
.app-soon .app-soon-ic {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
}
.app-soon .app-soon-ic svg {
  width: 20px;
  height: 20px;
}
.app-soon b {
  display: block;
  font: 800 1rem/1.2 var(--body-font);
}
.app-soon span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Footer ---- */
.site-footer {
  border-top-color: var(--line);
}

/* ---- Tier colours (the app's) ---- */
.tier-very-weak, .tier-weakest { --tc: #fb7185; }
.tier-weak { --tc: #fda4af; }
.tier-average { --tc: #9cc3cf; }
.tier-strong { --tc: #2dd4bf; }
.tier-very-strong { --tc: #22d3ee; }
.tier-strongest { --tc: #f5c542; }
.tier-pill {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc);
  font: 700 11px var(--body-font); white-space: nowrap; text-shadow: none;
}

/* ---- Draft: the ring (as in the app) ---- */
.draft-head { align-items: center; margin-top: 8px; }
.draft-head h2 { font-size: 1.45rem; text-transform: none; letter-spacing: 0; font-family: var(--body-font); font-weight: 800; }
.icon-btn {
  width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--surface); color: var(--muted); box-shadow: none;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active:not(:disabled) { transform: scale(0.94); box-shadow: none; }
.cat-help-btn { box-shadow: none; min-height: 0; background: transparent; }
.cat-help-btn:active:not(:disabled) { transform: none; box-shadow: none; }
.draft-progress span { border-radius: 3px; }

.rboard { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 2px auto 22px; } /* room below: the bigger Location circle hangs past the ring, and the Advisor's bubble overlapped it on phones (Sam, 1 Nov) */
.rboard .ring { position: absolute; inset: 13%; border-radius: 50%; border: 1px solid var(--line-2); }
.rboard .ring::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed var(--line); }
.rboard .sweep { position: absolute; inset: 13%; animation: rs-spin 5s linear infinite; }
.rboard .sweep svg { width: 100%; height: 100%; display: block; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
.rboard .drawn-card {
  position: absolute; left: 50%; top: 50%; width: 40%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px; text-align: center; z-index: 2;
  padding: 0; border: 0; background: none; box-shadow: none; min-height: 0;
}
.rboard .drawn-flag {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 10px 26px rgba(0, 0, 0, 0.5);
}
.rboard .drawn-card.landed .drawn-flag { animation: rs-flip 0.35s var(--out); }
@keyframes rs-flip { from { transform: rotateY(90deg) scale(0.7); } }
.rboard .drawn-name { font: 800 22px/1 var(--head-font); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.rboard .slot {
  position: absolute; left: var(--x); top: var(--y); width: 23%; height: 23%; min-height: 0; padding: 0; margin: 0;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 3px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); z-index: 1;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}
.rboard .slot.cat-open:not(:disabled) { cursor: pointer; }
.rboard .slot.cat-open:disabled { opacity: 1; cursor: default; }
@media (hover: hover) { .rboard .slot.cat-open:not(:disabled):hover { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); } }
.rboard .slot.cat-open:active:not(:disabled) { transform: translate(-50%, -50%) scale(0.92); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rboard .slot .slot-ic { width: 24px; height: 24px; color: var(--accent); }
.rboard .slot .slot-ic svg { width: 100%; height: 100%; }
.rboard .slot-name { font: 600 9px var(--num-font); letter-spacing: 0.06em; text-transform: uppercase; }
.rboard .slot.home { width: 29%; height: 29%; z-index: 2; box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.rboard .slot.home .slot-ic { width: 30px; height: 30px; }
.rboard .slot.home .slot-name { font-size: 10px; font-weight: 700; }
.rboard .slot.filled { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--tc); color: var(--text); }
.rboard .slot.filled.just { animation: rs-pop 0.3s var(--out); }
.rboard .slot.home.filled { box-shadow: inset 0 0 0 2.5px var(--tc); }
@keyframes rs-pop { from { transform: translate(-50%, -50%) scale(0.9); } }
.rboard .sf-flag { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.rboard .slot.home .sf-flag { width: 46px; height: 46px; }
.rboard .sf-rank { font: 800 15px/1 var(--head-font); color: var(--tc); }
.rboard .slot.home .sf-rank { font-size: 18px; }

/* The Commander beside his speech bubble (he hops at each pick) */
.dadv { display: flex; align-items: flex-end; gap: 10px; margin-top: 2px; }
.cmdbody { flex: none; width: auto; height: 140px; max-width: 120px; object-fit: contain; object-position: bottom; margin: 0 -4px -4px -4px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); transform-origin: 50% 100%; }
/* A new expression: a soft fade-and-settle, only when his face actually changes */
.cmdbody.react { animation: rs-react 0.28s ease-out; }
@keyframes rs-react { from { opacity: 0.4; transform: scale(0.97); } }
.bwrap { position: relative; flex: 1; min-width: 0; min-height: 132px; margin-bottom: 8px; }
.dbub {
  position: absolute; inset: 0; display: grid; align-content: start; gap: 5px; padding: 11px 14px;
  border-radius: 18px; background: var(--bubble-bg); border: 2px solid var(--bubble-line);
  animation: rs-card 0.25s ease-out;
}
.dbub::after {
  content: ""; position: absolute; left: -8.5px; bottom: 64px; width: 13px; height: 13px;
  background: var(--bubble-bg); border: 2px solid var(--bubble-line); border-top: 0; border-right: 0;
  border-bottom-left-radius: 3px; transform: rotate(45deg);
}
@keyframes rs-card { from { opacity: 0; } }
.dbub .top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dbub .top img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; flex: none; }
.dbub .top b { flex: 1; min-width: 0; font: 700 15px/1.2 var(--body-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbub .rk { flex: none; font: 800 15px/1 var(--head-font); color: var(--tc); }
.dbub .say { font: 700 16px/1.25 var(--body-font); color: var(--text); }
.dbub p { margin: 0; font-size: 13px; line-height: 1.35; color: #c3ccd4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dbub.hint { align-content: center; }
.dbub.hint p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rboard .sweep, .cmdbody, .dbub, .rboard .slot.filled { animation: none; } }
.rboard .slot { border: 0; }
.dbub, .dbub .top b { color: var(--text); text-shadow: none; }

/* ---- Draft complete: "Ready for war" (the app's list) ---- */
.dsum { display: grid; gap: 6px; margin-top: 10px; }
.dsum .emp {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 4px;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.3); animation: rs-deal 0.42s var(--spring) both;
}
.dsum .emp .flag { width: 44px; height: 30px; border-radius: 4px; object-fit: cover; }
.dsum .et { display: grid; gap: 3px; min-width: 0; }
.dsum .et b { font: 800 19px/1 var(--head-font); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsum .strip { display: grid; grid-template-columns: repeat(8, 7px); gap: 3px; align-items: end; height: 26px; }
.dsum .strip i { height: 100%; border-radius: 2px; background: var(--tc); }
.dsum .strip i.tier-very-weak { height: 25%; } .dsum .strip i.tier-weak { height: 42%; } .dsum .strip i.tier-average { height: 58%; } .dsum .strip i.tier-strong { height: 75%; }
.prow {
  display: grid; grid-template-columns: 40px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px 0 8px;
  border-radius: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--tc); color: var(--text); text-shadow: none;
  animation: rs-deal 0.42s var(--spring) var(--d) both;
}
@keyframes rs-deal { from { opacity: 0; transform: translate3d(64px, 0, 0); } to { opacity: 1; transform: none; } }
.prow .pcat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.prow .pcat .icon { width: 26px; height: 26px; }
.prow .flag { width: 34px; height: 23px; object-fit: cover; border-radius: 4px; }
.prow .pt { min-width: 0; display: grid; gap: 2px; }
.prow .pt b { font: 700 16px/1.15 var(--body-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pt span { font: 600 10px var(--num-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prow .prk { display: grid; justify-items: end; gap: 3px; color: var(--tc); }
.prow .prk b { font: 800 19px/1 var(--head-font); }
.prow .prk span { font: 600 10px var(--body-font); white-space: nowrap; }
.go-war.btn-primary { width: 100%; min-height: 62px; margin: 14px 0 6px; font-size: 1.8rem; }
@media (prefers-reduced-motion: reduce) { .prow, .dsum .emp { animation: none; } }

/* ---- War screen (the app's) ---- */
.empire-head { gap: 10px; margin-top: 8px; }
.empire-head .flag { width: 36px; height: 24px; border-radius: 4px; }
.empire-head h2 { font: 700 1.1rem/1.1 var(--body-font); text-transform: none; letter-spacing: 0; }
.sim-context { font: 600 10px/1.2 var(--num-font); letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 0 46px; }
.sim-bar { margin: 10px 0 8px; }
.stat { border: 0; border-radius: 14px; background: var(--surface); padding: 9px 12px; }
.stat-label { font: 600 10px/1.2 var(--num-font); letter-spacing: 0.12em; }
.stat-value { font: 800 30px/1 var(--head-font); margin-top: 3px; }
.stat-value.hero { color: var(--text); }
.speed-btn, .ff-btn { min-height: 46px; margin: 0; border: 0; border-radius: 14px; }
.map-frame {
  border: 0;
  border-radius: 20px;
  background-color: var(--ocean);
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.event {
  display: block;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--edge, var(--line-2));
  padding: 10px 12px;
  margin: 0 0 6px;
}
.event-numbers { font: 600 10px/1.3 var(--num-font); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.event-text { font-size: 13.5px; line-height: 1.35; color: #d5dde3; }
.event-win { --edge: #2dd4bf; }
.event-loss { --edge: #fb7185; }
.event-ruling, .event-deal { --edge: var(--gold); }

/* ---- Result (end screen) ---- */
.end-hero { border: 0; border-radius: 22px; background: var(--surface); box-shadow: none; }
.end-win .end-hero { box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.35); }
.end-conquest .end-hero { box-shadow: inset 0 0 0 1.5px rgba(245, 197, 66, 0.5); }
.end-place { font-weight: 800; }
.end-adv { justify-content: center; margin: 12px 0 4px; }
.end-adv .bubble { max-width: 230px; }
.end-tiles .stat { background: var(--surface-2); }
.high-score-banner { border-radius: 999px; }
.year-card, .end-charts > div, .rank-ladder .rank-row, .deal-note { border: 0; border-radius: 16px; background: var(--surface); }
.end-draft { margin-top: 8px; }
.end-draft .prow { animation: none; }
.end-screen h3 { font-family: var(--body-font); font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.05rem; }
.deal-badge { display: inline-grid; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; color: var(--gold); }

/* ==== Laptop layouts (900px+) ==== */
@media (min-width: 900px) {
  /* Home: globe on the left, the rest on the right; the 4 steps in one row */
  body:has(.home) { max-width: 1040px; }
  .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 28px 32px; }
  .home-hero .home-globe { width: 100%; max-width: 440px; justify-self: center; }
  .home-main { text-align: left; }
  .home-main .home-logo, .home-main .tagline { text-align: left; }
  .home-main .advisor { justify-content: flex-start; }
  .home-main .advisor .bubble { max-width: 360px; }
  .home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Draft: a big ring on the left, the Commander and his verdict on the right */
  .draft-stage { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 8px; }
  .draft-stage .rboard { width: 100%; max-width: 540px; margin: 0; }
  .draft-stage .rboard .drawn-flag { width: 96px; height: 96px; }
  .draft-stage .rboard .drawn-name { font-size: 28px; }
  .draft-stage .rboard .slot .slot-ic { width: 32px; height: 32px; }
  .draft-stage .rboard .slot-name { font-size: 11px; }
  .draft-stage .rboard .sf-flag { width: 46px; height: 46px; }
  .draft-stage .rboard .sf-rank { font-size: 19px; }
  .draft-stage .rboard .slot.home .slot-ic { width: 40px; height: 40px; }
  .draft-stage .rboard .slot.home .sf-flag { width: 60px; height: 60px; }
  .draft-stage .dadv { flex-direction: column; align-items: flex-start; gap: 18px; }
  .draft-stage .bwrap { width: 100%; min-height: 170px; order: -1; }
  .draft-stage .dbub { padding: 16px 18px; }
  .draft-stage .dbub::after { left: 56px; bottom: -8.5px; border: 2px solid var(--bubble-line); border-top: 0; border-left: 0; transform: rotate(45deg); }
  .draft-stage .dbub .say { font-size: 20px; }
  .draft-stage .dbub p { font-size: 15px; -webkit-line-clamp: 3; }
  .draft-stage .dbub .top b { font-size: 17px; }
  .draft-stage .cmdbody { width: auto; height: 220px; max-width: 190px; margin: 0 0 0 10px; }

  /* Draft complete: the picks in two columns under the empire */
  .dsum:not(.end-draft) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dsum:not(.end-draft) .emp { grid-column: 1 / -1; }
  .go-war.btn-primary { display: block; width: min(420px, 100%); margin: 18px auto 6px; }

  /* Result: the picks in two columns */
  .end-draft { grid-template-columns: 1fr 1fr; gap: 8px; }
}
/* The first card in the war log, so it's never empty before year 1 (Sam, 30 Oct) */
.event-start { --edge: var(--accent); animation: none; }

/* ==== Daily pages (chunk 2) ==== */
/* The Daily Draft | Daily quiz switch: the app's segmented pill */
.daily-switch { gap: 4px; padding: 4px; border: 0; border-radius: 16px; background: var(--surface); }
.daily-switch-tab { border-radius: 12px; color: var(--muted); font-family: var(--body-font); font-weight: 700; font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.daily-switch-tab + .daily-switch-tab { border-left: 0; }
.daily-switch-tab.active { background: var(--accent); color: var(--accent-ink); }
.daily-head h1 { font-family: var(--body-font); font-weight: 800; text-transform: none; letter-spacing: -0.01em; font-size: 1.6rem; line-height: 1.15; }
.daily-adv { margin: 10px 0 12px; }
.daily-adv .bubble { flex: 1; }
.dd-slogan { font-weight: 800; }
.dd-example { border: 0; border-radius: 14px; background: var(--surface); }
/* Rule tiles + the play screens' panels: the app's surfaces */
.daily-rules > *, .daily-rule { border: 0; border-radius: 16px; background: var(--surface); }
.dd-slot { border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dd-slot.open { border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dd-slot.open.target { border: 0; background: rgba(34, 211, 238, 0.1); box-shadow: inset 0 0 0 2px var(--accent); }
.dd-slot-cat { font-family: var(--num-font); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em; }
.dd-tip { border: 0; border-radius: 14px; background: var(--bubble-bg); box-shadow: inset 0 0 0 2px var(--bubble-line); }
.dd-tip-label { color: var(--accent); }
.daily-hud > *, .daily-stat { border: 0; border-radius: 14px; background: var(--surface); }
.daily-frame { border-radius: 20px; }
.daily-zoom button { border-radius: 12px; min-height: 40px; }
.daily-result, .daily-board, .dd-result { border: 0; border-radius: 22px; background: var(--surface); }
.res-adv { justify-content: center; text-align: left; }
.res-adv .bubble { flex: 0 1 auto; max-width: 240px; }
.xp-panel { border: 0; border-radius: 16px; background: var(--surface-2); }
.xp-btn { border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--head-font); font-weight: 800; box-shadow: 0 3px 0 var(--accent-deep); }
.xp-btn:active { transform: translateY(3px); box-shadow: none; }
.dd-demo-slot { border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dd-demo-slot.filled { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ach-line, .achievement-line { border: 0; border-radius: 16px; background: var(--surface-2); }
.dd-flip-face { border-radius: 14px; background: var(--surface); }

/* ---- Top bar: the app's streak flame + level badge ---- */
.streak-btn { gap: 6px; padding: 0 12px; color: var(--text); }
.streak-btn svg { width: 18px; height: 18px; color: var(--flame); }
.streak-btn.lit svg { filter: none; }
.streak-btn:not(.lit) svg { color: var(--faint); }
.streak-days { font: 700 15px var(--body-font); font-variant-numeric: tabular-nums; color: var(--text); }
.streak-btn.due::after { top: 0; right: 0; background: var(--gold); box-shadow: none; border: 2px solid var(--bg); width: 11px; height: 11px; }
.level-btn {
  gap: 8px; min-height: 44px; padding: 0 11px 0 4px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--text);
}
@media (hover: hover) { .level-btn:hover { background: var(--surface-2); border: 0; } }
.level-num {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink); font: 800 19px var(--head-font);
}
.level-meta { display: grid; gap: 5px; text-align: left; }
.level-lv { font: 600 10px/1.2 var(--num-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.level-bar { position: relative; display: block; width: 50px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.level-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }

/* ==== Chunk 3: account, My Nation, info pages ==== */
.account-signin { border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.3); }
.account-stats > *, .stat-tile, .ach-card, .run-row, .nation-card, .nm-step, .htp-step, .ranked-by, .rk-row, .wn-card, .soon-card { border-radius: 16px; }
.footer-app { margin: 6px 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* Labels: Inter caps (no monospace) - tighter tracking than the old mono labels */
.drawn-label, .stat-label, .event-numbers, .micro { letter-spacing: 0.08em; font-weight: 700; }

/* End screen: today's dailies under New run / Feedback (Sam, 5 Nov) */
.end-dailies { max-width: 520px; margin: 18px auto 0; }
.end-dailies-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.end-dailies-next { font: 600 13px var(--body-font); color: var(--muted); }
.end-daily-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 0; }
