/* PuzzVibe platform styles, shared by every game.
   Layout: a quiet frame (header, forms, cards, profile) so each game's own visuals can lead. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(../fonts/figtree-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(../fonts/figtree-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --paper: #E6EAEE; --surface: #F7F8FA; --surface-2: #E9EDF1; --ink: #14171C; --muted: #586272; --line: #CBD2DA;
  --table: #D6DCE3; --table-hi: #EEF1F4;
  --plate: #1A1D22; --plate-hi: #2C3139; --rim: #08090B; --slot: #3C424C; --peg: #4B515B; --peg-hi: #A7AEB8; --band: #F1F3F5; --hl: #FFFFFF;
  --p0: #5DB83A; --p1: #F2771D; --p2: #2C8AE8; --p3: #EDB91E;
  --accent: #6A4CF5; --accent-ink: #FFFFFF; --accent-soft: #E4DEFF;
  --good: #2F8A3B; --warn: #B7791F; --bad: #C8323F; --warn-bg: #FBF0D9; --bad-bg: #FBE3E5; --good-bg: #E1F3E2;
  --scrim: rgba(20, 23, 28, .55); --focus: #2C8AE8;
  --shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 18px 40px -18px rgba(20, 23, 28, .28);
  --f-display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0E1013; --surface: #161A1F; --surface-2: #1E232A; --ink: #E8ECF1; --muted: #8F99A7; --line: #2A3039;
  --table: #12151A; --table-hi: #1D222A;
  --plate: #1F232A; --plate-hi: #343A44; --rim: #030405; --slot: #4A515C; --peg: #555C67; --peg-hi: #B5BCC6;
  --good: #5CC26A; --warn: #E3A948; --bad: #F06B76; --warn-bg: #2E2614; --bad-bg: #321A1D; --good-bg: #16291A;
  --accent: #9C88FF; --accent-ink: #0E1013; --accent-soft: #24203A;
  --scrim: rgba(0, 0, 0, .62); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0E1013; --surface: #161A1F; --surface-2: #1E232A; --ink: #E8ECF1; --muted: #8F99A7; --line: #2A3039;
  --table: #12151A; --table-hi: #1D222A;
  --plate: #1F232A; --plate-hi: #343A44; --rim: #030405; --slot: #4A515C; --peg: #555C67; --peg-hi: #B5BCC6;
  --good: #5CC26A; --warn: #E3A948; --bad: #F06B76; --warn-bg: #2E2614; --bad-bg: #321A1D; --good-bg: #16291A;
  --accent: #9C88FF; --accent-ink: #0E1013; --accent-soft: #24203A;
  --scrim: rgba(0, 0, 0, .62); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; width: 100%; outline: none; }
.wrap { max-width: 1180px; margin-inline: auto; width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: .95; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1; font-weight: 800; }
h3 { font-size: 1.3rem; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.eyebrow { font: 700 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- header */
header.site { display: flex; align-items: center; gap: 22px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.4rem/1 var(--f-display); text-decoration: none; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; flex: none; }
header.site nav { display: flex; gap: 22px; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); max-width: 220px; }
.user-chip:hover { border-color: var(--ink); }
.user-chip .avatar { width: 30px; height: 30px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn.sm { height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.xs { height: 32px; padding: 0 12px; font-size: .84rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- banner */
#banner:empty { display: none; }
.banner { max-width: 1180px; margin: 0 auto 8px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.banner.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.banner p { flex: 1 1 260px; font-size: .95rem; }
.banner .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- boot & spinner */
.boot { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms */
.auth { display: grid; place-items: start center; padding-block: 24px 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); min-width: 0; }
.auth .card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth h2 { font-size: 2rem; }
form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .lbl { font: 700 .8rem/1.2 var(--f-body); color: var(--ink); padding: 0; }
.field legend { margin-bottom: 7px; }
.input, select.input { height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 1rem var(--f-body); padding: 0 14px; width: 100%; min-width: 0; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.help { font-size: .84rem; color: var(--muted); min-height: 1.1em; }
.help.ok { color: var(--good); }
.help.err { color: var(--bad); }
.form-error { padding: 10px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: .92rem; font-weight: 600; }
.form-ok { padding: 12px 14px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-size: .95rem; font-weight: 600; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--ink); font: 600 .82rem var(--f-body); cursor: pointer; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; }
.seg label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.seg input:checked + label { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + label { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.seg input:disabled + label { cursor: default; opacity: .7; }
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .2s; margin-top: 2px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .6; }
.switch b { display: block; }
.switch small { color: var(--muted); font-size: .86rem; }
.cf-turnstile { min-height: 65px; }

/* ---------- profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; align-items: start; padding-bottom: 56px; }
.profile .col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.profile .card { display: flex; flex-direction: column; gap: 16px; }
.who-big { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who-big .avatar { width: 64px; height: 64px; flex: none; }
.who-big h2 { font-size: 1.9rem; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 .74rem/1.2 var(--f-body); letter-spacing: .04em; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avatar-grid button { padding: 3px; border-radius: 14px; border: 2px solid transparent; background: none; cursor: pointer; }
.avatar-grid button[aria-pressed="true"] { border-color: var(--ink); }
.avatar-grid .avatar { width: 100%; height: auto; display: block; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile span { font: 700 .66rem/1.2 var(--f-body); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.tile b { font: 700 1.6rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; font: 700 .7rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th.num { text-align: right; }
table.list td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
table.list tr:last-child td { border-bottom: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }

/* ---------- content pages */
.prose { max-width: 720px; padding-block: 8px 64px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 18px; font-size: 1.6rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose b, .prose strong { color: var(--ink); }
/* ---------- footer, toasts, modal */
.site-foot { border-top: 1px solid var(--line); padding-block: 24px max(32px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
#toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow); animation: toast .25s ease both; pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--scrim); animation: fade .2s ease both;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.dialog { background: var(--surface); border-radius: 26px; width: min(500px, 100%); max-height: 100%; overflow: auto; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog h3 { font-size: 1.6rem; font-weight: 800; }
.dialog .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.2rem; line-height: 1; flex: none; }
.empty-state { display: grid; place-items: center; text-align: center; gap: 14px; padding: 60px 0; }
.empty-state p { color: var(--muted); max-width: 30em; }

/* installer */
.install { padding-block: 40px; display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checks small { color: var(--muted); }
.pass { color: var(--good); } .fail { color: var(--bad); }
.checks li.pass, .checks li.fail { color: var(--ink); }
.checks li.pass b { color: var(--good); } .checks li.fail b { color: var(--bad); }


/* ---------- shared layout bits */
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.resume { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.resume p { flex: 1 1 240px; }
.resume .btn-ink { background: var(--paper); color: var(--ink); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; padding-block: 8px 20px; }
.page-head p { color: var(--muted); max-width: 36em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); min-width: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 600 .9rem/1 var(--f-body); cursor: pointer; text-decoration: none; }
.tool:hover:not([disabled]) { border-color: var(--ink); }
.tool[disabled] { opacity: .4; cursor: not-allowed; }
.tool svg { width: 16px; height: 16px; }
.tool.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- brand */
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word b { color: var(--accent); font-weight: 800; }
.brand .crumb { color: var(--line); font-weight: 400; margin-inline: 2px; }
.brand-game { font: 700 1.05rem/1 var(--f-display); text-decoration: none; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand-game:hover { color: var(--accent); }

/* ---------- PuzzVibe landing */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 28px 64px; }
.pv-hero .copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pv-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .92; }
.pv-hero h1 em { font-style: normal; color: var(--accent); }
.pv-feature { position: relative; display: block; text-decoration: none; border-radius: 30px; padding: clamp(14px, 3vw, 28px);
  background: radial-gradient(ellipse 75% 65% at 50% 45%, color-mix(in srgb, var(--ga) 22%, var(--table-hi)), var(--table)); transition: transform .25s ease; }
.pv-feature:hover { transform: translateY(-3px) rotate(-.4deg); }
.pv-feature img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .32)); }
.pv-feature .tag { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.pv-feature .tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ga); }
.pv-section { display: flex; flex-direction: column; gap: 20px; padding-bottom: 64px; }
.pv-section > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.pv-section > header p { color: var(--muted); max-width: 34em; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.gcard { display: flex; flex-direction: column; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); min-width: 0; text-decoration: none; color: var(--ink); transition: transform .2s ease, border-color .2s; }
.gcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ga) 60%, var(--line)); }
.gcard .art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 45%, color-mix(in srgb, var(--ga) 20%, var(--table-hi)), var(--table)); }
.gcard .art img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); transition: transform .3s ease; }
.gcard:hover .art img { transform: scale(1.04) rotate(-1deg); }
.gcard .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard h3 { font-size: 1.5rem; }
.gcard .tagline { font-weight: 600; }
.gcard p.desc { color: var(--muted); font-size: .95rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font: 600 .78rem/1.2 var(--f-body); color: var(--muted); }
.chip.strong { background: color-mix(in srgb, var(--ga) 16%, var(--surface)); color: var(--ink); }
.gcard .play { margin-top: 6px; align-self: flex-start; }
.gcard.soon { align-self: start; border-style: dashed; box-shadow: none; background: transparent; justify-content: center; align-items: flex-start; padding: 28px; gap: 12px; }
.gcard.soon:hover { transform: none; }
.gcard.soon .shapes { display: flex; gap: 10px; }
.gcard.soon .shapes span { width: 34px; height: 34px; border-radius: 10px; background: var(--line); }
.gcard.soon .shapes span:nth-child(2) { border-radius: 50%; }
.gcard.soon .shapes span:nth-child(3) { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.gcard.soon p { color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.perk { padding: 22px; border-radius: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.perk .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.perk .ico svg { width: 22px; height: 22px; }
.perk p { color: var(--muted); font-size: .95rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }

/* profile & admin: one section per game */
.game-sec { display: flex; flex-direction: column; gap: 16px; }
.game-sec > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-sec > header h3 { display: flex; align-items: center; gap: 10px; }
.game-sec > header h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--ga); }
.game-sec h4 { font: 700 .72rem/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .profile, .pv-hero { grid-template-columns: minmax(0, 1fr); }
  .pv-feature { max-width: 600px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  header.site { gap: 10px 8px; padding-block: 14px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand .mark { width: 26px; height: 26px; }
  .brand-game { font-size: .95rem; }
  .head-right { gap: 6px; }
  .head-right .icon-btn { width: 36px; height: 36px; }
  .head-right .btn.sm { height: 36px; padding: 0 12px; font-size: .86rem; }
  header.site nav { order: 3; width: 100%; gap: 18px; }
  .user-chip span { display: none; }
  .user-chip { padding: 4px; }
  .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
