:root,
html[data-theme="theme-3"] {
    --ink: #12241f;
    --ink-soft: #4d635b;
    --line: #d5e2dc;
    --brand: #0f766e;
    --brand-deep: #0b5f59;
    --brand-soft: #d8f4ef;
    --accent: #ffffff;
    --surface: #ffffff;
    --page-bg: #e8f2ef;
    --shadow: 0 24px 50px rgba(18, 36, 31, 0.12);
    --tile-tint: rgba(15, 118, 110, 0.1);
    --tile-hover-border: rgba(15, 118, 110, 0.5);
    --tile-hover-shadow: 0 28px 54px rgba(15, 118, 110, 0.18);
    --thumb-bg: #eef6f3;
    --thumb-badge-bg: #eef7f4;
    --viewer-stage-bg: #f4faf8;
    --btn-text: #ffffff;
    --ghost-bg: #ffffff;
    --ghost-border: rgba(15, 118, 110, 0.22);
    --overlay-bg: rgba(255, 255, 255, 0.62);
    --overlay-border: rgba(255, 255, 255, 0.55);
    --empty-bg: rgba(255, 255, 255, 0.88);
    --empty-border: rgba(15, 118, 110, 0.28);
    --bg-radial-a: rgba(15, 118, 110, 0.22);
    --bg-radial-b: rgba(255, 255, 255, 0.65);
    --bg-linear-a: #d7ebe4;
    --bg-linear-b: #ffffff;
    --bg-linear-c: #e7f1ed;
    --radius: 28px;
    --touch: 72px;
    --font-display: "Outfit", sans-serif;
    --font-body: "Source Sans 3", sans-serif;
}

html[data-theme="theme-1"] {
    --ink: #3f1010;
    --ink-soft: #7f4444;
    --line: #f5d0d0;
    --brand: #dc2626;
    --brand-deep: #991b1b;
    --brand-soft: #fee2e2;
    --accent: #ffffff;
    --surface: #ffffff;
    --page-bg: #fff5f5;
    --shadow: 0 24px 50px rgba(127, 29, 29, 0.14);
    --tile-tint: rgba(220, 38, 38, 0.12);
    --tile-hover-border: rgba(220, 38, 38, 0.45);
    --tile-hover-shadow: 0 28px 54px rgba(220, 38, 38, 0.18);
    --thumb-bg: #fff0f0;
    --thumb-badge-bg: #ffe8e8;
    --viewer-stage-bg: #fff8f8;
    --ghost-border: rgba(220, 38, 38, 0.22);
    --empty-border: rgba(220, 38, 38, 0.28);
    --bg-radial-a: rgba(220, 38, 38, 0.28);
    --bg-radial-b: rgba(255, 255, 255, 0.85);
    --bg-linear-a: #fecaca;
    --bg-linear-b: #ffffff;
    --bg-linear-c: #fff1f2;
}

html[data-theme="theme-2"] {
    --ink: #1f3a12;
    --ink-soft: #4d6b35;
    --line: #e3ecc8;
    --brand: #16a34a;
    --brand-deep: #15803d;
    --brand-soft: #ecfccb;
    --accent: #eab308;
    --surface: #ffffff;
    --page-bg: #fefce8;
    --shadow: 0 24px 50px rgba(101, 120, 20, 0.14);
    --tile-tint: rgba(234, 179, 8, 0.16);
    --tile-hover-border: rgba(22, 163, 74, 0.45);
    --tile-hover-shadow: 0 28px 54px rgba(22, 163, 74, 0.18);
    --thumb-bg: #f7fee7;
    --thumb-badge-bg: #ecfccb;
    --viewer-stage-bg: #f7fee7;
    --ghost-border: rgba(22, 163, 74, 0.22);
    --empty-border: rgba(234, 179, 8, 0.35);
    --bg-radial-a: rgba(234, 179, 8, 0.35);
    --bg-radial-b: rgba(22, 163, 74, 0.22);
    --bg-linear-a: #fef08a;
    --bg-linear-b: #ecfccb;
    --bg-linear-c: #ffffff;
}

html[data-theme="theme-4"] {
    --ink: #1a3d1f;
    --ink-soft: #4a6b42;
    --line: #dcefc8;
    --brand: #15803d;
    --brand-deep: #166534;
    --brand-soft: #dcfce7;
    --accent: #facc15;
    --surface: #ffffff;
    --page-bg: #f0fdf4;
    --shadow: 0 24px 50px rgba(21, 128, 61, 0.14);
    --tile-tint: rgba(21, 128, 61, 0.12);
    --tile-hover-border: rgba(21, 128, 61, 0.45);
    --tile-hover-shadow: 0 28px 54px rgba(21, 128, 61, 0.18);
    --thumb-bg: #ecfccb;
    --thumb-badge-bg: #dcfce7;
    --viewer-stage-bg: #f0fdf4;
    --ghost-border: rgba(21, 128, 61, 0.22);
    --empty-border: rgba(250, 204, 21, 0.4);
    --bg-radial-a: rgba(21, 128, 61, 0.28);
    --bg-radial-b: rgba(250, 204, 21, 0.28);
    --bg-linear-a: #bbf7d0;
    --bg-linear-b: #fef9c3;
    --bg-linear-c: #ffffff;
}

html[data-theme="theme-5"] {
    --ink: #1e293b;
    --ink-soft: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-deep: #1d4ed8;
    --brand-soft: #eff6ff;
    --accent: #f8fafc;
    --surface: #ffffff;
    --page-bg: #f8fafc;
    --shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
    --tile-tint: rgba(37, 99, 235, 0.08);
    --tile-hover-border: rgba(37, 99, 235, 0.35);
    --tile-hover-shadow: 0 28px 54px rgba(37, 99, 235, 0.14);
    --thumb-bg: #f1f5f9;
    --thumb-badge-bg: #eff6ff;
    --viewer-stage-bg: #ffffff;
    --ghost-border: rgba(37, 99, 235, 0.2);
    --empty-border: rgba(37, 99, 235, 0.22);
    --bg-radial-a: rgba(37, 99, 235, 0.1);
    --bg-radial-b: rgba(248, 250, 252, 0.95);
    --bg-linear-a: #f8fafc;
    --bg-linear-b: #ffffff;
    --bg-linear-c: #f1f5f9;
}

html[data-theme="theme-6"] {
    --ink: #e8f0ed;
    --ink-soft: #a8bdb5;
    --line: #2d4038;
    --brand: #2dd4bf;
    --brand-deep: #14b8a6;
    --brand-soft: #134e4a;
    --accent: #0f766e;
    --surface: #1a2e28;
    --page-bg: #0f1a17;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --tile-tint: rgba(45, 212, 191, 0.12);
    --tile-hover-border: rgba(45, 212, 191, 0.45);
    --tile-hover-shadow: 0 28px 54px rgba(45, 212, 191, 0.16);
    --thumb-bg: #1f3530;
    --thumb-badge-bg: #16332d;
    --viewer-stage-bg: #142420;
    --btn-text: #042f2e;
    --ghost-bg: #1a2e28;
    --ghost-border: rgba(45, 212, 191, 0.28);
    --overlay-bg: rgba(15, 26, 23, 0.72);
    --overlay-border: rgba(45, 212, 191, 0.18);
    --empty-bg: rgba(26, 46, 40, 0.92);
    --empty-border: rgba(45, 212, 191, 0.28);
    --bg-radial-a: rgba(45, 212, 191, 0.14);
    --bg-radial-b: rgba(15, 118, 110, 0.12);
    --bg-linear-a: #0f1a17;
    --bg-linear-b: #1a2e28;
    --bg-linear-c: #0f2420;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body.front-body {
    position: relative;
    min-width: 1280px;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--page-bg);
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.front-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 0% 0%, var(--bg-radial-a), transparent 40%),
        radial-gradient(ellipse at 100% 0%, var(--bg-radial-b), transparent 34%),
        linear-gradient(160deg, var(--bg-linear-a) 0%, var(--bg-linear-b) 48%, var(--bg-linear-c) 100%);
}

.front-shell {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    padding: 28px 48px 36px;
    gap: 20px;
    position: relative;
}

body.front-body.is-media-view .front-top,
body.front-body.is-immersive .front-top {
    display: none;
}

body.front-body.is-media-view .front-shell,
body.front-body.is-immersive .front-shell {
    grid-template-rows: 1fr;
    padding: 18px 28px 24px;
    gap: 0;
    height: 100vh;
    max-height: 100vh;
}

body.front-body.is-media-view .front-main,
body.front-body.is-immersive .front-main {
    min-height: 0;
    height: 100%;
}

/* Saat fullscreen dari pilih mapel: tetap pakai header ringkas di halaman non-media */
body.front-body.is-immersive:not(.is-media-view) .front-top {
    display: flex;
    min-height: 64px;
}

body.front-body.is-immersive:not(.is-media-view) .front-shell {
    grid-template-rows: auto 1fr;
    padding: 16px 28px 20px;
    gap: 12px;
}

body.front-body.is-immersive:not(.is-media-view) .front-brand-logo,
body.front-body.is-immersive:not(.is-media-view) .front-brand-mark {
    width: 56px;
    height: 56px;
}

.front-top {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding-right: 180px;
}

.front-theme {
    position: absolute;
    top: 28px;
    right: 48px;
    z-index: 30;
}

.front-theme-toggle {
    min-height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    border: 2px solid var(--ghost-border);
    background: var(--ghost-bg);
    color: var(--brand-deep);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.front-theme-toggle:hover,
.front-theme-toggle:focus-visible {
    background: var(--brand-soft);
    border-color: var(--tile-hover-border);
    outline: none;
}

.front-theme-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: min(420px, 88vw);
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
}

.front-theme-label {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.front-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.front-theme-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.front-theme-option:hover,
.front-theme-option:focus-visible {
    border-color: var(--tile-hover-border);
    background: var(--brand-soft);
    outline: none;
}

.front-theme-option.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.front-theme-swatch {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-swatch-1 { background: linear-gradient(135deg, #dc2626, #ffffff); }
.theme-swatch-2 { background: linear-gradient(135deg, #eab308, #16a34a); }
.theme-swatch-3 { background: linear-gradient(135deg, #0f766e, #ffffff); }
.theme-swatch-4 { background: linear-gradient(135deg, #15803d, #facc15); }
.theme-swatch-5 { background: linear-gradient(135deg, #f8fafc, #2563eb); }
.theme-swatch-6 { background: linear-gradient(135deg, #0f1a17, #2dd4bf); }

body.front-body.is-media-view .front-theme,
body.front-body.is-immersive .front-theme {
    top: 18px;
    right: 28px;
    z-index: 40;
}

body.front-body.is-immersive:not(.is-media-view) .front-theme {
    top: 16px;
    right: 28px;
}

body.front-body.is-media-view .front-shell > .front-theme:not(.front-theme-inline),
body.front-body.is-immersive.is-media-view .front-shell > .front-theme:not(.front-theme-inline) {
    display: none;
}

.front-theme-inline {
    position: relative;
    top: auto;
    right: auto;
    z-index: auto;
}

.viewer-toolbar-theme {
    display: flex;
    align-items: center;
}

body.front-body.is-media-view .front-theme-inline,
body.front-body.is-immersive .front-theme-inline {
    top: auto;
    right: auto;
    z-index: auto;
}

.front-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.front-brand-logo,
.front-brand-mark {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.front-brand-logo {
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    image-rendering: auto;
}

.front-brand-mark {
    color: var(--brand);
}

.front-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.front-brand-name {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.front-main {
    min-height: 0;
    height: 100%;
}

.stage {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.5fr);
    gap: 36px;
    align-items: stretch;
}

.stage-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    padding-right: 12px;
}

.front-kicker {
    margin: 0;
    color: var(--brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage-copy h1,
.viewer-copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 4.2vw, 4.6rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.front-lead {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 1.45rem;
    line-height: 1.45;
    max-width: 18ch;
}

.front-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    min-width: 220px;
    margin-bottom: 18px;
    padding: 0 28px;
    border-radius: 18px;
    background: var(--empty-bg);
    border: 1px solid var(--line);
    color: var(--brand-deep);
    font-size: 1.2rem;
    font-weight: 700;
}

.choice-grid,
.image-grid {
    min-height: 0;
    height: 100%;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
    padding-right: 8px;
}

.image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-items: start;
    gap: 16px;
    padding: 4px 8px 8px 4px;
}

.choice-tile,
.image-tile {
    --delay: 0ms;
    position: relative;
    display: grid;
    gap: 12px;
    border-radius: var(--radius);
    background:
        linear-gradient(155deg, var(--tile-tint), transparent 42%),
        var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.choice-tile {
    min-height: 210px;
    padding: 28px;
    align-content: start;
}

.choice-tile:hover,
.choice-tile:focus-visible {
    transform: translateY(-2px);
    border-color: var(--tile-hover-border);
    box-shadow: var(--tile-hover-shadow);
    outline: none;
}

.choice-tile:active {
    transform: scale(0.985);
}

.choice-index {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.06em;
}

.choice-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.choice-meta {
    color: var(--ink-soft);
    font-size: 1.15rem;
    font-weight: 600;
}

.choice-action {
    margin-top: auto;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.image-tile {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding: 0;
    gap: 0;
    min-height: 0;
    align-content: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    isolation: isolate;
    transform: none;
    transition: opacity 0.18s ease;
}

.image-tile:hover,
.image-tile:focus-visible {
    transform: none;
    outline: none;
}

.image-tile:hover .image-tile-thumb,
.image-tile:focus-visible .image-tile-thumb {
    border-color: #000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.image-tile:active {
    transform: none;
}

.image-tile:active .image-tile-thumb {
    transform: scale(0.985);
}

.image-tile-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    border-radius: 12px;
    border: 1px solid #111;
    background: var(--thumb-bg);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.image-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-tile-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    padding: 10px 10px 12px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
    text-align: center;
    background: var(--overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--overlay-border);
}

.viewer {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}

.viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.viewer-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.viewer-toolbar .front-back,
.viewer-toolbar #orbitReset {
    margin: 0;
    min-width: 180px;
}

.viewer-path {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.25rem;
    font-weight: 700;
}

.viewer-layout {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(440px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.viewer-stage {
    position: relative;
    min-height: 0;
    height: 100%;
    border-radius: calc(var(--radius) + 6px);
    background: var(--viewer-stage-bg);
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.viewer-stage.is-dragging {
    cursor: grabbing;
}

.viewer-stage-frame {
    position: relative;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
    perspective: 1400px;
    contain: paint;
    isolation: isolate;
    clip-path: inset(0 round calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0);
}

.viewer-orbit {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 40px 48px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.08s linear;
    will-change: transform;
}

.viewer-stage.is-dragging .viewer-orbit {
    transition: none;
}

.viewer-orbit img {
    display: block;
    width: auto;
    height: auto;
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.viewer-type {
    margin: 0 0 4px;
    color: var(--brand);
    font-weight: 700;
    font-size: 1.05rem;
}

.obj-viewer {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.obj-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.obj-viewer-error {
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #9b2c2c;
    font-weight: 700;
}

.viewer-stage.is-sketchfab {
    cursor: default;
}

.sketchfab-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    background: #0f172a;
}

.image-tile-thumb.is-obj,
.obj-thumb {
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, var(--tile-tint), transparent 52%),
        var(--thumb-badge-bg);
}

.obj-thumb {
    width: 100%;
    height: 100%;
    gap: 4px;
    color: var(--brand-deep);
    font-family: var(--font-display);
}

.obj-thumb strong {
    font-size: 1.5rem;
}

.obj-thumb small {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.viewer-hint {
    margin: 0;
    padding: 14px 24px 18px;
    color: var(--ink-soft);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--overlay-bg));
}

.front-btn-ghost {
    min-width: 150px;
    background: var(--ghost-bg);
    color: var(--brand-deep);
    border: 2px solid var(--ghost-border);
}

.front-btn-ghost:hover,
.front-btn-ghost:focus-visible {
    background: var(--brand-soft);
    border-color: var(--tile-hover-border);
}

.viewer-copy {
    min-height: 0;
    height: 100%;
    padding: 36px;
    border-radius: calc(var(--radius) + 6px);
    background:
        linear-gradient(160deg, var(--tile-tint), transparent 42%),
        var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
}

.viewer-copy h1 {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
}

.viewer-description {
    margin: 10px 0 20px;
}

.viewer-description p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.65;
    color: var(--ink);
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: 0.01em;
}

.viewer-description p.is-muted {
    color: var(--ink-soft);
    text-align: left;
    hyphens: none;
}

.front-empty {
    height: 100%;
    min-height: 320px;
    padding: 48px;
    border-radius: var(--radius);
    background: var(--empty-bg);
    border: 2px dashed var(--empty-border);
    display: grid;
    place-content: center;
    text-align: center;
    gap: 18px;
}

.front-empty p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.45rem;
}

.front-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    min-width: 240px;
    padding: 0 28px;
    border: 0;
    border-radius: 18px;
    background: var(--brand);
    color: var(--btn-text);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: frontReveal 0.5s ease forwards;
    animation-delay: var(--delay, 0ms);
}

.image-tile.reveal {
    transform: none;
    animation-name: frontRevealFade;
}

@keyframes frontReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes frontRevealFade {
    to {
        opacity: 1;
    }
}

@media (min-width: 1800px) {
    .choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stage-copy h1 {
        font-size: 5rem;
    }

    .choice-title {
        font-size: 2.25rem;
    }

    .image-tile-title {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .choice-tile,
    .image-tile {
        transition: none;
    }
}
