/* =============================================================
   heisei.boo -- haunted Frutiger Aero stylesheet
   Palette:
     #0A2540 deep tokyo bay  #143C5E phantom navy
     #1F6FB2 heisei aqua     #5BC0EB aibo cyan
     #A8E6F0 frosted breath  #F4FAFC aqua pearl
     #FFE066 lemon orb       #F08D6E coral orb
     #7CE4B0 mint orb        #C9A8E6 lavender phantom
     #1A1F2E system shadow
   Fonts: DotGothic16, Zen Kaku Gothic New, VT323, Reggae One
   ============================================================= */

:root {
    --bay-deep: #0A2540;
    --bay-mid: #143C5E;
    --aqua: #1F6FB2;
    --cyan: #5BC0EB;
    --frost: #A8E6F0;
    --pearl: #F4FAFC;
    --lemon: #FFE066;
    --coral: #F08D6E;
    --mint: #7CE4B0;
    --lavender: #C9A8E6;
    --shadow: #1A1F2E;

    --font-display: "DotGothic16", "Courier New", monospace;
    --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;
    --font-mono: "VT323", "Courier New", monospace;
    --font-flyer: "Reggae One", "Impact", sans-serif;

    --radius-orb: 999px;
    --radius-glass: 18px;
    --radius-soft: 10px;

    --hud-h: 44px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--pearl);
    background:
        radial-gradient(circle at 18% 12%, rgba(31,111,178,0.45) 0%, transparent 55%),
        radial-gradient(circle at 82% 88%, rgba(91,192,235,0.25) 0%, transparent 60%),
        radial-gradient(circle at 50% 60%, rgba(20,60,94,0.6) 0%, transparent 70%),
        linear-gradient(180deg, #061a2c 0%, #0A2540 35%, #143C5E 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    cursor: default;
}

/* subtle scanline noise */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(0deg,
            rgba(168,230,240,0.02) 0px,
            rgba(168,230,240,0.02) 1px,
            transparent 1px,
            transparent 3px);
    mix-blend-mode: screen;
}

/* ghost hover layer */
.ghost-layer {
    position: fixed;
    inset: 0;
    background: var(--lavender);
    opacity: 0.06;
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: screen;
    transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* cursor trail canvas */
.cursor-trail {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 60;
    mix-blend-mode: screen;
}

/* idle prompt */
.idle-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--lavender);
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(201,168,230,0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 70;
    transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10,37,64,0.45);
    padding: 14px 26px;
    border: 1px solid rgba(201,168,230,0.4);
    border-radius: var(--radius-soft);
    backdrop-filter: blur(14px) saturate(140%);
}

.idle-prompt.is-visible { opacity: 1; }

.idle-prompt__caret {
    color: var(--frost);
    margin-right: 0.4em;
}

/* =============================================================
   HUD chrome
   ============================================================= */
.hud {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    height: var(--hud-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background:
        linear-gradient(180deg,
            rgba(244,250,252,0.18) 0%,
            rgba(244,250,252,0.04) 45%,
            rgba(31,111,178,0.18) 100%);
    border: 1px solid rgba(244,250,252,0.18);
    border-radius: 14px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 8px 24px rgba(10,37,64,0.5);
    z-index: 80;
    font-family: var(--font-mono);
    color: var(--frost);
    font-size: 1rem;
}

.hud__left, .hud__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud__orbs {
    display: flex;
    gap: 8px;
}

.hud-orb {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-orb);
    border: 1px solid rgba(10,37,64,0.5);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 220ms ease, filter 320ms ease;
}

.hud-orb::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: var(--radius-orb);
    background: linear-gradient(180deg,
        rgba(244,250,252,0.85) 0%,
        rgba(244,250,252,0.05) 45%,
        transparent 100%);
    pointer-events: none;
}

.hud-orb--coral { background: radial-gradient(circle at 30% 30%, #FFD7C2, #F08D6E 70%); box-shadow: 0 0 8px rgba(240,141,110,0.55); }
.hud-orb--lemon { background: radial-gradient(circle at 30% 30%, #FFF3B7, #FFE066 70%); box-shadow: 0 0 8px rgba(255,224,102,0.55); }
.hud-orb--mint  { background: radial-gradient(circle at 30% 30%, #C9F4DF, #7CE4B0 70%); box-shadow: 0 0 8px rgba(124,228,176,0.55); }

.hud-orb:hover { transform: translateY(-1px); filter: brightness(1.15); }

.hud__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--pearl);
    letter-spacing: 0.04em;
}

.hud__indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--frost);
}

.hud__dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-orb);
    background: var(--lavender);
    box-shadow: 0 0 6px rgba(201,168,230,0.8);
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    60%, 70% { opacity: 0.2; }
}

.hud__battery {
    width: 22px;
    height: 10px;
    border: 1px solid var(--frost);
    border-radius: 2px;
    position: relative;
    margin-right: 2px;
}

.hud__battery::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: var(--frost);
}

.hud__battery-fill {
    display: block;
    width: 8%;
    height: 100%;
    background: var(--coral);
    box-shadow: 0 0 5px rgba(240,141,110,0.7);
}

.hud__clock {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--pearl);
    background: rgba(10,37,64,0.35);
    border: 1px solid rgba(168,230,240,0.25);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-shadow: 0 0 6px rgba(168,230,240,0.4);
    transition: filter 280ms ease;
}

.hud__clock.is-frozen {
    color: var(--lavender);
    filter: brightness(1.4);
}

.hud__clock:hover { filter: brightness(1.2); }

/* =============================================================
   Title card
   ============================================================= */
.title-card {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    z-index: 10;
}

.title-card__glass {
    max-width: 920px;
    width: 100%;
    padding: 60px 48px;
    background:
        linear-gradient(180deg,
            rgba(244,250,252,0.16) 0%,
            rgba(91,192,235,0.06) 60%,
            rgba(31,111,178,0.18) 100%);
    border: 1px solid rgba(244,250,252,0.22);
    border-radius: 22px;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 30px 80px rgba(10,37,64,0.6);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.title-card__glass::before {
    content: "";
    position: absolute;
    top: 0; left: -50%;
    width: 200%; height: 60%;
    background: linear-gradient(180deg,
        rgba(244,250,252,0.24) 0%,
        rgba(244,250,252,0.04) 50%,
        transparent 100%);
    transform: skewY(-2deg);
    pointer-events: none;
}

.title-card__kana {
    font-family: var(--font-mono);
    color: var(--frost);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(168,230,240,0.5);
    margin-bottom: 18px;
}

.title-card__h1 {
    margin: 0 0 28px;
    font-family: var(--font-display);
    color: var(--pearl);
    letter-spacing: 0.04em;
    line-height: 1.18;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-card__line {
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    text-shadow:
        0 0 18px rgba(91,192,235,0.55),
        0 0 2px rgba(255,255,255,0.6);
}

.title-card__divider {
    color: var(--cyan);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.title-card__sub {
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-family: var(--font-display);
    color: var(--frost);
    letter-spacing: 0.18em;
    line-height: 1.7;
}

.title-card__meta {
    font-family: var(--font-mono);
    color: var(--frost);
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    letter-spacing: 0.04em;
}

.title-card__meta .dot { color: var(--cyan); }

.title-card__hint {
    font-family: var(--font-flyer);
    color: var(--lemon);
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(255,224,102,0.4);
    animation: hintPulse 3.6s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(4px); }
}

/* floating decorative orbs */
.float-orb {
    position: absolute;
    border-radius: var(--radius-orb);
    pointer-events: none;
    filter: blur(0.4px);
    opacity: 0.85;
}

.float-orb::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: var(--radius-orb);
    background: linear-gradient(180deg,
        rgba(244,250,252,0.85) 0%,
        rgba(244,250,252,0.05) 50%,
        transparent 100%);
}

.float-orb--a {
    width: 110px; height: 110px;
    top: 14%; left: 8%;
    background: radial-gradient(circle at 30% 30%, #B5DCEF, #1F6FB2 70%);
    box-shadow: 0 0 36px rgba(31,111,178,0.6);
    animation: floatY 14s ease-in-out infinite;
}

.float-orb--b {
    width: 70px; height: 70px;
    top: 22%; right: 12%;
    background: radial-gradient(circle at 30% 30%, #C9F4DF, #7CE4B0 70%);
    box-shadow: 0 0 30px rgba(124,228,176,0.55);
    animation: floatY 11s ease-in-out infinite reverse;
}

.float-orb--c {
    width: 50px; height: 50px;
    bottom: 22%; left: 18%;
    background: radial-gradient(circle at 30% 30%, #FFF3B7, #FFE066 70%);
    box-shadow: 0 0 28px rgba(255,224,102,0.55);
    animation: floatY 17s ease-in-out infinite;
}

.float-orb--d {
    width: 90px; height: 90px;
    bottom: 14%; right: 18%;
    background: radial-gradient(circle at 30% 30%, #E8D8F4, #C9A8E6 70%);
    box-shadow: 0 0 32px rgba(201,168,230,0.55);
    animation: floatY 19s ease-in-out infinite reverse;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-22px); }
}

/* =============================================================
   Timeline + spine
   ============================================================= */
.timeline {
    position: relative;
    padding: 40px 0 120px;
    z-index: 10;
}

.spine {
    position: fixed;
    top: calc(var(--hud-h) + 24px);
    bottom: 24px;
    left: 24px;
    width: 78px;
    z-index: 40;
    pointer-events: none;
}

.spine__rail {
    position: absolute;
    top: 0; bottom: 0;
    left: 36px;
    width: 6px;
    background: linear-gradient(180deg,
        rgba(91,192,235,0.0) 0%,
        rgba(91,192,235,0.55) 6%,
        rgba(31,111,178,0.4) 50%,
        rgba(91,192,235,0.55) 94%,
        rgba(91,192,235,0.0) 100%);
    border-radius: var(--radius-orb);
    box-shadow:
        inset 0 0 4px rgba(244,250,252,0.4),
        0 0 14px rgba(91,192,235,0.4);
}

.spine__progress {
    position: absolute;
    top: 0;
    left: 36px;
    width: 6px;
    height: 0%;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--frost) 100%);
    border-radius: var(--radius-orb);
    box-shadow: 0 0 14px rgba(168,230,240,0.85);
}

.spine__nodes {
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 78px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: auto;
}

.spine__node {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 39px;
}

.spine__node-orb {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-orb);
    border: 1px solid rgba(244,250,252,0.45);
    background: radial-gradient(circle at 30% 30%, #B5DCEF, #1F6FB2 70%);
    box-shadow: 0 0 10px rgba(91,192,235,0.6);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 320ms ease, box-shadow 320ms ease, background 320ms ease;
}

.spine__node-orb::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: var(--radius-orb);
    background: linear-gradient(180deg,
        rgba(244,250,252,0.85) 0%,
        rgba(244,250,252,0.0) 50%);
    pointer-events: none;
}

.spine__node-orb:hover {
    transform: scale(1.45);
    box-shadow: 0 0 18px rgba(168,230,240,0.95);
}

.spine__node--active .spine__node-orb {
    background: radial-gradient(circle at 30% 30%, #FFF, #C9A8E6 70%);
    box-shadow: 0 0 20px rgba(201,168,230,0.95);
    transform: scale(1.4);
}

.spine__node-label {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--frost);
    text-shadow: 0 0 6px rgba(10,37,64,0.85);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
    white-space: nowrap;
}

.spine__node:hover .spine__node-label,
.spine__node--active .spine__node-label {
    opacity: 1;
}

/* shrines container */
.shrines {
    margin-left: 130px;
    padding-right: 32px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* =============================================================
   Shrine cards
   ============================================================= */
.shrine {
    position: relative;
    padding: 32px 30px;
    background:
        linear-gradient(180deg,
            rgba(244,250,252,0.1) 0%,
            rgba(91,192,235,0.04) 60%,
            rgba(20,60,94,0.18) 100%);
    border: 1px solid rgba(244,250,252,0.16);
    border-radius: var(--radius-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 18px 40px rgba(10,37,64,0.45);
    margin-top: -40px;
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 1200ms cubic-bezier(0.4, 0, 0.2, 1),
                filter 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shrine.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.shrine--w45 { width: 45%; }
.shrine--w50 { width: 50%; }
.shrine--w55 { width: 55%; }
.shrine--w60 { width: 60%; }
.shrine--w65 { width: 65%; }
.shrine--w70 { width: 72%; }

.shrine--off-l { margin-left: 0; margin-right: auto; }
.shrine--off-r { margin-left: auto; margin-right: 0; }

.shrine--final {
    border-color: rgba(255,224,102,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 18px 40px rgba(10,37,64,0.45),
        0 0 50px rgba(255,224,102,0.15);
}

.shrine--coda {
    border-color: rgba(201,168,230,0.45);
    background:
        linear-gradient(180deg,
            rgba(201,168,230,0.16) 0%,
            rgba(91,192,235,0.04) 60%,
            rgba(20,60,94,0.18) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 18px 40px rgba(10,37,64,0.45),
        0 0 60px rgba(201,168,230,0.35);
}

.shrine__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.shrine__glyph {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shrine__year {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    color: var(--pearl);
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 0 16px rgba(91,192,235,0.55);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.shrine__year--ghost {
    color: var(--lavender);
    text-shadow: 0 0 22px rgba(201,168,230,0.8);
}

/* CRT scanline boot effect */
.shrine__year::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(168,230,240,0.0) 0%, rgba(168,230,240,0.7) 50%, rgba(168,230,240,0.0) 100%);
    transform: translateY(-10px);
    opacity: 0;
}

.shrine.is-visible .shrine__year::after {
    animation: crtScan 1300ms ease-in-out 200ms 1;
}

@keyframes crtScan {
    0%   { transform: translateY(-12px); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(120%); opacity: 0; }
}

.shrine__caption {
    margin: 0;
    font-size: 1rem;
    color: var(--frost);
    flex: 1;
    line-height: 1.5;
}

.shrine__caption--ghost { color: var(--lavender); }

.shrine__body {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
}

/* =============================================================
   Widgets
   ============================================================= */
.widget {
    position: relative;
    flex: 1 1 240px;
    min-width: 240px;
}

.widget--rot-a { transform: rotate(-1.4deg); }
.widget--rot-b { transform: rotate( 1.6deg); }
.widget--rot-c { transform: rotate(-0.6deg); }

.widget--ghost { filter: drop-shadow(0 0 14px rgba(201,168,230,0.55)); }

/* photo well */
.photo-well {
    position: relative;
    background: rgba(10,37,64,0.55);
    border: 1px solid rgba(244,250,252,0.18);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        inset 0 0 18px rgba(10,37,64,0.7),
        0 8px 18px rgba(10,37,64,0.5);
    height: 170px;
}

.photo-well__scene {
    position: absolute;
    inset: 0;
}

.photo-well__scene--mountain {
    background:
        radial-gradient(circle at 50% 80%, rgba(168,230,240,0.45) 0%, transparent 50%),
        linear-gradient(180deg, #143C5E 0%, #1F6FB2 50%, #5BC0EB 100%);
}
.photo-well__scene--mountain::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(10,37,64,0.6) 60%);
    clip-path: polygon(0 100%, 18% 60%, 35% 75%, 55% 30%, 72% 60%, 90% 45%, 100% 70%, 100% 100%);
    background-color: #0A2540;
}

.photo-well__scene--vending {
    background: linear-gradient(180deg, #143C5E 0%, #1A1F2E 100%);
}
.photo-well__scene--vending::after {
    content: "";
    position: absolute;
    left: 30%; bottom: 18%; width: 40%; height: 64%;
    background: linear-gradient(180deg, #5BC0EB, #1F6FB2);
    border: 2px solid #A8E6F0;
    box-shadow: inset 0 0 0 4px rgba(10,37,64,0.6), 0 0 14px rgba(91,192,235,0.45);
}

.photo-well__scene--clock {
    background: radial-gradient(circle at 50% 50%, #5BC0EB 0%, #143C5E 75%);
}
.photo-well__scene--clock::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border: 2px solid #A8E6F0;
    border-radius: 50%;
    box-shadow: inset 0 0 12px rgba(168,230,240,0.4);
}

.photo-well__scene--phone {
    background: linear-gradient(180deg, #1F6FB2 0%, #0A2540 100%);
}
.photo-well__scene--phone::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 90px;
    background: linear-gradient(180deg, #A8E6F0 0%, #5BC0EB 100%);
    border-radius: 6px;
    box-shadow: inset 0 4px 0 #F4FAFC, 0 0 14px rgba(91,192,235,0.5);
}

.photo-well__scene--imac {
    background: linear-gradient(180deg, #143C5E 0%, #0A2540 100%);
}
.photo-well__scene--imac::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 80px;
    background: radial-gradient(circle at 35% 30%, #C9F4DF 0%, #7CE4B0 60%);
    border-radius: 50% 50% 26px 26px / 60% 60% 26px 26px;
    box-shadow: inset 0 -8px 16px rgba(10,37,64,0.4), 0 0 18px rgba(124,228,176,0.5);
}

.photo-well__scene--lantern {
    background: linear-gradient(180deg, #143C5E 0%, #0A2540 100%);
}
.photo-well__scene--lantern::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 30%; height: 40%;
    background:
        radial-gradient(circle at 15% 50%, #FFE066 0%, transparent 9%),
        radial-gradient(circle at 35% 50%, #F08D6E 0%, transparent 9%),
        radial-gradient(circle at 55% 50%, #FFE066 0%, transparent 9%),
        radial-gradient(circle at 75% 50%, #C9A8E6 0%, transparent 9%),
        radial-gradient(circle at 92% 50%, #5BC0EB 0%, transparent 9%);
    filter: blur(2px);
}

.photo-well__scene--field {
    background: linear-gradient(180deg, #5BC0EB 0%, #1F6FB2 60%, #7CE4B0 100%);
}

.photo-well__scene--aibo {
    background: radial-gradient(circle at 50% 70%, rgba(244,250,252,0.5) 0%, transparent 50%), linear-gradient(180deg, #143C5E, #0A2540);
}
.photo-well__scene--aibo::after {
    content: "";
    position: absolute;
    left: 50%; top: 60%;
    transform: translate(-50%, -50%);
    width: 70px; height: 50px;
    background: linear-gradient(180deg, #F4FAFC 0%, #A8E6F0 100%);
    border-radius: 40% 40% 30% 30%;
    box-shadow: 0 6px 14px rgba(10,37,64,0.5);
}

.photo-well__scene--drawer {
    background: linear-gradient(180deg, #1A1F2E 0%, #0A2540 100%);
}
.photo-well__scene--drawer::after {
    content: "";
    position: absolute;
    left: 20%; right: 20%; top: 30%; bottom: 30%;
    background: linear-gradient(180deg, rgba(20,60,94,0.6) 0%, rgba(10,37,64,0.9) 100%);
    border: 1px solid rgba(168,230,240,0.18);
    box-shadow: inset 0 0 18px rgba(10,37,64,0.8);
}

.photo-well__scene--crane {
    background: linear-gradient(180deg, #5BC0EB 0%, #1F6FB2 100%);
}
.photo-well__scene--crane::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    width: 48px; height: 32px;
    background: #F4FAFC;
    clip-path: polygon(0% 50%, 100% 0%, 50% 100%);
    box-shadow: 0 0 10px rgba(244,250,252,0.5);
}

.photo-well__scene--bliss {
    background: linear-gradient(180deg, #5BC0EB 0%, #A8E6F0 50%, #7CE4B0 100%);
}
.photo-well__scene--bliss::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 45%;
    background: radial-gradient(ellipse at 50% 100%, #7CE4B0 0%, #1F6FB2 90%);
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
}

.photo-well__scene--sakura {
    background: linear-gradient(180deg, #C9A8E6 0%, #143C5E 100%);
}
.photo-well__scene--sakura::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 28px;
    background: #F08D6E;
    clip-path: polygon(50% 0%, 80% 30%, 100% 80%, 50% 100%, 0% 80%, 20% 30%);
    box-shadow: 0 0 12px rgba(240,141,110,0.7);
    animation: petalDrift 6s ease-in-out infinite;
}

@keyframes petalDrift {
    0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); }
    50%      { transform: translate(-50%, -40%) rotate(8deg); }
}

.photo-well__label {
    position: absolute;
    left: 8px; bottom: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--frost);
    background: rgba(10,37,64,0.7);
    padding: 2px 6px;
    border-radius: 3px;
    text-shadow: 0 0 4px rgba(10,37,64,0.9);
}

/* dialog widget */
.dialog {
    background:
        linear-gradient(180deg,
            rgba(244,250,252,0.18) 0%,
            rgba(91,192,235,0.06) 50%,
            rgba(20,60,94,0.22) 100%);
    border: 1px solid rgba(244,250,252,0.28);
    border-radius: var(--radius-soft);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(10,37,64,0.4),
        0 8px 18px rgba(10,37,64,0.55);
    overflow: hidden;
    min-width: 220px;
}

.dialog--ghost {
    border-color: rgba(201,168,230,0.5);
    background:
        linear-gradient(180deg,
            rgba(201,168,230,0.18) 0%,
            rgba(244,250,252,0.06) 50%,
            rgba(20,60,94,0.22) 100%);
}

.dialog__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(31,111,178,0.55) 0%, rgba(20,60,94,0.7) 100%);
    border-bottom: 1px solid rgba(244,250,252,0.2);
    font-family: var(--font-mono);
    color: var(--pearl);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.dialog__x {
    color: var(--coral);
    font-size: 1.05rem;
    cursor: default;
    text-shadow: 0 0 4px rgba(240,141,110,0.7);
}

.dialog__body {
    padding: 16px 14px;
    color: var(--pearl);
}

.dialog__body p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.dialog__btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* orb buttons */
.orb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    min-width: 64px;
    border: 1px solid rgba(10,37,64,0.45);
    border-radius: var(--radius-orb);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bay-deep);
    cursor: pointer;
    position: relative;
    transition: transform 220ms ease, filter 320ms ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -1px 0 rgba(10,37,64,0.3),
        0 4px 10px rgba(10,37,64,0.35);
}

.orb-btn::before {
    content: "";
    position: absolute;
    inset: 2px 2px 50% 2px;
    border-radius: var(--radius-orb);
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.0) 100%);
    pointer-events: none;
}

.orb-btn--mint    { background: radial-gradient(circle at 35% 30%, #DBF6E8, #7CE4B0 70%); }
.orb-btn--lemon   { background: radial-gradient(circle at 35% 30%, #FFF6CC, #FFE066 70%); }
.orb-btn--coral   { background: radial-gradient(circle at 35% 30%, #FFD9C7, #F08D6E 70%); }
.orb-btn--lavender{ background: radial-gradient(circle at 35% 30%, #ECDDF6, #C9A8E6 70%); }

.orb-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* cassette */
.cassette {
    background:
        linear-gradient(180deg, rgba(244,250,252,0.14) 0%, rgba(20,60,94,0.32) 100%);
    border: 1px solid rgba(244,250,252,0.22);
    border-radius: 8px;
    padding: 14px 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 16px rgba(10,37,64,0.5);
}

.cassette__label {
    font-family: var(--font-display);
    color: var(--lemon);
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-shadow: 0 0 6px rgba(255,224,102,0.5);
}

.cassette__reels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cassette__reel {
    width: 38px; height: 38px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #1A1F2E 0%, #0A2540 30%, transparent 33%),
        radial-gradient(circle at 50% 50%, #5BC0EB 0%, #1F6FB2 60%);
    border: 1px solid rgba(168,230,240,0.4);
    box-shadow: inset 0 0 6px rgba(168,230,240,0.4), 0 0 8px rgba(91,192,235,0.45);
    position: relative;
    animation: reelSpin 6s linear infinite;
}

.cassette__reel::before,
.cassette__reel::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 2px;
    background: var(--frost);
}

.cassette__reel::after { transform: translate(-50%, -50%) rotate(60deg); }

@keyframes reelSpin {
    0%   { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.cassette__tracks {
    margin: 0;
    padding-left: 18px;
    color: var(--frost);
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: var(--font-body);
}

/* now playing */
.nowplaying {
    background:
        linear-gradient(180deg, rgba(244,250,252,0.14) 0%, rgba(20,60,94,0.32) 100%);
    border: 1px solid rgba(244,250,252,0.22);
    border-radius: 8px;
    padding: 14px 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 16px rgba(10,37,64,0.5);
}

.nowplaying__label {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
    text-shadow: 0 0 6px rgba(91,192,235,0.5);
}

.nowplaying__title {
    font-family: var(--font-display);
    color: var(--pearl);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 12px;
}

.nowplaying__bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
    margin-bottom: 8px;
}

.nowplaying__bars span {
    width: 6px;
    background: linear-gradient(180deg, var(--frost) 0%, var(--cyan) 100%);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(168,230,240,0.5);
    animation: barPulse 1100ms ease-in-out infinite;
}

.nowplaying__bars span:nth-child(1) { animation-delay: 0ms;   height: 30%; }
.nowplaying__bars span:nth-child(2) { animation-delay: 110ms; height: 60%; }
.nowplaying__bars span:nth-child(3) { animation-delay: 220ms; height: 80%; }
.nowplaying__bars span:nth-child(4) { animation-delay: 330ms; height: 50%; }
.nowplaying__bars span:nth-child(5) { animation-delay: 440ms; height: 90%; }
.nowplaying__bars span:nth-child(6) { animation-delay: 550ms; height: 40%; }
.nowplaying__bars span:nth-child(7) { animation-delay: 660ms; height: 70%; }
.nowplaying__bars span:nth-child(8) { animation-delay: 770ms; height: 25%; }

@keyframes barPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50%      { transform: scaleY(1); opacity: 1; }
}

.nowplaying__time {
    font-family: var(--font-mono);
    color: var(--frost);
    font-size: 0.85rem;
}

/* guestbook */
.guestbook {
    position: relative;
    background:
        linear-gradient(180deg, rgba(244,250,252,0.92) 0%, rgba(244,250,252,0.78) 100%);
    color: var(--bay-deep);
    padding: 18px 16px 14px;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(10,37,64,0.55);
    transform: rotate(0deg);
    font-family: var(--font-flyer);
    font-size: 0.95rem;
    line-height: 1.5;
}

.guestbook::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 12px;
    background: linear-gradient(180deg, rgba(244,250,252,0.5) 0%, transparent 100%);
    clip-path: polygon(0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%, 24% 0%, 28% 100%, 32% 0%, 36% 100%, 40% 0%, 44% 100%, 48% 0%, 52% 100%, 56% 0%, 60% 100%, 64% 0%, 68% 100%, 72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%, 96% 0%, 100% 100%, 100% 0%);
}

.guestbook__pin {
    position: absolute;
    top: -8px;
    left: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFD9C7 0%, #F08D6E 70%);
    box-shadow: 0 2px 4px rgba(10,37,64,0.5);
}

.guestbook__pin::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(244,250,252,0.6);
}

.guestbook__entry {
    margin: 0 0 4px;
    font-family: "Reggae One", var(--font-body);
    color: #2b2b2b;
}

/* =============================================================
   Aquarium footer
   ============================================================= */
.aquarium {
    position: relative;
    margin-top: 80px;
    padding: 40px 24px 60px;
    background:
        radial-gradient(circle at 50% 30%, rgba(91,192,235,0.25) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20,60,94,0.6) 0%, rgba(10,37,64,0.95) 100%);
    z-index: 10;
}

.aquarium__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.aquarium__title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    color: var(--pearl);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.04em;
}

.aquarium__sub {
    margin: 0 0 30px;
    color: var(--frost);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.aquarium__tank {
    position: relative;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(91,192,235,0.55) 0%,
            rgba(31,111,178,0.7) 50%,
            rgba(20,60,94,0.95) 100%);
    border: 1px solid rgba(244,250,252,0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 8px rgba(10,37,64,0.5),
        0 16px 40px rgba(10,37,64,0.7);
}

.aquarium__tank::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(168,230,240,0.06) 0 1px, transparent 1px 60px),
        radial-gradient(circle at 30% 30%, rgba(244,250,252,0.18) 0%, transparent 30%);
    pointer-events: none;
}

/* koi */
.koi {
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(10,37,64,0.6));
    transition: filter 320ms ease;
}

.koi:hover { filter: drop-shadow(0 0 12px rgba(255,255,255,0.9)); }

.koi--1 { top: 30%; animation: swim1 22s linear infinite; }
.koi--2 { top: 50%; animation: swim2 28s linear infinite -4s; }
.koi--3 { top: 65%; animation: swim3 19s linear infinite -10s; }
.koi--4 { top: 22%; animation: swim4 26s linear infinite -16s; }
.koi--5 { top: 75%; animation: swim5 31s linear infinite -22s; }

@keyframes swim1 {
    0%   { left: -10%; top: 30%; transform: translateY(-50%) scaleX(1); }
    45%  { left: 60%;  top: 40%; transform: translateY(-50%) scaleX(1); }
    50%  { left: 110%; top: 38%; transform: translateY(-50%) scaleX(1); opacity: 0; }
    51%  { left: 110%; top: 25%; transform: translateY(-50%) scaleX(-1); opacity: 0; }
    52%  { left: 110%; top: 25%; transform: translateY(-50%) scaleX(-1); opacity: 1; }
    100% { left: -10%; top: 30%; transform: translateY(-50%) scaleX(-1); }
}
@keyframes swim2 {
    0%   { left: 100%; top: 50%; transform: translateY(-50%) scaleX(-1); }
    50%  { left: 30%;  top: 65%; transform: translateY(-50%) scaleX(-1); }
    51%  { left: -15%; top: 60%; transform: translateY(-50%) scaleX(1); }
    100% { left: 100%; top: 50%; transform: translateY(-50%) scaleX(1); }
}
@keyframes swim3 {
    0%   { left: -10%; top: 65%; transform: translateY(-50%) scaleX(1); }
    50%  { left: 110%; top: 55%; transform: translateY(-50%) scaleX(1); }
    51%  { left: 110%; top: 75%; transform: translateY(-50%) scaleX(-1); }
    100% { left: -10%; top: 65%; transform: translateY(-50%) scaleX(-1); }
}
@keyframes swim4 {
    0%   { left: 100%; top: 22%; transform: translateY(-50%) scaleX(-1); }
    50%  { left: -10%; top: 32%; transform: translateY(-50%) scaleX(-1); }
    51%  { left: -10%; top: 18%; transform: translateY(-50%) scaleX(1); }
    100% { left: 100%; top: 22%; transform: translateY(-50%) scaleX(1); }
}
@keyframes swim5 {
    0%   { left: -10%; top: 75%; transform: translateY(-50%) scaleX(1); }
    50%  { left: 110%; top: 70%; transform: translateY(-50%) scaleX(1); }
    51%  { left: 110%; top: 80%; transform: translateY(-50%) scaleX(-1); }
    100% { left: -10%; top: 75%; transform: translateY(-50%) scaleX(-1); }
}

/* bubbles */
.bubble {
    position: absolute;
    bottom: -10px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(244,250,252,0.95), rgba(168,230,240,0.4) 70%, transparent 100%);
    border: 1px solid rgba(244,250,252,0.4);
    opacity: 0;
}

.bubble--a { left: 14%; animation: bubbleRise 7s ease-in-out infinite; }
.bubble--b { left: 34%; width: 7px; height: 7px; animation: bubbleRise 9s ease-in-out infinite -2s; }
.bubble--c { left: 54%; width: 12px; height: 12px; animation: bubbleRise 6.5s ease-in-out infinite -3s; }
.bubble--d { left: 72%; width: 9px; height: 9px; animation: bubbleRise 8s ease-in-out infinite -5s; }
.bubble--e { left: 88%; width: 6px; height: 6px; animation: bubbleRise 10s ease-in-out infinite -1s; }

@keyframes bubbleRise {
    0%   { transform: translate(0, 0); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translate(-12px, -300px); opacity: 0; }
}

/* fact tooltip */
.koi-fact {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--pearl);
    background: rgba(10,37,64,0.7);
    padding: 6px 12px;
    border: 1px solid rgba(168,230,240,0.4);
    border-radius: var(--radius-soft);
    backdrop-filter: blur(10px) saturate(140%);
    pointer-events: none;
    transition: opacity 320ms ease;
    text-shadow: 0 0 6px rgba(10,37,64,0.9);
    max-width: 80%;
    text-align: center;
}

/* aquarium meta */
.aquarium__meta {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--frost);
    font-family: var(--font-mono);
}

.seven-seg {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--lemon);
    background: rgba(10,37,64,0.55);
    border: 1px solid rgba(255,224,102,0.4);
    padding: 6px 14px;
    border-radius: 6px;
    text-shadow: 0 0 10px rgba(255,224,102,0.7);
    letter-spacing: 0.1em;
}

.aquarium__line {
    color: var(--frost);
    font-size: 1rem;
}

.reggae {
    font-family: var(--font-flyer);
    color: var(--coral);
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(240,141,110,0.55);
}

.aquarium__sig {
    margin-top: 28px;
    color: var(--frost);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

/* =============================================================
   Responsive tweaks
   ============================================================= */
@media (max-width: 900px) {
    .spine { width: 50px; left: 10px; }
    .spine__rail, .spine__progress { left: 22px; }
    .spine__node { left: 25px; }
    .spine__node-label { display: none; }
    .shrines { margin-left: 70px; padding-right: 18px; gap: 30px; }
    .shrine--w45,.shrine--w50,.shrine--w55,.shrine--w60,.shrine--w65,.shrine--w70 {
        width: 100%; margin-left: 0; margin-right: 0;
    }
    .shrine { padding: 22px 18px; margin-top: 0; }
    .shrine__head { flex-wrap: wrap; }
    .hud__title { display: none; }
    .hud__indicator--battery { display: none; }
    .title-card__glass { padding: 36px 22px; }
    .aquarium__tank { height: 220px; }
}

@media (max-width: 560px) {
    .title-card__line { font-size: 2.2rem; }
    .shrine__year { font-size: 2.4rem; }
    .widget { min-width: 100%; }
    .hud__indicator--network { display: none; }
}
