:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface2: #edf0f4;
  --text: #222831; --muted: #5c6878; --border: #dde2ea;
  --primary: #1267ed; --hover: #0a53c5; --primary-soft: #edf4ff;
  --accent: #ffd43b; --accent-soft: #fff4c3; --accent-ink: #806000; --error: #b63737;
  --shadow: 0 18px 70px #162b4b2b; --radius: 6px;
  --font: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; --space: 24px;
}
[data-theme=dark] {
  --bg: #181d20; --surface: #222a2e; --surface2: #2c363b;
  --text: #f1f5f5; --muted: #afbdc5; --border: #3b474e;
  --primary: #82b1ff; --hover: #a9caff; --primary-soft: #25364e;
  --accent: #ffd43b; --accent-soft: #3b341e; --accent-ink: #ffe18a;
  --error: #ff9b9b; --shadow: 0 18px 70px #0007;
  color-scheme: dark;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font: 14px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
svg { width: 20px; height: 20px; stroke-width: 1.8; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 750; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 17px; line-height: 1.4; }
img { max-width: 100%; display: block; }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px; background: var(--surface); z-index: 60; }
.skip-link:focus { top: 10px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 15; }
.topbar-inner { max-width: 1440px; padding: 0 32px; margin: auto; height: 82px; display: flex; align-items: center; gap: 54px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 28px; font-weight: 800; line-height: 1; white-space: nowrap; }
.brand-accent { color: var(--primary); }
.brand-mark { width: 39px; height: 39px; object-fit: contain; flex-shrink: 0; }
.topnav { display: flex; align-items: stretch; align-self: stretch; gap: 28px; }
.topnav a { display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 3px solid transparent; padding-top: 3px; }
.topnav a:hover, .topnav a.active { color: var(--primary); }
.topnav a.active { border-color: var(--primary); }
.top-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; min-width: 0; }
.top-actions #account { max-width: 180px; }
.top-actions #account span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button { width: 36px; height: 36px; padding: 8px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: transparent; flex-shrink: 0; }
.icon-button:hover { background: var(--surface2); border-color: var(--border); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; min-height: 42px; border: 1px solid var(--primary); border-radius: 4px; background: var(--primary); color: var(--surface); font-weight: 650; line-height: 1.35; }
.button:hover { background: var(--hover); }
.button svg { width: 17px; height: 17px; }
.button-small { min-height: 35px; padding: 8px 12px; font-size: 12px; }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button-secondary:hover { background: var(--surface2); }
.button-danger { background: var(--surface); border-color: var(--error); color: var(--error); }
.button-danger:hover { background: var(--error); color: #fff; }
.button-ghost { border-color: transparent; background: none; color: var(--primary); }
.button-ghost:hover { background: var(--primary-soft); }
.button-glass { background: #14233b47; color: #fff; border-color: #ffffff91; }
.button-glass:hover { background: #14233b7d; }
.storebar { background: var(--surface); border-bottom: 1px solid var(--border); }
.storebar-inner { max-width: 1440px; margin: auto; min-height: 62px; padding: 9px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.store-nav { display: flex; align-items: center; gap: 27px; }
.store-nav a { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; min-height: 35px; }
.store-nav a.active, .store-nav a:hover { color: var(--primary); }
.store-nav a.active:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.store-nav svg { width: 14px; height: 14px; }
.store-nav b { font-size: 10px; min-width: 18px; text-align: center; padding: 0 4px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); }
.search { width: 300px; height: 36px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 4px; padding: 0 11px; background: var(--bg); }
.search:focus-within { border-color: var(--primary); }
.search input { border: 0; outline: none; background: transparent; min-width: 0; width: 100%; font-size: 12px; }
.search svg { width: 16px; height: 16px; color: var(--primary); }
.app-layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 174px minmax(0,1fr); gap: 30px; padding: 28px 32px 52px; min-height: calc(100vh - 240px); }
.sidebar { padding-top: 14px; min-width: 0; }
.nav-label { font-size: 10px; font-weight: 750; color: var(--muted); display: block; margin: 0 0 10px 9px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .sidebar nav button { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 550; background: none; border: 0; text-align: left; line-height: 1.6; }
.sidebar nav a:hover, .sidebar nav button:hover { color: var(--primary); background: var(--surface); }
.sidebar nav .active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.sidebar nav svg { width: 16px; height: 16px; }
.nav-second { margin-top: 27px; }
.sidebar-publish { margin-top: 30px; border-top: 1px solid var(--border); padding: 22px 9px 15px; color: var(--primary); }
.sidebar-publish > svg { width: 25px; height: 25px; color: var(--primary); margin-bottom: 9px; }
.sidebar-publish a { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 12px; font-weight: 650; }
.sidebar-publish a svg { width: 14px; height: 14px; }
.sidebar-footer { border-top: 1px solid var(--border); padding: 20px 9px; margin-top: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; }
.sidebar-footer a:hover { text-decoration: underline; }
main { width: 100%; min-width: 0; }
.store-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.store-heading .eyebrow { font-size: 10px; margin-bottom: 3px; }
.store-heading h1 { font-size: 26px; }
.store-tagline { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.eyebrow { font-size: 10px; font-weight: 750; color: var(--primary); text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 15px; min-height: 26px; }
.section-head h2 { font-size: 18px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.section-head > a, .text-link { color: var(--primary); font-weight: 650; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.section-head > a svg, .text-link svg { width: 14px; height: 14px; }
.carousel-controls { display: flex; gap: 5px; align-items: center; }
.carousel-controls > span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 54px; }
.carousel-controls .icon-button { width: 27px; height: 27px; padding: 3px; border-color: var(--border); background: var(--surface); }
.carousel-controls .icon-button:hover { border-color: var(--primary); }
.featured { position: relative; width: 100%; overflow: hidden; min-height: 330px; aspect-ratio: 3.15; background: #dbe6fa; color: #fff; border-radius: 4px; isolation: isolate; }
.featured-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; z-index: -2; }
.featured:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #14233bb8 0%, #14233b2e 45%, transparent 75%), linear-gradient(0deg, #14233b68, transparent 65%); z-index: -1; }
.featured-content { position: absolute; bottom: 30px; left: 32px; max-width: calc(100% - 64px); width: 530px; }
.feature-kicker { display: inline-flex; align-items: center; gap: 7px; color: #fff3c5; font-size: 10px; font-weight: 750; }
.feature-kicker:before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: var(--accent); }
.featured-content h2 { font-size: 44px; line-height: 1.2; margin: 8px 0; overflow-wrap: anywhere; text-shadow: 0 2px 18px #14282038; }
.featured-content h2, .featured-content > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.featured-content > p { font-size: 14px; color: #ffffffed; margin-bottom: 11px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 21px; }
.feature-tags span { background: #152e3a59; padding: 2px 8px; border: 1px solid #ffffff45; color: #fff; border-radius: 3px; font-size: 10px; }
.featured-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.featured-actions .button:not(.button-glass) { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.featured-actions .button:not(.button-glass):hover { background: var(--hover); border-color: var(--hover); }
.art-label { position: absolute; right: 15px; top: 15px; display: flex; align-items: center; gap: 5px; color: #fff; background: #172f4078; padding: 4px 7px; font-size: 9px; border-radius: 3px; }
.art-label svg { width: 11px; height: 11px; }
.feature-price { position: absolute; right: 28px; bottom: 29px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.feature-price > span { font-size: 11px; color: #fff; text-shadow: 0 1px 5px #0008; }
.feature-price > strong { background: var(--accent); color: #413100; padding: 5px 17px; border-radius: 3px; font-size: 15px; }
.feature-selector { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; gap: 4px; margin-top: 6px; }
.feature-choice { min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 3px solid transparent; padding: 10px 13px; background: var(--surface); border-radius: 2px; text-align: left; }
.feature-choice:hover { background: var(--primary-soft); }
.feature-choice.active { background: var(--primary-soft); border-color: var(--primary); }
.feature-choice > img { width: 68px; height: 41px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.feature-choice > span { flex: 1; min-width: 0; }
.feature-choice strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-choice small { display: block; font-size: 10px; margin-top: 3px; }
.feature-choice > svg { width: 15px; height: 15px; color: var(--muted); }
.spotlight, .discovery-shelf, .catalog-section, .genre-section { margin-bottom: 31px; }
.discovery-shelf { margin-top: 29px; }
.games-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; min-width: 0; transition: border-color .15s; }
.game-card:hover { border-color: var(--primary); }
.game-image { aspect-ratio: 16/8.5; position: relative; overflow: hidden; background: var(--surface2); }
.game-cover-link { display: block; width: 100%; height: 100%; }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.game-image:hover img { transform: scale(1.025); }
.game-image .icon-button { position: absolute; right: 9px; top: 9px; width: 29px; height: 29px; background: #ffffffed; color: #4c5b6f; border-color: #ffffffbb; padding: 6px; }
.game-image .icon-button svg { width: 16px; height: 16px; }
.icon-button.saved { background: #fff0f1; color: #ba4358; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; padding: 3px 7px; background: var(--primary-soft); color: var(--primary); border-radius: 3px; line-height: 1.4; }
.badge-neutral { background: var(--surface2); color: var(--muted); }
.badge-warm { background: var(--accent-soft); color: var(--accent-ink); }
.game-image > .badge { position: absolute; bottom: 9px; left: 10px; background: #122e36bd; color: #fff; font-size: 9px; }
.game-info { padding: 12px 14px 10px; }
.game-line { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.game-line h3 { font-size: 15px; overflow-wrap: anywhere; }
.game-line .price { background: var(--primary-soft); color: var(--primary); padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.game-info > p { color: var(--muted); font-size: 11px; margin: 4px 0 10px; min-height: 18px; }
.game-meta { border-top: 1px solid var(--border); padding-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.game-meta > span:first-child { flex: 1; }
.game-meta svg { height: 12px; width: 12px; }
.game-meta .badge { font-size: 8px; padding: 2px 5px; }
.demo-caption { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 10px; margin-top: 11px; }
.demo-caption svg { width: 12px; height: 12px; }
.browse-layout { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 24px; }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 5px; min-height: 42px; }
.catalog-tabs { display: flex; gap: 18px; align-self: stretch; }
.catalog-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 0; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.catalog-tabs button[aria-selected=true] { color: var(--primary); border-color: var(--primary); }
.genre-select { margin-left: auto; min-width: 0; }
.genre-select select { border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--muted); font-size: 10px; height: 27px; max-width: 135px; padding: 0 5px; }
.result-count { font-size: 11px; color: var(--muted); }
.catalog-list { display: flex; flex-direction: column; gap: 4px; }
.catalog-row { display: grid; grid-template-columns: 123px minmax(0,1fr) 110px 28px; gap: 13px; align-items: center; background: var(--surface); padding: 8px 9px 8px 8px; min-height: 85px; border-bottom: 1px solid var(--border); }
.catalog-row:hover { background: var(--primary-soft); }
.row-cover { width: 123px; aspect-ratio: 16/9; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.row-description { min-width: 0; }
.row-description h3 { font-size: 14px; overflow-wrap: anywhere; }
.row-description > p { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tags { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; margin-top: 7px; flex-wrap: wrap; }
.row-tags svg { width: 12px; height: 12px; }
.row-tags > span + span:before { content: "·"; margin-right: 7px; color: var(--muted); }
.row-price { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 0; }
.row-price strong { color: var(--primary); font-size: 13px; }
.row-price small { max-width: 100%; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-row > .icon-button { width: 28px; height: 28px; padding: 5px; }
.catalog-row > .icon-button svg { width: 15px; height: 15px; }
.catalog-aside { border-left: 1px solid var(--border); padding-left: 23px; padding-top: 7px; }
.catalog-aside h3 { font-size: 18px; line-height: 1.4; margin: 7px 0 17px; }
.catalog-aside img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.screenshot-label { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); margin-top: 5px; }
.screenshot-label svg { width: 11px; height: 11px; }
.catalog-aside > p { color: var(--muted); font-size: 11px; margin: 15px 0 11px; }
.genre-section .section-head h2 { font-size: 15px; text-transform: none; }
.genre-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.genre-tile { position: relative; border: 1px solid #d1e0fb; border-radius: 4px; background: #e6efff; color: #2454ad; padding: 19px 16px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; min-height: 128px; }
.genre-tile:hover { border-color: currentColor; }
.genre-tile > svg:first-child { width: 24px; height: 24px; margin-bottom: 10px; }
.genre-tile > strong { font-size: 15px; }
.genre-tile > span { font-size: 10px; margin-top: 3px; }
.genre-tile > svg:last-child { width: 14px; height: 14px; position: absolute; right: 13px; top: 18px; }
.genre-1 { background: #fff0ec; color: #ab4035; border-color: #f4dcd5; }
.genre-2 { background: #fff3c0; color: #795b00; border-color: #eddfa4; }
.genre-3 { background: #e7efdf; color: #527339; border-color: #dbe5d2; }
[data-theme=dark] .genre-tile { background: var(--surface); border-color: var(--border); color: var(--text); }
.bottom-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 23px 0; display: flex; align-items: center; gap: 17px; }
.bottom-band h3 { font-size: 16px; }
.bottom-band p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bottom-band .button { margin-left: auto; }
.publish-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; }
.publish-mark svg { width: 23px; height: 23px; }
.site-footer { max-width: 1440px; margin: auto; padding: 26px 32px 35px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 23px; font-size: 11px; color: var(--muted); }
.site-footer > a:not(.footer-brand) { margin-left: auto; }
.footer-brand { display: flex; gap: 7px; align-items: center; font-size: 17px; font-weight: 750; color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 5px 0 26px; }
.page-head .eyebrow { margin-bottom: 7px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 10px; }
.loading { padding: 60px 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 14px; }
.loading svg { animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.empty { padding: 45px 20px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty > svg { width: 33px; height: 33px; color: var(--primary); margin-bottom: 14px; }
.empty h2 { font-size: 20px; }
.empty p { max-width: 400px; margin: 9px auto 20px; color: var(--muted); font-size: 13px; }
.mobile-nav { display: none; }
dialog { border: 1px solid var(--border); border-radius: 6px; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); max-height: 92dvh; width: min(780px,calc(100vw - 28px)); }
dialog::backdrop { background: #12232ca6; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 23px; border-bottom: 1px solid var(--border); gap: 14px; }
.dialog-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.dialog-body { padding: 24px; }
.auth-dialog { max-width: 430px; margin: auto; padding: 10px 8px; }
.auth-dialog .brand { font-size: 26px; }
.auth-dialog h2 { font-size: 25px; margin: 18px 0 6px; }
.auth-dialog > p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid > .full { grid-column: 1/-1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; font-weight: 600; font-size: 12px; }
.field input, .field textarea, .field select { border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; background: var(--surface); color: var(--text); width: 100%; min-height: 42px; font-weight: 400; }
.field textarea { resize: vertical; min-height: 120px; }
.field input[type=file] { font-size: 11px; padding: 9px; }
.field small { font-weight: 400; font-size: 11px; }
.form-error { color: var(--error); font-size: 12px; padding: 9px 0; min-height: 22px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 20px; }
.auth-dialog .button { width: 100%; }
.auth-switch { display: block; margin: 15px auto 0; border: 0; background: none; color: var(--primary); font-size: 12px; }
.fineprint { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 16px 0; }
.detail-cover { aspect-ratio: 16/8; object-fit: cover; width: 100%; background: var(--primary-soft); }
.detail-top { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.detail-top h2 { font-size: 28px; overflow-wrap: anywhere; }
.detail-top p { color: var(--muted); font-size: 13px; }
.detail-top > strong { color: var(--primary); }
.detail-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 20px 0; }
.detail-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); line-height: 1.9; margin: 18px 0; }
.detail-data { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-section { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 22px; }
.detail-section h3 { margin-bottom: 15px; }
.gameplay-preview { width: 100%; height: auto; border-radius: 4px; margin-top: 12px; }
.comment { border-bottom: 1px solid var(--border); padding: 15px 0; }
.comment-head { display: flex; align-items: center; gap: 9px; font-size: 12px; flex-wrap: wrap; }
.avatar { width: 30px; height: 30px; background: var(--primary-soft); color: var(--primary); border-radius: 4px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.comment-head strong { overflow-wrap: anywhere; }
.comment-head small { margin-left: auto; font-size: 10px; }
.comment p { margin: 9px 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment > a { font-size: 11px; color: var(--primary); }
.comment .icon-button { height: 27px; width: 27px; padding: 5px; }
.comment .icon-button svg { width: 14px; height: 14px; }
.community-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 30px; }
.community-side { border-left: 1px solid var(--border); padding-left: 24px; }
.community-side h3 { font-size: 15px; margin-bottom: 12px; }
.community-side p { font-size: 12px; color: var(--muted); margin-bottom: 17px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.stat { padding: 20px; border-right: 1px solid var(--border); }
.stat:last-child { border: 0; }
.stat small { font-size: 11px; display: block; }
.stat strong { font-size: 27px; display: block; }
.studio-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.studio-table th { text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.studio-table td, .studio-table th { padding: 15px 12px; border-bottom: 1px solid var(--border); }
.studio-table td:first-child { font-weight: 650; }
.studio-table .game-cell { display: flex; gap: 12px; align-items: center; }
.game-cell span { overflow-wrap: anywhere; }
.game-cell img { width: 65px; height: 42px; object-fit: cover; border-radius: 3px; }
.table-wrap { overflow-x: auto; }
.studio-notice { padding: 15px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; margin-top: 24px; }
.studio-notice > svg { color: var(--primary); margin-top: 3px; }
.studio-notice p { font-size: 12px; color: var(--muted); }
.studio-notice strong { font-size: 12px; display: block; margin-bottom: 4px; }
.review-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.review-item p { font-size: 13px; color: var(--muted); margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-item .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-item code { font-size: 10px; overflow-wrap: anywhere; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; margin: 14px 0; color: var(--muted); }
.checkline input { accent-color: var(--primary); margin-top: 4px; width: 15px; flex-shrink: 0; }
.policy { max-width: 770px; }
.policy h2 { font-size: 21px; margin: 30px 0 12px; }
.policy p, .policy li { color: var(--muted); font-size: 13px; line-height: 1.9; }
.account-details { padding: 10px 0; }
.account-details p { padding: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.notice { background: var(--primary-soft); border-left: 3px solid var(--primary); padding: 12px 15px; font-size: 12px; margin: 15px 0; line-height: 1.8; }
.error-banner { padding: 20px; color: var(--error); border: 1px solid var(--error); border-radius: 4px; }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%,20px); max-width: calc(100vw - 40px); padding: 12px 20px; background: var(--text); color: var(--surface); box-shadow: var(--shadow); border-radius: 4px; z-index: 60; opacity: 0; pointer-events: none; font-size: 13px; transition: .2s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#player { width: min(1100px,calc(100vw - 20px)); height: min(760px,94dvh); max-height: 94dvh; }
#player[open] { display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; border-bottom: 1px solid var(--border); min-height: 50px; }
#game-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #cfe6cd; }
.edit-preview { width: 100%; max-height: 150px; object-fit: cover; border-radius: 4px; }
@media (min-width: 1650px) {
  .topbar-inner, .storebar-inner, .app-layout, .site-footer { max-width: 1520px; }
  .app-layout { grid-template-columns: 185px minmax(0,1fr); gap: 36px; }
  .featured { min-height: 370px; }
}
@media (max-width: 1150px) {
  .topbar-inner { gap: 30px; padding: 0 24px; }
  .topnav { gap: 20px; }
  .topnav a { font-size: 12px; }
  .brand { font-size: 25px; }
  .app-layout { grid-template-columns: 150px minmax(0,1fr); padding: 24px; gap: 22px; }
  .storebar-inner { padding-left: 24px; padding-right: 24px; }
  .store-nav { gap: 20px; }
  .store-tagline { display: none; }
  .featured { min-height: 320px; }
  .featured-content { left: 26px; bottom: 26px; }
  .featured-content h2 { font-size: 39px; }
  .feature-price { right: 20px; bottom: 26px; }
  .feature-choice { gap: 8px; padding: 9px; }
  .feature-choice > img { width: 52px; height: 35px; }
  .feature-choice > svg { display: none; }
  .games-grid { gap: 12px; }
  .game-info { padding: 11px; }
  .game-info > p { min-height: 34px; }
  .game-meta .category-tag { display: none; }
  .browse-layout { grid-template-columns: minmax(0,1fr); }
  .catalog-aside { display: none; }
  .community-layout { grid-template-columns: minmax(0,1fr); }
  .community-side { border: 0; padding: 20px 0; }
}
@media (max-width: 900px) {
  .topbar-inner { height: 73px; gap: 25px; }
  .topnav { gap: 17px; }
  .topnav a:last-child { display: none; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .top-actions { gap: 2px; }
  .top-actions #account { max-width: 115px; }
  .store-nav { gap: 17px; }
  .store-nav a { font-size: 11px; }
  .search { width: 230px; }
  .app-layout { display: block; }
  .sidebar { display: none; }
  .featured { min-height: 315px; }
  .genre-grid { gap: 10px; }
  .genre-tile { padding: 17px 13px; }
  .site-footer { padding: 23px 24px 32px; }
}
@media (max-width: 640px) {
  .topbar-inner { height: 65px; padding: 0 16px; gap: 8px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 5px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .topnav { display: none; }
  .top-actions .icon-button { width: 29px; height: 31px; padding: 6px; }
  .top-actions #account { width: 32px; height: 31px; min-height: 31px; padding: 6px; border-radius: 4px; }
  .top-actions #account span { display: none; }
  .storebar-inner { flex-wrap: wrap; min-height: 91px; padding: 6px 16px 11px; gap: 5px; }
  .store-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .store-nav a { min-height: 30px; font-size: 10px; }
  .store-nav .store-wishlist { margin-left: auto; }
  .store-nav svg { width: 12px; height: 12px; }
  .search { width: 100%; height: 34px; }
  .search input { font-size: 11px; }
  .app-layout { padding: 20px 16px 31px; min-height: calc(100dvh - 260px); }
  .store-heading { margin-bottom: 19px; }
  .store-heading h1 { font-size: 23px; }
  .store-heading .eyebrow { font-size: 9px; }
  .section-head { margin-bottom: 11px; gap: 10px; }
  .section-head h2 { font-size: 16px; }
  .section-head > a { font-size: 10px; }
  .carousel-controls > span { font-size: 9px; width: 41px; }
  .carousel-controls .icon-button { width: 24px; height: 24px; }
  .carousel-controls .icon-button svg { width: 16px; height: 16px; }
  .featured { aspect-ratio: auto; height: 300px; min-height: 300px; }
  .featured-art { object-position: 57% center; }
  .featured:after { background: linear-gradient(0deg, #14233bd9, #14233b14 90%); }
  .featured-content { left: 20px; bottom: 21px; max-width: calc(100% - 40px); width: auto; }
  .feature-kicker { font-size: 8px; }
  .featured-content h2 { font-size: 33px; margin: 6px 0; }
  .featured-content > p { font-size: 11px; margin-bottom: 8px; }
  .feature-tags { gap: 5px; margin: 10px 0 15px; }
  .feature-tags span { font-size: 9px; padding: 2px 6px; }
  .featured-actions { gap: 8px; }
  .featured-actions .button { font-size: 11px; min-height: 36px; padding: 8px 11px; }
  .featured-actions .button svg { width: 14px; height: 14px; }
  .art-label { right: 10px; top: 10px; font-size: 8px; }
  .feature-price { display: none; }
  .feature-selector { gap: 3px; }
  .feature-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 7px; min-height: 85px; }
  .feature-choice > img { width: 100%; height: 38px; }
  .feature-choice > span { width: 100%; }
  .feature-choice strong { font-size: 10px; }
  .feature-choice small { font-size: 9px; margin-top: 1px; }
  .feature-choice small > span { display: none; }
  .spotlight, .discovery-shelf, .catalog-section, .genre-section { margin-bottom: 25px; }
  .discovery-shelf { margin-top: 24px; }
  .games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .discovery-shelf .games-grid .game-card:last-child:nth-child(odd) { grid-column: 1/-1; display: grid; grid-template-columns: 45% minmax(0,1fr); }
  .discovery-shelf .games-grid .game-card:last-child:nth-child(odd) .game-image { height: 100%; aspect-ratio: auto; min-height: 130px; }
  .discovery-shelf .games-grid .game-card:last-child:nth-child(odd) .game-info { display: flex; flex-direction: column; }
  .discovery-shelf .games-grid .game-card:last-child:nth-child(odd) .game-meta { margin-top: auto; }
  .game-image { aspect-ratio: 16/10; }
  .game-info { padding: 10px; }
  .game-line { align-items: flex-start; gap: 5px; }
  .game-line h3 { font-size: 13px; }
  .game-line .price { font-size: 9px; padding: 1px 5px; }
  .game-info > p { font-size: 10px; line-height: 1.6; min-height: 32px; margin-bottom: 8px; }
  .game-meta { font-size: 8px; gap: 5px; padding-top: 8px; }
  .game-meta > span:first-child { flex-basis: 100%; }
  .game-image .icon-button { width: 26px; height: 26px; top: 7px; right: 7px; padding: 5px; }
  .game-image > .badge { left: 7px; bottom: 7px; font-size: 8px; padding: 3px 5px; }
  .demo-caption { font-size: 9px; align-items: flex-start; }
  .demo-caption svg { margin-top: 2px; flex-shrink: 0; }
  .catalog-toolbar { flex-wrap: wrap; gap: 9px; padding-bottom: 9px; }
  .catalog-tabs { gap: 21px; width: 100%; min-height: 40px; }
  .catalog-tabs button { font-size: 12px; }
  .genre-select { margin-left: 0; }
  .genre-select select { font-size: 10px; max-width: none; min-width: 110px; }
  .catalog-row { grid-template-columns: 92px minmax(0,1fr) 27px; gap: 4px 9px; padding: 8px; min-height: 88px; }
  .row-cover { width: 92px; height: 65px; aspect-ratio: auto; grid-row: 1/3; align-self: center; }
  .row-description { grid-column: 2/4; }
  .row-description h3 { font-size: 12px; }
  .row-description > p { font-size: 9px; margin-top: 1px; }
  .row-tags { font-size: 8px; gap: 5px; margin-top: 5px; }
  .row-tags > span:last-child { display: none; }
  .row-tags > span + span:before { margin-right: 5px; }
  .row-price { flex-direction: row; align-items: center; gap: 10px; grid-column: 2; }
  .row-price strong { font-size: 11px; }
  .row-price small { font-size: 8px; }
  .catalog-row > .icon-button { grid-column: 3; grid-row: 2; }
  .genre-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .genre-tile { padding: 17px 14px; min-height: 127px; }
  .genre-tile > strong { font-size: 14px; }
  .genre-tile > span { font-size: 10px; }
  .genre-tile > svg:first-child { width: 23px; height: 23px; }
  .bottom-band { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 9px 13px; padding: 20px 0; }
  .publish-mark { width: 35px; height: 35px; }
  .publish-mark svg { width: 19px; height: 19px; }
  .bottom-band h3 { font-size: 13px; }
  .bottom-band p { font-size: 10px; }
  .bottom-band .button { grid-column: 2; margin: 5px auto 0 0; font-size: 10px; min-height: 33px; }
  .site-footer { margin: 0 16px; padding: 20px 0 100px; gap: 10px 16px; flex-wrap: wrap; font-size: 10px; }
  .site-footer > span { flex-basis: calc(100% - 140px); }
  .site-footer > a:not(.footer-brand) { margin-left: 0; }
  .footer-brand { font-size: 15px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 9px 4px max(10px,env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; min-width: 65px; }
  .mobile-nav a.active { color: var(--primary); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .page-head { align-items: flex-start; margin-top: 0; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 12px; }
  .page-head > .button { font-size: 10px; min-height: 34px; padding: 8px; white-space: nowrap; }
  .dialog-head { padding: 14px 18px; }
  .dialog-body { padding: 18px; }
  .auth-dialog h2 { font-size: 23px; }
  .auth-dialog .brand { font-size: 23px; }
  .detail-top h2 { font-size: 25px; }
  .detail-cover { aspect-ratio: 16/10; }
  .detail-actions .button { font-size: 12px; padding: 9px 12px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid > .full { grid-column: auto; }
  .stat { padding: 15px 9px; }
  .stat strong { font-size: 23px; }
  .stat small { font-size: 9px; }
  .studio-table td, .studio-table th { padding: 12px 8px; }
  .game-cell img { display: none; }
  .studio-table { font-size: 11px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1; }
  .community-layout { gap: 15px; }
  #toast { bottom: 88px; width: max-content; max-width: calc(100vw - 30px); font-size: 12px; }
  #player { height: min(calc(56.25vw + 120px),85dvh); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
