/* JAPANESE SHRINE: deep ink, one vermilion accent, one gold line, and room to breathe. System fonts only. */
:root {
  --ink: #101216; --ink-raised: #171a1f; --ink-card: #1e2228; --ink-hover: #282d34;
  --washi: #efe7d6; --washi-dim: #ddd3bf; --muted: #a9a394; --faint: #7f7a6e;
  --vermilion: #d8401f; --vermilion-deep: #c23a1b; --vermilion-text: #f07a5c;
  --gold: #c9a44c; --gold-soft: #c9a44c55; --gold-text: #dcbd72;
  --line: #efe7d61a; --line-strong: #efe7d633;
  --radius: 12px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
  font-family: var(--sans);
  font-synthesis: none;
}
:lang(ko) { --serif: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--washi); -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; transition: background .16s, color .16s, border-color .16s, box-shadow .16s; }
button:disabled { cursor: wait; opacity: .5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p { word-break: keep-all; }
ul { list-style: none; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.icon-sheet { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 600 10px/1 var(--mono); opacity: .6; border: 1px solid currentColor; border-radius: 3px; padding: 2px 3px; }

/* Header: ink, a torii, and one gold line under it */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 28px; border-bottom: 1px solid var(--gold-soft); }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 3.6px; line-height: 1.2; white-space: nowrap; }
.brand-text small { margin-top: 2px; font-size: 12px; color: var(--muted); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.language-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.language-switch button { border: 0; background: none; padding: 8px 2px; color: var(--muted); font-weight: 600; }
.language-switch button[aria-pressed=true] { color: var(--washi); box-shadow: inset 0 -1.5px 0 var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.button-accent { background: var(--vermilion-deep); color: #fff8ec; }
.button-accent:hover { background: var(--vermilion); }
.button-accent[aria-pressed=true] { background: transparent; border-color: var(--vermilion); color: var(--vermilion-text); }
.button-ghost { border-color: var(--line-strong); color: var(--washi-dim); }
.button-ghost:hover { background: var(--ink-hover); }
.button-muted { background: var(--ink-card); border-color: var(--line-strong); color: var(--washi); }
.button-muted:hover { background: var(--ink-hover); }

main { max-width: 1800px; margin: 0 auto; padding: 0 28px; }

/* Intro: tall frames only; embeds go straight to the demo */
.intro { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 34px 0 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vermilion); flex: none; }
.intro h1 { margin: 12px 0 10px; font-family: var(--serif); font-size: clamp(27px, 3vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: .4px; }
.intro-copy { max-width: 700px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.intro-stats { display: flex; flex: none; border-left: 1px solid var(--gold-soft); }
.intro-stats li { display: flex; flex-direction: column; justify-content: center; width: 112px; padding: 4px 18px; border-right: 1px solid var(--line); }
.intro-stats li:last-child { border-right: 0; }
.intro-stats strong { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--washi); font-variant-numeric: lining-nums; }
.intro-stats span { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }

/* Tabs */
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs { display: flex; gap: 26px; }
.tab { display: flex; align-items: center; gap: 8px; margin-bottom: -1px; padding: 13px 1px 11px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tab:hover { color: var(--washi); }
.tab[aria-selected=true] { color: var(--washi); border-bottom-color: var(--vermilion); }
.preview-note { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-headline { display: none; flex: 1; min-width: 0; font-family: var(--serif); font-size: 15px; color: var(--washi-dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-message { position: fixed; top: 74px; left: 50%; z-index: 10; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100vw - 24px)); padding: 10px 14px; border: 1px solid var(--gold-soft); border-radius: 8px; background: var(--ink-card); color: var(--washi); box-shadow: 0 8px 24px #0009; font-size: 13px; line-height: 1.5; }

/* Viewports */
.viewport { position: relative; overflow: hidden; height: 360px; background: #14171c; color: var(--washi); isolation: isolate; }
.viewport canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.viewport.is-night { background: #080c16; }
.viewport-label { position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none; }
.viewport-pill { display: inline-block; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #101216b8; font-size: 10px; font-weight: 600; letter-spacing: .8px; color: var(--washi-dim); }
.viewport-pill:empty { display: none; }
.canvas-hint { position: absolute; left: 50%; bottom: 10px; z-index: 1; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 3px 10px; border-radius: 6px; background: #1012169e; text-align: center; font-size: 11px; line-height: 1.5; color: var(--washi-dim); pointer-events: none; }
.loading-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; background: #101216f2; text-align: center; font-size: 13px; line-height: 1.6; color: var(--washi-dim); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line-strong); border-top-color: var(--vermilion); border-radius: 50%; animation: spin 1s linear infinite; }
.loading-overlay progress { width: min(230px, 80%); height: 4px; accent-color: var(--vermilion); }
@keyframes spin { to { transform: rotate(360deg); } }

.tool-button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.tool-button:hover { background: var(--ink-hover); color: var(--washi); }
.tool-button[aria-pressed=true] { background: #c9a44c1f; border-color: var(--gold-soft); color: var(--gold-text); }
.viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }

.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--ink-card); }
.segment { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.segment:hover { background: var(--ink-hover); color: var(--washi); }
.segment[aria-pressed=true] { background: #efe7d61f; color: var(--washi); }

/* The season switch: the product's one idea, so it gets its own row beside the 3D view */
.season-panel { display: flex; flex-direction: column; gap: 7px; padding: 10px 10px 9px; border-bottom: 1px solid var(--line); }
.season-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.season-bar-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.season { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 40px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-card); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.season:hover { background: var(--ink-hover); color: var(--washi); }
.season[aria-pressed=true] { border-color: var(--gold); background: #c9a44c1a; color: var(--washi); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.season-name { overflow: hidden; text-overflow: ellipsis; }
.season kbd { flex: none; }
.season-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1px solid #0006; }
[data-season=showcase] .season-dot { background: conic-gradient(#f3a9c0 0 33%, #5f9845 0 66%, #e2462a 0); }
[data-season=spring] .season-dot { background: #f3a9c0; }
[data-season=summer] .season-dot { background: #4f9142; }
[data-season=autumn] .season-dot { background: #d9412c; }
[data-season=winter] .season-dot { background: #f6f9fc; }
[data-season=abandoned] .season-dot { background: #6f8246; }
body[data-season] .season-dot { transition: transform .16s; }
.season[aria-pressed=true] .season-dot { transform: scale(1.18); }
.season-note { font-size: 12px; line-height: 1.5; color: var(--gold-text); }
.season-note-soft { color: var(--faint); }

/* Catalog */
.catalog-layout { display: flex; flex-direction: column; gap: 16px; }
.sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section-label { display: none; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.search-wrap { display: flex; align-items: center; gap: 6px; flex: 1 1 170px; min-width: 0; padding-left: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--ink-card); color: var(--muted); }
input[type=search] { width: 100%; min-width: 0; padding: 10px 8px 10px 0; border: 0; background: transparent; color: var(--washi); font-size: 14px; outline-offset: -3px; }
input::placeholder { color: var(--faint); }
.filter-chip { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--ink-card); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.filter-chip:hover { color: var(--washi); }
.filter-chip[aria-pressed=true] { background: #c9a44c1f; border-color: var(--gold); color: var(--gold-text); }
.desktop-label, .category-list, .sidebar-note { display: none; }
.category-select { flex: 1 1 140px; min-width: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--ink-card); color: var(--washi); font-size: 13px; }
.mobile-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.library-heading h2 { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .4px; }
.library-heading > span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; max-height: 330px; overflow: auto; padding: 3px; margin: -3px; scrollbar-width: thin; scrollbar-color: #4a4a48 transparent; }
.asset-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-card); overflow: hidden; text-align: left; }
.asset-card:hover { border-color: var(--gold-soft); }
.asset-card[aria-pressed=true] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.asset-image { position: relative; aspect-ratio: 1; flex: none; width: 100%; background: #dcd2bd; overflow: hidden; }
.asset-sprite { display: block; width: 100%; height: 100%; background-repeat: no-repeat; filter: url(#warm-balance); mix-blend-mode: multiply; }
.free-badge { position: absolute; top: 6px; left: 6px; padding: 3px 5px; border-radius: 4px; background: var(--vermilion-deep); color: #fff8ec; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.selected-mark { position: absolute; right: 6px; bottom: 6px; display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--gold-text); font-size: 11px; }
.asset-card[aria-pressed=true] .selected-mark { display: grid; }
.asset-card-copy { padding: 7px 8px 8px; }
.asset-name { display: block; font-size: 12px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.asset-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-paging { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.empty-state { padding: 34px 15px; text-align: center; font-size: 13px; color: var(--muted); }
.empty-state h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--washi); }
.empty-state p { margin-bottom: 16px; line-height: 1.6; }
.inspector { order: -1; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink-raised); overflow: hidden; scroll-margin-top: 8px; }
.model-info { padding: 12px 14px 14px; }
.model-info .eyebrow { font-size: 11px; letter-spacing: .6px; color: var(--gold-text); }
.model-info h2 { margin: 4px 0 3px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.25; }
.model-description { font-size: 13px; line-height: 1.55; color: var(--muted); }
.model-stats { display: flex; gap: 24px; margin-top: 9px; }
.model-stats dt { font-size: 10px; letter-spacing: .6px; color: var(--faint); }
.model-stats dd { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.model-stats dd small { margin-left: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }

/* Walk the shrine */
.scene-panel { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink-raised); overflow: hidden; }
.scene-viewport { height: min(50vh, 470px); height: min(50svh, 470px); min-height: 260px; }
.scene-bottom { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.scene-copy { min-width: 0; }
.scene-copy h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25; }
.scene-copy p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.scene-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scene-controls .viewer-toolbar { padding: 0; border: 0; }
.scene-controls .button kbd { display: none; }
.walk-crosshair { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); color: var(--washi); text-shadow: 0 0 3px #000; font-size: 20px; pointer-events: none; }
.walk-stick { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid #efe7d666; border-radius: 50%; background: #1012168c; touch-action: none; }
.walk-stick span { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: #c9a44c55; pointer-events: none; }

.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0 18px; font-size: 12px; line-height: 1.5; color: var(--faint); }
.footer-divider { margin: 0 6px; opacity: .5; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 20; padding: 10px 12px; border-radius: 6px; background: var(--gold); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* Below the desktop layout the headline only opens the catalog; the walk leads with its view. */
@media (max-width: 920px) {
  body:not([data-view=catalog]) .intro { display: none; }
}
@media (max-width: 1000px) {
  .preview-note { display: none; }
}
@media (max-width: 1150px) {
  .tool-button kbd { display: none; }
}
/* Six seasons in a narrow inspector: the name under its dot, so no name is ever cut short. */
@media (max-width: 1320px) {
  .season-bar-six .season { flex-direction: column; gap: 3px; min-height: 46px; padding: 5px 2px; font-size: 12px; }
  .season-bar-six .season kbd { display: none; }
}

/* Phones */
@media (max-width: 560px) {
  .site-header { padding: 9px 14px; gap: 8px; }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-text strong { font-size: 13px; letter-spacing: 1.6px; }
  .brand-text small, #sampler-link, .site-header .button .icon { display: none; }
  .header-actions { gap: 8px; }
  .button { padding: 8px 10px; font-size: 12px; }
  .language-switch { gap: 4px; }
  main { padding: 0 14px; }
  .intro { padding: 18px 0 10px; }
  .intro h1 { font-size: 25px; }
  .intro-copy { font-size: 13px; }
  .intro-stats, .preview-note { display: none; }
  .tabs { gap: 0; justify-content: space-between; width: 100%; }
  .tab { padding-left: 6px; padding-right: 6px; font-size: 13px; gap: 6px; }
  kbd { display: none; }
  .canvas-hint { display: none; }
  .season-panel { padding: 8px 6px 7px; }
  .season-bar { gap: 2px; }
  .season { flex-direction: column; gap: 4px; min-height: 48px; padding: 6px 0; font-size: 11px; }
  .season-name { overflow: visible; }
  .scene-controls > .segmented { width: 100%; }
  .scene-controls .segment { flex: 1; justify-content: center; }
  .scene-controls .viewer-toolbar { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  .scene-controls .tool-button { padding: 8px 5px; }
  .scene-controls .button { padding: 9px 12px; }
  .site-footer { font-size: 11px; }
}

/* The narrowest phones drop the mark; the name, the language and the store link stay. */
@media (max-width: 400px) {
  .season { font-size: 10.5px; letter-spacing: -.1px; }
}
@media (max-width: 360px) {
  .brand-mark { display: none; }
  .scene-controls .tool-button .icon { display: none; }
}

/* Tablets: room for the collections and a wider grid */
@media (min-width: 561px) and (max-width: 920px) {
  .asset-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .intro-stats li { width: 96px; padding: 4px 14px; }
  .scene-viewport { height: min(56vh, 540px); height: min(56svh, 540px); }
}

/* Desktop: an app that fills the window; lists scroll inside their panels, the page never does. */
@media (min-width: 921px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; min-height: 600px; }
  main { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; }
  .view { flex: 1; min-height: 0; }
  .catalog-layout { display: grid; grid-template-columns: 190px minmax(250px, .8fr) minmax(420px, 1.3fr); gap: 20px; }
  .sidebar { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; min-height: 0; overflow: auto; scrollbar-width: thin; }
  .section-label { display: block; margin-bottom: 8px; }
  .search-wrap { flex: none; margin-bottom: 8px; }
  .filter-chip { align-self: flex-start; margin-bottom: 14px; }
  .desktop-label { display: block; }
  .category-list { display: grid; gap: 1px; }
  .category-select, .mobile-filter-label { display: none; }
  .category-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; background: none; text-align: left; font-size: 13px; color: var(--muted); }
  .category-button:hover { background: var(--ink-hover); color: var(--washi); }
  .category-button[aria-pressed=true] { background: #efe7d612; border-left-color: var(--vermilion); color: var(--washi); }
  .category-button span:last-child { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
  .sidebar-note { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .sidebar-note strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 500; }
  .sidebar-note p { margin: 5px 0 9px; font-size: 12px; line-height: 1.6; color: var(--muted); }
  .format-tag { display: inline-block; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; color: var(--muted); }
  .library { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
  .asset-grid { flex: 1; min-height: 0; max-height: none; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); align-content: start; }
  .inspector { order: 0; min-height: 0; min-width: 0; }
  .inspector .viewport { flex: 1; height: auto; min-height: 200px; }
  .scene-viewport { flex: 1; height: auto; min-height: 220px; }
  .season-panel-scene { flex-direction: row; align-items: center; gap: 14px; }
  .season-panel-scene .season-bar { flex: 0 0 min(560px, 54%); }
  .season-panel-scene .season-note { flex: 1; min-width: 0; }
  .scene-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
  .scene-copy { flex: 1 1 280px; }
}

/* Short frames (itch.io embeds at 1280 x 720): skip the intro and footer so every view fits. */
@media (min-width: 921px) and (max-height: 820px) {
  .intro, .site-footer, .sidebar-note { display: none; }
  .bar-headline { display: block; }
  main { padding-bottom: 12px; }
  .view-bar { margin-bottom: 10px; }
  .tab { padding-top: 9px; padding-bottom: 8px; }
  .canvas-hint { display: none; }
  .viewer-toolbar { padding: 4px 6px; }
  .season-panel { padding: 7px 8px 6px; gap: 5px; }
  .season { min-height: 34px; padding: 5px 4px; font-size: 12px; }
  .season-bar-six .season { min-height: 42px; padding: 4px 2px; }
  .model-info { padding: 8px 12px 10px; }
  .model-stats { margin-top: 5px; }
  .catalog-paging { margin-top: 4px; min-height: 30px; }
  .scene-bottom { padding: 7px 12px; }
  .scene-copy p { display: none; }
  .scene-copy h2 { font-size: 17px; }
  #room-hint { display: block; }
}

@media (min-width: 1500px) {
  .catalog-layout { grid-template-columns: 210px minmax(430px, 1fr) minmax(500px, 1.15fr); }
}

/* Narrow desktops keep the tabs and the headline; the counts return with more room. */
@media (min-width: 921px) and (max-width: 1240px) and (max-height: 820px) {
  .preview-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; scroll-behavior: auto !important; }
}
