/* Slopternative – "neon haze" theme (dark, techy, a little Blade Runner) */
@font-face { font-family: 'Space Grotesk'; src: url(/assets/fonts/space-grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080c; --bg-2: #0b0d13;
  --surface: rgba(17, 20, 30, .78); --surface-solid: #11141e; --surface-2: #171b28;
  --fg: #ece9e3; --muted: #9098aa; --dim: #5d6476;
  --line: rgb(var(--s) / .11); --line-2: rgb(var(--s) / .24);
  /* Theme colours as "R G B": --p primary (buttons, highlights), --s secondary (links, Play, logo), --t tertiary (Hot, likes) */
  --p: 139 123 255; --s: 94 231 255; --t: 255 79 216; --accent-fg: #ffffff; --s-fg: #04141a;
  --amber: rgb(var(--p)); --amber-2: #ffb347; --cyan: rgb(var(--s)); --magenta: rgb(var(--t)); --green: #46f2a0;
  --accent: var(--amber); --accent-soft: rgb(var(--p) / .12);
  --good: var(--cyan); --good-soft: rgb(var(--s) / .10); --warn: var(--amber-2); --warn-soft: rgba(255, 179, 71, .12);
  --radius: 14px;
  --glow-amber: 0 0 0 1px rgb(var(--p) / .5), 0 0 24px rgb(var(--p) / .28);
  --glow-cyan: 0 0 0 1px rgb(var(--s) / .45), 0 0 22px rgb(var(--s) / .18);
  --head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: none;
}
/* Theme variations (preview with the admin theme panel) */
:root[data-theme="violet"] { --p: 139 123 255; --s: 94 231 255;  --t: 255 79 216;  --accent-fg: #ffffff; --s-fg: #04141a; }
:root[data-theme="holo"]   { --p: 255 79 216;  --s: 94 231 255;  --t: 139 123 255; --accent-fg: #ffffff; --s-fg: #04141a; }
:root[data-theme="teal"]   { --p: 45 212 191;  --s: 125 211 252; --t: 167 139 250; --accent-fg: #03201c; --s-fg: #04202c; }
:root[data-theme="ice"]    { --p: 96 165 250;  --s: 186 230 253; --t: 129 140 248; --accent-fg: #ffffff; --s-fg: #082030; }
:root[data-theme="acid"]   { --p: 132 255 87;  --s: 190 255 170; --t: 94 231 255;  --accent-fg: #0a2006; --s-fg: #0a2006; }
:root[data-theme="noir"]   { --p: 236 233 227; --s: 170 180 200; --t: 236 233 227; --accent-fg: #07080c; --s-fg: #07080c; }
:root[data-theme="amber"]  { --p: 255 122 26;  --s: 94 231 255;  --t: 255 79 216;  --accent-fg: #170a02; --s-fg: #04141a; }

/* "Deep blue": navy instead of black, sky-blue + aqua glow, dotted wireframe waves (5G / tech-deck look) */
:root[data-theme="deep"] { --p: 56 189 248; --s: 94 234 212; --t: 167 139 250; --accent-fg: #062036; --s-fg: #04302a;
  --bg: #0e1838; --surface: rgba(30, 46, 100, .55); --surface-solid: #172552; --surface-2: #1d2d5e;
  --fg: #eef3ff; --muted: #a3b4da; --dim: #7383ad; }
:root[data-theme="deep"] body {
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(56, 189, 248, .30), transparent 62%),
    radial-gradient(800px 600px at -5% 105%, rgba(94, 234, 212, .14), transparent 60%),
    radial-gradient(700px 500px at 105% 60%, rgba(167, 139, 250, .12), transparent 60%),
    linear-gradient(180deg, #1b2f6c 0%, #0f1a3d 42%, #0b1430 100%);
  background-attachment: fixed; }
:root[data-theme="deep"] .top { background: rgba(14, 24, 58, .72); }
:root[data-theme="deep"] .hero {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%237dd3fc' stroke-linecap='round' stroke-dasharray='0 10'%3E%3Cpath stroke-width='2.4' stroke-opacity='.55' d='M0 150 C200 90 380 190 600 140 S980 80 1200 135'/%3E%3Cpath stroke-width='2.2' stroke-opacity='.45' d='M0 165 C220 110 400 200 620 155 S1000 100 1200 150'/%3E%3Cpath stroke-width='2' stroke-opacity='.35' d='M0 178 C240 130 420 205 640 170 S1010 120 1200 165'/%3E%3Cpath stroke-width='1.8' stroke-opacity='.28' d='M0 188 C260 150 440 210 660 182 S1020 140 1200 178'/%3E%3Cpath stroke-width='1.6' stroke-opacity='.2' d='M0 196 C280 170 460 214 680 192 S1030 158 1200 190'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 190px no-repeat;
  padding-bottom: 120px; }
:root[data-theme="deep"] .play-strip {
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 234, 212, .18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(167, 139, 250, .2), transparent 55%), rgba(20, 34, 78, .8);
  border-color: rgba(94, 234, 212, .3); }
:root[data-theme="deep"] .game { background: #15234d; }
:root[data-theme="deep"] .theme-panel { background: rgba(14, 24, 58, .95); }
:root[data-theme="deep"] h1 { text-shadow: 0 0 30px rgba(56, 189, 248, .25); }

/* Theme preview panel (admin only) */
.theme-panel { position: fixed; right: 14px; bottom: 14px; z-index: 50; background: rgba(12, 14, 21, .94); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); font-family: var(--mono); font-size: .75rem; max-width: 330px; }
.theme-panel p { margin: 0 0 8px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.theme-panel p button { background: none; box-shadow: none; color: var(--muted); padding: 0; font-size: .75rem; }
.theme-panel .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-panel .opts button { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.04); color: var(--fg);
  border: 1px solid var(--line-2); box-shadow: none; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.theme-panel .opts button.on { border-color: var(--fg); background: rgba(255,255,255,.1); }
.theme-panel .sw { display: inline-flex; }
.theme-panel .sw i { width: 10px; height: 10px; border-radius: 50%; margin-left: -3px; border: 1px solid #07080c; }
.theme-panel.min .opts { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 600px at 8% -10%, rgb(var(--p) / .20), transparent 60%),
    radial-gradient(700px 500px at 100% 20%, rgb(var(--t) / .08), transparent 60%),
    radial-gradient(900px 700px at 90% 110%, rgb(var(--s) / .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
/* faint grid, like a HUD */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgb(var(--s) / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--s) / .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}
::selection { background: rgb(var(--p) / .45); color: #fff; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); line-height: 1.1; margin: 0 0 .4em; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 2em 0 .8em; font-weight: 600; }
h3 { font-size: 1.06rem; margin: 0; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.warn { color: var(--warn); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 12, .72); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 20%, var(--magenta) 50%, var(--cyan) 80%, transparent); opacity: .55; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; color: var(--fg); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgb(var(--p) / .35)); transition: transform .2s ease; }
.brand:hover { text-decoration: none; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand .word b { color: var(--cyan); font-weight: 700; }
.top-search { flex: 1; min-width: 180px; }
.top-search input { width: 100%; }
.top-nav { display: flex; gap: 18px; margin-left: auto; font-family: var(--mono); font-size: .86rem; letter-spacing: .02em; }
.top-nav a { color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--fg); text-decoration: none; }

input[type=search], input[type=text], input[type=url], input[type=email], textarea, select {
  font: inherit; color: var(--fg); background: rgba(10, 12, 19, .85); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 12px; max-width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
select option { background: var(--surface-solid); }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px; padding: 10px 16px;
  background: var(--amber); color: var(--accent-fg); display: inline-block; box-shadow: 0 0 18px rgb(var(--p) / .25);
  transition: box-shadow .15s ease, transform .15s ease, background .15s ease;
}
button:hover, .btn:hover { text-decoration: none; filter: brightness(1.12); box-shadow: var(--glow-amber); }
button:active, .btn:active { transform: translateY(1px); }
.btn.small, button.small { padding: 5px 10px; font-size: .85rem; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 44px; align-items: center; padding: 40px 0 12px; }
@media (min-width: 900px) { .hero { grid-template-columns: 400px minmax(0, 1fr); } }
.hero-art { display: flex; justify-content: center; }
.hero-robot { width: 100%; height: auto; max-width: 420px; }
.hero-robot.light-only { display: none; }
.hero-robot.dark-only { max-width: 250px; filter: drop-shadow(0 0 40px rgb(var(--p) / .35)); }
@media (max-width: 899px) { .hero-robot { max-width: 230px; } .hero-robot.dark-only { max-width: 150px; } }
.hero-chips { margin: 8px 0 26px; }
.pill { display: inline-flex; align-items: center; gap: 7px; }
.pill .ico { flex: none; opacity: .85; }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.8rem); }
.hero h1 .glow { color: var(--cyan); text-shadow: 0 0 28px rgb(var(--s) / .5); }
.eyebrow { margin: 0 0 6px; font-family: var(--mono); font-weight: 500; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.big-search { display: flex; gap: 8px; max-width: 640px; margin: 0 0 12px; padding: 6px; border-radius: 16px;
  background: rgba(10, 12, 19, .7); border: 1px solid var(--line-2); box-shadow: 0 0 40px rgb(var(--p) / .08); }
.big-search input { flex: 1; font-size: 1.1rem; padding: 12px 14px; border: 0; background: transparent; min-width: 0; box-shadow: none; }
.big-search input:focus { box-shadow: none; }
.big-search button { padding: 0 22px; border-radius: 11px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; align-items: center; }
.pill { background: rgba(17, 20, 30, .6); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--fg); font-size: .9rem; }
.pill:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.pill.big { font-size: 1.05rem; padding: 8px 16px; }
.pill.on { background: var(--cyan); color: var(--s-fg); border-color: var(--cyan); }

.app-grid, .cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.app-tile, .cat-tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; color: var(--fg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-tile:hover, .cat-tile:hover { border-color: rgb(var(--s) / .4); box-shadow: var(--glow-cyan); text-decoration: none; transform: translateY(-1px); }
.app-tile strong, .cat-tile strong { font-family: var(--head); font-weight: 600; }
.app-tile .muted, .cat-tile .muted { font-family: var(--mono); font-size: .78rem; }

.ask-teaser { position: relative; background: linear-gradient(135deg, rgb(var(--p) / .10), rgb(var(--t) / .06) 50%, rgb(var(--s) / .08));
  border: 1px solid var(--line-2); border-radius: 18px; padding: 4px 22px 18px; margin-top: 36px; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; padding: 12px 14px; }

.two-col { display: grid; gap: 0 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* tool cards */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card .like { position: absolute; top: 12px; right: 12px; padding: 4px 9px; }
.card h3 { padding-right: 58px; font-size: 1.05rem; line-height: 1.25; }
.card .tag { font-size: .95rem; }
.group-h { margin: 28px 0 12px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.group-h .count { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
.card { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: rgb(var(--s) / .35); box-shadow: var(--glow-cyan); }
.rank { position: absolute; left: -10px; top: -10px; background: var(--amber); color: var(--accent-fg); font-family: var(--mono); font-size: .72rem; font-weight: 700;
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; box-shadow: 0 0 12px rgb(var(--p) / .5); }
.card-body { flex: 1; min-width: 0; }
.card h3 a { color: var(--fg); }
.card h3 a:hover { color: var(--cyan); }
.maker { font-weight: 400; color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.tag { margin: 2px 0 6px; }
.note { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.plat { margin: 6px 0 0; color: var(--dim); font-size: .8rem; font-family: var(--mono); }
.logo { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: contain; background: #f4f2ee; padding: 4px; }
.logo.letter { display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.3rem; padding: 0;
  background: hsl(var(--h) 45% 16%); color: hsl(var(--h) 90% 72%); border: 1px solid hsl(var(--h) 60% 35% / .6); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.b { font-family: var(--mono); font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--muted); }
.b.good { background: var(--good-soft); color: var(--cyan); border-color: rgb(var(--s) / .3); }
.b.warn { background: var(--warn-soft); color: var(--amber-2); border-color: rgba(255,179,71,.35); }
.b.price-free { background: rgba(70,242,160,.08); color: var(--green); border-color: rgba(70,242,160,.3); }
.like { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--muted); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; font-weight: 600; flex: none; box-shadow: none; font-family: var(--mono); font-size: .85rem; }
.like svg { fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover { color: var(--magenta); border-color: var(--magenta); background: rgb(var(--t) / .08); box-shadow: 0 0 14px rgb(var(--t) / .25); }
.like.on { color: var(--magenta); border-color: var(--magenta); }
.like.on svg { fill: currentColor; }
.like.big { padding: 9px 14px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(17, 20, 30, .6); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 5px 12px; font-size: .88rem; cursor: pointer; }
.chip input { accent-color: var(--cyan); }
.chip:has(input:checked) { border-color: var(--cyan); background: rgb(var(--s) / .10); color: var(--cyan); }
.filters select { padding: 6px 10px; font-size: .88rem; border-radius: 999px; }
.clear { font-size: .9rem; }

/* pages */
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--dim); margin: 22px 0 6px; letter-spacing: .02em; }
.crumbs a { color: var(--muted); }
.page-head { margin: 18px 0 8px; }
.lede { font-size: 1.12rem; margin: 0 0 .5em; color: #d4d1ca; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-2); }
.side-box { margin: 26px 0; padding: 6px 20px; border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgb(var(--p) / .3); }
.notice.good { background: var(--good-soft); color: var(--cyan); border-color: rgb(var(--s) / .3); }
.notice.warn { background: var(--warn-soft); color: var(--amber-2); border-color: rgba(255,179,71,.35); }

.tool-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 16px 0; }
.tool-head .logo { width: 72px; height: 72px; border-radius: 16px; font-size: 2rem; }
.tool-head h1 { margin-bottom: .15em; }
.tool-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
@media (min-width: 720px) { .tool-head { grid-template-columns: auto 1fr auto; } .tool-actions { grid-column: auto; } }
.tool-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .tool-grid { grid-template-columns: 1fr 330px; } }
.facts { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px 18px 12px; position: relative; }
.facts::before { content: 'SPEC'; position: absolute; top: 10px; right: 14px; font-family: var(--mono); font-size: .65rem; letter-spacing: .2em; color: var(--dim); }
.facts h2 { margin-top: 1em; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: .93rem; }
.facts dt { color: var(--dim); font-family: var(--mono); font-size: .78rem; padding-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; }

.answer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 20px; margin: 18px 0; min-height: 60px;
  box-shadow: inset 0 0 40px rgb(var(--s) / .04); }
.answer-body ul { padding-left: 1.2em; }
.answer-body li { margin: .35em 0; }
.answer-body li::marker { color: var(--amber); }
.thinking { color: var(--muted); font-family: var(--mono); font-size: .9rem; }
.dots::after { content: '▮'; animation: blink 1s steps(2) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0 } }
.examples li { margin: .4em 0; }

.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .95rem; }
.form label.chip { flex-direction: row; font-weight: 400; }
.form input, .form textarea, .form select { font-weight: 400; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.form .row > label { flex: 1; min-width: 200px; }
.form fieldset { border: 1px solid var(--line-2); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.form button { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.prose { max-width: 720px; }
.prose h2 { color: var(--fg); }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.tabs a.on { background: var(--cyan); color: var(--s-fg); border-color: var(--cyan); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table td { border-bottom: 1px solid var(--line); padding: 10px 6px; vertical-align: top; }
.admin-table .acts { white-space: nowrap; text-align: right; }
form.inline { display: inline; }
.acts button { padding: 5px 10px; font-size: .82rem; background: transparent; color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.acts button.good { background: var(--green); color: #032013; border: 0; }
.acts button.warn { background: var(--amber); color: var(--accent-fg); border: 0; }
.answer-mini { margin-top: 4px; color: var(--muted); }
.answer-mini ul { margin: 4px 0; }

.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: .88rem; color: var(--muted); }
.foot p { margin: .4em 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--cyan); }

/* ---------- Play: AI games ---------- */
.nav-play { color: var(--magenta) !important; text-shadow: 0 0 12px rgb(var(--t) / .5); }
.play-strip { position: relative; margin: 10px 0 14px; padding: 20px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgb(var(--t) / .14), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgb(var(--p) / .16), transparent 55%), rgba(12, 14, 21, .85);
  border: 1px solid rgb(var(--t) / .28); box-shadow: 0 0 40px rgb(var(--t) / .08); }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strip-head h2 { margin: 0; font-size: 1.45rem; }
.strip-sub { margin: 4px 0 16px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 16px rgb(var(--t) / .25); }
.game-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.game-row .game { scroll-snap-align: start; }
@media (min-width: 1000px) { .game-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.game-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hot-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 900px) { .hot-grid { grid-template-columns: repeat(4, 1fr); } .hot-grid .game.big { grid-column: span 2; } }
.game { display: flex; flex-direction: column; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.game:hover { transform: translateY(-3px); border-color: rgb(var(--t) / .45); box-shadow: 0 0 0 1px rgb(var(--t) / .25), 0 10px 30px rgb(var(--t) / .15); }
.game-art { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.game-art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 55%, rgba(7,8,12,.55)); }
.game.big .game-art { aspect-ratio: 16 / 8; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.game:hover .cover { transform: scale(1.04); }
.cover.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 90% 50% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--h) 60% 14%), #07080c); }
.cover.ph span { font-family: var(--head); font-size: 3rem; font-weight: 700; color: hsl(var(--h) 100% 75%); text-shadow: 0 0 24px hsl(var(--h) 100% 60% / .8); }
.flag { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.flag.hot { background: linear-gradient(90deg, var(--magenta), var(--amber)); box-shadow: 0 0 16px rgb(var(--t) / .55); }
.flag.new { background: var(--cyan); color: var(--s-fg); box-shadow: 0 0 14px rgb(var(--s) / .5); }
.game-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-body h3 a { color: var(--fg); }
.game-body h3 a:hover { color: var(--magenta); }
.game-body .tag { margin: 0; font-size: .92rem; color: #cfccc5; }
.game-meta { margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; color: var(--dim); font-family: var(--mono); }
.game-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.btn.play { background: var(--cyan); color: var(--s-fg); padding: 8px 16px; box-shadow: 0 0 16px rgb(var(--s) / .3); font-family: var(--mono); font-weight: 700; }
.btn.play:hover { filter: brightness(1.12); box-shadow: var(--glow-cyan); }
.btn.play.big { padding: 12px 22px; font-size: 1.05rem; }
.game-actions .like { padding: 6px 10px; }
.b.hot { background: linear-gradient(90deg, var(--magenta), var(--amber)); color: #fff; border: 0; font-weight: 700; }
.b.new { background: var(--cyan); color: var(--s-fg); border: 0; }
.play-hero { padding: 40px 0 8px; }
.play-hero .eyebrow { color: var(--magenta); }
.play-hero h1 { font-size: clamp(2.4rem, 7.5vw, 4rem); margin: .1em 0 .2em;
  background: linear-gradient(90deg, var(--fg) 10%, var(--amber) 55%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgb(var(--t) / .25)); }
.hot-h { font-size: 1.45rem; }
.game-hero { margin: 14px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; background: #000; max-height: 380px; position: relative;
  border: 1px solid var(--line-2); }
.game-hero .cover.ph span { font-size: 5rem; }

@media (max-width: 640px) {
  .top-nav { gap: 14px; font-size: .8rem; margin-left: 0; }
  .brand img { width: 36px; height: 36px; }
  .big-search, .ask-form { flex-direction: column; }
  .big-search button, .ask-form button { padding: 12px; }
  .card { padding: 12px; gap: 10px; }
  .logo { width: 40px; height: 40px; }
  .admin-table .acts { white-space: normal; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =====================================================================
   "Sunrise" – light theme from ChatGPT's mockup: warm cream, white cards,
   bold Plus Jakarta Sans, orange accents, big robot in the hero.
   ===================================================================== */
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/assets/fonts/plus-jakarta.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root[data-theme="sunrise"] {
  color-scheme: light;
  --p: 255 106 26; --s: 234 88 12; --t: 255 106 26; --accent-fg: #ffffff; --s-fg: #ffffff;
  --bg: #fbf7f3; --surface: #ffffff; --surface-solid: #ffffff; --surface-2: #ffffff;
  --fg: #1c1d24; --muted: #5f6270; --dim: #8a8d99;
  --line: rgba(28, 29, 36, .08); --line-2: rgba(28, 29, 36, .13);
  --good: #0f766e; --good-soft: rgba(15, 118, 110, .08); --green: #15803d; --warn: #b45309; --warn-soft: rgba(180, 83, 9, .08);
  --accent-soft: rgba(255, 106, 26, .08);
  --glow-amber: 0 0 0 3px rgba(255, 106, 26, .18); --glow-cyan: 0 0 0 3px rgba(255, 106, 26, .16);
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --card-shadow: 0 4px 18px rgba(60, 35, 15, .06);
  --card-shadow-hover: 0 10px 28px rgba(255, 106, 26, .14);
  --orange-grad: linear-gradient(135deg, #ff8a3d, #ff5f1f);
}
:root[data-theme="sunrise"] body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: radial-gradient(700px 520px at 100% 0%, rgba(255, 168, 120, .20), transparent 60%),
              radial-gradient(640px 520px at 0% 35%, rgba(255, 200, 160, .18), transparent 60%), #fbf7f3;
}
:root[data-theme="sunrise"] body::before {
  background-image: radial-gradient(rgba(255, 106, 26, .22) 1.4px, transparent 1.6px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 30% 30% at 2% 22%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 30% 30% at 2% 22%, #000, transparent);
}
:root[data-theme="sunrise"] ::selection { background: rgba(255, 106, 26, .25); color: #1c1d24; }
:root[data-theme="sunrise"] h1, :root[data-theme="sunrise"] h2, :root[data-theme="sunrise"] h3 { font-weight: 800; letter-spacing: -.03em; }
:root[data-theme="sunrise"] .hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; margin-bottom: .35em; }
:root[data-theme="sunrise"] .hero h1 .glow { color: #ff6a1a; text-shadow: none; background: linear-gradient(135deg, #ff9a4d, #ff5f1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="sunrise"] .hero-robot.light-only { display: block; }
:root[data-theme="sunrise"] .hero-robot.dark-only { display: none; }
:root[data-theme="sunrise"] .eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; color: #3b3d47; letter-spacing: .16em; font-size: .76rem;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 106, 26, .25); border-radius: 999px; padding: 7px 16px; margin-bottom: 14px; }
:root[data-theme="sunrise"] .eyebrow span { color: #ff6a1a; margin-right: 4px; }
:root[data-theme="sunrise"] .lede { color: #3b3d47; }

/* header */
:root[data-theme="sunrise"] .top { background: rgba(255, 255, 255, .88); box-shadow: 0 1px 0 rgba(28, 29, 36, .06), 0 6px 24px rgba(60, 35, 15, .04); }
:root[data-theme="sunrise"] .top::after { display: none; }
:root[data-theme="sunrise"] .brand { font-family: var(--head); font-weight: 800; }
:root[data-theme="sunrise"] .brand img { filter: none; }
:root[data-theme="sunrise"] .brand .word b { color: #ff6a1a; font-weight: 800; }
:root[data-theme="sunrise"] .top-nav { font-family: var(--head); font-size: .98rem; letter-spacing: 0; gap: 26px; }
:root[data-theme="sunrise"] .top-nav a { color: #2b2d36; font-weight: 600; }
:root[data-theme="sunrise"] .nav-play { color: #ff6a1a !important; text-shadow: none; box-shadow: inset 0 -2px 0 #ff6a1a; padding-bottom: 6px; }

/* controls */
:root[data-theme="sunrise"] input[type=search], :root[data-theme="sunrise"] input[type=text], :root[data-theme="sunrise"] input[type=url],
:root[data-theme="sunrise"] input[type=email], :root[data-theme="sunrise"] textarea, :root[data-theme="sunrise"] select { background: #fff; color: #1c1d24; border-color: var(--line-2); }
:root[data-theme="sunrise"] select option { background: #fff; }
:root[data-theme="sunrise"] input:focus, :root[data-theme="sunrise"] textarea:focus, :root[data-theme="sunrise"] select:focus { border-color: #ff8a3d; box-shadow: 0 0 0 3px rgba(255, 106, 26, .15); }
:root[data-theme="sunrise"] button, :root[data-theme="sunrise"] .btn { background: var(--orange-grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 26, .28); font-family: var(--head); font-weight: 700; }
:root[data-theme="sunrise"] button:hover, :root[data-theme="sunrise"] .btn:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(255, 106, 26, .36); }
:root[data-theme="sunrise"] .big-search { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(60, 35, 15, .07); max-width: 760px; }
:root[data-theme="sunrise"] .big-search input { background: transparent; border: 0; font-size: 1.15rem; padding: 12px 22px; }
:root[data-theme="sunrise"] .big-search input:focus { box-shadow: none; }
:root[data-theme="sunrise"] .big-search button { border-radius: 999px; padding: 0 28px; font-size: 1.05rem; }
:root[data-theme="sunrise"] .pill { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(60, 35, 15, .05); padding: 8px 16px; font-weight: 500; color: #1c1d24; }
:root[data-theme="sunrise"] .pill:hover { border-color: rgba(255, 106, 26, .5); color: #1c1d24; box-shadow: var(--card-shadow-hover); }
:root[data-theme="sunrise"] .pill.on { background: #1c1d24; color: #fff; border-color: #1c1d24; }
:root[data-theme="sunrise"] .chip { background: #fff; border-color: var(--line-2); }
:root[data-theme="sunrise"] .chip input { accent-color: #ff6a1a; }
:root[data-theme="sunrise"] .chip:has(input:checked) { border-color: #ff8a3d; background: rgba(255, 106, 26, .08); color: #c2410c; }

/* cards & panels */
:root[data-theme="sunrise"] .card, :root[data-theme="sunrise"] .app-tile, :root[data-theme="sunrise"] .cat-tile, :root[data-theme="sunrise"] .facts,
:root[data-theme="sunrise"] .answer, :root[data-theme="sunrise"] .empty, :root[data-theme="sunrise"] .side-box, :root[data-theme="sunrise"] .game {
  background: #fff; border-color: var(--line); box-shadow: var(--card-shadow); }
:root[data-theme="sunrise"] .side-box { border-left-color: #ff6a1a; }
:root[data-theme="sunrise"] .card:hover, :root[data-theme="sunrise"] .app-tile:hover, :root[data-theme="sunrise"] .cat-tile:hover {
  border-color: rgba(255, 106, 26, .35); box-shadow: var(--card-shadow-hover); }
:root[data-theme="sunrise"] .card h3 a:hover, :root[data-theme="sunrise"] .game-body h3 a:hover { color: #ea580c; }
:root[data-theme="sunrise"] .app-tile .muted, :root[data-theme="sunrise"] .cat-tile .muted { font-family: var(--head); }
:root[data-theme="sunrise"] .logo { background: #fff; border: 1px solid var(--line); }
:root[data-theme="sunrise"] .logo.letter { background: hsl(var(--h) 85% 94%); color: hsl(var(--h) 55% 34%); border: 0; }
:root[data-theme="sunrise"] .b { background: #f5f1ec; border-color: transparent; color: #5f6270; font-family: var(--head); font-weight: 600; font-size: .74rem; }
:root[data-theme="sunrise"] .b.good { background: rgba(15, 118, 110, .09); color: #0f766e; }
:root[data-theme="sunrise"] .b.price-free { background: rgba(21, 128, 61, .09); color: #15803d; }
:root[data-theme="sunrise"] .b.warn { background: rgba(180, 83, 9, .09); color: #b45309; }
:root[data-theme="sunrise"] .like { background: #fff; border-color: var(--line-2); color: #5f6270; box-shadow: none; font-family: var(--head); }
:root[data-theme="sunrise"] .like:hover, :root[data-theme="sunrise"] .like.on { color: #e11d48; border-color: #fda4af; background: #fff1f2; box-shadow: none; filter: none; }
:root[data-theme="sunrise"] .rank { background: var(--orange-grad); color: #fff; box-shadow: 0 4px 10px rgba(255, 106, 26, .35); }
:root[data-theme="sunrise"] .facts::before { color: #c9c3bb; }
:root[data-theme="sunrise"] .notice { background: #fff4ec; border-color: rgba(255, 106, 26, .25); color: #7c2d12; }
:root[data-theme="sunrise"] .notice.good { background: #ecfdf5; color: #0f766e; border-color: rgba(15, 118, 110, .25); }
:root[data-theme="sunrise"] .ask-teaser { background: linear-gradient(135deg, #fff2e8, #fff 60%); border-color: rgba(255, 106, 26, .2); box-shadow: var(--card-shadow); }
:root[data-theme="sunrise"] .answer-body li::marker { color: #ff6a1a; }
:root[data-theme="sunrise"] .dots::after { color: #ff6a1a; }
:root[data-theme="sunrise"] .tabs a.on { background: #1c1d24; color: #fff; border-color: #1c1d24; }
:root[data-theme="sunrise"] .acts button { background: #fff; color: #1c1d24; box-shadow: none; }

/* play */
:root[data-theme="sunrise"] .play-strip { background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(60, 35, 15, .07); border-radius: 24px; }
:root[data-theme="sunrise"] .btn.ghost { background: #fff; color: #1c1d24; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(60, 35, 15, .05); }
:root[data-theme="sunrise"] .btn.ghost:hover { border-color: #ff8a3d; color: #ea580c; }
:root[data-theme="sunrise"] .game:hover { border-color: rgba(255, 106, 26, .4); box-shadow: var(--card-shadow-hover); }
:root[data-theme="sunrise"] .game-art::after { display: none; }
:root[data-theme="sunrise"] .flag { font-family: var(--head); border-radius: 8px; letter-spacing: .03em; }
:root[data-theme="sunrise"] .flag.hot { background: var(--orange-grad); box-shadow: 0 4px 12px rgba(255, 106, 26, .4); }
:root[data-theme="sunrise"] .flag.new { background: #1c1d24; color: #fff; box-shadow: none; }
:root[data-theme="sunrise"] .b.hot { background: var(--orange-grad); }
:root[data-theme="sunrise"] .b.new { background: #1c1d24; color: #fff; }
:root[data-theme="sunrise"] .btn.play { background: var(--orange-grad); color: #fff; font-family: var(--head); box-shadow: 0 6px 14px rgba(255, 106, 26, .3); }
:root[data-theme="sunrise"] .game-body .tag { color: #3b3d47; }
:root[data-theme="sunrise"] .game-meta { font-family: var(--head); }
:root[data-theme="sunrise"] .cover.ph { background: radial-gradient(circle at 30% 30%, hsl(var(--h) 90% 75% / .7), transparent 60%), linear-gradient(135deg, hsl(var(--h) 85% 93%), #fff); }
:root[data-theme="sunrise"] .cover.ph span { color: hsl(var(--h) 60% 42%); text-shadow: none; }
:root[data-theme="sunrise"] .play-hero .eyebrow { color: #3b3d47; }
:root[data-theme="sunrise"] .play-hero h1 { background: linear-gradient(90deg, #1c1d24 30%, #ff6a1a 75%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
:root[data-theme="sunrise"] .game-hero { border-color: var(--line); box-shadow: var(--card-shadow); }
:root[data-theme="sunrise"] .foot { border-top-color: var(--line); }
:root[data-theme="sunrise"] .theme-panel { background: #fff; color: #1c1d24; box-shadow: 0 12px 40px rgba(60, 35, 15, .15); }
:root[data-theme="sunrise"] .theme-panel .opts button { background: #faf7f3; color: #1c1d24; box-shadow: none; font-family: var(--mono); font-weight: 500; }
:root[data-theme="sunrise"] .theme-panel .opts button.on { border-color: #1c1d24; background: #fff; }
:root[data-theme="sunrise"] .theme-panel p button { background: none; color: #5f6270; box-shadow: none; }
@media (max-width: 640px) {
  :root[data-theme="sunrise"] .top-nav { font-size: .86rem; gap: 14px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; max-width: 100%; }
  :root[data-theme="sunrise"] .nav-play { padding-bottom: 3px; }
  :root[data-theme="sunrise"] .big-search { border-radius: 22px; padding: 8px; }
  :root[data-theme="sunrise"] .big-search input { padding: 10px 14px; }
  :root[data-theme="sunrise"] .big-search button { padding: 12px; border-radius: 14px; }
  :root[data-theme="sunrise"] .hero h1 { font-size: 2.3rem; }
}

/* ---- Sunrise v2: match ChatGPT mockup (stage behind robot, Poppins headline, tighter sizes, coloured chip icons) ---- */
@font-face { font-family: 'Poppins'; src: url(/assets/fonts/poppins-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(/assets/fonts/poppins-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
.robot-stage.light-only { display: none; }
:root[data-theme="sunrise"] .robot-stage.light-only { display: block; }
.robot-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / .92; margin: 0 auto; }
.stage-circle { position: absolute; left: 14%; top: 14%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 28% 78%, #ff7a2a 0%, #ff9a55 28%, #ffc29a 55%, #ffe6d4 78%, rgba(255, 236, 222, 0) 100%); }
.stage-shadow { position: absolute; left: 2%; right: -4%; bottom: 4%; height: 7%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(45, 30, 20, .38), rgba(45, 30, 20, .12) 45%, transparent 72%); }
.stage-marks { position: absolute; right: 9%; top: 2%; width: 17%; overflow: visible; }
.stage-marks path { stroke: #ff6a1a; stroke-width: 7; stroke-linecap: round; fill: none; }
.stage-robot { position: absolute; left: 0; bottom: 7%; width: 92%; height: auto; }
@media (max-width: 899px) { .robot-stage { max-width: 260px; } }

:root[data-theme="sunrise"] body { font-size: 16px; }
:root[data-theme="sunrise"] .hero { grid-template-columns: minmax(0, 1fr); gap: 4px 48px; padding: 34px 0 6px; }
@media (min-width: 900px) { :root[data-theme="sunrise"] .hero { grid-template-columns: 410px minmax(0, 1fr); } }
:root[data-theme="sunrise"] .hero h1 { font-family: 'Poppins', var(--head); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(2.3rem, 5.3vw, 4.25rem); line-height: 1.05; }
:root[data-theme="sunrise"] .hero-main > .muted { font-size: .98rem; color: #4b4e5a; }
:root[data-theme="sunrise"] .eyebrow { font-size: .72rem; padding: 6px 14px; }
:root[data-theme="sunrise"] .big-search { max-width: 720px; }
:root[data-theme="sunrise"] .big-search input { font-size: 1.05rem; padding: 11px 20px; }
:root[data-theme="sunrise"] .big-search button { font-size: 1rem; padding: 0 26px; }
:root[data-theme="sunrise"] .hero-chips { gap: 8px; margin: 10px 0 24px; }
:root[data-theme="sunrise"] .pill { font-size: .86rem; padding: 7px 13px; gap: 7px; }
:root[data-theme="sunrise"] .pill .ico { opacity: 1; width: 17px; height: 17px; color: #2b2d36; }
:root[data-theme="sunrise"] .ico-design { color: #f97316 !important; }
:root[data-theme="sunrise"] .ico-video, :root[data-theme="sunrise"] .ico-games, :root[data-theme="sunrise"] .ico-play, :root[data-theme="sunrise"] .ico-3d { color: #eaa000 !important; }
:root[data-theme="sunrise"] .ico-audio { color: #8b5cf6 !important; }
:root[data-theme="sunrise"] .ico-meetings, :root[data-theme="sunrise"] .ico-websites, :root[data-theme="sunrise"] .ico-learning { color: #0d9488 !important; }
:root[data-theme="sunrise"] .top-in { min-height: 70px; }
:root[data-theme="sunrise"] .brand { font-family: 'Poppins', var(--head); font-size: 1.55rem; gap: 10px; letter-spacing: -.035em; }
:root[data-theme="sunrise"] .brand img { width: 50px; height: 50px; }
:root[data-theme="sunrise"] .top-nav { font-size: .95rem; }
:root[data-theme="sunrise"] .play-strip h2, :root[data-theme="sunrise"] .play-hero h1 { font-family: 'Poppins', var(--head); font-weight: 800; letter-spacing: -.025em; }
:root[data-theme="sunrise"] .strip-sub { font-size: .95rem; color: #4b4e5a; }
/* homepage strip: compact cards (picture + title), like the mockup */
.game.compact .game-body { padding: 10px 14px 12px; }
.game.compact h3 { font-size: 1rem; }
:root[data-theme="sunrise"] .wrap { max-width: 1240px; }

@media (max-width: 640px) {
  :root[data-theme="sunrise"] .big-search button { padding: 13px 16px; border-radius: 14px; }
}
/* Homepage hot games: small cards, 3 rows, lots to choose from */
.play-strip .game-row { grid-auto-flow: row; overflow: visible; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .play-strip .game-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .play-strip .game.compact:nth-child(n+13) { display: none; } }
@media (max-width: 640px)  { .play-strip .game-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .play-strip .game.compact:nth-child(n+7) { display: none; } }
.game.compact { border-radius: 12px; }
.game.compact .game-art { aspect-ratio: 16 / 10; }
.game.compact .flag { top: 6px; left: 6px; font-size: .62rem; padding: 2px 6px; }
.game.compact .game-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px 8px 10px; }
.game.compact h3 { font-size: .86rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mini-play { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .66rem; padding-left: 2px;
  background: var(--cyan); color: var(--s-fg); text-decoration: none !important; box-shadow: 0 2px 8px rgb(var(--s) / .3); transition: transform .12s; }
.mini-play:hover { transform: scale(1.12); }
:root[data-theme="sunrise"] .mini-play { background: linear-gradient(135deg, #ff8a3d, #ff5f1f); color: #fff; box-shadow: 0 3px 10px rgba(255, 106, 26, .35); }
/* Hero circle v2: centred behind chin/hand like the mockup, soft fade to the top-right, ends at the floor line */
.robot-stage .stage-circle { left: -3%; top: 2%; width: 100%;
  background: radial-gradient(circle at 24% 82%, #ff7426 0%, #ff8f47 22%, #ffac72 42%, #ffcaa6 60%, rgba(255, 218, 192, .55) 76%, rgba(255, 232, 216, 0) 92%);
  clip-path: inset(0 0 calc(100% - 86%) 0); }
/* Program chips: only whole rows (2 on desktop, 3 on phones), so no chip sits alone */
.hero-chips { max-height: 88px; overflow: hidden; padding: 2px; margin-left: -2px; }
@media (max-width: 640px) { .hero-chips { max-height: 132px; } }
.bulkbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; position: sticky; top: 74px; z-index: 5;
  background: var(--bg); padding: 8px 0; }
.bulkbar button.good { background: #15803d; color: #fff; box-shadow: none; }
.bulkbox { width: 18px; height: 18px; vertical-align: middle; accent-color: #ff6a1a; }
.foot .slogan { font-family: 'Poppins', var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--fg); margin-bottom: .6em; }
.foot .slogan span { color: var(--amber); }
:root[data-theme="sunrise"] .foot .slogan span { color: #ff6a1a; }
.foot .admin-link { font-weight: 700; color: #ea580c; }
.admin-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding: 8px 12px; border-radius: 12px;
  border: 1px dashed rgba(234, 88, 12, .5); background: rgba(255, 106, 26, .06); font-size: .85rem; }
.admin-bar > span { font-weight: 800; color: #ea580c; margin-right: 4px; }
.admin-bar button.small { background: #fff; color: #1c1d24; border: 1px solid var(--line-2); box-shadow: none; }
.admin-bar button.danger { background: #dc2626 !important; color: #fff !important; border: 0 !important; }
.deleted-note { margin: 12px 0; }
.bulkbar button.danger { background: #dc2626; color: #fff; box-shadow: none; }
/* Program page "How to choose" intro */
.intro { max-width: 760px; margin: 10px 0 16px; padding: 4px 18px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.intro summary { cursor: pointer; font-weight: 700; padding: 8px 0; list-style: none; }
.intro summary::-webkit-details-marker { display: none; }
.intro summary::before { content: '💡 '; }
.intro p { margin: 0 0 .8em; color: var(--muted); line-height: 1.6; }
:root[data-theme="sunrise"] .intro { background: #fff; box-shadow: var(--card-shadow); }
:root[data-theme="sunrise"] .intro p { color: #3b3d47; }
/* "What others say" links on tool pages */
.others ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.others li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.others li a:hover { border-color: rgba(255, 106, 26, .45); box-shadow: 0 6px 18px rgba(255, 106, 26, .12); }
.others li a span { font-size: .82rem; color: var(--muted); }
:root[data-theme="sunrise"] .others li a { background: #fff; box-shadow: 0 2px 10px rgba(60, 35, 15, .05); }
/* Play: genre buttons + pager */
.genre-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.genre { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: .92rem; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.genre span { font-weight: 500; font-size: .78rem; color: var(--muted); }
.genre:hover { border-color: rgba(255, 106, 26, .5); box-shadow: 0 4px 14px rgba(255, 106, 26, .12); }
.genre.on { background: #1c1d24; color: #fff; border-color: #1c1d24; }
.genre.on span { color: rgba(255, 255, 255, .7); }
:root[data-theme="sunrise"] .genre { background: #fff; box-shadow: 0 2px 8px rgba(60, 35, 15, .05); }
:root[data-theme="sunrise"] .genre.on { background: #1c1d24; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; }
/* Condensed Play page */
.compact-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.play-hero { padding: 22px 0 4px; }
.play-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem) !important; margin-bottom: .15em; }
.play-hero .lede { font-size: 1rem; }
.genre-bar { gap: 6px; margin: 4px 0 16px; }
.genre { padding: 5px 11px; font-size: .84rem; }
.genre span { font-size: .72rem; }
.genre.fav-link { border-color: rgba(225, 29, 72, .35); color: #be123c; }
.game.compact .like.mini { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); box-shadow: none; margin-left: auto; }
.game.compact .like.mini:hover, .game.compact .like.mini.on { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.game.compact .like.mini.on svg { fill: currentColor; }
.game.compact .game-body h3 { flex: 1; }
.favs { margin: 6px 0 18px; padding: 4px 16px 14px; border-radius: 16px; border: 1px solid #fecdd3; background: #fff7f8; }
.favs h2 { margin-top: .8em; }
