:root {
  --bg-top: #fffdf9;
  --bg-base: #f9f6f0;
  --bg-warm: #f2ece2;
  --paper-50: #FBF4F0;
  --paper-100: #F7E7E2;
  --paper-300: #D9C3B6;
  --wood-950: #28160e;
  --wood-900: #3E2418;
  --wood-700: #5E3A24;
  --brass-hi: #f2d99b;
  --brass-mid: #cfa35b;
  --ink: #231b17;
  --ink-soft: #4c423c;
  --muted: #766b64;
  --border: rgba(35, 27, 23, 0.10);
  --border-strong: rgba(35, 27, 23, 0.16);
  --shadow-nav: 0 12px 32px rgba(35, 27, 23, 0.08);
  --shadow-card: 0 22px 54px rgba(35, 27, 23, 0.09);
  --r-common: #258A33;
  --r-rare: #033C5F;
  --r-epic: #8E4999;
  --r-secret: #C2821E;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='80'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.24' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='220' height='80' filter='url(%23g)' opacity='0.18'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(ellipse 88% 58% at 50% 8%, var(--bg-top) 0%, var(--bg-base) 56%, var(--bg-warm) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { left: 12px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 28px; }
.prose-wrap { max-width: 820px; }

/* =========================================================
   UNIFIED FLOATING FROSTED PILL NAVBAR (740px x 54px)
   ========================================================= */
.floating-nav-wrap {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; z-index: 80;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none;
}
.floating-nav {
  pointer-events: auto;
  width: min(740px, 100%);
  height: 54px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(35, 27, 23, 0.09);
  box-shadow: var(--shadow-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-emblem {
  width: 28px; height: 28px; border-radius: 8px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-emblem img, .brand-emblem svg { width: 28px; height: 28px; display: block; object-fit: cover; border-radius: 8px; }
.brand-word { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted); background: rgba(255, 255, 255, 0.72);
}
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-item {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-item:hover, .nav-item.is-active { background: rgba(35, 27, 23, 0.065); color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px;
  text-decoration: none; background: var(--ink); color: #fffdf9; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(35, 27, 23, 0.22); transition: transform 0.18s ease, background 0.18s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #362a24; }
.nav-cta-count { padding: 2px 7px; border-radius: 999px; background: rgba(255, 253, 249, 0.16); font-size: 11px; font-weight: 700; }

/* =========================================================
   HOMEPAGE ABOVE THE FOLD (100vh): CURVED CONVEYOR BELT HERO
   ========================================================= */
.hero-stage {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 58px; padding-bottom: 24px; overflow: hidden;
}
.sparkle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.focus-veil {
  position: fixed; inset: 0; z-index: 95; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 250, 242, 0.22) 0%, rgba(35, 27, 23, 0.62) 78%);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: opacity 0.42s ease;
}
.hero-stage.is-unboxing .focus-veil,
.shelf-screen.is-unboxing .focus-veil { opacity: 1; pointer-events: auto; }
.center-halo {
  position: fixed; left: 50%; top: 44%; width: 440px; height: 440px;
  margin-left: -220px; margin-top: -220px; border-radius: 50%; z-index: 98;
  opacity: 0; pointer-events: none; transform: scale(0.55);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(circle, rgba(255, 250, 235, 0.90) 0%, rgba(249, 232, 210, 0.42) 38%, transparent 72%),
    repeating-conic-gradient(from 0deg, rgba(255, 248, 228, 0.32) 0deg 12deg, transparent 12deg 24deg);
}
.center-halo::before {
  content: ""; position: absolute; inset: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255, 246, 224, 0.72);
}
.hero-stage.is-unboxing .center-halo,
.shelf-screen.is-unboxing .center-halo {
  opacity: 1; transform: scale(1);
  animation: halo-spin 22s linear infinite;
}
@keyframes halo-spin {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1) rotate(360deg); }
}
.box-spotlight-stage {
  position: fixed; inset: 0; z-index: 110; pointer-events: none;
}

.conveyor-zone {
  position: relative; width: 100%; height: clamp(410px, 60vh, 570px); z-index: 12;
  user-select: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}
.hero-stage.is-unboxing .conveyor-zone {
  z-index: 105; overflow: visible;
  -webkit-mask-image: none; mask-image: none;
}
.conveyor-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 98%);
}
.hero-stage.is-unboxing .conveyor-svg { opacity: 0; }
.hero-stage.is-unboxing .cube-box-btn:not(.is-focused) { opacity: 0 !important; pointer-events: none; }
.conveyor-boxes { position: absolute; inset: 0; z-index: 18; pointer-events: none; }

.mist-horizon {
  position: absolute; left: -8%; right: -8%; bottom: 0; height: 52%; z-index: 20; pointer-events: none;
  background: radial-gradient(ellipse 76% 72% at 50% 88%, #faf7f1 0%, rgba(250, 247, 241, 0.97) 48%, rgba(250, 247, 241, 0.72) 72%, rgba(250, 247, 241, 0) 100%);
}

.cube-box-btn {
  position: absolute; top: 0; left: 0;
  width: 184px; height: 190px;
  margin-left: -92px; margin-top: -170px;
  padding: 0; border: 0; background: transparent;
  pointer-events: auto; transform-origin: 50% 90%; will-change: transform, opacity;
  outline: none;
}
.cube-box-btn:hover:not(.is-focused) .cube-jelly,
.cube-box-btn:focus-visible:not(.is-focused) .cube-jelly {
  transform: translateY(-16px) scale(1.13, 1.15);
  filter: drop-shadow(0 18px 24px rgba(35, 27, 23, 0.18));
}
.cube-box-btn:hover:not(.is-focused) .cube-shadow {
  transform: scale(0.84); opacity: 0.55;
}
.cube-pill {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%) translateY(6px);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.96); border: 1px solid rgba(35, 27, 23, 0.12);
  box-shadow: 0 8px 20px rgba(35, 27, 23, 0.12);
  font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.24s ease; z-index: 9;
}
.cube-box-btn:hover:not(.is-focused) .cube-pill,
.cube-box-btn:focus-visible:not(.is-focused) .cube-pill {
  opacity: 1; transform: translateX(-50%) translateY(-4px);
}
.cube-box-btn.is-fading { opacity: 0.22; pointer-events: none; }
.cube-box-btn.is-focused {
  position: fixed !important; z-index: 110 !important;
  margin: 0 !important; top: 0 !important; left: 0 !important;
  transition: transform 0.52s cubic-bezier(0.22, 1.08, 0.36, 1), opacity 0.4s ease;
}
.cube-box-btn.is-focused .cube-pill { opacity: 0 !important; }
.cube-box-btn.is-focused .cube-jelly {
  transition: none !important;
  transform: translate(var(--shake-x, 0px), var(--shake-y, 0px)) rotate(var(--shake-rot, 0deg)) scale(var(--swell-x, 1), var(--swell-y, 1)) !important;
  filter: drop-shadow(0 26px 38px rgba(35, 27, 23, 0.34)) drop-shadow(0 0 calc(var(--glow-px, 0) * 1px) rgba(255, 232, 168, 0.85));
}
.cube-box-btn.is-focused:not(.is-opened) .cube-lid { transition: none !important; }
.cube-box-btn.is-opened .cube-jelly { transform: none !important; }
.cube-box-btn.is-opened .cube-back,
.cube-box-btn.is-opened .cube-front,
.cube-box-btn.is-opened .cube-shadow {
  transform-origin: 50% 84%;
  animation: cube-spring-pop 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
@keyframes cube-spring-pop {
  0%   { transform: translate(0, 16px) scale(1.33, 0.72); }
  22%  { transform: translate(0, -20px) scale(0.84, 1.24); }
  48%  { transform: translate(0, 5px) scale(1.10, 0.92); }
  74%  { transform: translate(0, -3px) scale(0.97, 1.04); }
  100% { transform: translate(0, 0) scale(1, 1); }
}
.cube-box-btn.is-opened .cube-lid {
  transform: translate(52px, -210px) rotate(38deg) scale(0.76) !important;
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.12, 0.96, 0.24, 1), opacity 0.34s ease 0.12s !important;
}
.cube-box-btn.is-opened .cube-beam {
  opacity: 1; transform: scaleY(1.52) scaleX(1.3);
  transition: opacity 0.14s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.cube-box-btn.is-opened .cube-rising {
  opacity: 1; transform: translateY(-68px) scale(1.18);
  transition: transform 0.54s cubic-bezier(0.18, 1.42, 0.32, 1), opacity 0.24s ease;
}

/* Lower Editorial Hero Split */
.hero-lower {
  position: relative; z-index: 30; width: min(1040px, 100%);
  margin: -116px auto 0; padding: 0 28px 34px; transition: opacity 0.35s ease;
}
.hero-stage.is-unboxing .hero-lower { opacity: 0.14; pointer-events: none; }
.hero-stage.is-unboxing .belt-caption { opacity: 0; }
.belt-caption-row { display: flex; justify-content: center; margin-bottom: 24px; }
.belt-caption {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.92); border: 1px solid rgba(35, 27, 23, 0.08);
  box-shadow: 0 8px 22px rgba(35, 27, 23, 0.06); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.caption-dot { width: 8px; height: 8px; border-radius: 999px; background: #df8d41; box-shadow: 0 0 0 4px rgba(223, 141, 65, 0.20); }

.hero-lower-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: end; gap: 32px 44px; }
.hero-copy h1 {
  margin: 0 0 18px; font-family: var(--font-serif); font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; color: var(--ink);
}
.hero-lead { margin: 0; max-width: 420px; font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* Right Column: Dual Direct Cards (Rainbow 1-Step Card + Deep Walnut Brass Card) */
.right-cards-stack { display: flex; flex-direction: column; gap: 13px; }
.rainbow-card-wrap {
  border-radius: 24px; padding: 1.8px;
  background: linear-gradient(128deg, #f5c396 0%, #f4a8c9 34%, #9fc5f8 68%, #b4e5d1 100%);
  box-shadow: 0 24px 56px rgba(35, 27, 23, 0.09), 0 4px 14px rgba(244, 168, 201, 0.16);
}
.rainbow-card {
  border-radius: 22.5px; padding: 18px 20px 18px;
  background: rgba(255, 253, 250, 0.97); display: flex; flex-direction: column; gap: 13px;
}
.card-prompt-input {
  width: 100%; border: 0; outline: none; background: transparent;
  font-size: 15.5px; font-weight: 500; color: var(--ink); padding: 4px 2px;
}
.card-prompt-input::placeholder { color: #8c817a; }
.perk-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.perk-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(35, 27, 23, 0.08); background: #fffdf9;
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
}
.pill-ico-blue { color: #4783e5; }
.pill-ico-gold { color: #cc8b2a; }
.pill-ico-rose { color: #d85a82; }
.card-footer-row { display: flex; align-items: center; gap: 10px; }
.btn-espresso {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 12px; border: 0; background: #1e1612; color: #fffdf9; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 22, 18, 0.24); transition: transform 0.16s ease, background 0.16s ease;
}
.btn-espresso:hover { transform: translateY(-1px); background: #33261f; }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: #fffdf9; color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.code-link-btn { border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px; }
.card-err { margin: 0; font-size: 12px; font-weight: 600; color: #b43a2f; }

.welcome-top { display: flex; align-items: center; gap: 12px; }
.welcome-wave { font-size: 26px; }
.welcome-title { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 600; line-height: 1.05; }
.welcome-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.wb-link-box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 12px; background: #f6f0e8; border: 1px solid rgba(35, 27, 23, 0.08);
}
.wb-url { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-code-badge {
  flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--wood-900);
  color: #f4d898; font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700;
}
.wb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Deep Walnut & Brushed Brass Friend Code Card (Locked Style B) */
.fc-shell { border-radius: 22px; padding: 1.6px; }
.fc-shell.is-style-b {
  background: linear-gradient(135deg, #ebd091 0%, #9b6e2f 48%, #5e3a24 100%);
  box-shadow: 0 20px 44px rgba(42, 24, 14, 0.24), 0 5px 14px rgba(42, 24, 14, 0.14);
}
.friend-code-card { border-radius: 20.5px; padding: 14px 18px 15px; display: flex; flex-direction: column; gap: 10px; }
.fc-shell.is-style-b .friend-code-card {
  background: var(--tex-grain), linear-gradient(145deg, #563522 0%, #3e2418 58%, #2d180f 100%);
  color: #fdf6ec;
}
.fc-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-title-group { display: inline-flex; align-items: center; gap: 7px; }
.fc-emblem {
  width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(180deg, #f2d99b, #c59542); color: #2c1708; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.fc-label { font-size: 12.5px; font-weight: 700; color: #f6e7cf; }
.fc-sub-pill {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; padding: 3px 9px; border-radius: 999px;
  background: rgba(242, 217, 155, 0.14); border: 1px solid rgba(242, 217, 155, 0.28); color: #f0d491;
}
.fc-row { display: flex; align-items: center; gap: 9px; }
.fc-input {
  flex: 1; min-width: 0; height: 40px; padding: 0 13px; border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; outline: none;
  border: 1px solid rgba(242, 217, 155, 0.28); background: rgba(24, 12, 7, 0.45); color: #fff8ee;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.fc-input::placeholder { color: rgba(242, 224, 198, 0.50); }
.fc-input:focus { border-color: #f0d491; background: rgba(24, 12, 7, 0.65); }
.fc-btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  height: 40px; padding: 0 16px; border-radius: 12px; border: 0; font-size: 13px; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(180deg, #f2d99b 0%, #cfa04e 58%, #b27f30 100%); color: #2b1708;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 250, 230, 0.72);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.fc-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.fc-shell.is-style-b .card-err { color: #ffd4b8; }

/* In-Scene Unbox HUD & Reveal Card */
.unbox-hud {
  position: fixed; left: 50%; top: 61%; transform: translateX(-50%); z-index: 120;
  width: min(560px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.unbox-whisper {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.94); border: 1px solid rgba(62, 36, 24, 0.12);
  box-shadow: 0 12px 28px rgba(35, 27, 23, 0.16); font-size: 13px; font-weight: 600; color: var(--wood-900);
}
.reveal-card {
  width: 100%; border-radius: 20px; padding: 20px 22px;
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 28px 64px rgba(35, 27, 23, 0.28);
  display: grid; grid-template-columns: 165px 1fr; gap: 18px; align-items: center;
  animation: reveal-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes reveal-pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal-art {
  width: 100%; aspect-ratio: 4 / 3; padding: 6px; border-radius: 4px; background: #fffdf9;
  border: 1px solid rgba(62, 36, 24, 0.12); box-shadow: 0 8px 18px rgba(35, 27, 23, 0.14);
}
.reveal-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.reveal-info h3 { margin: 8px 0 4px; font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.05; }
.reveal-info p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.reveal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.burst-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 145; }



/* =========================================================
   BOUTIQUE BELOW-THE-FOLD EDITORIAL SECTIONS
   ========================================================= */
.sec { padding: 72px 0; position: relative; }
.sec-series { border-top: 1px solid rgba(62, 36, 24, 0.08); background: rgba(255, 253, 249, 0.56); }
.sec-kicker {
  margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #9b6a3b;
}
.sec h2 {
  margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
}
.sec-lead { margin: 0; max-width: 600px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head-center { text-align: center; max-width: 680px; margin: 0 auto 38px; }

/* Homepage 13-Card Series Showcase Grid */
.home-series-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 22px 18px;
}
.hs-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-card:hover { transform: translateY(-6px); }
.hs-paper {
  width: 100%; aspect-ratio: 4 / 3; padding: 8px; border-radius: 4px; background: #fffdf9;
  border: 1px solid rgba(62, 36, 24, 0.09);
  box-shadow: 0 12px 24px rgba(48, 30, 18, 0.11), 0 2px 6px rgba(48, 30, 18, 0.06);
  overflow: hidden;
}
.hs-paper img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.hs-meta { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.hs-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hs-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.hs-style { font-size: 11.5px; color: var(--muted); }

/* 4-Step Editorial Walkthrough */
.ritual-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.ritual-card {
  padding: 24px 22px; border-radius: 18px;
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 10px 26px rgba(62, 36, 24, 0.06);
}
.ritual-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 14px;
  background: var(--wood-900); color: #f2d99b; font-family: var(--font-serif); font-size: 16px; font-weight: 700;
}
.ritual-card h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.ritual-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* Feature Spotlights (Walnut + Cotton Uneven Split) */
.split-uneven { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 22px; align-items: stretch; }
.spot-card {
  border-radius: 22px; padding: 34px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.spot-walnut {
  background: var(--tex-grain), linear-gradient(145deg, #563522 0%, #3b2216 62%, #29160d 100%);
  color: #fdf6ec; border: 1.5px solid #2c180f;
  box-shadow: 0 22px 48px rgba(42, 24, 14, 0.22);
}
.spot-walnut .spot-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #f0d491; }
.spot-walnut h2 { color: #fffdf9; margin: 0; }
.spot-walnut p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(253, 246, 236, 0.84); }
.spot-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.spot-link-light { color: #f4d898; font-size: 13px; font-weight: 600; text-decoration: none; }
.spot-link-light:hover { text-decoration: underline; }

.spot-cotton {
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 14px 34px rgba(62, 36, 24, 0.08);
}
.spot-cotton .spot-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9b6a3b; }
.spot-cotton h3 { margin: 0; font-family: var(--font-serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.spot-cotton p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--ink-soft); }

/* Editorial Prose, FAQ & Guestbook Comments */
.prose-card {
  padding: 40px 44px; border-radius: 22px;
  background: rgba(255, 253, 249, 0.92); border: 1px solid rgba(62, 36, 24, 0.09);
  box-shadow: 0 14px 36px rgba(62, 36, 24, 0.06);
}
.prose h2 { margin: 28px 0 12px; font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; font-family: var(--font-serif); font-size: 23px; font-weight: 600; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: #7b4a26; font-weight: 600; text-underline-offset: 3px; }

.faq-list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.faq-item {
  border-radius: 16px; background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(62, 36, 24, 0.10); padding: 16px 20px;
}
.faq-item summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 18px; color: #9b6a3b; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 11px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

.comments-card {
  padding: 34px 36px; border-radius: 22px;
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 14px 34px rgba(62, 36, 24, 0.07);
}
.comments-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.comments-head h2 { font-size: 30px; margin: 0; }
.like-btn { gap: 8px; }
.comment-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--wood-900); }
.field input, .field textarea {
  padding: 10px 13px; border-radius: 12px; border: 1px solid rgba(62, 36, 24, 0.18);
  background: #fffdf9; font-size: 14px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--wood-900); }
.comment-actions { display: flex; align-items: center; gap: 10px; }
.comment-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.comment-item, .reply-item {
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(62, 36, 24, 0.09);
}
.reply-item { margin-left: 24px; margin-top: 8px; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.comment-meta strong { color: var(--ink); font-size: 13px; }
.owner-tag { padding: 2px 7px; border-radius: 999px; background: var(--wood-900); color: #f2d99b; font-size: 10px; font-weight: 700; }
.comment-body { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.reply-link { border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 700; color: #8c5a32; }

/* =========================================================
   DEDICATED CODEX COLLECTION PAGE (/codex)
   ========================================================= */
.codex-main { max-width: 1180px; margin: 0 auto; padding: 102px 28px 80px; }
.codex-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.codex-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: #9e6b3b; margin-bottom: 8px; }
.codex-title { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(38px, 4.4vw, 54px); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.codex-title em { font-style: italic; font-weight: 500; color: #6d4b2d; }
.codex-sub { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.codex-progress-card {
  width: 320px; flex-shrink: 0; padding: 18px 20px; border-radius: 16px;
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 10px 26px rgba(62, 36, 24, 0.08);
}
.prog-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.prog-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prog-fraction { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--wood-900); line-height: 1; }
.prog-track { height: 8px; border-radius: 999px; background: rgba(62, 36, 24, 0.10); overflow: hidden; margin-bottom: 10px; }
.prog-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b87b3d 0%, #d89b44 55%, #258A33 100%); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.prog-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.codex-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px 0 26px; border-bottom: 1px solid rgba(35, 27, 23, 0.08); margin-bottom: 30px;
}
.filter-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.85); font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.filter-pill.is-active { background: var(--wood-900); border-color: var(--wood-900); color: #fffdf9; box-shadow: 0 4px 12px rgba(62, 36, 24, 0.22); }
.forge-ribbon {
  display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 14px;
  background: rgba(251, 244, 240, 0.92); border: 1px solid var(--paper-300); box-shadow: 0 6px 18px rgba(62, 36, 24, 0.06);
}
.forge-info { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.forge-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 6px; background: #f0dfd1; color: var(--wood-900); }
.forge-btn {
  height: 34px; padding: 0 14px; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, #c2821e, #8e4999); color: #fffdf9; font-size: 12.5px; font-weight: 700;
}
.forge-btn:disabled { background: #e8e0d8; color: #4a3f38; cursor: not-allowed; }

.codex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 28px 22px; }
.codex-seo-wrap { margin-top: 56px; }
.print-tile {
  position: relative; display: flex; flex-direction: column; background: transparent; border: 0; padding: 0; text-align: left;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.print-tile.is-owned:hover { transform: translateY(-6px); }
.print-sheet {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; background: #fffdf9; padding: 10px;
  box-shadow: 0 12px 28px rgba(48, 30, 18, 0.13), 0 2px 6px rgba(48, 30, 18, 0.08);
  overflow: hidden; border: 1px solid rgba(62, 36, 24, 0.09);
}
.print-sheet img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.print-tile.is-locked .print-sheet {
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1.5px dashed var(--paper-300); box-shadow: 0 4px 12px rgba(62, 36, 24, 0.05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.locked-seal {
  width: 52px; height: 52px; border-radius: 999px; border: 1.5px dashed rgba(94, 58, 36, 0.28);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: rgba(94, 58, 36, 0.42);
}
.locked-hint { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(94, 58, 36, 0.46); }
.rarity-pennant {
  display: inline-flex; align-items: center; padding: 2.5px 7px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: #fffdf9; flex-shrink: 0;
}
.rarity-pennant.r-common { background: var(--r-common); }
.rarity-pennant.r-rare   { background: var(--r-rare); }
.rarity-pennant.r-epic   { background: var(--r-epic); }
.rarity-pennant.r-secret { background: linear-gradient(135deg, #c2821e, #a12a28); }
.print-count-badge {
  position: absolute; top: 16px; right: 16px; z-index: 3; padding: 3px 8px; border-radius: 999px;
  background: rgba(35, 27, 23, 0.78); color: #fffdf9; font-size: 11px; font-weight: 700;
}
.print-caption { padding: 11px 4px 0; display: flex; flex-direction: column; gap: 3px; }
.print-caption-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.print-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.print-tile.is-locked .print-name { color: #8f837a; }
.print-style { font-size: 12px; color: var(--muted); }

.inspect-modal {
  position: relative; width: min(880px, 100%); border-radius: 18px;
  background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); box-shadow: 0 32px 72px rgba(24, 14, 8, 0.36);
  display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
}
.inspect-art-col { background: #2b1d15; padding: 28px; display: flex; align-items: center; justify-content: center; }
.inspect-art-col img { max-width: 100%; max-height: 460px; border-radius: 3px; border: 8px solid #fffdf9; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45); object-fit: contain; }
.inspect-info-col { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.inspect-title { margin: 12px 0 4px; font-family: var(--font-serif); font-size: 34px; font-weight: 600; line-height: 1.08; }
.inspect-style { font-size: 13px; font-weight: 600; color: #8f6037; margin-bottom: 14px; }
.inspect-lore { margin: 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.inspect-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid rgba(62, 36, 24, 0.12); border-bottom: 1px solid rgba(62, 36, 24, 0.12); margin-bottom: 22px; }
.inspect-stat span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.inspect-stat strong { font-size: 15px; color: var(--ink); }

/* =========================================================
   INNER EDITORIAL PAGES & FOOTER
   ========================================================= */
.inner-page { padding-top: 106px; padding-bottom: 84px; max-width: 920px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.inner-hero { margin-bottom: 30px; }
.inner-hero h1 { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(36px, 4.6vw, 52px); font-weight: 600; line-height: 1.05; }
.inner-lead { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink-soft); max-width: 680px; }
.inner-cta { margin-top: 18px; }
.code-entry-stage { margin-bottom: 36px; }
.code-page-card { max-width: 560px; }
.inner-faq { margin-top: 44px; }

.prompts-section { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }
.prompt-group h2 { font-family: var(--font-serif); font-size: 28px; margin: 0 0 14px; }
.prompt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.prompt-item {
  padding: 18px 18px 14px; border-radius: 16px; background: var(--paper-50); background-image: var(--tex-noise);
  border: 1px solid var(--paper-300); display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.prompt-text { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.48; color: var(--wood-900); }
.copy-prompt-btn {
  align-self: flex-start; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(62, 36, 24, 0.18); background: #fffdf9; font-size: 11.5px; font-weight: 700; color: var(--wood-900);
}

.atelier-footer {
  border-top: 1px solid rgba(62, 36, 24, 0.10);
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.72), #efe5d8);
  padding: 54px 0 calc(44px + env(safe-area-inset-bottom, 0px));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-tagline { margin: 12px 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); max-width: 320px; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }
.footer-col h3 { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8c5c34; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }



/* ==========================================================================
   WALNUT CURIO MULTI-CABINET SHELF (/box & /send)
   ========================================================================== */
.shelf-screen {
  min-height: 100vh; padding: 84px 24px 26px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 90% 60% at 50% 8%, var(--bg-top) 0%, var(--bg-base) 56%, var(--bg-warm) 100%);
  position: relative;
}
.shelf-shell { width: min(1040px, 100%); display: flex; flex-direction: column; gap: 13px; }
.shelf-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px; flex-wrap: wrap; }
.shelf-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: #9b6a3b; margin-bottom: 3px; }
.shelf-title { margin: 0; font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.shelf-title em { font-style: italic; font-weight: 500; color: #6d4728; }
.shelf-meta-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.occupancy-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.92); border: 1px solid rgba(62, 36, 24, 0.12);
  font-size: 12.5px; font-weight: 600; color: var(--wood-900);
}
.occ-dot { width: 7px; height: 7px; border-radius: 999px; background: #258A33; box-shadow: 0 0 0 3px rgba(37, 138, 51, 0.16); }
.jump-rug-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(62, 36, 24, 0.16); background: var(--paper-50); font-size: 12.5px; font-weight: 600;
  color: var(--wood-900); text-decoration: none; transition: transform 0.16s ease, background 0.16s ease;
}
.jump-rug-btn:hover { transform: translateY(-1px); background: #fffdf9; }

.wood-cabinet {
  position: relative; border-radius: 18px 18px 12px 12px; padding: 12px 18px 14px;
  background: var(--tex-grain), linear-gradient(180deg, #68422b 0%, #52321f 48%, #3c2215 100%);
  border: 2px solid #2c180f;
  box-shadow: inset 0 2px 0 rgba(255, 224, 184, 0.24), inset 0 -3px 8px rgba(0, 0, 0, 0.45), 0 24px 54px rgba(42, 24, 14, 0.22);
}
.cabinet-crown { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 4px; }
.crown-spacer { width: 128px; }
.crown-plaque {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 16px; border-radius: 4px;
  background: linear-gradient(180deg, #edd190 0%, #cfa04e 52%, #a6782e 100%);
  border: 1px solid #6e4c17; color: #2f1b08; font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 249, 224, 0.7);
}
.cabinet-pager { display: inline-flex; align-items: center; gap: 6px; }
.cab-page-btn {
  height: 24px; padding: 0 10px; border-radius: 4px; border: 1px solid #725019;
  background: linear-gradient(180deg, #ebd091 0%, #c69643 100%); color: #2b1706; font-size: 11px; font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.cab-page-btn:disabled { opacity: 0.38; cursor: default; }
.cab-page-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #f3dfb8; min-width: 72px; text-align: center; }

.cabinet-tiers { display: flex; flex-direction: column; gap: 8px; }
.cabinet-tier {
  position: relative; border-radius: 9px;
  background: radial-gradient(ellipse 92% 70% at 50% 0%, rgba(164, 112, 72, 0.22) 0%, transparent 65%), linear-gradient(180deg, #27150d 0%, #372015 74%, #2d180f 100%);
  box-shadow: inset 0 8px 18px rgba(0, 0, 0, 0.56), inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  padding: 5px 10px 0; overflow: visible;
}
.tier-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; position: relative; z-index: 2; }
.tier-plank {
  position: relative; height: 23px; margin: -3px -10px 0; border-radius: 0 0 8px 8px;
  background: var(--tex-grain), linear-gradient(180deg, #8b5d3c 0%, #6f462b 26%, #4e2f1d 100%);
  border-top: 1.5px solid rgba(255, 224, 184, 0.28); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.42);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 10px; align-items: center; z-index: 3;
}
.plank-brass {
  justify-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 1.5px 7px; border-radius: 3px;
  background: linear-gradient(180deg, #ebd091 0%, #c99b4a 55%, #9e712a 100%);
  border: 1px solid #593b10; color: #2b1806; font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 248, 220, 0.65); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.plank-brass.is-open-plaque { background: linear-gradient(180deg, #b89d76 0%, #8f7451 100%); color: #23160a; opacity: 0.88; }
.plank-brass.is-opened-plaque { background: linear-gradient(180deg, #d7e7d4 0%, #a5c4a1 100%); color: #17331a; border-color: #3a5c3a; }
.plank-brass.is-private-plaque { background: linear-gradient(180deg, #d9c3b6 0%, #b59a89 100%); color: #2e1d14; border-color: #6b5142; }
.cabinet-base { height: 9px; margin-top: 8px; border-radius: 4px; background: linear-gradient(180deg, #4b2d1b, #28150d); }

.shelf-slot {
  position: relative; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 4px; background: transparent; border: 0; outline: none;
}
.shelf-slot.is-sealed .cube-wrap { width: 92px; height: 92px; margin-bottom: -4px; position: relative; cursor: pointer; transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.shelf-slot.is-sealed .cube-wrap .cube-jelly {
  animation: shelf-cube-idle 3.4s ease-in-out infinite;
  animation-delay: var(--idle-delay, 0s);
}
@keyframes shelf-cube-idle {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1, 1); }
  25%      { transform: translateY(-2.2px) rotate(-1.4deg) scale(0.99, 1.02); }
  55%      { transform: translateY(0.5px) rotate(0deg) scale(1.015, 0.985); }
  80%      { transform: translateY(-1.8px) rotate(1.3deg) scale(0.99, 1.015); }
}
.shelf-slot.is-sealed:hover .cube-wrap { transform: translateY(-7px) scale(1.08); }
.shelf-slot.is-sealed:hover .cube-wrap .cube-jelly { animation-play-state: paused; }
.shelf-slot.is-sealed .sender-tag {
  position: absolute; top: 0px; left: 50%; transform: translateX(-50%); padding: 1.5px 7px; border-radius: 999px;
  background: rgba(251, 244, 240, 0.95); border: 1px solid rgba(62, 36, 24, 0.18); color: var(--wood-900);
  font-size: 9.5px; font-weight: 700; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28); white-space: nowrap; z-index: 6; pointer-events: none;
}
.opened-easel {
  width: 88px; height: 62px; margin-bottom: 6px; border-radius: 3px; padding: 3.5px; background: #fffdf9;
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.44);
  transform: rotate(-1.8deg); transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative;
}
.shelf-slot.is-opened:hover .opened-easel { transform: rotate(0deg) translateY(-5px) scale(1.07); }
.opened-easel img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.opened-ribbon-note {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 1.5px 7px; border-radius: 999px;
  background: #1b6b27; color: #fffdf9; font-size: 8.5px; font-weight: 700; white-space: nowrap;
}
.private-envelope {
  width: 88px; height: 62px; margin-bottom: 6px; border-radius: 4px;
  background: var(--tex-noise), linear-gradient(145deg, #efe2d3 0%, #dcc7b3 100%);
  border: 1px solid rgba(255, 245, 232, 0.45); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; opacity: 0.92;
}
.private-wax {
  width: 19px; height: 19px; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #d66853, #963425);
  border: 1px solid #632016; color: #fff3e6; font-size: 9px; display: flex; align-items: center; justify-content: center;
}
.private-who { font-size: 9px; font-weight: 700; color: #4b2d1b; }
.private-sub { font-size: 7.5px; font-weight: 600; color: #7c5c46; text-transform: uppercase; letter-spacing: 0.06em; }
.empty-niche {
  width: 88px; height: 68px; margin-bottom: 6px; border-radius: 8px;
  border: 1.5px dashed rgba(242, 217, 155, 0.28); background: rgba(255, 240, 215, 0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(242, 217, 155, 0.62); transition: all 0.2s ease;
}
.empty-plus { width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(242, 217, 155, 0.36); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.empty-label { font-size: 9px; font-weight: 600; }
.is-friend-page .shelf-slot.is-empty { cursor: pointer; }
.is-friend-page .shelf-slot.is-empty .empty-niche {
  border: 1.5px dashed rgba(242, 217, 155, 0.78);
  background: radial-gradient(circle at 50% 50%, rgba(242, 217, 155, 0.16), rgba(242, 217, 155, 0.03));
  color: #f9e6b8; box-shadow: 0 0 18px rgba(242, 217, 155, 0.16);
}
.is-friend-page .shelf-slot.is-empty:hover .empty-niche {
  transform: translateY(-4px) scale(1.04); background: rgba(242, 217, 155, 0.24); border-color: #fff3cf; color: #fffdf9;
}

.shelf-dock { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.dock-primary {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  height: 44px; padding: 0 24px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, #2d1b12 0%, #56321f 100%); color: #fffdf9; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(42, 24, 14, 0.24), inset 0 1px 0 rgba(255, 224, 184, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dock-primary:hover:not(:disabled) { transform: translateY(-2px); }
.dock-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.dock-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(62, 36, 24, 0.16); background: rgba(255, 253, 249, 0.92); color: var(--wood-900);
  text-decoration: none; font-size: 13px; font-weight: 600; transition: background 0.16s ease, transform 0.16s ease;
}
.dock-btn:hover { background: #ffffff; transform: translateY(-1px); }
.dock-subtle-link {
  border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: #7c5638;
  text-decoration: none; padding: 6px 10px; border-radius: 999px;
}
.dock-subtle-link:hover { color: var(--wood-900); background: rgba(62, 36, 24, 0.06); }
.friend-banner-note {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(251, 244, 240, 0.95); border: 1px solid var(--paper-300); font-size: 13px; color: var(--wood-900);
}
.friend-sparkle { color: #c2821e; }

/* 5-Layer Q-Elastic Cube Shared Layers & Shelf Animations */
.cube-jelly { position: relative; width: 100%; height: 100%; transform-origin: 50% 82%; transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease; }
.cube-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cube-shadow { position: absolute; left: 15%; right: 15%; bottom: 7%; height: 13%; border-radius: 50%; background: radial-gradient(ellipse, rgba(35, 27, 23, 0.26) 0%, rgba(35, 27, 23, 0.08) 58%, transparent 76%); transition: transform 0.3s ease, opacity 0.3s ease; }
.cube-back { z-index: 1; }
.cube-beam {
  position: absolute; left: 20%; right: 20%; bottom: 44%; height: 68%; z-index: 2;
  border-radius: 50% 50% 24px 24px;
  background: linear-gradient(180deg, rgba(255, 252, 232, 0) 0%, rgba(255, 236, 184, 0.72) 55%, rgba(255, 255, 255, 0.96) 100%);
  opacity: calc(var(--charge, 0) * 0.22);
  transform-origin: center bottom; transform: scaleY(calc(0.3 + var(--charge, 0) * 0.2));
  filter: blur(4px); transition: opacity 0.25s ease, transform 0.36s ease; pointer-events: none;
}
.cube-rising { position: absolute; left: 18%; right: 18%; top: 10%; height: 54%; z-index: 3; opacity: 0; transform: translateY(24px) scale(0.36); border-radius: 3px; padding: 3px; background: #fffdf9; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38); pointer-events: none; }
.cube-rising img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.cube-front { z-index: 4; }
.cube-lid {
  z-index: 5; transform-origin: 50% 44%;
  transform:
    translateY(calc(var(--charge, 0) * -4.5px + var(--lid-press-y, 0px)))
    rotate(calc(var(--lid-tilt, 0) * 1deg))
    scale(var(--lid-sx, 1), var(--lid-sy, 1));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.cube-wrap.is-shaking .cube-jelly { animation: q-shake-choreo 1.12s ease-in-out forwards; }
@keyframes q-shake-choreo {
  0% { transform: rotate(0deg) scale(1, 1); }
  12% { transform: rotate(-9deg) scale(1.03, 0.97); }
  21% { transform: rotate(-2deg) scale(0.99, 1.01); }
  30% { transform: rotate(-10deg) scale(1.04, 0.96); }
  54% { transform: rotate(8deg) scale(1.02, 0.98); }
  65% { transform: rotate(2deg) scale(0.99, 1.01); }
  76% { transform: rotate(10deg) scale(1.04, 0.96); }
  88% { transform: rotate(3deg) scale(1.01, 0.99); }
  100% { transform: rotate(0deg) scale(1, 1); }
}
.cube-wrap.is-pressing .cube-lid { animation: lid-snug-press 0.88s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.cube-wrap.is-pressing .cube-front, .cube-wrap.is-pressing .cube-back { animation: body-snug-press 0.88s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes lid-snug-press { 0% { transform: translateY(0px) scale(1, 1); } 100% { transform: translateY(3.2px) scale(1.04, 0.95); } }
@keyframes body-snug-press { 0% { transform: scale(1, 1); } 100% { transform: scale(1.04, 0.94); } }
.cube-wrap.is-popped .cube-back, .cube-wrap.is-popped .cube-front, .cube-wrap.is-popped .cube-shadow { animation: cube-spring-pop 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.cube-wrap.is-popped .cube-lid { transform: translate(34px, -78px) rotate(32deg) scale(0.84); opacity: 0; }
.cube-wrap.is-popped .cube-beam { opacity: 1; }
.cube-wrap.is-popped .cube-rising { opacity: 1; transform: translateY(-42px) scale(1.08); transition: transform 0.62s cubic-bezier(0.18, 1.28, 0.32, 1), opacity 0.26s ease; }
.cube-wrap.is-just-placed { animation: gift-drop-in 0.64s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes gift-drop-in { 0% { transform: translateY(-48px) scale(0.75); opacity: 0; } 62% { transform: translateY(4px) scale(1.06, 0.93); opacity: 1; } 100% { transform: translateY(0) scale(1, 1); opacity: 1; } }

/* ==========================================================================
   SCREEN 2 (100vh): WARM COCOA BROWN POSTCARD TABLE READING ROOM (0ms Load!)
   ========================================================================== */
.rug-screen {
  position: relative; min-height: 100vh; padding: 86px 32px 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  background-color: #5c3e2b;
  background-image:
    var(--tex-noise),
    radial-gradient(ellipse 84% 72% at 50% 42%, #7a5740 0%, #5e402d 52%, #442c1d 100%);
}
.rug-sunlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 56% at 50% 24%, rgba(255, 236, 206, 0.10) 0%, rgba(255, 236, 206, 0) 70%);
}
.rug-stage { position: relative; z-index: 2; width: min(1240px, 100%); min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.rug-top-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rug-top-right { display: flex; align-items: center; gap: 8px; }
.rug-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px;
  background: rgba(255, 251, 244, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(62, 36, 24, 0.14); color: var(--wood-900); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(42, 24, 14, 0.16);
}
button.rug-pill:hover { background: #ffffff; transform: translateY(-1px); }
.rug-pill.is-soft-dark { background: rgba(48, 28, 17, 0.88); color: #fff8ee; border-color: rgba(255, 240, 215, 0.22); }

.rug-deck-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 28px 0 14px; transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease; }
.rug-screen.is-reading .rug-deck-wrap { opacity: 0.16; filter: blur(4px); transform: scale(0.96); pointer-events: none; }
.rug-deck-row { display: flex; align-items: center; justify-content: center; min-height: 224px; position: relative; }
.deck-card {
  position: relative; width: var(--deck-w, 296px); height: calc(var(--deck-w, 296px) * 2 / 3); display: flex; flex-shrink: 0;
  margin-left: var(--overlap, 20px); border: 0; padding: 0; background: transparent;
  transform: rotate(var(--tilt, 0deg)); transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), margin 0.3s ease;
  z-index: var(--zi, 1); outline: none;
}
.deck-card:first-child { margin-left: 0; }
.deck-card:hover, .deck-card:focus-visible, .deck-card.is-demo-hover { transform: translateY(-30px) scale(1.075) rotate(0deg); z-index: 45; }
.deck-hover-tag {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(8px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 252, 246, 0.97); border: 1px solid rgba(94, 58, 36, 0.18); box-shadow: 0 10px 24px rgba(32, 18, 9, 0.24);
  white-space: nowrap; transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); z-index: 50;
}
.deck-card:hover .deck-hover-tag, .deck-card:focus-visible .deck-hover-tag, .deck-card.is-demo-hover .deck-hover-tag { opacity: 1; transform: translateX(-50%) translateY(0); }
.dht-from { font-size: 12px; font-weight: 700; color: var(--wood-900); }
.dht-date { font-size: 11px; font-weight: 600; color: #8c623d; }
.dht-sep { color: rgba(94, 58, 36, 0.3); }
.dht-art { font-family: var(--font-serif); font-style: italic; font-size: 14px; font-weight: 600; color: #543723; }
.rug-deck-hint { text-align: center; display: flex; justify-content: center; }
.rug-deck-hint span { display: inline-flex; padding: 7px 18px; border-radius: 999px; background: rgba(255, 251, 244, 0.90); border: 1px solid rgba(62, 36, 24, 0.12); color: var(--wood-900); font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(42, 24, 14, 0.14); }

/* 3:2 Physical Postcard Front & Back (Strict 1:1 Equal Size!) */
.postcard-front-card {
  width: 100%; height: 100%; border-radius: 3px; padding: 9px;
  display: flex;
  background: var(--tex-noise), linear-gradient(155deg, #fffdf9 0%, #f8efe5 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 30px rgba(34, 18, 9, 0.28), 0 4px 10px rgba(34, 18, 9, 0.16), inset 0 0 0 1px rgba(130, 96, 68, 0.12);
  overflow: hidden;
}
.pf-full { flex: 1; width: 100%; height: 100%; min-height: 0; position: relative; overflow: hidden; border-radius: 1.5px; }
.pf-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-folio { flex: 1; width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: 52% 48%; background: #fbf5ec; border: 1px solid rgba(94, 58, 36, 0.10); border-radius: 1.5px; overflow: hidden; }
.pf-folio-img { height: 100%; min-height: 0; position: relative; overflow: hidden; padding: 5px; background: #f3e8da; }
.pf-folio-img img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; border-radius: 1px; display: block; }
.pf-folio-meta { padding: 12px 12px 10px 14px; display: flex; flex-direction: column; justify-content: center; text-align: left; gap: 4px; container-type: inline-size; }
.pf-folio-kicker { font-size: clamp(7.5px, 4.4cqi, 10px); font-weight: 700; letter-spacing: 0.14em; color: #9e6b3b; }
.pf-folio-title { margin: 0; font-family: var(--font-serif); font-size: clamp(14px, 11.5cqi, 27px); font-weight: 600; line-height: 1.04; color: #2b1a10; }
.pf-folio-style { margin: 0; font-size: clamp(8.5px, 5cqi, 12px); font-weight: 600; color: #7c583c; }
.pf-folio-note { margin: 4px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(9.5px, 6.2cqi, 15px); line-height: 1.35; color: #543a28; }
.pf-folio-foot { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: clamp(8px, 4.4cqi, 10.5px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b4c35; }
.pf-rarity-dot { width: 7px; height: 7px; border-radius: 999px; }
.pf-rarity-dot.r-common { background: var(--r-common); }
.pf-rarity-dot.r-rare { background: var(--r-rare); }
.pf-rarity-dot.r-epic { background: var(--r-epic); }
.pf-rarity-dot.r-secret { background: var(--r-secret); }

.rug-spread-overlay { position: absolute; inset: 58px 0 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 10px 0 18px; }
.spread-pair { width: min(1150px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.spread-slot { width: 100%; aspect-ratio: 3 / 2; display: flex; }
.spread-slot-front { transform: rotate(-0.55deg); transition: transform 0.3s ease; }
.spread-slot-front:hover { transform: rotate(0deg); }
.spread-slot-front .postcard-front-card { padding: 12px; box-shadow: 0 26px 50px rgba(32, 18, 9, 0.34), 0 8px 18px rgba(32, 18, 9, 0.20); }
.physical-postcard {
  width: 100%; height: 100%; border-radius: 3px; padding: 20px 24px 18px;
  background: var(--tex-noise), linear-gradient(155deg, #fdf8f3 0%, #f6ece1 60%, #efe1d2 100%);
  border: 1px solid rgba(255, 250, 240, 0.84);
  box-shadow: 0 26px 50px rgba(32, 18, 9, 0.34), 0 8px 18px rgba(32, 18, 9, 0.20), inset 0 0 0 1px rgba(130, 96, 68, 0.14);
  display: flex; flex-direction: column; transform: rotate(0.55deg); transition: transform 0.3s ease;
}
.physical-postcard:hover { transform: rotate(0deg); }
.pc-top-meta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px solid rgba(94, 58, 36, 0.15); }
.pc-heading { font-family: var(--font-serif); font-size: 12.5px; font-weight: 700; letter-spacing: 0.30em; color: rgba(62, 36, 24, 0.52); }
.pc-rarity-tag { padding: 3px 9px; border-radius: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: #fffdf9; }
.pc-rarity-tag.r-common { background: var(--r-common); }
.pc-rarity-tag.r-rare { background: var(--r-rare); }
.pc-rarity-tag.r-epic { background: var(--r-epic); }
.pc-rarity-tag.r-secret { background: linear-gradient(135deg, #c2821e, #a12a28); }
.pc-body-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1px 0.95fr; gap: 18px; }
.pc-divider { background: linear-gradient(180deg, rgba(94, 58, 36, 0.08), rgba(94, 58, 36, 0.28) 20%, rgba(94, 58, 36, 0.28) 80%, rgba(94, 58, 36, 0.08)); }
.pc-left-side { display: flex; flex-direction: column; justify-content: space-between; padding-right: 4px; }
.pc-message {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 1.45vw, 20.5px); line-height: 1.54; color: #2b1d14;
  background-image: repeating-linear-gradient(to bottom, transparent 0px, transparent 29px, rgba(94, 58, 36, 0.13) 29px, rgba(94, 58, 36, 0.13) 30px);
}
.pc-signature { font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; color: #5b3822; margin-top: 6px; }
.pc-right-side { display: flex; flex-direction: column; justify-content: space-between; }
.pc-postage-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pc-postmark {
  width: 64px; height: 64px; border-radius: 999px; border: 1.5px dashed rgba(94, 58, 36, 0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-11deg); margin-right: -13px; z-index: 3; color: rgba(84, 48, 28, 0.64);
}
.pm-top { font-size: 6px; font-weight: 800; letter-spacing: 0.08em; }
.pm-mid { font-size: 8px; font-weight: 800; margin: 2px 0; border-top: 1px solid rgba(84,48,28,0.35); border-bottom: 1px solid rgba(84,48,28,0.35); padding: 1px 4px; }
.pm-bot { font-size: 6.5px; font-weight: 700; letter-spacing: 0.1em; }
.pc-stamp { width: 64px; height: 78px; padding: 4px; background: #fffdf9; border: 1.5px dotted rgba(94, 58, 36, 0.42); box-shadow: 0 3px 8px rgba(42, 24, 14, 0.18); display: flex; align-items: center; justify-content: center; z-index: 2; }
.pc-stamp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-stamp.is-mystery { background: #f3e4d2; font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: #5e3817; }
.pc-address-lines { display: flex; flex-direction: column; gap: 9px; padding-bottom: 4px; }
.addr-line { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid rgba(94, 58, 36, 0.24); padding-bottom: 4px; }
.addr-k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(94, 58, 36, 0.56); width: 36px; flex-shrink: 0; }
.addr-v { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: #2b1d14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread-controls { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rug-empty { text-align: center; padding: 56px 28px; border-radius: 16px; background: rgba(255, 251, 244, 0.94); max-width: 460px; margin: auto; box-shadow: 0 24px 54px rgba(42, 24, 14, 0.26); }

/* Modals, Composer, Share Sheet, Petals & Toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(26, 16, 10, 0.56); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.compose-sheet, .share-modal, .volley-modal {
  position: relative; border-radius: 20px; padding: 26px 28px 28px;
  background: radial-gradient(ellipse at 50% 0%, #fffdf9 0%, #f5ece2 100%);
  border: 1px solid rgba(62, 36, 24, 0.16); box-shadow: 0 34px 76px rgba(18, 10, 5, 0.42);
}
.compose-sheet { width: min(980px, 100%); }
.share-modal { width: min(560px, 100%); }
.volley-modal { width: min(820px, 100%); text-align: center; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 253, 249, 0.9); font-size: 16px; }
.compose-header { margin-bottom: 18px; }
.compose-slot-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f0dfd0; color: var(--wood-900); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; margin-bottom: 6px; }
.compose-heading, .volley-heading { margin: 0 0 14px; font-family: var(--font-serif); font-size: 32px; font-weight: 600; line-height: 1.08; }
.compose-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: center; }
.compose-options { display: flex; flex-direction: column; gap: 16px; }
.opt-block { display: flex; flex-direction: column; gap: 8px; }
.opt-label { font-size: 12px; font-weight: 700; color: var(--wood-900); }
.pull-mode-tabs { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px; }
.pull-tab { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fffdf9; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink-soft); }
.pull-tab.is-active { background: var(--wood-900); border-color: var(--wood-900); color: #fffdf9; }
.opt-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.classic-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.classic-choice { padding: 3px; border-radius: 5px; border: 2px solid transparent; background: #fffdf9; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.classic-choice.is-active { border-color: var(--wood-900); }
.classic-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 2px; }
.skin-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skin-swatch { height: 38px; border-radius: 10px; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.skin-swatch.is-active { border-color: var(--wood-900); transform: translateY(-2px); }
.skin-ribbon-dot { width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid #2a201b; }
.compose-submit { height: 46px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #2f1b12, #633a24); color: #fffdf9; font-size: 13.5px; font-weight: 700; }
.compose-card-wrap { display: flex; justify-content: center; }
.physical-postcard.is-composer { width: min(550px, 100%); aspect-ratio: 3 / 2; height: auto; transform: none; }
.pc-input-msg { width: 100%; flex: 1; border: 0; resize: none; outline: none; background: transparent; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.52; color: #2b1d14; background-image: repeating-linear-gradient(to bottom, transparent 0px, transparent 28px, rgba(94, 58, 36, 0.14) 28px, rgba(94, 58, 36, 0.14) 29px); }
.pc-from-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: #5b3822; border-top: 1px solid rgba(94, 58, 36, 0.15); padding-top: 8px; }
.pc-input-name { flex: 1; border: 0; outline: none; background: transparent; font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: #2b1d14; }
.volley-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 14px; margin-bottom: 22px; }
.volley-card { background: #fffdf9; padding: 7px 7px 10px; border-radius: 4px; border: 1px solid rgba(62, 36, 24, 0.12); text-align: left; }
.volley-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; display: block; margin-bottom: 7px; }
.volley-card strong { display: block; font-family: var(--font-serif); font-size: 15px; }
.volley-card span { font-size: 11px; color: var(--muted); }
.share-code-pill { font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; padding: 12px 16px; border-radius: 12px; background: var(--wood-900); color: #f2d99b; text-align: center; margin: 12px 0; }
.share-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.owner-key-box { padding: 14px 16px; border-radius: 14px; background: rgba(242, 217, 155, 0.22); border: 1px solid rgba(176, 128, 48, 0.34); }
.owner-key-box code { display: block; word-break: break-all; font-size: 12px; padding: 8px 10px; background: #fffdf9; border-radius: 8px; margin: 8px 0; }

.petal-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.petal { position: absolute; width: 10px; height: 10px; border-radius: 50% 0 50% 50%; animation: petal-fly 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) forwards; }
@keyframes petal-fly { 0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.3); opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 160; padding: 11px 20px; border-radius: 999px; background: var(--wood-900); color: #fffdf9; font-size: 13px; font-weight: 600; box-shadow: 0 12px 28px rgba(24, 14, 8, 0.34); }

.nav-right { display: inline-flex; align-items: center; gap: 8px; }
.nav-sound-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(62, 36, 24, 0.14);
  background: rgba(255, 253, 249, 0.9); color: var(--wood-900);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.nav-sound-btn:hover { transform: translateY(-1px); background: #fffdf9; }
.nav-sound-btn .ic-snd-off { display: none; }
.nav-sound-btn.is-muted { color: var(--muted); background: rgba(240, 232, 222, 0.85); }
.nav-sound-btn.is-muted .ic-snd-on { display: none; }
.nav-sound-btn.is-muted .ic-snd-off { display: block; }

.wb-key-strip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 10px;
  background: rgba(242, 217, 155, 0.24); border: 1px solid rgba(176, 128, 48, 0.34);
}
.wb-key-label { font-size: 11px; font-weight: 800; color: var(--wood-900); white-space: nowrap; }
.wb-key-val { flex: 1; min-width: 110px; font-size: 11px; background: #fffdf9; padding: 3px 7px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-key-btn { padding: 5px 10px; border-radius: 999px; border: 0; background: var(--wood-900); color: #f7e4b2; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.inapp-warn { margin: 0 0 10px; font-size: 11.5px; line-height: 1.45; color: #7c3b19; background: #fff3dc; border: 1px solid #e6c080; padding: 7px 10px; border-radius: 9px; }
.inapp-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; border-radius: 12px; margin-bottom: 10px;
  background: #fff4df; border: 1px solid #dfb772; color: #5c3318; font-size: 12.5px;
}
.inapp-banner-btn { padding: 5px 12px; border-radius: 999px; border: 0; background: var(--wood-900); color: #f6e1ae; font-size: 12px; font-weight: 700; cursor: pointer; }
.pc-idea-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pc-idea-btn {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(94, 58, 36, 0.22);
  background: rgba(255, 253, 249, 0.9); color: var(--wood-900); font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.pc-idea-btn:hover { background: #fff; border-color: var(--wood-900); }
.pc-char-count { font-size: 11px; color: rgba(94, 58, 36, 0.56); font-weight: 600; }
.pc-anon-row { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #6a5244; cursor: pointer; user-select: none; }
.pc-anon-row input { accent-color: var(--wood-900); width: 14px; height: 14px; }
.sent-success-modal { text-align: center; }
.sent-viral-box {
  padding: 18px 20px; border-radius: 16px; margin: 14px 0 16px;
  background: linear-gradient(145deg, #3c2316, #24140c); color: #fffaf2;
  border: 1px solid rgba(232, 198, 128, 0.4);
}
.sent-viral-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: #f2d99b; margin-bottom: 6px; }
.sent-viral-box h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: #fffdf8; }
.sent-viral-box p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: rgba(255, 247, 234, 0.84); }
.sent-viral-cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: linear-gradient(135deg, #edd08c, #cf9d48); color: #24140c; font-weight: 800; padding: 0 22px; }
.sent-sub-actions { display: flex; justify-content: center; gap: 10px; }
.my-shelves-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(94, 58, 36, 0.14); }
.my-shelves-lbl { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.my-shelves-list { display: flex; flex-wrap: wrap; gap: 6px; }
.my-shelf-pill { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fffdf9; border: 1px solid var(--border-strong); color: var(--ink); text-decoration: none; }
.my-shelf-pill.is-current { background: var(--wood-900); color: #f6e1ae; border-color: var(--wood-900); }
.social-share-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.soc-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none;
  background: rgba(255, 253, 249, 0.94); border: 1px solid rgba(94, 58, 36, 0.2); color: var(--wood-900);
  transition: transform 0.15s ease, background 0.15s ease;
}
.soc-pill:hover { transform: translateY(-1px); background: #fff; border-color: var(--wood-900); }
.inner-comments { margin-top: 28px; }

@media (max-width: 980px) {
  .hero-lower { margin-top: -54px; }
  .hero-lower-grid, .split-uneven, .spread-pair, .compose-grid, .inspect-modal { grid-template-columns: minmax(0, 1fr); }
  .ritual-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .codex-hero { flex-direction: column; align-items: flex-start; }
  .codex-progress-card { width: 100%; }
  .modal-backdrop { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .compose-sheet, .share-modal, .volley-modal { margin: auto; max-width: 100%; }
}
@media (max-width: 640px) {
  .floating-nav-wrap { padding: 10px 10px 0; }
  .floating-nav { padding: 5px 8px; gap: 4px; max-width: 100%; justify-content: space-between; }
  .nav-brand { gap: 6px; padding: 0 2px; }
  .brand-word, .brand-badge { display: none; }
  .nav-links { gap: 2px; }
  .nav-links .nav-item { padding: 6px 8px; font-size: 12.5px; white-space: nowrap; }
  .nav-links .nav-item:nth-child(4) { display: none; }
  .nav-right { gap: 5px; flex-shrink: 0; }
  .nav-sound-btn { width: 30px; height: 30px; }
  .nav-cta { padding: 5px 9px; font-size: 11.5px; gap: 4px; white-space: nowrap; }
  .nav-cta > span:first-child { display: none; }

  .conveyor-zone { height: 295px; }
  .hero-lower { margin-top: -42px; padding: 0 16px 16px; }
  .belt-caption-row { display: none; }
  .hero-lower-grid { gap: 12px; }
  .hero-copy h1 { font-size: 34px; line-height: 1.02; margin-bottom: 6px; }
  .hero-lead { font-size: 13px; line-height: 1.42; margin-bottom: 0; }
  .right-cards-stack { gap: 10px; }
  .rainbow-card { padding: 13px 14px 12px; gap: 8px; }
  .card-prompt-input { font-size: 16px; height: 32px; }
  .perk-row { gap: 5px; }
  .perk-pill { font-size: 10.5px; padding: 3px 8px; }
  .btn-espresso { height: 40px; font-size: 13.5px; }
  .friend-code-card { padding: 12px 13px; gap: 8px; }
  .ritual-grid, .footer-grid { grid-template-columns: 1fr; }
  .prose-card { padding: 24px 18px; }

  .shelf-screen { padding: 66px 10px 18px; min-height: 100svh; }
  .shelf-shell { gap: 10px; }
  .shelf-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 2px; }
  .shelf-kicker { font-size: 9.5px; }
  .shelf-title { font-size: 28px; }
  .shelf-meta-right { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .occupancy-pill, .jump-rug-btn { font-size: 11px; padding: 5px 10px; white-space: nowrap; }
  .wood-cabinet { padding: 10px 8px 12px; border-radius: 16px; }
  .cabinet-crown { gap: 5px; padding: 0; margin-bottom: 8px; }
  .crown-spacer { display: none; }
  .crown-plaque { font-size: 9px; letter-spacing: 0.05em; padding: 4px 8px; white-space: nowrap; }
  .cabinet-pager { gap: 4px; flex-shrink: 0; }
  .cab-page-btn { width: 22px; height: 22px; font-size: 13px; }
  .cab-page-label { font-size: 10px; white-space: nowrap; }
  .cabinet-tiers { gap: 5px; }
  .cabinet-tier { padding: 5px 5px 5px; border-radius: 9px; }
  .tier-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding-bottom: 0; align-items: end; }
  .tier-plank { display: none; }
  .shelf-slot { height: 64px; min-height: 0; padding: 0 1px 16px; justify-content: flex-end; }
  .shelf-slot .sender-tag, .shelf-slot .opened-ribbon-note, .shelf-slot .empty-label, .shelf-slot .private-who, .shelf-slot .private-sub { display: none; }
  .shelf-slot.is-sealed .cube-wrap { width: 46px; height: 46px; margin: 0 auto -3px; overflow: visible; }
  .shelf-slot.is-sealed .cube-wrap svg { width: 46px; height: 46px; display: block; }
  .shelf-slot.is-opened .opened-easel { width: 48px; height: 34px; margin: 0 auto 2px; padding: 2px; border-radius: 3px; }
  .shelf-slot.is-empty .empty-niche { width: 44px; height: 38px; margin: 0 auto 1px; border-radius: 7px; }
  .shelf-slot .empty-plus { font-size: 15px; }
  .shelf-slot.is-private .private-envelope { width: 46px; height: 34px; margin: 0 auto 2px; padding: 0; border-radius: 5px; justify-content: center; }
  .shelf-slot .private-wax { width: 14px; height: 14px; font-size: 8px; margin: 0; }
  .shelf-slot::after {
    content: attr(data-slot);
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    font-size: 8.5px; font-weight: 800; letter-spacing: 0.04em;
    padding: 0 5px; line-height: 13px; border-radius: 3px; white-space: nowrap;
    background: linear-gradient(180deg, #ecd08d, #c69646); color: #2b190d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
  .shelf-slot.is-empty::after { background: rgba(242, 217, 155, 0.22); color: rgba(247, 232, 198, 0.85); }
  .shelf-slot.is-opened::after { background: linear-gradient(180deg, #cde5d5, #94c0a4); color: #193b27; }
  .shelf-slot.is-private::after { background: #d4c4b2; color: #473225; }
  .shelf-dock { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; padding-top: 4px; }
  .shelf-dock .dock-primary, .shelf-dock .dock-btn { height: 38px; padding: 0 14px; font-size: 12.5px; }
  .shelf-dock .friend-banner-note { width: 100%; font-size: 11.5px; padding: 7px 10px; }
  .shelf-dock .dock-subtle-link { font-size: 12px; }

  .rug-stage { padding: 74px 12px 24px; }
  .rug-top-strip { gap: 6px; flex-wrap: wrap; }
  .rug-pill { font-size: 11.5px; padding: 7px 11px; }
  .rug-deck-wrap { padding: 6px 0; gap: 16px; }
  .pf-folio { gap: 6px; }
  .pf-folio-title { font-size: 12.5px; }
  .pf-folio-note, .pf-folio-kicker { display: none; }
  .pf-folio-style { font-size: 10px; }
  .pf-folio-foot { font-size: 9px; }

  .rug-spread-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(66, 44, 32, 0.96); padding: 84px 16px 24px; justify-content: center; overflow-y: auto; gap: 14px; }
  .spread-pair { gap: 12px; }
  .spread-slot-front .postcard-front-card { padding: 8px; }
  .spread-slot:last-child { aspect-ratio: auto; }
  .physical-postcard { height: auto; padding: 14px 15px; transform: none; }
  .pc-top-meta { flex-wrap: wrap; gap: 6px; padding-bottom: 8px; margin-bottom: 9px; }
  .pc-body-grid { grid-template-columns: 1fr; gap: 9px; }
  .pc-divider { height: 1px; width: 100%; background: rgba(94, 58, 36, 0.18); }
  .pc-message { font-size: 15.5px; line-height: 1.48; }
  .pc-signature { font-size: 14.5px; margin-top: 4px; }
  .pc-postage-row { justify-content: flex-start; margin-bottom: 4px; }
  .pc-postmark { width: 54px; height: 54px; }
  .pc-stamp { width: 54px; height: 66px; }
  .pc-address-lines { gap: 6px; }
  .addr-v { font-size: 14.5px; }
  .spread-controls { gap: 7px; padding-bottom: 4px; }
  .spread-controls .rug-pill { font-size: 12px; padding: 7px 12px; }

  #composeBackdrop { align-items: flex-end; justify-content: center; background: rgba(26, 16, 10, 0.24); backdrop-filter: blur(1.5px); padding: 0 12px 12px; }
  .compose-sheet { width: 100%; max-width: 100%; box-sizing: border-box; padding: 13px 14px 14px; border-radius: 18px; margin: 0; overflow: hidden; }
  .compose-sheet .modal-close { top: 10px; right: 10px; width: 30px; height: 30px; }
  .compose-header { margin-bottom: 6px; }
  .compose-slot-badge { font-size: 9px; padding: 2px 8px; margin-bottom: 3px; }
  .compose-heading, .volley-heading { font-size: 18.5px; margin-bottom: 4px; padding-right: 34px; }
  .compose-grid { gap: 8px; width: 100%; }
  .compose-options { gap: 7px; min-width: 0; width: 100%; }
  .compose-card-wrap { min-width: 0; width: 100%; }
  .opt-block { gap: 4px; min-width: 0; }
  .opt-label { font-size: 11px; }
  .opt-hint { display: none; }
  .pull-mode-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; width: 100%; }
  .pull-tab { font-size: 10.5px; padding: 0 4px; height: 32px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .skin-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .skin-swatch { height: 26px; border-radius: 7px; padding: 0; min-width: 0; }
  .skin-ribbon-dot { width: 10px; height: 10px; }
  .classic-picker { grid-template-columns: repeat(4, 1fr); }
  .compose-submit { height: 38px; font-size: 12.5px; width: 100%; }
  .physical-postcard.is-composer { width: 100%; max-width: 100%; box-sizing: border-box; aspect-ratio: auto; height: auto; padding: 10px 11px; }
  .physical-postcard.is-composer .pc-top-meta { padding-bottom: 5px; margin-bottom: 5px; }
  .physical-postcard.is-composer .pc-right-side, .physical-postcard.is-composer .pc-divider { display: none; }
  .pc-input-msg { min-height: 62px; font-size: 14.5px; line-height: 1.4; }
  .pc-from-row { font-size: 13.5px; padding-top: 5px; }
  .pc-input-name { font-size: 13.5px; min-width: 0; }
  .pc-anon-row { font-size: 11px; margin-top: 3px; }
  .reveal-card { grid-template-columns: 104px 1fr; gap: 12px; padding: 14px; max-width: calc(100vw - 24px); }
  .reveal-info h3 { font-size: 20px; }
  .reveal-info p { font-size: 12.5px; line-height: 1.42; }
  .reveal-actions { gap: 6px; }
  .reveal-actions .dock-primary, .reveal-actions .dock-btn { height: 36px; padding: 0 12px; font-size: 12px; }
}

/* ==========================================================================
   4-STEP IPHONE SHOWCASE & FULL-BLEED WALNUT BOTTOM CTA BANNER
   ========================================================================== */
.ritual-phones-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; align-items: start;
}
.ritual-phone-step { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.phone-bezel {
  position: relative; width: 100%; aspect-ratio: 390 / 844;
  padding: 9px; border-radius: 38px;
  background: linear-gradient(145deg, #2d2521 0%, #171210 58%, #2a211c 100%);
  box-shadow: 0 24px 44px rgba(35, 22, 14, 0.22), 0 6px 14px rgba(35, 22, 14, 0.14), inset 0 0 0 1.5px rgba(255, 240, 220, 0.14);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.ritual-phone-step:hover .phone-bezel {
  transform: translateY(-6px);
  box-shadow: 0 32px 56px rgba(35, 22, 14, 0.28), 0 8px 18px rgba(35, 22, 14, 0.16), inset 0 0 0 1.5px rgba(255, 240, 220, 0.2);
}
.phone-island {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 15px; border-radius: 999px; background: #14100e; z-index: 4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fbf4ea;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ritual-step-caption { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.ritual-step-head { display: flex; align-items: center; gap: 8px; }
.ritual-step-num {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 28px; height: 24px; padding: 0 7px; border-radius: 7px;
  background: #fffdf9; border: 1px solid rgba(94, 58, 36, 0.18);
  box-shadow: 0 2px 6px rgba(42, 24, 14, 0.08);
  font-size: 12px; font-weight: 800; color: var(--wood-900); flex-shrink: 0;
}
.ritual-step-num::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: #c96846; }
.ritual-step-caption h3 { margin: 0; font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.ritual-step-caption p { margin: 0; font-size: 13.5px; line-height: 1.56; color: var(--muted); }

.bottom-cta-band {
  position: relative; width: 100%; overflow: hidden; padding: 68px 24px;
  background: radial-gradient(ellipse 64% 80% at 24% 50%, rgba(164, 108, 62, 0.28) 0%, rgba(44, 24, 14, 0) 68%),
              linear-gradient(135deg, #351e12 0%, #22120b 55%, #1a0e08 100%);
  border-top: 1px solid rgba(235, 204, 138, 0.24);
  border-bottom: 1px solid rgba(235, 204, 138, 0.24);
  color: #fffaf2;
}
.bottom-cta-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: center;
}
.bottom-cta-visual { display: flex; justify-content: center; }
.bottom-cta-phone {
  width: 230px; aspect-ratio: 390 / 844; padding: 7px; border-radius: 30px;
  background: linear-gradient(145deg, #4b3120, #1c100a);
  border: 1.5px solid rgba(235, 204, 138, 0.42);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 240, 210, 0.08);
  transform: rotate(-3.5deg); overflow: hidden;
}
.bottom-cta-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 23px; display: block; }
.bottom-cta-copy { display: flex; flex-direction: column; gap: 12px; }
.bottom-cta-kicker { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #f2d99b; }
.bottom-cta-copy h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(36px, 4.2vw, 52px); font-weight: 600; line-height: 1.04; color: #fffdf8; }
.bottom-cta-copy p { margin: 0; font-size: 16px; line-height: 1.56; color: rgba(255, 246, 232, 0.82); max-width: 520px; }
.bottom-cta-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; max-width: 540px; }
.bottom-cta-input {
  flex: 1; min-width: 210px; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(238, 209, 144, 0.36); background: rgba(255, 251, 244, 0.96);
  color: #231b17; font-size: 15px; font-weight: 500; outline: none;
}
.bottom-cta-input:focus { border-color: #f2d99b; box-shadow: 0 0 0 3px rgba(242, 217, 155, 0.24); }
.bottom-cta-btn {
  height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #f3d796 0%, #cf9d48 100%); color: #24140c;
  font-size: 15px; font-weight: 800; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.bottom-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bottom-cta-meta { font-size: 12.5px; color: rgba(242, 217, 155, 0.78); font-weight: 500; margin-top: 2px; }
.bottom-cta-done {
  margin-top: 8px; padding: 14px 16px; border-radius: 14px; max-width: 540px;
  background: rgba(255, 250, 240, 0.1); border: 1px solid rgba(242, 217, 155, 0.36);
  display: flex; flex-direction: column; gap: 10px;
}
.bottom-cta-done-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bottom-cta-code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 800; color: #f6e1ae; letter-spacing: 0.1em; }
.bottom-cta-err { margin: 4px 0 0; font-size: 13px; color: #ffb8a8; }

@media (max-width: 980px) {
  .ritual-phones-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .bottom-cta-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .bottom-cta-copy { align-items: center; }
  .bottom-cta-form { justify-content: center; width: 100%; }
  .bottom-cta-phone { width: 196px; transform: rotate(-2deg); }
}
@media (max-width: 640px) {
  .ritual-phones-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .phone-bezel { padding: 6px; border-radius: 26px; }
  .phone-island { top: 10px; height: 10px; }
  .phone-screen { border-radius: 20px; }
  .ritual-step-caption h3 { font-size: 16.5px; }
  .ritual-step-caption p { font-size: 12px; line-height: 1.46; }
  .bottom-cta-band { padding: 48px 16px; }
  .bottom-cta-form { flex-direction: column; }
  .bottom-cta-input, .bottom-cta-btn { width: 100%; }
}



/* ==========================================================================
   FRIENDS ADVENT CALENDAR LANDING PAGE (/friends-advent-calendar) & SPOTLIGHT
   ========================================================================== */
.advent-page { padding: 102px 20px 64px; max-width: 1180px; margin: 0 auto; }
.advent-hero { margin: 14px 0 28px; }
.advent-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.advent-h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(38px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -0.02em; color: #231b17; margin: 6px 0 12px; font-weight: 600; }
.advent-lead { font-size: 15.5px; line-height: 1.62; color: #5b4c42; margin: 0 0 18px; max-width: 560px; }
.advent-mode-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.advent-mode-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(58, 42, 33, 0.18); background: #fffdf9; color: #4c3b30; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s ease; }
.advent-mode-btn.is-active { background: #3a2317; color: #f6e1ae; border-color: #3a2317; box-shadow: 0 4px 12px rgba(58, 35, 23, 0.22); }
.advent-preview-cabinet { padding: 14px 14px 12px; border-radius: 22px; }
.advent-door-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 10px 4px 8px; }
.advent-door-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 76px; padding: 6px 3px 5px; border-radius: 10px; border: 1px dashed rgba(242, 217, 155, 0.26); background: rgba(25, 13, 8, 0.56); color: #f4dfac; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.advent-door-cell:hover { transform: translateY(-2px); border-color: rgba(242, 217, 155, 0.72); background: rgba(46, 26, 16, 0.78); }
.advent-door-cell.is-filled { border-style: solid; border-color: rgba(226, 189, 114, 0.45); background: rgba(48, 28, 17, 0.75); }
.advent-door-cell.is-today { border-style: solid; border-color: #f4d27d; box-shadow: 0 0 0 2px rgba(244, 210, 125, 0.28); }
.advent-door-cube { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.advent-door-cube .cube-jelly { width: 42px; height: 42px; }
.advent-door-plus { font-size: 16px; line-height: 40px; color: rgba(242, 217, 155, 0.72); font-weight: 600; }
.advent-door-plaque { display: inline-block; width: 100%; text-align: center; padding: 2px 3px; border-radius: 4px; background: linear-gradient(180deg, #e7c882, #c69a4e); color: #27160b; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.advent-door-cell.is-open-door .advent-door-plaque { background: rgba(242, 217, 155, 0.16); color: #e8cfa0; }
.advent-preview-bar { margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: rgba(24, 13, 8, 0.68); border: 1px solid rgba(242, 217, 155, 0.2); color: #f4e6cf; font-size: 12.5px; line-height: 1.45; text-align: center; }
.split-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spot-advent { background: linear-gradient(155deg, #2d3e34 0%, #1d2b24 100%); color: #fdf6ea; border: 1px solid rgba(235, 206, 138, 0.28); }
.spot-advent .spot-kicker { color: #f0d188; }
.spot-advent h2, .spot-advent h3 { color: #fffaf0; }
.spot-advent p { color: rgba(253, 246, 234, 0.84); }
.spot-advent-thumb { width: 100%; height: 146px; object-fit: cover; object-position: center 22%; border-radius: 14px; margin-bottom: 14px; border: 1px solid rgba(242, 217, 155, 0.28); display: block; }
@media (max-width: 960px) {
  .advent-hero-grid { grid-template-columns: 1fr; }
  .split-three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .advent-page { padding: 82px 14px 48px; }
  .advent-door-grid { gap: 5px; }
  .advent-door-cell { min-height: 64px; padding: 4px 2px 4px; }
  .advent-door-cube, .advent-door-cube .cube-jelly { width: 34px; height: 34px; }
  .advent-door-plaque { font-size: 9px; }
}


.advent-callout-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; margin: 0 0 24px; border-radius: 16px; background: linear-gradient(135deg, #2d3e34, #1e2c25); color: #fdf6ea; border: 1px solid rgba(235, 206, 138, 0.34); font-size: 14.5px; }
.advent-callout-bar a { color: #f4d68c; font-weight: 700; text-decoration: none; }
.advent-callout-bar a:hover { text-decoration: underline; }
.prompt-door-tag { display: inline-block; align-self: flex-start; padding: 3px 9px; margin-bottom: 6px; border-radius: 999px; background: #f3e6d3; color: #6a4427; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
@media (max-width: 640px) {
  .floating-nav { gap: 4px; padding: 5px 8px; }
  .nav-links { gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; padding: 6px 8px; font-size: 12px; }
}


@media (min-width: 641px) {
  .floating-nav { max-width: 900px; }
  .nav-item { white-space: nowrap; }
}
.spot-advent-thumb { object-position: center 46%; }



/* ==========================================================================
   ADVENT PAGE VISUAL UPGRADE: LARGER ANIMATED CUBES + COMMON PEEK + CARDS
   ========================================================================== */
@keyframes adventCubeBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4.5px) scale(1.03, 0.98) rotate(-1.5deg); }
}
@keyframes adventBoing {
  0% { transform: scale(1); }
  35% { transform: scale(1.12, 0.88); }
  65% { transform: scale(0.95, 1.08) translateY(-4px); }
  100% { transform: scale(1); }
}
.advent-door-cell { min-height: 92px; padding: 6px 4px 5px; }
.advent-door-cube { width: 58px; height: 58px; animation: adventCubeBob 3.1s ease-in-out infinite; animation-delay: var(--bob-delay, 0s); transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.advent-door-cube .cube-jelly { width: 58px; height: 58px; }
.advent-door-cell:hover .advent-door-cube { animation-play-state: paused; transform: translateY(-5px) scale(1.09, 0.95); }
.advent-door-cell.is-boing .advent-door-cube { animation: adventBoing .42s ease; }
.advent-door-plus { font-size: 18px; line-height: 54px; }
.adv-existing-note { margin: 10px 0 0; font-size: 12.5px; color: #6c5749; }
.adv-existing-note a { color: #3a2317; font-weight: 700; text-decoration: underline; }

.advent-sec { margin: 44px 0; }
.advent-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.advent-sec-head h2, .advent-sec-center h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; color: #231b17; margin: 4px 0 6px; font-weight: 600; }
.advent-sec-sub { font-size: 14.5px; line-height: 1.58; color: #5b4c42; max-width: 680px; margin: 0; }
.advent-sec-center { text-align: center; margin-bottom: 22px; }
.adv-shuffle-btn { flex-shrink: 0; }

.advent-peek-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.adv-peek-card { display: flex; flex-direction: column; background: #fffdf9; border: 1px solid rgba(58, 42, 33, 0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(42, 30, 22, 0.05); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.adv-peek-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(42, 30, 22, 0.1); }
.adv-peek-art { aspect-ratio: 4 / 3; background: #f5ede2; overflow: hidden; padding: 10px; display: flex; align-items: center; justify-content: center; }
.adv-peek-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; box-shadow: 0 4px 12px rgba(35, 25, 18, 0.12); display: block; }
.adv-peek-meta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; }
.adv-peek-title { font-size: 14px; font-weight: 700; color: #231b17; line-height: 1.25; }
.adv-peek-sub { font-size: 12px; color: #7a6558; }
.adv-peek-locked { background: linear-gradient(155deg, #3e2418 0%, #26150d 100%); color: #fdf6ea; border-color: rgba(235, 206, 138, 0.32); }
.adv-peek-locked.is-secret-tease { background: linear-gradient(155deg, #2d3e34 0%, #1b2821 100%); }
.adv-peek-lock-box { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; gap: 5px; border-bottom: 1px dashed rgba(242, 217, 155, 0.22); }
.adv-lock-ico { font-size: 24px; line-height: 1; }
.adv-peek-lock-box strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; color: #f6e1ae; font-weight: 600; }
.adv-peek-lock-box span { font-size: 12px; color: rgba(253, 246, 234, 0.78); }
.adv-peek-locked .adv-peek-title { color: #fffaf0; }
.adv-peek-locked .adv-peek-sub { color: rgba(242, 217, 155, 0.8); }

.advent-steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.adv-step-card { background: #fbf4ef; border: 1px solid rgba(58, 42, 33, 0.09); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.adv-step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #3a2317; color: #f4d68c; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.adv-step-card h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; line-height: 1.15; color: #231b17; margin: 2px 0 0; font-weight: 600; }
.adv-step-card p { font-size: 13.5px; line-height: 1.58; color: #594a40; margin: 0; }
.adv-step-card a { color: #7c4e29; font-weight: 600; }

.advent-samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv-postcard-sample { background: #fbf5ee; border: 1px solid #dfd0c1; border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 24px rgba(42, 30, 22, 0.06); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; position: relative; }
.adv-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px dashed rgba(94, 58, 36, 0.2); padding-bottom: 10px; }
.adv-pc-door { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #7c4e29; }
.adv-pc-stamp { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1.5px dashed rgba(94, 58, 36, 0.42); font-size: 10px; font-weight: 800; color: #6a4427; transform: rotate(-7deg); }
.adv-pc-quote { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.42; color: #261b14; margin: 0; }
.adv-pc-sig { font-size: 13px; font-weight: 700; color: #6b472b; }

.advent-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv-feat-card { background: #fffdf9; border: 1px solid rgba(58, 42, 33, 0.1); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.adv-feat-card.is-walnut { background: linear-gradient(155deg, #472a1c 0%, #2d1910 100%); color: #fdf6ea; border-color: rgba(235, 206, 138, 0.28); }
.adv-feat-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; color: #8c5e35; }
.adv-feat-card.is-walnut .adv-feat-kicker { color: #f0d188; }
.adv-feat-card h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; line-height: 1.15; color: #231b17; margin: 0; font-weight: 600; }
.adv-feat-card.is-walnut h3 { color: #fffaf0; }
.adv-feat-card p { font-size: 14px; line-height: 1.6; color: #594a40; margin: 0; }
.adv-feat-card.is-walnut p { color: rgba(253, 246, 234, 0.85); }
.adv-feat-card.is-walnut code { background: rgba(255, 255, 255, 0.14); color: #f6e1ae; padding: 1px 5px; border-radius: 5px; }
.advent-prose-compact { max-width: 920px; margin: 0 auto; }

@media (max-width: 960px) {
  .advent-peek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advent-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advent-samples-grid, .advent-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .advent-door-cell { min-height: 76px; padding: 5px 2px 4px; }
  .advent-door-cube, .advent-door-cube .cube-jelly { width: 44px; height: 44px; }
  .advent-door-plus { line-height: 42px; }
  .advent-steps-grid { grid-template-columns: 1fr; }
}



/* ==========================================================================
   112 ART POSTCARDS CATALOGUE PAGE (/art-postcards) & MECHANICS TABLE
   ========================================================================== */
.cat-page { padding: 102px 20px 64px; max-width: 1180px; margin: 0 auto; }
.cat-hero { margin-bottom: 34px; }
.cat-jump-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cat-jump-bar a { text-decoration: none; }
.cat-tier-sec { margin: 40px 0; scroll-margin-top: 96px; }
.cat-tier-head { margin-bottom: 18px; }
.cat-tier-head h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; color: #231b17; margin: 8px 0 6px; font-weight: 600; }
.cat-tier-desc { font-size: 14.5px; line-height: 1.6; color: #5b4c42; max-width: 780px; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-card { background: #fffdf9; border: 1px solid rgba(58, 42, 33, 0.1); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(42, 30, 22, 0.045); }
.cat-art { position: relative; aspect-ratio: 4 / 3; background: #f5ede2; padding: 10px; overflow: hidden; }
.cat-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; transition: filter .28s ease, transform .28s ease; }
.cat-art.is-spoiler:not(.is-revealed) img { filter: blur(18px) saturate(0.85) brightness(0.62); transform: scale(1.12); }
.cat-spoiler-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; background: rgba(34, 20, 12, 0.42); color: #fdf6ea; transition: opacity .24s ease; }
.cat-spoiler-veil span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #f6e1ae; }
.cat-reveal-btn { height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(246, 225, 174, 0.55); background: rgba(42, 24, 14, 0.85); color: #fffaf0; font-size: 12px; font-weight: 600; cursor: pointer; }
.cat-reveal-btn:hover { background: #3a2317; border-color: #f6e1ae; }
.cat-art.is-revealed .cat-spoiler-veil { opacity: 0; pointer-events: none; }
.cat-meta { padding: 11px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cat-code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; color: #8a7260; }
.cat-title { font-size: 14.5px; font-weight: 700; color: #231b17; margin: 2px 0 0; line-height: 1.25; }
.cat-style { font-size: 12px; font-weight: 600; color: #7c4e29; }
.cat-note { font-size: 12.5px; line-height: 1.48; color: #5f5046; margin: 3px 0 0; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-page { padding: 82px 14px 48px; } .cat-grid { grid-template-columns: 1fr; } }



/* ==========================================================================
   HOMEPAGE 3-CARD LUXURY TRIPTYCH ALIGNMENT (FOREST / WALNUT / OLD-MONEY INDIGO)
   ========================================================================== */
.split-three { align-items: stretch; }
.split-three .spot-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.split-three .spot-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #f0d491; }
.split-three .spot-card h2 { margin: 0; color: #fffdf9; font-family: var(--font-serif); font-size: clamp(30px, 2.7vw, 38px); line-height: 1.08; font-weight: 600; }
.split-three .spot-card p:not(.spot-kicker) { margin: 0; font-size: 14.5px; line-height: 1.62; color: rgba(253, 246, 236, 0.84); }
.split-three .spot-actions { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
.split-three .spot-cta-brass { width: 100%; justify-content: center; text-align: center; }
.split-three .spot-link-light { display: inline-block; text-align: center; color: #f4d898; font-size: 13.5px; font-weight: 600; text-decoration: none; opacity: 0.92; }
.split-three .spot-link-light:hover { text-decoration: underline; opacity: 1; }
.spot-card-thumb { width: 100%; height: 148px; object-fit: cover; border-radius: 14px; margin-bottom: 4px; border: 1px solid rgba(242, 217, 155, 0.28); display: block; box-shadow: 0 8px 20px rgba(10, 8, 6, 0.28); }
.spot-indigo { background: linear-gradient(155deg, #223452 0%, #162238 100%); color: #fdf6ea; border: 1px solid rgba(235, 206, 138, 0.28); box-shadow: 0 18px 40px rgba(17, 26, 44, 0.22); }
.spot-indigo-thumb { object-position: center 54%; }


.social-share-wrap { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(58, 42, 33, 0.14); display: flex; flex-direction: column; gap: 7px; }
.social-share-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: #7a6456; }
.social-share-row { margin-top: 0; gap: 6px; }
.soc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; height: 30px; font-size: 12px; font-weight: 600; background: #fffdf9; border: 1px solid rgba(58, 42, 33, 0.14); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.soc-pill:hover { transform: translateY(-1px); border-color: rgba(58, 42, 33, 0.32); background: #fff9f0; }
.soc-ic { flex-shrink: 0; display: block; }


@media (min-width: 961px) {
  .hero-lower-grid { align-items: start; }
  .hero-copy { padding-top: 18px; padding-bottom: 0; }
}
.social-share-row { gap: 5px; }
.soc-pill { padding: 0 8px; gap: 4px; height: 28px; font-size: 11px; }
