/* ==========================================================================
   Hobby scenes: the visuals that tell each section's story through one of
   Lovemore's hobbies. They plug into the shared engine in record.js
   (selection, auto-play, keyboard, liner notes) via data-scene, and reuse
   the .rec layout from record.css. Drawn by assets/js/scenes.js.
   All scenes: viewBox 0 0 440 400 inside .rec__deck.
   ========================================================================== */

.rec__plinth--scene { padding: 3%; }
.scn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.scn text { font-family: 'JetBrains Mono', monospace; }
.scn__ease { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, fill 0.4s ease, stroke 0.4s ease; }

/* Shared readout plaque (brass/LCD style label inside a scene) */
.scn__plaque-t { font: 800 17px 'Poppins', sans-serif; letter-spacing: -0.3px; fill: #F7F4EE; }
.scn__plaque-s { font: 600 7.5px 'JetBrains Mono', monospace; letter-spacing: 1.4px; text-transform: uppercase; fill: var(--rec-gold-light); }

/* --------------------------------------------------------------------------
   Cellar (homepage recognition): one bottle per year on a lit shelf
   -------------------------------------------------------------------------- */
.scn-cellar__bottle { transform-box: fill-box; transform-origin: 50% 100%; cursor: default; }
.scn-cellar__bottle .scn-cellar__liquid { opacity: 0.55; transition: opacity 0.5s, filter 0.5s; }
.scn-cellar__bottle .scn-cellar__glass { transition: stroke 0.4s; }
.scn-cellar__bottle.is-on { transform: translateY(-16px) scale(1.07); }
.scn-cellar__bottle.is-on .scn-cellar__liquid { opacity: 1; filter: drop-shadow(0 0 8px rgba(214, 168, 90, 0.55)); }
.scn-cellar__bottle.is-on .scn-cellar__glass { stroke: rgba(241, 214, 160, 0.85); }
.scn-cellar__tag { font: 700 7px 'JetBrains Mono', monospace; letter-spacing: 0.6px; fill: #3A2610; text-anchor: middle; }
.scn-cellar__beam { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.scn-cellar__year { font: 600 8px 'JetBrains Mono', monospace; fill: #7E6A55; text-anchor: middle; transition: fill 0.4s; }
.scn-cellar__year.is-on { fill: var(--rec-gold-light); }

/* --------------------------------------------------------------------------
   Overland (About journey): a route across a topo map, 4x4 at the waypoint
   -------------------------------------------------------------------------- */
.scn-over__route-done { transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0, 0.2, 1); }
.scn-over__wpt { transition: r 0.4s, fill 0.4s, stroke 0.4s; }
.scn-over__wpt.is-done { fill: var(--rec-gold); stroke: none; }
.scn-over__wpt.is-on { fill: var(--rec-gold-light); stroke: rgba(241, 214, 160, 0.35); stroke-width: 9; }
.scn-over__rig { transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1); }
.scn-over__pulse { transform-box: fill-box; transform-origin: center; animation: scn-pulse 2s ease-out infinite; }
@keyframes scn-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.scn-over__lcd-t { font: 700 15px 'JetBrains Mono', monospace; fill: #CFE3B4; }
.scn-over__lcd-s { font: 600 7px 'JetBrains Mono', monospace; letter-spacing: 1.2px; fill: #7F9A6A; }

/* --------------------------------------------------------------------------
   Chess (Expertise): six domains, six pieces; the chosen piece takes the
   centre and shows how it moves
   -------------------------------------------------------------------------- */
.scn-chess__piece { font: 34px/1 'Segoe UI Symbol', 'DejaVu Sans', 'Noto Sans Symbols 2', serif; text-anchor: middle; dominant-baseline: central;
    fill: #F3E6C8; stroke: #2A1B0C; stroke-width: 0.8px; paint-order: stroke; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), fill 0.4s, opacity 0.4s; }
.scn-chess__piece.is-on { fill: var(--rec-gold-light); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.scn-chess__piece.is-off { opacity: 0.55; }
.scn-chess__piece--black { fill: #1B130C; stroke: #C9A877; }
.scn-chess__piece--black.is-on { fill: #0B0B0C; stroke: var(--rec-gold-light); }
.scn-chess__dot { fill: rgba(214, 168, 90, 0.85); transition: opacity 0.4s; }
.scn-chess__coord { font: 600 6.5px 'JetBrains Mono', monospace; fill: rgba(255, 255, 255, 0.35); }
.scn-chess__hl { fill: rgba(214, 168, 90, 0.28); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }

/* Shared "draw the line" paths (golf ball flight, fishing line) */
.scn__draw { transition: stroke-dashoffset 1.1s cubic-bezier(0.45, 0, 0.2, 1); }

/* --------------------------------------------------------------------------
   Golf course (Impact): one hole per track, ball flight tee to green
   -------------------------------------------------------------------------- */
.scn-golf__hole { opacity: 0; transition: opacity 0.6s ease; }
.scn-golf__hole.is-on { opacity: 1; }
.scn-golf__ball { opacity: 0; transition: opacity 0.3s ease 0s; }
.scn-golf__hole.is-on .scn-golf__ball { opacity: 1; transition-delay: 1s; }
.scn-golf__card { transition: fill 0.4s, stroke 0.4s; }
.scn-golf__card.is-on .scn-golf__cell { fill: var(--rec-gold); }
.scn-golf__card.is-on text { fill: #1A1206; }
.scn-golf__card-t { font: 700 9px 'JetBrains Mono', monospace; fill: #CFE3B4; text-anchor: middle; }

/* --------------------------------------------------------------------------
   Golf bag (Collaborate): the chosen club is drawn from the bag
   -------------------------------------------------------------------------- */
.scn-bag__club { transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.4s; }
.scn-bag__club.is-on { transform: translateY(-46px); }
.scn-bag__club.is-on .scn-bag__head { fill: var(--rec-gold-light); filter: drop-shadow(0 0 6px rgba(241, 214, 160, 0.6)); }
.scn-bag__club .scn-bag__head { transition: fill 0.4s; }

/* --------------------------------------------------------------------------
   Fishing (Media): line from the rod tip to the chosen catch
   -------------------------------------------------------------------------- */
.scn-fish__fish { opacity: 0.4; transition: opacity 0.5s; }
.scn-fish__fish.is-on { opacity: 1; filter: drop-shadow(0 0 7px rgba(241, 214, 160, 0.55)); }
.scn-fish__fish.is-on .scn-fish__body { animation: scn-wiggle 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 70% 50%; }
@keyframes scn-wiggle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.scn-fish__lbl { font: 600 7px 'JetBrains Mono', monospace; fill: rgba(207, 232, 240, 0.45); text-anchor: middle; }
.scn-fish__fish.is-on .scn-fish__lbl { fill: var(--rec-gold-light); }

/* --------------------------------------------------------------------------
   Tackle box (PROMPT1000+): twenty compartments, the chosen lure lifts
   -------------------------------------------------------------------------- */
.scn-tackle__cell rect.scn-tackle__bay { transition: stroke 0.4s, fill 0.4s; }
.scn-tackle__cell.is-on rect.scn-tackle__bay { stroke: var(--rec-gold); fill: rgba(0, 229, 255, 0.12); }
.scn-tackle__lure { transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.5, 1), filter 0.4s; }
.scn-tackle__cell.is-on .scn-tackle__lure { transform: scale(1.35) rotate(-8deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(0, 229, 255, 0.55)); }
.scn-tackle__num { font: 600 6.5px 'JetBrains Mono', monospace; fill: rgba(200, 240, 250, 0.45); }
.scn-tackle__cell.is-on .scn-tackle__num { fill: var(--rec-gold-light); }

/* --------------------------------------------------------------------------
   Pool (Journal): one lane per track, a swimmer swims to the wall
   -------------------------------------------------------------------------- */
.scn-pool__lane { transition: fill 0.4s; }
.scn-pool__lane.is-on { fill: rgba(255, 255, 255, 0.07); }
.scn-pool__num { font: 800 13px 'Poppins', sans-serif; fill: rgba(255, 255, 255, 0.55); text-anchor: middle; }
.scn-pool__swimmer { transition: transform 1.8s cubic-bezier(0.37, 0, 0.3, 1); }
.scn-pool__arm { transform-box: fill-box; transform-origin: 50% 100%; animation: scn-stroke 0.9s ease-in-out infinite alternate; }
.scn-pool__arm--b { animation-delay: -0.45s; }
@keyframes scn-stroke { from { transform: rotate(-35deg); } to { transform: rotate(35deg); } }

/* --------------------------------------------------------------------------
   Hotspots (project car: Ventures build sheet, Tech workshop)
   -------------------------------------------------------------------------- */
.scn-spot__dot { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; transition: fill 0.4s, stroke 0.4s, r 0.4s; }
.scn-spot.is-on .scn-spot__dot { fill: var(--rec-gold); stroke: var(--rec-gold-light); r: 7px; }
.scn-spot__ring { fill: none; stroke: var(--rec-gold); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scn-spot.is-on .scn-spot__ring { opacity: 1; animation: scn-pulse 1.8s ease-out infinite; }
.scn-spot__n { font: 700 6.5px 'JetBrains Mono', monospace; fill: rgba(255, 255, 255, 0.7); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.scn-spot.is-on .scn-spot__n { fill: #1A1206; }
.scn-bp__line { fill: none; stroke: rgba(210, 230, 255, 0.8); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.scn-bp__thin { fill: none; stroke: rgba(210, 230, 255, 0.35); stroke-width: 0.8; }
.scn-gar__body { fill: #2E3238; stroke: #9AA1A9; stroke-width: 1.4; }
.scn-gar__line { fill: none; stroke: rgba(154, 161, 169, 0.6); stroke-width: 1; }
.scn-bp__txt { font: 600 7px 'JetBrains Mono', monospace; fill: rgba(210, 230, 255, 0.6); letter-spacing: 1px; }

/* Hiking and recovery reuse the overland route behaviour with their own art */
.scn-hike__peak { fill: #1C3A40; }
.scn-hike__snow { fill: #E8F6F8; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Road trip (Watch): the playlist on the head unit of an overland rig.
   Motion runs only while the section is on screen (.is-spinning from record.js)
   -------------------------------------------------------------------------- */
.scn-road { overflow: hidden; border-radius: 12px; }
.scn-road__lane { stroke-dasharray: 10 14; }
.rec.is-spinning .scn-road__lane { animation: scn-road 0.6s linear infinite; }
@keyframes scn-road { to { stroke-dashoffset: -24; } }
.scn-road__eq rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.3); }
.rec.is-spinning .scn-road__eq rect { animation: rec-eq 0.8s ease-in-out infinite alternate; }
.scn-road__eq rect:nth-child(2n) { animation-delay: -0.3s !important; }
.scn-road__eq rect:nth-child(3n) { animation-delay: -0.55s !important; }
.scn-road__art.is-in { animation: rec-cover-in 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.scn-road__lcd { font: 700 11px 'JetBrains Mono', monospace; fill: #9FF3C8; }
.scn-road__lcd-s { font: 600 7.5px 'JetBrains Mono', monospace; letter-spacing: 1px; fill: #5FA884; }
.scn-road__name.is-long { animation: scn-marquee 9s linear infinite; }
@keyframes scn-marquee { from { transform: translateX(0); } to { transform: translateX(-52%); } }
.scn-road__dot { fill: rgba(159, 243, 200, 0.25); transition: fill 0.4s; }
.scn-road__dot.is-on { fill: #9FF3C8; }

/* --------------------------------------------------------------------------
   Campfire (Books): night camp by the rig, books on the camp table
   -------------------------------------------------------------------------- */
.scn-camp { overflow: hidden; border-radius: 12px; }
.scn-camp__book { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.5, 1), filter 0.4s; }
.scn-camp__book.is-on { transform: translateY(-12px) rotate(-6deg); filter: drop-shadow(0 0 6px rgba(255, 170, 80, 0.6)); }
.scn-camp__art.is-in { animation: rec-cover-in 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.scn-camp__flame { transform-box: fill-box; transform-origin: 50% 100%; }
.rec.is-spinning .scn-camp__flame { animation: scn-flicker 0.9s ease-in-out infinite alternate; }
.rec.is-spinning .scn-camp__flame--b { animation-duration: 0.7s; animation-delay: -0.3s; }
.rec.is-spinning .scn-camp__glow { animation: scn-glow 1.6s ease-in-out infinite alternate; }
@keyframes scn-flicker { from { transform: scaleY(0.88) skewX(-3deg); } to { transform: scaleY(1.08) skewX(3deg); } }
@keyframes scn-glow { from { opacity: 0.75; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Pack (store gift guide): a trail backpack, one pocket per recipient
   -------------------------------------------------------------------------- */
.scn-pack { overflow: hidden; border-radius: 12px; }
.scn-pack__pocket .scn-pack__flap { transition: fill 0.4s, stroke 0.4s; }
.scn-pack__pocket.is-on .scn-pack__flap { stroke: var(--rec-gold); stroke-width: 2.4; fill: #3F6A55; }
.scn-pack__gift { opacity: 0.0; transform: translateY(14px); transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.4s; }
.scn-pack__pocket.is-on .scn-pack__gift { opacity: 1; transform: translateY(var(--rise, -34px)); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 6px rgba(241, 214, 160, 0.45)); }
.scn-pack__tag { font: 700 6.5px 'JetBrains Mono', monospace; letter-spacing: 0.8px; fill: rgba(232, 240, 230, 0.55); text-anchor: middle; }
.scn-pack__pocket.is-on .scn-pack__tag { fill: var(--rec-gold-light); }

/* --------------------------------------------------------------------------
   Shadow board (Tech categories): tools on a garage pegboard
   -------------------------------------------------------------------------- */
.scn-board { overflow: hidden; border-radius: 12px; }
.scn-board__shadow, .scn-board__shadow * { fill: none; stroke: rgba(214, 168, 90, 0.3); stroke-width: 1.6px; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.scn-board__tool { transform-box: fill-box; transform-origin: center; transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.5, 1), filter 0.4s, opacity 0.4s; }
.scn-board__tool path, .scn-board__tool rect, .scn-board__tool circle, .scn-board__tool line, .scn-board__tool polyline, .scn-board__tool polygon { vector-effect: non-scaling-stroke; }
.scn-board__item.is-on .scn-board__tool { transform: translate(10px, -10px) rotate(-8deg) scale(1.12); filter: drop-shadow(8px 12px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(241, 214, 160, 0.45)); color: var(--rec-gold-light); }
.scn-board__item .scn-board__tool { color: #C8CDD2; }
.scn-board__item.is-on .scn-board__shadow, .scn-board__item.is-on .scn-board__shadow * { stroke: var(--rec-gold); stroke-dasharray: none; }
.scn-board__lbl { font: 600 6.5px 'JetBrains Mono', monospace; letter-spacing: 0.8px; fill: rgba(200, 205, 210, 0.5); text-anchor: middle; text-transform: uppercase; }
.scn-board__item.is-on .scn-board__lbl { fill: var(--rec-gold-light); }

@media (prefers-reduced-motion: reduce) {
    .scn-board__tool { transition: none; }
    .scn-pack__gift { transition: none; }
    .rec.is-spinning .scn-camp__flame, .rec.is-spinning .scn-camp__glow, .scn-camp__art.is-in { animation: none; }
    .scn-camp__book { transition: none; }
    .rec.is-spinning .scn-road__lane, .rec.is-spinning .scn-road__eq rect, .scn-road__name.is-long, .scn-road__art.is-in { animation: none; }
    .scn-spot.is-on .scn-spot__ring { animation: none; }
    .scn__draw, .scn-golf__hole, .scn-bag__club, .scn-tackle__lure, .scn-pool__swimmer { transition: none; }
    .scn-fish__fish.is-on .scn-fish__body, .scn-pool__arm { animation: none; }
    .scn__ease, .scn-cellar__beam, .scn-over__route-done, .scn-over__rig, .scn-chess__piece, .scn-chess__hl { transition: none; }
    .scn-over__pulse { animation: none; }
}
