/* TagTeam Agents — the TagTeam "night table" (same family as Words TagTeam, /tagteam/style.css)
   with its own CLASSIFIED accent: a charcoal briefing table with a red desk-lamp glow and fine
   grain, the 20 code names on thick ivory dossier tiles inside a brass frame that leans back,
   the clue on an ivory slip with a red stamp. Brass and glass buttons; hand-off buttons wear
   the colour of the player who receives the link. Layout basics: /shared/cb-arcade.css.

   Two-player identity, shared with every TagTeam game: the Handler is Player A (BLUE), the
   Operative is Player B (ORANGE).

   Card states differ in lightness and carry a mark, so they read without colour:
     agent (contacted)  emerald jewel, white text, tick       bystander  graphite, sunk lower
     assassin           onyx with a red ring and a skull       handler's peek: mint tile with a
     dot (agent) / rose tile with a crosshair and red ring (assassin) */

:root {
  --pa: #2463eb; --pa-soft: #dbe7ff; --pa-ink: #1d4fc4;
  --pb: #e85d04; --pb-soft: #ffe8d6; --pb-ink: #b44700;
}
.ag-body {
  --ink: #eceef3; --ink-2: #bcc1cf; --ink-3: #868d9f;
  --table-1: #2c2f39; --table-2: #17191f; --table-3: #0c0d11;
  --grout: #0a0b0f;
  --brass-hi: #fbe7ae; --brass-1: #e8c472; --brass-2: #c4943f; --brass-3: #8a6224; --brass-4: #5e4116;
  --iv-hi: #fffdf6; --iv-1: #fbf1db; --iv-2: #f0dfba; --iv-s1: #e3c993; --iv-s2: #c9a365; --iv-s3: #9a7442;
  --tile-ink: #24180c;
  --ok-hi: #4fdba5; --ok: #1d9b69; --ok-lo: #137a52; --ok-e1: #0f6a46; --ok-e2: #0b5638; --ok-e3: #07402a;
  --off-hi: #4b4f5c; --off: #383b46; --off-lo: #2b2d36; --off-e1: #1f2128; --off-e2: #17181d; --off-ink: #9ca1b0;
  --red: #d8322a; --red-hi: #ff6b5e; --red-lo: #8f1d17;
  --pa-j: #5b8dff; --pa-j2: #2f5fd6; --pb-j: #ff8a3d; --pb-j2: #d4570c;
  --cbx-body: 'Montserrat', system-ui, sans-serif; --cbx-display: 'Montserrat', system-ui, sans-serif;
}
body.ag-body { --cbx-accent: #c0302a; overscroll-behavior-y: none; }
html, body { overflow-x: clip; }
.hidden { display: none !important; }

/* ---------- hero ---------- */
.tt-container { width: 100%; }   /* body is a flex column (site.css): auto margins would shrink-wrap it */
.cbx-title .a { color: var(--pa); }
.cbx-title .b { color: var(--pb); }
.cbx-title em { color: #b3261e; }
body:has(#play:not(.hidden)) .tt-header .cbx-sub,
body:has(#play:not(.hidden)) .tt-header .cbx-kicker,
body:has(#play:not(.hidden)) .tt-header .cbx-mascot { display: none; }
body:has(#play:not(.hidden)) .tt-header { margin-bottom: 10px; }
body:has(#play:not(.hidden)) .tt-header .cbx-title { font-size: 26px; margin: 0; }
@media (max-width: 600px) {
  body:has(#play:not(.hidden)) .cb-header,
  body:has(#play:not(.hidden)) .tt-header { display: none; }
  body:has(#play:not(.hidden)) .tt-container { padding-top: 8px; }
}

/* ---------- the table: setup card and play card ---------- */
.cbx-card.ag-play, .cbx-card#setup {
  color: var(--ink); isolation: isolate; border: 1px solid rgba(255, 255, 255, .07); border-top: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(110% 55% at 50% -10%, rgba(255, 90, 70, .17), transparent 60%),
    radial-gradient(90% 50% at 50% 112%, rgba(232, 196, 114, .08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--table-1), var(--table-2) 48%, var(--table-3));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 34px 70px -28px rgba(8, 8, 12, .8), 0 10px 24px -12px rgba(8, 8, 12, .55);
}
.cbx-card.ag-play::before, .cbx-card#setup::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cbx-card.ag-play p, .cbx-card#setup p { color: inherit; }
.cbx-card#setup h2 { color: #fff; margin-bottom: 12px; }
/* the stamp in the setup card's corner */
.cbx-card#setup h2::after {
  content: 'Classified'; display: inline-block; margin-left: 10px; padding: 3px 8px 2px; vertical-align: 4px; rotate: -6deg;
  border: 2px solid var(--red); border-radius: 5px; color: var(--red-hi); font: 900 10.5px/1.2 var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; opacity: .9;
}
.cbx-full { --cbx-full-pad: 6px; }

/* brass primary, glass secondary */
.ag-play .cbx-btn, #setup .cbx-btn {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-1) 40%, var(--brass-2)); color: #2b1b05; border: 0; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--brass-3), 0 5px 0 var(--brass-4), 0 12px 22px -8px rgba(232, 196, 114, .45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.ag-play .cbx-btn.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); color: var(--ink); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(0, 0, 0, .4); text-shadow: none;
}
/* hand-off buttons: a jewel in the colour of the player who receives the link */
.ag-play .cbx-btn.ag-to-b, .ag-play .cbx-btn.ag-to-a {
  --j: var(--pb-j); --j2: var(--pb-j2); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--j) 60%, #fff), var(--j) 40%, var(--j2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 color-mix(in srgb, var(--j2) 70%, #000), 0 5px 0 color-mix(in srgb, var(--j2) 45%, #000),
    0 12px 22px -8px color-mix(in srgb, var(--j) 60%, transparent);
}
.ag-play .cbx-btn.ag-to-a { --j: var(--pa-j); --j2: var(--pa-j2); margin-top: 2px; }
.ag-play .cbx-btn:active, #setup .cbx-btn:active { transform: translateY(3px); }
.ag-play .cbx-btn:not(.alt):not(.ag-to-a):not(.ag-to-b):active, #setup .cbx-btn:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 var(--brass-3), 0 2px 0 var(--brass-4); }
.ag-play .cbx-btn.ag-to-a:active, .ag-play .cbx-btn.ag-to-b:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 color-mix(in srgb, var(--j2) 70%, #000); }

/* ---------- setup: the two roles ---------- */
.ag-roles-intro { display: grid; gap: 10px; margin: 0 0 16px; }
.ag-role-card {
  --j: var(--pa-j); display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 16px;
  font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--ink-2) !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--j) 16%, transparent), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 3px 0 0 var(--j);
}
.ag-role-card.b { --j: var(--pb-j); }
.ag-role-card strong { color: #fff; font-weight: 800; }
.ag-role-card i, .role-badge::before {
  font-style: normal; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font: 900 13px/1 var(--cbx-body); text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .35);
}
.ag-role-card.a i, .role-badge.a::before { background: radial-gradient(circle at 35% 30%, #9dbcff, var(--pa-j) 45%, var(--pa-j2)); }
.ag-role-card.b i, .role-badge.b::before { background: radial-gradient(circle at 35% 30%, #ffc196, var(--pb-j) 45%, var(--pb-j2)); }

/* ---------- play: the role plate and the agents counter share the top row ---------- */
.ag-play { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 12px 12px 14px; scroll-margin-top: 8px; }
.ag-play > * { grid-column: 1 / -1; min-width: 0; }
.ag-play > .ag-top { grid-column: 1; }
.ag-play > .hud { grid-column: 2; }
@media (min-width: 601px) { .ag-play { padding: 18px 20px 20px; scroll-margin-top: 70px; } }
.ag-top { display: flex; justify-content: flex-start; margin: 0; }
.role-badge {
  --j: var(--pa-j);
  position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 13px 5px 6px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--j) 75%, transparent); color: #fff; font: 800 13.5px var(--cbx-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, color-mix(in srgb, var(--j) 18%, transparent), rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--j) 30%, transparent), 0 8px 22px -8px color-mix(in srgb, var(--j) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.role-badge.b { --j: var(--pb-j); }
.role-badge.a::before { content: 'A'; } .role-badge.b::before { content: 'B'; }
/* agents still out there: a little brass-rimmed counter (the label is shortened visually) */
.hud {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 12px; margin: 0;
  font-size: 0; color: var(--ink-3); background: var(--grout);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 196, 114, .35), 0 1px 0 rgba(255, 255, 255, .06);
}
.hud::before { content: 'Agents'; font: 700 11px var(--cbx-body); letter-spacing: .08em; text-transform: uppercase; }
.hud #score {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 8px;
  font: 900 18px/1 var(--cbx-body); color: #2b1b05; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-1) 45%, var(--brass-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 var(--brass-3);
}

/* the Handler's clue, shown to the Operative: an ivory slip with a red stamp */
.ag-clue {
  position: relative; margin: 10px 0 0; padding: 10px 14px 12px; border-radius: 12px; text-align: center; color: var(--red);
  font: 900 11px/1.2 var(--cbx-body); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(170deg, var(--iv-hi), var(--iv-1) 45%, var(--iv-2));
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--iv-s1), 0 2px 0 var(--iv-s2), 0 3px 0 var(--iv-s3), 0 8px 14px -4px rgba(0, 0, 0, .55);
  rotate: -.6deg; animation: ag-slip .5s cubic-bezier(.3, 1.4, .5, 1) backwards;
}
.ag-clue::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(216, 50, 42, .4); border-radius: 8px; pointer-events: none; }
.ag-clue br { display: none; }
.ag-clue strong { display: block; margin-top: 3px; font: 900 clamp(22px, 7vw, 28px)/1.1 var(--cbx-display); letter-spacing: .02em; text-transform: none; color: var(--tile-ink); overflow-wrap: anywhere; }
@keyframes ag-slip { from { opacity: 0; translate: 0 -12px; rotate: -4deg; } }

/* the Handler writes the clue */
#clue-input-area { margin-top: 10px; }
.clue-box { display: flex; gap: 8px; margin-bottom: 8px; }
.clue-input, .number-input {
  min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .14); min-width: 0; outline: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(30, 32, 40, .45)); color: #fff; font: 700 17px var(--cbx-body);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5);
}
.clue-input { flex: 3; border-color: color-mix(in srgb, var(--pa-j) 45%, transparent); }
.number-input { flex: 1; text-align: center; max-width: 84px; }
.clue-input:focus, .number-input:focus { border-color: var(--pa-j); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 4px rgba(91, 141, 255, .25); }
.clue-input::placeholder, .number-input::placeholder { color: var(--ink-3); font-weight: 600; }

/* ---------- the board: stage (perspective) > brass frame (leans back) > grout > dossier tiles ---------- */
.ag-stage { perspective: 1100px; perspective-origin: 50% 100%; padding: 10px 0 10px; }
.ag-frame {
  position: relative; padding: 7px; border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 18%),
    conic-gradient(from 210deg at 30% 20%, var(--brass-2), var(--brass-hi), var(--brass-1), var(--brass-3), var(--brass-2), var(--brass-1), var(--brass-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .25),
    0 2px 0 var(--brass-3), 0 4px 0 var(--brass-4), 0 7px 0 #3e2a0c, 0 8px 1px rgba(0, 0, 0, .4),
    0 26px 36px -10px rgba(0, 0, 0, .75), 0 50px 70px -30px rgba(0, 0, 0, .6);
  transform: rotateX(var(--tilt, 6deg)); transform-origin: 50% 0%;
  animation: ag-settle .8s cubic-bezier(.2, .9, .25, 1) backwards;
}
@keyframes ag-settle { from { transform: rotateX(32deg) translateY(26px) scale(.94); opacity: 0; } }
@media (max-width: 600px) { .ag-frame { --tilt: 3.5deg; padding: 6px; border-radius: 17px; } }

#grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; width: 100%; container-type: inline-size;
  padding: 8px 8px 11px; border-radius: 13px; background: var(--grout);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .6);
}
@media (max-width: 600px) { #grid { gap: 6px; padding: 6px 6px 9px; border-radius: 11px; } }

/* a code name: a thick ivory tile; on phones it grows with the screen height */
.tile {
  --e1: var(--iv-s1); --e2: var(--iv-s2); --e3: var(--iv-s3);
  position: relative; min-width: 0; min-height: clamp(54px, calc((100svh - 330px) / 5), 86px); padding: 4px 3px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; text-align: center; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font: 800 clamp(9.5px, (25cqi - 11px) / (var(--len, 6) * .82), 17px)/1.12 var(--cbx-body); letter-spacing: -.02em; color: var(--tile-ink); text-transform: uppercase;
  overflow-wrap: anywhere;
  background: linear-gradient(170deg, var(--iv-hi) 0%, var(--iv-1) 38%, var(--iv-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 1px 0 var(--e1), 0 2px 0 var(--e2), 0 3px 0 var(--e3), 0 4px 0 var(--e3), 0 6px 7px rgba(0, 0, 0, .6);
  transition: translate .12s cubic-bezier(.3, 1.4, .5, 1);
  animation: ag-deal .38s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(.25s + var(--i, 0) * 22ms);
}
@supports not (height: 100svh) { .tile { min-height: clamp(54px, calc((100vh - 330px) / 5), 86px); } }
@media (min-width: 601px) { .tile { min-height: 74px; border-radius: 13px; } }
.tile:nth-child(4n+2) { --i: 1; } .tile:nth-child(4n+3) { --i: 2; } .tile:nth-child(4n+4) { --i: 3; }
.tile:nth-child(n+5) { --i: 4; } .tile:nth-child(n+9) { --i: 6; } .tile:nth-child(n+13) { --i: 8; } .tile:nth-child(n+17) { --i: 10; }
@keyframes ag-deal { 0% { translate: 0 -10px; opacity: 0; } 60% { opacity: 1; } 100% { translate: 0 0; } }
#grid.dealt .tile { animation: none; }
.ag-play[data-role="operative"] .tile:not(.agent):not(.bystander):not(.assassin) { cursor: pointer; }
@media (hover: hover) { .ag-play[data-role="operative"] .tile:not(.agent):not(.bystander):not(.assassin):hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 0 var(--e1), 0 2px 0 var(--e2), 0 3px 0 var(--e3), 0 4px 0 var(--e3), 0 6px 7px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 138, 61, .7); } }
.ag-play[data-role="operative"] .tile:not(.agent):not(.bystander):not(.assassin):active { translate: 0 3px; }

/* corner marks (never colour alone) */
.tile.agent::after, .tile.peek-agent::after, .tile.peek-assassin::after {
  content: ''; position: absolute; right: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
}
/* contacted agent: emerald jewel, tick */
.tile.agent {
  --e1: var(--ok-e1); --e2: var(--ok-e2); --e3: var(--ok-e3);
  color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background-color: var(--ok); background-image: radial-gradient(130% 95% at 30% 12%, var(--ok-hi), var(--ok) 50%, var(--ok-lo));
}
#grid .tile.agent.just { animation: ag-flip .5s cubic-bezier(.3, 1.3, .5, 1); }
.tile.agent::after { background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230b5638' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* bystander: a dark, thinner tile that sits lower in the board */
.tile.bystander {
  color: var(--off-ink); text-shadow: 0 -1px 0 rgba(0, 0, 0, .4); translate: 0 2px;
  background: linear-gradient(170deg, var(--off-hi), var(--off) 45%, var(--off-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--off-e1), 0 2px 3px rgba(0, 0, 0, .5);
}
#grid .tile.bystander.just { animation: ag-flip .45s cubic-bezier(.3, 1.3, .5, 1); }
/* the assassin: onyx with a red ring (and a skull) */
.tile.assassin {
  color: #fff; text-shadow: 0 0 10px rgba(255, 90, 80, .6);
  background: radial-gradient(120% 90% at 30% 10%, #3b3d46, #15161b 55%, #050507);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 0 #000, 0 2px 0 #000, 0 3px 0 #000, 0 0 0 2px var(--red), 0 0 18px rgba(216, 50, 42, .75);
}
#grid .tile.assassin.just { animation: cbx-shake .45s ease; }
.tile.assassin::before { content: '💀'; position: absolute; left: 4px; top: 3px; font-size: 13px; line-height: 1; }
/* the Handler's private view: mint = agent (dot), rose + red ring = assassin (crosshair) */
.tile.peek-agent {
  --e1: #8fd1ad; --e2: #5fae85; --e3: #3c8661; color: #0b4a2f;
  background: linear-gradient(170deg, #f2fff7 0%, #d4f5e2 45%, #b5e7cb 100%);
}
.tile.peek-agent::after { background: radial-gradient(circle at 35% 30%, var(--ok-hi), var(--ok) 55%, var(--ok-lo)); box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0, 0, 0, .35); }
.tile.peek-assassin {
  --e1: #e39a93; --e2: #c4665e; --e3: #8f3b35; color: #7a1610;
  background: linear-gradient(170deg, #fff4f2 0%, #fbd9d4 45%, #f2bab2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 0 var(--e1), 0 2px 0 var(--e2), 0 3px 0 var(--e3), 0 4px 0 var(--e3), 0 6px 7px rgba(0, 0, 0, .6), 0 0 0 2.5px var(--red);
}
.tile.peek-assassin::after { width: 14px; height: 14px; right: 4px; top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c0302a' stroke-width='2.4'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M10 1v6M10 13v6M1 10h6M13 10h6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes ag-flip { 0% { transform: rotateX(-90deg); } 60% { transform: rotateX(12deg); } 100% { transform: none; } }

.ag-msg { min-height: 0; margin: 10px 0 0; text-align: center; font-weight: 800; font-size: 15px; color: var(--ink); }
.ag-msg:empty { margin: 0; }
.ag-msg.good { color: #6ff0b6; }
.ag-msg.bad { color: #ff8a80; }
#result-area { display: grid; gap: 10px; margin-top: 12px; }
#result-area.hidden { display: none !important; }
.ag-play[data-role="over"] .ag-top, .ag-play[data-role="over"] .hud { display: none; }

/* ---------- end screen (top of the play card) ---------- */
.ag-result { margin: -2px 0 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.ag-play .ag-result .cbx-kicker { color: var(--brass-1); }
.ag-play .ag-result .cbx-big { color: #fff; font-family: var(--cbx-body); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.ag-play .ag-result .cbx-big small { color: var(--ink-3); }
.ag-play .ag-result .cbx-verdict { color: #fff; font-size: 18px; font-weight: 800; }
.ag-result .cbx-chips { margin-bottom: 0; }
.ag-result .cbx-chips > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .09); }
.ag-result .cbx-chips b { color: #fff; }
.ag-result .cbx-chips > .b { border-color: rgba(255, 138, 61, .45); }
.ag-result .cbx-chips > .b b { color: var(--pb-j); }

/* ---------- reading card + footer ---------- */
.how-to-play { margin-top: 18px; }
.how-to-play h2 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.how-to-play h3 { font-size: 18px; font-weight: 900; }
.how-to-play p, .how-to-play li { font-weight: 600; }
.how-to-play strong { color: var(--cbx-ink); font-weight: 800; }
.ag-copy { margin: 18px 0 0; padding-top: 12px; border-top: 2px solid var(--cbx-soft); text-align: center; font-size: 13.5px; color: var(--cbx-muted) !important; }
.ag-footer { margin-top: 18px; padding: 16px; text-align: center; font-weight: 700; font-size: 13.5px; color: var(--cbx-muted); }
.ag-footer a { color: var(--cbx-ink-2); }

/* Montserrat throughout TagTeam: heavy for tiles, titles and buttons, lighter for running text */
.cbx-title { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 900; letter-spacing: -.03em; }
.cbx-sub, .cbx-card p { font-weight: 600; }
.cbx-kicker { font-weight: 800; letter-spacing: .16em; }
.cbx-card h2 { font-weight: 900; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .ag-frame, #grid .tile, #grid .tile.just, .ag-clue { animation: none; }
  .tile { transition: none; }
}
