:root {
  --cream: #fffaf2;
  --paper: #fffefb;
  --ink: #302b28;
  --muted: #756d67;
  --orange: #ff521b;
  --orange-dark: #df3d0b;
  --blue: #1759d5;
  --blue-dark: #0d3da4;
  --yellow: #ffb825;
  --line: #f0dfcf;
  --green: #20b96c;
  --shadow: 0 14px 34px rgba(92, 61, 29, .10);
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font: 16px/1.55 "Nunito", system-ui, sans-serif; }
::view-transition-old(root) { animation: route-out .18s ease both; }
::view-transition-new(root) { animation: route-in .34s cubic-bezier(.2,.75,.2,1) both; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: grid; grid-template-columns: minmax(180px,220px) minmax(210px,360px) minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 9px clamp(14px,2vw,28px); background: rgba(255,250,242,.92); border-bottom: 1px solid rgba(240,223,207,.72); box-shadow: 0 8px 26px rgba(77,51,26,.055); backdrop-filter: blur(20px) saturate(1.2); }
.brand { min-width: 0; }
.brand img { width: 210px; height: 52px; object-fit: contain; object-position: left center; }
.search { position: relative; width: 100%; min-width: 0; }
.search input { width: 100%; height: 46px; padding: 0 78px 0 44px; border: 1px solid #ead7c6; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(74,47,23,.055); outline: none; appearance: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,82,27,.1); }
.search-icon { position: absolute; z-index: 2; left: 15px; top: 50%; width: 20px; height: 20px; color: #746d67; transform: translateY(-50%); pointer-events: none; }
.search-icon svg, .nav-actions svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.search-clear { position: absolute; z-index: 2; top: 50%; right: 43px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: #f7eee6; font-size: 20px; line-height: 1; transform: translateY(-50%); }
.search-clear[hidden] { display: none; }
.search-key { position: absolute; top: 9px; right: 9px; min-width: 27px; padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; color: #8c8178; background: #fffaf4; font-size: 12px; line-height: 20px; pointer-events: none; }
.category-scroll { min-width: 0; display: flex; justify-content: flex-start; gap: 7px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #514b46; font-size: 14px; font-weight: 800; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.pill.active, .pill:hover { color: white; border-color: var(--orange); background: var(--orange); transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; }
.notification-button svg { width: 20px; height: 20px; }
.avatar { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #ff9d39; box-shadow: 0 0 0 1px var(--line); font-size: 26px; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: 1px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--green); }
.sign-in, .profile-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 900; white-space: nowrap; }
.sign-in svg { width: 20px; height: 20px; }
.profile-chip { max-width: 180px; padding: 4px 13px 4px 5px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.profile-chip span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff0e8; font-size: 19px; }
.profile-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mosaic { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: auto; grid-auto-flow: dense; gap: 10px; padding: 12px; }
.game-tile { position: relative; isolation: isolate; overflow: hidden; min-height: 0; min-width: 0; aspect-ratio: 1; border-radius: 17px; background: #25242b; box-shadow: 0 4px 14px rgba(65,40,17,.08),inset 0 0 0 1px rgba(0,0,0,.04); cursor: pointer; transform-origin: center; will-change: transform; }
.game-tile.feature { grid-column: span 4; grid-row: span 2; }
.game-tile.compact { grid-column: span 2; }
.game-tile img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-tile.studio-feature { box-shadow: 0 7px 24px rgba(255,82,27,.18),inset 0 0 0 2px rgba(255,184,37,.68); }
.new-badge.studio-badge { background: linear-gradient(135deg,var(--orange),#ff9b20); box-shadow: 0 5px 14px rgba(77,34,8,.25); letter-spacing: .035em; }
.game-tile:hover img { transform: scale(1.045); }
.new-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; font-size: 12px; }
.soon-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(35,29,50,.84); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .05em; backdrop-filter: blur(7px); }
.coming-soon-tile img { filter: saturate(.88); }
.tile-overlay { position: absolute; inset: auto 0 0; padding: 36px 8px 12px; text-align: center; color: white; background: linear-gradient(transparent, rgba(12,10,18,.9)); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.game-tile:hover .tile-overlay, .game-tile:focus-within .tile-overlay { opacity: 1; transform: none; }
@media (hover: none) { .tile-overlay { opacity: 1; } }
.game-tile[hidden] { display: none; }
.game-tile:focus-visible { outline: 4px solid rgba(23,89,213,.35); outline-offset: 2px; }
.hero-ad-tile { position: relative; isolation: isolate; min-height: 0; display: flex; align-items: flex-end; overflow: hidden; padding: 18px; border-radius: 15px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .25s ease, box-shadow .25s ease; }
.hero-ad-tile::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; top: -62px; right: -45px; border: 26px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-ad-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,39,90,.18); }
.hero-ad-tile:focus-visible { outline: 4px solid rgba(23,89,213,.35); outline-offset: 2px; }
.hero-ad-tile.tall { grid-row: span 2; }
.hero-ad-tile.wide { grid-column: span 2; }
.hero-ad-tile.audio { background: linear-gradient(145deg,#5d33da,#2366f3); }
.hero-ad-tile.fuel { background: linear-gradient(145deg,#ff591d,#ff9d1d); }
.hero-ad-label { position: absolute; top: 11px; left: 12px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.hero-ad-icon { position: absolute; top: 38px; left: 16px; font-size: 38px; }
.hero-ad-copy { display: grid; gap: 2px; }
.hero-ad-copy small { opacity: .78; font-size: 12px; font-weight: 800; }
.hero-ad-copy strong { max-width: 190px; font-size: clamp(18px,2vw,25px); line-height: 1.02; }
.hero-ad-copy b { width: max-content; margin-top: 8px; padding-bottom: 1px; border-bottom: 2px solid rgba(255,255,255,.55); font-size: 12px; }
.empty-games { grid-column: 1 / -1; padding: 70px 20px; color: var(--muted); text-align: center; font-size: 20px; font-weight: 800; }
.launch-panel { position: relative; isolation: isolate; width: min(1240px,calc(100% - 28px)); min-height: 475px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); align-items: center; gap: 34px; overflow: hidden; margin: 18px auto 60px; padding: clamp(38px,6vw,78px); border: 1px solid #cde0ff; border-radius: 34px; background: radial-gradient(circle at 78% 24%,rgba(255,255,255,.9),transparent 24%),linear-gradient(135deg,#eaf2ff 0%,#f8fbff 45%,#fff1e7 100%); box-shadow: 0 24px 60px rgba(24,72,145,.12); }
.launch-panel::before { content: ""; position: absolute; z-index: -1; inset: auto auto -170px -110px; width: 360px; height: 360px; border: 58px solid rgba(255,82,27,.08); border-radius: 50%; }
.launch-copy { position: relative; z-index: 2; }
.launch-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 900; }
.launch-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(32,185,108,.13); animation: pulse-dot 1.8s ease infinite; }
.launch-copy h1 { margin: 18px 0; font-size: clamp(48px,7vw,86px); line-height: .9; letter-spacing: -.065em; }
.launch-copy h1 em { color: var(--orange); font-style: normal; }
.launch-copy p { max-width: 610px; margin: 0; color: var(--muted); font-size: 18px; }
.launch-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.launch-art { position: relative; min-height: 330px; display: grid; place-items: center; perspective: 900px; }
.controller { position: relative; z-index: 3; width: 290px; height: 180px; display: grid; place-items: center; border: 10px solid rgba(255,255,255,.78); border-radius: 92px 92px 72px 72px; background: linear-gradient(145deg,#ff632d,#ff3f13); box-shadow: 0 28px 50px rgba(192,55,11,.28),inset 0 -12px 0 rgba(175,45,6,.18); color: white; transform: rotate(-7deg); }
.controller b { position: absolute; left: 48px; font-size: 48px; line-height: 1; }
.controller i { position: absolute; right: 59px; width: 25px; height: 25px; border: 6px solid rgba(255,255,255,.9); border-radius: 50%; }
.controller i:nth-of-type(1) { top: 58px; }
.controller i:nth-of-type(2) { top: 93px; right: 94px; }
.controller span { position: absolute; bottom: 24px; font-size: 13px; letter-spacing: 8px; opacity: .72; }
.orbit { position: absolute; border: 2px dashed rgba(23,89,213,.18); border-radius: 50%; animation: orbit-spin 18s linear infinite; }
.orbit-one { width: 330px; height: 330px; }
.orbit-two { width: 245px; height: 245px; animation-direction: reverse; animation-duration: 13s; }
.float-chip { position: absolute; z-index: 4; padding: 10px 14px; border: 1px solid rgba(23,89,213,.12); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 12px 25px rgba(23,89,213,.12); font-size: 13px; font-weight: 900; backdrop-filter: blur(8px); animation: float-chip 3.4s ease-in-out infinite; }
.chip-one { top: 34px; right: 0; }
.chip-two { bottom: 24px; left: 4px; animation-delay: -.9s; }
.tile-title { font-weight: 900; line-height: 1.15; }
.soon-mini { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; font-weight: 900; }

.discovery-band { margin: 14px 0 70px; padding: 48px 0 52px; overflow: hidden; background: linear-gradient(135deg, #d8fbf5, #e7f5ff); border-block: 1px solid #c7ece7; }
.shelf-wrap { width: min(1180px, calc(100% - 32px)); margin: auto; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.shelf-head h2 { margin: 5px 0 0; font-size: clamp(29px, 4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.shelf-controls { display: flex; gap: 8px; }
.shelf-controls .icon-button { color: var(--blue); border-color: #bfdde4; font-size: 28px; }
.game-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 65px)/6); gap: 13px; overflow-x: auto; padding: 4px 2px 14px; scroll-padding-inline: 2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.game-shelf::-webkit-scrollbar { display: none; }
.shelf-card { position: relative; overflow: hidden; scroll-snap-align: start; border-radius: 18px; background: #fff; box-shadow: 0 9px 26px rgba(41,104,108,.12); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.shelf-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(41,104,108,.18); }
.shelf-card:focus-visible { outline: 4px solid rgba(23,89,213,.3); outline-offset: 3px; }
.shelf-card img { width: 100%; aspect-ratio: 16/11; object-fit: contain; background: #f1ece7; }
.shelf-info { display: grid; gap: 2px; padding: 12px 13px 14px; }
.shelf-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-info span { color: var(--muted); font-size: 12px; font-weight: 800; }
.shelf-info i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.shelf-soon, .release-soon { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(35,29,50,.86); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .035em; backdrop-filter: blur(7px); }
.mood-section { margin-top: 0; }
.mood-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.mood-card { min-height: 190px; display: flex; align-items: flex-start; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(92,61,29,.06); text-align: left; transition: .2s ease; }
.mood-card:hover { transform: translateY(-4px); border-color: #ffc2aa; box-shadow: 0 14px 28px rgba(255,82,27,.10); }
.mood-card > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: auto; border-radius: 16px; background: #fff1e9; font-size: 27px; }
.mood-card strong { margin-top: 22px; font-size: 19px; }
.mood-card small { margin-top: 3px; color: var(--muted); font-size: 14px; }
.banner-section { margin-top: 58px; }
.sponsor-note { color: var(--muted); font-weight: 800; }
.banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.banner-grid.single-banner { grid-template-columns: 1fr; }
.single-banner .ad-banner-card { min-height: 260px; }
.ad-banner-card { position: relative; isolation: isolate; min-height: 230px; display: flex; align-items: flex-end; gap: 18px; overflow: hidden; padding: 27px 24px 23px; border-radius: 25px; color: #fff; box-shadow: 0 15px 34px rgba(31,39,90,.16); transition: transform .22s ease, box-shadow .22s ease; }
.ad-banner-card::before { content: ""; position: absolute; z-index: -1; width: 190px; height: 190px; top: -74px; right: -50px; border: 32px solid rgba(255,255,255,.12); border-radius: 50%; }
.ad-banner-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px rgba(31,39,90,.22); }
.ad-banner-card:focus-visible { outline: 4px solid rgba(23,89,213,.3); outline-offset: 4px; }
.ad-banner-card.audio, .sponsor-landing.audio { background: linear-gradient(135deg,#5d33da,#2366f3); }
.ad-banner-card.fuel, .sponsor-landing.fuel { background: linear-gradient(135deg,#ff591d,#ff9d1d); }
.ad-banner-card.gear, .sponsor-landing.gear { background: linear-gradient(135deg,#076b89,#12a7b8); }
.banner-ad-label { position: absolute; top: 17px; left: 20px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.banner-icon { flex: 0 0 auto; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; background: rgba(255,255,255,.16); font-size: 36px; backdrop-filter: blur(5px); }
.banner-copy { min-width: 0; display: grid; }
.banner-copy small { opacity: .82; font-size: 13px; font-weight: 800; }
.banner-copy strong { font-size: clamp(20px,2vw,27px); line-height: 1.05; }
.banner-copy > span { margin: 7px 0 12px; opacity: .86; font-size: 13px; line-height: 1.4; }
.banner-copy b { width: max-content; padding-bottom: 2px; border-bottom: 2px solid rgba(255,255,255,.62); font-size: 14px; }

.section { width: min(1180px, calc(100% - 32px)); margin: 78px auto; }
.eyebrow { color: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section h1, .section h2 { margin: 8px 0 14px; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.section h2 { font-size: clamp(29px, 4vw, 45px); }
.lead { max-width: 690px; color: var(--muted); font-size: 19px; }
.feature-grid, .ad-grid, .release-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.feature-card, .ad-card, .panel { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 8px 24px rgba(93,61,29,.06); }
.feature-card { padding: 25px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; background: #fff0e9; font-size: 25px; }
.feature-card h3 { margin: 0 0 7px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); }
.ad-grid { grid-template-columns: repeat(4, 1fr); }
.ad-card { position: relative; overflow: hidden; padding: 14px; }
.ad-label { color: #9c8f83; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.ad-art { display: grid; place-items: center; height: 130px; margin: 10px 0 14px; border-radius: 14px; background: linear-gradient(135deg, #ffefe4, #e8f0ff); font-size: 46px; }
.ad-card h3 { margin: 0 0 5px; }
.ad-card p { min-height: 50px; margin: 0 0 15px; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 900; }
.slot { float: right; color: #a79c93; font-size: 11px; }
.release-grid { grid-template-columns: repeat(4, 1fr); }
.release { position: relative; overflow: hidden; border-radius: 19px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.release:focus-visible { outline: 4px solid rgba(23,89,213,.3); outline-offset: 3px; }
.release img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.release-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; }
.release-body strong { display: block; }
.release-body small { color: var(--muted); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 42px; border-radius: 28px; background: var(--orange); color: white; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .9; }
.button { min-height: 48px; padding: 0 21px; border: 0; border-radius: 999px; background: var(--orange); color: white; font-weight: 900; box-shadow: 0 3px 0 var(--orange-dark); }
.button.blue { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.button.white { background: white; color: var(--orange); box-shadow: 0 3px 0 rgba(130,48,15,.22); }
.button.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 30px max(22px, calc((100% - 1180px)/2)); border-top: 1px solid var(--line); color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.page { width: min(1180px, calc(100% - 32px)); margin: 32px auto 80px; }
.breadcrumbs { margin: 15px 0 18px; color: var(--muted); font-size: 14px; font-weight: 700; }
.game-stage { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.game-frame { position: relative; aspect-ratio: 16/9; background: #141414; }
.game-frame iframe { width: 100%; height: 100%; border: 0; }
.stage-cover { position: absolute; inset: 0; display: grid; place-items: center; background: url('./assets/game-01.webp') center/cover; }
.stage-cover::before { content: ""; position: absolute; inset: 0; background: rgba(25,17,8,.22); }
.stage-cover .button { position: relative; transform: scale(1.12); }
.stage-fullscreen { position: absolute; z-index: 3; top: 16px; right: 16px; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; }
.game-identity { display: flex; align-items: center; min-width: 230px; gap: 11px; }
.game-identity img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.game-identity span { display: grid; }
.game-identity strong { font-size: 17px; }
.game-identity small { color: var(--muted); }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.action { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf4; color: var(--ink); font-weight: 800; }
.action.active { color: #fff; background: var(--orange); border-color: var(--orange); }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 24px; margin-top: 26px; }
.content-card { padding: 26px; }
.content-card h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { padding: 7px 12px; border-radius: 999px; color: var(--blue); background: #eaf0ff; font-size: 13px; font-weight: 900; }
.meta-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 18px 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.how-to-copy { max-width: 830px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.controls-card { align-self: start; overflow: hidden; padding: 0; }
.controls-heading { display: flex; align-items: center; gap: 13px; padding: 22px 23px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#fff7ef,#fff); }
.controls-heading > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #ffe9dd; font-size: 22px; }
.controls-heading small { color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.controls-heading h2 { margin: 1px 0 0; font-size: 25px; }
.controls-list { display: grid; gap: 10px; padding: 18px; }
.control-guide { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 15px; border: 1px solid #ead8ca; border-radius: 16px; background: #fffaf5; }
.control-guide.mobile { border-color: #cddcf8; background: #f4f7ff; }
.control-guide-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(55,36,19,.07); font-size: 20px; }
.control-guide strong { display: block; margin-bottom: 4px; font-size: 15px; }
.control-guide p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.control-empty { display: grid; place-items: center; gap: 8px; min-height: 130px; padding: 24px; color: var(--muted); text-align: center; }
.control-empty span { font-size: 30px; }
.control-empty p { margin: 0; }
.fullscreen-tip { display: flex; align-items: center; gap: 11px; margin: 0 18px 18px; padding: 13px 15px; border-radius: 14px; color: #6d500b; background: #fff1c8; }
.fullscreen-tip span { font-size: 21px; }
.fullscreen-tip p { margin: 0; font-size: 14px; font-weight: 700; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.key-row kbd { max-width: 65%; white-space: normal; overflow-wrap: anywhere; }
kbd { min-width: 42px; padding: 7px 9px; border: 1px solid #dccbbb; border-bottom-width: 3px; border-radius: 8px; background: #fff; text-align: center; font-weight: 900; }
.ad-banner { margin-top: 25px; padding: 18px; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.sponsor-page { width: min(1000px, calc(100% - 32px)); min-height: 66vh; display: grid; place-items: center; margin: 50px auto 80px; }
.sponsor-landing { position: relative; width: 100%; overflow: hidden; padding: clamp(36px,8vw,86px); border-radius: 34px; color: #fff; box-shadow: var(--shadow); }
.sponsor-landing::after { content: ""; position: absolute; width: 330px; height: 330px; right: -95px; bottom: -120px; border: 50px solid rgba(255,255,255,.11); border-radius: 50%; }
.sponsor-landing .eyebrow { color: rgba(255,255,255,.78); }
.sponsor-landing h1 { max-width: 660px; margin: 12px 0; font-size: clamp(45px,8vw,80px); line-height: .95; letter-spacing: -.05em; }
.sponsor-landing p { max-width: 610px; font-size: 19px; }
.sponsor-landing > small { display: block; margin-top: 24px; opacity: .75; }
.sponsor-icon { display: block; margin: 18px 0; font-size: 70px; }
.sponsor-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button.sponsor-back { display: inline-grid; place-items: center; color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); box-shadow: none; }

.auth-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(460px, 100%); padding: 34px; }
.auth-logo { width: 280px; margin: 0 auto 20px; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { font-weight: 900; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,82,27,.1); }
.password-input { position: relative; }
.password-input input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--orange); background: #fff0e8; outline: none; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-card .button { width: 100%; margin-top: 12px; }
.player-auth { width: min(500px,100%); }
.player-auth h1 { margin: 18px 0 5px; font-size: clamp(31px,6vw,42px); line-height: 1.02; }
.player-auth > p { margin-top: 0; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 15px; background: #f5ece4; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 900; }
.auth-tabs button.active { color: var(--blue); background: #fff; box-shadow: 0 5px 14px rgba(57,38,20,.08); }
.auth-status { margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.auth-status.error { color: #8d2f0c; background: #ffe9df; }
.auth-status.success { color: #12683d; background: #e5f8ed; }
.auth-trust { margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; text-align: center; }
.profile-hero { display: flex; align-items: center; gap: 20px; margin: 25px 0 35px; }
.profile-hero h1 { margin: 0; }
.profile-avatar { width: 88px; height: 88px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 25px; background: #fff0e8; box-shadow: var(--shadow); font-size: 44px; }
.profile-synced { color: var(--green); font-size: 13px; font-weight: 900; }
.profile-layout { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); gap: 22px; align-items: start; }
.profile-editor { padding: 25px; }
.profile-editor h2 { margin: 0 0 12px; font-size: 28px; }
.profile-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.profile-benefits .feature-card { height: 100%; }
.profile-signout { margin-top: 25px; }
.notice { margin: 16px 0; padding: 13px 15px; border-radius: 13px; background: #fff3ce; color: #70510b; }

.admin { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; background: #fffaf2; }
.admin-gate { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 20% 15%,#fff0df,transparent 34%),radial-gradient(circle at 80% 80%,#e7efff,transparent 35%),var(--cream); }
.admin-auth { width: min(480px,100%); text-align: left; }
.admin-auth h1 { margin: 7px 0 8px; font-size: 38px; line-height: 1; }
.admin-auth > p { color: var(--muted); }
.admin-auth .button { width: 100%; margin-top: 10px; }
.admin-auth .text-link { display: block; margin-top: 20px; text-align: center; }
.admin-message { margin: 15px 0; padding: 12px 14px; border-radius: 12px; background: #ffe9df; color: #8d2f0c; font-weight: 800; }
.admin-security-note { margin: 17px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.admin-spinner { width: 44px; height: 44px; margin: 10px auto 20px; border: 4px solid #f4d4c4; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes route-out { to { opacity: 0; transform: scale(.992); } }
@keyframes route-in { from { opacity: 0; transform: translateY(10px) scale(.995); } }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 10px rgba(32,185,108,0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes float-chip { 50% { transform: translateY(-8px); } }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: #fff; }
.sidebar img { width: 190px; margin-bottom: 28px; }
.sidebar-account { position: absolute; left: 16px; right: 16px; bottom: 20px; display: grid; gap: 3px; padding: 12px; border-radius: 13px; background: #fff5ee; overflow-wrap: anywhere; }
.sidebar-account small { color: var(--muted); }
.sidebar-account strong { font-size: 13px; }
.sidebar-account button { width: max-content; padding: 0; border: 0; color: var(--orange); background: transparent; font-weight: 900; }
.side-link { width: 100%; display: flex; gap: 10px; padding: 12px 13px; margin: 4px 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 900; text-align: left; }
.side-link.active, .side-link:hover { color: var(--orange); background: #fff0e8; }
.admin-main { min-width: 0; padding: 28px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.admin-head h1 { margin: 0; font-size: 38px; }
.admin-head p { max-width: 670px; margin: 5px 0 0; color: var(--muted); }
.secure { padding: 8px 13px; border-radius: 999px; background: #e8f9ef; color: #147744; font-weight: 900; font-size: 13px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.step { padding: 12px; border-radius: 12px; background: #f4eee7; color: var(--muted); font-weight: 800; text-align: center; }
.step.active { color: white; background: var(--orange); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.admin-stat { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 20px rgba(92,61,29,.05); }
.admin-stat > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #fff0e8; color: var(--orange); font-size: 20px; }
.admin-stat div { display: grid; }
.admin-stat strong { font-size: 25px; line-height: 1; }
.admin-stat small { color: var(--muted); }
.admin-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-hub-card { display: flex; align-items: center; gap: 16px; min-height: 128px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(93,61,29,.06); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.admin-hub-card:hover { transform: translateY(-3px); border-color: #ffc3aa; box-shadow: 0 14px 30px rgba(255,82,27,.1); }
.admin-hub-card > span { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #fff0e8; font-size: 24px; }
.admin-hub-card div { display: grid; gap: 3px; }
.admin-hub-card strong { font-size: 18px; }
.admin-hub-card small { color: var(--muted); font-size: 14px; }
.admin-section { margin-bottom: 22px; padding: 24px; scroll-margin-top: 18px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-section-head h2 { margin: 4px 0 0; font-size: 28px; }
.storage-chip { padding: 7px 11px; border-radius: 999px; background: #e8f3ff; color: var(--blue); font-size: 12px; font-weight: 900; }
.admin-form-actions { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.form-progress { color: var(--muted); font-size: 14px; font-weight: 800; }
.import-source { margin-bottom: 20px; padding: 18px; border: 1px solid #ffd1bd; border-radius: 16px; background: linear-gradient(135deg,#fff7ed,#fff); }
.fetch-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.fetch-row .button { white-space: nowrap; }
.import-status { display: none; margin-top: 12px; padding: 11px 13px; border-radius: 11px; background: #fff1d6; color: #754514; font-size: 13px; font-weight: 800; line-height: 1.5; }
.import-status.show { display: block; }
.import-status.success { background: #e8f8ee; color: #17653a; }
.import-status.error { background: #ffe9e5; color: #9b2f24; }
.bulk-import-section { overflow: hidden; }
.bulk-import-section .admin-section-head p, .catalog-heading p { margin: 5px 0 0; color: var(--muted); }
.bulk-import-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.bulk-import-head > div { display: grid; }
.bulk-import-head small { color: var(--muted); }
#bulk-ready-count { padding: 7px 11px; border-radius: 999px; color: var(--blue); background: #eaf1ff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.bulk-link-list { display: grid; gap: 8px; }
.bulk-link-row { display: grid; grid-template-columns: 40px minmax(260px,1fr) minmax(190px,.55fr); align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .18s ease,background .18s ease; }
.bulk-number { color: #9b9188; font-size: 13px; font-weight: 900; text-align: center; }
.bulk-link-row input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #ead8ca; border-radius: 11px; outline: none; }
.bulk-link-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,89,213,.1); }
.bulk-row-status { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.bulk-row-status i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #bbb1a8; }
.bulk-row-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-link-row.pending { border-color: #c9d9f6; background: #f8faff; }
.bulk-link-row.pending .bulk-row-status i { background: var(--blue); }
.bulk-link-row.fetching { border-color: #f2ca7d; background: #fffaf0; }
.bulk-link-row.fetching .bulk-row-status i { background: var(--yellow); animation: pulse-dot 1.2s ease infinite; }
.bulk-link-row.success { border-color: #a9dfc0; background: #f3fcf7; }
.bulk-link-row.success .bulk-row-status { color: #167746; }
.bulk-link-row.success .bulk-row-status i { background: var(--green); }
.bulk-link-row.error { border-color: #efbbb5; background: #fff6f5; }
.bulk-link-row.error .bulk-row-status { color: #a23026; }
.bulk-link-row.error .bulk-row-status i { background: #d9483d; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.bulk-save-button { color: #fff; box-shadow: none; transition: background .2s ease,transform .2s ease; }
.bulk-save-button.blocked { background: #c83b32; }
.bulk-save-button.ready { background: #178b50; box-shadow: 0 8px 20px rgba(23,139,80,.22); }
.bulk-save-button.ready:hover { background: #10763f; transform: translateY(-1px); }
.catalog-heading { align-items: flex-end; }
.catalog-bulk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.catalog-bulk-actions > span { color: var(--muted); font-size: 13px; font-weight: 900; }
.catalog-bulk-actions .button { min-height: 38px; padding: 0 16px; }
.select-cell { width: 44px; text-align: center; }
.select-cell input { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.mini-button:disabled { opacity: .45; cursor: not-allowed; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 13px 0 17px; font-weight: 900; }
.check-field input { width: 18px; height: 18px; accent-color: var(--orange); }
.status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eee8e2; color: #6e665f; font-size: 12px; font-weight: 900; text-transform: capitalize; }
.status-badge.published { background: #e6f8ee; color: #137343; }
.status-badge.review { background: #fff2cf; color: #795703; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-button { min-height: 34px; padding: 0 11px; border: 1px solid #d9cabe; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 900; }
.mini-button.danger { color: #b22f27; border-color: #f0c1bd; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.upload-box { display: block; min-height: 210px; padding: 30px; border: 2px dashed #e9c7ad; border-radius: 18px; background: #fffaf4; text-align: center; transition: .2s ease; }
.upload-box.drag { border-color: var(--orange); background: #fff0e7; }
.upload-box input { display: none; }
.upload-icon { display: block; margin-bottom: 9px; font-size: 40px; }
.upload-title { display: block; margin-bottom: 4px; font-size: 18px; }
.upload-copy { display: block; color: var(--muted); }
.file-status { display: none; margin-top: 15px; padding: 14px; border-radius: 12px; background: #e9f9ef; color: #167746; text-align: left; }
.file-status.show { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sticky { position: sticky; top: 24px; align-self: start; padding: 20px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; margin-right: 9px; color: var(--green); font-weight: 900; }
.preview-card { overflow: hidden; margin: 18px 0; border-radius: 15px; border: 1px solid var(--line); }
.preview-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.preview-card div { padding: 12px; }
.admin-actions { display: grid; gap: 9px; }

/* Crawlable, no-JavaScript homepage shell. The app replaces this with the
   interactive interface as soon as its module loads. */
.seo-topbar { grid-template-columns: 270px 1fr; }
.seo-nav { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-weight: 800; }
.seo-nav a, .seo-copy a, .feature-card a { color: var(--blue); text-decoration: none; }
.seo-nav a:hover, .seo-copy a:hover, .feature-card a:hover { text-decoration: underline; }
.seo-intro { padding-top: 72px; }
.seo-intro h1 { max-width: 900px; margin: 10px 0 20px; font-size: clamp(42px,6vw,78px); line-height: .98; }
.seo-intro > p { max-width: 850px; }
.seo-intro .button { display: inline-flex; margin-top: 12px; }
.seo-copy { max-width: 980px; }
.seo-copy h2 { font-size: clamp(30px,4vw,48px); }
.seo-copy p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.info-page { width: min(1160px,calc(100% - 32px)); margin: 0 auto 90px; }
.info-hero { position: relative; isolation: isolate; overflow: hidden; margin: 28px 0 18px; padding: clamp(42px,7vw,82px); border: 1px solid #cfe0ff; border-radius: 32px; background: radial-gradient(circle at 84% 20%,rgba(255,255,255,.95),transparent 25%),linear-gradient(135deg,#eaf2ff,#fff8ef 62%,#ffe9dc); box-shadow: 0 22px 56px rgba(31,77,143,.11); }
.info-hero::after { content: ""; position: absolute; z-index: -1; right: -65px; bottom: -120px; width: 310px; height: 310px; border: 48px solid rgba(255,82,27,.09); border-radius: 50%; }
.info-hero h1 { max-width: 780px; margin: 16px 0 20px; font-size: clamp(48px,7vw,84px); line-height: .92; letter-spacing: -.06em; }
.info-hero h1 em { color: var(--orange); font-style: normal; }
.info-hero > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; }
.info-tabs { position: sticky; top: 134px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 34px; padding: 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,254,251,.9); box-shadow: 0 10px 30px rgba(68,44,23,.08); backdrop-filter: blur(16px); scrollbar-width: none; }
.info-tabs::-webkit-scrollbar { display: none; }
.info-tabs a { flex: 1 0 max-content; padding: 10px 17px; border-radius: 999px; color: var(--muted); font-weight: 900; text-align: center; }
.info-tabs a:hover, .info-tabs a:focus-visible { color: #fff; background: var(--orange); outline: none; }
.info-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 30px; }
.info-aside { position: sticky; top: 214px; display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(83,52,25,.06); }
.info-aside strong { margin-bottom: 5px; }
.info-aside a { padding: 7px 9px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 800; }
.info-aside a:hover { color: var(--orange); background: #fff1e9; }
.info-aside small { margin-top: 12px; color: #8a817a; }
.info-content { display: grid; gap: 20px; }
.info-section { position: relative; scroll-margin-top: 218px; padding: clamp(26px,4vw,46px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 12px 34px rgba(83,52,25,.065); }
.info-icon { float: right; width: 58px; height: 58px; display: grid; place-items: center; margin-left: 18px; border-radius: 17px; background: #fff1e9; font-size: 27px; }
.info-kicker { margin: 0 0 6px !important; color: var(--orange) !important; font-size: 13px !important; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.info-section h2 { max-width: 680px; margin: 0 0 18px; font-size: clamp(31px,4.5vw,50px); line-height: 1; letter-spacing: -.04em; }
.info-section h3 { margin: 30px 0 10px; font-size: 21px; }
.info-section p, .info-section li { color: var(--muted); font-size: 17px; line-height: 1.75; }
.info-section ul { padding-left: 22px; }
.info-section li + li { margin-top: 7px; }
.info-section a { color: var(--blue); font-weight: 800; }
.contact-section { background: linear-gradient(135deg,#18295a,#174da9); color: #fff; border-color: transparent; }
.contact-section .info-kicker, .contact-section p { color: rgba(255,255,255,.78) !important; }
.contact-card { display: grid; gap: 2px; margin-top: 24px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; color: #fff !important; background: rgba(255,255,255,.1); }
.contact-card span { font-size: 13px; opacity: .78; }
.contact-card strong { font-size: clamp(18px,3vw,27px); overflow-wrap: anywhere; }
.response-note { margin-bottom: 0; font-size: 14px !important; }
.ads-panel { margin-top: 20px; padding: 22px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border-radius: 14px; background: #edf3ff; }
.switch { width: 54px; height: 30px; padding: 3px; border: 0; border-radius: 999px; background: #c8c8c8; }
.switch::after { content: ""; display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(24px); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(430px, calc(100% - 32px)); padding: 13px 18px; border-radius: 999px; background: #302b28; color: #fff; font-weight: 800; box-shadow: 0 12px 34px rgba(0,0,0,.22); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 170px minmax(180px,270px) minmax(0,1fr) auto; gap: 10px; }
  .brand img { width: 165px; }
  .pill { padding-inline: 10px; }
  .mosaic { grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: auto; }
  .ad-grid, .release-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar { grid-template-columns: 170px minmax(180px,1fr) auto; }
  .brand img { width: 165px; }
  .search { max-width: none; }
  .category-scroll { grid-column: 1 / -1; grid-row: 2; }
  .mosaic { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: auto; }
  .game-tile.feature { grid-column: span 4; }
  .game-tile.compact { grid-column: span 2; }
  .game-shelf { grid-auto-columns: calc((100% - 39px)/4); }
  .launch-panel { grid-template-columns: 1fr; padding: 46px; }
  .launch-art { min-height: 285px; }
  .feature-grid { grid-template-columns: 1fr; }
  .details-grid, .admin-grid { grid-template-columns: 1fr; }
  .player-toolbar { align-items: flex-start; flex-direction: column; }
  .action-bar { justify-content: flex-start; width: 100%; }
  .mood-grid { grid-template-columns: repeat(2,1fr); }
  .banner-grid { grid-template-columns: 1fr 1fr; }
  .ad-banner-card:last-child { grid-column: 1 / -1; }
  .admin { display: block; }
  .sidebar { position: static; width: 100%; height: auto; display: flex; overflow-x: auto; gap: 5px; }
  .sidebar img { width: 150px; margin: 0 8px 0 0; }
  .side-link { white-space: nowrap; }
  .sidebar-account { position: static; min-width: 210px; }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-hub-grid { grid-template-columns: 1fr; }
  .bulk-link-row { grid-template-columns: 36px minmax(0,1fr); }
  .bulk-row-status { grid-column: 2; }
  .catalog-heading { align-items: flex-start; }
  .catalog-bulk-actions { justify-content: flex-start; }
  .info-layout { grid-template-columns: 1fr; }
  .info-aside { position: static; display: none; }
  .sticky { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { grid-template-columns: minmax(165px,1fr) auto; padding: 9px 12px 11px; gap: 8px 10px; }
  .brand img { width: 185px; height: 49px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search-key { display: none; }
  .search input { padding-right: 48px; }
  .search-clear { right: 10px; }
  .category-scroll { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; width: 100%; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .nav-actions .icon-button { display: none; }
  .mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: auto; padding: 8px; gap: 7px; }
  .game-tile.feature { grid-column: span 2; grid-row: span 2; }
  .game-tile.compact { grid-column: span 1; }
  .launch-panel { width: calc(100% - 16px); min-height: auto; margin-top: 9px; padding: 32px 22px; border-radius: 25px; }
  .launch-copy h1 { font-size: clamp(42px,15vw,64px); }
  .launch-copy p { font-size: 16px; }
  .launch-art { min-height: 245px; }
  .controller { width: 230px; height: 145px; border-width: 8px; }
  .controller b { left: 37px; font-size: 39px; }
  .controller i { right: 43px; width: 21px; height: 21px; border-width: 5px; }
  .controller i:nth-of-type(1) { top: 45px; }
  .controller i:nth-of-type(2) { top: 76px; right: 72px; }
  .orbit-one { width: 250px; height: 250px; }
  .orbit-two { width: 190px; height: 190px; }
  .float-chip { font-size: 12px; }
  .chip-one { top: 12px; }
  .chip-two { bottom: 4px; }
  .game-tile.hero { grid-column: span 2; }
  .hero-ad-tile.wide { grid-column: span 2; }
  .section { margin: 55px auto; }
  .discovery-band { margin-bottom: 48px; padding: 38px 0; }
  .shelf-controls { display: none; }
  .game-shelf { grid-auto-columns: calc((100% - 13px)/2); }
  .mood-grid { display: flex; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
  .mood-card { min-width: 230px; min-height: 175px; scroll-snap-align: start; }
  .ad-grid, .release-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .ad-banner-card:last-child { grid-column: auto; }
  .ad-banner-card { min-height: 200px; }
  .cta { align-items: flex-start; flex-direction: column; padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .fetch-row { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 18px 12px; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-section-head { align-items: flex-start; flex-direction: column; }
  .bulk-import-head { align-items: flex-start; flex-direction: column; }
  .bulk-link-row { grid-template-columns: 30px minmax(0,1fr); padding: 8px; }
  .bulk-actions .button { width: 100%; }
  .catalog-bulk-actions { width: 100%; }
  .catalog-bulk-actions .button, .catalog-bulk-actions .mini-button { flex: 1; }
  .controls-heading { padding: 18px; }
  .controls-list { padding: 14px; }
  .profile-benefits { grid-template-columns: 1fr; }
  .info-page { width: min(100% - 16px,1160px); }
  .info-hero { margin-top: 9px; padding: 34px 23px; border-radius: 25px; }
  .info-hero h1 { font-size: clamp(43px,15vw,62px); }
  .info-tabs { top: 125px; margin: 12px 0 22px; border-radius: 18px; }
  .info-tabs a { padding: 9px 14px; }
  .info-section { scroll-margin-top: 194px; padding: 25px 21px; border-radius: 22px; }
  .info-icon { width: 48px; height: 48px; font-size: 23px; }
}

@media (max-width: 560px) {
  .topbar:has(.category-scroll) {
    grid-template-columns: minmax(80px, .85fr) minmax(110px, 1fr) 44px;
    gap: 4px 8px;
    padding: max(4px, env(safe-area-inset-top)) 10px 4px;
  }
  .topbar .search { grid-column: 2; grid-row: 1; }
  .topbar .search input { height: 44px; padding-left: 32px; padding-right: 28px; }
  .topbar .search-icon { left: 8px; width: 17px; }
  .topbar .search-clear { right: 2px; }
  .topbar .nav-actions { grid-column: 3; }
  .topbar .sign-in, .topbar .profile-chip { width: 44px; padding: 0; justify-content: center; }
  .topbar .sign-in span, .topbar .profile-chip b { position: absolute; clip-path: inset(50%); }
  .topbar .category-scroll { grid-row: 2; }
  .mosaic { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .page:has(.game-stage) { width: calc(100% - 16px); margin: 8px auto 40px; }
  .page:has(.game-stage) .breadcrumbs { margin: 8px 4px; }
  .game-frame { aspect-ratio: auto; height: clamp(250px, 47svh, 480px); }
  .action-bar { flex-wrap: nowrap; overflow-x: auto; }
  .action-bar .action { flex: none; min-height: 44px; }
}
body:has(.game-frame.expanded) { overflow: hidden; }
.game-stage:has(.expanded) { transform: none !important; }
.game-frame.expanded, .game-frame:fullscreen {
  position: fixed; inset: 0; z-index: 100; width: 100%; height: 100vh; height: 100dvh;
  aspect-ratio: auto; background: #141414;
  padding: calc(44px + env(safe-area-inset-top)) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.game-frame.expanded iframe { display: block; }
.game-frame.expanded .stage-cover { top: calc(44px + env(safe-area-inset-top)); }
.game-frame.expanded .stage-fullscreen {
  top: env(safe-area-inset-top); right: max(6px, env(safe-area-inset-right)); width: 44px; height: 44px;
  border: 0; color: white; background: transparent; font-size: 28px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.install-app { display: none; }
@media (max-width: 820px), (pointer: coarse) {
  html:not(.app-installed) .install-app { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #1759d5; color: white; font-weight: 800; }
}
#install-help { width: min(360px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 18px; }
#install-help h2 { margin: 0; }
#install-help::backdrop { background: rgb(15 19 30 / 60%); }
.catalog-editor { width: min(480px,calc(100% - 24px)); max-height: 90dvh; overflow: auto; padding: 24px; border: 0; border-radius: 18px; color: var(--ink); }
.catalog-editor::backdrop { background: rgba(24,20,16,.58); }
.original-choice { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.bulk-link-row .original-choice { grid-column: 2 / -1; }
.original-choice input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--blue); }
.edit-drop { display: grid; gap: 8px; margin: 12px 0; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; }
.edit-drop.dragging { border-color: var(--blue); background: #eef4ff; }
.edit-drop output { overflow-wrap: anywhere; }
.startup-shell, .starting #app > .seo-shell { display: none; }
.starting .startup-shell { display: block; }
.startup-shell .game-tile { background: #f2eae1; cursor: default; box-shadow: none; }
