/* ============================================================
   THE GAME — "Beat Jacquard" hero card (dark glass over the
   array canvas). Vanilla component; tokens from home.css.
   ============================================================ */
.game {
  /* the palette the card is drawn in; home.css sets the same values, so
     these only matter on pages without it (the Brand Read, /game/) */
  --cream: #f6efe0; --cream-2: #eed3e2; --cream-3: #d9aec7; --cream-4: #c08bab;
  --hair: rgba(246,239,224,0.16); --hair-2: rgba(246,239,224,0.24);
  --pink: #ff7ae9; --coral: #ff6051; --yellow: #ffe661; --ok: #2eb886;
  position: relative; z-index: 2;
  background: linear-gradient(165deg, rgba(36,0,22,0.78), rgba(36,0,22,0.55));
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 22px 22px;
  box-shadow: 0 34px 90px -44px rgba(0,0,0,0.7);
}


/* resting state — slim capsule until played */
.game.is-mini {
  display: inline-flex; align-items: center; gap: 13px;
  width: fit-content; max-width: 100%; min-height: 0;
  justify-self: start; align-self: start; margin-top: 476px;
  background: rgba(36,0,22,0.55); border: 1px solid var(--hair);
  border-radius: 999px; padding: 9px 10px 9px 16px;
  box-shadow: 0 14px 40px -26px rgba(0,0,0,0.55);
}
.game.is-mini .g-chip { flex: none; }
.g-mini-t {
  font-family: var(--f-display); font-size: 16.5px; letter-spacing: -0.01em;
  color: var(--cream); white-space: nowrap;
}
.g-btn.sm { padding: 8px 18px; font-size: 13px; flex: none; }
@media (max-width: 980px) {
  .game.is-mini { flex-wrap: wrap; border-radius: 22px; margin-top: 0; align-self: center; }
  .g-mini-t { white-space: normal; }
}

.g-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.g-eyebrow { font-family: var(--f-label); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }
.g-chip {
  display: inline-block; font-family: var(--f-label); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink); border: 1px solid var(--pink); border-radius: 999px;
  padding: 2px 9px; margin-right: 8px; vertical-align: 1px;
}
.g-chip.ch { color: var(--cream-2); border-color: var(--hair-2); }
.g-score { font-family: var(--f-label); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }

.g-body { padding-top: 16px; }
.g-h { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 27px); line-height: 1.12; letter-spacing: -0.02em; color: var(--cream); margin: 0; }
.g-p { font-size: 14px; line-height: 1.6; color: var(--cream-2); margin: 10px 0 0; }
.g-p.strong { color: var(--cream); font-weight: 600; }
.g-fine { display: block; font-family: var(--f-label); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-4); margin-top: 16px; }

/* industry picker */
.g-inds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.g-ind {
  font-family: var(--f-sans); font-weight: 600; font-size: 14px;
  color: var(--cream); text-align: left; cursor: pointer;
  background: rgba(246,239,224,0.05); border: 1px solid var(--hair-2);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.g-ind:hover { border-color: var(--pink); background: rgba(255,122,233,0.08); transform: translateY(-1px); }

/* rounds */
.g-meta { display: flex; gap: 8px; align-items: center; }
.g-meta .g-chip { margin-right: 0; }
.g-persona { font-family: var(--f-label); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); margin: 12px 0 0; }
.g-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.g-opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(246,239,224,0.04); border: 1px solid var(--hair);
  border-radius: 12px; padding: 12px 14px;
  color: var(--cream); font-family: var(--f-sans); font-size: 14px; line-height: 1.5;
  transition: border-color .15s ease, background .15s ease;
}
.g-opt:not(:disabled):hover { border-color: var(--pink); background: rgba(255,122,233,0.07); }
.g-opt.is-done { cursor: default; }
.g-opt.is-pick { border-color: var(--pink); }
.g-opt.is-win { border-color: var(--ok); background: rgba(46,184,134,0.08); }
.g-opt-t { display: block; }
.g-tags { display: block; margin: 6px 0 0; }
.g-tag {
  display: inline-block; font-family: var(--f-label); font-size: 8.5px;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px;
  padding: 2px 8px; margin-right: 5px; vertical-align: 2px;
}
.g-tag.win { color: #a8f0d0; background: rgba(46,184,134,0.18); border: 1px solid rgba(46,184,134,0.6); }
.g-tag.pick { color: var(--pink); border: 1px solid var(--pink); }
.g-tag.ctl { color: var(--cream-3); border: 1px solid var(--hair-2); }

/* the general models' picks */
.g-tag.ai {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--cream-2); border: 1px solid var(--hair-2);
  background: rgba(246,239,224,0.06);
}
.g-tag.ai b { font-weight: 700; color: var(--coral); }
.g-tag.ai.hit b { color: var(--ok); }
.g-ico { width: 13px; height: 13px; display: inline-block; vertical-align: middle; }
.g-tag.ai .g-ico { color: var(--cream); }

/* finale standings */
.g-stand { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.g-srow { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 12px; }
.g-sname { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-sans); font-weight: 600; font-size: 13px; color: var(--cream-2); }
.g-srow.jq .g-sname { color: var(--yellow); }
.g-srow.you .g-sname { color: var(--pink); }
.g-sbar { height: 5px; border-radius: 999px; background: rgba(246,239,224,0.12); overflow: hidden; }
.g-sbar i { display: block; height: 100%; border-radius: 999px; background: var(--cream-4); transition: width .8s cubic-bezier(0.34, 1, 0.4, 1); }
.g-srow.jq .g-sbar i { background: var(--yellow); }
.g-srow.you .g-sbar i { background: var(--pink); }
.g-sn { font-family: var(--f-data); font-weight: 500; font-size: 11px; color: var(--cream-2); text-align: right; }

/* reveal bars */
.g-res { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.g-bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(246,239,224,0.12); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cream-4); transition: width .8s cubic-bezier(0.34, 1, 0.4, 1); }
.g-bar i.win { background: var(--ok); }
.g-bar i.neg { background: var(--coral); }
.g-res b { font-family: var(--f-data); font-weight: 500; font-size: 11px; color: var(--cream-2); white-space: nowrap; }
.g-opt.is-win .g-res b { color: #a8f0d0; }

/* footer / finale */
.g-foot { margin-top: 16px; }
.g-insight { font-size: 13.5px; line-height: 1.6; color: var(--cream-2); margin: 0 0 14px; }
.g-btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--f-sans); font-weight: 600; font-size: 14px;
  background: var(--yellow); color: #240016;
  border: 1px solid var(--yellow); border-radius: 999px; padding: 11px 22px;
  transition: filter .15s ease;
}
.g-btn:hover { filter: brightness(1.06); }
.g-btn.ghost { background: transparent; color: var(--cream); border-color: var(--hair-2); }
.g-btn.ghost:hover { background: rgba(246,239,224,0.06); filter: none; }
.g-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.g-final-n { font-family: var(--f-display); font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -0.02em; color: var(--cream); margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .g-bar i { transition: none; }
  .g-ind, .g-opt { transition: none; }
}
@media (max-width: 980px) {
  .game { max-width: 560px; }
}
@media (max-width: 560px) {
  .game { padding: 18px 16px; min-height: 0; }
  .g-inds { grid-template-columns: 1fr; }
}

/* ---- the big card: /game/ and the Brand Read chapter ---------- */
.game.is-big { padding: 28px 32px 32px; border-radius: 24px; }
.game.is-big .g-eyebrow { font-size: 12px; }
.game.is-big .g-score { font-size: 12px; }
.game.is-big .g-h { font-size: clamp(28px, 3.2vw, 40px); }
.game.is-big .g-p { font-size: 17px; }
.game.is-big .g-persona { font-size: 12.5px; margin-top: 16px; }
.game.is-big .g-inds { gap: 12px; margin-top: 22px; }
.game.is-big .g-ind { font-size: 17px; padding: 18px 20px; border-radius: 14px; }
.game.is-big .g-opts { gap: 12px; margin-top: 18px; }
.game.is-big .g-opt { font-size: 17px; padding: 16px 20px; border-radius: 14px; }
.game.is-big .g-tag { font-size: 9.5px; padding: 3px 10px; }
.game.is-big .g-ico { width: 15px; height: 15px; }
.game.is-big .g-bar { height: 6px; }
.game.is-big .g-res b { font-size: 12.5px; }
.game.is-big .g-insight { font-size: 16px; }
.game.is-big .g-btn { font-size: 16px; padding: 13px 26px; }
.game.is-big .g-final-n { font-size: clamp(40px, 4vw, 56px); }
.game.is-big .g-srow { grid-template-columns: 140px 1fr 44px; }
.game.is-big .g-sname { font-size: 15px; }
.game.is-big .g-sbar { height: 7px; }
.game.is-big .g-sn { font-size: 13px; }
@media (max-width: 560px) {
  .game.is-big { padding: 20px 18px 22px; }
  .game.is-big .g-opt, .game.is-big .g-ind, .game.is-big .g-p { font-size: 15px; }
}

/* ---- the finale's inline analyser (/game/) ------------------- */
.g-analyse { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); }
.g-analyse .g-p { margin-top: 0; }
.g-analyse .hero-try { margin-top: 14px; max-width: 520px; }
.g-analyse .ana-teaser-note { margin-top: 10px; }
.g-analyse .g-fine { margin-top: 12px; }
