/* ==========================================================================
   SUWON ALPACA — KITSCH POP GOURMET ZINE STYLESHEET
   Uses tokens from tokens.css
   ========================================================================== */

@import url('./tokens.css');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--paper, #fff8eb);
  color: var(--ink, #1b1a17);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: var(--font-display, 'Noto Sans KR', sans-serif);
  font-size: var(--step-0, clamp(0.98rem, 0.95rem + 0.18vw, 1.06rem));
  line-height: var(--leading-normal, 1.7);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 230, 109, 0.22), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(255, 133, 161, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #fff8eb 55%, #fff4e2 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Korean body copy stays on the word, never mid-syllable */
p, li, dd, dt, figcaption, blockquote,
.card-desc-text, .hero-desc, .discover-desc, .card-meta-row {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:is(button, a, input, select, textarea) {
  touch-action: manipulation;
}

/* Subtle Paper Texture Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper-tint, #f6efe0);
  border-left: var(--line-base, 2px solid #1b1a17);
}
::-webkit-scrollbar-thumb {
  background: var(--butter, #ffe66d);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--coral, #ff5e36);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--butter, #ffe66d) var(--paper-tint, #f6efe0);
}

a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus Visibility */
:focus-visible {
  outline: 3px solid var(--coral, #ff5e36);
  outline-offset: 3px;
}

/* --- Container Shell --- */
.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  background: rgba(255, 253, 247, 0.88);
  border-left: var(--line-thick, 3px solid #1b1a17);
  border-right: var(--line-thick, 3px solid #1b1a17);
  position: relative;
  box-shadow: 0 0 50px rgba(27, 26, 23, 0.08);
}

/* ==========================================================================
   1. TICKER MARQUEE (TOP LIVE RETRO BANNER)
   ========================================================================== */
.top-marquee-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink, #1b1a17);
  color: var(--paper, #fff8eb);
  border-bottom: var(--line-base, 2px solid #1b1a17);
  font-family: var(--font-display);
  font-size: var(--step--1, 0.85rem);
  font-weight: var(--weight-strong, 700);
  letter-spacing: 0.01em;
  padding: 0.45rem 0;
  user-select: none;
}

.top-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.top-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.marquee-badge {
  background: var(--coral, #ff5e36);
  color: var(--ink, #1b1a17);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   2. TOP NAV RIBBON
   ========================================================================== */
.top-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: var(--line-base, 2px solid #1b1a17);
  background: var(--butter, #ffe66d);
  font-weight: 900;
}

.ribbon-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-0, 1rem);
  letter-spacing: 0;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 0;
}

.ribbon-brand-name {
  font-size: var(--step-0, 1rem);
  line-height: 1.2;
}

.ribbon-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--step-0, 1rem);
  color: var(--coral-deep, #b8350f);
  text-shadow: 1px 1px 0 rgba(27, 26, 23, 0.35);
}

.ribbon-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ribbon-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  background: var(--paper-card, #fffdf7);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), box-shadow var(--duration-fast, 150ms);
}

.ribbon-pill-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  background: var(--pink-soft, #ffe2e8);
}

.badge-count {
  background: var(--coral, #ff5e36);
  color: var(--ink, #1b1a17);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill, 9999px);
}

/* ==========================================================================
   3. HERO SECTION (KITSCH ZINE COVER)
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3.5rem);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  background: var(--paper, #fff8eb);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.5rem);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 230, 109, 0.42), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 133, 161, 0.3), transparent 50%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.97), rgba(221, 247, 234, 0.6));
  z-index: 0;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-copy, .hero-art-wrapper {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  font-weight: 900;
  font-size: var(--step--1, 0.85rem);
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
  transform: rotate(-1.5deg);
  margin-bottom: var(--space-xs, 0.75rem);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-5, clamp(2.15rem, 1.45rem + 3.1vw, 4.3rem));
  font-weight: 800;
  line-height: var(--leading-tight, 1.12);
  letter-spacing: -0.02em;
  word-break: keep-all;
  margin-bottom: var(--space-sm, 1rem);
}

.hero-title .title-line {
  display: block;
}

.hero-title .highlight-box {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0.03em 0.24em;
  background: var(--butter, #ffe66d);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  box-shadow: 3px 3px 0 var(--ink, #1b1a17);
  transform: rotate(-1.2deg);
  margin: 0 0.05em;
}

.hero-title .highlight-box::after {
  display: none;
}

.hero-title .kitsch-script {
  font-family: var(--font-script);
  font-size: 0.8em;
  color: var(--coral-deep, #b8350f);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 1.5px 1.5px 0 rgba(27, 26, 23, 0.35);
  display: inline-block;
  transform: rotate(-2deg);
  margin-left: 0.15em;
}

.hero-desc {
  max-width: var(--measure, 34rem);
  font-size: var(--step-0, 1.05rem);
  font-weight: var(--weight-medium, 500);
  line-height: var(--leading-normal, 1.7);
  word-break: keep-all;
  color: rgba(27, 26, 23, 0.88);
  margin-bottom: var(--space-md, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--space-lg, 1.8rem);
}

/* Button System (Neo-Brutalist & Tactile) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  color: var(--ink, #1b1a17);
  font-weight: 900;
  font-size: var(--step-0, 1rem);
  line-height: 1.15;
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  transition:
    transform var(--duration-fast, 150ms) var(--ease-spring),
    box-shadow var(--duration-fast, 150ms),
    background var(--duration-fast, 150ms);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg, 8px 8px 0 #1b1a17);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1b1a17;
}

.btn-primary {
  background: var(--coral-deep, #b8350f);
  color: var(--paper-card, #fffdf7);
}
.btn-primary:hover {
  background: #9c2c0a;
}

.btn-roulette {
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
}
.btn-roulette:hover {
  background: #ffd633;
}

.btn-mint {
  background: var(--mint, #52de97);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe66d 0%, #ffc837 100%);
  color: var(--ink, #1b1a17);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fff085 0%, #ffb703 100%);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg, 8px 8px 0 #1b1a17);
}

/* Low-emphasis tertiary action — keeps hierarchy against the two primary CTAs */
.btn-ghost {
  background: transparent;
  border-color: rgba(27, 26, 23, 0.35);
  box-shadow: none;
  color: rgba(27, 26, 23, 0.82);
  font-weight: 700;
  font-size: var(--step--1);
}
.btn-ghost:hover {
  background: var(--paper-card, #fffdf7);
  border-color: var(--ink, #1b1a17);
  box-shadow: var(--shadow-xs);
  transform: translate(-1px, -1px);
}
.btn-ghost:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.hero-actions-primary {
  margin-bottom: 0.6rem;
}
.hero-actions-secondary {
  margin-bottom: var(--space-lg, 1.8rem);
}
.hero-actions-secondary .btn {
  padding: 0.5rem 1rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: min(100%, 700px);
}

.stat-box {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  background: rgba(255, 253, 247, 0.95);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
  transition: transform var(--duration-fast, 150ms) var(--ease-spring);
}

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

.stat-box strong {
  display: block;
  font-size: var(--step-2, 1.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink, #1b1a17);
}

.stat-box span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--step--2, 0.75rem);
  font-weight: var(--weight-strong, 700);
  letter-spacing: 0;
  color: rgba(27, 26, 23, 0.72);
}

/* Hero Mascot Art & 3D Three.js Interactive Stage */
.hero-art-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: clamp(480px, 48vw, 560px);
  width: 100%;
}

.hero-three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 48vw, 560px);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}

.hero-three-canvas:active {
  cursor: grabbing;
}

.hero-3d-tag {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 3px 3px 0 var(--ink, #1b1a17);
  user-select: none;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  animation: tag-pulse 2.8s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-3px) scale(1.03);
  }
}

.hero-art-wrapper.texture-loaded .hero-mascot-img {
  opacity: 0;
  pointer-events: none;
}

.hero-mascot-img {
  width: min(100%, 540px);
  height: auto;
  filter: drop-shadow(0 22px 20px rgba(27, 26, 23, 0.18));
  transform: rotate(1.5deg);
  animation: mascot-float 6s ease-in-out infinite;
  transition: transform var(--duration-normal, 260ms) var(--ease-spring), filter var(--duration-normal, 260ms);
  cursor: pointer;
}

.hero-mascot-img:hover {
  filter: drop-shadow(0 28px 24px rgba(255, 94, 54, 0.3));
}

.hero-mascot-img.is-jumping {
  animation: mascot-jump 0.65s var(--ease-spring) !important;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}

@keyframes mascot-jump {
  0% { transform: scale(1) translateY(0); }
  25% { transform: scale(0.9, 1.15) translateY(-30px) rotate(4deg); }
  55% { transform: scale(1.1, 0.95) translateY(0) rotate(-3deg); }
  75% { transform: scale(0.98, 1.02) translateY(-10px); }
  100% { transform: scale(1) translateY(0) rotate(1.5deg); }
}

.kitsch-badge {
  position: absolute;
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  padding: 0.65rem 1.05rem;
  font-weight: 900;
  font-size: var(--step--1, 0.85rem);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  user-select: none;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.kitsch-badge.b-one {
  top: 4%;
  right: 5%;
  background: var(--mint, #52de97);
  transform: rotate(-6deg);
  animation: badge-bob-1 4.8s ease-in-out infinite;
}

.kitsch-badge.b-two {
  bottom: 7%;
  right: 5%;
  background: var(--butter, #ffe66d);
  transform: rotate(5deg);
  animation: badge-bob-2 3.9s ease-in-out infinite 0.6s;
}

.kitsch-badge.b-three {
  top: 26%;
  right: 2%;
  background: var(--lavender, #d6c7ff);
  transform: rotate(4deg);
  animation: badge-bob-3 4.4s ease-in-out infinite 1.2s;
}

@keyframes badge-bob-1 {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes badge-bob-2 {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}
@keyframes badge-bob-3 {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

/* ==========================================================================
   4. ALPACAS RECOMMENDATION LOUNGE (AI SECTION)
   ========================================================================== */
.ai-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  background: var(--paper-card, #fffdf7);
  position: relative;
}

.ai-aside-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  background: linear-gradient(135deg, var(--pink-soft, #ffe2e8), var(--lavender, #d6c7ff));
  padding: 1.5rem;
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  overflow: hidden;
  text-align: center;
}

.ai-aside-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(27, 26, 23, 0.25);
  border-radius: var(--radius-md, 20px);
  pointer-events: none;
}

.ai-aside-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 250px);
  height: auto;
  filter: drop-shadow(0 14px 12px rgba(27, 26, 23, 0.16));
  transition: transform var(--duration-normal, 260ms) var(--ease-spring);
}

.ai-aside-card:hover img {
  transform: scale(1.05) rotate(2deg);
}

.ai-aside-tag {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  background: var(--paper-card, #fffdf7);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.35rem 0.85rem;
  font-weight: 900;
  font-size: var(--step--2, 0.75rem);
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
}

.ai-main-card {
  min-width: 0;
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  background: linear-gradient(135deg, #fff3b3 0%, var(--butter, #ffe66d) 100%);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg, 8px 8px 0 #1b1a17);
}

.ai-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  margin-bottom: 1.25rem;
}

.ai-title-wrap strong {
  display: block;
  font-size: var(--step-3, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ai-title-wrap span {
  font-size: var(--step--1, 0.85rem);
  font-weight: 800;
  color: rgba(27, 26, 23, 0.75);
}

.ai-header-row .script-tag {
  font-family: var(--font-script);
  font-size: var(--step-2, 1.5rem);
  color: var(--coral-deep, #b8350f);
  text-shadow: 1.5px 1.5px 0 var(--ink);
  white-space: nowrap;
}

.ai-input-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: end;
  background: var(--paper-card, #fffdf7);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
}

.ai-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.6rem 0;
  font-size: var(--step-1, 1.2rem);
  font-weight: 900;
  outline: none;
  letter-spacing: -0.02em;
}

.ai-search-input::placeholder {
  color: rgba(27, 26, 23, 0.4);
  font-weight: 700;
}

.ai-go-btn {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm, 12px);
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  box-shadow: 3px 3px 0 var(--coral, #ff5e36);
}
.ai-go-btn:hover {
  background: var(--coral, #ff5e36);
  color: var(--ink, #1b1a17);
}

.ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  padding: 0.55rem 1rem;
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms);
}

.quick-chip:hover {
  transform: translateY(-2px);
  background: var(--coral-deep, #b8350f);
  color: var(--paper-card, #fffdf7);
}

.ai-result-box {
  display: none;
  margin-top: 1.5rem;
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  background: var(--paper-card, #fffdf7);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  overflow: hidden;
}

.ai-result-box.show {
  display: block;
  animation: pop-up 0.3s var(--ease-spring);
}

.ai-loading-box, .ai-err-box, .ai-intro-banner {
  padding: 1rem 1.25rem;
  border-bottom: var(--line-base, 2px solid #1b1a17);
  font-weight: 900;
}

.ai-intro-banner {
  background: var(--lavender, #d6c7ff);
  font-size: var(--step-0, 1rem);
}

.ai-err-box {
  background: #ffe4e4;
  color: #a81c1c;
}

.ai-picks-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 253, 247, 0.6);
}

.ai-pick-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--paper-card, #ffffff);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  box-shadow: var(--shadow-md, 5px 5px 0 #1b1a17);
  align-items: center;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), box-shadow var(--duration-fast, 150ms);
}

.ai-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 7px 7px 0 #1b1a17);
}

.ai-pick-media {
  display: block;
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  min-height: 140px;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 14px);
  overflow: hidden;
  background: linear-gradient(110deg, #f5efe6 8%, #fff8eb 18%, #f5efe6 33%);
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
}

.ai-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ai-pick-media:hover img {
  transform: scale(1.05);
}

.ai-pick-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.ai-pick-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.ai-pick-rank-pill {
  display: inline-flex;
  align-items: center;
  background: var(--coral, #ff5e36);
  color: #ffffff;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 #1b1a17;
}

.ai-pick-cat-pill {
  display: inline-flex;
  align-items: center;
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 #1b1a17;
}

.ai-pick-area-pill {
  display: inline-flex;
  align-items: center;
  background: var(--mint, #4ecdc4);
  color: var(--ink, #1b1a17);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 #1b1a17;
}

.ai-pick-title {
  font-size: var(--step-2, 1.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink, #1b1a17);
  margin: 0;
  word-break: keep-all;
}

.ai-pick-title:hover {
  color: var(--coral-deep, #b8350f);
}

.ai-pick-rating-row {
  font-size: 0.82rem;
  font-weight: 800;
  color: #6b5c43;
}

.ai-pick-reason {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: #2b2722;
  background: #fff8eb;
  border-left: 3.5px solid var(--accent, #ff5e36);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin: 0.2rem 0;
  word-break: keep-all;
}

.ai-pick-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.ai-btn-main {
  width: 100%;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  padding: 0.6rem 1rem !important;
  justify-content: center;
}

.ai-btn-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.ai-btn-subgrid .btn {
  font-size: 0.76rem !important;
  padding: 0.45rem 0.3rem !important;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Mobile responsive layout for AI cards */
@media (max-width: 640px) {
  .ai-picks-list {
    padding: 0.85rem;
    gap: 1rem;
  }
  .ai-pick-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }
  .ai-pick-media {
    aspect-ratio: 16/9;
    max-height: 170px;
  }
  .ai-pick-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   5. DISCOVER & RESTAURANT LIST SECTION
   ========================================================================== */
.discover-section {
  position: relative;
  background: var(--paper, #fff8eb);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
}

.discover-banner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3.5rem);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  background: linear-gradient(120deg, var(--mint, #52de97), #b8f2d5);
}

.discover-title {
  font-size: var(--step-4, clamp(1.55rem, 1.15rem + 1.9vw, 3.2rem));
  font-weight: 800;
  line-height: var(--leading-tight, 1.15);
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.discover-title .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ink, #1b1a17);
  text-shadow: 1.5px 1.5px 0 rgba(27, 26, 23, 0.4);
}

.discover-desc {
  margin-top: 0.75rem;
  max-width: var(--measure, 34rem);
  font-weight: var(--weight-medium, 500);
  font-size: var(--step-0, 1.05rem);
  line-height: var(--leading-normal, 1.7);
  word-break: keep-all;
}

.discover-banner-art {
  width: 100%;
  max-width: 320px;
  justify-self: end;
  filter: drop-shadow(0 12px 10px rgba(27, 26, 23, 0.16));
}

/* Sticky Filter & Search Toolbar */
.sticky-filter-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 235, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  box-shadow: 0 4px 15px rgba(27, 26, 23, 0.06);
}

/* Mobile-only "more filters" expander. Desktop always shows the filters. */
.filter-toggle-btn {
  display: none;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem clamp(1rem, 3vw, 2.5rem);
  background: var(--paper-cream, #fbf5e6);
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  font-weight: var(--weight-strong, 700);
  font-size: var(--step--1, 0.88rem);
  color: rgba(27, 26, 23, 0.82);
}
.filter-toggle-caret {
  transition: transform var(--duration-fast, 150ms) var(--ease-smooth);
}
.filter-toggle-btn[aria-expanded="true"] .filter-toggle-caret {
  transform: rotate(180deg);
}
.filter-more {
  display: block;
}

/* District (Gu) Filter Row */
.district-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.75rem, 2.5vw, 2rem);
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  background: var(--butter, #ffe66d);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.district-bar::-webkit-scrollbar { display: none; }

.district-label {
  font-size: var(--step--1, 0.82rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.district-tabs {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.district-tab-btn {
  padding: 0.45rem 0.9rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 #1b1a17;
  white-space: nowrap;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring);
}

.district-tab-btn:hover {
  transform: translateY(-2px);
}

.district-tab-btn.active {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  box-shadow: 2px 2px 0 var(--coral, #ff5e36);
}

/* Theme Filter Row */
.theme-bar {
  padding: 0.6rem clamp(0.75rem, 2.5vw, 2rem);
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.theme-bar::-webkit-scrollbar { display: none; }

.theme-filter-list {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  min-width: max-content;
  align-items: center;
}

.theme-filter-item {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  padding: 0.5rem 0.95rem;
  font-weight: 900;
  font-size: 0.84rem;
  box-shadow: 2px 2px 0 #1b1a17;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms);
}

.theme-filter-item:hover {
  transform: translateY(-2px);
}

.theme-filter-item.active {
  background: var(--coral-deep, #b8350f);
  color: var(--paper-card, #fffdf7);
  box-shadow: 3px 3px 0 var(--ink, #1b1a17);
}

/* Spatial Zone Filter Bar (8대 권역 + 수원 광역생활권) */
.zone-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.75rem, 2.5vw, 2rem);
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  background: #f4faea;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.zone-filter-bar::-webkit-scrollbar { display: none; }

.zone-filter-label {
  font-size: var(--step--1, 0.82rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #2e5a1c;
  flex-shrink: 0;
}

.zone-filter-chips {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.zone-filter-chip {
  padding: 0.45rem 0.9rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 #1b1a17;
  white-space: nowrap;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms), box-shadow var(--duration-fast, 150ms);
  cursor: pointer;
  color: #1b1a17;
}

.zone-filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #1b1a17;
}

.zone-filter-chip.active {
  background: var(--ink, #1b1a17);
  color: #ffe66d;
  box-shadow: 2px 2px 0 var(--mint, #4ecdc4);
}

.card-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #f1f8e9;
  border: 1px solid #7cb342;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2e5a1c;
}

/* Badge Filter Bar (HOT! / NEW! / CLASSIC!) */
.badge-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.75rem, 2.5vw, 2rem);
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  background: #fffaf0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.badge-filter-bar::-webkit-scrollbar { display: none; }

.badge-filter-label {
  font-size: var(--step--1, 0.82rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.badge-filter-chips {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.badge-filter-chip {
  padding: 0.45rem 0.95rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 2px 2px 0 #1b1a17;
  white-space: nowrap;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms), box-shadow var(--duration-fast, 150ms);
  cursor: pointer;
}

.badge-filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #1b1a17;
}

.badge-filter-chip.active {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  box-shadow: 2px 2px 0 var(--coral, #ff5e36);
}

.badge-filter-chip.chip-hot.active {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: var(--ink, #1b1a17);
  border-color: #1b1a17;
  box-shadow: 2px 2px 0 #1b1a17;
}

.badge-filter-chip.chip-new.active {
  background: linear-gradient(135deg, #00d2ff, #00f2fe);
  color: #042940;
  border-color: #1b1a17;
  box-shadow: 2px 2px 0 #1b1a17;
}

.badge-filter-chip.chip-classic.active {
  background: linear-gradient(135deg, #ffe66d, #ffd32a);
  color: #1b1a17;
  border-color: #1b1a17;
  box-shadow: 2px 2px 0 #ff5e36;
}

/* Secondary Controls Row (Count, Search, Sort, Reset) */
.toolbar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  font-weight: 900;
}

.toolbar-status {
  font-size: var(--step--1, 0.88rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-badge {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.78rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.search-box-wrap {
  position: relative;
  min-width: 200px;
}

.input-mini-search {
  width: 100%;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  background: var(--paper-card, #fffdf7);
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
  outline: none;
  box-shadow: 2px 2px 0 rgba(27, 26, 23, 0.15);
}
.input-mini-search:focus {
  border-color: var(--coral, #ff5e36);
}

.search-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1.5px solid #1b1a17;
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  box-shadow: 1px 1px 0 #1b1a17;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms);
}
.search-clear-btn:hover {
  background: var(--coral, #ff5e36);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
}
.search-clear-btn:active {
  transform: translateY(-50%) scale(0.92);
}
.search-clear-btn[hidden] {
  display: none !important;
}

.select-sort {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  background: var(--paper-card, #fffdf7);
  padding: 0.55rem 0.85rem;
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
  outline: none;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(27, 26, 23, 0.15);
}

.btn-reset {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  background: var(--butter, #ffe66d);
  padding: 0.55rem 0.9rem;
  font-size: var(--step--1, 0.82rem);
  font-weight: 900;
  box-shadow: 2px 2px 0 #1b1a17;
}
.btn-reset:hover {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
}

/* Category Chips Ticker */
.category-ticker-bar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.5rem clamp(0.75rem, 2.5vw, 2rem) 0.65rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-ticker-bar::-webkit-scrollbar { display: none; }

.cat-chip {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(27, 26, 23, 0.15);
  transition: transform var(--duration-fast, 150ms);
}
.cat-chip:hover {
  transform: translateY(-1px);
}
.cat-chip.active {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
}

/* Coarse-pointer comfort: every filter/toggle chip clears a 44px hit height */
.district-tab-btn,
.theme-filter-item,
.zone-filter-chip,
.badge-filter-chip,
.cat-chip,
.hof-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

/* ==========================================================================
   6. RESTAURANT GRID & POP CARDS
   ========================================================================== */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  background: var(--paper, #fff8eb);
}

/* One flat plane: the photo and the copy move together, never split in Z */
.card,
.restaurant-card {
  background: var(--paper-card, #fffdf7);
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  /* visible, so focus rings and child shadows are not cut; the photo wrapper
     carries its own radius and clips the image zoom. */
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-normal, 260ms) var(--ease-smooth),
    box-shadow var(--duration-normal, 260ms) var(--ease-smooth);
  cursor: pointer;
  user-select: none;
}

.card:hover,
.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.card-img-wrapper,
.card-media-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(110deg, #f5efe6 8%, #fff8eb 18%, #f5efe6 33%);
  background-size: 200% 100%;
  animation: shimmer-pulse 1.8s ease-in-out infinite;
  border-bottom: var(--line-base, 2px solid #1b1a17);
  border-radius: calc(var(--radius-md, 20px) - 2px) calc(var(--radius-md, 20px) - 2px) 0 0;
}

@keyframes shimmer-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-media-wrapper img,
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring);
}

.card:hover .card-media-wrapper img,
.restaurant-card:hover .card-media-wrapper img,
.card:hover .card-img-wrapper img,
.restaurant-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  background: var(--mint-soft, #ddf7ea);
  letter-spacing: -0.04em;
}

/* Badges on Card Media */
.card-badge-container {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 4;
}

.card-theme-badge {
  position: static;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink, #1b1a17);
  white-space: nowrap;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink, #1b1a17);
  white-space: nowrap;
}

.badge-new {
  background: #00f2fe;
  color: #042940;
  animation: badge-pulse 2.2s ease-in-out infinite;
}

.badge-hot {
  background: #ff4757;
  color: var(--ink, #1b1a17);
}

.badge-classic {
  background: #ffe66d;
  color: #1b1a17;
}

.badge-local {
  background: #ddf7ea;
  color: #1b1a17;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 2px 2px 0 var(--ink, #1b1a17); }
  50% { box-shadow: 2px 2px 0 var(--ink, #1b1a17), 0 0 10px rgba(0, 242, 254, 0.75); }
}

.card-inline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.3;
  padding: 0.25rem 0.6rem;
  border: 1.5px solid #1b1a17;
  border-radius: var(--radius-pill, 9999px);
  vertical-align: middle;
  margin-left: 0.35rem;
  box-shadow: 1.5px 1.5px 0 #1b1a17;
}

.card-favorite-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--ink, #1b1a17);
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms);
  z-index: 5;
}

.card-favorite-btn:hover {
  transform: scale(1.12);
}

.card-favorite-btn.is-favorited {
  background: var(--pink, #ff85a1);
  color: #fff;
}

.card-photo-count {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(27, 26, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper-card, #fffdf7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.card-badge-rating {
  display: inline-block;
}

/* Card Content Area - Note: paddingLeft >= 16px is required by designpaca gate */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  padding: 1.5rem; /* 24px — the gate floor is 16px */
}

.card-cat-label {
  font-family: var(--font-display);
  font-size: var(--step--2, 0.75rem);
  font-weight: var(--weight-strong, 700);
  letter-spacing: 0.02em;
  color: rgba(27, 26, 23, 0.6);
  line-height: 1.3;
  margin-bottom: 0.05rem;
}

.card-title-text {
  font-family: var(--font-display);
  font-size: var(--step-2, clamp(1.35rem, 1.22rem + 0.55vw, 1.68rem));
  font-weight: var(--weight-strong, 700);
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: keep-all;
}

.card-desc-text {
  font-size: 0.9rem;
  font-weight: var(--weight-medium, 500);
  line-height: 1.55;
  color: rgba(27, 26, 23, 0.82);
  word-break: keep-all;
  flex: 1;
}

.card-meta-list {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: var(--weight-medium, 500);
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-top: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  padding-top: 0.6rem;
  min-width: 0;
}

.card-meta-row span:first-child {
  color: rgba(27, 26, 23, 0.62);
  flex-shrink: 0;
}

.card-meta-row strong {
  color: var(--ink, #1b1a17);
  font-weight: var(--weight-strong, 700);
}

.card-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.card-btn-detail {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  background: var(--ink, #1b1a17);
  color: var(--butter, #ffe66d);
  font-weight: 900;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border: 2px solid #1b1a17;
  border-radius: var(--radius-pill, 9999px);
  box-shadow: 2px 2px 0 var(--coral, #ff5e36);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.card-btn-detail:hover {
  background: var(--coral, #ff5e36);
  color: #fff;
  transform: translateY(-1px);
}

.card-btn-row .card-btn-sub,
.card-btn-row .btn:not(.card-btn-detail) {
  padding: 0.6rem 0.45rem;
  font-size: 0.78rem;
  font-weight: var(--weight-strong, 700);
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1b1a17;
  border-radius: 8px;
  box-shadow: 1.5px 1.5px 0 #1b1a17;
  background: var(--paper-card, #fffdf7);
  color: var(--ink, #1b1a17);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.card-btn-row .card-btn-sub:hover,
.card-btn-row .btn:not(.card-btn-detail):hover {
  background: var(--butter, #ffe66d);
  transform: translateY(-1px);
}

.grid-empty-state {
  grid-column: 1 / -1;
  background: var(--paper-card, #fffdf7);
  padding: 6rem 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
  border: var(--line-thick, 3px solid #1b1a17);
}

.load-more-section {
  padding: 2.5rem 1rem;
  text-align: center;
  background: var(--paper, #fff8eb);
  border-top: var(--line-thick, 3px solid #1b1a17);
}
.load-more-section[hidden] {
  display: none;
}

/* ==========================================================================
   7. GOURMET RECEIPT DETAIL MODAL
   ========================================================================== */
body.detail-open, body.roulette-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(27, 26, 23, 0.75);
  backdrop-filter: blur(10px);
}

.modal-overlay.show {
  display: block;
  animation: modal-fade-in 0.2s var(--ease-smooth);
}

/* The Receipt Sheet Aesthetic — one paper document, not a card dashboard */
.receipt-sheet {
  max-width: 1080px;
  margin: 1.5rem auto;
  background: var(--paper-card, #fffdf7);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--shadow-sm);
  /* overflow: clip keeps the rounded corner clip WITHOUT turning the sheet
     into a scroll container, so the sticky document header can stick. */
  overflow: clip;
  position: relative;
  animation: receipt-rise 320ms var(--ease-smooth) both;
}

@keyframes receipt-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Document masthead: stays with you while you read the long receipt */
.receipt-top-tape {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem clamp(0.85rem, 2.5vw, 1.25rem);
  background: var(--ink, #1b1a17);
  color: var(--butter, #ffe66d);
  border-bottom: var(--line-base, 2px solid #1b1a17);
}

.receipt-tape-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-tape-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.receipt-print-btn,
.receipt-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 2px solid var(--butter, #ffe66d);
  border-radius: var(--radius-pill, 9999px);
  background: transparent;
  color: var(--butter, #ffe66d);
  padding: 0.45rem 0.9rem;
  font-weight: var(--weight-strong, 700);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background var(--duration-fast, 150ms), color var(--duration-fast, 150ms);
}
.receipt-print-btn:hover,
.receipt-close-btn:hover {
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
}
.receipt-close-btn {
  border-color: var(--coral-deep, #b8350f);
  color: #fff;
  background: var(--coral-deep, #b8350f);
}
.receipt-close-btn:hover {
  background: var(--coral, #ff5e36);
  border-color: var(--coral, #ff5e36);
  color: var(--ink, #1b1a17);
}

.detail-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
}

.detail-gallery-box {
  padding: clamp(0.85rem, 2.5vw, 1.5rem);
  background: var(--paper, #fff8eb);
  border-right: var(--line-base, 2px solid #1b1a17);
}

.detail-hero-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--butter, #ffe66d);
  box-shadow: var(--shadow-sm);
}

.detail-hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.detail-thumb-btn {
  aspect-ratio: 1;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--paper-card, #fffdf7);
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.detail-thumb-btn.active, .detail-thumb-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
}
.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-summary-box {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-receipt-stamp {
  align-self: flex-start;
  border: 2px dashed var(--coral, #ff5e36);
  color: var(--coral-deep, #b8350f);
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  transform: rotate(-3deg);
  letter-spacing: 0.05em;
}

.detail-cat-heading {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--coral-deep, #b8350f);
  line-height: 1.1;
  margin-bottom: -0.4rem;
}

.detail-title-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.18;
  word-break: keep-all;
}

.detail-area-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: var(--leading-normal, 1.7);
  word-break: keep-all;
}

.detail-area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.detail-zone-chip,
.detail-opened-chip {
  background: var(--paper, #fff8eb);
  border: 1px dashed rgba(27, 26, 23, 0.45);
  color: rgba(27, 26, 23, 0.82);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs, 6px);
  font-size: 0.78rem;
  font-weight: var(--weight-strong, 700);
}

.detail-address-line {
  color: rgba(27, 26, 23, 0.82);
  font-size: 0.92rem;
  font-weight: var(--weight-medium, 500);
  line-height: var(--leading-snug, 1.4);
}

.detail-tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-tag-pill {
  border: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper, #fff8eb);
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: var(--weight-medium, 500);
  color: rgba(27, 26, 23, 0.78);
}

/* Facts read as receipt line items, not three competing tiles */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px dashed rgba(27, 26, 23, 0.3);
}

.detail-stat-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0.5rem;
  text-align: left;
}
.detail-stat-card + .detail-stat-card {
  border-left: 1.5px dashed rgba(27, 26, 23, 0.2);
}

.detail-stat-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.detail-stat-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  font-weight: var(--weight-medium, 500);
  color: rgba(27, 26, 23, 0.62);
}

/* One primary decision, then the reference links as a quiet list */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1.5px dashed rgba(27, 26, 23, 0.3);
}

.detail-action-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.detail-action-primary .btn {
  width: 100%;
  min-height: 44px;
}

.detail-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid rgba(27, 26, 23, 0.28);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper, #fff8eb);
  color: rgba(27, 26, 23, 0.82);
  font-size: 0.78rem;
  font-weight: var(--weight-medium, 500);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast, 150ms), border-color var(--duration-fast, 150ms), color var(--duration-fast, 150ms);
}
.detail-link-btn:hover {
  background: var(--butter, #ffe66d);
  border-color: var(--ink, #1b1a17);
  color: var(--ink, #1b1a17);
}

/* Detail Panels Below — ledger sections separated by hairline rules */
.detail-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-info-panel {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-right: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  border-bottom: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
}
.detail-info-panel:nth-child(2n) {
  border-right: none;
}

.detail-info-panel h3 {
  font-size: 1.08rem;
  font-weight: var(--weight-strong, 700);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed rgba(27, 26, 23, 0.25);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-info-panel p {
  font-size: 0.95rem;
  font-weight: var(--weight-medium, 500);
  line-height: var(--leading-normal, 1.7);
  word-break: keep-all;
}

.detail-highlight-tip {
  margin-top: 0.85rem;
  border-left: 3px solid var(--coral-deep, #b8350f);
  padding: 0.7rem 0.9rem;
  background: var(--paper-cream, #fbf5e6);
  border-radius: 0 var(--radius-xs, 6px) var(--radius-xs, 6px) 0;
  font-weight: var(--weight-medium, 500);
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: keep-all;
}

.detail-map-frame {
  height: 280px;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--mint-soft, #ddf7ea);
  box-shadow: var(--shadow-sm);
}
.detail-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Receipt Barcode Bottom Footer */
.receipt-barcode-footer {
  padding: 1.5rem;
  text-align: center;
  background: var(--paper-cream, #fbf5e6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.barcode-svg {
  height: 48px;
  width: min(100%, 280px);
}

.barcode-subtext {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

/* ==========================================================================
   8. ALPACA LUCKY ROULETTE (SLOT MACHINE) MODAL
   ========================================================================== */
.roulette-dialog {
  max-width: 580px;
  margin: 4vh auto;
  background: var(--paper-card, #fffdf7);
  border: var(--line-heavy, 4px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4), var(--shadow-lg, 8px 8px 0 var(--coral, #ff5e36));
  overflow: hidden;
  text-align: center;
  position: relative;
  animation: pop-bounce 0.35s var(--ease-spring);
}

.roulette-header {
  background: var(--butter, #ffe66d);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.roulette-header h3 {
  font-size: var(--step-2, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.roulette-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: radial-gradient(circle, #fffbee 0%, #fff4da 100%);
}

/* Roulette Mascot Frame & Animations */
.roulette-mascot-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.roulette-mascot-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-pill, 9999px);
  border: var(--line-thick, 3px solid #1b1a17);
  box-shadow: var(--shadow-md, 5px 5px 0 var(--coral, #ff5e36));
  object-fit: cover;
  animation: roulette-mascot-rock 4s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--butter, #ffe66d);
}

.roulette-mascot-img.spinning {
  animation: alpaca-spin-cheer 0.22s linear infinite !important;
  box-shadow: 0 0 25px var(--butter, #ffe66d), var(--shadow-md, 5px 5px 0 var(--coral, #ff5e36));
}

.roulette-mascot-img.won {
  animation: mascot-jump 0.7s var(--ease-spring) !important;
  box-shadow: 0 0 35px var(--coral, #ff5e36), var(--shadow-lg, 8px 8px 0 #1b1a17);
}

@keyframes roulette-mascot-rock {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) scale(1.04); }
}

@keyframes alpaca-spin-cheer {
  0% { transform: rotate(-8deg) scale(1.05); }
  50% { transform: rotate(8deg) scale(1.1); }
  100% { transform: rotate(-8deg) scale(1.05); }
}

/* Favorites Empty State Mascot */
.fav-empty-mascot-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.fav-empty-mascot-img {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-pill, 9999px);
  border: var(--line-thick, 3px solid #1b1a17);
  box-shadow: var(--shadow-md, 5px 5px 0 var(--pink, #ff85a1));
  object-fit: cover;
  animation: heartbeat-pulse 2.4s ease-in-out infinite;
  background: #fff;
}

@keyframes heartbeat-pulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1.02); }
  42% { transform: scale(1.06); }
  70% { transform: scale(1); }
}

/* Heart Pop Jelly Animation */
.card-favorite-btn.pop {
  animation: heart-jelly 0.45s var(--ease-spring);
}

@keyframes heart-jelly {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-12deg); }
  70% { transform: scale(0.9) rotate(8deg); }
  100% { transform: scale(1); }
}

/* Empty State Typography and Suggestion Chips */
.empty-state-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--ink, #1b1a17);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  word-break: keep-all;
  text-wrap: balance;
}

.empty-state-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(27, 26, 23, 0.7);
  line-height: 1.5;
  margin-bottom: 1rem;
  word-break: keep-all;
  text-wrap: balance;
}

.empty-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem auto;
  max-width: 540px;
}

.empty-suggest-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: rgba(27, 26, 23, 0.65);
}

.empty-suggest-chip {
  padding: 0.35rem 0.8rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 #1b1a17;
  cursor: pointer;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), background var(--duration-fast, 150ms);
}

.empty-suggest-chip:hover {
  background: var(--butter, #ffe66d);
  transform: translateY(-2px);
}

.empty-reset-btn {
  font-size: 1rem;
  font-weight: 900;
  padding: 0.85rem 2rem;
}

/* Active Favorites Collection Banner */
.fav-active-banner {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-md, 18px);
  padding: 1rem 1.4rem;
  margin-bottom: 0.75rem;
  box-shadow: 4px 4px 0 #1b1a17;
  gap: 1rem;
}

.fav-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fav-banner-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
}

.fav-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fav-banner-text strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: #581c87;
  letter-spacing: -0.02em;
}

.fav-banner-text span {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(88, 28, 135, 0.8);
}

.slot-frame {
  margin: 1.2rem auto;
  background: var(--ink, #1b1a17);
  border: var(--line-heavy, 4px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  padding: 1.5rem 1rem;
  box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.6), var(--shadow-md, 5px 5px 0 var(--coral, #ff5e36));
  color: var(--paper-card, #fffdf7);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slot-media-wrap {
  width: 100%;
  max-width: 240px;
  height: 135px;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  border: 2.5px solid var(--butter, #ffe66d);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.85rem;
  animation: slotPop 350ms var(--ease-spring);
}

.slot-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes slotPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.slot-cat-badge {
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.85rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.slot-restaurant-name {
  font-size: var(--step-3, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--butter, #ffe66d);
  letter-spacing: -0.04em;
  word-break: keep-all;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-restaurant-area {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.3rem;
}

.roulette-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-spin {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  background: var(--coral, #ff5e36);
  color: var(--paper-card, #fffdf7);
  box-shadow: 6px 6px 0 var(--ink, #1b1a17);
}
.btn-spin:hover {
  background: #ff471a;
}

#slotViewDetailBtn {
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  border: var(--line-thick, 3px solid #1b1a17);
  box-shadow: 4px 4px 0 #1b1a17;
  font-weight: 900;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  animation: pop-bounce 0.4s var(--ease-spring);
  justify-content: center;
}
#slotViewDetailBtn:hover {
  background: #ffdf4d;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #1b1a17;
}

/* Confetti Canvas for Roulette celebration */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
}

/* ==========================================================================
   9. MOBILE FLOATING ACTION DOCK
   ========================================================================== */
.mobile-floating-dock {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(27, 26, 23, 0.94);
  backdrop-filter: blur(14px);
  border: var(--line-thick, 3px solid #ffe66d);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.55rem 0.8rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 4px 0 #1b1a17;
  gap: 0.3rem;
  align-items: center;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  gap: 0.25rem;
  color: var(--paper-card, #fffdf7);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.7rem;
  font-weight: var(--weight-strong, 700);
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.dock-btn:hover, .dock-btn:active {
  background: var(--coral, #ff5e36);
  transform: scale(1.08);
}

.dock-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

/* ==========================================================================
   10. TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3500;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

body.roulette-open .toast-container,
body.detail-open .toast-container {
  top: calc(1.25rem + env(safe-area-inset-top, 10px));
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 4000;
  width: max-content;
  max-width: calc(100vw - 2rem);
  align-items: center;
}

.toast-pill,
.toast {
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  border: 2.5px solid var(--butter, #ffe66d);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.85rem 1.6rem;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-sm, 4px 4px 0 var(--coral, #ff5e36));
  animation: toast-slide-in 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

body.roulette-open .toast-pill,
body.detail-open .toast-pill {
  animation: toast-slide-down 0.35s var(--ease-spring);
}

@keyframes toast-slide-down {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-pill span:first-child,
.toast span:first-child {
  font-size: 1.15rem;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  text-align: center;
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  overflow: hidden;
  border-top: var(--line-thick, 3px solid #1b1a17);
}

.footer-doodle-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(800px, 95vw);
  opacity: 0.08;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.footer-title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-4, clamp(1.55rem, 1.15rem + 1.9vw, 3.2rem));
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: var(--leading-tight, 1.15);
}

.footer-sub {
  position: relative;
  margin-top: 0.75rem;
  font-family: var(--font-script);
  font-size: var(--step-2, 1.8rem);
  color: var(--butter, #ffe66d);
}

.footer-meta {
  position: relative;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   12. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pop-up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pop-bounce {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-slide-in {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .restaurant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art-wrapper {
    min-height: clamp(440px, 50vw, 540px);
  }
  .discover-banner {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 860px) {
  .site-shell {
    border-left: none;
    border-right: none;
  }
  .top-marquee-wrap {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }
  /* Stop the perpetual ticker on narrow screens; show one fixed message instead */
  .top-marquee-wrap {
    justify-content: center;
  }
  .top-marquee-track {
    animation: none;
    white-space: nowrap;
  }
  .marquee-item:nth-child(n+2) {
    display: none;
  }
  .top-ribbon {
    padding: 0.65rem 1rem;
  }
  .hero {
    padding: 1.75rem 1rem 2.5rem;
  }
  .hero::before {
    inset: 0.5rem;
    border-radius: var(--radius-md, 20px);
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  .hero-eyebrow span:first-child {
    font-size: 0.85rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .stat-box:nth-child(3) {
    grid-column: auto;
  }
  .sticky-filter-bar {
    position: relative; /* Free up mobile screen so cards are fully visible */
    border-radius: 0;
  }
  .ai-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .ai-aside-card {
    min-height: auto;
    max-height: 180px;
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  .ai-aside-card img {
    height: 100%;
    object-fit: cover;
  }
  .ai-title-wrap strong {
    font-size: 1.35rem;
    white-space: nowrap;
    word-break: keep-all;
  }
  .ai-input-wrapper {
    grid-template-columns: 1fr;
  }
  .ai-go-btn {
    width: 100%;
  }
  .ai-quick-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding: 0.5rem 0 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ai-quick-chips::-webkit-scrollbar { display: none; }
  .quick-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .discover-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  .discover-banner-art {
    display: none;
  }
  .toolbar-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .toolbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .search-box-wrap {
    flex: 1 1 100%;
  }
  .select-sort, .btn-reset {
    flex: 1 1 auto;
  }
  .restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-main-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery-box {
    border-right: none;
    border-bottom: var(--line-base, 2px solid #1b1a17);
  }
  .detail-panels-grid {
    grid-template-columns: 1fr;
  }
  .detail-info-panel {
    border-right: none !important;
  }
  .vip-hof-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .vip-hof-title {
    word-break: keep-all;
    text-wrap: balance;
  }
  .vip-hof-cta-btn {
    width: 100%;
    text-align: center;
  }
  .mobile-floating-dock {
    display: flex;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
  }
  .input-mini-search,
  .select-sort,
  .ai-search-input {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on focus */
  }
  /* Collapse secondary filters behind a toggle so the phone screen is not 5 chrome rows deep */
  .filter-toggle-btn {
    display: flex;
  }
  .filter-more {
    display: none;
  }
  .filter-more.open {
    display: block;
  }
  .dock-btn.active {
    background: var(--butter, #ffe66d);
    color: var(--ink, #1b1a17);
    box-shadow: inset 0 0 0 2px #1b1a17;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 20px));
  }
  .top-ribbon {
    padding: 0.55rem 0.75rem;
  }
  .ribbon-brand {
    font-size: 0.88rem;
  }
  .ribbon-script {
    display: none;
  }
  .ribbon-pills {
    gap: 0.35rem;
  }
  .desktop-only-pill {
    display: none !important;
  }
  .ribbon-pill-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    word-break: keep-all;
    text-wrap: balance;
  }
  .hero-actions {
    display: grid;
    gap: 0.5rem;
  }
  .hero-actions .btn {
    min-height: 44px;
    padding: 0.6rem 0.4rem;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }
  .hero-actions-primary {
    grid-template-columns: 1fr;
  }
  .hero-actions-primary .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }
  .hero-actions-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-actions-secondary .btn {
    font-size: 0.76rem;
    padding: 0.5rem 0.25rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  .stat-box {
    padding: 0.85rem 0.6rem;
  }
  .stat-box strong {
    font-size: 1.45rem;
  }
  .stat-box span {
    font-size: 0.72rem;
  }
  .hero-3d-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    top: 0.5rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Phones get the static illustration instead of the WebGL canvas (battery + layout) */
  .hero-art-wrapper {
    min-height: clamp(240px, 60vw, 320px);
    margin-top: 0.5rem;
  }
  .hero-art-wrapper:not(.texture-loaded) .hero-mascot-img {
    width: min(80%, 320px);
  }
  .hero-three-canvas {
    display: none;
  }
  .hero-art-wrapper.texture-loaded .hero-mascot-img {
    opacity: 1;
    pointer-events: auto;
    width: min(80%, 320px);
    animation: none;
  }
  .hero-3d-tag {
    display: none;
  }
  .kitsch-badge.b-three {
    display: none;
  }
  .kitsch-badge {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    box-shadow: var(--shadow-sm);
  }
  .restaurant-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    border-top: none;
    background: transparent;
    padding: 0.75rem 0.75rem calc(6.5rem + env(safe-area-inset-bottom, 20px));
  }
  .restaurant-card {
    border: var(--line-base, 2px solid #1b1a17);
    border-radius: var(--radius-md, 20px);
    overflow: visible;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm, 3px 3px 0 #1b1a17);
    background: var(--paper-card, #fffdf7);
  }
  .card-media-wrapper {
    aspect-ratio: 16/10;
  }
  .card-body {
    padding: 1.35rem 1.15rem; /* >= 16px strictly satisfies designpaca gate */
  }
  .card-title-text {
    font-size: var(--step-2, 1.35rem);
    word-break: keep-all;
  }
  /* A 390px photo cannot carry three overlapping stickers — keep only the status badge */
  .card-badge-container .card-theme-badge,
  .card-badge-container .card-zone-badge {
    display: none;
  }
  .card-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Long Korean values were forcing the label column to wrap vertically */
  .card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .card-meta-row span:first-child {
    font-size: 0.72rem;
  }
  .receipt-sheet {
    width: 100%;
    max-width: none;
    margin: 0 auto calc(2.5rem + env(safe-area-inset-bottom, 20px));
    border-radius: 14px;
    padding-bottom: 0;
  }
  .receipt-top-tape {
    padding: 0.55rem 0.7rem;
    gap: 0.4rem;
  }
  .receipt-tape-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .receipt-print-btn,
  .receipt-close-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
    flex-shrink: 0;
  }
  .detail-action-primary {
    grid-template-columns: 1fr;
  }
  .detail-action-primary .btn,
  .detail-link-btn {
    justify-content: center;
  }
  .detail-link-btn {
    flex: 1 1 auto;
  }
  .fav-active-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .fav-banner-exit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .roulette-header h3 {
    font-size: 1.15rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .roulette-dialog {
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    width: calc(100vw - 1.5rem);
  }
  .roulette-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.1rem 0.9rem;
  }
  .roulette-mascot-img {
    width: 75px;
    height: 75px;
  }
  .slot-frame {
    padding: 1rem 0.75rem;
    margin: 0.75rem auto;
    min-height: 150px;
  }
  .slot-media-wrap {
    max-width: 200px;
    height: 110px;
    margin-bottom: 0.6rem;
  }
  .slot-restaurant-name {
    font-size: clamp(1.35rem, 5.2vw, 1.8rem);
  }
  .btn-spin {
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
  }
  .mobile-floating-dock {
    padding: 0.45rem 0.6rem;
    gap: 0.25rem;
  }
  .dock-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.7rem;
  }
  .dock-icon {
    font-size: 1.05rem;
  }
  .toast-container {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 20px));
    right: 1rem;
    left: 1rem;
  }
  body.roulette-open .toast-container,
  body.detail-open .toast-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: calc(1rem + env(safe-area-inset-top, 10px)) !important;
    bottom: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 2rem) !important;
  }
}

/* Tactile Touch Feedback on Mobile/Tablet */
@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .dock-btn:active,
  .card-favorite-btn:active,
  .cat-chip:active,
  .district-tab-btn:active,
  .zone-filter-chip:active,
  .badge-filter-chip:active,
  .hof-filter-btn:active,
  .empty-suggest-chip:active {
    transform: scale(0.94) !important;
    transition: transform 0.08s ease !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .top-marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   HALL OF FAME (명예의 전당) & VIP CTA BANNER STYLES
   ========================================================================== */

/* 1. Main Portal VIP CTA Banner */
.vip-hof-banner {
  margin: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 3.5vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 4vw, 2.8rem);
  background: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  box-shadow: 6px 6px 0 var(--butter, #ffe66d), 10px 10px 0 var(--ink, #1b1a17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal, 260ms) var(--ease-spring), box-shadow var(--duration-normal, 260ms);
}

.vip-hof-banner:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--butter, #ffe66d), 14px 14px 0 var(--ink, #1b1a17);
}

.vip-hof-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 230, 109, 0.15), transparent 70%);
  pointer-events: none;
}

.vip-hof-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.vip-hof-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  font-weight: 900;
  font-size: var(--step--2, 0.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.vip-hof-title {
  font-family: var(--font-display);
  font-size: var(--step-3, clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem));
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.5rem;
}

.vip-hof-title .gold-accent {
  color: var(--butter, #ffe66d);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.vip-hof-desc {
  font-size: var(--step-0, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  word-break: keep-all;
}

.vip-hof-legends-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.vip-hof-legends-strip .hof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 230, 109, 0.4);
  border-radius: var(--radius-pill, 9999px);
  color: var(--butter, #ffe66d);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 150ms var(--ease-spring), background 150ms;
}

.vip-hof-legends-strip .hof-chip:hover {
  background: rgba(255, 230, 109, 0.25);
  transform: translateY(-2px);
  border-color: var(--butter, #ffe66d);
}

.vip-hof-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  background: var(--butter, #ffe66d);
  color: var(--ink, #1b1a17);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  font-weight: 900;
  font-size: var(--step-1, 1.1rem);
  box-shadow: 4px 4px 0 #fff;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 150ms var(--ease-spring), background 150ms;
  flex-shrink: 0;
}

.vip-hof-cta-btn:hover {
  background: #ffd633;
  transform: translateY(-2px) scale(1.02);
}

/* 2. Hall of Fame Page Styles */
.hof-body {
  background: #fcf6eb;
  overflow-x: hidden;
  max-width: 100vw;
}

.hof-shell {
  background: #fffdf7;
  overflow-x: hidden;
  max-width: 100vw;
}

.hof-badge-gold {
  background: var(--butter, #ffe66d) !important;
  color: var(--ink, #1b1a17) !important;
}

.hof-header {
  border-bottom: var(--line-thick, 3px solid #1b1a17);
}

.ribbon-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hof-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 900;
  font-size: var(--step--1, 0.85rem);
  color: var(--ink, #1b1a17);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  background: var(--paper-card, #fffdf7);
  border: 2px solid var(--ink, #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
  transition: background 150ms, transform 150ms;
}

.hof-back-btn:hover {
  background: var(--butter, #ffe66d);
  transform: translateY(-1px);
}

.hof-hero-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, #fff9e6 0%, #fff2d9 50%, #f7e8ff 100%);
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  position: relative;
  overflow: hidden;
}

.hof-hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hof-crown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--ink, #1b1a17);
  color: var(--butter, #ffe66d);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hof-crown-icon {
  font-size: 1.1rem;
}

.hof-eyebrow {
  font-weight: 900;
  font-size: var(--step--1, 0.82rem);
  letter-spacing: 0.08em;
}

.hof-title {
  font-family: var(--font-display);
  font-size: var(--step-5, clamp(2.6rem, 2rem + 2.5vw, 4.2rem));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  word-break: keep-all;
}

.hof-title .highlight-gold {
  display: inline-block;
  background: var(--butter, #ffe66d);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-sm, 12px);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.02em 0.3em;
  transform: rotate(-1.5deg);
}

.hof-desc {
  font-size: var(--step-1, clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem));
  font-weight: 600;
  line-height: 1.6;
  color: rgba(27, 26, 23, 0.9);
  max-width: 740px;
  margin: 0 auto 2rem;
  word-break: keep-all;
}

.hof-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.hof-stat {
  background: rgba(255, 255, 255, 0.92);
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-md, 20px);
  padding: 0.75rem 0.5rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hof-stat strong {
  display: block;
  font-size: var(--step-2, 1.4rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.hof-stat span {
  display: block;
  font-size: var(--step--2, 0.72rem);
  font-weight: 800;
  color: rgba(27, 26, 23, 0.7);
  margin-top: 0.2rem;
}

/* 3. Category Filter Nav */
.hof-filter-nav {
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: #fffdf7;
  border-bottom: var(--line-base, 2px solid #1b1a17);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hof-filter-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  /* overflow-x:auto forces overflow-y:auto, so vertical padding is what keeps
     chip shadows and focus rings from being sliced top/bottom */
  padding: 0.5rem 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1100px;
  margin: 0 auto;
}

.hof-filter-scroll::-webkit-scrollbar {
  display: none;
}

.hof-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-pill, 9999px);
  background: var(--paper-card, #fffdf7);
  color: var(--ink, #1b1a17);
  font-weight: 900;
  font-size: var(--step--1, 0.88rem);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: all 150ms var(--ease-spring);
}

.hof-filter-btn:hover {
  background: #fff8e0;
  transform: translateY(-1px);
}

.hof-filter-btn.is-active {
  background: var(--butter, #ffe66d);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}

/* 4. Inductees Grid */
.hof-inductees-section {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hof-card {
  background: var(--paper-card, #fffdf7);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-lg, 28px);
  box-shadow: 6px 6px 0 var(--ink, #1b1a17);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast, 150ms) var(--ease-spring), box-shadow var(--duration-fast, 150ms);
}

.hof-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--ink, #1b1a17);
}

.hof-card-banner {
  background: var(--butter, #ffe66d);
  padding: 0.65rem 1.25rem;
  border-bottom: var(--line-base, 2px solid #1b1a17);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hof-badge-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 900;
  font-size: var(--step--1, 0.85rem);
  color: var(--ink);
}

.hof-since-tag {
  font-weight: 900;
  font-size: var(--step--2, 0.75rem);
  padding: 0.2rem 0.55rem;
  background: var(--ink);
  color: var(--butter);
  border-radius: var(--radius-pill, 9999px);
  letter-spacing: 0.05em;
}

.hof-card-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 260px;
  overflow: hidden;
  border-bottom: var(--line-thick, 3px solid #1b1a17);
  background: var(--ink, #1b1a17);
}

.hof-card-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.hof-card:hover .hof-card-photo-wrapper img {
  transform: scale(1.05);
}

.hof-card-photo-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hof-photo-pill {
  background: rgba(27, 26, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--butter, #ffe66d);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid rgba(255, 230, 109, 0.4);
}

.hof-photo-cat {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink, #1b1a17);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid #1b1a17;
}

.hof-card-body {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.hof-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hof-card-cat {
  font-size: var(--step--1, 0.85rem);
  font-weight: 800;
  color: var(--coral-deep, #b8350f);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.hof-card-title {
  font-family: var(--font-display);
  font-size: var(--step-3, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  word-break: keep-all;
  text-wrap: balance;
}

.hof-branch {
  font-size: 0.6em;
  font-family: var(--font-base);
  font-weight: 800;
  color: rgba(27, 26, 23, 0.7);
  vertical-align: middle;
}

.hof-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md, 16px);
  padding: 0.5rem 0.75rem;
  min-width: 70px;
  box-shadow: 2px 2px 0 var(--butter);
}

.score-star {
  color: var(--butter, #ffe66d);
  font-size: 1.1rem;
  line-height: 1;
}

.score-num {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.score-reviews {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

.hof-awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hof-award-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: #fff2cc;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill, 9999px);
  font-size: var(--step--2, 0.76rem);
  font-weight: 800;
  color: var(--ink);
}

.hof-prop-box {
  border: var(--line-base, 2px solid #1b1a17);
  border-radius: var(--radius-sm, 14px);
  padding: 0.85rem 1rem;
}

.hof-signature-box {
  background: #fdfaf0;
  border-left: 6px solid var(--coral, #ff5e36);
}

.hof-tip-box {
  background: #f3faf6;
  border-left: 6px solid var(--mint, #52de97);
}

.prop-label {
  display: block;
  font-size: var(--step--2, 0.76rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(27, 26, 23, 0.75);
  margin-bottom: 0.25rem;
}

.prop-text {
  font-size: var(--step--1, 0.9rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  word-break: keep-all;
}

.hof-sentiment-section {
  background: #faf8f5;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius-sm, 14px);
  padding: 0.75rem 0.9rem;
}

.sentiment-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--2, 0.78rem);
  margin-bottom: 0.5rem;
}

.sentiment-title strong {
  color: var(--coral-deep, #b8350f);
}

.sentiment-verified {
  font-weight: 800;
  color: #15803d;
}

.hof-keywords-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hof-keyword-chip {
  padding: 0.2rem 0.5rem;
  background: #fff;
  border: 1px solid rgba(27, 26, 23, 0.25);
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
}

/* 5. Reviews List */
.hof-reviews-container {
  border-top: var(--line-base, 2px solid #1b1a17);
  padding-top: 0.9rem;
}

.hof-reviews-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hof-reviews-toggle-bar strong {
  font-size: var(--step--1, 0.85rem);
  font-weight: 900;
}

.hof-toggle-reviews-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  background: none;
  border: none;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--coral-deep, #b8350f);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.hof-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.hof-review-item {
  background: #fff;
  border: 1.5px solid rgba(27, 26, 23, 0.18);
  border-radius: var(--radius-sm, 12px);
  padding: 0.75rem 0.85rem;
}

.hof-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin-bottom: 0.35rem;
}

.hof-reviewer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hof-username {
  color: var(--ink);
}

.hof-review-stars {
  color: #8a5a00;
  font-weight: 900;
}

.hof-review-date {
  color: rgba(27, 26, 23, 0.68);
}

.hof-review-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(27, 26, 23, 0.88);
  margin-bottom: 0.45rem;
  word-break: keep-all;
}

.hof-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hof-rev-tag {
  font-size: 0.68rem;
  color: #2563eb;
  font-weight: 700;
}

.hof-verified-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.hof-review-link-wrap {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(27, 26, 23, 0.12);
  display: flex;
  justify-content: flex-end;
}

.hof-review-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e40af;
  background: #eff6ff;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 1.5px 1.5px 0 #1e3a8a;
}

.hof-review-link-btn:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 2.5px 2.5px 0 #1e3a8a;
}

.hof-review-link-btn .link-arrow {
  font-size: 0.78rem;
}

.hof-reviews-meta-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hof-real-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}

.hof-reviews-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hof-source-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #1b1a17;
  background: #fff;
  border: 1.5px solid #1b1a17;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  box-shadow: 1.5px 1.5px 0 #1b1a17;
  transition: all 0.15s ease;
}

.hof-source-pill:hover {
  background: var(--butter, #ffe177);
  transform: translateY(-1px);
}

.modal-quote-line {
  background: #fff;
  border: 1.5px solid rgba(27, 26, 23, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.6rem;
}

.modal-quote-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1b1a17;
  font-weight: 700;
  margin-bottom: 0.4rem;
  word-break: keep-all;
}

.modal-quote-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: rgba(27, 26, 23, 0.65);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-quote-real-link {
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.15s ease;
}

.modal-quote-real-link:hover {
  background: #2563eb;
  color: #fff;
}

.hof-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: var(--line-base, 2px solid #1b1a17);
}

.hof-fav-btn.is-favorited {
  background: var(--coral, #ff5e36) !important;
  color: #fff !important;
}

/* ==========================================================================
   HALL OF FAME RECEIPT MODAL AESTHETIC
   ========================================================================== */
.hof-receipt-sheet {
  max-width: 580px !important;
  margin: 2vh auto !important;
  background: var(--paper-card, #fffdf7) !important;
  border: var(--line-thick, 3px solid #1b1a17) !important;
  border-radius: var(--radius-lg, 28px) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), 8px 8px 0 var(--coral, #ff5e36) !important;
  overflow: hidden;
}

.hof-receipt-paper {
  padding: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-base);
  background: #fffdf9;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hof-receipt-masthead {
  text-align: center;
  border-bottom: 2px dashed #1b1a17;
  padding-bottom: 0.85rem;
}

.receipt-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.receipt-serial-no {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(27, 26, 23, 0.7);
  margin-top: 0.25rem;
}

.receipt-ascii-barcode {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-top: 0.35rem;
  color: var(--ink);
}

.hof-receipt-store-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.receipt-name-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.hof-receipt-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.hof-receipt-rating {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--coral-deep, #b8350f);
  white-space: nowrap;
}

.hof-receipt-meta {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(27, 26, 23, 0.75);
}

.receipt-divider-dash {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: rgba(27, 26, 23, 0.35);
  text-align: center;
  letter-spacing: 0.08em;
  user-select: none;
  overflow: hidden;
}

.receipt-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.receipt-field-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(27, 26, 23, 0.75);
  letter-spacing: 0.03em;
}

.receipt-field-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  word-break: keep-all;
  background: #fff8eb;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 4px solid var(--coral, #ff5e36);
}

.receipt-quotes-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-quote-line {
  background: #fff;
  border: 1.5px solid rgba(27, 26, 23, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: keep-all;
}

.modal-quote-line strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.modal-quote-line span {
  font-size: 0.75rem;
  color: rgba(27, 26, 23, 0.6);
  font-weight: 700;
}

.hof-receipt-stamp-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0.3rem 0;
}

.hof-official-stamp {
  border: 3px double var(--coral, #ff5e36);
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  text-align: center;
  transform: rotate(-6deg);
  color: var(--coral-deep, #b8350f);
  background: rgba(255, 94, 54, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.stamp-sub {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.stamp-main {
  font-size: 1.05rem;
  font-weight: 900;
}

.stamp-legend {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hof-receipt-bottom-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1.5px dashed rgba(27, 26, 23, 0.25);
}

.receipt-footer-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #fbf5e6;
  border-top: var(--line-thick, 3px solid #1b1a17);
}

.hof-bottom-cta {
  padding: 0 clamp(1rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hof-bottom-card {
  background: var(--butter, #ffe66d);
  border: var(--line-thick, 3px solid #1b1a17);
  border-radius: var(--radius-lg, 32px);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hof-bottom-copy h2 {
  font-family: var(--font-display);
  font-size: var(--step-3, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0.4rem 0 0.6rem;
}

.hof-bottom-copy p {
  font-size: var(--step-0, 1rem);
  line-height: 1.55;
  color: rgba(27, 26, 23, 0.88);
  max-width: 760px;
}

.hof-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .hof-grid {
    grid-template-columns: 1fr;
  }
  .vip-hof-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hof-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hof-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
  }
  .hof-header .ribbon-pills {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    /* keep room for pill shadows/focus rings inside a horizontal scroller */
    padding: 0.35rem 0.1rem 0.45rem;
  }
  .hof-header .ribbon-pills::-webkit-scrollbar { display: none; }
  .ribbon-brand-wrap {
    justify-content: space-between;
  }
  .hof-filter-nav {
    padding: 0.6rem 0.75rem;
    max-width: 100vw;
    overflow: visible;
  }
  .hof-filter-scroll {
    max-width: 100%;
    padding: 0.55rem 0.2rem 0.65rem;
    -webkit-overflow-scrolling: touch;
  }
  .hof-card-actions {
    grid-template-columns: 1fr;
  }
  .hof-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* Real Visitor & Blog Reviews Section in Detail Receipt */
.detail-real-reviews-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed rgba(27, 26, 23, 0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-panel-title-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink, #1b1a17);
}

.detail-real-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  display: inline-flex;
  align-items: center;
}

.detail-real-reviews-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-review-quote-box {
  background: #fffdfa;
  border: 1.5px solid rgba(27, 26, 23, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.detail-review-quote-box:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.quote-header strong {
  color: var(--ink, #1b1a17);
}

.quote-date {
  color: rgba(27, 26, 23, 0.68);
  font-size: 0.75rem;
}

.quote-body {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(27, 26, 23, 0.9);
  margin-bottom: 0.6rem;
  word-break: keep-all;
}

.quote-footer {
  display: flex;
  justify-content: flex-end;
}

.quote-real-link {
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: var(--weight-medium, 500);
  color: rgba(27, 26, 23, 0.85);
  background: var(--paper, #fff8eb);
  border: 1.5px solid rgba(27, 26, 23, 0.28);
  border-radius: var(--radius-pill, 9999px);
  padding: 0.25rem 0.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quote-real-link:hover {
  background: var(--ink, #1b1a17);
  border-color: var(--ink, #1b1a17);
  color: var(--paper-card, #fffdf7);
}

.detail-reviews-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(27, 26, 23, 0.2);
}

.detail-source-btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  background: var(--butter, #ffe177);
  border: 1.5px solid #1b1a17;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #1b1a17;
  color: #1b1a17;
  text-decoration: none;
  transition: all 0.15s ease;
}

.detail-source-btn:hover {
  background: #ffd633;
  transform: translateY(-1px);
}

/* 2026 Latest Operation & Waiting Guide Box */
.detail-guide-box {
  background: var(--paper, #fff8eb);
  border: var(--line-thin, 1px solid rgba(27, 26, 23, 0.2));
  border-radius: var(--radius-sm, 12px);
  padding: 0.9rem 1rem;
  margin-top: 1rem;
}

.detail-guide-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: var(--weight-strong, 700);
  font-size: 0.9rem;
  color: #1b1a17;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed rgba(27, 26, 23, 0.2);
}

.detail-guide-tag {
  background: var(--coral-deep, #b8350f);
  color: var(--paper-card, #fffdf7);
  font-size: 0.68rem;
  font-weight: var(--weight-strong, 700);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill, 9999px);
  letter-spacing: 0.03em;
}

.detail-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.guide-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.guide-content strong {
  display: inline-block;
  color: #1b1a17;
  font-weight: 800;
  margin-right: 0.35rem;
}

.guide-content p {
  display: inline;
  margin: 0;
  color: rgba(27, 26, 23, 0.85);
}

.card-meta-waiting {
  background: #fff8e7;
  border: 1.5px dashed #f39c12;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.waiting-tip-label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #d35400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-waiting-text {
  color: #78350f;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: keep-all;
  white-space: normal;
}

/* Print Stylesheet */

@media print {
  .top-marquee-wrap, .sticky-filter-bar, .mobile-floating-dock, .hero-actions, .toast-container, .btn, .card-favorite-btn {
    display: none !important;
  }
  .site-shell {
    border: none;
    box-shadow: none;
    width: 100%;
  }
  .restaurant-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    background: none;
    gap: 1rem;
  }
  .restaurant-card {
    border: 1px solid #1b1a17 !important;
    page-break-inside: avoid;
  }

  /* When the receipt is open, the sheet itself becomes the printed document */
  body.detail-open .site-shell > :not(#detailOverlay) {
    display: none !important;
  }
  body.detail-open #detailOverlay {
    position: static;
    display: block !important;
    padding: 0;
    background: none;
    backdrop-filter: none;
    overflow: visible;
  }
  body.detail-open .receipt-sheet {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  body.detail-open .receipt-top-tape {
    position: static;
    background: none;
    color: #1b1a17;
    border-bottom: 2px solid #1b1a17;
  }
  body.detail-open .receipt-tape-actions,
  body.detail-open #confettiCanvas {
    display: none !important;
  }
  body.detail-open .detail-panels-grid {
    grid-template-columns: 1fr 1fr;
  }
  body.detail-open .detail-info-panel {
    break-inside: avoid;
  }
  body.detail-open iframe {
    display: none !important; /* interactive maps do not render on paper */
  }
  body.detail-open .detail-map-panel {
    display: none !important; /* a blank map slot is noise on paper */
  }
  .receipt-sheet, .detail-gallery-box, .detail-info-panel, .detail-highlight-tip,
  .detail-zone-chip, .detail-opened-chip, .detail-guide-box, .detail-guide-tag,
  .receipt-barcode-footer, .detail-real-tag {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .ad-slot,
  .detail-monetize-panel {
    display: none !important; /* ads and affiliate links never print on the receipt */
  }
}

/* ==========================================================================
   MONETIZATION & SHARING — ads, affiliate, sponsored flags, share affordances
   Every class here is emitted by public/monetize.js, so keep them in sync.
   ========================================================================== */
.ad-slot {
  width: 100%;
  margin: var(--space-sm) 0;
  padding: 0.5rem;
  border: 1.5px dashed rgba(27, 26, 23, 0.22);
  border-radius: var(--radius-sm);
  background: var(--paper-cream);
  text-align: center;
}
.ad-slot[hidden] { display: none; }
.ad-slot-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 26, 23, 0.55);
}
.ad-slot-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-inner > * { max-width: 100%; }
.ad-slot-infeed { grid-column: 1 / -1; }
.ad-slot-footer { max-width: var(--measure); margin-inline: auto; }
.ad-slot-detail { margin-top: var(--space-sm); }

/* Share row inside the detail receipt */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: var(--weight-strong);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.share-btn:hover { transform: translateY(-2px); background: var(--butter); }
.share-btn-kakao { background: var(--butter); }
.share-btn-naver { background: var(--mint); }

/* Affiliate block */
.detail-monetize-panel { grid-column: 1 / -1; }
.affiliate-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(27, 26, 23, 0.35);
  border-radius: var(--radius-pill);
  color: rgba(27, 26, 23, 0.7);
}
.affiliate-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: var(--weight-strong);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.affiliate-btn:hover { transform: translateY(-2px); background: var(--butter); }
.affiliate-btn-naver { background: var(--mint-soft); }
.affiliate-btn-kurly { background: var(--lavender-soft); }
.affiliate-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(27, 26, 23, 0.62);
}

/* Sponsored listing flag (paid placement, always labelled) */
.sponsored-flag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: var(--weight-strong);
  letter-spacing: 0.06em;
}
