/* The solar system, right now: a full-screen 3D view, quiet glass panels
   over it in golden-hour tones, and a short read below. */
@font-face { font-family: 'Inter'; src: url("../../fonts/inter-latin.260c81a4759b.woff2") format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url("../../fonts/playfair-display-latin.ef05b30d6e5c.woff2") format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
    --ink: #f4ede1;
    --soft: rgba(244, 237, 225, 0.68);
    --faint: rgba(244, 237, 225, 0.42);
    --gold: #f3c97a;
    --glass: rgba(14, 11, 26, 0.56);
    --edge: rgba(243, 201, 122, 0.2);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #05040c; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; }
body { -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }

/* ── The view ── */
.view { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #05040c; user-select: none; -webkit-user-select: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; touch-action: none; }
#stage.on { opacity: 1; }
body:not(.ready) .top, body:not(.ready) .clock, body:not(.ready) .strip, body:not(.ready) .note, body:not(.ready) .down { opacity: 0; }
.top, .clock, .strip, .note, .down, .info { transition: opacity 1.2s ease 0.6s; }

/* names beside the worlds */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label {
    position: absolute; left: 0; top: 0;
    padding: 2px 6px; border: 0; background: none; cursor: pointer;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 244, 226, 0.82);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(255, 190, 110, 0.25);
    transition: opacity 0.5s ease; white-space: nowrap; will-change: transform;
}
.label:hover { color: var(--gold); }
/* the world we are flying to */
.label.to { color: var(--gold); text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 196, 110, 0.75); animation: beckon 1.4s ease-in-out infinite; }
@keyframes beckon { 50% { opacity: 0.55; } }
/* the world we are leaving */
.label.from { color: #bfe0ff; text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(120, 180, 255, 0.6); }

/* while flying: from where, to where, how far */
.travel {
    position: absolute; top: 64px; left: 50%; transform: translate(-50%, -6px); display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center;
    opacity: 0; pointer-events: none; transition: opacity 0.7s ease, transform 0.7s ease;
}
.travel.on { opacity: 1; transform: translate(-50%, 0); }
.travel .route { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff6e6; }
.travel .far { font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.travel .far:empty { display: none; }

/* the top: our name, and the moment shown */
.top { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; align-items: baseline; gap: 22px; pointer-events: none; }
.brand { pointer-events: auto; font-family: 'Playfair Display', serif; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.when { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.when #date { color: var(--ink); }
.live { display: none; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #9ff0c0; }
.live.on { display: inline-flex; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6ee7a3; box-shadow: 0 0 10px #6ee7a3; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* time */
.clock {
    position: absolute; left: 22px; bottom: 74px; display: flex; align-items: center; gap: 6px;
    padding: 6px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.clock button {
    min-width: 34px; height: 34px; border-radius: 999px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.05);
    cursor: pointer; font-size: 14px; line-height: 1; transition: background 0.3s, border-color 0.3s;
}
.clock button:hover { background: rgba(243, 201, 122, 0.16); }
.clock button.on { border-color: var(--gold); color: var(--gold); }
.clock .now { padding: 0 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.speed { min-width: 150px; padding: 0 6px; font-size: 12.5px; color: var(--soft); text-align: center; }

/* what you are looking at */
.info {
    position: absolute; right: 22px; top: 50%; transform: translate(12px, -50%); width: min(330px, 34vw);
    padding: 20px 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; pointer-events: none; transition: opacity 0.8s ease, transform 0.8s ease;
}
.info.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.info h2 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 30px; color: #fff6e6; }
.info p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--soft); }
.info ul { margin: 0; padding: 0; list-style: none; }
.info li { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the worlds, along the bottom */
.strip {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 4px; max-width: calc(100vw - 32px);
    padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip button {
    display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 13px; border: 0; border-radius: 999px;
    background: none; cursor: pointer; font-size: 13px; color: var(--soft); white-space: nowrap; transition: background 0.3s, color 0.3s;
}
.strip button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.strip button.on { color: #1a1206; background: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.dot-sun { background: #ffb347; color: #ff9d40; }
.dot-mercury { background: #b9aa98; color: #c9b8a2; }
.dot-venus { background: #f1d38f; color: #f3cf7f; }
.dot-earth { background: #4f9bff; color: #4f9bff; }
.dot-moon { background: #d9d6cf; color: #cfcac0; }
.dot-mars { background: #e0673a; color: #ff7a45; }
.dot-jupiter { background: #e1b386; color: #f0b070; }
.dot-saturn { background: #ecd08f; color: #f3d08a; }
.dot-uranus { background: #8fe7ee; color: #74e8f2; }
.dot-neptune { background: #4f72ff; color: #5b7cff; }

.note { position: absolute; right: 22px; bottom: 80px; max-width: 300px; margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--faint); text-align: right; }
.down { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.06em; color: var(--soft); text-decoration: none; }
.down:hover { color: var(--gold); }

/* the two ways in, top right: your birthday, and the Journey (gold, and alive, so no one misses it) */
.acts { margin-left: auto; display: flex; gap: 18px; pointer-events: auto; }
.act {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
    background: var(--glass); border: 1px solid var(--edge); color: var(--ink); font-size: 13.5px; letter-spacing: 0.02em;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.act:hover { border-color: rgba(243, 201, 122, 0.6); transform: translateY(-1px); }
.act-main {
    position: relative; isolation: isolate; padding: 10px 21px; font-size: 14.5px;
    color: #2a1703; font-weight: 600; border-color: rgba(255, 238, 190, 0.95);
    background: radial-gradient(130% 160% at 28% 18%, #ffe6a8, #ffc163 48%, #f39a45);
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.55);
    box-shadow: 0 0 16px 2px rgba(255, 178, 88, 0.5), inset 0 1px 0 rgba(255, 250, 232, 0.7), inset 0 -3px 7px rgba(170, 78, 20, 0.25);
    /* (its own light needs no blurring of what lies behind it) */
    backdrop-filter: none; -webkit-backdrop-filter: none;
    animation: journeyBreathe 3.2s ease-in-out infinite;
}
/* Alive: it breathes a little; a warm light swells and fades round it; a sheen of
   light passes over it now and then; soft rings spread from it, to say it can
   be pressed; and its arrow leans forward. All of it by fading and moving only,
   so it costs the picture behind it nothing. */
@keyframes journeyBreathe { 50% { scale: 1.045; } }
.act-main .halo {
    position: absolute; inset: -2px; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0.3;
    box-shadow: 0 0 26px 7px rgba(255, 184, 92, 0.85), 0 0 70px 18px rgba(255, 140, 56, 0.4);
    animation: journeyHalo 3.2s ease-in-out infinite;
}
@keyframes journeyHalo { 50% { opacity: 1; } }
.act-main::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 253, 240, 0.6) 50%, transparent 62%) no-repeat;
    background-size: 260% 100%; background-position: 160% 0;
    animation: journeySheen 4.4s ease-in-out 1.2s infinite;
}
@keyframes journeySheen { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.act-main::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
    border: 2px solid rgba(255, 214, 140, 0.95);
    animation: journeyRing 2.6s ease-out 1.6s infinite;
}
@keyframes journeyRing { 0% { opacity: 0.85; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1.2, 1.75); } }
.act-main .play { display: inline-block; font-size: 10.5px; animation: journeyPlay 1.6s ease-in-out infinite; }
@keyframes journeyPlay { 50% { transform: translateX(3px); } }
.act-main:hover { transform: translateY(-1px) scale(1.04); border-color: #fff6dc; }
.act-main:active { transform: scale(0.97); }
/* (once it has been pressed it is found: the rings stop, the rest goes on more quietly) */
.act-main.seen::after { animation: none; }
.act-main.seen .halo { animation-duration: 4.8s; }
/* (and none of it runs while the film plays and the button is out of sight) */
body.touring .act-main, body.touring .act-main .halo, body.touring .act-main .play,
body.touring .act-main::before, body.touring .act-main::after { animation-play-state: paused; }
.act.beckon { border-color: rgba(243, 201, 122, 0.85); color: var(--gold); animation: beckonBtn 1.8s ease-in-out infinite; }
@keyframes beckonBtn { 50% { box-shadow: 0 0 22px rgba(243, 201, 122, 0.55); } }

/* the Journey's line, low in the picture, and its two buttons */
.line {
    position: absolute; left: 50%; bottom: 128px; transform: translate(-50%, 8px); width: min(760px, calc(100vw - 48px)); margin: 0;
    font-family: 'Playfair Display', serif; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.4; text-align: center; color: #fff8ec;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.9s ease, transform 0.9s ease;
}
.line.on { opacity: 1; transform: translate(-50%, 0); }
.tour { position: absolute; right: 22px; bottom: 80px; display: none; gap: 8px; }
.tour button {
    padding: 9px 18px; border-radius: 999px; cursor: pointer; background: var(--glass); border: 1px solid var(--edge); white-space: nowrap;
    font-size: 13px; color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tour button:hover { border-color: rgba(243, 201, 122, 0.6); color: var(--gold); }
.tour #sound.off { color: var(--faint); }

/* the Journey as a film: the picture fading to black between moments, and
   big names as the worlds go by */
.veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.title {
    position: absolute; left: 0; right: 0; top: 62%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; pointer-events: none; opacity: 0; transition: opacity 1.3s ease;
}
.title.on { opacity: 1; }
.title-main {
    font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(34px, 6.2vw, 80px); line-height: 1.05;
    letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase; color: #fff7e8;
    text-shadow: 0 0 34px rgba(255, 190, 110, 0.4), 0 2px 26px rgba(0, 0, 0, 0.75);
}
.title.on .title-main { animation: titleIn 7s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes titleIn {
    from { letter-spacing: 0.08em; padding-left: 0.08em; filter: blur(8px); }
    18% { filter: blur(0); }
    to { letter-spacing: 0.26em; padding-left: 0.26em; }
}
.title-sub {
    font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: 0.04em;
    color: rgba(255, 240, 220, 0.8); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.title-sub:empty { display: none; }
/* a flash of light, for the cuts */
.flash { position: absolute; inset: 0; background: #fff4e2; opacity: 0; pointer-events: none; }
/* the film's first words and its last: in the middle of the picture */
.card {
    position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(880px, calc(100vw - 48px)); margin: 0;
    font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.35; text-align: center; color: #fff8ec;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85); opacity: 0; pointer-events: none; transition: opacity 1.2s ease;
}
.card.on { opacity: 1; animation: cardIn 1.6s ease both; }
@keyframes cardIn { from { filter: blur(6px); letter-spacing: 0.04em; } to { filter: blur(0); letter-spacing: 0; } }
/* how far you have travelled since you pressed play */
.odo {
    position: absolute; top: 16px; right: 22px; display: flex; flex-direction: column; align-items: flex-end;
    opacity: 0; pointer-events: none; transition: opacity 1.2s ease; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.odo.on { opacity: 1; }
.odo-n { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; color: #ffd98f; font-variant-numeric: tabular-nums; }
.odo-word { margin-top: 3px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
/* how long sunlight takes to come as far as we are */
.sunclock {
    position: absolute; left: 22px; bottom: 78px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    opacity: 0; pointer-events: none; transition: opacity 0.9s ease; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.sunclock.on { opacity: 1; }
.sunclock-word { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
.sunclock-n { font-family: 'Playfair Display', serif; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; color: #fff3dc; font-variant-numeric: tabular-nums; }
.sunclock-far { margin-top: 3px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
/* what is not drawn true, said small */
.fnote { position: absolute; left: 22px; bottom: 82px; margin: 0; font-size: 12px; color: var(--faint); opacity: 0; pointer-events: none; transition: opacity 0.9s ease; }
.fnote.on { opacity: 1; }
/* names beside the worlds, in the film */
.fname { pointer-events: none; cursor: default; opacity: 0; transition: opacity 0.9s ease; }
.fname.small { font-size: 0.82em; letter-spacing: 0.08em; }
.fname.you { color: var(--gold); letter-spacing: 0.16em; text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 196, 110, 0.7); }
.fname.you::before {
    content: ''; position: absolute; left: -24px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
    border: 1px solid rgba(255, 214, 140, 0.85); animation: youRing 2.2s ease-out infinite;
}
@keyframes youRing { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.fname.you.flip::before { left: auto; right: -24px; }
/* The end of The Journey: a card over the turning galaxy. On a wide screen it
   stands to the right (the galaxy moves left for it); on a phone it lies along
   the bottom. No blurring of what is behind it: that would cost the picture. */
.gift {
    position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: flex-end; padding: 0 5vw;
    opacity: 0; pointer-events: none; transition: opacity 1.8s ease 0.6s;
}
.gift.on { opacity: 1; pointer-events: auto; }
.gift-card {
    width: min(420px, calc(100vw - 32px)); padding: 38px 32px 22px; border-radius: 26px; text-align: center;
    background: linear-gradient(170deg, rgba(27, 20, 43, 0.9), rgba(11, 9, 22, 0.94));
    border: 1px solid rgba(243, 201, 122, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 240, 210, 0.08);
    transform: translateY(18px); transition: transform 2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s;
}
.gift.on .gift-card { transform: none; }
/* (two short lines say what it was for; then one thing to do) */
.gift-card h2 { margin: 0 0 10px; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 28px; line-height: 1.2; color: #fff6e6; }
.gift-words { margin: 0 0 30px; font-size: 16px; font-weight: 300; line-height: 1.5; color: rgba(247, 221, 170, 0.95); }
.gift-ask { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.gift-card .b-dates { margin-bottom: 24px; }
.gift-card .b-dates select { padding: 12px 10px; border-radius: 12px; font-size: 14.5px; }
/* The card's one button. Alive as the Journey button is, but in a way that suits a wide
   button with a date just above it: a close glow that swells and fades, the sheen, the
   faintest breath, and no spreading rings (they ran into the date). It goes on while the
   card is up, though the film behind it is still playing. */
.gift-go { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15.5px; animation-name: giftBreathe; }
@keyframes giftBreathe { 50% { scale: 1.012; } }
.gift-go .halo { box-shadow: 0 0 16px 3px rgba(255, 184, 92, 0.75), 0 0 40px 8px rgba(255, 140, 56, 0.3); }
.gift-go::after { display: none; }
.gift-go:hover { transform: translateY(-1px); }
body.touring .gift.on .gift-go, body.touring .gift.on .gift-go .halo, body.touring .gift.on .gift-go::before { animation-play-state: running; }
.gift-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; margin-top: 22px; }
.gift-support, .gift-back {
    font: inherit; font-size: 13px; color: var(--soft); background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: none;
    transition: color 0.3s;
}
.gift-support { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid rgba(243, 201, 122, 0.35); border-radius: 999px; color: var(--gold); }
.gift-support span { color: #ff9d8a; }
.gift-support:hover { border-color: rgba(243, 201, 122, 0.8); color: #ffe2a6; }
.gift-back:hover { color: var(--ink); }
/* (while it is up, the film's own buttons step back) */
body.gifting .tour { display: none !important; }

/* the birthday card */
.birthday {
    position: absolute; top: 70px; right: 22px; width: min(380px, calc(100vw - 28px)); padding: 22px 22px 20px; border-radius: 20px;
    background: rgba(14, 11, 26, 0.82); border: 1px solid var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease; z-index: 4;
}
.birthday.on { opacity: 1; pointer-events: auto; transform: none; }
.birthday h2 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 24px; color: #fff6e6; }
.birthday p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.b-dates { display: flex; gap: 8px; margin-bottom: 14px; }
.b-dates select {
    flex: 1 1 0; min-width: 0; padding: 10px 10px; border-radius: 10px; border: 1px solid rgba(243, 201, 122, 0.28);
    background: rgba(255, 255, 255, 0.06); color: var(--ink); font: inherit; font-size: 14px;
}
.b-dates select:first-child { flex-grow: 1.6; }
.b-dates option { background: #15111f; color: #fff; }
.b-go {
    width: 100%; min-height: 44px; border-radius: 999px; cursor: pointer; font-weight: 500; color: #1d1405;
    border: 1px solid rgba(255, 226, 160, 0.9); background: linear-gradient(135deg, #ffd88a, #f3b25a 55%, #ffcf7a);
}
.b-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.06); cursor: pointer; color: var(--soft); }

/* trips round the Sun, counting up through a life */
.laps {
    position: absolute; left: 50%; top: 18%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 1s ease; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}
.laps.on { opacity: 1; }
.laps-n { font-family: 'Playfair Display', serif; font-size: clamp(56px, 8vw, 96px); line-height: 1; color: #ffd98f; font-variant-numeric: tabular-nums; }
.laps-word { margin-top: 6px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }

/* once a life is drawn: the two ways on */
.offer {
    position: absolute; left: 50%; bottom: 64px; transform: translate(-50%, 10px); display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.8s ease, transform 0.8s ease; z-index: 3; width: calc(100vw - 32px);
}
.offer.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.offer .act { text-decoration: none; padding: 12px 22px; font-size: 14.5px; }
body.touring .strip { opacity: 0.35; }
/* the film: nothing over the picture but its own words */
body.film .strip { opacity: 0.14; transition: opacity 0.6s ease; }
body.film .strip:hover { opacity: 0.85; }
body.film .when, body.film .travel { opacity: 0; }
body.film #labels .label:not(.fname) { display: none; }
/* (once a life is drawn, its two ways on replace the Journey's buttons) */
.offer.on ~ .tour { display: none !important; }

/* while the Journey runs: its own buttons; no clock, panel, note or ways in */
body.touring .tour { display: flex; }
body.touring .clock, body.touring .note, body.touring .acts, body.touring .info { opacity: 0; pointer-events: none; }

/* loading */
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #05040c; transition: opacity 1.2s ease; z-index: 5; }
body.ready .loading { opacity: 0; pointer-events: none; }
.loading p { margin: 0; font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ink); text-align: center; padding: 0 24px; }
.loading .track { width: min(260px, 60vw); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
#loading-bar { width: 0; height: 100%; background: linear-gradient(90deg, #ffb35c, #ffe2a6); transition: width 0.4s ease; }

/* ── The read below ── */
.below { position: relative; max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.below h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.2; margin: 0 0 24px; }
.below h2 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 24px; margin: 40px 0 12px; }
.below p { font-size: 17px; font-weight: 300; line-height: 1.85; color: rgba(244, 237, 225, 0.72); }
.below a { color: var(--gold); }
.below .lead { font-size: 19px; color: rgba(244, 237, 225, 0.86); }
.below h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 19px; margin: 30px 0 8px; }
.below ul { margin: 0 0 18px; padding-left: 22px; }
.below li { font-size: 17px; font-weight: 300; line-height: 1.75; color: rgba(244, 237, 225, 0.72); margin-bottom: 8px; }
.below li::marker { color: var(--gold); }
.below strong { font-weight: 500; color: var(--ink); }
.below .small, .below .sources li { font-size: 14.5px; line-height: 1.7; color: var(--faint); }
.below .small a, .below .sources a { color: rgba(243, 201, 122, 0.85); }
/* (the planets today: wider than the words, and scrolled sideways on a small screen) */
.table-wrap { margin: 22px -60px 14px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 16px; background: rgba(14, 11, 26, 0.5); -webkit-overflow-scrolling: touch; }
#planets-now { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
#planets-now caption { caption-side: top; text-align: left; padding: 16px 18px 10px; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--ink); }
#planets-now caption time { color: var(--gold); }
/* (its words kept within the screen, however wide the table itself is) */
#planets-now caption span { display: inline-block; max-width: calc(100vw - 88px); }
#planets-now th, #planets-now td { padding: 10px 12px; text-align: left; font-weight: 300; line-height: 1.45; color: rgba(244, 237, 225, 0.78); border-top: 1px solid rgba(243, 201, 122, 0.1); }
#planets-now thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); vertical-align: bottom; }
#planets-now th:first-child { padding-left: 18px; }
#planets-now .km, #planets-now td:nth-child(4), #planets-now td:nth-child(5) { white-space: nowrap; }
#planets-now .mi { display: block; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
#planets-now tbody th { font-weight: 500; color: var(--gold); white-space: nowrap; }
/* (on a small screen the table slides sideways, the planet's name staying put) */
@media (max-width: 700px) {
    #planets-now th:first-child { position: sticky; left: 0; background: #0b0916; }
}
@media (max-width: 880px) { .table-wrap { margin-left: 0; margin-right: 0; } }

/* ── Phones ── */
@media (max-width: 700px) {
    .gift { align-items: flex-end; justify-content: center; padding: 0 0 max(14px, env(safe-area-inset-bottom)); }
    .gift-card { padding: 26px 20px 14px; border-radius: 22px; }
    .gift-card h2 { font-size: 23px; margin-bottom: 6px; }
    .gift-words { font-size: 14.5px; margin-bottom: 20px; }
    .gift-ask { font-size: 13px; margin-bottom: 10px; }
    .gift-card .b-dates { margin-bottom: 20px; }
    .gift-card .b-dates select { padding: 11px 8px; font-size: 14px; }
    .gift-go { padding: 12px 16px; font-size: 14.5px; }
    .gift-more { margin-top: 18px; }
    .gift-support, .gift-back { font-size: 12px; white-space: nowrap; }
    .top { top: 12px; left: 14px; right: 14px; flex-direction: column; gap: 2px; }
    .brand { font-size: 17px; }
    .when { font-size: 12.5px; flex-wrap: wrap; gap: 6px; }
    .acts { position: absolute; top: 0; right: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
    .act { padding: 7px 13px; font-size: 12px; }
    .act-main { padding: 8px 15px; font-size: 13px; }
    @keyframes journeyRing { 0% { opacity: 0.85; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1.16, 1.6); } }
    .line { bottom: 132px; font-size: 19px; width: calc(100vw - 32px); }
    .tour { left: 50%; right: auto; transform: translateX(-50%); bottom: 72px; }
    .birthday { top: 96px; right: 14px; }
    /* (the spiral runs up the middle of a tall screen: the count sits to its left) */
    .laps { top: 15%; left: 18px; transform: none; align-items: flex-start; }
    .laps-n { font-size: 52px; }
    .laps-word { font-size: 10.5px; letter-spacing: 0.16em; max-width: 120px; }
    .offer { bottom: 84px; flex-direction: column; align-items: center; gap: 10px; }
    .offer.on ~ .line { bottom: 220px; }
    .clock { left: 50%; transform: translateX(-50%); bottom: 70px; gap: 4px; padding: 5px 6px; }
    .clock button { min-width: 32px; height: 32px; }
    .speed { min-width: 118px; font-size: 11.5px; }
    .info { left: 12px; right: 12px; top: auto; bottom: 122px; width: auto; transform: translateY(10px); padding: 14px 16px; }
    .info.on { transform: none; }
    .info h2 { font-size: 22px; margin-bottom: 4px; }
    .info p { font-size: 13px; margin-bottom: 8px; }
    .info li { font-size: 12px; padding: 5px 0; }
    .strip { bottom: 12px; left: 8px; right: 8px; transform: none; max-width: none; }
    .strip button { padding: 7px 11px; font-size: 12.5px; }
    .note { display: none; }
    .travel { top: 74px; width: calc(100vw - 28px); padding: 8px 14px; }
    .travel .route { font-size: 18px; }
    .travel .far { font-size: 11.5px; }
    .label { font-size: 10px; }
    .tour button { padding: 8px 14px; font-size: 12.5px; }
    .title { top: 58%; gap: 8px; }
    .card { font-size: 25px; width: calc(100vw - 40px); }
    .odo { top: 44px; right: 14px; }
    .odo-n { font-size: 26px; }
    .odo-word { font-size: 9px; letter-spacing: 0.14em; }
    .sunclock { left: 14px; top: 44px; bottom: auto; }
    .sunclock-word { font-size: 9px; letter-spacing: 0.14em; }
    .sunclock-n { font-size: 22px; }
    .sunclock-far { font-size: 11px; }
    .odo-word { max-width: 130px; text-align: right; line-height: 1.4; }
    .fnote { left: 14px; bottom: 124px; font-size: 11px; }
    body.film .line { bottom: 176px; }
    .title-main { font-size: clamp(26px, 8.5vw, 40px); }
    .title-sub { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .title.on .title-main { animation: none; }
    .card.on, .fname.you::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    .live::before { animation: none; }
    /* (the Journey button keeps its light, without the movement) */
    .act-main, .act-main .halo, .act-main .play, .act-main::before, .act-main::after { animation: none; }
    .gift, .gift-card { transition-duration: 0.01s; }
    .act-main .halo { opacity: 0.75; }
}
