/* =====================================================================
   hwagryul.com — v2  ·  inflated-3d hexagonal honeycomb · monochrome warm-gray
   ===================================================================== */

/* ----------------- COLOR TOKENS ----------------- */
:root {
    --paper-warm: #D8D4CC;
    --paper-light: #ECE7DD;
    --paper-cream: #F4EFE3;
    --paper-deep: #B8B0A2;
    --sepia-mid: #8A7E68;
    --ink-soft: #5A5448;
    --ink-deep: #2E2A22;

    --bokeh-warm: rgba(232, 218, 188, 0.45);
    --bokeh-cool: rgba(192, 192, 184, 0.30);
    --highlight-rim: rgba(255, 252, 244, 0.65);
    --shadow-rim: rgba(40, 36, 28, 0.30);

    --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

    --font-display: "Bungee", "Special Elite", monospace;
    --font-display-thin: "Monoton", "Bungee", monospace;
    --font-typewriter: "Special Elite", "Courier Prime", "Courier New", monospace;
    --font-kr: "Gowun Batang", "Special Elite", serif;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-typewriter);
    color: var(--ink-soft);
    background: var(--paper-warm);
    line-height: 1.7;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ----------------- AGED PAPER GRAIN ----------------- */
#paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
}

/* ----------------- BOKEH BACKGROUND ----------------- */
#bokeh-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #DCD8CF 0%, #D8D4CC 50%, #CFC9BD 100%);
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
                rgba(255, 245, 220, 0.7) 0%,
                rgba(232, 218, 188, 0.45) 35%,
                rgba(192, 192, 184, 0.18) 65%,
                rgba(192, 192, 184, 0) 100%);
    filter: blur(6px);
    opacity: 0;
    will-change: transform, opacity;
    animation-fill-mode: forwards;
}

#bokeh-layer .bokeh.b1  { width: 220px; height: 220px; top: 8%;   left: 5%;   opacity: 0.32; animation: bokehDrift1 62s ease-in-out infinite, bokehFadeIn 1400ms ease 80ms forwards; }
#bokeh-layer .bokeh.b2  { width: 180px; height: 180px; top: 18%;  left: 78%;  opacity: 0.28; animation: bokehDrift2 70s ease-in-out infinite, bokehFadeIn 1400ms ease 160ms forwards; }
#bokeh-layer .bokeh.b3  { width: 120px; height: 120px; top: 42%;  left: 32%;  opacity: 0.22; animation: bokehDrift3 54s ease-in-out infinite, bokehFadeIn 1400ms ease 240ms forwards; }
#bokeh-layer .bokeh.b4  { width: 280px; height: 280px; top: 60%;  left: 60%;  opacity: 0.20; animation: bokehDrift1 78s ease-in-out infinite reverse, bokehFadeIn 1400ms ease 320ms forwards; }
#bokeh-layer .bokeh.b5  { width: 90px;  height: 90px;  top: 78%;  left: 10%;  opacity: 0.30; animation: bokehDrift2 48s ease-in-out infinite, bokehFadeIn 1400ms ease 400ms forwards; }
#bokeh-layer .bokeh.b6  { width: 160px; height: 160px; top: 28%;  left: 50%;  opacity: 0.18; animation: bokehDrift3 64s ease-in-out infinite reverse, bokehFadeIn 1400ms ease 480ms forwards; }
#bokeh-layer .bokeh.b7  { width: 100px; height: 100px; top: 72%;  left: 88%;  opacity: 0.26; animation: bokehDrift1 56s ease-in-out infinite, bokehFadeIn 1400ms ease 560ms forwards; }
#bokeh-layer .bokeh.b8  { width: 200px; height: 200px; top: 4%;   left: 40%;  opacity: 0.16; animation: bokehDrift2 80s ease-in-out infinite reverse, bokehFadeIn 1400ms ease 640ms forwards; }
#bokeh-layer .bokeh.b9  { width: 140px; height: 140px; top: 50%;  left: 4%;   opacity: 0.24; animation: bokehDrift3 60s ease-in-out infinite, bokehFadeIn 1400ms ease 720ms forwards; }
#bokeh-layer .bokeh.b10 { width: 110px; height: 110px; top: 88%;  left: 42%;  opacity: 0.22; animation: bokehDrift1 50s ease-in-out infinite, bokehFadeIn 1400ms ease 800ms forwards; }
#bokeh-layer .bokeh.b11 { width: 80px;  height: 80px;  top: 36%;  left: 68%;  opacity: 0.34; animation: bokehDrift2 44s ease-in-out infinite reverse, bokehFadeIn 1400ms ease 880ms forwards; }
#bokeh-layer .bokeh.b12 { width: 240px; height: 240px; top: 84%;  left: 24%;  opacity: 0.14; animation: bokehDrift3 76s ease-in-out infinite, bokehFadeIn 1400ms ease 960ms forwards; }

@keyframes bokehFadeIn {
    from { opacity: 0; }
    to   { /* opacity from inline rule */ }
}

@keyframes bokehDrift1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(40px, -32px, 0) scale(1.06); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes bokehDrift2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-48px, 28px, 0) scale(0.94); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes bokehDrift3 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    33%  { transform: translate3d(36px, 24px, 0) scale(1.04); }
    66%  { transform: translate3d(-32px, -20px, 0) scale(0.96); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* ----------------- SECTION FRAME ----------------- */
.section {
    position: relative;
    width: 100%;
    padding: 8vh 6vw;
    z-index: 2;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
}

.section-head {
    text-align: center;
    margin-bottom: 5vh;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 76px);
    color: var(--ink-deep);
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 0.4em;
}

.section-sub {
    font-family: var(--font-display-thin);
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 400;
    color: var(--sepia-mid);
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

/* =====================================================================
   INFLATED-3D HEXAGON BASE
   ===================================================================== */
.hex {
    position: relative;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    background:
        radial-gradient(ellipse at 30% 24%,
            var(--paper-light) 0%,
            var(--paper-warm) 45%,
            var(--paper-deep) 100%);
    box-shadow:
        inset 0 4px 6px var(--highlight-rim),
        inset 0 -6px 10px var(--shadow-rim),
        inset 6px 0 8px rgba(255,252,244,0.30),
        inset -6px 0 10px rgba(40,36,28,0.18);
    filter: drop-shadow(0 8px 24px rgba(40,36,28,0.20));
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 280ms ease;
    color: var(--ink-deep);
}

.hex::before {
    content: "";
    position: absolute;
    inset: 4%;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    background: radial-gradient(ellipse at 32% 22%,
        rgba(255,252,244,0.55) 0%,
        rgba(255,252,244,0) 55%);
    pointer-events: none;
}

.hex:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 16px 32px rgba(40,36,28,0.28));
    background:
        radial-gradient(ellipse at 30% 22%,
            var(--paper-cream) 0%,
            var(--paper-light) 40%,
            var(--paper-warm) 70%,
            var(--paper-deep) 100%);
}

/* =====================================================================
   SECTION 1 — HERO MEDALLION + ORBITING SATELLITES
   ===================================================================== */
.hero-stage {
    position: relative;
    width: min(640px, 88vw);
    height: min(640px, 88vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6vh;
}

.hex-medallion {
    width: clamp(240px, 36vw, 360px);
    height: clamp(240px, 36vw, 360px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transform-origin: center;
    animation: medallionRise 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms backwards;
}

@keyframes medallionRise {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.medallion-inner {
    text-align: center;
    padding: 0 18%;
}
.brand-kr {
    font-family: var(--font-kr);
    font-size: clamp(40px, 5.6vw, 78px);
    font-weight: 700;
    color: var(--ink-deep);
    line-height: 1;
    letter-spacing: 0.02em;
}
.brand-en {
    font-family: var(--font-display);
    font-size: clamp(13px, 1.4vw, 19px);
    color: var(--ink-soft);
    margin-top: 0.6em;
    letter-spacing: 0.18em;
}
.brand-rule {
    width: 60%;
    margin: 0.8em auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sepia-mid), transparent);
}
.brand-meta {
    font-size: clamp(10px, 0.95vw, 12px);
    color: var(--sepia-mid);
    letter-spacing: 0.08em;
    font-style: italic;
}

/* satellites on a circular orbit using --ang */
.orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.hex-satellite {
    position: absolute;
    width: clamp(90px, 12vw, 130px);
    height: clamp(90px, 12vw, 130px);
    top: 50%; left: 50%;
    --orbit-radius: clamp(170px, 26vw, 260px);
    transform:
        translate(-50%, -50%)
        rotate(var(--ang))
        translateY(calc(var(--orbit-radius) * -1))
        rotate(calc(var(--ang) * -1));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    animation: satelliteEmerge 1200ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.hex-satellite.sat-1 { animation-delay: 600ms; }
.hex-satellite.sat-2 { animation-delay: 750ms; }
.hex-satellite.sat-3 { animation-delay: 900ms; }
.hex-satellite.sat-4 { animation-delay: 1050ms; }
.hex-satellite.sat-5 { animation-delay: 1200ms; }
.hex-satellite.sat-6 { animation-delay: 1350ms; }

@keyframes satelliteEmerge {
    0% {
        transform:
            translate(-50%, -50%)
            rotate(var(--ang))
            translateY(0)
            rotate(calc(var(--ang) * -1))
            scale(0.4);
        opacity: 0;
    }
    100% {
        transform:
            translate(-50%, -50%)
            rotate(var(--ang))
            translateY(calc(var(--orbit-radius) * -1))
            rotate(calc(var(--ang) * -1))
            scale(1);
        opacity: 1;
    }
}

.glyph {
    font-family: var(--font-kr);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 44px);
    color: var(--ink-deep);
    line-height: 1;
    transition: transform 240ms ease;
}
.hex-satellite:hover .glyph { transform: scale(1.08); }

.hero-tagline {
    font-family: var(--font-typewriter);
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--ink-soft);
    text-align: center;
    margin: 2vh 0 4vh;
    min-height: 2em;
    letter-spacing: 0.04em;
}

.hero-scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
    color: var(--sepia-mid);
    font-size: clamp(10px, 0.95vw, 12px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-display);
    animation: scrollCuePulse 2.6s ease-in-out infinite;
}
.cue-line {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--sepia-mid), transparent);
}
@keyframes scrollCuePulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(4px); }
}

/* =====================================================================
   SECTION 2 — SIX FACES (HONEYCOMB OF DICE)
   ===================================================================== */
#six-faces {
    background: linear-gradient(180deg, transparent 0%, rgba(236,231,221,0.35) 50%, transparent 100%);
}

.honeycomb-7 {
    position: relative;
    width: min(640px, 86vw);
    height: min(640px, 86vw);
    margin: 0 auto 6vh;
}

.honeycomb-7 .face-hex {
    position: absolute;
    width: 28%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* center + 6 around in honeycomb (60deg increments at radius ~30%) */
.honeycomb-7 .face-center { top: 36%; left: 36%; }
.honeycomb-7 .face-1 { top: 6%;  left: 36%; }
.honeycomb-7 .face-2 { top: 21%; left: 64%; }
.honeycomb-7 .face-3 { top: 51%; left: 64%; }
.honeycomb-7 .face-4 { top: 66%; left: 36%; }
.honeycomb-7 .face-5 { top: 51%; left: 8%;  }
.honeycomb-7 .face-6 { top: 21%; left: 8%;  }

.face-inner {
    width: 70%;
    height: 70%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.six-glyph {
    font-family: var(--font-kr);
    font-weight: 700;
    font-size: clamp(38px, 5vw, 64px);
    color: var(--ink-deep);
}

/* Die pip layout (3x3 grid) */
.die {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 70%;
    height: 70%;
    gap: 2px;
}
.die::before, .die::after,
.die > i { content: ""; display: block; }

.die i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a4438, #1e1a14);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5),
                inset 0 -1px 1px rgba(255,255,255,0.15);
    align-self: center;
    justify-self: center;
}

/* Use ::before/::after + content pattern via face attribute (we'll inject via JS too) */
.die[data-face="1"] { grid-template-areas: ". . ." ". c ." ". . ."; }
.die[data-face="2"] { grid-template-areas: "a . ." ". . ." ". . b"; }
.die[data-face="3"] { grid-template-areas: "a . ." ". c ." ". . b"; }
.die[data-face="4"] { grid-template-areas: "a . b" ". . ." "c . d"; }
.die[data-face="5"] { grid-template-areas: "a . b" ". e ." "c . d"; }
.die[data-face="6"] { grid-template-areas: "a . b" "c . d" "e . f"; }

/* =====================================================================
   NARRATOR TYPEWRITER FRAME
   ===================================================================== */
.narrator {
    max-width: min(720px, 88vw);
    margin: 0 auto;
    padding: 24px 28px;
    background: rgba(244,239,227,0.45);
    border: 1px dashed var(--sepia-mid);
    border-radius: 4px;
    font-family: var(--font-typewriter);
    font-size: clamp(13px, 1.05vw, 16px);
    color: var(--ink-soft);
    text-align: center;
    position: relative;
    min-height: 4em;
}
.narrator-line { min-height: 1.7em; }
.caret {
    display: inline-block;
    width: 1ch;
    color: var(--ink-deep);
    animation: caretBlink 530ms steps(1) infinite;
    font-weight: 700;
}
@keyframes caretBlink {
    50% { opacity: 0; }
}

/* =====================================================================
   SECTION 3 — SEASONS OF CHANCE
   ===================================================================== */
#seasons {
    background: linear-gradient(180deg, transparent 0%, rgba(216,212,204,0.45) 100%);
}

.seasons-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.season-panel {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel-inner {
    width: 78%;
    height: 78%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}
.botanical {
    width: 70%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}
.panel-name {
    font-family: var(--font-display);
    font-size: clamp(12px, 1.1vw, 16px);
    color: var(--ink-deep);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.panel-formula {
    font-family: var(--font-typewriter);
    font-size: clamp(9px, 0.85vw, 11px);
    color: var(--ink-soft);
    line-height: 1.4;
    min-height: 2.4em;
    padding: 0 4%;
}

/* =====================================================================
   SECTION 4 — FIELD NOTES
   ===================================================================== */
.field-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.hex-motif {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.motif-stack {
    width: 70%;
    height: 70%;
    position: relative;
}
.motif-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 600ms ease;
}
.motif-svg.active { opacity: 1; }

.field-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.motif-caption {
    font-family: var(--font-typewriter);
    font-size: clamp(13px, 1.1vw, 17px);
    color: var(--ink-soft);
    line-height: 1.7;
    min-height: 4.5em;
    padding: 18px 22px;
    border-left: 3px solid var(--sepia-mid);
    background: rgba(244,239,227,0.4);
}

.teletype-frame {
    background: rgba(46,42,34,0.92);
    border: 1px solid var(--sepia-mid);
    border-radius: 3px;
    padding: 18px 20px;
    font-family: "Courier Prime", "Special Elite", "Courier New", monospace;
    color: #E6DDC4;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.4);
    position: relative;
}
.teletype-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #C8B58E;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(200,181,142,0.4);
    padding-bottom: 6px;
}
.teletype {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    margin: 0;
    height: 168px;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-all;
}
.teletype::after {
    content: "▌";
    color: #E6DDC4;
    animation: caretBlink 530ms steps(1) infinite;
}

/* =====================================================================
   SECTION 5 — LAB BENCH
   ===================================================================== */
#lab-bench {
    background: linear-gradient(180deg, transparent 0%, rgba(236,231,221,0.5) 50%, transparent 100%);
}

.bench-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.bench-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.dice-cup-wrap {
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 28px rgba(40,36,28,0.25));
}
.dice-cup {
    width: 100%;
    height: 100%;
    transform-origin: center;
}
.dice-cup.shake {
    animation: diceShake 480ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes diceShake {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    15% { transform: rotate(-8deg) translateY(-2px); }
    30% { transform: rotate(7deg) translateY(2px); }
    45% { transform: rotate(-6deg) translateY(-1px); }
    60% { transform: rotate(5deg) translateY(2px); }
    75% { transform: rotate(-3deg) translateY(0); }
    90% { transform: rotate(2deg) translateY(0); }
}

.roll-btn {
    width: 160px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, filter 120ms ease;
    user-select: none;
}
.roll-btn .roll-label {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.18em;
    color: var(--ink-deep);
}
.roll-btn:hover { transform: translateY(-3px); }
.roll-btn:active,
.roll-btn.pressing {
    transform: translateY(2px);
    filter: drop-shadow(0 4px 8px rgba(40,36,28,0.18));
}

.reset-btn {
    font-family: var(--font-typewriter);
    font-size: 12px;
    color: var(--sepia-mid);
    letter-spacing: 0.12em;
    text-transform: lowercase;
    border-bottom: 1px dotted var(--sepia-mid);
    padding: 2px 6px;
    transition: color 200ms ease;
}
.reset-btn:hover { color: var(--ink-deep); }

.roll-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    color: var(--ink-soft);
    font-family: var(--font-typewriter);
    font-size: 13px;
}
.roll-stats .stat-line span { color: var(--ink-deep); font-weight: 700; }

.bench-output {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.histogram {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    height: 200px;
    padding: 16px 18px 14px;
    background: rgba(244,239,227,0.45);
    border: 1px solid var(--paper-deep);
    border-radius: 4px;
    position: relative;
}
.histogram::before {
    content: "frequency";
    position: absolute;
    top: 6px; left: 12px;
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--sepia-mid);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    gap: 4px;
}
.bar {
    width: 100%;
    height: 0%;
    background:
        linear-gradient(180deg,
            var(--paper-light) 0%,
            var(--paper-warm) 40%,
            var(--paper-deep) 100%);
    border: 1px solid var(--sepia-mid);
    box-shadow:
        inset 0 2px 3px var(--highlight-rim),
        inset 0 -3px 5px var(--shadow-rim);
    border-radius: 3px 3px 0 0;
    transition: height 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 2px;
}
.bar-label {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--ink-deep);
    letter-spacing: 0.12em;
}
.bar-count {
    position: absolute;
    top: -2px;
    font-family: var(--font-typewriter);
    font-size: 10px;
    color: var(--sepia-mid);
}

.result-log-frame {
    background: rgba(46,42,34,0.06);
    border: 1px dashed var(--sepia-mid);
    border-radius: 3px;
    padding: 16px 22px;
    max-height: 220px;
    overflow: hidden;
    position: relative;
}
.log-header {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--sepia-mid);
    letter-spacing: 0.18em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.result-log {
    columns: 4;
    column-gap: 18px;
    font-family: var(--font-typewriter);
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.result-log li {
    break-inside: avoid;
    padding: 1px 0;
}
.result-log li.fresh {
    color: var(--ink-deep);
    font-weight: 700;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
#footer {
    position: relative;
    padding: 8vh 6vw 5vh;
    background: linear-gradient(180deg, transparent 0%, rgba(138,126,104,0.18) 60%, rgba(90,84,72,0.30) 100%);
    overflow: hidden;
    z-index: 2;
}

.footer-bokeh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.footer-bokeh .bokeh.fb1 { width: 220px; height: 220px; top: -10%; left: 8%;  opacity: 0.28; animation: bokehDrift1 70s ease-in-out infinite; }
.footer-bokeh .bokeh.fb2 { width: 160px; height: 160px; top: 60%;  left: 70%; opacity: 0.22; animation: bokehDrift2 60s ease-in-out infinite; }
.footer-bokeh .bokeh.fb3 { width: 110px; height: 110px; top: 30%;  left: 40%; opacity: 0.30; animation: bokehDrift3 55s ease-in-out infinite; }
.footer-bokeh .bokeh.fb4 { width: 200px; height: 200px; top: 20%;  left: 86%; opacity: 0.18; animation: bokehDrift1 78s ease-in-out infinite reverse; }

.footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.hex-pebble {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pebble-mark {
    font-family: var(--font-kr);
    font-weight: 700;
    font-size: 26px;
    color: var(--ink-deep);
}

.footer-line {
    font-family: var(--font-typewriter);
    color: var(--ink-soft);
    font-size: clamp(12px, 1vw, 15px);
    min-height: 1.7em;
    letter-spacing: 0.04em;
}
.footer-sub {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--sepia-mid);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
    .seasons-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .field-grid,
    .bench-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .result-log { columns: 2; }
}

@media (max-width: 540px) {
    .section { padding: 6vh 5vw; }
    .seasons-row { grid-template-columns: 1fr; }
    .honeycomb-7 { width: 96vw; height: 96vw; }
    .result-log { columns: 1; }
    .bar-col .bar-label { font-size: 9px; }
}
