:root { --ink: #22221f; --on-ink: #ffffff; --teal: #1e5b5a; --bg: #fbfaf7; --card: #ffffff; --muted: #6b6a65; --line: #e2e0d9; --floor: #efeee9; --shade: rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #f1f0ec; --on-ink: #1b1b19; --teal: #7fc9c6; --bg: #1b1b19; --card: #262624; --muted: #a9a8a2; --line: #3a3a37; --floor: #30302d; --shade: rgba(0, 0, 0, 0.7); color-scheme: dark; } }
:root[data-theme="dark"] { --ink: #f1f0ec; --on-ink: #1b1b19; --teal: #7fc9c6; --bg: #1b1b19; --card: #262624; --muted: #a9a8a2; --line: #3a3a37; --floor: #30302d; --shade: rgba(0, 0, 0, 0.7); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 Inter, system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
p { margin: 0; }
.page { max-width: 1200px; margin: 0 auto; padding-block: 28px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1 { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.letter { padding-block: 16px 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.9em; text-align: center; font: 500 clamp(27px, 3.4vw, 40px)/1.5 Caveat, "Segoe Print", "Bradley Hand", cursive; }
.letter p { max-width: 24em; text-wrap: balance; animation: write 0.9s ease-out backwards; }
.letter p:nth-child(2) { animation-delay: 0.5s; }
.letter p:nth-child(3) { animation-delay: 1s; }
.letter p:nth-child(4) { animation-delay: 1.5s; }
@keyframes write { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .letter p { animation: none; } }
.search { width: 100%; max-width: 420px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); margin-bottom: 12px; }
.label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.group { margin-top: 30px; }
.group h2 { font-size: 20px; font-weight: 600; margin: 0 0 2px; }
.group > p { color: var(--muted); margin-bottom: 12px; max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; padding: 0; width: 100%; }
.card:hover { border-color: var(--ink); }
.card video, .sheet video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--floor); }
.card .text { display: block; padding: 10px 12px 12px; }
.card .name { display: block; font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.card .when { display: block; font-size: 14px; color: var(--muted); }
.empty { margin-top: 30px; color: var(--muted); }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--card); color: var(--ink); }
dialog::backdrop { background: var(--shade); }
.sheet .body { padding: 16px; }
.sheet h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.sheet h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 2px; }
.prompt { background: var(--floor); border-radius: 9px; padding: 11px 13px; margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.primary, .secondary { padding: 10px 15px; border-radius: 9px; font-weight: 500; border: 1px solid var(--ink); }
.primary { background: var(--ink); color: var(--on-ink); }
.secondary { background: var(--card); border-color: var(--line); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.note-card { max-width: 540px; margin: 0 auto 22px; padding: 10px 16px; border-left: 2px solid var(--teal); font: italic 400 13px/1.55 Georgia, "Times New Roman", serif; color: var(--muted); }
.note-card .sign { margin-top: 4px; font: 500 17px/1.2 Caveat, cursive; font-style: normal; color: var(--ink); }
.switches { display: inline-flex; gap: 2px; padding: 2px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 99px; }
.switches button { padding: 4px 12px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 12.5px; }
.switches button[aria-pressed="true"] { background: var(--floor); color: var(--teal); font-weight: 600; }
.sheet-tabs { display: flex; gap: 2px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.sheet-tabs button { padding: 6px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 13.5px; }
.sheet-tabs button[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--ink); font-weight: 600; }
a.primary { display: inline-block; text-decoration: none; }
.real-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; overflow: hidden; border-radius: 9px; background: #000; }
.real-frame::before { content: "Loading the scene…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a8a69d; font-size: 13px; }
.real-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.real-frame .real-off { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0d0d11; color: #d8d6cc; font-size: 13.5px; text-align: center; }
.real-title { font-weight: 600; }
.card .has-clip { display: inline-block; margin-top: 6px; padding: 1px 7px; border: 1px solid var(--teal); border-radius: 99px; color: var(--teal); font-size: 11px; font-weight: 600; }
.learn-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.learn-tabs button { padding: 9px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.learn-tabs button[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }
.intro { color: var(--muted); max-width: 680px; margin-bottom: 14px; }
.card .film { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.card .film::before { content: "In the movies: "; color: var(--teal); }
.card .visual, #sheet-picture .visual { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--floor); object-fit: cover; }
.swatches { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; padding: 0 8%; background: #1c1c21; }
.swatches span { flex: none; width: 21%; aspect-ratio: 1; margin-left: -4%; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.swatches span:first-child { margin-left: 0; }
.light-art { display: block; width: 100%; aspect-ratio: 16 / 9; }
@keyframes bulb { 0%, 62%, 66%, 100% { opacity: 1; } 64% { opacity: 0.25; } 80% { opacity: 0.6; } 83% { opacity: 1; } }
.light-art .flick { animation: bulb 3.4s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .light-art .flick { animation: none; } }
/* The same dark look as the main page. */
body { font-family: "Inter Tight", Inter, system-ui, sans-serif; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #f7f6f1; --on-ink: #1a1204; --teal: #fbbf24; --bg: #07070a; --card: #121216; --muted: #a8a69d; --line: rgba(255, 255, 255, 0.13); --floor: #1c1c21; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.7); color: #fbbf24; }
h1 { font-family: Silkscreen, "Inter Tight", monospace; letter-spacing: 0.01em; }
:root[data-theme="dark"] .primary { border: 0; background: linear-gradient(100deg, #f97316, #fbbf24 60%, #fff3b0); color: #1a1204; font-weight: 600; }
:root[data-theme="dark"] .search { background: #0d0d11; }
:root[data-theme="dark"] .card:hover { border-color: rgba(251, 191, 36, 0.7); }
    

/* Dinoctor site look: header, footer, glowing background, gold accents. */
html { background: var(--bg); }
body { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.bg-grid, .spot, .sweep, #fx { position: fixed; inset: 0; pointer-events: none; }
.bg-grid { background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(circle at 50% 35%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 35%, #000, transparent 70%); }
.spot { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 18%), rgba(251, 191, 36, 0.1), transparent 70%); }
.sweep { overflow: hidden; }
.sweep::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: -40%; width: 28%; background: linear-gradient(90deg, transparent, rgba(255, 236, 170, 0.05), transparent); transform: skewX(-18deg); animation: page-sweep 7s ease-in-out infinite; }
@keyframes page-sweep { 0%, 35% { left: -40%; } 75%, 100% { left: 120%; } }
.bar, .page, .foot { position: relative; z-index: 1; }
.page { flex: 1; width: 100%; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.brand { color: #f7f6f1; font-family: Silkscreen, ui-monospace, monospace; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; text-decoration: none; }
.brand span { display: block; color: #8f8d85; font-family: "Inter Tight", system-ui, sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; }
.top-link { flex: none; color: #fff3b0; font-family: Silkscreen, ui-monospace, monospace; font-size: 0.8rem; text-decoration: none; }
.top-link:hover, .top-link[aria-current="page"] { color: #fbbf24; }
.top-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.25rem; }
.foot { padding: 0.5rem 1.5rem 1.1rem; color: #8f8d85; font-size: 0.72rem; line-height: 1.4; text-align: center; }
.foot p { max-width: 44rem; margin: 0 auto 0.35rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1rem; }
.foot a { color: inherit; text-underline-offset: 0.2em; }
.eyebrow { margin: 0 0 0.6rem; color: #fbbf24; font-family: Silkscreen, ui-monospace, monospace; font-size: 0.8rem; letter-spacing: 0.04em; }
h1 { display: inline-block; margin: 0 0 14px; background: linear-gradient(100deg, #f97316 0%, #fbbf24 25%, #fff3b0 50%, #fbbf24 75%, #f97316 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Inter Tight", system-ui, sans-serif; font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.25)); animation: shine 3.4s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.intro { color: #f7f6f1; font-size: 17px; font-weight: 300; }
.group h2 { color: #f7f6f1; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.learn-tabs button { font-family: Silkscreen, ui-monospace, monospace; font-size: 14px; font-weight: 400; letter-spacing: 0.02em; }
.learn-tabs button[aria-selected="true"] { color: #fbbf24; font-weight: 400; }
.card { border-color: rgba(251, 191, 36, 0.16); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: rgba(251, 191, 36, 0.7); box-shadow: 0 0 28px rgba(251, 158, 11, 0.18); }
.card .name { color: #f7f6f1; }
.note-card { border-left-color: #fbbf24; }
dialog { border: 1px solid rgba(251, 191, 36, 0.35); background: #0d0d11; box-shadow: 0 0 60px rgba(251, 158, 11, 0.18); }
.sheet h2 { color: #f7f6f1; font-weight: 800; letter-spacing: -0.02em; }
.sheet h3 { color: #fbbf24; font-family: Silkscreen, ui-monospace, monospace; font-size: 11.5px; font-weight: 400; letter-spacing: 0.04em; }
.prompt { border: 1px solid rgba(251, 191, 36, 0.25); color: #f7f6f1; }
.search:focus { border-color: rgba(251, 191, 36, 0.7); outline: none; }
.chip:hover { border-color: rgba(251, 191, 36, 0.5); }
@media (prefers-reduced-motion: reduce) { h1, .sweep::after { animation: none; } .card { transition: none; } .card:hover { transform: none; } #fx { display: none; } }


/* Step-by-step guides list */
.guides { margin: 0 0 28px; }
.guides h2 { margin: 0 0 12px; color: #fbbf24; font-family: Silkscreen, ui-monospace, monospace; font-size: 15px; font-weight: 400; letter-spacing: 0.04em; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.guide-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid rgba(251, 191, 36, 0.16); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.guide-card:first-child, .tool-card { border-color: rgba(251, 191, 36, 0.6); }
.tool-card { background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03)); }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-2px); border-color: rgba(251, 191, 36, 0.7); box-shadow: 0 0 28px rgba(251, 158, 11, 0.18); }
.guide-card .name { color: #f7f6f1; font-size: 15px; font-weight: 600; line-height: 1.3; }
.guide-card .when { color: #8f8d85; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }

/* On a phone the menu sits in one row under the name and scrolls sideways. */
@media (max-width: 640px) {
.bar { flex-wrap: wrap; padding-inline: 16px; }
.top-links { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 1.1rem; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: none; }
.top-links::-webkit-scrollbar { display: none; }
}

/* Learn top: one handwritten line, compact guide cards */
.note-line { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 22px; color: #f7f6f1; font-family: Caveat, cursive; font-size: 24px; line-height: 1.2; }
.note-line img { width: 28px; image-rendering: pixelated; }
.guides { margin: 0 0 28px; }
.gl-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.gl-head h2 { margin: 0; color: #fbbf24; font-family: Silkscreen, monospace; font-size: 14px; font-weight: 400; letter-spacing: 0.05em; }
.gl-head span { color: #8f8d85; font-size: 13px; }
.gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .gl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gl { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(251, 191, 36, 0.16); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.gc:hover { border-color: rgba(251, 191, 36, 0.7); transform: translateY(-2px); }
.gc .ic { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #121216; overflow: hidden; }
.gc b { display: block; color: #f7f6f1; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.gc small { display: block; color: #8f8d85; font-size: 12.5px; line-height: 1.3; }
.gc.start { border-color: rgba(251, 191, 36, 0.6); background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03)); }
.gc.tool { border-style: dashed; border-color: rgba(251, 191, 36, 0.55); }
.gc .i-play::after { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fbbf24; margin-left: 3px; }
.gc .i-play span { display: none; }
.gc .i-doc { background: radial-gradient(circle at 70% 30%, rgba(251, 158, 11, 0.6), transparent 60%), #121216; }
.gc .i-doc::after { content: "?"; color: #fff3b0; font-weight: 800; font-size: 18px; }
.gc .i-exp::before, .gc .i-exp::after { content: ""; position: absolute; left: 8px; right: 8px; height: 4px; border-radius: 2px; background: #fbbf24; }
.gc .i-exp::before { top: 13px; } .gc .i-exp::after { top: 22px; right: 16px; background: #fff3b0; }
.gc .i-short span { width: 14px; height: 24px; border: 2px solid #fbbf24; border-radius: 4px; }
.gc .i-intro span { color: #fbbf24; font-family: Silkscreen, monospace; font-size: 11px; }
.gc .i-pixel { background-image: linear-gradient(#fbbf24 0 0), linear-gradient(#f97316 0 0), linear-gradient(#fbbf24 0 0), linear-gradient(#fff3b0 0 0); background-size: 8px 8px; background-position: 12px 12px, 20px 12px, 12px 20px, 20px 20px; background-repeat: no-repeat; }
.gc .i-cam span { width: 16px; height: 12px; border: 2px solid #fbbf24; border-radius: 3px; animation: lzoom 1.6s ease-in-out infinite alternate; }
@keyframes lzoom { to { transform: scale(1.45); } }
.gc .i-list span { display: grid; gap: 3px; } .gc .i-list span i { display: block; width: 20px; height: 3px; border-radius: 2px; background: #fbbf24; } .gc .i-list span i:nth-child(2) { width: 14px; }
.gc .i-tool { background: linear-gradient(135deg, #f97316, #fbbf24); } .gc .i-tool::after { content: "★"; color: #150e02; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .gc { transition: none; } .gc .i-cam span { animation: none; } }

/* "new" dot in the menu */
.top-link .dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--gold-3, #f97316); box-shadow: 0 0 8px var(--gold-3, #f97316); vertical-align: 0.35em; }
