:root {
  --bg: #f6f1e6;
  --surface: #dfd4be;
  --card: #ffffff;
  --cream: #fffaf0;
  --ink: #1b2821;
  --muted: #53635a;
  --primary: #1f734d;
  --primary-dark: #134d33;
  --accent: #e5b74c;
  --accent-dark: #9c6e14;
  --accent-soft: #fbf0d3;
  --berry: #d63c55;
  --berry-dark: #8e1e31;
  --border: #dfd4be;
  --pine-1: #134d33;
  --pine-2: #0c2219;
  --wood-1: #966236;
  --wood-2: #5b3619;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.22);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.af-body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--berry-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }
button, input, textarea, select { font-family: inherit; font-size: 16px; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.af-skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--card); padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.af-skip:focus { left: 16px; }

.af-wrap {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.af-narrow { max-width: 760px; }

/* Seamless Winter Night Header */
.af-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--pine-2);
  padding-top: env(safe-area-inset-top, 0px);
}
.af-header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 58px;
}
.af-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--card); white-space: nowrap; flex-shrink: 0;
}
.af-brand:hover { color: var(--accent-soft); }
.af-brand .gf-site-icon {
  width: 32px; height: 32px; border-radius: 8px; display: block; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
}
.af-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.af-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.af-nav a {
  text-decoration: none; color: var(--cream); opacity: 0.85; font-weight: 700; font-size: 15px;
  white-space: nowrap; transition: color 0.15s, opacity 0.15s;
}
.af-nav a:hover, .af-nav a[aria-current="page"] { color: var(--accent); opacity: 1; }
.af-nav-support { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.af-ticket-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--berry); color: var(--card); font-size: 12px; font-weight: 800;
}

/* Warm Storybook Typography */
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px;
}
h1 { font-size: 38px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }

.af-kicker {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px;
}
.af-lead { font-size: 17px; color: var(--muted); line-height: 1.62; max-width: 62ch; }
.af-meta { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Tactile 3D-Bevel Holiday Buttons */
.af-btn-primary, .af-btn-secondary, .af-btn-ghost, .af-btn-danger, .af-btn-gold {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 800; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease, background 0.15s ease;
}
.af-btn-primary {
  background: linear-gradient(180deg, var(--berry) 0%, var(--berry-dark) 100%);
  border-color: var(--berry-dark); color: var(--card);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 3px 0 var(--berry-dark), 0 8px 18px rgba(0, 0, 0, 0.22);
}
.af-btn-primary:hover { filter: brightness(1.07); color: var(--card); }
.af-btn-primary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 0 var(--berry-dark); }
.af-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.af-btn-gold {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  border-color: var(--accent-dark); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 3px 0 var(--accent-dark), 0 6px 14px rgba(0, 0, 0, 0.18);
}
.af-btn-gold:hover { filter: brightness(1.04); color: var(--ink); }
.af-btn-gold:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 var(--accent-dark); }

.af-btn-secondary {
  background: linear-gradient(180deg, var(--card), var(--cream));
  color: var(--ink); border-color: var(--border); min-height: 44px; padding: 9px 16px; font-size: 15px;
  box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border), var(--shadow-sm);
}
.af-btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent-dark); color: var(--ink); }
.af-btn-secondary:active { transform: translateY(1px); box-shadow: inset 0 1px 0 var(--card), 0 1px 0 var(--border); }

.af-btn-ghost {
  background: transparent; color: var(--berry-dark); min-height: 36px; padding: 6px 8px;
  font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.af-btn-ghost:hover { color: var(--berry); }

.af-btn-danger {
  background: var(--card); color: var(--berry-dark); border-color: var(--berry);
  min-height: 40px; padding: 8px 14px; font-size: 14px; box-shadow: 0 2px 0 var(--berry);
}
.af-btn-danger:hover { background: var(--cream); }
.af-btn-danger:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--berry); }

.af-btn-ghost-light {
  background: rgba(255, 255, 255, 0.14); color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; min-height: 34px;
}
.af-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.24); }

/* Hero Stage: 100% Infinite-DPI Pure Vector Winter Forest + Twinkling Lights + Snow */
.af-stage {
  position: relative;
  min-height: calc(100svh - 58px);
  display: flex; flex-direction: column; justify-content: flex-start;
  background:
    radial-gradient(2px 2px at 10% 14%, rgba(255, 255, 255, 0.6) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 28% 22%, rgba(255, 255, 255, 0.5) 50%, transparent 55%),
    radial-gradient(2px 2px at 56% 12%, rgba(255, 255, 255, 0.55) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 78% 18%, rgba(255, 255, 255, 0.6) 50%, transparent 55%),
    radial-gradient(2px 2px at 92% 30%, rgba(255, 255, 255, 0.5) 50%, transparent 55%),
    linear-gradient(180deg, var(--pine-1) 0%, var(--pine-2) 72%);
  padding: 54px 0 118px; overflow: hidden;
}
.af-stage-inner { position: relative; z-index: 2; }
.af-hills {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 148px; z-index: 1; pointer-events: none; display: block;
}

/* Draped Twinkling Holiday String Lights */
.af-xlights {
  position: absolute; top: 0; left: 0; width: 100%; height: 46px;
  z-index: 3; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}
.af-xb { animation: af-twinkle 2.6s ease-in-out infinite; }
.af-xb0 { animation-delay: 0s; filter: drop-shadow(0 0 6px var(--berry)); }
.af-xb1 { animation-delay: 0.65s; filter: drop-shadow(0 0 7px var(--accent)); }
.af-xb2 { animation-delay: 1.3s; filter: drop-shadow(0 0 6px var(--primary)); }
.af-xb3 { animation-delay: 1.95s; filter: drop-shadow(0 0 6px var(--card)); }
@keyframes af-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.42; } }

/* Dual-Layer Drifting Snowflakes */
.af-snow { position: absolute; inset: -160px 0 0 0; pointer-events: none; z-index: 1; }
.af-snow-far {
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 12% 18%, var(--card) 55%, transparent 65%),
    radial-gradient(1.8px 1.8px at 34% 46%, var(--accent-soft) 55%, transparent 65%),
    radial-gradient(2px 2px at 58% 22%, var(--card) 55%, transparent 65%),
    radial-gradient(1.5px 1.5px at 78% 64%, var(--card) 55%, transparent 65%),
    radial-gradient(2px 2px at 91% 31%, var(--accent-soft) 55%, transparent 65%),
    radial-gradient(1.8px 1.8px at 22% 82%, var(--card) 55%, transparent 65%);
  background-size: 320px 320px;
  animation: af-snowfall-far 20s linear infinite;
}
.af-snow-near {
  opacity: 0.72;
  background-image:
    radial-gradient(3px 3px at 18% 26%, var(--card) 50%, transparent 65%),
    radial-gradient(2.5px 2.5px at 47% 72%, var(--card) 50%, transparent 65%),
    radial-gradient(3.2px 3.2px at 73% 15%, var(--accent-soft) 50%, transparent 65%),
    radial-gradient(2.5px 2.5px at 88% 58%, var(--card) 50%, transparent 65%);
  background-size: 260px 260px;
  animation: af-snowfall-near 13s linear infinite;
}
@keyframes af-snowfall-far { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, 320px, 0); } }
@keyframes af-snowfall-near { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, 260px, 0); } }
@media (prefers-reduced-motion: reduce) { .af-xb, .af-snow-far, .af-snow-near { animation: none; } }

/* Hero Two-Column Stage Grid */
.af-stage-grid {
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.86fr);
  gap: 28px; align-items: start;
}
.af-cabinet-col, .af-panel-col { min-width: 0; max-width: 100%; }
.af-hero-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; padding: 0 2px;
}
.af-hero-h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 38px;
  color: var(--card); margin: 0 0 4px; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.af-hero-sub {
  font-size: 15px; font-weight: 700; color: var(--accent); margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.af-hero-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.af-cab-pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: rgba(12, 34, 25, 0.65); border: 1px solid rgba(229, 183, 76, 0.55);
  color: var(--accent-soft); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.af-stage-next-wrap { text-align: center; margin-top: 20px; }
.af-stage-next {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(12, 34, 25, 0.6); border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background 0.15s, transform 0.15s;
}
.af-stage-next:hover { background: var(--pine-2); color: var(--accent-soft); transform: translateY(2px); }


/* Handcrafted Walnut-Wood Framed 24-Door Advent Cabinet */
.af-cabinet {
  --cab-bg1: var(--pine-1);
  --cab-bg2: var(--pine-2);
  --cab-frame1: var(--wood-1);
  --cab-frame2: var(--wood-2);
  border-radius: var(--radius-lg); padding: 14px 12px 12px;
  border: 9px solid transparent;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.2px) 0 0 / 6px 6px padding-box,
    radial-gradient(circle at 50% 35%, var(--cab-bg1), var(--cab-bg2)) padding-box,
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 7px, rgba(0, 0, 0, 0.1) 7px 9px, transparent 9px 13px) border-box,
    linear-gradient(135deg, var(--cab-frame1), var(--cab-frame2)) border-box;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 2px 12px rgba(0, 0, 0, 0.52);
  color: var(--cream);
}
.af-cabinet[data-theme="berry"] { --cab-bg1: var(--berry-dark); --cab-bg2: var(--pine-2); }
.af-cabinet[data-theme="birch"] { --cab-bg1: var(--primary); --cab-bg2: var(--pine-2); --cab-frame1: var(--accent-soft); --cab-frame2: var(--wood-1); }
.af-cabinet[data-theme="starry"] { --cab-bg1: var(--ink); --cab-bg2: var(--pine-2); --cab-frame1: var(--border); --cab-frame2: var(--muted); }

/* Multi-Color Fairy-Light Progress Garland */
.af-garland {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3px; position: relative; padding: 2px 4px 10px; margin-bottom: 4px;
}
.af-garland::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px;
  background: rgba(255, 255, 255, 0.25); border-radius: 2px;
}
.af-bulb {
  position: relative; width: 9px; height: 12px; margin-top: 5px;
  border-radius: 45% 45% 50% 50%;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.26);
  transition: background 0.25s, box-shadow 0.25s;
}
.af-bulb::before {
  content: ""; position: absolute; left: 50%; margin-left: -2px; top: -4px;
  width: 4px; height: 4px; border-radius: 1px; background: var(--pine-1);
}
.af-bulb.is-lit:nth-child(4n+1) { background: var(--berry); border-color: var(--cream); box-shadow: 0 0 8px 2px var(--berry); }
.af-bulb.is-lit:nth-child(4n+2) { background: var(--accent); border-color: var(--card); box-shadow: 0 0 8px 2px var(--accent); }
.af-bulb.is-lit:nth-child(4n+3) { background: var(--primary); border-color: var(--cream); box-shadow: 0 0 8px 2px var(--primary); }
.af-bulb.is-lit:nth-child(4n) { background: var(--accent-soft); border-color: var(--card); box-shadow: 0 0 8px 2px var(--accent-soft); }
.af-bulb.is-open { background: var(--accent-soft); border-color: var(--card); box-shadow: 0 0 10px 2px var(--accent); }

/* 24-Door Tactile Envelope Grid (6x4 on both desktop & mobile!) */
.af-door-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.af-door {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 10 / 11; padding: 0; border-radius: 10px;
  background: rgba(0, 0, 0, 0.26); border: 1.5px dashed rgba(251, 240, 211, 0.34);
  color: var(--cream);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.16s ease;
}
.af-door:hover { transform: translateY(-4px) rotate(-1.6deg) scale(1.03); border-color: var(--accent); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.42); z-index: 2; }
.af-door:nth-child(even):hover { transform: translateY(-4px) rotate(1.6deg) scale(1.03); }
.af-door:active { transform: scale(0.94); }
.af-door.is-filled { border: 0; background: transparent; }
.af-door.is-selected { box-shadow: 0 0 0 3px var(--card), 0 8px 18px rgba(0, 0, 0, 0.45); transform: translateY(-3px) rotate(-1.5deg); }
.af-door.is-today { box-shadow: 0 0 0 2.5px var(--accent), 0 0 16px 3px rgba(229, 183, 76, 0.72); animation: af-pulse 1.8s ease-in-out infinite; }
.af-door.is-opened { border: 0; }
@keyframes af-pulse { 50% { box-shadow: 0 0 0 2.5px var(--accent), 0 0 5px 1px rgba(229, 183, 76, 0.35); } }
@media (prefers-reduced-motion: reduce) { .af-door.is-today { animation: none; } }

.af-door-svg { display: block; width: 100%; height: 100%; border-radius: 9px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.32)); }
.af-door-empty-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent-soft); line-height: 1; }
.af-door-empty-cue { font-size: 12px; font-weight: 700; color: var(--cream); opacity: 0.78; margin-top: 2px; }
.af-door-tag {
  position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 1px 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--card), var(--accent-soft)); color: var(--ink);
  font-size: 12px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.42);
}
.af-cab-foot {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px; font-weight: 600; color: var(--cream); opacity: 0.9;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* Warm Cream Card-Stock Right Action Panel — Flush with Walnut Cabinet Top */
.af-panel-col { padding-top: 0; }
.af-panel {
  background: linear-gradient(180deg, var(--card) 0%, var(--cream) 55%, var(--bg) 100%);
  border-radius: var(--radius-lg); padding: 22px 22px 20px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--card), 0 3px 0 var(--border), 0 16px 36px rgba(0, 0, 0, 0.46);
}
.af-welcome-copy { font-size: 17px; line-height: 1.55; color: var(--ink); font-weight: 600; margin: 0 0 14px; }
.af-welcome-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.af-welcome-sub-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
}
.af-trust-row {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 11px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.af-live-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--border);
}
.af-live-env { position: relative; width: 64px; height: 70px; flex-shrink: 0; }
.af-live-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.af-live-meta strong { color: var(--ink); font-size: 14px; }
.af-loading-msg { color: var(--muted); font-size: 15px; margin: 0; }

/* Segmented Mode Toggle */
.af-mode-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); margin-bottom: 14px;
}
.af-mode-tab {
  min-height: 40px; padding: 7px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 800; font-size: 14px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.af-mode-tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--border), var(--shadow-sm); }

/* Form Controls & Lined Stationery Textarea */
.af-field { margin-bottom: 13px; }
.af-label { display: block; font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.af-input, .af-textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.af-input:focus, .af-textarea:focus {
  border-color: var(--accent-dark); outline: none;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(229, 183, 76, 0.35);
}
.af-textarea {
  resize: vertical; min-height: 92px; line-height: 26px;
  background: repeating-linear-gradient(var(--card) 0 25px, var(--surface) 25px 26px);
}
.af-form-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.af-form-err { font-size: 14px; color: var(--berry-dark); font-weight: 700; margin: 8px 0 0; }
.af-form-ok { font-size: 14px; color: var(--primary-dark); font-weight: 700; margin: 8px 0 0; }

/* Tactile Swatch Chips */
.af-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.af-swatch {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 5px 11px; border-radius: 999px;
  border: 1.5px solid var(--border); background: linear-gradient(180deg, var(--card), var(--cream));
  color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border);
}
.af-swatch:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--border); }
.af-swatch.is-active {
  border-color: var(--berry); background: var(--accent-soft); color: var(--ink);
  box-shadow: 0 0 0 2px var(--berry), 0 2px 0 var(--berry-dark);
}
.af-swatch-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.22); flex-shrink: 0; }

.af-divider { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.af-code-inline { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.af-code-inline .af-input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 14px; }
.af-code-inline .af-btn-secondary { min-height: 42px; padding: 8px 14px; font-size: 14px; }

/* Share & Recovery Boxes */
.af-share-box {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 var(--card);
}
.af-share-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.af-code-pill {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 8px;
}
.af-code-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); }
.af-code-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.af-social-code {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.af-social-code-title { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.af-social-code-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.af-social-code-tip { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.af-code-tips {
  margin: 12px 0 0; padding: 10px 14px 10px 28px;
  background: var(--cream); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.55; text-align: left;
}
.af-code-tips li + li { margin-top: 4px; }
.af-code-tips strong { color: var(--ink); }
.af-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9999;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--pine-deep); color: var(--card);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.af-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Scratch-to-Reveal, Welcome Back, Friend Circle & Passphrase */
.af-letter-stage { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.af-letter-stage .af-letter-paper { margin-bottom: 0; }
.af-scratch-overlay {
  position: absolute; inset: 0; z-index: 3; border-radius: 12px; overflow: hidden;
  transition: opacity 0.34s ease, transform 0.34s ease;
}
.af-scratch-overlay.is-revealed { opacity: 0; transform: scale(1.03); pointer-events: none; }
.af-scratch-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.af-scratch-canvas:active { cursor: grabbing; }
.af-scratch-skip {
  position: absolute; right: 10px; bottom: 8px; z-index: 4;
  background: var(--card); color: var(--ink); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.af-welcome-back {
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
}
.af-wb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.af-wb-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pine); }
.af-wb-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.af-wb-row:first-of-type { padding-top: 0; border-top: 0; }
.af-wb-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.af-wb-meta strong { font-size: 15px; color: var(--ink); }
.af-wb-meta span { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.af-wb-actions { display: flex; align-items: center; gap: 6px; }
.af-circle-card {
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
.af-circle-badge {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--pine);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.af-pass-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}

/* Christmas Mini-Games (/games) */
.af-games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .af-games-grid { grid-template-columns: 1fr; } }
.af-game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.af-game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.af-game-icon { font-size: 28px; line-height: 1; }
.af-game-best { font-size: 12.5px; font-weight: 700; color: var(--pine); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.af-game-card h2 { margin: 0; font-size: 22px; }
.af-game-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.af-game-stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; font-size: 15px; color: var(--ink); }
.af-game-canvas { display: block; width: 100%; height: 340px; border-radius: 14px; background: var(--pine-deep); border: 2px solid var(--accent); touch-action: none; cursor: pointer; }
.af-match-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.af-match-tile {
  aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--pine); color: var(--card); font-size: clamp(40px, 9vw, 54px); line-height: 1; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.af-match-grid.is-master .af-match-tile { aspect-ratio: 1.12; font-size: clamp(34px, 7.5vw, 46px); }
.af-match-tile:hover:not(.is-open):not(.is-matched) { transform: translateY(-2px); border-color: var(--accent); }
.af-match-tile.is-open, .af-match-tile.is-matched { background: var(--cream); color: var(--ink); border-color: var(--accent); transform: scale(1.03); }
.af-match-tile.is-matched { opacity: 0.72; transform: scale(0.98); }
.af-scramble-word {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; font-weight: 800;
  letter-spacing: 0.18em; text-align: center; padding: 18px 12px; border-radius: 12px;
  background: var(--cream); border: 1.5px solid var(--accent); color: var(--ink); margin: 12px 0;
}
.af-game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.af-game-tags span {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
}
.af-gm-card { max-width: 540px; padding-top: 18px; }
.af-gm-top-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 6px; }
.af-gm-mute {
  border: 1px solid var(--border); background: var(--cream); color: var(--ink);
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.af-gm-x { position: static; }
.af-gm-h2 { margin: 0 0 8px; font-size: 22px; }
.af-gm-hud {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 8px; font-weight: 800; font-size: 15px; color: var(--ink);
}
.af-gm-combo {
  background: var(--accent-soft); color: var(--pine); border: 1px solid var(--accent);
  border-radius: 999px; padding: 2px 11px; font-size: 13px; font-weight: 800;
}
.af-gm-bar { height: 7px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); overflow: hidden; margin-bottom: 10px; }
.af-gm-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.14s ease; }
.af-gm-tabs { display: flex; gap: 6px; }
.af-gm-res { text-align: center; padding: 10px 4px 4px; }
.af-gm-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--pine); color: var(--accent); border: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 34px; font-weight: 700; margin-bottom: 6px;
}
.af-gm-rk-lbl { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pine); }
.af-gm-score-big { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
.af-word-slots, .af-word-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 10px 0; }
.af-wtile {
  min-width: 40px; height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 19px; font-weight: 800;
  cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease;
}
.af-wtile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); }
.af-wtile.is-used { opacity: 0.25; cursor: default; }
.af-wslot { background: var(--cream); border-style: dashed; }
.af-wslot.is-filled { background: var(--accent-soft); border-style: solid; border-color: var(--accent); }

/* Editorial Guide Highlights & Comparison Table */
.af-sec-highlights { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.af-hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .af-hl-grid { grid-template-columns: 1fr; } }
.af-hl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.af-hl-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine); color: var(--accent);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 12px;
}
.af-hl-card h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); line-height: 1.25; }
.af-hl-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.af-cmp-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.af-cmp-row {
  display: grid; grid-template-columns: 1.1fr 1.35fr 1.15fr; gap: 14px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.45;
}
.af-cmp-row.af-cmp-head {
  border-top: 0; background: var(--pine-deep); color: var(--card);
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
}
.af-cmp-row strong { color: var(--ink); font-weight: 700; }
.af-cmp-yes { color: var(--pine); font-weight: 700; }
.af-cmp-no { color: var(--muted); }
@media (max-width: 640px) {
  .af-cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .af-cmp-row.af-cmp-head { display: none; }
  .af-cmp-yes::before { content: "Digital: "; font-weight: 800; color: var(--ink); }
  .af-cmp-no::before { content: "Paper: "; font-weight: 700; color: var(--muted); }
}

/* Flagship Friend Composer: Visual Wrap Cards, Seal Chips, Idea Chips & Selected Ring */
.af-door.is-selected {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent), 0 10px 22px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}
.af-fc-head { font-size: 15.5px; line-height: 1.45; color: var(--ink); margin-bottom: 12px; }
.af-fc-head strong { font-weight: 800; color: var(--pine-deep); }
.af-fc-head span { color: var(--muted); }
.af-seal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.af-seal-chip {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--cream); color: var(--ink);
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.af-seal-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.af-seal-chip.is-active { border-color: var(--crimson); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); transform: scale(1.08); }
.af-wrap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.af-wrap-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 7px 6px 8px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--cream); color: var(--ink);
  cursor: pointer; transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.af-wrap-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.af-wrap-card.is-active { border-color: var(--pine); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.af-wrap-thumb { width: 46px; height: 50px; pointer-events: none; }
.af-wrap-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; text-align: center; }
.af-idea-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.af-idea-chip {
  text-align: left; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.af-idea-chip:hover { background: var(--accent-soft); border-color: var(--accent); }
.af-chk-row {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; cursor: pointer;
}
.af-chk-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pine); flex-shrink: 0; }
.af-chk-viral { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 8px 10px; }

/* Ideas Filter Bar & Contact Quick Strip */
.af-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.af-filter-pill {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.af-filter-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.af-filter-pill.is-active { background: var(--pine); color: var(--card); border-color: var(--pine); }
.af-quick-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px;
}
@media (max-width: 680px) { .af-quick-strip { grid-template-columns: 1fr; } }
.af-quick-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.af-quick-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.af-quick-tile strong { font-size: 15px; color: var(--pine); }
.af-quick-tile span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.af-today-banner {
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
}
.af-today-banner strong { display: block; font-size: 15px; color: var(--pine-deep); }
.af-keep-tip {
  font-size: 12.5px; color: var(--muted); background: var(--cream);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  margin: 10px 0 0; line-height: 1.45;
}
.af-peers-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 14px;
}
.af-peers-card strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.af-peer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; margin-top: 6px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--border);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13.5px;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.af-peer-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.af-peer-go { color: var(--pine); font-size: 12.5px; font-weight: 800; }
.af-btn-stack { display: flex; flex-direction: column; gap: 10px; }
.af-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.af-btn-row > * { flex: 1 1 120px; }

.af-owner-box { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.af-owner-box summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink); }
.af-owner-box p { font-size: 13px; color: var(--ink); margin: 8px 0; }
.af-pass-code {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--card); border: 1px solid var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 14px;
}
.af-panel-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

.af-char-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.af-inspire-btn {
  border: 1px solid var(--border); background: var(--accent-soft); color: var(--ink);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800;
}
.af-inspire-btn:hover { background: var(--accent); }

/* Letter Reveal Modal & Unseal Animation */
.af-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.af-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 34, 25, 0.78); backdrop-filter: blur(5px); }
.af-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--card), var(--cream));
  border-radius: var(--radius-lg); border: 2px solid var(--accent);
  padding: 28px 24px 24px; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  animation: af-unseal 0.22s ease-out;
}
@keyframes af-unseal { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.af-modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.af-modal-close:hover { background: var(--surface); }

.af-letter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 38px; }
.af-wax-badge {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--berry), var(--berry-dark));
  border: 2px solid var(--accent); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.af-wax-pop { animation: af-burst 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes af-burst {
  0% { transform: scale(0.55) rotate(-18deg); box-shadow: 0 0 0 0 var(--accent); }
  70% { box-shadow: 0 0 0 14px rgba(229, 183, 76, 0); }
  100% { transform: scale(1) rotate(0deg); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
}
.af-letter-day { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); }
.af-letter-from { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); margin: 0; }
.af-letter-paper {
  background: repeating-linear-gradient(var(--cream) 0 29px, var(--surface) 29px 30px);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; font-size: 18px; line-height: 30px; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; margin-bottom: 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); transform: rotate(-0.4deg);
}
.af-my-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.af-my-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
}
.af-my-item a { font-weight: 800; text-decoration: none; color: var(--ink); }
.af-my-item span { font-size: 13px; color: var(--muted); display: block; }

/* Content Sections */
.af-sec { padding: 56px 0; }
.af-sec-head { max-width: 700px; margin-bottom: 32px; }
.af-sec-sub { font-size: 17px; color: var(--muted); margin: 0; }

.af-sec-steps { background: var(--bg); border-bottom: 1px solid var(--border); }
.af-how-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.af-how-card { display: flex; flex-direction: column; align-items: center; text-align: left; }
.af-phone {
  position: relative; width: 100%; max-width: 242px; margin: 0 auto 18px;
  padding: 10px 8px; border-radius: 30px;
  background: var(--pine-2); border: 2px solid var(--pine-1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.af-phone::before {
  content: ""; display: block; width: 46px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); margin: 0 auto 8px;
}
.af-how-card:hover .af-phone { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(0, 0, 0, 0.26); }
.af-phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.af-how-txt { width: 100%; }
.af-how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px;
  background: var(--berry); color: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1;
}
.af-how-txt h3 { font-size: 20px; margin-bottom: 6px; }
.af-how-txt p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.55; }

.af-sec-modes { background: var(--cream); }
.af-modes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.af-mode-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.af-mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.af-btn-pine {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--primary-dark), 0 6px 14px rgba(0, 0, 0, 0.16);
}
.af-btn-pine:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 var(--primary-dark); }

.af-mode-featured { border-color: var(--border); border-top: 4px solid var(--primary); box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border), var(--shadow-sm); }
.af-mode-media { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.af-mode-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.af-mode-badge { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.af-check-list { list-style: none; margin: 14px 0 20px; padding: 0; color: var(--muted); }
.af-check-list li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15px; }
.af-check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }
.af-mode-cta { margin-top: auto; padding-top: 4px; }

.af-sec-features { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.af-split-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 40px; align-items: start; }
.af-inline-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.af-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.af-feature-item {
  padding: 22px; border-radius: var(--radius-lg); background: var(--card);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.af-feature-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.af-feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px;
  background: var(--cream); border: 1.5px solid var(--border);
  box-shadow: inset 0 1px 0 var(--card), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.af-feature-item h3 { font-size: 19px; margin-bottom: 8px; }
.af-feature-item p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.58; }

.af-sec-prose { background: var(--cream); }
.af-prose-card {
  max-width: 820px; margin: 0 auto; padding: 38px 42px;
  background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--card), 0 2px 0 var(--border), var(--shadow-sm);
}

/* Clean Centered Editorial Column (Unified Reading Axis) */
.af-wrap-text { max-width: 760px; }
.af-kicker-dash {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--primary-dark); margin-bottom: 10px;
}
.af-kicker-dash::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-dark); }

/* Refined "The Tradition" Section */
.af-sec-tradition { background: var(--cream); padding: 72px 0; }
.af-trad-prose { max-width: none; }
.af-trad-prose h2 {
  font-size: 36px; margin: 0 0 18px; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.af-trad-prose > p:first-of-type {
  font-size: 17.5px; line-height: 1.7; color: var(--ink); margin-bottom: 16px;
}
.af-trad-prose h3 {
  font-size: 23px; margin: 40px 0 14px; padding-top: 32px; line-height: 1.24; letter-spacing: -0.015em;
  color: var(--ink); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
}
.af-trad-prose h3::before {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='3' y='8' width='30' height='21' rx='4' fill='%23fffaf0' stroke='%239c6e14' stroke-width='2'/%3E%3Cpath d='M4.5 10L18 20L31.5 10' fill='none' stroke='%231f734d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='20' r='4.8' fill='%23d63c55' stroke='%23e5b74c' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.af-trad-prose h3:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='5' y='13' width='26' height='18' rx='3' fill='%23d63c55'/%3E%3Crect x='3.5' y='9.5' width='29' height='5.5' rx='2' fill='%238e1e31'/%3E%3Crect x='15.8' y='9.5' width='4.4' height='21.5' fill='%23e5b74c'/%3E%3Cpath d='M18 9.5c-2.5-5.5-9-5.5-7.8-1 1 2.2 5.4 2.2 7.8 1zm0 0c2.5-5.5 9-5.5 7.8-1-1 2.2-5.4 2.2-7.8 1z' fill='%23e5b74c'/%3E%3C/svg%3E");
}
.af-trad-prose h3:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='6' y='5' width='24' height='26' rx='3.5' fill='%23fffaf0' stroke='%239c6e14' stroke-width='2'/%3E%3Cpath d='M11 13h14M11 18.5h14M11 24h9' stroke='%231f734d' stroke-width='2.1' stroke-linecap='round'/%3E%3Ccircle cx='25' cy='25' r='5' fill='%23d63c55' stroke='%23e5b74c' stroke-width='1.4'/%3E%3C/svg%3E");
}
.af-trad-prose p { color: var(--muted); font-size: 16px; line-height: 1.74; margin: 0 0 16px; text-wrap: pretty; }
.af-trad-prose p:last-child { margin-bottom: 0; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.af-trad-prose strong { color: var(--ink); font-weight: 600; }
.af-trad-prose a {
  color: var(--primary-dark); font-weight: 600;
  text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.af-trad-prose a:hover { color: var(--berry-dark); text-decoration-color: var(--berry); }
.af-trad-prose ul { list-style: none; padding-left: 0; margin: 0 0 20px; }
.af-trad-prose ul li {
  position: relative; padding-left: 28px; margin-bottom: 13px;
  font-size: 16px; line-height: 1.7; color: var(--muted);
}
.af-trad-prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.7 6 6.5.6-4.9 4.3 1.5 6.4L12 16.5l-5.8 3.3 1.5-6.4-4.9-4.3 6.5-.6z' fill='%23e5b74c' stroke='%239c6e14' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.af-trad-prose ol { list-style: none; counter-reset: af-step; padding-left: 0; margin: 0 0 20px; }
.af-trad-prose ol li {
  position: relative; counter-increment: af-step; padding-left: 40px; margin-bottom: 15px;
  font-size: 16px; line-height: 1.7; color: var(--muted);
}
.af-trad-prose ol li::before {
  content: counter(af-step); position: absolute; left: 0; top: 2px;
  min-width: 26px; height: 24px; padding: 0 6px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--card), 0 1px 2px rgba(27, 40, 33, 0.06);
  color: var(--primary-dark); font-family: var(--font-display); font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Subpages, Code, Prompts, Prose, FAQ, Tickets, Footer */
.af-sub-hero { background: var(--cream); border-bottom: 1px solid var(--border); padding: 36px 0 40px; }
.af-sub-hero-compact { padding: 28px 0 32px; }
.af-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.af-crumb a { text-decoration: none; color: var(--muted); }
.af-crumb a:hover { color: var(--berry-dark); }
.af-hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.af-guide-banner { margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface); }
.af-guide-banner img { display: block; width: 100%; height: auto; }

.af-code-hero { max-width: 680px; }
.af-code-card { margin-top: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: 0 2px 0 var(--border); }
.af-code-row { display: flex; gap: 10px; align-items: stretch; }
.af-input-code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: lowercase; }

.af-sec-prompts { background: var(--bg); }
.af-prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.af-prompt-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 2px 0 var(--border);
}
.af-prompt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.af-prompt-day { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--primary-dark); }
.af-prompt-tag { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.af-prompt-text { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.af-copy-prompt {
  align-self: flex-start; min-height: 36px; padding: 6px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 800; box-shadow: 0 2px 0 var(--border);
}
.af-copy-prompt:hover { background: var(--accent-soft); border-color: var(--accent-dark); }

.af-prose { max-width: 72ch; }
.af-prose h2 { margin-top: 32px; font-size: 30px; }
.af-prose h2:first-child { margin-top: 0; }
.af-prose h3 { margin-top: 24px; font-size: 22px; }
.af-prose ul, .af-prose ol { padding-left: 22px; margin: 0 0 18px; }
.af-prose li { margin-bottom: 8px; }

.af-sec-faq { background: var(--bg); border-top: 1px solid var(--border); padding: 72px 0; }
.af-faq-wrap { max-width: 760px; }
.af-faq-head { margin-bottom: 28px; }
.af-faq-head h2 { margin: 0; font-size: 36px; letter-spacing: -0.02em; line-height: 1.15; }

.af-faq-list { display: flex; flex-direction: column; gap: 11px; }
.af-faq-item {
  background: linear-gradient(180deg, var(--card) 0%, var(--cream) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden;
  box-shadow: inset 0 1px 0 var(--card), 0 1px 3px rgba(27, 40, 33, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.af-faq-item:hover {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 4px 14px rgba(27, 40, 33, 0.06);
}
.af-faq-item[open] {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(19, 77, 51, 0.07), inset 0 1px 0 var(--card);
}
.af-faq-item summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16.5px; line-height: 1.45; letter-spacing: -0.008em; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.15s ease;
}
.af-faq-item summary:hover { color: var(--primary-dark); }
.af-faq-item summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.af-faq-item summary::-webkit-details-marker { display: none; }
.af-faq-item summary::after {
  content: "+"; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--berry-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; flex-shrink: 0;
}
.af-faq-item[open] summary::after { content: "\2212"; background: var(--berry); color: var(--card); }
.af-faq-clean summary::after { display: none; }
.af-faq-arrow {
  flex: none; color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s ease;
}
.af-faq-clean summary:hover .af-faq-arrow { color: var(--primary-dark); }
.af-faq-clean[open] .af-faq-arrow { transform: rotate(180deg); color: var(--berry); }
.af-faq-item p {
  margin: 0; padding: 0 22px 20px;
  color: var(--muted); font-size: 15.5px; line-height: 1.72; max-width: 68ch;
  text-wrap: pretty;
}
.af-faq-item[open] p { animation: af-faq-reveal 0.2s ease-out; }
@keyframes af-faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .af-faq-item[open] p { animation: none; } }

.af-faq-foot {
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14.5px; color: var(--muted); line-height: 1.6;
}
.af-faq-foot a {
  color: var(--primary-dark); font-weight: 600;
  text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.af-faq-foot a:hover { color: var(--berry-dark); text-decoration-color: var(--berry); }

/* Full-Bleed Starry Bottom CTA Band (Seamless Twilight Transition to Footer) */
.af-sec-cta {
  position: relative; overflow: hidden; padding: 72px 0 68px;
  box-shadow: inset 0 1px 0 rgba(229, 183, 76, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(2px 2px at 11% 22%, rgba(255, 255, 255, 0.56) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 34% 16%, rgba(255, 250, 240, 0.45) 50%, transparent 55%),
    radial-gradient(2px 2px at 67% 20%, rgba(255, 255, 255, 0.5) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 87% 66%, rgba(255, 250, 240, 0.48) 50%, transparent 55%),
    radial-gradient(2px 2px at 22% 80%, rgba(229, 183, 76, 0.48) 50%, transparent 55%),
    radial-gradient(circle at 28% 50%, rgba(31, 115, 77, 0.38) 0%, transparent 52%),
    linear-gradient(180deg, var(--pine-1) 0%, var(--pine-2) 100%);
  color: var(--cream);
}
.af-cta-grid {
  max-width: 900px;
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.af-mini-cab {
  padding: 14px 12px 12px; border-radius: 18px;
  border: 7px solid transparent;
  background:
    radial-gradient(circle at 50% 22%, var(--pine-1), var(--pine-2)) padding-box,
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 6px, rgba(0, 0, 0, 0.12) 6px 8px, transparent 8px 12px) border-box,
    linear-gradient(135deg, var(--wood-1), var(--wood-2)) border-box;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.46), inset 0 2px 10px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.4deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.af-mini-cab:hover { transform: rotate(-1.2deg) translateY(-2px); }
.af-mini-bulbs { display: flex; justify-content: space-between; padding: 0 6px 8px; }
.af-mini-bulbs i { display: block; width: 7px; height: 9px; border-radius: 45% 45% 50% 50%; }
.af-mini-bulbs .b0 { background: var(--berry); box-shadow: 0 0 8px var(--berry); }
.af-mini-bulbs .b1 { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.af-mini-bulbs .b2 { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.af-mini-bulbs .b3 { background: var(--accent-soft); box-shadow: 0 0 8px var(--accent-soft); }
.af-mini-head {
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--accent-soft); margin-bottom: 10px; letter-spacing: 0.01em;
}
.af-mini-doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.af-mini-doors i {
  display: block; aspect-ratio: 10 / 11; border-radius: 5px; position: relative; overflow: hidden;
  background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.14) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 4px rgba(0, 0, 0, 0.36);
}
.af-mini-doors i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.af-mini-doors i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 1.5px rgba(229, 183, 76, 0.55);
}
.af-mini-doors .c-pine { background-color: var(--primary); }
.af-mini-doors .c-berry { background-color: var(--berry); }
.af-mini-doors .c-gold { background-color: var(--accent); }
.af-mini-doors .c-blue { background-color: var(--berry-dark); }
.af-mini-doors .c-frost { background-color: var(--wood-1); }
.af-mini-doors .c-holly { background-color: var(--cream); }
.af-mini-doors .c-holly::before { border-bottom-color: rgba(156, 110, 20, 0.22); }
.af-mini-doors .c-holly::after { background: var(--berry); }
.af-mini-doors .is-glow { box-shadow: 0 0 0 2px var(--accent), 0 0 14px var(--accent); }

.af-cta-copy h2 { color: var(--card); font-size: 38px; letter-spacing: -0.02em; line-height: 1.14; margin: 0 0 12px; text-wrap: balance; }
.af-cta-copy > p { color: rgba(255, 250, 240, 0.84); font-size: 16.5px; line-height: 1.65; max-width: 44ch; margin: 0 0 24px; text-wrap: pretty; }
.af-cta-action-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.af-cta-action-row .af-btn-primary:hover { transform: translateY(-1px); }
.af-cta-text-link {
  font-size: 14.5px; font-weight: 500; color: rgba(255, 250, 240, 0.78);
  text-decoration: none; transition: color 0.15s ease;
}
.af-cta-text-link span {
  color: var(--accent-soft); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(229, 183, 76, 0.55); text-underline-offset: 3px;
}
.af-cta-text-link:hover, .af-cta-text-link:hover span { color: var(--card); text-decoration-color: var(--accent); }
.af-cta-meta {
  margin: 16px 0 0 !important; font-size: 13.5px !important;
  color: rgba(251, 240, 211, 0.68) !important; font-weight: 500; letter-spacing: 0.01em;
}

.af-bottom-cta {
  margin-top: 44px; padding: 36px 28px; text-align: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 0%, var(--pine-1), var(--pine-2));
  color: var(--cream); border: 2px solid var(--accent); box-shadow: var(--shadow-md);
}
.af-bottom-cta h3 { color: var(--card); font-size: 30px; margin-bottom: 8px; }
.af-bottom-cta p { color: var(--accent-soft); margin: 0 auto 22px; max-width: 60ch; font-size: 16px; }

.af-sec-ticket { background: var(--bg); }
.af-ticket-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 2px 0 var(--border); }
.af-ticket-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.af-tickets-list { margin-top: 24px; }
.gf-ticket { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: var(--cream); }
.gf-ticket-subject { font-weight: 800; font-size: 16px; }
.gf-ticket-status { font-size: 12px; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; }
.gf-ticket-msg { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); }
.gf-ticket-who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.gf-ticket-reply { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

.af-footer { background: var(--pine-2); color: var(--cream); padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.af-footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.af-footer-brand { max-width: 340px; }
.af-footer .af-brand { color: var(--card); }
.af-footer-tag { color: var(--cream); opacity: 0.82; font-size: 15px; margin: 10px 0 0; }
.af-footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.af-footer-col { display: flex; flex-direction: column; gap: 8px; }
.af-footer-col strong { color: var(--accent-soft); font-size: 14px; margin-bottom: 4px; }
.af-footer-col a { color: var(--cream); opacity: 0.88; text-decoration: none; font-size: 15px; font-weight: 600; }
.af-footer-col a:hover { color: var(--accent-soft); opacity: 1; text-decoration: underline; }
.af-footer-bottom { padding-top: 20px; font-size: 13px; color: var(--cream); opacity: 0.72; }

.af-404 { text-align: left; padding: 24px 0; }

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .af-stage-grid, .af-modes-grid, .af-split-layout, .af-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .af-how-grid, .af-prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-cta-art { max-width: 260px; margin: 0 auto; }
  .af-cta-copy { text-align: center; }
  .af-cta-copy > p { margin-left: auto; margin-right: auto; }
  .af-cta-action-row { justify-content: center; gap: 14px; }
}
@media (max-width: 640px) {
  .af-wrap {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .af-header-in { min-height: 50px; gap: 6px; }
  .af-brand { gap: 7px; }
  .af-brand .gf-site-icon { width: 24px; height: 24px; }
  .af-brand-text { font-size: 15px; }
  .af-nav { gap: 8px; }
  .af-nav a { font-size: 12.5px; }
  .af-nav a[href="/#how-it-works"], .af-nav a[href="/help"], .af-nav-support { display: none; }
  .af-stage { min-height: calc(100svh - 50px); padding: 42px 0 92px; justify-content: flex-start; }
  .af-hills { height: 96px; }
  .af-hero-bar { margin-bottom: 8px; }
  .af-hero-h1 { font-size: 25px; margin-bottom: 2px; }
  .af-hero-sub { font-size: 12px; }
  .af-cabinet { padding: 7px 6px; border-width: 6px; border-radius: 14px; width: 100%; }
  .af-door-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .af-door { border-radius: 6px; min-width: 0; }
  .af-door-svg { border-radius: 5px; }
  .af-door-empty-num { font-size: 15px; }
  .af-door-empty-cue { display: none; }
  .af-door-tag { font-size: 12px; padding: 1px 2px; left: 1px; right: 1px; bottom: 1px; }
  .af-panel { padding: 15px 14px 13px; width: 100%; }
  .af-welcome-copy { font-size: 15px; line-height: 1.48; margin-bottom: 10px; }
  .af-welcome-note { display: none; }
  .af-btn-primary { min-height: 46px; width: 100%; font-size: 15px; padding: 10px 14px; }
  .af-welcome-sub-actions { gap: 4px; margin-top: 10px; padding-top: 8px; }
  .af-btn-ghost { font-size: 13px; padding: 4px 2px; }
  .af-stage-next-wrap { margin-top: 12px; }
  h2 { font-size: 26px; }
  .af-how-grid, .af-feature-grid, .af-prompt-grid { grid-template-columns: 1fr; }
  .af-sec-tradition, .af-sec-faq { padding: 48px 0; }
  .af-trad-prose h2, .af-faq-head h2 { font-size: 28px; }
  .af-trad-prose > p:first-of-type { font-size: 16.5px; }
  .af-trad-prose h3 { font-size: 20px; margin-top: 32px; padding-top: 24px; align-items: flex-start; }
  .af-trad-prose h3::before { margin-top: 2px; }
  .af-faq-item summary { padding: 16px 16px; font-size: 15.5px; }
  .af-faq-item p { padding: 0 16px 18px; font-size: 15px; }
  .af-cta-copy h2 { font-size: 30px; }
  .af-cta-action-row { flex-direction: column; gap: 12px; }
  .af-sec-cta { padding: 52px 0; }
  .af-code-row, .af-code-inline { flex-direction: column; }
  .af-sec { padding: 38px 0; }
  .af-prose-card { padding: 24px 18px; }
  .af-footer-links { gap: 28px; }
}


/* ==========================================================================
   Unified Payment, Snowflakes Wallet, Glowing Door Wraps & Golden Calendar
   ========================================================================== */

.af-nav-wallet {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(229, 183, 76, 0.2); border: 1px solid rgba(229, 183, 76, 0.55);
  color: var(--accent-soft) !important; opacity: 1 !important;
  font-size: 13px !important; font-weight: 800; line-height: 1.2;
}
.af-nav-wallet:hover { background: rgba(229, 183, 76, 0.34); color: var(--card) !important; }
.af-btn-flake-light {
  background: rgba(229, 183, 76, 0.22); border-color: rgba(251, 240, 211, 0.55);
  color: var(--accent-soft);
}
.af-btn-flake-light:hover { background: rgba(229, 183, 76, 0.36); color: var(--card); }

.af-pay-banner {
  padding: 10px 0; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.af-pay-banner-ok { background: var(--primary-dark); color: var(--cream); }
.af-pay-banner-pend { background: var(--accent-soft); color: var(--ink); }
.af-pay-banner-pend .af-pay-banner-link { color: var(--berry-dark); }
.af-pay-banner-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.af-pay-banner-link { color: var(--accent-soft); font-weight: 800; text-decoration: underline; white-space: nowrap; }
.af-pay-banner-link:hover { color: var(--card); }
.af-pay-paused-msg {
  padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1.5px solid var(--accent-dark); color: var(--ink); font-weight: 600; text-align: center; margin-bottom: 20px;
}

.af-cabinet[data-gold="1"] {
  --cab-bg1: var(--accent-dark);
  --cab-bg2: var(--wood-2);
  --cab-frame1: var(--accent-soft);
  --cab-frame2: var(--accent-dark);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.56), 0 0 36px rgba(229, 183, 76, 0.42), inset 0 2px 14px rgba(251, 240, 211, 0.25);
}
.af-gold-banner {
  margin: 0 0 8px; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent) 48%, var(--accent-dark));
  color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em;
  text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.af-cabinet[data-gold="1"] .af-bulb.is-lit {
  background: var(--accent-soft); border-color: var(--card); box-shadow: 0 0 10px 2px var(--accent);
}
.af-gold-card {
  margin: 12px 0; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cream) 0%, var(--accent-soft) 100%);
  border: 1.5px solid var(--accent-dark); box-shadow: 0 4px 14px rgba(156, 110, 20, 0.14);
}
.af-gold-card.is-active {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  border-color: var(--accent-dark);
}
.af-gold-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.af-door.is-wrap-gold {
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 14px 2px rgba(229, 183, 76, 0.6);
}
.af-door.is-wrap-frost {
  box-shadow: 0 0 0 1.5px var(--cream), 0 0 14px 2px rgba(255, 255, 255, 0.55);
}
.af-door.is-wrap-aurora {
  box-shadow: 0 0 0 1.5px var(--accent-soft), 0 0 16px 2px rgba(31, 115, 77, 0.65);
  animation: af-aurora-glow 3.4s ease-in-out infinite;
}
@keyframes af-aurora-glow {
  50% { box-shadow: 0 0 0 1.5px var(--accent), 0 0 18px 3px rgba(229, 183, 76, 0.58); }
}
@media (prefers-reduced-motion: reduce) {
  .af-door.is-wrap-aurora { animation: none; }
}

.af-prem-wrap-box {
  margin-top: 10px; padding: 10px; border-radius: 12px;
  background: linear-gradient(180deg, var(--cream), var(--accent-soft));
  border: 1.5px solid var(--accent);
}
.af-prem-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.af-prem-shop-link {
  background: var(--card); border: 1px solid var(--accent-dark); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 800; color: var(--accent-dark);
}
.af-prem-shop-link:hover { background: var(--accent-soft); }
.af-wrap-card-prem { position: relative; }
.af-wrap-cost-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 7px; border-radius: 999px;
  background: var(--pine-2); color: var(--accent-soft); font-size: 12px; font-weight: 800; line-height: 1.3;
  white-space: nowrap;
}
.af-wrap-card-prem .af-wrap-cost-pill {
  position: absolute; top: 4px; right: 4px; z-index: 2;
}
.af-swatch-prem {
  border-color: var(--accent-dark); background: var(--cream);
}

.af-pay-modal-card { max-width: 720px; width: min(94vw, 720px); }
.af-pay-head h2 { margin: 0 0 8px; font-size: 28px; }
.af-pay-bal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--border);
  margin-bottom: 14px; font-size: 14.5px;
}
.af-pay-reason {
  padding: 11px 14px; border-radius: 12px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1.5px solid var(--accent-dark); color: var(--ink); font-size: 14px; font-weight: 600;
}
.af-pack-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
}
.af-pack-card {
  display: flex; flex-direction: column; padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--border);
}
.af-pack-card.is-featured {
  border-color: var(--berry); background: linear-gradient(180deg, var(--card), var(--cream));
  box-shadow: 0 8px 22px rgba(142, 30, 49, 0.12);
}
.af-pack-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.af-pack-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--primary-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.af-pack-tag.is-pop { background: var(--berry); color: var(--card); }
.af-pack-disc {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  background: var(--primary-dark); color: var(--cream); font-size: 12px; font-weight: 800;
}
.af-pack-credits { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.af-pack-prices { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; }
.af-pack-price { font-size: 26px; font-weight: 800; color: var(--ink); }
.af-pack-orig { font-size: 14px; color: var(--muted); }
.af-pack-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; flex: 1; }
.af-buy-slot { display: flex; flex-direction: column; gap: 8px; }
.af-buy-btn { width: 100%; min-height: 44px; padding: 9px 14px; font-size: 14.5px; }
.af-pay-trust { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 12px; }
.af-restore-box {
  padding: 10px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--border); font-size: 13.5px;
}
.af-restore-box summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.af-restore-form { display: flex; gap: 8px; margin-top: 10px; }
.af-restore-form .af-input { flex: 1; min-width: 0; }

.af-sub-hero-pricing { padding-bottom: 34px; }
.af-kicker-gold { color: var(--accent-soft); }
.af-wallet-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.12); border: 1px solid rgba(251, 240, 211, 0.3);
  color: var(--cream);
}
.af-wallet-strip-bal { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; }
.af-wallet-flake { font-size: 20px; color: var(--accent); }
.af-wallet-strip-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.af-btn-sm { min-height: 38px !important; padding: 6px 14px !important; font-size: 13.5px !important; }

.af-pricing-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch;
}
.af-price-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg);
  background: var(--card); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.af-price-card.is-featured {
  border-color: var(--berry); border-width: 2px;
  background: linear-gradient(180deg, var(--card) 0%, var(--cream) 100%);
  box-shadow: 0 14px 34px rgba(142, 30, 49, 0.14);
}
.af-price-head h3 { font-size: 26px; margin: 8px 0 6px; }
.af-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.af-price-amt { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1; }
.af-price-once { font-size: 13px; color: var(--muted); font-weight: 700; }
.af-price-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.af-price-card .af-check-list { flex: 1; margin-bottom: 18px; }
.af-pricing-trust {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--muted);
}

.af-unlock-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.af-unlock-card {
  padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1.5px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start;
}
.af-unlock-card.is-gold-feature {
  background: linear-gradient(155deg, var(--cream), var(--accent-soft)); border-color: var(--accent-dark);
}
.af-unlock-preview {
  width: 84px; height: 92px; border-radius: 10px; margin-bottom: 14px;
}
.af-unlock-gold-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: var(--ink);
  font-weight: 800; font-size: 14px;
}
.af-unlock-slot-badge { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--cream); }
.af-unlock-cost {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--pine-2); color: var(--accent-soft); font-size: 12.5px; font-weight: 800; margin-bottom: 8px;
}
.af-unlock-card h3 { font-size: 20px; margin-bottom: 6px; }
.af-unlock-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

.af-acct-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.af-acct-bal { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-bottom: 6px; }
.af-acct-bal span { font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--muted); }
.af-acct-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.af-acct-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.af-acct-section:last-of-type { border-bottom: 0; }
.af-acct-section h2 { font-size: 22px; margin-bottom: 6px; }
.af-table-wrap { overflow-x: auto; margin-top: 10px; }
.af-acct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.af-acct-table th, .af-acct-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.af-acct-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.af-acct-table td.is-pos { color: var(--primary-dark); font-weight: 800; }
.af-acct-table td.is-neg { color: var(--berry-dark); font-weight: 800; }
.af-status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize;
  background: var(--bg); color: var(--ink);
}
.af-status-pill.is-paid { background: var(--primary-dark); color: var(--cream); }
.af-status-pill.is-refunded { background: var(--berry-dark); color: var(--card); }
.af-status-pill.is-pending { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 820px) {
  .af-pack-grid, .af-pricing-grid, .af-unlock-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .af-restore-form { flex-direction: column; }
  .af-nav-wallet { padding: 3px 8px; font-size: 12px !important; }
}


body.af-pay-paused [data-gf-if-open="pay"] { display: none !important; }
.af-coming-pill { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 9px 14px; border-radius: var(--radius); background: var(--bg); border: 1.5px dashed var(--border); color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; }


/* 2026-12-03: mobile pass — nav scrolls instead of clipping, sub-hero H1 capped */
@media (max-width: 820px) {
  .af-header-in { gap: 8px; }
  .af-nav { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .af-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .af-sub-hero h1 { font-size: clamp(1.7rem, 7.2vw, 2.1rem); line-height: 1.18; }
}


/* 2026-12-03: narrow screens — let the header wrap instead of clipping, secondary CTA as text link */
@media (max-width: 820px) {
  .af-header-in { flex-wrap: wrap; row-gap: 6px; }
  .af-nav { flex-wrap: wrap; justify-content: flex-start; gap: 4px 14px; font-size: 13.5px; line-height: 1.5; width: 100%; }
  .af-nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
  .af-hero-cta-row .af-btn-secondary {
    background: transparent; border: 0; box-shadow: none;
    padding: 6px 0; min-height: 0; color: var(--berry-dark);
    text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
  }
}


/* 2026-12-03: 审稿第三轮收尾 — 手机导航行距与热区、次按钮降级为中性色 */
@media (max-width: 820px) {
  .af-nav { padding-block: 8px; }
  .af-nav a { padding-block: 4px; }
}
@media (max-width: 600px) {
  .af-hero-cta-row .af-btn-secondary {
    color: #444;
    text-decoration-color: rgb(68 68 68 / 0.45);
    text-underline-offset: 4px;
  }
}

/* 2026-12-03: 手机端导航收成 Menu 抽屉（details/summary），宽屏仍是横排一列 */
.af-mnav { display: contents; }
.af-mnav-toggle { display: none; }
@media (max-width: 820px) {
  .af-header-in { gap: 10px; }
  .af-mnav { display: block; margin-left: auto; position: relative; }
  .af-mnav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.34);
    color: var(--cream); font-size: 14px; font-weight: 800;
    cursor: pointer; list-style: none; user-select: none;
  }
  .af-mnav-toggle::-webkit-details-marker { display: none; }
  .af-mnav-toggle::after {
    content: ""; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .af-mnav[open] .af-mnav-toggle { background: var(--accent); border-color: var(--accent-dark); color: var(--ink); }
  .af-mnav[open] .af-mnav-toggle::after { transform: translateY(2px) rotate(225deg); }
  .af-mnav .af-nav {
    position: absolute; top: calc(100% + 10px); right: 0;
    display: none; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap; gap: 2px;
    width: 232px; max-width: calc(100vw - 40px);
    padding: 10px; border-radius: 16px;
    background: var(--pine-2); border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: visible; z-index: 60;
  }
  .af-mnav[open] .af-nav { display: flex; }
  .af-mnav .af-nav a {
    padding: 11px 12px; border-radius: 10px; font-size: 15px; line-height: 1.3;
    color: var(--cream); opacity: 1;
  }
  .af-mnav .af-nav a:hover, .af-mnav .af-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: var(--accent); }
  .af-mnav .af-nav .af-nav-support { justify-content: space-between; }
}

/* 2026-12-03 第二轮设计审稿修正：桌面首屏留白、手机字号与日历边距、Menu 按钮对比度 */
@media (min-width: 821px) {
  .af-stage { padding-bottom: 72px; }
  .af-hills { height: 118px; }
  .af-stage-next-wrap { margin-top: 14px; }
}
.af-trust-row { margin-top: 16px; gap: 9px 16px; }
.af-panel .af-welcome-copy { margin-bottom: 16px; }
@media (max-width: 600px) {
  .af-hero-sub { font-size: 14px; line-height: 1.45; text-wrap: pretty; }
  .af-cabinet { margin-inline: 8px; }
  .af-stage { padding-top: 44px; }
  .af-mnav-toggle {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* 2026-12-03 第三轮：桌面舞台不再撑满整屏（消除第二屏空留白），手机端细节收紧 */
@media (min-width: 821px) {
  .af-stage { min-height: 0; padding-bottom: 56px; }
}
@media (max-width: 820px) {
  .af-hero-sub { font-size: 14.5px; line-height: 1.45; margin-top: 10px; }
  .af-cabinet { margin-inline: 12px; }
  .af-panel { padding: 18px; border-radius: 16px; }
  .af-mnav-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    color: var(--cream);
  }
}

/* 2026-12-03 第四轮：手机日历防横向溢出；导航里的 Contact 不再像主 CTA */
@media (max-width: 600px) {
  .af-stage-inner { overflow-x: hidden; }
  .af-door-grid { gap: 6px; }
  .af-cabinet { overflow-x: hidden; }
  .af-hero-sub { margin-bottom: 20px; }
}
.af-nav .af-nav-support {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 6px 12px;
}
