/* Thinking Games Inc. — site styles */

:root {
  --ink:       #0A0A0C;
  --ink-2:     #14141A;
  --ink-3:     #1E1E28;
  --paper:     #FFFFFF;
  --paper-2:   #F2F3F5;
  --paper-3:   #E4E6EA;

  --text:      #0A0A0C;
  --text-dim:  #55565E;
  --text-mute: #83858F;

  --on-dark:      #FFFFFF;
  --on-dark-dim:  #A8AAB4;
  --on-dark-mute: #74767F;

  --accent:      #1E5EFF;
  --accent-hot:  #4B82FF;
  --accent-glow: #00D9F5;

  --line-dark:  rgba(255,255,255,.14);
  --line-light: rgba(10,10,12,.12);

  --maxw: 1280px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }

h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* Kicker — uppercase label with leading rule */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--accent);
  flex: none;
}
.on-dark .kicker { color: var(--accent-glow); }
.on-dark .kicker::before { background: var(--accent-glow); }

.lede { font-size: 1.15rem; color: var(--text-dim); line-height: 1.6; }
.on-dark .lede { color: var(--on-dark-dim); }

/* ---------- Utility bar ---------- */

.utility {
  background: #000;
  color: var(--on-dark-mute);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  height: 34px;
  align-items: center;
}
.utility a { color: var(--on-dark-dim); }
.utility a:hover { color: #fff; }
.utility .u-hide { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,10,12,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1.05rem;
  color: #fff;
  flex: none;
}
.brand svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto 0 20px;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 26px 16px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  position: relative;
  transition: color .15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 3px;
  background: var(--accent-glow);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: #fff;
  width: 44px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn svg { transition: transform .18s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-outline { background: transparent; color: var(--ink); border-color: rgba(10,10,12,.25); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-sm { padding: 11px 20px; font-size: .72rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px);
  border-bottom: 4px solid var(--accent);
}

.hero-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-art .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero-art .b1 { width: 620px; height: 620px; background: #1E5EFF; top: -18%; right: -8%; }
.hero-art .b2 { width: 520px; height: 520px; background: #00D9F5; bottom: -26%; right: 14%; opacity: .28; }
.hero-art .b3 { width: 440px; height: 440px; background: #7A2BFF; top: 22%; left: -14%; opacity: .3; }

.hero-art .rules {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 12.5% 100%;
  opacity: .5;
}

/* Diagonal cut at the bottom of the hero, AAA-publisher style */
.hero-art .slash {
  position: absolute;
  left: -5%; right: -5%; bottom: -14%;
  height: 240px;
  background: linear-gradient(180deg, transparent, rgba(10,10,12,.85));
  transform: rotate(-3.5deg);
}

.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; margin-bottom: 24px; }
.hero h1 .hl { color: var(--accent-glow); }
.hero p { max-width: 54ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--on-dark-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Page head (interior pages) ---------- */

.page-head {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 4px solid var(--accent);
}
.page-head .hero-art .b1 { width: 460px; height: 460px; top: -30%; right: -6%; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); margin-bottom: 18px; }
.page-head .meta {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-grey { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head p { color: var(--text-dim); }
.section-dark .section-head p { color: var(--on-dark-dim); }

/* ---------- Numbered feature blocks ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.feature {
  padding: 40px 32px 44px 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line-light); }
.feature .n {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}
.feature h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.feature p { color: var(--text-dim); margin: 0; font-size: .97rem; }

.section-dark .features { border-color: var(--line-dark); }
.section-dark .feature { border-color: var(--line-dark); }
.section-dark .feature p { color: var(--on-dark-dim); }
.section-dark .feature .n { color: var(--accent-glow); }

/* ---------- Tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
}
/* Hairlines come from each tile's own ring rather than from the grid
   background, so a row that isn't full leaves no visible empty cell. */
.tile {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-light);
  padding: 38px 34px 42px;
  position: relative;
  transition: background .18s ease;
}
.tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s ease;
}
.tile:hover::before { transform: scaleY(1); }
.tile:hover { background: var(--paper-2); }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--text-dim); font-size: .96rem; margin: 0; }
.tile a { color: var(--accent); font-weight: 600; }
.tile a:hover { text-decoration: underline; }

.section-grey .tile { background: var(--paper); }
.section-grey .tile:hover { background: #fff; }

/* ---------- Media / game cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.card-media {
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}
.card-media:hover { transform: translateY(-4px); }

.card-art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card-art svg { width: 84px; height: 84px; position: relative; z-index: 1; }
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,12,.75));
}
.art-a { background: linear-gradient(135deg, #1B2A6B, #0A0A0C 70%); }
.art-b { background: linear-gradient(135deg, #0B4F58, #0A0A0C 70%); }
.art-c { background: linear-gradient(135deg, #5A2E12, #0A0A0C 70%); }

.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}
.card-body p { color: var(--on-dark-dim); font-size: .95rem; flex: 1; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-mute);
}
.tag-dev { color: #FFC24B; border-color: rgba(255,194,75,.4); }
.tag-soon { color: var(--accent-glow); border-color: rgba(0,217,245,.4); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding: clamp(60px, 8vw, 104px) 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -6%; top: -60%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .kicker { color: rgba(255,255,255,.92); }
.cta-band .kicker::before { background: #fff; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 52ch; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.cta-band .btn { margin-top: 14px; }

/* ---------- Legal / prose ---------- */

.prose { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.prose h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  margin-top: 2.6em;
  padding-top: 1.2em;
  border-top: 2px solid var(--ink);
}
.prose h2:first-of-type { margin-top: .6em; border-top: none; padding-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--accent); font-weight: 550; }
.prose a:hover { text-decoration: underline; }

.toc {
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  padding: 26px 30px;
  margin-bottom: 46px;
}
.toc p {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 36px; }
.toc li { margin-bottom: 5px; font-size: .9rem; }

.callout {
  background: var(--ink);
  color: var(--on-dark);
  padding: 28px 32px;
  margin: 0 0 40px;
  border-left: 4px solid var(--accent-glow);
}
.callout p { color: var(--on-dark-dim); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #fff; }
.callout a { color: var(--accent-glow); font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; margin: 22px 0 30px; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 13px 15px; border: 1px solid var(--line-light); vertical-align: top; }
table.data th {
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
table.data td { color: var(--text-dim); }
.table-scroll { overflow-x: auto; }

/* ---------- Contact rows ---------- */

.contact-list { display: grid; gap: 2px; margin: 30px 0 0; padding: 0; list-style: none; background: var(--line-light); border: 1px solid var(--line-light); }
.contact-row { display: flex; gap: 20px; align-items: flex-start; background: var(--paper); padding: 24px 26px; }
.contact-row .k {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  min-width: 168px;
  flex: none;
  padding-top: 3px;
}
.contact-row .v { color: var(--text-dim); }
.contact-row .v a { color: var(--accent); font-weight: 600; }
.contact-row .v a:hover { text-decoration: underline; }
.section-grey .contact-row { background: var(--paper); }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > *:not(summary) { color: var(--text-dim); padding-bottom: 10px; }
.faq a { color: var(--accent); font-weight: 550; }
.faq a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: #000; color: var(--on-dark-dim); padding: 68px 0 32px; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; padding-bottom: 46px; }
.footer-top p { color: var(--on-dark-mute); max-width: 36ch; margin-top: 18px; font-size: .89rem; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--on-dark-dim); font-size: .9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  color: var(--on-dark-mute);
  font-size: .82rem;
}
.footer-bottom .legal-line { max-width: 62ch; }

/* ---------- Responsive ---------- */

@media (min-width: 721px) { .utility .u-hide { display: block; } }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-about { grid-column: 1 / -1; }
  .feature + .feature { padding-left: 0; border-left: none; }
  .feature { padding-right: 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { height: 64px; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--ink);
    border-bottom: 4px solid var(--accent);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 20px; font-size: .85rem; border-bottom: 1px solid var(--line-dark); }
  .nav-links a::after { display: none; }
  .toc ol { columns: 1; }
  .contact-row { flex-direction: column; gap: 6px; }
  .contact-row .k { min-width: 0; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px;
}

/* ========================================================================
   Gaming layer — HUD framing, notched edges, glow, motion, play zone
   ======================================================================== */

/* Notched corners on buttons — game-UI cut */
.btn {
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  box-shadow: 0 0 0 rgba(30,94,255,0);
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .2s ease;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(30,94,255,.7); }
.btn-light:hover   { box-shadow: 0 0 28px rgba(255,255,255,.4); }
.btn-outline-dark:hover { box-shadow: 0 0 26px rgba(0,217,245,.28); }

/* Neon on accent words */
.hero h1 .hl { text-shadow: 0 0 42px rgba(0,217,245,.65); }

/* Scanlines over dark banners */
.scan {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.26) 0 1px, transparent 1px 3px);
  opacity: .55;
}

/* HUD corner brackets */
.hud { position: relative; }
.hud > .corner {
  position: absolute; width: 26px; height: 26px;
  border: 2px solid var(--accent-glow);
  pointer-events: none; z-index: 3;
}
.hud > .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud > .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud > .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud > .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero .hud-inset,
.page-head .hud-inset { position: absolute; inset: 26px; z-index: 3; pointer-events: none; }
.hero .hud-inset > .corner,
.page-head .hud-inset > .corner { border-color: rgba(0,217,245,.7); }

/* Animated tile field behind the hero */
.tilefield {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  grid-auto-rows: 52px;
  opacity: .6;
}
.tilefield i { border: 1px solid rgba(255,255,255,.05); transition: background .7s ease, box-shadow .7s ease; }
.tilefield i.lit {
  background: rgba(0,217,245,.14);
  box-shadow: inset 0 0 20px rgba(0,217,245,.4);
}

/* Ticker strip */
.ticker {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 2px solid rgba(0,0,0,.25);
}
.ticker-track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker-track > span {
  display: flex; align-items: center; gap: 30px;
  padding-right: 30px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track b { font-weight: 500; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Platform chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.24);
  color: var(--on-dark-dim);
  display: inline-flex; align-items: center; gap: 9px;
}
.chip::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- Play zone ---------- */

.playzone { position: relative; overflow: hidden; }
.playzone .wrap { position: relative; z-index: 2; }

.play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 52px;
  align-items: start;
}

.play-side { position: relative; padding-top: 4px; }

.play-frame {
  background: #0D0D15;
  border: 1px solid var(--line-dark);
  padding: 30px;
}

.grid-game {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 430px;
  margin: 0 auto;
}
.cell {
  aspect-ratio: 1;
  background: #16161F;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  padding: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.cell:hover { border-color: rgba(0,217,245,.55); }
.cell:active { transform: scale(.94); }
.cell.on {
  background: var(--accent);
  border-color: var(--accent-glow);
  box-shadow: 0 0 22px rgba(30,94,255,.75), inset 0 0 18px rgba(0,217,245,.4);
}

.hud-stat {
  border-left: 3px solid var(--accent-glow);
  background: rgba(255,255,255,.035);
  padding: 12px 0 12px 16px;
  margin-bottom: 16px;
}
.hud-k {
  display: block;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 2px;
}
.hud-v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}
.play-msg {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  min-height: 3em;
  margin: 22px 0 20px;
  line-height: 1.7;
}
.play-msg.win { color: var(--accent-glow); text-shadow: 0 0 20px rgba(0,217,245,.5); }

/* Card + tile glow */
.card-media { border: 1px solid transparent; }
.card-media:hover { border-color: rgba(0,217,245,.45); box-shadow: 0 0 36px rgba(0,217,245,.16); }
.card-art { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

@media (max-width: 860px) {
  .play { grid-template-columns: 1fr; gap: 32px; }
  .play-side { position: relative; padding-top: 4px; }

.play-frame { padding: 20px; }
  .hero .hud-inset { inset: 14px; }
}
