:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080c17;
  color: #edf2ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(79, 70, 229, .24), transparent 34rem),
    radial-gradient(circle at 90% 85%, rgba(14, 165, 233, .14), transparent 30rem),
    #080c17;
}

a { color: #a5b4fc; }
a:hover { color: #c7d2fe; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 68px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background: rgba(8, 12, 23, .75);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1100px, 88vw);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  width: 38px;
  height: 38px;
  text-decoration: none;
}

.brand img { display: block; width: 100%; height: 100%; }

.topbar-user { display: flex; align-items: center; gap: 1rem; color: #cbd5e1; }
.page { width: min(1100px, 88vw); margin: 0 auto; padding: 20px 0 4rem; }
.page-wide { width: calc(100vw - 2rem); max-width: none; padding: 1rem 0; }
.auth-page { display: grid; place-items: center; }

.landing-page { height: calc(100vh - 68px); padding-top: 20px; padding-bottom: 20px; overflow: hidden; }
.landing { height: 100%; display: grid; grid-template-rows: auto minmax(100px, 1fr) 1px auto; justify-items: center; gap: clamp(12px, 2.5vh, 28px); text-align: center; }
.landing-intro { max-width: 820px; margin: 0 auto; }
.landing-intro h1 { margin: 0 0 18px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.045em; }
.landing-intro p { margin: 0; color: #cbd5e1; font-size: clamp(1.2rem, 2.5vw, 1.7rem); line-height: 1.55; }
.landing-section { width: 100%; display: grid; justify-items: center; gap: 20px; }
.landing-section h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.platform-list { display: grid; grid-template-columns: repeat(3, clamp(82px, 14vw, 120px)); justify-content: center; gap: 20px; }
.platform-item { width: 100%; aspect-ratio: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px solid #26334d; border-radius: 5.5px; background: rgba(15, 23, 42, .72); color: #cbd5e1; font-weight: 700; cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease; }
.platform-item svg { width: 48px; height: 48px; fill: #818cf8; transition: fill .22s ease, transform .22s ease; }
.ios-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid #818cf8; border-radius: 12px; color: #a5b4fc; font-size: 1.05rem; font-weight: 900; transition: border-color .22s ease, color .22s ease, transform .22s ease; }
.platform-item:hover { transform: translateY(-6px) scale(1.03); border-color: #f97316; background: linear-gradient(145deg, rgba(249, 115, 22, .18), rgba(15, 23, 42, .9) 62%); box-shadow: 0 16px 38px rgba(249, 115, 22, .2), 0 0 0 1px rgba(251, 146, 60, .16); color: #ffedd5; }
.platform-item:hover svg { fill: #fb923c; transform: scale(1.08); }
.platform-item:hover .ios-mark { border-color: #fb923c; color: #fdba74; transform: scale(1.08); }
.featured-games { width: 100%; min-height: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 12px; }
.featured-track { position: relative; height: 100%; min-height: 100px; overflow: hidden; }
.featured-game { position: absolute; top: 50%; left: 50%; z-index: 0; width: min(34vw, calc(100% - 120px)); height: calc(100% - 4px); min-width: 240px; min-height: 110px; display: grid; grid-template-rows: minmax(0, 1.6fr) minmax(72px, auto); overflow: hidden; border: 1px solid #26334d; border-radius: 5.5px; background: rgba(15, 23, 42, .76); opacity: 0; pointer-events: none; text-align: left; transform: translate(-50%, -50%) scale(.54); transition: left .38s ease, transform .38s ease, opacity .3s ease, filter .3s ease; }
.featured-game.active { z-index: 3; opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.featured-game.previous, .featured-game.next { z-index: 2; opacity: .58; pointer-events: auto; cursor: pointer; filter: brightness(.68) saturate(.72); transform: translate(-50%, -50%) scale(.72); }
.featured-game.previous { left: 17%; }
.featured-game.next { left: 83%; }
.featured-game-cover { min-height: 0; overflow: hidden; }
.featured-game img, .featured-cover-placeholder { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.featured-cover-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #818cf8, #4f46e5); color: #fff; font-size: 2rem; font-weight: 900; }
.featured-game-info { min-width: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.featured-game-info strong { overflow: hidden; color: #f8fafc; font-size: .92rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.featured-game-info p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #94a3b8; font-size: .7rem; line-height: 1.35; }
.featured-game-info span { overflow: hidden; color: #64748b; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.featured-empty { width: 100%; display: grid; place-items: center; color: #64748b; }
.slider-button { width: 38px; height: 38px; padding: 0; border: 1px solid #334155; border-radius: 5.5px; background: #111827; color: #cbd5e1; font-size: 1.15rem; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.slider-button:hover { transform: scale(1.08); border-color: #f97316; background: rgba(249, 115, 22, .18); color: #fdba74; }
.slider-button[hidden] { visibility: hidden; }
.landing-divider { height: 1px; background: linear-gradient(90deg, transparent, #334155 12%, #334155 88%, transparent); }
.landing-bottom { min-height: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.5vh, 28px); }
.landing-author { max-width: 760px; margin: 0 auto; gap: 0; }
.landing-author p { margin: 0; color: #cbd5e1; font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.35; }
.landing-author .button { width: fit-content; margin: 24px auto 0; transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease; }
.landing-author .button:hover { transform: translateY(-4px) scale(1.03); background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 14px 34px rgba(249, 115, 22, .28), 0 0 0 1px rgba(255, 237, 213, .16); color: #fff7ed; filter: none; }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; color: #64748b; font-size: .82rem; }
.legal-links a { color: #64748b; text-decoration: none; }
.legal-links a:hover { color: #a5b4fc; }
.legal-page { max-width: 760px; display: grid; gap: 20px; }
.legal-page h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.legal-page p { margin: 0; color: #94a3b8; font-size: 1.05rem; line-height: 1.7; }

.card {
  width: min(100%, 460px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
}

.card h1, .dashboard h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3rem); }
.subtitle { margin: 0 0 2rem; color: #94a3b8; line-height: 1.6; }
.form { display: grid; gap: 1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: .5rem; }
.field { display: grid; gap: .5rem; }
.field span { font-size: .9rem; font-weight: 650; color: #cbd5e1; }

input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  outline: none;
}

textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }

input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: .9rem 1.2rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { filter: brightness(1.08); color: #fff; }
.button:disabled { opacity: .62; cursor: not-allowed; filter: none; }
.button.active { background: #166534; color: #dcfce7; }
.button-publish { background: linear-gradient(135deg, #16a34a, #15803d); }
.button-secondary { background: #1e293b; }
.button-link { padding: .65rem 1rem; font-size: .9rem; }
.auth-footer { margin: 1.5rem 0 0; color: #94a3b8; text-align: center; }

.alerts { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.alert { padding: .85rem 1rem; border-radius: 12px; line-height: 1.45; }
.alert-error { background: rgba(239, 68, 68, .14); color: #fecaca; border: 1px solid rgba(239, 68, 68, .24); }
.alert-success { background: rgba(34, 197, 94, .14); color: #bbf7d0; border: 1px solid rgba(34, 197, 94, .24); }

.dashboard { display: grid; gap: 20px; }
.welcome { padding: 2rem; border-radius: 20px; background: rgba(15, 23, 42, .75); border: 1px solid rgba(148, 163, 184, .14); }
.empty-state { padding: 3rem 2rem; text-align: center; border: 1px dashed #334155; border-radius: 20px; color: #94a3b8; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.story-card { padding: 1.5rem; border-radius: 18px; background: rgba(15, 23, 42, .75); border: 1px solid rgba(148, 163, 184, .14); }
.story-card-cover { width: calc(100% + 3rem); height: 170px; margin: -1.5rem -1.5rem 1.25rem; object-fit: cover; border-radius: 18px 18px 0 0; }
.story-card h2 { margin: 1rem 0 .4rem; }
.story-card p { margin: 0 0 1.4rem; color: #94a3b8; }
.story-card-meta { display: flex; justify-content: space-between; color: #64748b; font-size: .85rem; }
.status-badge { padding: .25rem .6rem; border-radius: 999px; background: rgba(99, 102, 241, .15); color: #c7d2fe; }
.status-badge-published { background: rgba(34, 197, 94, .15); color: #bbf7d0; }
.status-badge-warning { background: rgba(245, 158, 11, .15); color: #fde68a; }
.story-card-actions { display: flex; gap: .65rem; }
.story-workspace { display: grid; gap: 20px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workspace-heading h1 { margin: .5rem 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.back-link { color: #94a3b8; text-decoration: none; }
.workspace-tabs { display: flex; gap: .4rem; padding: .35rem; width: fit-content; border-radius: 12px; background: #111827; }
.workspace-tabs a { padding: .65rem 1rem; border-radius: 9px; color: #94a3b8; text-decoration: none; font-weight: 650; }
.workspace-tabs a.active { color: #fff; background: #312e81; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.settings-panel { display: grid; align-content: start; gap: 20px; padding: 1.5rem; border-radius: 20px; background: rgba(15, 23, 42, .75); border: 1px solid rgba(148, 163, 184, .14); }
.settings-panel h2 { margin: 0; }
.cover-preview { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: #0f172a; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { height: 100%; display: grid; place-content: center; gap: .4rem; text-align: center; color: #64748b; }
.cover-placeholder span { color: #a5b4fc; font-size: 2rem; font-weight: 850; }
.file-field input { padding: .65rem; }
.file-field small, .field small { color: #64748b; }
.check-field { display: flex; align-items: center; gap: .65rem; color: #cbd5e1; }
.check-field input { width: auto; }
.project-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .5rem; }
.project-details div { display: grid; gap: .35rem; padding: 1rem; border-radius: 12px; background: #0f172a; overflow: hidden; }
.project-details span { color: #64748b; font-size: .8rem; }
.project-details code { overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .75rem; }
.publication-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 20px; }
.publication-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.publication-heading h2 { margin-top: .3rem; font-size: 2rem; }
.publication-label { color: #64748b; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.publication-description, .publication-placeholder p { margin: 0; color: #94a3b8; line-height: 1.65; }
.publication-history { gap: 1rem; }
.publication-list { display: grid; gap: .55rem; }
.publication-row { display: grid; grid-template-columns: 70px 90px 100px minmax(140px, 1fr) 120px; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 11px; background: #0f172a; color: #94a3b8; font-size: .86rem; }
.publication-row strong { color: #f8fafc; }
.publication-row code { color: #a5b4fc; }
.editor-placeholder { min-height: 460px; display: grid; place-content: center; justify-items: center; padding: 3rem; text-align: center; border: 1px dashed #334155; border-radius: 24px; color: #94a3b8; }
.editor-placeholder h2 { margin: 1rem 0 .5rem; color: #e2e8f0; font-size: 1.8rem; }
.editor-placeholder p { max-width: 600px; line-height: 1.7; }
.editor-placeholder-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #312e81; color: #c7d2fe; font-size: 2rem; }
.button-compact { padding: .65rem .9rem; font-size: .88rem; }
.graph-editor { height: calc(100vh - 100px); min-height: 650px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid rgba(148, 163, 184, .16); border-radius: 20px; background: #0b1120; }
.graph-toolbar { min-height: 72px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #1e293b; background: #0f172a; }
.graph-title { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.graph-title > div { display: grid; min-width: 0; }
.graph-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-title span { color: #64748b; font-size: .8rem; }
.graph-toolbar-actions { display: flex; align-items: center; gap: .6rem; }
.save-status { min-width: 105px; color: #94a3b8; font-size: .82rem; text-align: right; }
.save-status.saved { color: #86efac; }
.save-status.pending { color: #fde68a; }
.save-status.error { color: #fca5a5; }
.graph-layout { min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 390px; }
.graph-sidebar { min-width: 0; background: #0f172a; }
.scene-sidebar { padding: 1rem; border-right: 1px solid #1e293b; overflow-y: auto; }
.inspector { border-left: 1px solid #1e293b; overflow: hidden; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sidebar-heading > span { min-width: 26px; padding: .2rem .45rem; border-radius: 999px; background: #1e293b; color: #94a3b8; font-size: .75rem; text-align: center; }
.scene-list { display: grid; gap: .45rem; margin-top: 1rem; }
.scene-list-item { display: grid; gap: .25rem; padding: .75rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #cbd5e1; text-align: left; cursor: pointer; }
.scene-list-item span { color: #64748b; font-size: .75rem; }
.scene-list-item:hover { background: #111827; }
.scene-list-item.active { border-color: #4f46e5; background: rgba(49, 46, 129, .3); color: #fff; }
.sidebar-empty, .inspector-empty { padding: 1.25rem 0; color: #64748b; font-size: .9rem; line-height: 1.5; }
.inspector-empty { padding: 1.25rem; }
.graph-viewport { position: relative; overflow: auto; background-color: #080c17; background-image: radial-gradient(#26334d 1px, transparent 1px); background-size: 24px 24px; cursor: grab; }
.graph-viewport.panning { cursor: grabbing; user-select: none; }
.graph-canvas { position: relative; min-width: 100%; min-height: 100%; }
.graph-edges, .graph-nodes { position: absolute; inset: 0; pointer-events: none; }
.graph-edges { width: 100%; height: 100%; }
.graph-edge { fill: none; stroke-width: 2.2; opacity: .82; }
.graph-node { position: absolute; top: 0; left: 0; width: 260px; border: 1px solid #334155; border-radius: 14px; background: #111827; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); overflow: hidden; pointer-events: auto; user-select: none; cursor: default; }
.graph-node.selected { border-color: #818cf8; box-shadow: 0 0 0 2px rgba(99, 102, 241, .22), 0 18px 40px rgba(0, 0, 0, .35); }
.graph-node.dragging { opacity: .88; cursor: grabbing; }
.graph-node-header { min-height: 48px; padding: .75rem; display: flex; justify-content: space-between; gap: .6rem; background: #172033; cursor: grab; touch-action: none; }
.graph-node-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-node-header > div { display: flex; gap: .25rem; }
.node-badge { padding: .18rem .4rem; border-radius: 999px; font-size: .64rem; text-transform: uppercase; }
.node-badge.start { background: rgba(34, 197, 94, .16); color: #86efac; }
.node-badge.ending { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.graph-node-image { display: block; width: 100%; height: 112px; object-fit: cover; }
.graph-node-text { max-height: 67px; margin: 0; padding: .75rem; overflow: hidden; color: #94a3b8; font-size: .82rem; line-height: 1.4; }
.graph-node-choices { border-top: 1px solid #1e293b; }
.graph-node-choice { min-height: 36px; padding: .55rem .5rem .55rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid rgba(30, 41, 59, .65); color: #cbd5e1; font-size: .76rem; }
.graph-node-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-node-choice i { flex: 0 0 auto; width: 11px; height: 11px; border: 2px solid #818cf8; border-radius: 50%; background: #111827; }
.graph-node-no-choices { padding: .65rem .75rem; color: #64748b; font-size: .75rem; }
.canvas-help { position: sticky; left: 1rem; bottom: 1rem; width: max-content; padding: .55rem .75rem; border-radius: 9px; background: rgba(15, 23, 42, .88); color: #64748b; font-size: .75rem; pointer-events: none; }
.inspector > .sidebar-heading { height: 56px; padding: 0 1rem; border-bottom: 1px solid #1e293b; }
.inspector-scroll { height: calc(100% - 56px); padding: 1rem; display: grid; align-content: start; gap: 1.1rem; overflow-y: auto; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #1e293b; color: #cbd5e1; font-size: 1.15rem; cursor: pointer; }
.icon-button.danger:hover { background: rgba(239, 68, 68, .17); color: #fca5a5; }
.scene-flags { display: grid; gap: .6rem; }
.scene-image-editor { display: grid; gap: .65rem; padding-top: .25rem; }
.scene-image-preview { min-height: 110px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 10px; background: #080c17; color: #64748b; font-size: .8rem; }
.scene-image-preview img { width: 100%; height: 150px; object-fit: cover; }
.scene-image-preview button { position: absolute; right: .5rem; bottom: .5rem; padding: .4rem .6rem; border: 0; border-radius: 7px; background: rgba(8, 12, 23, .86); color: #fca5a5; cursor: pointer; }
.scene-image-hint { color: #64748b; font-size: .76rem; line-height: 1.45; }
.file-button { width: fit-content; cursor: pointer; }
.file-button input { display: none; }
.answers-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .5rem; border-top: 1px solid #1e293b; }
.answers-heading > div { display: grid; gap: .2rem; }
.answers-heading small { color: #64748b; }
.choice-editor-list { display: grid; gap: .75rem; }
.choice-editor-card { display: grid; gap: .7rem; padding: .85rem; border: 1px solid #26334d; border-radius: 12px; background: #0b1120; }
.choice-text { min-height: 48px; overflow-y: hidden; resize: none; }
.choice-editor-title, .condition-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.condition-heading { color: #94a3b8; font-size: .78rem; }
.text-button { border: 0; background: transparent; color: #a5b4fc; cursor: pointer; }
.condition-list { display: grid; gap: .45rem; }
.condition-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 30px; gap: .35rem; }
select { width: 100%; min-width: 0; padding: .65rem .7rem; border: 1px solid #334155; border-radius: 9px; background: #0f172a; color: #f8fafc; font: inherit; outline: none; }
.condition-row select { font-size: .72rem; }
.small-empty { padding: .7rem; border-radius: 9px; background: #0f172a; color: #64748b; font-size: .76rem; }
.graph-toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; max-width: 420px; padding: .85rem 1rem; border: 1px solid #334155; border-radius: 11px; background: #111827; color: #e2e8f0; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.graph-toast.visible { opacity: 1; transform: translateY(0); }
.graph-toast.error { border-color: rgba(239, 68, 68, .5); color: #fecaca; }
.graph-toast.success { border-color: rgba(34, 197, 94, .5); color: #bbf7d0; }

@media (max-width: 640px) {
  .topbar-inner { width: min(100% - 2rem, 1100px); }
  .topbar-user span { display: none; }
  .page { width: min(100% - 2rem, 1100px); padding: 20px 0 2rem; }
  .story-grid { grid-template-columns: 1fr; }
  .landing-page { padding-top: 20px; }
  .landing { gap: clamp(14px, 2.5vh, 24px); }
  .platform-list { gap: 8px; }
  .platform-item { padding: 10px 4px; gap: 8px; font-size: .72rem; }
  .platform-item svg { width: 34px; height: 34px; }
  .ios-mark { width: 38px; height: 38px; border-width: 2px; border-radius: 8px; font-size: .78rem; }
  .featured-games { grid-template-columns: minmax(0, 1fr); }
  .slider-button { display: none; }
  .featured-game { width: min(72vw, calc(100% - 32px)); min-width: 220px; }
  .featured-game.previous { left: 5%; }
  .featured-game.next { left: 95%; }
  .featured-game-info { padding: 10px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .settings-layout { grid-template-columns: 1fr; }
  .publication-layout { grid-template-columns: 1fr; }
  .publication-row { grid-template-columns: 55px 75px 80px 1fr; gap: .6rem; }
  .publication-row code { display: none; }
  .project-details { grid-template-columns: 1fr; }
  .settings-actions, .form-actions { flex-direction: column-reverse; }
  .page-wide { width: 100%; padding: 0; }
  .graph-editor { height: calc(100vh - 68px); min-height: 600px; border-radius: 0; border-inline: 0; }
  .graph-toolbar { align-items: flex-start; }
  .graph-title .back-link, .save-status { display: none; }
  .graph-toolbar-actions a.button-secondary { display: none; }
  .graph-layout { grid-template-columns: minmax(0, 1fr); }
  .scene-sidebar { display: none; }
  .inspector { position: absolute; right: 0; bottom: 0; z-index: 8; width: min(92vw, 390px); height: calc(100% - 72px); box-shadow: -16px 0 40px rgba(0, 0, 0, .35); }
}

@media (prefers-reduced-motion: reduce) {
  .platform-item, .platform-item svg, .ios-mark, .landing-author .button, .featured-game, .slider-button { transition: none; }
  .platform-item:hover, .landing-author .button:hover, .slider-button:hover { transform: none; }
}
.reports-list {
    display: grid;
    gap: 16px;
}

.report-card {
    display: grid;
    gap: 14px;
}

.report-card p {
    margin: 0;
    white-space: normal;
}

.report-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.report-card-heading time,
.report-card code {
    color: var(--muted);
    font-size: 13px;
}
