@font-face { font-family: "Journal World Hand"; src: url('/assets/fonts/journal-world-hand.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+4E16,U+754C; }
:root {
  color-scheme: dark;
  --canvas: #29292c;
  --backdrop: #1d1d1f;
  --field: #353539;
  --surface-hover: #3d3d42;
  --text: #f5f5f5;
  --secondary: #bdbdc2;
  --muted: #94949b;
  --line: #f5f5f51a;
  --line-strong: #f5f5f52e;
  --glass-surface: linear-gradient(135deg, #ffffff10 0%, #ffffff04 46%, #ffffff09 100%);
  --glass-line: #ffffff24;
  --glass-radius: 12px;
  --glass-blur: 14px;
  --primary: #47778f;
  --primary-hover: #3d6e88;
  --accent: #6fa6c4;
  --accent-bright: #7cc2e0;
  --selection: #ff4550;
  --positive: #85d39c;
  --gold: #e4b04a;
  --purple: #c3adf0;
  --error: #e0906f;
  --early-access-bg: #20382a;
  --spoiler-bg: #101012;
  --media-radius: 6px;
  --control-radius: 3px;
  --font: "Inter", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); scrollbar-gutter: stable; scroll-padding-top: 76px; }
body { margin: 0; min-width: 0; font: 14px/1.6 var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
input, select, textarea { color: var(--text); caret-color: var(--accent-bright); }
input::placeholder, textarea::placeholder { color: var(--secondary); }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border: 2px solid var(--canvas); border-radius: var(--media-radius); }
svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.shell { width: 100%; max-width: 1200px; padding-inline: 32px; margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 10px 18px; background: var(--primary); color: white; z-index: 100; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 40; height: 64px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.header-inner { display: flex; height: 100%; align-items: center; gap: 40px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.brand-symbol { display: grid; place-items: center; width: 28px; color: var(--accent-bright); }
.brand-symbol svg { width: 27px; height: 27px; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.main-nav a::after { position: absolute; content: ""; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--selection); }
.main-nav a span { color: var(--muted); font-size: 12px; font-weight: 400; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.steam-link-button { color: var(--secondary); }
.steam-link-button:hover:not(:disabled), .steam-link-button:focus-visible { color: var(--accent-bright); outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.steam-login-button { flex-shrink: 0; }
.steam-login-button.is-authenticated { color: var(--accent-bright); }
#steamLoginLabel { display: block; min-width: 0; max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.steam-author-badge { display: inline-block; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); color: var(--accent-bright); font-size: 10px; line-height: 1.6; font-weight: 400; }
.steam-claim-section { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.steam-claim-section p { margin-bottom: 12px; }
.steam-claim-section .form-note { margin-top: 10px; font-size: 12px; }
.steam-visitor-dialog>#steamProfileLink { color: var(--accent-bright); }
.owner-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.admin-login-dialog { max-width: 420px; }
.admin-key-label { display: block; margin-block: 20px 8px; font-size: 12px; color: var(--secondary); }
.admin-login-dialog .field-input { width: 100%; }
.admin-login-dialog .confirm-actions { margin-top: 20px; }
.admin-login-dialog #adminLoginError { margin: 12px 0 0; color: var(--error); }
.admin-login-dialog #closeAdminSetup { margin-top: 20px; }
.online-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--positive); }
.primary-button, .secondary-button, .filter-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--control-radius); border: 0; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
.primary-button { background: var(--primary); color: white; }
.primary-button:hover { background: var(--primary-hover); }
.secondary-button, .filter-button { background: transparent; border: 1px solid var(--line-strong); }
.secondary-button:hover, .filter-button:hover { background: var(--field); }
.secondary-button { background: var(--field); padding-inline: 16px; }
.secondary-button:hover { background: var(--surface-hover); }
.primary-button svg, .secondary-button svg, .filter-button svg, .quiet-button svg { width: 16px; height: 16px; }
.quiet-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 0; border: 0; background: none; color: var(--secondary); font-size: 12px; transition: color 150ms ease-out; }
.quiet-button:hover, .text-button:hover { color: var(--text); }
.icon-button { width: 36px; height: 36px; padding: 0; background: transparent; color: var(--secondary); }
.icon-button:hover { background: var(--field); color: var(--text); }
.small { height: 32px; padding-inline: 10px; font-size: 12px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 41px 37px; }
h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 700; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.intro-separator { padding-inline: 11px; color: var(--muted); }
.title-world { display: inline-flex; width: 2.06em; gap: .02em; margin-inline: .03em; font-family: "Journal World Hand", "KaiTi", serif; font-size: 1.4em; font-weight: 400; line-height: 1; color: var(--accent-bright); vertical-align: -.045em; transform-origin: 50% 65%; white-space: nowrap; }
/* Keep resting offsets independent from GSAP's pointer transforms. */
.title-world-char { position: relative; display: inline-block; transform-origin: 50% 70%; }
.title-world-char:first-child { top: -.12em; }
.title-world-char:last-child { top: .12em; }
.mouse-motion-on #backToTop svg { transition: transform 160ms cubic-bezier(.16,1,.3,1); }
.mouse-motion-on #backToTop:hover svg { transform: translateY(-3px); }
.is-glass-interactive { position: relative; isolation: isolate; }
.glass-reflection { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.glass-reflection>span { position: absolute; top: 0; left: 0; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, #eef8ff24 0%, #f4faff0f 32%, #ffffff00 70%); opacity: 0; transition: opacity 700ms cubic-bezier(.16,1,.3,1); pointer-events: none; }
.glass-reflection>span:nth-child(2) { width: 280px; height: 280px; transition-duration: 820ms; }
.glass-reflection>span:nth-child(3) { width: 240px; height: 240px; transition-duration: 940ms; }
.glass-reflection.is-reflecting>span { opacity: .72; transition-duration: 100ms; will-change: transform, opacity; }
.glass-reflection.is-reflecting>span:nth-child(2) { opacity: .42; }
.glass-reflection.is-reflecting>span:nth-child(3) { opacity: .24; }
.collection-actions { display: flex; gap: 10px; }
.status-tabs { display: flex; align-items: center; gap: 27px; border-bottom: 1px solid var(--line); min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tab { align-self: stretch; position: relative; display: flex; align-items: center; gap: 7px; padding: 0 0 13px; border: 0; background: transparent; font-size: 13px; color: var(--secondary); white-space: nowrap; }
.status-tab span { color: var(--muted); font-size: 12px; }
.status-tab[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.status-tab[aria-pressed="true"]::after { position: absolute; content: ""; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.status-tab:hover { color: var(--text); }
.status-tab .status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--status-color); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 18px 0; }
.search-box { display: flex; gap: 10px; align-items: center; min-width: 200px; width: 325px; height: 40px; border: 1px solid var(--line-strong); padding-inline: 11px; border-radius: var(--control-radius); color: var(--muted); }
.search-box:focus-within { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.search-box svg { width: 17px; height: 17px; }
.search-box input { width: 100%; min-width: 0; outline: 0; border: 0; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: var(--muted); }
kbd { border: 1px solid var(--line-strong); border-radius: 3px; height: 19px; min-width: 18px; text-align: center; font: 12px/17px var(--font); color: var(--muted); }
.select-wrap { position: relative; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--control-radius); height: 40px; max-width: 100%; }
.select-wrap:focus-within { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.select-wrap select { appearance: none; display: block; width: 100%; height: 100%; background: transparent; border: 0; border-radius: inherit; font-size: 12px; min-width: 134px; padding: 0 34px 0 12px; cursor: pointer; }
.select-wrap select:focus { outline: 0; }
.select-wrap>[data-icon] { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: grid; place-items: center; pointer-events: none; }
.select-wrap svg { width: 14px; height: 14px; color: var(--muted); }
option { background: var(--canvas); color: var(--text); }
.platform-select select { min-width: 152px; }
.sort-controls { position: relative; max-width: 100%; }
.sort-picker { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--control-radius); background: transparent; color: var(--secondary); font-size: 12px; white-space: nowrap; }
.sort-picker:hover, .sort-picker[aria-expanded="true"] { background: var(--field); color: var(--text); }
.sort-picker svg, .sort-option svg { width: 14px; height: 14px; flex-shrink: 0; }
.sort-caret { display: grid; place-items: center; margin-left: 3px; color: var(--muted); }
.sort-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 35; min-width: 216px; max-width: calc(100vw - 32px); padding: 5px; border-radius: var(--media-radius); background: var(--field); box-shadow: 0 6px 18px #0005; }
.sort-option { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; min-height: 40px; padding: 8px 11px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--secondary); text-align: left; font-size: 12px; }
.sort-option:hover, .sort-option[aria-checked="true"] { background: var(--canvas); color: var(--accent-bright); }
.sort-option:focus-visible { outline-offset: -2px; }
.sort-option-order { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11px; }
.toolbar-spacer { flex: 1; }
.filter-count { display: grid; place-items: center; min-width: 17px; height: 17px; background: var(--primary); color: white; font-size: 12px; border-radius: 3px; }
.filter-button[aria-expanded="true"] { border-color: var(--accent); }
.advanced-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 18px 16px; margin-top: 16px; background: var(--field); border-radius: var(--media-radius); }
.advanced-filters>div { display: flex; align-items: flex-start; gap: 16px; flex: 1; min-width: 0; }
.advanced-filters>.filter-fields { flex: 0 0 auto; flex-direction: column; gap: 12px; }
.filter-label { font-size: 12px; color: var(--secondary); white-space: nowrap; line-height: 27px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag { border: 1px solid var(--line-strong); background: transparent; color: var(--secondary); padding: 3px 8px; border-radius: 3px; font-size: 12px; }
.filter-tag:hover, .filter-tag[aria-pressed="true"] { background: var(--canvas); color: var(--accent-bright); border-color: var(--accent); }
.type-filter-toggle { min-width: 134px; max-width: 190px; justify-content: space-between; font-size: 12px; }
.type-filter-toggle>#typeFilterLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.type-filter-toggle svg { width: 14px; height: 14px; color: var(--muted); }
.type-filter-toggle.is-filtered { color: var(--accent-bright); }
.type-filter-toggle[aria-expanded="true"] { border-color: var(--accent); }
.type-filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.type-filter-panel { padding: 12px 16px 18px; margin-top: 16px; background: var(--field); border-radius: var(--media-radius); }
.type-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.type-filter-heading>div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.type-filter-heading>.icon-button { flex-shrink: 0; }
.type-filter-heading svg { width: 16px; height: 16px; }
.type-filter-panel .filter-tags { gap: 8px; }
.type-filter-panel .filter-tag { min-height: 32px; padding: 4px 10px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.score-filter, .platform-filter { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.filter-fields .select-wrap select { min-width: 152px; }
.results-line { min-height: 53px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.results-line p { margin: 0; white-space: nowrap; }
.results-line strong { color: var(--secondary); font-weight: 500; }
.results-note { margin-left: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.active-filter { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 2px 5px; color: var(--accent-bright); background: var(--field); border-radius: 3px; font-size: 12px; max-width: 100%; }
.active-filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-filter svg { width: 11px; height: 11px; }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
.game-card { min-width: 0; display: flex; flex-direction: column; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.cover-frame { position: relative; isolation: isolate; flex-shrink: 0; border-radius: var(--media-radius); }
.cover-frame>.cover-button { z-index: 1; }
.cover-button { display: block; position: relative; width: 100%; aspect-ratio: 460 / 215; padding: 0; border: 0; background: var(--backdrop); border-radius: var(--media-radius); overflow: hidden; cursor: pointer; }
.game-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-button.is-previewing > .game-cover:not(.card-preview-image), .cover-button.is-previewing > .cover-fallback { visibility: hidden; }
.cover-button > .card-preview-image { position: absolute; inset: 0; object-fit: contain; z-index: 1; }
.cover-button > .cover-badges, .cover-button > .cover-expand { z-index: 2; }
.card-preview-in { animation: image-in 160ms ease-out; }
.shot-thumb.is-preview-target, .shot-thumb:focus-visible, .game-review:hover, .game-review:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.cover-button::after { content: ""; position: absolute; inset: 0; border-radius: var(--media-radius); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow 150ms ease-out; }
.cover-button:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.cover-fallback { display: flex; height: 100%; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--secondary); }
.cover-badges { position: absolute; left: 9px; top: 9px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 18px); pointer-events: none; }
.cover-button.has-achievement-number > .cover-badges { max-width: calc(100% - 54px); }
.achievement-number { position: absolute; top: 9px; right: 9px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #151517bf; color: #ededf0; font-size: 11px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.genre-badge { min-width: 0; height: 24px; padding: 3px 7px; border-radius: 3px; background: #1d1d1fe6; color: #ededf0; font-size: 12px; line-height: 18px; font-weight: 500; }
.early-access-badge { flex-shrink: 0; height: 24px; padding: 3px 7px; border-radius: 3px; background: var(--early-access-bg); color: var(--positive); font-size: 12px; line-height: 18px; font-weight: 700; }
.featured-cover.is-shining::before { content: ""; position: absolute; inset: -65%; z-index: 1; pointer-events: none; background: linear-gradient(135deg, transparent 36%, #ffffff08 41%, #ffffff52 47%, #ffffffb3 49.5%, #ffffff45 53%, #ffffff0d 58%, transparent 63%); animation: cover-shine 3200ms cubic-bezier(.24,.12,.48,1) both; will-change: transform, opacity; }
@keyframes cover-shine { 0% { transform: translate(-52%,-52%); opacity: 0; } 14%, 84% { opacity: .9; } 100% { transform: translate(52%,52%); opacity: 0; } }
.modal-open .featured-cover.is-shining::before, .cover-effects-paused .featured-cover.is-shining::before { animation-play-state: paused; }
.featured-cover.is-previewing::before { opacity: 0 !important; animation-play-state: paused; }
.cover-expand { position: absolute; right: 9px; bottom: 9px; padding: 5px; border-radius: 3px; background: #0009; color: white; opacity: 0; transition: opacity 150ms ease-out; }
.cover-expand svg { width: 14px; height: 14px; }
.cover-button:hover .cover-expand, .cover-button:focus-visible .cover-expand { opacity: 1; }
.screenshot-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.shot-thumb { position: relative; border: 0; padding: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 38px; display: flex; align-items: center; justify-content: center; background: var(--field); color: var(--muted); border-radius: var(--media-radius); overflow: hidden; transition: background-color 150ms ease-out; }
.screenshot-thumbnail-concealed { visibility: hidden; }
.screenshot-spoiler-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 11px; pointer-events: none; }
.screenshot-spoiler-notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--secondary); font-size: 14px; line-height: 1.6; pointer-events: none; }
.screenshot-spoiler-notice>svg, .screenshot-spoiler-notice>[data-icon] svg { width: 24px; height: 24px; color: var(--accent-bright); }
.screenshot-spoiler-notice small { color: var(--muted); font-size: 12px; }
.media-stage.screenshot-concealed>img, .media-stage.screenshot-concealed>.cover-fallback, .image-viewer.screenshot-concealed .viewer-image-button img { visibility: hidden; }
.media-stage.screenshot-concealed .media-zoom-button { cursor: pointer; }
.image-viewer.screenshot-concealed .viewer-image-button { cursor: pointer; }
.shot-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.shot-thumb svg { width: 16px; height: 16px; }
.shot-thumb:hover { background: var(--surface-hover); color: var(--secondary); }
.shot-thumb:first-child.empty-thumb { position: relative; }
.shot-placeholder-label { font-size: 12px; color: var(--secondary); }
.game-title { margin: 15px 0 0; min-height: 26px; font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.game-title-text { width: 100%; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; }
.game-name-copy { padding: 0; border: 0; border-radius: var(--control-radius); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; user-select: text; transition: color 150ms ease-out; }
.game-name-copy:hover, .game-name-copy:focus-visible, .game-name-copy.is-copied { color: var(--accent-bright); }
.game-name-copy:focus-visible { outline-offset: -2px; }
.game-name { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-title-secondary { display: flex; flex: 1 1 0; align-items: baseline; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; }
.title-divider { flex-shrink: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.game-english { flex: 1; min-width: 0; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.game-tags { display: flex; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; gap: 5px; min-height: 22px; margin-top: 10px; }
.game-tag { display: inline-flex; align-items: center; border: 0; padding: 2px 6px; color: var(--secondary); font-size: 12px; line-height: 18px; border-radius: 3px; background: var(--field); white-space: nowrap; }
button.game-tag:hover { color: var(--accent-bright); background: var(--surface-hover); }
.game-card .game-tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.alias-tag, button.alias-tag:hover { color: var(--alias-color, var(--accent-bright)); }
.filter-tag.alias-tag, .filter-tag.alias-tag[aria-pressed="true"] { color: var(--alias-color); }
.filter-tag.alias-tag[aria-pressed="true"] { border-color: var(--alias-color); }
.game-tag.more-tag { background: transparent; color: var(--muted); }
.game-review { margin: 5px -6px 12px; padding: 5px 6px; width: calc(100% + 12px); min-height: 47px; border: 0; border-radius: var(--media-radius); background: transparent; text-align: left; color: var(--secondary); font-size: 13px; line-height: 1.8; }
.game-review>span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.game-review.no-review { color: var(--muted); }
.game-metrics { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.metric-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.status-label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: var(--field); color: var(--status-color,var(--secondary)); border-radius: 3px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-label svg { width: 12px; height: 12px; }
.rating { color: var(--accent); font-size: 24px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.rating-low { color: var(--selection); }
.rating-high { color: var(--gold); }
.rating small { color: var(--muted); font-size: 12px; font-weight: 400; padding-left: 2px; }
.unrated { color: var(--muted); font-size: 12px; font-weight: 400; }
.playtime { display: flex; align-items: center; gap: 4px; color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.playtime svg { width: 13px; height: 13px; color: var(--muted); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }
.card-bottom { flex-wrap: wrap; gap: 8px 10px; }
.card-export-button { padding: 0; min-height: 24px; border: 0; border-radius: var(--control-radius); background: transparent; color: inherit; font: inherit; text-align: left; transition: color 150ms ease-out; }
.card-export-button:hover, .card-export-button:focus-visible { color: var(--accent-bright); }
.card-bottom-links { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; margin-left: auto; }
.card-comment-link { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0; border: 0; background: transparent; color: var(--secondary); font: inherit; }
.card-comment-link svg { width: 13px; height: 13px; }
.card-comment-link:hover { color: var(--accent-bright); }
.image-export-stage { position: fixed; top: 0; left: -20000px; pointer-events: none; }
.game-card.game-card-export { width: 400px; min-height: 482px; padding: 18px 15px; margin: 0; border: 0; border-radius: 12px; background: var(--canvas); }
.game-card-export .cover-button { aspect-ratio: 460 / 215; }
.game-card-export .shot-thumb { aspect-ratio: 16 / 9; }
.game-card-export .cover-button::after { box-shadow: none !important; }
.game-card-export .featured-cover::before { display: none !important; }
.game-card-export .game-name-copy, .game-card-export .card-export-button { color: inherit; transition: none; }
.game-card-export .game-english { color: var(--muted); }
.game-card-export .shot-thumb, .game-card-export .game-review { outline: none !important; }
.game-card-export .review-spoiler:not(.is-revealed) { color: transparent !important; background: var(--spoiler-bg); }
.card-export-platform { color: var(--secondary); white-space: nowrap; }
.review-spoiler { display: inline; vertical-align: baseline; padding: 0 2px; border: 0; border-radius: 2px; background: var(--spoiler-bg); color: transparent; font: inherit; line-height: inherit; text-align: inherit; white-space: pre-wrap; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: pointer; }
.review-spoiler:hover, .review-spoiler.is-revealed { color: var(--text); background: var(--field); }
.review-spoiler:focus-visible { outline-offset: 2px; }
.catalog-more { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 28px 36px; color: var(--muted); font-size: 12px; overflow-anchor: none; }
.catalog-more p { margin: 0; }
.catalog-sentinel { position: absolute; top: 0; left: 0; width: 100%; height: 1px; pointer-events: none; }
.catalog-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; }
.catalog-actions .secondary-button { min-height: 44px; }
.catalog-auto-load { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--secondary); cursor: pointer; }
.catalog-auto-load input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-bright); cursor: pointer; }
.floating-tools { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.floating-tools>* { pointer-events: auto; }
.floating-auto-load { min-height: 30px; gap: 4px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--field); font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translateX(8px); }
.floating-auto-load input { width: 12px; height: 12px; flex-shrink: 0; }
.modal-open .floating-tools { visibility: hidden; }
.back-to-top { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--field); color: var(--secondary); transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; }
.back-to-top>span { display: grid; place-items: center; pointer-events: none; }
.back-to-top svg { width: 21px; height: 21px; }
.back-to-top:hover { color: var(--accent-bright); border-color: var(--accent); background: var(--surface-hover); }
.has-back-to-top .toast-region, .has-auto-load-control .toast-region { bottom: calc(84px + env(safe-area-inset-bottom)); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px 30px; font-size: 12px; color: var(--muted); overflow-anchor: none; }
.footer-brand { color: var(--secondary); }
.footer-divider { padding-inline: 8px; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { display: flex; align-items: center; gap: 4px; }
.footer-links svg { width: 12px; height: 12px; }
.footer-links button { padding: 0; background: none; border: 0; color: inherit; font: inherit; }
.footer-links button:hover, .footer-links a:hover { color: var(--text); }
.empty-state, .load-error { padding: 70px 20px 85px; text-align: center; color: var(--secondary); }
.empty-state>span { color: var(--muted); margin-bottom: 8px; }
.empty-state>span svg { width: 32px; height: 32px; }
.empty-state h2, .load-error h2 { margin: 6px 0; font-size: 18px; color: var(--text); }
.empty-state p, .load-error p { margin: 0 0 22px; font-size: 13px; }
.game-dialog { width: min(1040px,calc(100vw - 64px)); max-width: none; height: min(900px,calc(100dvh - 64px)); max-height: none; margin: auto; border: 0; padding: 0; background: var(--canvas); color: var(--text); border-radius: 12px; box-shadow: 0 16px 48px #0006; overflow: hidden; }
.game-dialog::backdrop, .confirm-dialog::backdrop { background: #0009; }
.game-dialog[open]::backdrop { animation: backdrop-in 160ms ease-out; }
.game-dialog.is-closing { animation: dialog-out 140ms ease-out forwards; }
.game-dialog.is-closing::backdrop { animation: backdrop-out 140ms ease-out forwards; }
.game-dialog[open] { animation: dialog-in 180ms cubic-bezier(.2,0,0,1); }
.game-dialog[open].is-closing { animation: dialog-out 140ms ease-out forwards; }
@keyframes dialog-in { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(8px); } }
@keyframes backdrop-in { from { background: #0000; } to { background: #0009; } }
@keyframes backdrop-out { from { background: #0009; } to { background: #0000; } }
.dialog-frame { display: flex; flex-direction: column; height: 100%; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; height: 58px; flex-shrink: 0; padding-inline: 24px 13px; border-bottom: 1px solid var(--line); }
.dialog-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dialog-breadcrumb svg { width: 15px; height: 15px; }
.dialog-actions { display: flex; align-items: center; gap: 16px; }
.dialog-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; scrollbar-gutter: stable; }
.detail-media { padding: 24px 32px 0; }
.media-stage { position: relative; aspect-ratio: 16/9; width: 100%; max-height: 430px; display: grid; place-items: center; background: var(--backdrop); border-radius: 6px; overflow: hidden; }
.media-stage>img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; position: absolute; inset: 0; }
.media-zoom-button { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.media-zoom-button:focus-visible { outline-offset: -3px; }
.media-nav { position: absolute; top: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; width: clamp(48px, 14%, 140px); border: 0; border-radius: 0; padding: 0; color: white; background: transparent; opacity: 0; cursor: pointer; transition: opacity 150ms ease-out, background-color 150ms ease-out; }
.media-nav-prev { left: 0; }
.media-nav-next { right: 0; }
.media-nav:hover, .media-nav:focus-visible { opacity: 1; background: rgba(0, 0, 0, .16); outline-offset: -3px; }
.media-nav svg { width: 34px; height: 34px; stroke-width: 2.2; filter: drop-shadow(0 1px 3px #0009); }
.image-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--backdrop); color: var(--text); overflow: hidden; }
.image-viewer::backdrop { background: var(--backdrop); }
.viewer-image-button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-out; }
.viewer-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-caption { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 4; width: max-content; max-width: min(900px,calc(100% - 32px)); padding: 5px 12px; border-radius: 3px; background: #0009; color: white; font-size: 12px; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
@media (hover: none) { .media-nav { opacity: .85; background: rgba(0, 0, 0, .08); } }
.media-fade-in { animation: image-in 160ms ease-out; }
.media-fade-out { animation: image-out 160ms ease-out forwards; }
@keyframes image-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes image-out { from { opacity: 1; } to { opacity: 0; } }
.media-empty-note { position: absolute; bottom: 13px; left: 15px; padding: 4px 9px; color: var(--secondary); background: #1d1d1fe6; border-radius: 3px; font-size: 12px; }
.media-controls { display: grid; grid-template-columns: minmax(140px,1fr) minmax(0,4fr) minmax(140px,1fr); align-items: center; gap: 16px; margin-top: 12px; }
.media-caption { grid-column: 1; color: var(--muted); font-size: 12px; white-space: nowrap; }
.screenshot-description { grid-column: 2; min-width: 0; margin: 0; color: var(--secondary); font-size: 13px; line-height: 1.6; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-control-buttons { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.media-control-buttons button { display: flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: transparent; color: var(--secondary); font-size: 12px; }
.media-control-buttons button[aria-pressed="true"] { color: var(--accent-bright); }
.media-control-buttons svg { width: 15px; height: 15px; }
.detail-shots { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px 4px; }
.detail-shot { position: relative; border: 1px solid transparent; border-radius: var(--media-radius); overflow: hidden; padding: 0; background: var(--field); width: 104px; height: 60px; flex: 0 0 104px; }
.detail-shot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-shot[aria-pressed="true"] { border-color: var(--accent-bright); }
.detail-body { padding: 27px 48px 40px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-heading h2 { font-size: 29px; line-height: 1.35; margin: 0 0 5px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.detail-english { margin: 0; color: var(--muted); font-size: 13px; }
.detail-heading .rating { font-size: 32px; padding-top: 4px; white-space: nowrap; }
.detail-section { margin-top: 29px; padding-top: 25px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 17px; font-size: 14px; font-weight: 600; }
.property-list { margin: 0; display: grid; gap: 15px; }
.property-row { display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 16px; font-size: 16px; }
.property-row dt { color: var(--muted); display: flex; gap: 9px; align-items: center; font-size: 13px; }
.property-row dt svg { width: 15px; height: 15px; }
.property-row dd { margin: 0; overflow-wrap: anywhere; }
.property-row .game-tags { margin: 0; height: auto; overflow: visible; }
.property-row .game-tag { font-size: 12px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.company-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.company-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.company-alias { color: var(--alias-color, var(--accent-bright)); font-size: 12px; padding: 1px 6px; border-radius: 3px; background: var(--field); }
.company-name-filter { flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 2px 5px; border: 0; border-radius: 3px; background: transparent; color: var(--text); font: inherit; line-height: inherit; text-align: left; word-break: normal; overflow-wrap: break-word; }
button.company-alias { border: 0; font-family: inherit; max-width: 100%; overflow-wrap: anywhere; }
.company-name-filter:hover, .company-name-filter:focus-visible, .company-name-filter[aria-pressed="true"], button.company-alias:hover, button.company-alias:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.company-name-filter:hover, .company-name-filter[aria-pressed="true"] { color: var(--accent-bright); }
.subtle-link { color: var(--accent-bright); display: inline-flex; gap: 4px; align-items: center; }
.subtle-link svg { width: 13px; height: 13px; }
.detail-review { max-width: 72ch; margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-review.empty-copy { color: var(--muted); }
.section-heading { display: flex; align-items: center; gap: 8px; }
.section-heading span { color: var(--muted); font-weight: 400; font-size: 12px; }
.comments-empty { color: var(--muted); font-size: 13px; padding: 4px 0 14px; margin: 0; }
.comment-row { display: flex; align-items: flex-start; gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.comment-avatar { height: 28px; width: 28px; display: grid; place-items: center; border-radius: var(--media-radius); background: var(--field); color: var(--accent-bright); font-size: 12px; flex-shrink: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.comment-meta strong { font-size: 12px; font-weight: 600; }
.comment-meta time, .edited-mark { color: var(--muted); font-size: 12px; }
.comment-text { margin: 5px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.comment-delete { color: var(--secondary); }
.comment-delete:hover { color: var(--selection); }
.comment-form { margin-top: 24px; }
.comment-form>p { margin: 0 0 13px; color: var(--secondary); font-size: 12px; }
.comment-inputs { display: grid; grid-template-columns: 155px 1fr; gap: 12px; align-items: start; }
.field-label { display: block; color: var(--secondary); font-size: 12px; margin-bottom: 7px; }
.field-input { display: block; width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--field); padding: 9px 11px; font-size: 16px; }
textarea.field-input { height: 80px; resize: vertical; min-height: 70px; line-height: 1.8; }
.comment-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.comment-submit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.comment-submit-actions .text-button { min-height: 40px; }
.danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--selection); border-radius: var(--control-radius); background: transparent; color: var(--text); }
.danger-button:hover:not(:disabled) { background: #ff45501a; }
.comment-count, .form-note { color: var(--muted); font-size: 12px; }
.comment-note { display: flex; gap: 6px; align-items: center; }
.comment-note svg { width: 13px; height: 13px; }
.form-error { color: var(--error); font-size: 12px; margin: 10px 0 0; }
.danmaku-layer { position: absolute; inset: 0 0 50px; overflow: hidden; pointer-events: none; z-index: 1; }
.danmaku { position: absolute; left: 100%; white-space: nowrap; padding: 4px 10px; border-radius: 3px; background: #000b; color: white; font-size: 13px; line-height: 1.5; animation: danmaku-fly var(--duration,20s) linear var(--delay,0s) infinite; }
@keyframes danmaku-fly { to { transform: translateX(calc(-1 * var(--travel))); } }
.danmaku-layer.paused .danmaku { animation-play-state: paused; }
.gift-thanks { color: var(--positive); }
.gift-danmaku { font-weight: 600; background: #000c; }
.gift-danmaku-text { color: var(--positive); background: linear-gradient(100deg,var(--positive),var(--gold),var(--accent-bright),var(--purple),var(--positive)); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gift-colors 6s linear infinite; }
@keyframes gift-colors { to { background-position: 200% 0; } }
.danmaku-layer.paused .gift-danmaku-text { animation-play-state: paused; }
.editor-body { padding: 25px 38px 30px; }
.editor-heading { margin-bottom: 22px; }
.editor-heading h2 { margin: 0 0 5px; font-size: 25px; }
.editor-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.steam-fetch-row { display: flex; gap: 8px; }
.steam-fetch-row input { flex: 1; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.editor-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.editor-section h3 { font-size: 14px; margin: 0 0 17px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.full-width { grid-column: 1/-1; }
.field-title-row { display: flex; align-items: center; justify-content: space-between; }
.field-title-row .text-button { padding: 0; font-size: 12px; }
.editor-cover-row { display: flex; align-items: flex-start; gap: 18px; }
.editor-cover-preview { width: 152px; aspect-ratio: 460/215; background: var(--backdrop); border-radius: var(--media-radius); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.editor-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.editor-cover-actions p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.token-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line-strong); background: var(--field); border-radius: 3px; }
.token-input:focus-within { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.token-input>input { flex: 1; min-width: 70px; width: 100px; border: 0; outline: 0; background: transparent; font-size: 12px; padding: 3px; }
.editor-token { display: flex; align-items: center; gap: 5px; background: var(--canvas); color: var(--secondary); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.editor-token button { border: 0; background: none; padding: 0; color: var(--muted); }
.editor-token svg { width: 12px; height: 12px; }
.editor-token button { display: inline-grid; place-items: center; min-width: 22px; min-height: 24px; }
.editor-token button:disabled { opacity: .3; cursor: default; }
.company-editor-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 7px; }
.company-editor-row .field-input { font-size: 16px; }
.company-editor-row .alias-input { color: var(--accent-bright); }
.status-edit-row { display: flex; align-items: center; gap: 9px; }
.status-edit-row select { flex: 1; }
.new-status-row { display: flex; gap: 8px; margin-top: 8px; }
.new-status-row input[type="color"] { width: 38px; height: 40px; padding: 4px; background: var(--field); border: 1px solid var(--line-strong); border-radius: 3px; }
.new-status-row .field-input { flex: 1; }
.editor-screenshots { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.editor-shot-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.screenshot-spoiler-toggle { display: flex; align-items: center; align-self: flex-start; gap: 6px; min-height: 32px; color: var(--secondary); font-size: 12px; cursor: pointer; }
.screenshot-spoiler-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-bright); }
.screenshot-caption-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--secondary); font-size: 12px; }
.screenshot-caption-field textarea { height: 64px; min-height: 64px; padding: 7px 8px; font-size: 12px; line-height: 1.6; }
.editor-shot { min-width: 0; position: relative; aspect-ratio: 16/9; background: var(--backdrop); border-radius: var(--media-radius); overflow: hidden; }
.editor-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-shot-controls { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 3px; background: #000b; }
.editor-shot-controls button { width: 24px; height: 24px; border: 0; background: none; display: grid; place-items: center; }
.editor-shot-controls button:hover { background: #ffffff26; }
.editor-shot-controls svg { width: 13px; height: 13px; }
.editor-shot-controls span { font-size: 12px; color: var(--secondary); }
.upload-zone { position: relative; min-height: 94px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: var(--media-radius); color: var(--secondary); background: transparent; font-size: 12px; width: 100%; margin-top: 12px; }
.upload-zone svg { width: 21px; height: 21px; color: var(--muted); }
.upload-zone small { font-size: 12px; color: var(--muted); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent-bright); background: var(--field); }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; bottom: 0; margin-top: 25px; margin-bottom: -30px; padding-block: 16px; background: var(--canvas); border-top: 1px solid var(--line); }
.editor-footer>div { display: flex; gap: 8px; }
.confirm-dialog { width: min(420px,calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 26px; background: var(--field); color: var(--text); box-shadow: 0 16px 48px #0006; }
.confirm-dialog h2 { font-size: 18px; margin: 0 0 10px; }
.confirm-dialog p { margin: 0 0 24px; color: var(--secondary); font-size: 13px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; gap: 8px; max-width: min(420px,calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--field); color: var(--text); box-shadow: 0 4px 16px #0006; padding: 12px 16px; border-radius: 6px; font-size: 12px; }
.toast.error { color: var(--error); }
@media (min-width:768px) and (max-width:1099px) {
  .shell { padding-inline: 24px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-inner { gap: 28px; }
  .owner-badge { display: none; }
  .search-box { width: 270px; }
  .page-intro h1 { font-size: 24px; }
}
@media (max-width:767px) {
  .shell { padding-inline: 16px; }
  .site-header { height: 58px; }
  .header-inner { gap: 0; }
  .brand { font-size: 14px; gap: 6px; }
  .brand-symbol svg { width: 24px; height: 24px; }
  .main-nav, .owner-badge { display: none; }
  .header-actions { gap: 0; }
  .header-actions .quiet-button { font-size: 12px; }
  .header-actions .quiet-button svg { width: 14px; height: 14px; }
  .page-intro { align-items: flex-start; padding-block: 32px 30px; flex-direction: column; gap: 19px; }
  h1 { font-size: 24px; }
  .page-intro p { font-size: 12px; }
  .intro-separator { padding-inline: 6px; }
  .collection-actions { width: 100%; }
  .collection-actions .primary-button { margin-left: auto; }
  .primary-button, .secondary-button, .filter-button { min-height: 44px; }
  .status-tabs { gap: 23px; }
  .status-tab { min-height: 44px; padding-bottom: 12px; }
  .toolbar { display: grid; grid-template-columns: minmax(0,1fr) max-content max-content; padding-top: 16px; gap: 8px; }
  .toolbar>.search-box { grid-column: 1/-1; min-width: 0; }
  .toolbar>.toolbar-spacer { display: none; }
  .toolbar>.type-filter-toggle { min-width: 0; max-width: none; width: 100%; }
  .toolbar>.filter-button { height: 40px; min-height: 40px; padding-inline: 8px; gap: 5px; font-size: 12px; }
  .toolbar>#filterToggle svg { width: 14px; height: 14px; }
  .toolbar>.sort-controls { margin-left: 0; min-width: 0; }
  .toolbar .sort-picker { height: 40px; min-height: 40px; padding-inline: 6px; gap: 5px; }
  .toolbar .sort-caret { margin-left: 0; }
  .search-box { width: 100%; height: 44px; }
  .search-box input { font-size: 14px; }
  .search-box kbd { display: none; }
  .select-wrap { height: 44px; }
  .select-wrap select { padding-inline: 10px 32px; }
  .select-wrap select { min-width: 124px; }
  .platform-select select { min-width: 140px; }
  .select-wrap>[data-icon] { right: 10px; }
  .filter-fields .select-wrap select { min-width: 140px; }
  .sort-picker, .sort-option { min-height: 44px; }
  .sort-controls { margin-left: auto; }
  .filter-button { padding-inline: 10px; }
  .advanced-filters { padding: 14px; flex-wrap: wrap; gap: 13px; }
  .advanced-filters>div { flex-direction: column; gap: 8px; flex-basis: 100%; }
  .advanced-filters>.filter-fields { flex-basis: 100%; gap: 12px; }
  .filter-tag { min-height: 35px; }
  .results-line { padding-block: 13px; min-height: 49px; flex-wrap: wrap; gap: 8px; }
  .results-note { display: none; }
  .game-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .game-card { padding-bottom: 22px; }
  .game-title { font-size: 18px; margin-top: 16px; }
  .game-english { font-size: 12px; }
  .game-tags { min-height: 22px; }
  .game-tag { font-size: 12px; }
  .game-review { font-size: 13px; min-height: 46px; }
  .shot-thumb { min-height: 44px; }
  .status-label { font-size: 12px; }
  .card-bottom { font-size: 12px; }
  .card-comment-link { min-height: 30px; }
  .editor-token button { min-width: 28px; min-height: 30px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 15px; padding-block: 22px 28px; }
  .footer-links { gap: 20px; min-height: 30px; }
  .floating-tools { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .game-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog-toolbar { height: 56px; padding-inline: 16px 8px; }
  .dialog-actions { gap: 8px; }
  .dialog-actions .small { min-height: 36px; }
  .desktop-only { display: none; }
  .close-button { width: 44px; height: 44px; }
  .detail-media { padding: 16px 16px 0; }
  .media-stage { max-height: none; }
  .media-controls { grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; }
  .media-control-buttons { gap: 10px; }
  .media-control-buttons button { min-height: 36px; }
  .media-empty-note { left: 8px; bottom: 8px; font-size: 12px; }
  .detail-body { padding: 23px 20px calc(30px + env(safe-area-inset-bottom)); }
  .detail-heading h2 { font-size: 25px; }
  .detail-heading { gap: 12px; }
  .detail-heading .rating { font-size: 27px; }
  .property-row { grid-template-columns: 1fr; gap: 5px; }
  .property-list { gap: 17px; }
  .property-row dt { font-size: 12px; }
  .property-row dd { font-size: 16px; padding-left: 24px; }
  .detail-review { font-size: 16px; }
  .comment-inputs { grid-template-columns: 1fr; }
  .comment-form-footer { align-items: flex-end; }
  .comment-note { max-width: 180px; font-size: 12px; }
  .comment-meta { gap: 6px; flex-wrap: wrap; }
  .comment-text { font-size: 14px; }
  .field-input { font-size: 16px; min-height: 44px; }
  .editor-body { padding: 22px 20px; }
  .editor-grid { grid-template-columns: 1fr; gap: 16px; }
  .steam-fetch-row { flex-wrap: wrap; }
  .steam-fetch-row input { flex-basis: 100%; }
  .steam-fetch-row button { width: 100%; }
  .editor-screenshots { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-cover-preview { width: 130px; }
  .company-editor-row { grid-template-columns: 1fr; }
  .editor-footer { bottom: 0; margin-bottom: -22px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .editor-footer>.form-note { max-width: 110px; font-size: 12px; }
  .editor-footer .primary-button, .editor-footer .secondary-button { padding-inline: 12px; }
  .toast-region { bottom: 16px; right: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .danmaku-layer { display: none; }
  .featured-cover::before { display: none; }
}

.genre-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Shared friend-directory editor. */
.home-settings-dialog { width: min(640px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--media-radius); background: var(--canvas); color: var(--text); }
.home-settings-dialog::backdrop { background: #0009; }
.home-settings-dialog h2 { margin: 0 0 20px; font-size: 18px; }
.home-started-label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--secondary); }
.home-friend-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--control-radius); }
.home-friend-fields legend, .home-friend-fields label { color: var(--secondary); font-size: 12px; min-width: 0; }
.home-friend-fields .field-input { display: block; margin-top: 6px; width: 100%; min-width: 0; }
.home-friend-description { grid-column: 1/-1; }
.home-friend-fields .text-button { justify-self: start; }
@media(max-width:767px) {
  .header-actions { gap: 12px; }
  #steamLoginLabel { max-width: 105px; }
  .home-settings-dialog { padding: 20px; }
  .home-friend-fields { grid-template-columns: minmax(0,1fr); padding: 12px; }
}
@media(max-width:420px) {
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: 58px; gap: 0 10px; }
  .header-inner .header-actions { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: 4px 10px; }
}
