/* fonts served from here (SIL OFL): Latin + Vietnamese only; no extra connections to Google */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-c4f36730.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-aa210c0a.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-83f8c68f.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-1375e457.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-8962b9ca.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-813dca14.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: 'Lexend'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/lexend-vietnamese-b1fad456.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/lexend-latin-0bc4139f.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: 'Lexend'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/lexend-vietnamese-b1fad456.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/lexend-latin-0bc4139f.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; }
/* Free Game Fun — Glass Aurora: a deep night sky with slow aurora light behind frosted-glass panels. */
:root {
  color-scheme: dark;
  /* palette */
  --bg: #07071a;
  --ink: #f5f3ff;
  --muted: #c4c1e0;          /* ≥ 9:1 on the background */
  --faint: #9592b8;          /* ≥ 5:1 */
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --gold: #fcd34d;
  --on-accent: #0b0a1f;
  --accent: linear-gradient(120deg, #67e8f9 0%, #a78bfa 55%, #f0abfc 100%);
  --text-grad: linear-gradient(100deg, #67e8f9, #c4b5fd 45%, #f9a8d4);
  /* glass */
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .1);
  --glass-3: rgba(255, 255, 255, .16);
  --edge: rgba(255, 255, 255, .12);
  --edge-hi: rgba(255, 255, 255, .26);
  --blur: blur(18px) saturate(1.5);
  --sheen: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, 0) 60%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(167, 139, 250, .5), 0 18px 50px -12px rgba(124, 58, 237, .65);
  --r: 20px;
  --r-sm: 12px;
  --side: 248px;
  --top: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-padding-top: calc(var(--top) + 12px); background: var(--bg); }
body { color: var(--ink); font: 400 16px/1.55 'Be Vietnam Pro', system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--on-accent); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: 'Lexend', 'Be Vietnam Pro', sans-serif; letter-spacing: -.02em; }

/* ---------- aurora sky ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 120%, #1a0b3d 0, transparent 60%), linear-gradient(180deg, #07071a 0%, #0b0a24 100%); }
.aurora::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .5) .6px, transparent 1px) 0 0 / 90px 90px, radial-gradient(rgba(255, 255, 255, .3) .5px, transparent 1px) 45px 30px / 130px 130px;
  opacity: .35; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.aurora { contain: strict; }
/* soft blobs drawn with gradients (no filter: cheap), moved only with transform (stays on the GPU) */
.aurora i { position: absolute; will-change: transform; }
.aurora i:nth-child(1) { width: 90vw; height: 80vh; left: -30vw; top: -35vh; background: radial-gradient(closest-side, rgba(124, 58, 237, .62), rgba(124, 58, 237, .18) 55%, transparent); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 80vw; height: 75vh; right: -30vw; top: -28vh; background: radial-gradient(closest-side, rgba(8, 145, 178, .5), rgba(8, 145, 178, .14) 55%, transparent); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 70vw; height: 65vh; left: 15vw; top: 25vh; background: radial-gradient(closest-side, rgba(219, 39, 119, .26), rgba(219, 39, 119, .08) 55%, transparent); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -12vh) scale(1.2); } }

/* ---------- glass building block ---------- */
.top, .side-card, .hero, .ginfo, .stage, .foot, .search, .icon-btn, .toast {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 40; display: flex; align-items: center; gap: 16px; padding: 0 22px;
  background: rgba(7, 7, 26, .55); border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 'Lexend', sans-serif; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand img { filter: drop-shadow(0 0 14px rgba(167, 139, 250, .6)); transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b, .foot-brand b { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px;
  background: var(--glass); border: 1px solid var(--edge); border-radius: 999px; transition: border-color .2s, box-shadow .2s, background .2s; }
.search .lead { width: 19px; height: 19px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); padding: 9px 6px; font: 500 15px 'Be Vietnam Pro', sans-serif; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; border-radius: 999px; padding: 0 18px; height: 38px; font-weight: 700; font-size: 14px; color: var(--on-accent); background: var(--accent); transition: filter .2s, transform .15s; }
.search button:hover { filter: brightness(1.08); }
.search button:active { transform: scale(.97); }
.search:focus-within { background: var(--glass-2); border-color: rgba(103, 232, 249, .6); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.search:focus-within .lead { stroke: var(--cyan); }
.icon-btn { display: none; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); padding-top: var(--top); min-height: 100vh; }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.side-group { display: grid; gap: 2px; }
.side a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 12px 5px 6px; border-radius: 14px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.side a .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--glass); border: 1px solid var(--edge); flex: none; }
.side a .ic .i { width: 18px; height: 18px; }
.side a .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a .n { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.side a:hover { background: var(--glass); color: var(--ink); }
.side a.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.side a.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--violet); }
.side a.on .ic { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.side a.on .n { color: var(--ink); }
.side .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.side-card { position: relative; overflow: hidden; margin-top: auto; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--edge); font-size: 13.5px; color: var(--muted); }
.side-card::before { content: ''; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%; background: radial-gradient(#a78bfa, transparent 70%); opacity: .5; }
.side-card .i { position: relative; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--accent); color: var(--on-accent); margin-bottom: 6px; }
.side-card b { color: var(--ink); font: 600 15px 'Lexend', sans-serif; }
.scrim { display: none; }
.main { padding: 22px 30px 30px 10px; min-width: 0; outline: 0; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center;
  padding: 40px 42px; margin-bottom: 28px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(8, 145, 178, .12) 60%, rgba(219, 39, 119, .12)), var(--glass);
  border: 1px solid var(--edge); box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sheen); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(rgba(34, 211, 238, .35), transparent 65%); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--edge); color: var(--ink); font-weight: 600; font-size: 13px; }
.eyebrow .i { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); stroke-width: 1.4; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 4.1vw, 58px); line-height: 1.05; font-weight: 700; text-wrap: balance; }
.hero .hl { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 0 26px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; margin: 28px 0 0; padding: 18px 0 0; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--edge); }
.stats li { display: grid; gap: 2px; color: var(--faint); font-weight: 500; font-size: 13.5px; }
.stats b { font: 700 26px/1 'Lexend', sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-art { position: relative; display: block; padding: 16px 10px 10px; }
.hero-card { position: relative; z-index: 2; border-radius: 22px; padding: 8px; background: rgba(255, 255, 255, .08); border: 1px solid var(--edge-hi); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(167, 139, 250, .7); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hero-art:hover .hero-card { transform: translateY(-4px); box-shadow: 0 34px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -16px rgba(103, 232, 249, .7); }
.hero-card .thumb { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #120f2c; isolation: isolate; }
.hero-card-meta { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 10px 8px; }
.hero-card-meta .name { font: 600 20px/1.2 'Lexend', sans-serif; }
.hero-card-meta .info { color: var(--muted); font-size: 14px; }
.round-play { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 30px -4px rgba(103, 232, 249, .8); transition: transform .3s var(--ease); }
.round-play .i { width: 22px; height: 22px; margin-left: 3px; }
.hero-art:hover .round-play { transform: scale(1.08); }
.peek { position: absolute; z-index: 1; width: 58%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #120f2c; border: 1px solid var(--edge); opacity: .55; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.p0 { right: -14px; top: -6px; transform: rotate(6deg); }
.peek.p1 { left: -10px; top: 6px; transform: rotate(-5deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink); font-weight: 600; font-size: 14.5px;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--glass-2); border-color: var(--edge-hi); }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn.primary, .btn.cta { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(167, 139, 250, .9); }
.btn.primary:hover, .btn.cta:hover { box-shadow: 0 12px 38px -8px rgba(103, 232, 249, .8); filter: brightness(1.05); }
.btn.cta .i { fill: currentColor; stroke: none; }
.btn.lg { min-height: 52px; padding: 10px 24px; font-size: 16px; border-radius: 14px; }
.btn.lg .i { width: 19px; height: 19px; }

/* ---------- sections ---------- */
.sec { margin-bottom: 36px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 23px; line-height: 1.15; font-weight: 600; }
.sec-head .sub { color: var(--faint); font-size: 14px; }
.sec-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 19px; background: var(--glass); border: 1px solid var(--edge); }
.sec-ic .i { width: 19px; height: 19px; }
.sec-ic.pink { color: var(--pink); box-shadow: 0 0 24px -8px var(--pink); }
.sec-ic.violet { color: var(--violet); box-shadow: 0 0 24px -8px var(--violet); }
.sec-ic.gold { color: var(--gold); box-shadow: 0 0 24px -8px var(--gold); }
.sec-ic.lg { width: 48px; height: 48px; border-radius: 15px; font-size: 24px; }
.sec-ic.lg .i { width: 24px; height: 24px; }
.more-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--edge); transition: gap .2s var(--ease), color .2s, background .2s; }
.more-link:hover { gap: 10px; color: var(--ink); background: var(--glass); }
.more-link .i { width: 16px; height: 16px; }
.page-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 22px; font-size: 32px; line-height: 1.1; font-weight: 700; }
.page-title .sub { font: 500 14px 'Be Vietnam Pro', sans-serif; color: var(--muted); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); }

/* ---------- category chips ---------- */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 18px; margin: 0 -2px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 8px 6px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--edge); font-weight: 500; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cat .emo { font-size: 16px; }
.cat .i { width: 16px; height: 16px; }
.cat .n { font-size: 12px; font-weight: 600; min-width: 24px; text-align: center; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); font-variant-numeric: tabular-nums; }
.cat:hover { color: var(--ink); background: var(--glass-2); border-color: var(--edge-hi); }
.cat.on { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; box-shadow: 0 8px 24px -10px rgba(167, 139, 250, .9); }
.cat.on .n { background: rgba(11, 10, 31, .18); color: var(--on-accent); }

.row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 18%, 250px); gap: 16px; overflow-x: auto; padding: 4px 4px 16px; margin: -4px -4px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 16px; }

/* ---------- game cards (translucent, no per-card blur: cheap to scroll) ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 7px 7px 12px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)); border: 1px solid var(--edge);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--sheen); opacity: .6; pointer-events: none; }
.card .thumb { position: relative; border-radius: 14px; overflow: hidden; background: #120f2c; aspect-ratio: 16 / 10; isolation: isolate; }
.thumb img, .thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, #4c1d95, #155e75); }
.thumb img.art { object-fit: cover; opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.thumb.ready img.art { opacity: 1; }
/* while a picture is on its way: a soft moving sheen instead of a black box */
.thumb:not(.ready)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 0 0 / 250% 100%; animation: sheen 1.3s linear infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px;
  background: rgba(11, 10, 31, .78); color: #a5f3fc; border: 1px solid rgba(103, 232, 249, .45); }
.badge.hot { top: 12px; left: 12px; font-size: 12.5px; padding: 5px 11px; color: #fbcfe8; border-color: rgba(244, 114, 182, .55); }
.badge .i { width: 13px; height: 13px; }
.card .play-ic { position: absolute; z-index: 2; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 30px -2px rgba(103, 232, 249, .8); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .3s var(--ease); }
.card .play-ic .i { width: 21px; height: 21px; margin-left: 3px; }
.card .meta { position: relative; display: grid; gap: 5px; padding: 0 6px; min-width: 0; }
.card .name { font: 600 15.5px/1.25 'Lexend', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
.cat-tag { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plays { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; flex: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.plays .i { width: 10px; height: 10px; }
.card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .55); background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); box-shadow: var(--glow); }
.card:hover .thumb img.art { transform: scale(1.04); }
.card:hover .play-ic, .card:focus-visible .play-ic { opacity: 1; transform: none; }
.card:active { transform: translateY(-1px) scale(.99); }
.card:focus-visible { outline-offset: 3px; border-radius: var(--r); }

/* ---------- game page ---------- */
.game { display: grid; gap: 24px; align-items: start; }
/* a wide game takes the whole width (as tall as the screen allows); its info and more games go under it */
.game.wide { grid-template-columns: minmax(0, 1fr); }
.game.wide .stage { justify-self: center; width: min(100%, calc((100vh - var(--top) - 60px) * 16 / 9 + 16px)); }
.game.wide .player { aspect-ratio: 16 / 9; width: 100%; }
.game.tall { grid-template-columns: auto minmax(0, 1fr); }
.game.tall .player { height: min(calc(100vh - var(--top) - 56px), 920px); aspect-ratio: 9 / 16; }
.game.tall .stage { position: sticky; top: calc(var(--top) + 22px); }
.stage { padding: 7px; border-radius: 26px; background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow), 0 0 80px -30px rgba(124, 58, 237, .8); }
.player { position: relative; container-type: size; background: #000; border-radius: 20px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player .exit { display: none; }
.cover { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; overflow: hidden; background: #0b0a1f; transition: opacity .4s var(--ease); }
.cover.gone { opacity: 0; pointer-events: none; }
.loader { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--edge-hi); color: #fff; font-weight: 600; font-size: 15px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .22); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cover img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.45) saturate(1.4); transform: scale(1.2); }
.cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 25%, rgba(7, 7, 26, .65)); pointer-events: none; }
.cover .in { position: relative; z-index: 1; text-align: center; display: grid; gap: 16px; justify-items: center; padding: 16px; max-height: 100%; grid-template-rows: minmax(0, auto) auto auto auto; }
.cover img.shot { display: block; max-width: min(320px, 70cqw); max-height: 46cqh; width: auto; height: auto; min-height: 0; border-radius: 16px; border: 1px solid var(--edge-hi); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(167, 139, 250, .8); }
.cover h1 { margin: 0; color: #fff; font-size: 30px; line-height: 1.1; font-weight: 700; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.cover .hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.play-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 38px; min-height: 54px;
  font: 700 20px/1 'Lexend', sans-serif; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 0 rgba(103, 232, 249, .55), 0 14px 40px -10px rgba(167, 139, 250, .9);
  transition: transform .2s var(--ease), filter .2s; animation: halo 2.6s ease-out infinite; }
.play-btn .i { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.play-btn:hover { transform: scale(1.04); filter: brightness(1.06); }
.play-btn:active { transform: scale(.97); }
@keyframes halo { 70%, 100% { box-shadow: 0 0 0 16px rgba(103, 232, 249, 0), 0 14px 40px -10px rgba(167, 139, 250, .9); } }
.game.tall .player.max, .game.wide .player.max, .player.max { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player.max .exit { display: grid; place-items: center; position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-hi); background: rgba(7, 7, 26, .55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player.max .exit .i { width: 20px; height: 20px; }
body.playing { overflow: hidden; }
.side-info { display: grid; gap: 22px; min-width: 0; }
.ginfo { position: relative; overflow: hidden; display: grid; gap: 14px; padding: 20px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge-hi); }
.ginfo::before { content: ''; position: absolute; inset: 0; background: var(--sheen); pointer-events: none; }
.ginfo > * { position: relative; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bar h1 { margin: 0 auto 0 0; font-size: 27px; line-height: 1.15; font-weight: 700; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.chip .i { width: 14px; height: 14px; }
.chip.catc { color: #ddd6fe; border-color: rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .18); }
.chip.tag { background: transparent; color: #a5f3fc; border-color: rgba(103, 232, 249, .25); }
a.chip { transition: background .2s, border-color .2s; }
a.chip:hover { background: var(--glass-2); border-color: var(--edge-hi); }
.about { margin: 0; color: var(--muted); white-space: pre-line; font-size: 15px; line-height: 1.7; }
.more .sec-head h2 { font-size: 20px; }
.game.tall .more .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; background: rgba(30, 27, 60, .75); border: 1px solid var(--edge-hi); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); animation: rise .3s var(--ease); }

/* ---------- empty + footer ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-ic { width: 92px; height: 92px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center; background: var(--glass-2); color: var(--cyan); border: 1px solid var(--edge-hi); box-shadow: 0 0 60px -10px rgba(103, 232, 249, .6); animation: float 4s ease-in-out infinite; }
.empty-ic .i { width: 46px; height: 46px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.empty h2 { color: var(--ink); font-size: 28px; margin: 20px 0 4px; }
.foot { margin-top: 50px; padding: 24px 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 18px/1 'Lexend', sans-serif; }
.foot-links { display: flex; gap: 4px; }
.foot-links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); }
.foot-links a:hover { background: var(--glass); color: var(--ink); }
.foot small { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  :root { --top: 64px; --r: 18px; }
  .top { padding: 0 12px; gap: 10px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .icon-btn { display: grid; }
  .brand span { display: none; }
  .search { padding-left: 12px; }
  .search button { padding: 0 14px; }
  .side { position: fixed; z-index: 50; top: var(--top); left: 0; width: min(300px, 86vw); height: calc(100dvh - var(--top)); background: rgba(11, 10, 36, .88); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-right: 1px solid var(--edge); transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .side a.on::before { display: none; }
  .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 45; background: rgba(0, 0, 0, .45); }
  .scrim[hidden] { display: none; }
  .main { padding: 14px 14px 30px; }
  .hero { padding: 24px 18px; border-radius: 24px; gap: 20px; }
  .hero .lead { font-size: 16px; }
  .hero-acts .btn { flex: 1 1 auto; white-space: nowrap; }
  .stats { gap: 24px; margin-top: 22px; }
  .peek { display: none; }
  .hero-art { padding: 0; }
  .sec-head h2 { font-size: 20px; }
  .page-title { font-size: 26px; }
  .row { grid-auto-columns: 46%; gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 6px 6px 10px; gap: 8px; }
  .card .name { font-size: 14.5px; }
  .card .info { font-size: 12.5px; }
  .card .play-ic { display: none; }
  .card:hover { transform: none; box-shadow: none; }
  .game, .game.wide, .game.tall { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .game.tall .stage { position: static; }
  .stage { padding: 5px; border-radius: 22px; }
  .player { border-radius: 17px; }
  .game.wide .stage { width: 100%; }
  .game.wide .player { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 62vh; }
  .game.tall .player { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 62vh; }
  .cover h1 { font-size: 23px; }
  .cover .in { gap: 12px; }
  .cover img.shot { max-height: 40cqh; }
  .play-btn { padding: 12px 30px; font-size: 18px; }
  .bar h1 { font-size: 23px; width: 100%; }
  .acts { width: 100%; }
  .acts .btn { flex: 1; }
  .game.wide .more .grid, .game.tall .more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game .more .card .cat-tag { display: none; }
  .foot { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 380px) {
  .card .cat-tag { display: none; }
  .plays { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spin { animation: spin 1.6s linear infinite !important; } /* a loading cue still has to say "working" */
}
/* browsers without backdrop-filter: make the glass solid enough to read */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top, .side-card, .hero, .ginfo, .stage, .foot, .search, .toast { background-color: rgba(20, 18, 48, .92); }
}
