/* muku.dev /play/ : same night sky, gold hairlines and type as the home page. */
:root {
    --night: #04040e;
    --ink: #f4efe1;
    --muted: rgba(244, 239, 225, .72);
    --faint: rgba(244, 239, 225, .45);
    --gold: #e9c877;
    --gold-hi: #fbe7b0;
    --gold-lo: #b8893a;
    --line: rgba(233, 200, 119, .22);
    --line-soft: rgba(233, 200, 119, .12);
    --violet: #7b2cbf;
    --panel: rgba(7, 7, 22, .62);
    --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --caps: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --gap: 16px;
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--night); }
/* never let anything widen the page sideways on phones */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }


body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--body);
    font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem);
    line-height: 1.55;
    background: var(--night);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(58, 26, 110, .55) 0%, transparent 70%),
        radial-gradient(45% 35% at 88% 55%, rgba(24, 44, 120, .28) 0%, transparent 70%),
        radial-gradient(50% 40% at 8% 80%, rgba(90, 30, 110, .2) 0%, transparent 70%);
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }

a { color: inherit; }
::selection { background: rgba(233, 200, 119, .3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* ---------- top bar (same as home) ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; text-decoration: none;
}
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 14px 2px rgba(123, 44, 191, .8); }

.top nav { display: flex; gap: clamp(2px, 1.6vw, 18px); }
.top nav a {
    font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; padding: 12px 8px; min-width: 44px; text-align: center;
    border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.top nav a:hover, .top nav a:focus-visible { color: var(--gold-hi); border-color: var(--gold); }
.top nav a[aria-current="page"] { color: var(--gold-hi); border-color: var(--line); }

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 9vw, 116px) 0 clamp(40px, 6vw, 76px); max-width: 60rem; }

.num {
    font-family: var(--caps); font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
    display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.num::after { content: ''; flex: 0 0 64px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

h1 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(3.2rem, 10vw, 7.6rem); line-height: .94; letter-spacing: -.025em;
    text-wrap: balance; text-shadow: 0 0 60px rgba(4, 4, 14, .9);
}
h1 i { font-weight: 300; color: var(--muted); }
h1 em {
    font-style: normal; color: transparent;
    background: linear-gradient(100deg, #fff6d8 0%, var(--gold) 28%, var(--gold-lo) 50%, var(--gold-hi) 72%, #fff6d8 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    padding: 0 .05em .2em 0; margin-bottom: -.2em; display: inline-block;
    filter: drop-shadow(0 0 28px rgba(233, 200, 119, .35));
}

.lede { margin-top: 26px; max-width: 33em; font-size: clamp(1.1rem, 1.7vw, 1.36rem); color: var(--muted); text-wrap: pretty; }

/* ---------- grid ---------- */
.grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); }

.tile { position: relative; min-width: 0; display: flex; }
.tile.feature { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }

/* atlas-plate corner marks on the big one */
.tile.feature::before, .tile.feature::after {
    content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; border: 1px solid var(--gold);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.tile.feature::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.tile.feature::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }

.tile a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none;
    background: var(--panel); border: 1px solid var(--line);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .25s;
}
.tile a:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 50px -20px rgba(233, 200, 119, .55); }
.tile.feature:hover::before, .tile.feature:hover::after { transform: translateY(-4px); }

.preview { display: block; width: 100%; flex: 1 1 auto; min-height: 0; aspect-ratio: 4 / 3; background: #000; }
.tile.feature .preview, .tile.wide .preview { aspect-ratio: auto; height: 0; min-height: 200px; }

.cap { padding: 14px 16px 17px; border-top: 1px solid var(--line-soft); }
.cap-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cap h2 { font-family: var(--display); font-weight: 600; font-size: 1.36rem; line-height: 1.15; letter-spacing: 0; }
.tile.feature .cap h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 500; font-style: italic; }
.tile.feature .cap { padding: 18px 22px 22px; }

.tag {
    flex: none; font-family: var(--caps); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold); opacity: .8; white-space: nowrap; transition: opacity .2s, color .2s;
}
.tile a:hover .tag { opacity: 1; color: var(--gold-hi); }

.cap p { margin-top: 5px; font-size: .92em; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.tile.feature .cap p { font-size: 1em; max-width: 36em; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(60px, 10vh, 110px); padding-bottom: 44px; }
.elsewhere { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.elsewhere a { padding: 22px 20px; text-decoration: none; border-left: 1px solid var(--line-soft); transition: background .25s; }
.elsewhere a:first-child { border-left: 0; }
.elsewhere a:hover { background: rgba(233, 200, 119, .08); }
.elsewhere b { display: block; font-family: var(--caps); font-weight: 500; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.elsewhere b::after { content: ' \2192'; opacity: .6; }
.elsewhere span { display: block; margin-top: 6px; font-size: .86em; line-height: 1.35; color: var(--muted); }
.foot > p { margin-top: 26px; text-align: center; font-size: .86em; color: var(--faint); }
.foot > p a { color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 3px; padding: 6px 2px; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hero > *, .tile { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
    .hero > :nth-child(2) { --i: 2; }
    .hero > :nth-child(3) { --i: 5; }
    h1 em { animation: sheen 9s linear 2s infinite; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
    @keyframes sheen { to { background-position: -220% 0; } }
}
@media (prefers-reduced-motion: reduce) {
    .tile a, .tile.feature::before, .tile.feature::after { transition: none; }
    .tile a:hover, .tile.feature:hover::before, .tile.feature:hover::after { transform: none; }
}

/* ---------- breakpoints ---------- */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tile.wide { grid-column: span 1; }
    .tile.wide .preview { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (max-width: 860px) {
    .elsewhere { grid-template-columns: repeat(2, 1fr); }
    .elsewhere a:nth-child(3) { border-left: 0; }
    .elsewhere a:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile.feature { grid-row: span 1; }
    .tile.wide { grid-column: span 2; }
    .tile.feature .preview, .tile.wide .preview { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .tag { display: none; }
    .tile.feature .tag, .tile.wide .tag { display: inline; }
    .cap { padding: 12px 12px 14px; }
    .cap h2 { font-size: 1.2rem; }
    .cap p { font-size: .88em; }
}
@media (max-width: 560px) {
    :root { --gap: 10px; }
    .top nav a { font-size: .6rem; letter-spacing: .16em; }
    .brand { font-size: 1.15rem; }
}

@media (max-width: 400px) {
    .top { gap: 8px; }
    .brand { font-size: 1.05rem; gap: 7px; }
    .top nav { gap: 0; }
    .top nav a { font-size: .56rem; letter-spacing: .1em; padding: 12px 5px; min-width: 38px; }
}
@media (max-width: 400px) { .wrap { padding-inline: 12px; } }
