/* ============================================================================
   COZY FOREST — FULL-SCALE 100% HAND-SHADED PIXEL-ART EXPERIENCE WEBSITE
   Every button, container, HUD bar, dialogue box, video player, and scrollbar
   is authentic pixel art matching the in-game Living Overlook & Field Ledger.
   ============================================================================ */

:root {
  --ink: #2b1206;
  --ink-soft: #4a2813;
  --ink-muted: #6c3e1e;
  --parchment: #f5e4be;
  --sand: #ebd29e;
  --cedar: #a65c28;
  --bark: #2a1408;
  --gold: #ffe08a;
  --moss-bg: #132217;
  --font-display: 'Silkscreen', 'Courier New', monospace;
  --font-body: 'Pixelify Sans', 'Courier New', monospace;
}

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

/* Custom Pixel-Art Carved Cedar Scrollbar */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: #1c1008; border-left: 2px solid #2a1408; }
::-webkit-scrollbar-thumb {
  background: #a65c28;
  border: 2px solid #2a1408;
  box-shadow: inset 2px 2px 0 #d99152, inset -2px -2px 0 #6b3412;
}
::-webkit-scrollbar-thumb:hover { background: #c47335; }

html {
  scroll-behavior: smooth;
  background-color: var(--moss-bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--moss-bg);
  cursor: url('assets/ui/leaf_cursor.png') 2 2, auto;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

a, button {
  cursor: url('assets/ui/leaf_cursor.png') 2 2, pointer;
  font-family: inherit;
}

.px-img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* ============================================================================
   1. STICKY IN-GAME CARVED CEDAR TOP HUD BAR + LIVE SEASON CLOCK
   ============================================================================ */
.hud-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-image: url('assets/ui/topbar_plank_tile.png');
  background-repeat: repeat-x;
  background-size: 128px 60px;
  min-height: 60px;
  border-bottom: 4px solid #180a04;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.48);
}

.hud-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-left-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff2cf;
  text-shadow: 2px 2px 0 #1e0c04;
}

.hud-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sprig {
  width: 22px;
  height: auto;
}

/* Live Interactive In-Game Season & Day Clock Badge */
.hud-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  color: #2b1206;
  text-shadow: 0 1px 0 #fff1cc;
  background: transparent;
  border: 10px solid transparent;
  border-image-source: url('assets/ui/btn_wood_9slice.png');
  border-image-slice: 12 26 12 26 fill;
  border-image-repeat: stretch;
  padding: 2px 8px;
  transition: transform 80ms steps(2);
}

.hud-clock-badge:hover {
  border-image-source: url('assets/ui/btn_wood_hover_9slice.png');
  transform: translateY(-2px);
}

.hud-clock-icon {
  width: 18px;
  height: 18px;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* ============================================================================
   2. HAND-SHADED PIXEL-ART 9-SLICE WOODEN BUTTONS (MATCHES arrow_normal.png!)
   160x44 sprites: wood rim + 4 brass rivets preserved on corners!
   ============================================================================ */
.wood-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: #2b1206;
  text-shadow: 0 1px 0 #ffefc7;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 22px;
  border-image-source: url('assets/ui/btn_wood_9slice.png');
  border-image-slice: 12 26 12 26 fill;
  border-image-repeat: stretch;
  padding: 2px 6px;
  transition: transform 70ms steps(2);
  user-select: none;
  filter: drop-shadow(0 3px 0 rgba(20, 10, 4, 0.35));
}

.wood-btn:hover,
.wood-btn:focus-visible {
  border-image-source: url('assets/ui/btn_wood_hover_9slice.png');
  color: #240e04;
  transform: translateY(-2px);
  outline: none;
}

.wood-btn:active {
  transform: translateY(1px);
}

.wood-btn.is-active,
.wood-btn-active {
  border-image-source: url('assets/ui/btn_wood_active_9slice.png');
  color: #f4ffe4;
  text-shadow: 2px 2px 0 #0e2010;
}

.wood-btn-sm {
  font-size: 11px;
  border-width: 9px 18px;
  padding: 1px 4px;
}

.wood-btn-xs {
  font-size: 10px;
  border-width: 8px 15px;
  padding: 1px 4px;
}

.wood-btn-lg {
  font-size: 13px;
  border-width: 12px 24px;
  padding: 3px 10px;
}

/* ============================================================================
   3. FULL-BLEED LIVING OVERLOOK MAIN MENU HERO (ANIMATED SITTER + CLOUDS!)
   ============================================================================ */
.overlook-hero {
  position: relative;
  width: 100%;
  background: #142219;
}

.overlook-stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 600px;
  max-height: 840px;
  overflow: hidden;
  background: #1a2d1f;
}

.overlook-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 320ms ease;
}

/* Real Drifting In-Game Pixel-Art Clouds Layer */
.overlook-clouds-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: 0.82;
}

.overlook-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clouds-a { animation: cloudDriftA 68s linear infinite; }
.clouds-b { animation: cloudDriftB 68s linear infinite; }

@keyframes cloudDriftA {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
@keyframes cloudDriftB {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0%); }
}

.overlook-night-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at 86% 64%, rgba(255, 194, 96, 0.24) 0%, rgba(16, 24, 52, 0.56) 46%, rgba(8, 12, 30, 0.72) 100%);
  opacity: 0;
  transition: opacity 320ms ease;
}

body.season-night .overlook-bg,
body.season-night .overlook-clouds-wrap {
  filter: brightness(0.55) saturate(0.82) hue-rotate(190deg) contrast(1.08);
}

body.season-night .overlook-night-tint {
  opacity: 1;
}

.overlook-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Real 10-frame animated pixel-art sitter & glowing swaying lantern */
.overlook-sitter {
  position: absolute;
  right: 15.6%;
  bottom: 24.8%;
  width: 7.4%;
  height: auto;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 3px 0 rgba(16, 12, 8, 0.45));
}

.overlook-lantern {
  position: absolute;
  right: 10.6%;
  bottom: 38.6%;
  width: 3.6%;
  height: auto;
  z-index: 5;
  pointer-events: none;
  transform-origin: top center;
  animation: lanternSway 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 198, 92, 0.65));
}

body.season-night .overlook-lantern {
  filter: drop-shadow(0 0 20px rgba(255, 198, 92, 0.98)) brightness(1.2);
}

@keyframes lanternSway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

/* LEFT CEDAR SIGNPOST MENU */
.signpost-menu {
  position: absolute;
  left: 4.5%;
  top: 4%;
  bottom: 6%;
  width: min(350px, 30vw);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signpost-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.official-logo {
  width: min(295px, 25vw);
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(20, 10, 4, 0.55));
}

.custom-title-plaque {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  text-align: center;
  line-height: 1.15;
  color: #fff3cf;
  text-shadow: 3px 3px 0 #2a1408;
  background: #1c2419;
  border: 22px solid transparent;
  border-image-source: url('assets/ui/dark_frame_9slice.png');
  border-image-slice: 34;
  border-image-repeat: round;
  padding: 10px 16px;
}

.signpost-arrows {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signpost-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(312px, 26vw);
  aspect-ratio: 168 / 43;
  text-decoration: none;
  background-image: url('assets/ui/arrow_normal.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transition: transform 80ms steps(2);
  filter: drop-shadow(0 4px 0 rgba(20, 10, 4, 0.45));
}

.signpost-arrow:hover,
.signpost-arrow:focus-visible,
.signpost-arrow.is-featured {
  background-image: url('assets/ui/arrow_selected.png');
  transform: translateX(6px);
  outline: none;
}

.signpost-arrow.is-featured:hover {
  transform: translateX(10px) scale(1.02);
}

.arrow-label {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.25vw, 17px);
  color: #2b1206;
  text-shadow: 0 2px 0 #ffe9b8;
  letter-spacing: 0.02em;
  padding-right: 18px;
  padding-left: 10px;
  white-space: nowrap;
}

/* RIGHT HAND-SHADED FIELD NOTE BOX + MOSSY DARK OAK SEASON HUD DOCK */
.overlook-right-stack {
  position: absolute;
  right: 2.8%;
  top: 2.6%;
  width: min(490px, 40vw);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlook-note-box {
  border: 22px solid transparent;
  border-image-source: url('assets/ui/panel_wood_9slice.png');
  border-image-slice: 24 fill;
  border-image-repeat: round;
  padding: 6px 10px;
  filter: drop-shadow(0 8px 0 rgba(16, 8, 4, 0.42));
}

.note-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  color: #4f2c12;
  background: #ebd29e;
  border: 2px solid #8a5624;
  padding: 3px 8px;
  margin-bottom: 6px;
}

.note-icon {
  width: 20px;
  height: 20px;
}

.note-tagline {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 21px);
  line-height: 1.2;
  color: #2b1206;
  text-shadow: 0 2px 0 #fff4d6;
}

.note-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 500;
}

.season-dock {
  background: #132016;
  border: 20px solid transparent;
  border-image-source: url('assets/ui/dark_frame_9slice.png');
  border-image-slice: 34;
  border-image-repeat: round;
  padding: 4px 6px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45));
}

.season-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.season-dock-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: #f6db9c;
  letter-spacing: 0.06em;
}

.season-dock-hint {
  font-family: var(--font-display);
  font-size: 9px;
  color: #9be082;
}

.season-dock-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Interactive In-Game RPG Dialogue Box (bottom center of Overlook!) */
.rpg-dialogue-box {
  position: absolute;
  left: 34%;
  bottom: 2.5%;
  width: min(460px, 36vw);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 18px solid transparent;
  border-image-source: url('assets/ui/panel_wood_9slice.png');
  border-image-slice: 24 fill;
  border-image-repeat: round;
  padding: 2px 6px;
  filter: drop-shadow(0 6px 0 rgba(16, 8, 4, 0.48));
  transition: transform 80ms steps(2);
}

.rpg-dialogue-box:hover {
  transform: translateY(-2px);
}

.rpg-portrait {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.rpg-dialogue-body {
  flex: 1;
}

.rpg-speaker {
  font-family: var(--font-display);
  font-size: 10px;
  color: #8a491a;
  margin-bottom: 2px;
}

.rpg-text {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
}

.rpg-next-caret {
  font-family: var(--font-display);
  font-size: 12px;
  color: #9e4b16;
  align-self: flex-end;
  animation: caretBlink 0.9s steps(2) infinite;
}

@keyframes caretBlink {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(3px); opacity: 0.45; }
}

.overlook-version {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 11px;
  color: #fff6db;
  text-shadow: 2px 2px 0 #1b0c04, -1px -1px 0 #1b0c04;
}

.timber-divider {
  width: 100%;
  height: 28px;
  background-image: url('assets/ui/topbar_plank_tile.png');
  background-repeat: repeat-x;
  background-size: 128px 28px;
  border-top: 4px solid #180a04;
  border-bottom: 4px solid #180a04;
}

/* ============================================================================
   4. DEEP PIXEL-ART WOODLAND BACKDROP + HAND-SHADED LEDGER PANELS
   ============================================================================ */
.woodland-world {
  position: relative;
  background-color: #14261a;
  background-image:
    linear-gradient(180deg, rgba(12, 24, 16, 0.28), rgba(10, 20, 14, 0.44)),
    url('assets/media/woodland_backdrop.png');
  background-size: 100% auto, 720px auto;
  background-repeat: repeat;
  padding: 64px 20px 84px;
  transition: filter 320ms ease;
}

body.season-autumn .woodland-world {
  background-image:
    linear-gradient(180deg, rgba(44, 22, 10, 0.34), rgba(26, 14, 8, 0.46)),
    url('assets/media/woodland_backdrop.png');
}

body.season-winter .woodland-world {
  background-image:
    linear-gradient(180deg, rgba(16, 30, 48, 0.44), rgba(12, 22, 38, 0.56)),
    url('assets/media/woodland_backdrop.png');
}

body.season-night .woodland-world {
  background-image:
    linear-gradient(180deg, rgba(8, 12, 28, 0.62), rgba(6, 10, 24, 0.72)),
    url('assets/media/woodland_backdrop.png');
}

.ledger-section {
  max-width: 1120px;
  margin: 0 auto 80px;
  scroll-margin-top: 94px;
}

.ledger-section:last-child {
  margin-bottom: 12px;
}

/* Hand-Shaded Botanical Field Ledger Panel (ui_panel_9slice_raw -> 160x160!) */
.ledger-panel {
  position: relative;
  border: 34px solid transparent;
  border-image-source: url('assets/ui/panel_wood_9slice.png');
  border-image-slice: 24 fill;
  border-image-repeat: round;
  padding: 46px 26px 34px;
  filter: drop-shadow(0 12px 0 rgba(8, 12, 8, 0.55));
}

.ledger-ribbon {
  position: absolute;
  top: -62px;
  left: 50%;
  transform: translateX(-50%);
  width: min(470px, 86%);
  aspect-ratio: 260 / 55;
  background-image: url('assets/ui/banner_ribbon.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  filter: drop-shadow(0 5px 0 rgba(20, 10, 4, 0.4));
}

.ledger-ribbon-text {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 22px);
  color: #2b1206;
  text-shadow: 0 2px 0 #f4be7a;
  letter-spacing: 0.05em;
  margin-top: -12px;
  text-align: center;
}

.floral {
  position: absolute;
  width: 96px;
  height: auto;
  pointer-events: none;
  z-index: 7;
  filter: drop-shadow(0 3px 0 rgba(20, 10, 4, 0.35));
}

.floral-tl { top: -40px; left: -40px; }
.floral-tr { top: -40px; right: -40px; transform: scaleX(-1); }
.floral-bl { bottom: -34px; left: -40px; transform: scaleX(-1); }
.floral-br { bottom: -34px; right: -40px; }

.panel-clasp {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: auto;
  pointer-events: none;
  z-index: 7;
}

.ledger-lead {
  max-width: 790px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============================================================================
   5. INNER PIXEL-ART SUB-CARDS & HAND-SHADED DARK OAK MEDIA FRAMES
   ============================================================================ */
.parchment-card {
  border: 14px solid transparent;
  border-image-source: url('assets/ui/subcard_parchment_9slice.png');
  border-image-slice: 8 fill;
  border-image-repeat: stretch;
  padding: 10px 12px;
}

/* Mossy Dark-Oak + Brass Corner Bracket Frame! */
.timber-media-frame {
  background: #131e16;
  border: 26px solid transparent;
  border-image-source: url('assets/ui/dark_frame_9slice.png');
  border-image-slice: 34;
  border-image-repeat: round;
  filter: drop-shadow(0 7px 0 rgba(32, 16, 6, 0.36));
}

/* ============================================================================
   6. 100% PIXEL-ART CUSTOM VIDEO PLAYER HUD (ZERO BROWSER BAR!)
   ============================================================================ */
.video-theater {
  overflow: visible;
}

.video-stage {
  position: relative;
  background: #0d1610;
  border: 3px solid #1a0c05;
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1610;
}

.video-big-play {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 14, 0.28);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.video-big-play[hidden] {
  display: none;
}

.play-signpost {
  width: 280px;
}

.pixel-video-hud {
  margin-top: 10px;
  padding: 8px 10px;
  background-image: url('assets/ui/topbar_plank_tile.png');
  background-repeat: repeat-x;
  background-size: 128px 100%;
  border: 3px solid #1a0c05;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pixel-scrub-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  height: 24px;
  display: flex;
  align-items: center;
  user-select: none;
}

.pixel-scrub-track {
  width: 100%;
  height: 12px;
  background: #1b0e06;
  border: 2px solid #0e0602;
  box-shadow: inset 0 2px 0 #0d0602;
  position: relative;
}

.pixel-scrub-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #ffd866 0%, #c98628 100%);
}

.pixel-scrub-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 #140802);
}

.pixel-time-readout {
  font-family: var(--font-display);
  font-size: 11px;
  color: #ffeab3;
  text-shadow: 2px 2px 0 #140802;
  background: #1d0e06;
  border: 2px solid #733a16;
  padding: 5px 8px;
  white-space: nowrap;
}

.full-art {
  width: 100%;
  height: auto;
}

.card-title {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  text-shadow: 0 1px 0 #fff2cc;
}

.card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.emblem-48 {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.stamp-64 {
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 3px 0 rgba(52, 26, 10, 0.25));
}

/* ============================================================================
   7. SECTION GRIDS (STATS, CABINS, STAMPS, CRAFT, ENGINE, CTA)
   ============================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 15px;
  color: #2b1206;
}

.stat-lbl {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.25;
}

/* 3D CABIN STUDIO */
.cabin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-check {
  width: 16px;
  height: 16px;
  display: none;
}

.cabin-tab.is-active .tab-check {
  display: inline-block;
}

.cabin-viewer-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabin-frame {
  flex: 1;
}

.cabin-main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101812;
}

.cabin-nav-arrow {
  flex-shrink: 0;
  border-width: 10px 14px;
  padding: 6px 4px;
}

.cabin-nav-arrow img {
  width: 18px;
  height: auto;
}

.cabin-caption-box {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabin-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.thumb-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 18px;
  border-image-source: url('assets/ui/btn_wood_9slice.png');
  border-image-slice: 12 26 12 26 fill;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink);
  transition: transform 70ms steps(2);
}

.thumb-slot:hover {
  border-image-source: url('assets/ui/btn_wood_hover_9slice.png');
  transform: translateY(-2px);
}

.thumb-slot.is-active {
  border-image-source: url('assets/ui/btn_wood_active_9slice.png');
  color: #f4ffe4;
  text-shadow: 2px 2px 0 #0e2010;
}

.thumb-slot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid #2a1408;
}

/* POSTAGE STAMP FEATURE GRID */
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stamp-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CRAFTING GRID */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.craft-item {
  text-align: center;
}

/* ENGINE GRID */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.engine-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* TWILIGHT CABIN CTA BANNER */
.cta-banner-frame {
  position: relative;
}

.cta-banner-bg {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(12, 18, 34, 0.88) 0%, rgba(12, 18, 34, 0.72) 48%, rgba(12, 18, 34, 0.08) 78%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 60%;
  gap: 12px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 10px;
  color: #ffeab3;
  background: rgba(42, 20, 8, 0.88);
  border: 2px solid #c9863c;
  padding: 4px 10px;
}

.cta-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.2;
  color: #fff3d2;
  text-shadow: 3px 3px 0 #1b0c04;
}

.cta-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
  color: #efe2c4;
  text-shadow: 1px 1px 0 #0d1222;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cta-arrow {
  width: 248px;
}

.creator-plaque {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.creator-text { flex: 1; }
.creator-name { font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.creator-role { font-size: 15px; color: var(--ink-muted); }
.creator-ver {
  font-family: var(--font-display);
  font-size: 11px;
  color: #3c6b2e;
  background: #f5e4be;
  border: 2px solid #8a5624;
  padding: 5px 10px;
}

/* ============================================================================
   8. CARVED CEDAR FOOTER PLANK
   ============================================================================ */
.hud-footer {
  background-image: url('assets/ui/topbar_plank_tile.png');
  background-repeat: repeat-x;
  background-size: 128px 60px;
  border-top: 4px solid #180a04;
  padding: 16px 20px;
}

.hud-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f6e1b2;
  font-size: 15px;
  text-shadow: 2px 2px 0 #180a04;
  text-align: center;
}

/* ============================================================================
   9. RESPONSIVE TABLET & MOBILE PIXEL LAYOUT
   ============================================================================ */
@media (max-width: 1020px) {
  .overlook-stage {
    aspect-ratio: auto;
    min-height: 780px;
    max-height: none;
    padding: 20px 16px 42px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .signpost-menu,
  .overlook-right-stack,
  .rpg-dialogue-box {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .official-logo { width: 220px; }
  .signpost-arrow { width: 270px; }
  .overlook-sitter, .overlook-lantern { display: none; }

  .stats-grid, .craft-grid, .cabin-thumbs { grid-template-columns: repeat(2, 1fr); }
  .stamps-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-grid { grid-template-columns: 1fr; }
  .cta-banner-overlay {
    position: relative;
    max-width: 100%;
    background: #141c2c;
    padding: 20px;
  }
  .floral { width: 64px; }
  .floral-tl { top: -26px; left: -26px; }
  .floral-tr { top: -26px; right: -26px; }
  .floral-bl { bottom: -22px; left: -26px; }
  .floral-br { bottom: -22px; right: -26px; }
}

@media (max-width: 600px) {
  .ledger-panel {
    border-width: 22px;
    padding: 36px 12px 26px;
  }
  .stamps-grid, .stats-grid, .craft-grid { grid-template-columns: 1fr; }
  .cabin-nav-arrow { display: none; }
}
