@font-face{font-family:'Bungee';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/bungee-vietnamese-571b42a2.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:'Bungee';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/bungee-latin-ext-772f3c56.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bungee';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/bungee-latin-5ec5c9e8.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:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-arabic-98599417.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-cyrillic-ext-102ac859.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-cyrillic-a5c65be1.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-hebrew-119f2521.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-latin-ext-117e1a8a.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/rubik-latin-ea3f56e3.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}
/* VOICE   playful arcade, tidy as a good app store
   IDEA    two worlds side by side: a flat pixel world (2D) and a voxel world (3D)
   PICTURE game art first (mosaic, rows), then the two portals: pixel heart and voxel stack
   COLOUR  deep ink ground, sky cyan = 3D, sunflower = 2D, coral = actions; TYPE Bungee logo, Rubik UI
   LAYOUT  sticky top bar, left rail from 1100px, content up to 1480px, rows and grids of cards */

:root {
  color-scheme: dark;
  --bg: #0f1318; --bg-2: #141a21; --panel: #19212a; --panel-2: #222c37; --line: #2a3542;
  --ink: #eef2f6; --muted: #9aa8b7; --faint: #8a99aa;
  --accent: #ff5b3d; --accent-2: #ff7559;
  --d2: #ffd23f; --d2-ink: #2b2100; --d3: #3cc8ff; --d3-ink: #032433;
  --r: 14px; --top: 64px; --side: 232px;
  --font: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Bungee, Rubik, system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--d3); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.no-scroll { overflow: hidden; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo search dim my"; align-items: center; gap: 14px; height: var(--top); padding: 0 18px; background: rgba(15, 19, 24, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .menu-btn { grid-area: menu; }
.top .logo { grid-area: logo; }
.top .search { grid-area: search; }
.top .dim-switch { grid-area: dim; }
.top .my-btn { grid-area: my; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: .5px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.search { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.search input { width: 100%; height: 44px; padding-block: 0; padding-inline: 44px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--d3); box-shadow: 0 0 0 3px rgba(60, 200, 255, .2); }
.search-ic { position: absolute; inset-inline-start: 15px; top: 12px; color: var(--faint); pointer-events: none; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.sp-item:hover, .sp-item.on { background: var(--panel-2); }
.sp-item img, .sp-item .sp-art { position: relative; inset: auto; display: block; width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; }
.sp-item b { display: block; font-weight: 500; }
.sp-item .sp-art b { display: none; }
.sp-item small { color: var(--muted); font-size: 13px; }
.sp-all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); color: var(--d3); text-align: center; text-decoration: none; font-weight: 500; }
.sp-none { margin: 0; padding: 14px; color: var(--muted); }
.dim-switch { display: flex; gap: 2px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.dim-switch a { display: grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 500; text-decoration: none; }
.dim-switch a:hover { color: var(--ink); }
.dim-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.dim-switch .sw-2d[aria-current] { background: var(--d2); color: var(--d2-ink); }
.dim-switch .sw-3d[aria-current] { background: var(--d3); color: var(--d3-ink); }
.my-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-weight: 500; }
.my-btn:hover { background: var(--panel-2); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); }
.icon-btn.menu-btn { display: none; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 14px 10px 40px; border-inline-end: 1px solid var(--line); scrollbar-width: thin; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav-item:hover { background: var(--panel); color: var(--ink); }
.nav-item.on { background: var(--panel-2); color: var(--ink); }
.nav-item em { margin-inline-start: auto; color: var(--faint); font-size: 12px; font-style: normal; }
.side-label { margin: 18px 12px 6px; color: var(--faint); font-size: 13px; font-weight: 500; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); }
.main { width: 100%; max-width: 1480px; padding: 20px clamp(14px, 2.4vw, 32px) 48px; }

/* ---------- cards */
.card { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; border-radius: var(--r); background: var(--panel); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card .thumb, .card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); font-size: 14px; font-weight: 500; line-height: 1.25; opacity: 0; transform: translateY(6px); transition: .15s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--ink), 0 14px 26px rgba(0, 0, 0, .45); outline: none; }
.card:hover .cap, .card:focus-visible .cap { opacity: 1; transform: none; }
.dim { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; padding: 5px 7px; border-radius: 6px; font: 700 11px/1 var(--font); letter-spacing: .3px; }
.dim-3d { background: var(--d3); color: var(--d3-ink); }
.dim-2d { background: var(--d2); color: var(--d2-ink); }
@media (hover: none) { .card .cap { opacity: 1; transform: none; } }

/* preview art, used only where outside images can't load */
.art { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; overflow: hidden; text-align: center; --a: hsl(var(--h) 72% 50%); --b: hsl(calc(var(--h) + 60) 68% 24%); background: linear-gradient(140deg, var(--a), var(--b)); }
.art b { color: #fff; font: 700 clamp(14px, 1.4vw, 19px)/1.15 var(--font); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.art-2d { background: linear-gradient(rgba(255, 255, 255, .13) 2px, transparent 2px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255, 255, 255, .13) 2px, transparent 2px) 0 0 / 16px 16px, linear-gradient(140deg, var(--a), var(--b)); }
.art-3d { background: repeating-linear-gradient(30deg, rgba(255, 255, 255, .11) 0 2px, transparent 2px 20px), repeating-linear-gradient(150deg, rgba(255, 255, 255, .11) 0 2px, transparent 2px 20px), linear-gradient(140deg, var(--a), var(--b)); }
[data-preview] .card .cap { display: none; }
.card .art { padding-top: 30px; }

/* ---------- rows, grids, mosaic */
.row { margin: 30px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.row-head h2 a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.row-head h2 a:hover { color: var(--d3); }
.row-nav { display: flex; gap: 6px; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 230px); gap: 12px; margin: -4px -4px 0; padding: 4px 4px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 44%), 1fr)); gap: 14px; }
.grid > .ad { grid-column: 1 / -1; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.mosaic .card-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card-big .cap { padding: 44px 16px 14px; font-size: 20px; opacity: 1; transform: none; }
.card-big .art b { font-size: clamp(20px, 2.4vw, 30px); }

/* ---------- home */
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.page-title, .page-head h1 { margin: 6px 0 8px; font: 700 clamp(26px, 3.2vw, 38px)/1.1 var(--font); letter-spacing: -.01em; text-wrap: balance; }
.lead { max-width: 70ch; margin: 0; color: var(--muted); font-size: 17px; }
.chip-row { display: flex; gap: 8px; margin: 14px 0; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { background: var(--panel-2); }
.chip .ic { width: 18px; height: 18px; color: var(--muted); }
.chip-3d { border-color: #1f6f8f; color: var(--d3); }
.chip-2d { border-color: #7a6210; color: var(--d2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-3d[aria-pressed="true"] { background: var(--d3); border-color: var(--d3); color: var(--d3-ink); }
.chip-2d[aria-pressed="true"] { background: var(--d2); border-color: var(--d2); color: var(--d2-ink); }
.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 10px; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 14vw, 190px); align-items: center; gap: 12px; min-height: 210px; padding: 24px 22px 24px 28px; border-radius: 22px; overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.portal:hover { transform: translateY(-3px); }
.portal-3d { background: repeating-linear-gradient(30deg, rgba(60, 200, 255, .07) 0 1px, transparent 1px 26px), repeating-linear-gradient(150deg, rgba(60, 200, 255, .07) 0 1px, transparent 1px 26px), #0c2c3a; box-shadow: inset 0 0 0 1px #17506a; }
.portal-2d { background: linear-gradient(rgba(255, 210, 63, .06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 210, 63, .06) 1px, transparent 1px) 0 0 / 22px 22px, #30270a; box-shadow: inset 0 0 0 1px #5c4a0a; }
.portal h2 { margin: 2px 0 8px; font: 400 clamp(26px, 3vw, 34px)/1.05 var(--display); }
.portal-3d h2, .portal-3d .portal-cta { color: var(--d3); }
.portal-2d h2, .portal-2d .portal-cta { color: var(--d2); }
.portal p { max-width: 44ch; margin: 0; color: #d6dee6; }
.portal .portal-kicker { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.portal-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; }
.portal-art { display: block; width: 100%; height: auto; }

/* ---------- listings */
.page-head { margin-bottom: 4px; }
.page-head h1 small { color: var(--muted); font-size: .5em; font-weight: 500; }
.head-3d h1 { color: var(--d3); }
.head-2d h1 { color: var(--d2); }
.count { margin: 8px 0 0; color: var(--faint); font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; color: var(--faint); font-size: 14px; list-style: none; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 500; text-decoration: none; }
.pager a:hover { background: var(--panel-2); }
.pager .cur { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pager .gap { background: none; border: 0; }
.prose { max-width: 75ch; color: #cfd8e1; }
.prose h2 { margin: 28px 0 8px; color: var(--ink); font-size: 20px; }
.prose a { color: var(--d3); }
.prose details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose summary { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 500; list-style: none; cursor: pointer; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.prose details[open] summary::after { content: "−"; }
.prose details p { margin: 8px 0 0; }
.about-list, .home-about { margin-top: 44px; padding-top: 6px; border-top: 1px solid var(--line); }
.info { padding-bottom: 20px; }
.info h1 { margin: 8px 0 12px; color: var(--ink); font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.muted { color: var(--faint); }

/* ---------- ads */
.ad { display: grid; place-items: center; min-height: 90px; margin: 16px 0; }
.ad-box { min-height: 250px; }
.ad-ph { border: 1px dashed #3a4756; border-radius: 12px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .025) 10px 20px); color: var(--faint); font-size: 13px; }
.ad-wide.ad-ph { width: 100%; max-width: 728px; margin-inline: auto; }

/* ---------- game page */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 24px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 280px; max-height: calc(100svh - var(--top) - 120px); overflow: hidden; isolation: isolate; border-radius: 18px; background: #05070a; }
.player-bg { position: absolute; inset: -30px; z-index: 0; }
.player-bg img, .player-bg .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.2); }
.player-bg .art b { display: none; }
.frame-wrap { position: absolute; inset: 0; z-index: 1; height: 100%; max-width: 100%; margin: auto; aspect-ratio: var(--ar, 16 / 9); }
.frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; }
.pc-icon { position: relative; width: 104px; height: 104px; overflow: hidden; border-radius: 26px; background: var(--panel); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.pc-icon img, .pc-icon .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-icon .art b { display: none; }
.pc-title { margin: 6px 0 0; font: 700 clamp(22px, 3vw, 32px)/1.1 var(--font); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.pc-meta { display: flex; align-items: center; gap: 10px; margin: 0; color: #d6dee6; font-size: 14px; }
.pc-meta .dim { position: static; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; margin-top: 8px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 10px 24px rgba(255, 91, 61, .35); color: var(--bg); font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.play-btn:hover { background: var(--accent-2); transform: scale(1.04); }
.play-btn .ic { width: 22px; height: 22px; }
.player-msg { max-width: 40ch; margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; }
.player.is-playing .player-cover { display: none; }
.pf-exit { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; display: none; }
.player.pseudo-full { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player.pseudo-full .pf-exit { display: inline-grid; }
.player:fullscreen { max-height: none; border-radius: 0; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px 4px; }
.player-bar h1 { margin: 0; font: 700 clamp(20px, 2.4vw, 26px)/1.2 var(--font); }
.pb-actions { display: flex; gap: 8px; }
[data-fav].on { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-fav].on path { fill: currentColor; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; inset-inline-end: 0; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; white-space: nowrap; }
.about-game { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; margin: 24px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.facts h2 { margin: 0 0 12px; font-size: 18px; }
.facts dl { display: grid; gap: 10px; margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }
.about-game .prose > p:first-child { margin-top: 0; }
.about-game .prose h2 { font-size: 18px; }
.game-side h2 { margin: 6px 0 12px; font-size: 18px; }
.game-side .ad { margin-top: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-grid .card .cap { font-size: 13px; }

/* ---------- A–Z */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.az-nav a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 500; text-decoration: none; }
.az-nav a:hover { background: var(--panel-2); }
.az { margin-top: 26px; }
.az h2 { margin: 0 0 8px; color: var(--d3); font-size: 22px; }
.az ul { margin: 0; padding: 0; list-style: none; columns: 4 220px; column-gap: 28px; }
.az li { break-inside: avoid; }
.az li a { display: inline-block; padding: 5px 0; color: #d6dee6; text-decoration: none; }
.az li a:hover { color: var(--ink); text-decoration: underline; }
.az-dim { margin-inline-start: 6px; padding: 3px 5px; border-radius: 4px; font: 700 10px/1 var(--font); vertical-align: 2px; }

/* ---------- my games, 404 */
.my-sec h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 20px; }
.empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.lost { padding: 40px 0 10px; text-align: center; }
.lost-code { margin: 0; color: var(--d3); font: 400 clamp(64px, 12vw, 120px)/1 var(--display); }
.lost h1 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); }
.lost .lead { margin: 0 auto 18px; }

/* ---------- footer */
.foot { margin-top: 40px; padding: 36px clamp(16px, 3vw, 40px) 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 2fr 1fr; gap: 28px; max-width: 1480px; margin: 0 auto; }
.foot-brand p { max-width: 32ch; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col p { margin: 0 0 4px; font-weight: 700; }
.foot-col a { padding: 3px 0; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 18px; }
.foot-cats p { grid-column: 1 / -1; }
.foot-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; max-width: 1480px; margin: 26px auto 0; color: var(--muted); font-size: 14px; }
.foot-langs a { padding: 6px 0; color: var(--muted); text-decoration: none; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 500; }
.foot-langs .ic { width: 18px; height: 18px; }
.foot-note { max-width: 1480px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- narrower screens */
@media (max-width: 1280px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .mini-grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, 44%), 1fr)); }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .icon-btn.menu-btn { display: inline-grid; }
  .top { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "menu logo search dim my"; }
  .side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 60; width: 280px; height: 100dvh; padding-top: 18px; background: var(--bg-2); transform: translateX(-102%); transition: transform .2s ease; }
  [dir="rtl"] .side { transform: translateX(102%); }
  .menu-open .side { transform: none; }
}
@media (max-width: 900px) {
  .portals { grid-template-columns: minmax(0, 1fr); }
  .about-game { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand, .foot-cats { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "menu logo . my dim" "search search search search search"; height: auto; padding: 8px 12px 10px; gap: 8px 10px; }
  .top .logo { font-size: 19px; }
  .logo-mark { width: 30px; height: 30px; }
  .top .search { max-width: none; }
  .dim-switch a { height: 34px; padding: 0 11px; }
  .top .my-btn { width: 44px; padding: 0; justify-content: center; }
  .my-btn span { display: none; }
  .player { aspect-ratio: var(--ar, 16 / 9); min-height: 0; max-height: 78svh; border-radius: 14px; }
  .pc-icon { width: 76px; height: 76px; border-radius: 20px; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .card-big { grid-row: span 1; aspect-ratio: 16 / 10; }
  .card-big .cap { font-size: 17px; padding: 30px 12px 10px; }
  .portal { grid-template-columns: minmax(0, 1fr) 104px; min-height: 0; padding: 18px; }
  .row-nav { display: none; }
  .row-track { grid-auto-columns: 42vw; }
  .player-bar { align-items: flex-start; }
}
@media (max-width: 380px) {
  .logo span { display: none; }
}
/* ---------- languages */
[dir="rtl"] .flip { transform: scaleX(-1); }
:lang(ar) body { line-height: 1.7; }
:lang(ar) .portal h2, :lang(hi) .portal h2, :lang(ja) .portal h2, :lang(ru) .portal h2, :lang(vi) .portal h2 { font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--font); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
