/* Console (v36.9, Kyle 2026-11-17): Summon's second look. Classic (green and
   gold, pixel lettering) stays the default; a person can pick Console on the
   front page or in the life counter's menu, and the choice is kept on that
   device only (localStorage summon.look). Every page links this file and sets
   <html data-look="console"> from that choice before it first paints, so
   nothing here applies unless it was picked.

   Our own design: black, flat bars of colour, rounded "elbow" corners and a
   tall condensed typeface. No names, insignia or artwork from any film or
   show (docs/COMPLIANCE.md).

   Antonio, SIL Open Font License 1.1, served from our own /fonts/ like the
   others. It stands in for Press Start 2P wherever a page asks for --px, made
   larger (size-adjust) so the sizes written for the pixel font still read. */
@font-face {
  font-family: 'Summon Console'; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/antonio-v5-latin-700.woff2') format('woff2');
  size-adjust: 150%;
}
@font-face {
  font-family: 'Summon Console Tall'; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/antonio-v5-latin-700.woff2') format('woff2');
}

/* ── the colours: the same names every page already uses ──────────── */
html[data-look="console"] {
  --bg: #000000;
  --panel: #0e0d13;
  --panel-2: #1c1925;
  --gold: #f2a03d;
  --gold-light: #ffc37a;
  --cream: #f3ebdd;
  --text: #f3ebdd;
  --muted: #b9a6e8;
  --soft: #d6d2e4;
  --danger: #ff7a63;
  --bad: #ff7a63;
  --rule: rgba(185, 166, 232, 0.30);
  --px: 'Summon Console', 'Arial Narrow', 'Avenir Next Condensed', sans-serif;
  /* the console's own bars */
  --c-amber: #f2a03d;
  --c-lilac: #b9a6e8;
  --c-blue: #8c9cff;
  --c-sand: #d9a27e;
  --c-ink: #000000;
  background: #000000;
  color-scheme: dark;
}
html[data-look="console"] body { background: #000000; }

/* ── lettering: capitals, a little apart ───────────────────────────── */
html[data-look="console"] h1,
html[data-look="console"] h2,
html[data-look="console"] h3,
html[data-look="console"] .label,
html[data-look="console"] button,
html[data-look="console"] .btnlink,
html[data-look="console"] .seat,
html[data-look="console"] .chip { text-transform: uppercase; letter-spacing: 0.04em; }
html[data-look="console"] h1,
html[data-look="console"] h2 { text-shadow: none; }

/* ── the pieces every page shares ─────────────────────────────────── */
/* Buttons are pills: flat colour, no pixel shadow. */
html[data-look="console"] button,
html[data-look="console"] .btnlink { border-radius: 999px; box-shadow: none; image-rendering: auto; }
html[data-look="console"] button:active,
html[data-look="console"] .btnlink:active { transform: none; }

/* A panel: a coloured bar down its left side that turns into the bar across
   its heading, round at the corner where they meet. */
html[data-look="console"] .panel:not(#game .panel) {
  background: #000000;
  border: 0;
  border-left: 14px solid var(--c-lilac);
  border-radius: 26px 0 0 26px;
  box-shadow: none;
}
html[data-look="console"] .panel-head {
  background: var(--c-lilac);
  color: #000000;
  border-radius: 0 999px 999px 0;
  margin-left: -1px;
  border-bottom: 0;
}
html[data-look="console"] .panel-head h2,
html[data-look="console"] .panel-head .label { color: #000000; }
html[data-look="console"] .panel:nth-of-type(3n+2):not(#game .panel) { border-left-color: var(--c-amber); }
html[data-look="console"] .panel:nth-of-type(3n+2) .panel-head { background: var(--c-amber); }
html[data-look="console"] .panel:nth-of-type(3n):not(#game .panel) { border-left-color: var(--c-blue); }
html[data-look="console"] .panel:nth-of-type(3n) .panel-head { background: var(--c-blue); }

/* ── the tab bar: a row of coloured blocks, round at both ends ─────── */
html[data-look="console"] #tabbar {
  background: #000000; border-top: 0 !important; gap: 3px;
  font-family: 'Summon Console Tall', 'Arial Narrow', sans-serif;
}
html[data-look="console"] #tabbar a {
  background: var(--c-lilac); color: #000000; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 14px;
}
html[data-look="console"] #tabbar a:nth-child(3n+1) { background: var(--c-sand); }
html[data-look="console"] #tabbar a:nth-child(3n) { background: var(--c-blue); }
html[data-look="console"] #tabbar a:first-child { border-radius: 24px 0 0 24px; }
html[data-look="console"] #tabbar a:last-child { border-radius: 0 24px 24px 0; }
html[data-look="console"] #tabbar a[aria-current="page"] { background: var(--c-amber); color: #000000; font-weight: 700; }
html[data-look="console"] #tabbar a:focus-visible { outline: 3px solid #ffffff; outline-offset: -5px; }
html[data-look="console"].tb-float #tabbar { border: 0 !important; background: #000000; padding: 5px; border-radius: 28px; }

/* ── the life counter's players (life.html) ───────────────────────────
   Each seat is a frame: a bar across the side facing the middle of the
   table and down the side facing the edge, joined by a rounded elbow, with
   the player's name cut into the bar. A seat turned to face the other side
   of the table is turned with it, so it reads the same way for its player. */
html[data-look="console"] #game .panel {
  --bar: 30px;
  background: #000000;
  border: 0;
  box-shadow: none;
  padding-top: var(--bar);
}
html[data-look="console"] #game .panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  border: 0 solid var(--pc, var(--c-amber));
  border-top-width: var(--bar);
}
html[data-look="console"] #game .panel.nm-left { padding-left: var(--bar); }
html[data-look="console"] #game .panel.nm-left::before { border-left-width: var(--bar); border-radius: 46px 0 0 0; }
html[data-look="console"] #game .panel.nm-right { padding-right: var(--bar); }
html[data-look="console"] #game .panel.nm-right::before { border-right-width: var(--bar); border-radius: 0 46px 0 0; }
/* a short black cut in the side bar, as the console's bars have */
html[data-look="console"] #game .panel::after {
  content: ''; position: absolute; top: 46%; width: var(--bar); height: 5px; background: #000000; z-index: 1; pointer-events: none;
}
html[data-look="console"] #game .panel.nm-left::after { left: 0; }
html[data-look="console"] #game .panel.nm-right::after { right: 0; }
html[data-look="console"] #game .pname {
  top: 0; height: var(--bar); line-height: var(--bar); padding: 0 10px; z-index: 3;
  background: #000000; color: var(--pc, var(--c-amber));
  font-family: 'Summon Console Tall', 'Arial Narrow', sans-serif; font-size: 21px; text-transform: uppercase;
  letter-spacing: 0.05em; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-look="console"] #game .panel.nm-left .pname { left: 58px; }
html[data-look="console"] #game .panel.nm-right .pname { right: 58px; }
html[data-look="console"] #game .pname small { display: inline; font-size: 13px; margin: 0 0 0 8px; opacity: 0.85; }
html[data-look="console"] #game .stage { z-index: 1; }
html[data-look="console"] #game .bignum {
  font-family: 'Summon Console Tall', 'Arial Narrow', sans-serif; font-weight: 700;
  color: var(--pc, var(--c-amber)); text-shadow: none; letter-spacing: 0.01em;
}
@supports (container-type: size) {
  html[data-look="console"] #game .bignum { font-size: min(64cqh, 50cqw); line-height: 1; }
}
html[data-look="console"] #game .zone .sign { color: var(--pc, var(--c-amber)); opacity: 0.75; font-family: 'Summon Console Tall', sans-serif; font-size: clamp(42px, 11vmin, 68px); line-height: 1; }
html[data-look="console"] #game .zone:active .sign { opacity: 1; }
html[data-look="console"] #game .delta { font-family: 'Summon Console Tall', sans-serif; }
html[data-look="console"] #game .more {
  position: relative; z-index: 2;
  width: auto; margin: 0 12px 10px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--pc, var(--c-amber)); color: #000000;
  font-family: 'Summon Console Tall', sans-serif; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase;
}
html[data-look="console"] #game .more:active { background: #ffffff; }
html[data-look="console"] #game .more .warn { color: #7a0000; }
/* out of the game: the frame goes red, as the classic border does */
html[data-look="console"] #game .panel.dead { animation: none; }
html[data-look="console"] #game .panel.dead::before { border-color: var(--danger); animation: consoleDead 0.5s steps(2) 3; }
html[data-look="console"] #game .panel.dead .pname,
html[data-look="console"] #game .panel.dead .bignum { color: var(--danger); }
html[data-look="console"] #game .panel.dead .more { background: var(--danger); }
@keyframes consoleDead { 50% { border-color: rgba(255, 122, 99, 0.25); } }
html[data-look="console"] #game .panel.roll-hi::before { border-color: #ffffff; }
html[data-look="console"] #game .panel.roll-win { animation: none; }
html[data-look="console"] #game .panel.roll-win::before { animation: consoleWin 0.3s steps(2) 6; }
@keyframes consoleWin { 50% { border-color: #ffffff; } }
/* the menu button and the turn count: pills in the seam between seats */
html[data-look="console"] #game .hub {
  width: 64px; height: 40px; border-radius: 999px; border: 0;
  background: var(--c-amber); color: #000000; box-shadow: 0 0 0 5px #000000;
  font-family: 'Summon Console Tall', sans-serif; font-size: 16px; letter-spacing: 0.06em;
}
html[data-look="console"] #game .turn {
  border-radius: 999px; box-shadow: 0 0 0 4px #000000;
  font-family: 'Summon Console', 'Arial Narrow', sans-serif; letter-spacing: 0.04em;
}
html[data-look="console"] #game .board { gap: 8px; background: #000000; }

@media (max-height: 560px), (max-width: 340px) {
  html[data-look="console"] #game .panel { --bar: 22px; }
  html[data-look="console"] #game .pname { font-size: 16px; }
}

/* no scanlines over a console */
html[data-look="console"] body::after { display: none; }
