:root {
  --bg: #120d09;
  --bg-2: #1a120c;
  --panel: #22180f;
  --ink: #f4ebe0;
  --muted: #b9a894;
  --amber: #e0a030;
  --amber-deep: #9a5a14;
  --foam: #f7efe2;
  --line: rgba(244, 235, 224, 0.12);
  --card: rgba(34, 24, 15, 0.86);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --glow-rgb: 196, 118, 28;
  --accent-rgb: 224, 160, 48;
  --hero-tint: rgba(18, 11, 6, 0.55);
  --hero-mid: rgba(28, 16, 6, 0.28);
  --hero-tint-2: rgba(8, 5, 3, 0.72);
  --brand-grad: linear-gradient(120deg, #f7efe2 8%, #e0a030 48%, #c4781c 100%);
  --tab-active: linear-gradient(180deg, #f0c060, var(--amber));
  --font-display: "Bebas Neue", "Noto Sans KR", sans-serif;
  --font-serif: "Instrument Serif", "Noto Sans KR", serif;
  --font-body: "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 620px at 8% -12%, rgba(var(--glow-rgb), 0.26), transparent 56%),
    radial-gradient(900px 520px at 92% 0%, rgba(92, 42, 10, 0.42), transparent 52%),
    radial-gradient(700px 380px at 50% 30%, rgba(60, 28, 8, 0.22), transparent 60%),
    linear-gradient(180deg, #1c120a 0%, var(--bg) 38%, #080604 100%);
  overflow-x: clip;
  transition: background 0.55s ease, color 0.35s ease;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img {
  max-width: 100%;
  height: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  pointer-events: none;
  position: fixed;
  width: 50vw;
  height: 50vw;
  right: -10vw;
  top: 20vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb), 0.14), transparent 70%);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
  transition: background 0.55s ease;
}
@keyframes drift {
  from { transform: translate(-4%, -2%); }
  to { transform: translate(3%, 4%); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(1.4rem, env(safe-area-inset-top, 0px)) 0 0.5rem;
}
.brand-mark { display: flex; gap: 0.8rem; align-items: center; min-width: 0; }
.brand-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--foam) 0 18%, transparent 19%),
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 70%, #fff) 0%, var(--amber) 45%, var(--amber-deep) 100%);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.25), 0 0 0 2px rgba(var(--accent-rgb),.25);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}
.brand-name {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  line-height: 1;
}
.brand-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  word-break: keep-all;
}
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--amber); }

.drink-tabs {
  display: flex;
  gap: 0.45rem;
  margin: 0.9rem 0 0.2rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 15, 12, 0.55);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.drink-tabs::-webkit-scrollbar { height: 3px; }
.drink-tabs::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
  border-radius: 99px;
}
a.drink-tab-link {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.drink-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  flex: 0 0 auto;
  min-width: 5.6rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: background .2s, color .2s, transform .2s;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.drink-tab-ko {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.1;
}
.drink-tab-en {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.drink-tab:hover {
  color: var(--foam);
  background: rgba(var(--accent-rgb), 0.08);
}
.drink-tab.active {
  color: #1a120e;
  background: var(--tab-active);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.22);
}
.drink-tab.active .drink-tab-en { opacity: 0.8; color: #3a2610; }

/* ——— Drink atmosphere themes ——— */
body[data-drink="beer"] {
  --bg: #120d09;
  --bg-2: #1a120c;
  --panel: #22180f;
  --amber: #e0a030;
  --amber-deep: #9a5a14;
  --foam: #f7efe2;
  --muted: #b9a894;
  --card: rgba(34, 24, 15, 0.86);
  --glow-rgb: 196, 118, 28;
  --accent-rgb: 224, 160, 48;
  --hero-tint: rgba(18, 11, 6, 0.55);
  --hero-mid: rgba(40, 22, 6, 0.28);
  --hero-tint-2: rgba(8, 5, 3, 0.72);
  --brand-grad: linear-gradient(120deg, #f7efe2 8%, #e0a030 48%, #c4781c 100%);
  --tab-active: linear-gradient(180deg, #f0c060, var(--amber));
  background:
    radial-gradient(1180px 620px at 8% -12%, rgba(196, 118, 28, 0.28), transparent 56%),
    radial-gradient(920px 540px at 94% 0%, rgba(90, 40, 8, 0.48), transparent 52%),
    radial-gradient(640px 360px at 42% 28%, rgba(120, 62, 12, 0.18), transparent 62%),
    linear-gradient(180deg, #1c120a 0%, var(--bg) 38%, #080604 100%);
}
body[data-drink="makgeolli"] {
  --bg: #16140f;
  --bg-2: #1f1b14;
  --panel: #262218;
  --amber: #e8d49a;
  --amber-deep: #c4a45a;
  --foam: #fbf7ec;
  --muted: #c8ba9c;
  --card: rgba(40, 36, 26, 0.88);
  --glow-rgb: 245, 232, 190;
  --accent-rgb: 232, 212, 154;
  --hero-tint: rgba(36, 30, 18, 0.32);
  --hero-mid: rgba(250, 242, 214, 0.12);
  --hero-tint-2: rgba(14, 12, 8, 0.7);
  --brand-grad: linear-gradient(120deg, #fffaf0 4%, #f3e4b8 40%, #e0c070 92%);
  --tab-active: linear-gradient(180deg, #faf3e0, #e8d49a);
  background:
    radial-gradient(1100px 600px at 16% -4%, rgba(255, 248, 230, 0.28), transparent 52%),
    radial-gradient(820px 480px at 88% 8%, rgba(232, 212, 154, 0.34), transparent 48%),
    radial-gradient(620px 360px at 50% 18%, rgba(245, 232, 190, 0.16), transparent 56%),
    linear-gradient(180deg, #221c12 0%, var(--bg) 42%, #0e0c08 100%);
}
body[data-drink="whiskey"] {
  --bg: #0c0805;
  --bg-2: #15100a;
  --panel: #1e140c;
  --amber: #c8782e;
  --amber-deep: #6b3010;
  --foam: #f0e0c8;
  --muted: #a88868;
  --card: rgba(30, 20, 12, 0.9);
  --glow-rgb: 140, 72, 28;
  --accent-rgb: 200, 120, 46;
  --hero-tint: rgba(12, 7, 4, 0.58);
  --hero-mid: rgba(48, 24, 10, 0.3);
  --hero-tint-2: rgba(5, 3, 2, 0.75);
  --brand-grad: linear-gradient(120deg, #e8c898 6%, #c8782e 46%, #6b3010 100%);
  --tab-active: linear-gradient(180deg, #d4923a, #a85a20);
  background:
    radial-gradient(1100px 560px at 6% -10%, rgba(140, 72, 28, 0.26), transparent 54%),
    radial-gradient(960px 560px at 96% 0%, rgba(42, 20, 8, 0.62), transparent 50%),
    radial-gradient(520px 340px at 40% 35%, rgba(80, 40, 14, 0.28), transparent 60%),
    linear-gradient(180deg, #16100a 0%, var(--bg) 40%, #040302 100%);
}
body[data-drink="wine"] {
  --bg: #10060a;
  --bg-2: #1a0c12;
  --panel: #241018;
  --amber: #b8384c;
  --amber-deep: #5c1220;
  --foam: #f5e6e4;
  --muted: #b08a90;
  --card: rgba(36, 16, 22, 0.9);
  --glow-rgb: 110, 22, 38;
  --accent-rgb: 184, 56, 76;
  --hero-tint: rgba(18, 6, 10, 0.55);
  --hero-mid: rgba(70, 14, 28, 0.26);
  --hero-tint-2: rgba(6, 2, 4, 0.75);
  --brand-grad: linear-gradient(120deg, #f0d4cc 4%, #b8384c 46%, #5c1220 100%);
  --tab-active: linear-gradient(180deg, #d46878, #b8384c);
  background:
    radial-gradient(1100px 580px at 10% -10%, rgba(110, 22, 38, 0.38), transparent 54%),
    radial-gradient(860px 500px at 92% 2%, rgba(80, 16, 30, 0.32), transparent 50%),
    radial-gradient(540px 320px at 46% 30%, rgba(140, 36, 56, 0.16), transparent 60%),
    linear-gradient(180deg, #1a0c12 0%, var(--bg) 40%, #060204 100%);
}
body[data-drink="traditional"] {
  --bg: #12140f;
  --bg-2: #1a1c14;
  --panel: #242818;
  --amber: #c4a86a;
  --amber-deep: #6a7a48;
  --foam: #f4f0e4;
  --muted: #b0a888;
  --card: rgba(36, 40, 26, 0.88);
  --glow-rgb: 140, 150, 90;
  --accent-rgb: 196, 168, 106;
  --hero-tint: rgba(28, 32, 18, 0.4);
  --hero-mid: rgba(180, 160, 100, 0.14);
  --hero-tint-2: rgba(10, 12, 8, 0.72);
  --brand-grad: linear-gradient(120deg, #f4f0e4 4%, #c4a86a 42%, #6a7a48 96%);
  --tab-active: linear-gradient(180deg, #ddd0a8, #c4a86a);
  background:
    radial-gradient(1100px 600px at 14% -6%, rgba(196, 168, 106, 0.26), transparent 52%),
    radial-gradient(860px 500px at 90% 4%, rgba(90, 110, 60, 0.28), transparent 48%),
    radial-gradient(600px 340px at 48% 22%, rgba(160, 140, 80, 0.12), transparent 58%),
    linear-gradient(180deg, #1c2014 0%, var(--bg) 42%, #0a0c08 100%);
}
body[data-drink="coffee"] {
  --bg: #1a0f0a;
  --bg-2: #2a1810;
  --panel: #3a2418;
  --amber: #d4a574;
  --amber-deep: #8b5a2b;
  --foam: #f3e6d4;
  --muted: #c4a890;
  --card: rgba(58, 36, 24, 0.9);
  --glow-rgb: 212, 165, 116;
  --accent-rgb: 212, 165, 116;
  --hero-tint: rgba(26, 15, 10, 0.52);
  --hero-mid: rgba(92, 56, 36, 0.28);
  --hero-tint-2: rgba(12, 8, 5, 0.74);
  --brand-grad: linear-gradient(120deg, #f3e6d4 6%, #d4a574 46%, #8b5a2b 100%);
  --tab-active: linear-gradient(180deg, #e8c4a0, #d4a574);
  background:
    radial-gradient(920px 540px at 50% -8%, rgba(212, 165, 116, 0.36), transparent 55%),
    radial-gradient(700px 480px at 12% 20%, rgba(92, 56, 36, 0.48), transparent 50%),
    radial-gradient(640px 420px at 90% 10%, rgba(58, 36, 24, 0.62), transparent 48%),
    linear-gradient(180deg, #4a2e1c 0%, #2a1810 38%, #140c08 100%);
}

body[data-drink="beer"] .glow {
  background: radial-gradient(circle, rgba(196, 118, 28, 0.2), transparent 70%);
}
body[data-drink="makgeolli"] .glow {
  background: radial-gradient(circle, rgba(245, 232, 190, 0.28), transparent 68%);
}
body[data-drink="whiskey"] .glow {
  background: radial-gradient(circle, rgba(140, 72, 28, 0.22), transparent 70%);
}
body[data-drink="wine"] .glow {
  background: radial-gradient(circle, rgba(110, 22, 38, 0.26), transparent 70%);
}
body[data-drink="traditional"] .glow {
  background: radial-gradient(circle, rgba(140, 150, 90, 0.26), transparent 68%);
}
body[data-drink="coffee"] .glow {
  background: radial-gradient(circle, rgba(212, 165, 116, 0.28), transparent 68%);
}
body[data-drink="beer"] .pour-a { --beer: #e0a030; }
body[data-drink="beer"] .pour-b { --beer: #8b4518; }
body[data-drink="beer"] .pour-c { --beer: #f0c060; }
body[data-drink="makgeolli"] .pour-a { --beer: #f0e6c8; }
body[data-drink="makgeolli"] .pour-b { --beer: #e8d9a8; }
body[data-drink="makgeolli"] .pour-c { --beer: #faf6eb; }
body[data-drink="traditional"] .pour-a { --beer: #c4a86a; }
body[data-drink="traditional"] .pour-b { --beer: #6a7a48; }
body[data-drink="traditional"] .pour-c { --beer: #e8d9a8; }
body[data-drink="whiskey"] .pour-a { --beer: #c8782e; }
body[data-drink="whiskey"] .pour-b { --beer: #6b3010; }
body[data-drink="whiskey"] .pour-c { --beer: #d4a04a; }
body[data-drink="wine"] .pour-a { --beer: #5c1220; }
body[data-drink="wine"] .pour-b { --beer: #e8d48a; }
body[data-drink="wine"] .pour-c { --beer: #b8384c; }
body[data-drink="coffee"] .pour-a { --beer: #d4a574; }
body[data-drink="coffee"] .pour-b { --beer: #5c3824; }
body[data-drink="coffee"] .pour-c { --beer: #e8c4a0; }

body[data-drink="coffee"] .hbar-fill.taste-fill {
  background: linear-gradient(90deg, #8b5a2b, #d4a574);
}

.hero {
  /* Stay in main column — avoid 100vw breakout (scrollbar gutter = right shift) */
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  /* visible: multi-line .hero-brand Hangul ascenders were clipped by hidden */
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Hug title/search content — do not force a viewport-tall banner */
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem 0 1.5rem;
  box-sizing: border-box;
  border-radius: 0;
  background: transparent;
}
.hero::before {
  /* Soft side wash only — do not bleed over stats-bar below */
  content: "";
  position: absolute;
  inset: -8% -4% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 12% 35%, rgba(var(--glow-rgb), 0.18), transparent 72%),
    radial-gradient(ellipse 50% 65% at 88% 30%, rgba(var(--glow-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
  filter: blur(2px);
  transition: background 0.55s ease;
}
.hero-collage {
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100%;
  max-width: none;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.hero-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Centered soft read panel for centered hero copy */
    radial-gradient(
      ellipse 70% 85% at 50% 42%,
      color-mix(in srgb, var(--bg) 78%, transparent) 0%,
      color-mix(in srgb, var(--bg) 42%, transparent) 42%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      transparent 20%,
      color-mix(in srgb, var(--bg) 35%, transparent) 62%,
      var(--bg) 100%
    ),
    /* Symmetric side vignettes — avoid right-only darkening that skews composition */
    radial-gradient(ellipse 55% 90% at 8% 42%, transparent 22%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(ellipse 55% 90% at 92% 42%, transparent 22%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(ellipse 60% 50% at 50% 78%, rgba(var(--glow-rgb), 0.14), transparent 72%);
  transition: background 0.55s ease;
}
/* Collage space only — out of flow so it never skews hero copy */
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-visual {
  /* Decorative only — never participate in flex layout */
  display: none;
}
.collage-item {
  position: absolute;
  width: clamp(78px, 11vw, 148px);
  opacity: 0;
  animation: collageIn 0.9s ease forwards, collageFloat 7.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.07s), calc(0.9s + var(--i, 0) * 0.28s);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
}
.collage-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  transform: rotate(var(--rot, 0deg));
}
.collage-i0 { top: 6%; right: 2%; width: clamp(90px, 13vw, 160px); --rot: 9deg; }
.collage-i1 { top: 14%; left: 2%; right: auto; width: clamp(70px, 10vw, 128px); --rot: -7deg; opacity: 0; }
.collage-i2 { top: 8%; right: 16%; width: clamp(64px, 9vw, 112px); --rot: 4deg; }
.collage-i3 { top: 40%; left: 4%; right: auto; width: clamp(86px, 12vw, 150px); --rot: -11deg; }
.collage-i4 { top: 48%; right: 20%; width: clamp(68px, 9.5vw, 120px); --rot: 14deg; }
.collage-i5 { top: 26%; left: 16%; right: auto; width: clamp(72px, 10vw, 130px); --rot: -3deg; }
.collage-i6 { bottom: 12%; right: 8%; width: clamp(80px, 11vw, 140px); --rot: 6deg; }
.collage-i7 { bottom: 8%; left: 8%; right: auto; width: clamp(66px, 9vw, 118px); --rot: -9deg; }
.collage-i8 { top: 56%; left: 22%; right: auto; width: clamp(60px, 8.5vw, 108px); --rot: 12deg; }
.collage-i9 { top: 4%; right: 30%; width: clamp(58px, 8vw, 100px); --rot: -5deg; }
.collage-i10 { bottom: 20%; right: 34%; width: clamp(64px, 9vw, 114px); --rot: 8deg; }
.collage-i11 { top: 34%; left: 1%; right: auto; width: clamp(74px, 10.5vw, 136px); --rot: -14deg; }
@keyframes collageIn {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 0.82; transform: none; }
}
@keyframes collageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-title {
  margin: 0;
  overflow: visible;
}
.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  letter-spacing: 0.04em;
  /* Compact display size; slight pad + overflow for ink, not tall line boxes */
  line-height: 0.95;
  overflow: visible;
  padding-block: 0.04em 0.02em;
  word-break: keep-all;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f7efe2;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: titleIn 1s ease both;
}
/* Hangul titles: Noto + solid fill (Bebas has no KR / clipped fallback ink).
   Slightly smaller max than Latin so a wrap stays ~2× line boxes, not 3–4×. */
body[data-drink="makgeolli"] .hero-brand,
body[data-drink="traditional"] .hero-brand {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8.2vw, 5.4rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  padding-block: 0.05em 0.02em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #f3e4b8;
  color: #f3e4b8;
  animation-name: titleInFade;
}
@keyframes titleInFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--foam);
  max-width: 28rem;
  margin: 1rem auto 1.6rem;
  line-height: 1.45;
  animation: titleIn .9s .1s ease both;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.search-shell {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  /* Lift off hero: lighter panel+foam surface, muted brand edge (theme-aware) */
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--panel) 66%, var(--foam) 34%) 0%,
      color-mix(in srgb, var(--panel) 78%, rgba(var(--accent-rgb), 1) 22%) 100%
    );
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--foam) 22%, transparent),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  animation: titleIn .9s .2s ease both;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  transition: border-color .2s ease, box-shadow .2s ease, background .35s ease;
}
.search-shell:focus-within {
  border-color: rgba(var(--accent-rgb), 0.68);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--foam) 26%, transparent),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(var(--accent-rgb), 0.18),
    0 12px 32px rgba(0, 0, 0, 0.42);
}
.search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  min-height: 44px;
}
.search-shell input::placeholder {
  color: color-mix(in srgb, var(--muted) 38%, var(--foam) 62%);
  opacity: 1;
}
.search-shell button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  min-height: 44px;
  min-width: 4.5rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a120e;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.search-shell button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  animation: titleIn .9s .28s ease both;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: .2s;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
}
.chip:hover, .chip.active {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .12);
}
.search-hint {
  margin: 0.85rem 0 0;
  color: #8d7b68;
  font-size: 0.82rem;
}

.glass-stack {
  /* Hidden: product collage is the hero visual; this block used to inflate height */
  display: none;
  position: absolute;
  inset: 10% 8% auto auto;
  width: min(280px, 70%);
  height: 340px;
}
.pour {
  position: absolute;
  bottom: 0;
  width: 78px;
  border-radius: 10px 10px 18px 18px / 8px 8px 28px 28px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 20px 40px rgba(0,0,0,.35);
  overflow: hidden;
  animation: bob 5s ease-in-out infinite;
}
.pour::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 6%;
  height: 18%;
  border-radius: 40%;
  background: rgba(247, 239, 226, 0.92);
}
.pour::after {
  content: "";
  position: absolute;
  inset: 22% 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(180deg, var(--beer, #e2a83a), #5c3014 90%);
}
.pour-a { left: 18%; height: 78%; --beer: #e2a83a; animation-delay: 0s; }
.pour-b { left: 48%; height: 92%; --beer: #8b4518; animation-delay: .4s; width: 86px; }
.pour-c { left: 0; height: 64%; --beer: #f0d078; animation-delay: .8s; opacity: .9; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats-section {
  position: relative;
  z-index: 3;
  margin: 0.35rem 0 2rem;
}

.ad-slot {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 1.6rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  min-height: 100px;
  overflow: hidden;
}
.ad-slot-banner {
  min-height: 110px;
}
.ad-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #7a6a5a;
  opacity: 0.75;
}
.ad-slot .adsbygoogle {
  display: block;
  min-height: 90px;
}

/* AdFit 728×90 — desktop/tablet (≥728px); mobile uses AdSense fallback */
.kakao-ad-wrap {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 90px;
}
.ad-slot-kakao .ad-mobile-fallback {
  display: block;
}
@media (min-width: 840px) {
  .kakao-ad-wrap {
    display: flex;
  }
  .ad-slot-kakao .ad-mobile-fallback {
    display: none !important;
  }
  .ad-slot-kakao {
    min-height: 120px;
  }
  /* Official data-ad-onfail → show AdSense when AdFit has no fill */
  .ad-slot-kakao.adfit-failed .kakao-ad-wrap {
    display: none !important;
  }
  .ad-slot-kakao.adfit-failed .ad-mobile-fallback {
    display: block !important;
  }
}
/* SEO pages: Kakao-only slot — hide empty banner below 728px */
@media (max-width: 839px) {
  .seo-main .ad-slot-kakao {
    display: none;
  }
}

/* Content + left/right vertical ads in side gutters (below hero) */
.content-with-rails {
  display: block;
  width: 100%;
}
.content-main {
  min-width: 0;
  width: 100%;
}
.ad-rail {
  display: none;
}
.ad-rail .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 600px;
}
@media (min-width: 1280px) {
  /* Break out to use page side margins beside the 1120px column */
  .content-with-rails {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    gap: 0.6rem;
    align-items: start;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: max(0.4rem, calc((100vw - 1120px) / 2 - 132px));
    box-sizing: border-box;
  }
  .content-main {
    width: min(1120px, 100%);
    justify-self: center;
  }
  .ad-rail {
    display: block;
    position: sticky;
    top: 1rem;
    z-index: 4;
    width: 120px;
    min-width: 120px;
    max-height: calc(100vh - 2rem);
    padding: 0.45rem 0.35rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .ad-rail .adsbygoogle { min-height: 600px; min-width: 100px; }
  .ad-rail-left { justify-self: end; }
  .ad-rail-right { justify-self: start; }
}
@media (min-width: 1480px) {
  .content-with-rails {
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 0.75rem;
    padding-inline: max(0.5rem, calc((100vw - 1120px) / 2 - 168px));
  }
  .ad-rail { width: 160px; min-width: 160px; }
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.stat {
  background: color-mix(in srgb, var(--panel) 92%, #000 8%);
  border: 1px solid color-mix(in srgb, var(--line) 70%, rgba(var(--accent-rgb), 0.35));
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.stat:hover {
  border-color: rgba(var(--accent-rgb), .55);
  background: color-mix(in srgb, var(--panel) 85%, rgba(var(--accent-rgb), 0.12));
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}
.stat.active {
  border-color: rgba(var(--accent-rgb), .75);
  background: color-mix(in srgb, var(--panel) 78%, rgba(var(--accent-rgb), 0.18));
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.stat span {
  color: color-mix(in srgb, var(--muted) 70%, var(--foam) 30%);
  font-size: 0.85rem;
}
.stats-filters {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .12);
}
.stats-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.stats-filters-head strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
}
.stats-filters-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stats-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stats-filter-chips .chip { font-size: 0.78rem; }
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 1.4rem 0 0.4rem;
}
.load-more-btn {
  border: 1px solid rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .1);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.load-more-btn:hover {
  background: rgba(var(--accent-rgb), .2);
  border-color: rgba(var(--accent-rgb), .7);
}
.load-more-btn:disabled {
  opacity: .55;
  cursor: wait;
}
.drink-tab-count {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.drink-tab.active .drink-tab-count { color: rgba(var(--accent-rgb), .95); }

.section-head { margin: 2.5rem 0 1.2rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.section-head p { margin: 0.4rem 0 0; color: var(--muted); }

.results-grid, .trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.beer-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s;
  /* Opacity-only enter: transform on the card breaks native lazy/decoding
     intersection for package thumbs in some Chromium builds. */
  animation: cardIn .5s ease both;
}
.beer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), .4);
}
@keyframes cardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.beer-card .thumb {
  height: 190px;
  --pkg-color: #e2a83a;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pkg-color) 42%, #2a1c12), #140f0c 72%);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.package-thumb .pkg-blur,
.package-hero .pkg-blur {
  position: absolute;
  inset: -28%;
  z-index: 0;
  background-image: var(--pkg-image);
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(1.4);
  opacity: 0.58;
  transform: scale(1.2);
  pointer-events: none;
}
.package-thumb .pkg-wash,
.package-hero .pkg-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--pkg-color) 48%, transparent), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.35), transparent 55%);
}
.package-thumb img {
  position: relative;
  z-index: 1;
  max-height: 170px;
  max-width: 72%;
  width: auto;
  height: auto;
  min-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.45));
  transition: transform .25s ease;
}
.beer-card:hover .package-thumb img { transform: translateY(-4px) scale(1.03); }
.swatch {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
}
.mini-bars {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 0.7rem;
}
.mini-bar {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.68rem;
  color: #8d7b68;
}
.mini-bar i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.mini-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: inherit;
}
.beer-card .body { padding: 0.95rem 1rem 1.15rem; }
.beer-card h3,
.beer-card .ko,
.modal-body h2,
.modal-ko {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.beer-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beer-card .ko {
  margin: 0.2rem 0 0.55rem;
  color: var(--amber);
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tag {
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag.family { color: var(--foam); border-color: rgba(var(--accent-rgb), .3); }

.family-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.family-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
}
.family-tab.active {
  color: #1a120e;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border-color: transparent;
  font-weight: 700;
}

.taxonomy-panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(28, 21, 16, 0.85);
  padding: 1.2rem;
}
.family-summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  line-height: 1.45;
}
.family-fun {
  color: var(--muted);
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
}
.group-block { margin-bottom: 1.3rem; }
.group-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--amber);
}
.style-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.style-card {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: .2s;
}
.style-card:hover { border-color: rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.06); }
.style-card strong { display: block; font-size: 0.92rem; }
.style-card em {
  display: block;
  font-style: normal;
  color: var(--amber);
  font-size: 0.8rem;
  margin: 0.15rem 0 0.4rem;
}
.style-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.style-metrics {
  margin-top: 0.45rem;
  color: #8d7b68;
  font-size: 0.72rem;
}

.trivia-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(var(--accent-rgb),.08), rgba(28,21,16,.9));
}
.trivia-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.trivia-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }

.site-footer {
  padding: 3rem 0 max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  color: #8d7b68;
  font-size: 0.82rem;
}
.site-footer p { margin: 0.35rem 0; line-height: 1.5; word-break: keep-all; }
.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.seo-footer-links a {
  color: var(--muted);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.seo-footer-links a:hover { color: var(--amber); }
.footer-note { margin-top: 0.3rem; }
.footer-credit {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
  color: #5f5348;
  opacity: 0.85;
}
.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(95, 83, 72, 0.4);
}
.footer-credit a:hover { color: var(--muted); opacity: 1; }

.detail-modal {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  width: min(760px, calc(100% - 1.5rem));
  max-height: min(92vh, 92dvh);
  background: #1a130f;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-modal::backdrop {
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(4px);
}
.modal-inner {
  display: grid;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-hero {
  min-height: 260px;
  --pkg-color: #e2a83a;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pkg-color) 28%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--pkg-color) 18%, #2a1c12), #1a130f);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.package-hero .package-photo {
  position: relative;
  z-index: 1;
  max-height: 240px;
  max-width: min(280px, 70%);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.5));
  animation: pourIn .55s ease both;
}
@keyframes pourIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 0.4rem;
  min-width: 0;
}
.chart-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255,255,255,0.025);
  min-width: 0;
  overflow: hidden;
}
.chart-card.chart-wide { grid-column: 1 / -1; }
.chart-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--amber);
}
.radar { width: 100%; max-width: 260px; height: auto; margin: 0 auto; display: block; }
.hbar { margin-bottom: 0.7rem; }
.hbar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hbar-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.hbar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .6s ease;
}
.chart-note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #8d7b68;
}
.share-stack {
  display: flex;
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  margin-bottom: 0.55rem;
}
.share-stack i { display: block; height: 100%; }
.share-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.share-legend i {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.ing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.ing-list strong { color: var(--ink); margin-right: 0.35rem; }
@media (max-width: 860px) {
  .charts { grid-template-columns: 1fr; }
  .chart-card.chart-wide { grid-column: auto; }
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  background: rgba(0,0,0,.45);
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.modal-body { padding: 0 1.4rem 1.5rem; margin-top: -2.5rem; position: relative; }
.modal-body h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
}
.modal-ko {
  color: var(--amber);
  margin: 0.2rem 0 0.8rem;
  line-height: 1.4;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.breadcrumb span.sep { opacity: 0.5; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1rem 0;
}
.metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
}
.metric b { display: block; color: var(--amber); font-size: 1.05rem; }
.metric small { color: var(--muted); }
.desc { line-height: 1.6; color: #e8ddd0; }
.fun-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.fun-list li {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--amber);
  background: rgba(226,168,58,0.08);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.taste-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tasting-notes, .materials-row { margin-top: 1rem; }
.tasting-notes h3, .materials-row h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: #f0e6d8;
}
.taste-note {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.55rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(240, 230, 216, 0.08);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8ddd0;
}
.taste-note strong { color: #c9a27a; font-weight: 600; }

.buy-box {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(226, 168, 58, 0.06);
}
.buy-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d078, var(--amber));
  color: #1a120e;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.buy-cta:hover { filter: brightness(1.05); }
.buy-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
  justify-content: center;
}
.buy-alt {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(226,168,58,.35);
}
.buy-alt:hover { color: var(--amber); }
.buy-note {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
}
.buy-disclosure {
  margin: 0.45rem 0 0;
  color: #8d7b68;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}
.package-hero {
  position: relative;
}
.img-credit {
  position: absolute;
  left: 0.65rem;
  bottom: 0.5rem;
  margin: 0;
  z-index: 3;
  color: rgba(244, 235, 224, 0.55);
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.img-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 1px;
  text-decoration-color: rgba(244, 235, 224, 0.35);
}
.img-credit a:hover { color: rgba(244, 235, 224, 0.85); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .glow {
    width: 70vw;
    height: 70vw;
    opacity: 0.85;
    filter: blur(16px);
    animation: none;
  }

  .site-header, main, .site-footer {
    width: min(1120px, calc(100% - 1rem));
  }
  .site-header {
    padding: max(0.7rem, env(safe-area-inset-top, 0px)) 0 0.2rem;
  }
  .brand-icon { width: 1.9rem; height: 1.9rem; flex-shrink: 0; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub {
    font-size: 0.62rem;
    max-width: 14rem;
    white-space: normal;
  }
  .nav-links { display: none; }

  /* 6 drink tabs: horizontal scroll, no clipping */
  .drink-tabs {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    margin: 0.45rem 0 0.1rem;
    padding: 0.3rem;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .drink-tabs::-webkit-scrollbar { display: none; }
  .drink-tab {
    min-width: 4.4rem;
    min-height: 48px;
    padding: 0.45rem 0.7rem;
    scroll-snap-align: start;
  }
  .drink-tab-ko { font-size: 0.9rem; }
  .drink-tab-en { font-size: 0.55rem; letter-spacing: 0.02em; }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem 0 1.1rem;
    box-sizing: border-box;
    border-radius: 0;
  }
  .hero::before {
    inset: -4% -2% 0;
  }
  .hero-visual { display: none; }
  .hero-collage { opacity: 0.55; inset: 0; }
  .hero-collage::after {
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg) 48%, transparent) 0%,
        color-mix(in srgb, var(--bg) 62%, transparent) 42%,
        var(--bg) 100%
      ),
      radial-gradient(ellipse 100% 85% at 50% 18%, transparent 18%, rgba(0, 0, 0, 0.22) 100%),
      radial-gradient(ellipse 80% 50% at 50% 90%, rgba(var(--glow-rgb), 0.12), transparent 72%);
  }
  .collage-item { opacity: 0; width: clamp(48px, 18vw, 84px); }
  .collage-item img { max-height: 120px; }
  .collage-i0 { top: 4%; right: 2%; left: auto; }
  .collage-i1 { top: 10%; left: 2%; right: auto; }
  .collage-i2 { top: 2%; right: 28%; left: auto; }
  .collage-i3 { top: 36%; left: 4%; right: auto; }
  .collage-i4 { top: 42%; right: 34%; left: auto; }
  .collage-i5,
  .collage-i6,
  .collage-i7,
  .collage-i8,
  .collage-i9,
  .collage-i10,
  .collage-i11 { display: none; }
  .hero-brand {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
  }
  body[data-drink="makgeolli"] .hero-brand,
  body[data-drink="traditional"] .hero-brand {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .hero-lead {
    font-size: clamp(0.88rem, 3.4vw, 1.05rem);
    line-height: 1.45;
    margin: 0.35rem auto 0.7rem;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
  }
  .search-shell {
    max-width: none;
    padding: 0.28rem;
    border-radius: 16px;
  }
  .search-shell input {
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
    min-height: 44px;
  }
  .search-shell button {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .quick-chips { gap: 0.4rem; margin-top: 0.65rem; }
  .chip {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    min-height: 40px;
  }
  .search-hint { font-size: 0.68rem; margin-top: 0.4rem; }

  .stats-section { margin: 0.55rem 0 1.2rem; }
  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.35rem 0 0;
  }
  .stat {
    padding: 0.75rem 0.65rem;
    min-height: 64px;
  }
  .stat strong { font-size: 1.25rem; }
  .stat span { font-size: 0.72rem; }
  .stats-filters {
    padding: 0.75rem 0.8rem;
    display: grid;
    gap: 0.55rem;
  }
  .stats-filters-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .stats-filters-head button {
    min-height: 40px;
    padding: 0.25rem 0;
  }
  .stats-filter-chips { gap: 0.4rem; }
  .load-more-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
  .drink-tab-count { font-size: 0.58rem; }

  .section-head { margin: 1rem 0 0.6rem; }
  .section-head h2 { font-size: clamp(1.25rem, 5vw, 1.55rem); }
  .section-head p { font-size: 0.8rem; }

  /* Phone + tablet: 2-col product grid (readable at ~320–375px) */
  .results-grid, .trivia-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .beer-card {
    border-radius: 14px;
    min-width: 0;
  }
  .beer-card .thumb { height: 118px; }
  .package-thumb img {
    max-height: 100px;
    max-width: 72%;
    min-height: 56px;
  }
  .beer-card .body { padding: 0.5rem 0.55rem 0.65rem; }
  .beer-card h3 {
    font-size: 0.86rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .beer-card .ko {
    font-size: 0.7rem;
    margin: 0.1rem 0 0.3rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .mini-bars { gap: 0.2rem; margin-bottom: 0.3rem; }
  .mini-bar {
    grid-template-columns: 1.9rem 1fr;
    gap: 0.28rem;
    font-size: 0.58rem;
  }
  .mini-bar span { font-size: 0.58rem; }
  .meta-row { gap: 0.22rem; }
  .tag { font-size: 0.6rem; padding: 0.14rem 0.32rem; }
  .beer-card .tag:nth-child(n+4) { display: none; }

  .family-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
    margin-bottom: 0.85rem;
  }
  .family-tabs::-webkit-scrollbar { display: none; }
  .family-tab {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
  .taxonomy-panel { padding: 0.85rem; }
  .family-summary, .family-fun { font-size: 0.85rem; }
  .style-list { grid-template-columns: 1fr; gap: 0.5rem; }
  .style-card {
    padding: 0.8rem;
    min-height: 44px;
  }
  .trivia-card { padding: 0.85rem; }
  .trivia-card h3 { font-size: 1rem; }
  .trivia-card p { font-size: 0.82rem; }

  .ad-slot {
    margin: 0.25rem 0 1.1rem;
    padding: 0.5rem 0.55rem 0.65rem;
    min-height: 0;
  }

  /* Near full-screen detail on mobile / tablet */
  .detail-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: 0;
  }
  .modal-inner {
    max-height: 100%;
    min-height: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .modal-hero { min-height: 200px; }
  .package-hero .package-photo {
    max-height: 200px;
    max-width: min(240px, 62%);
  }
  .modal-close {
    top: max(0.55rem, env(safe-area-inset-top, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
  }
  .modal-body {
    padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    margin-top: -1.6rem;
  }
  .modal-body h2 {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    word-break: keep-all;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .charts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .chart-card { padding: 0.75rem; }
  .chart-card.chart-wide { grid-column: auto; }
  .radar { max-width: 220px; }
  .buy-box { padding: 0.85rem; }
  .buy-cta {
    min-height: 48px;
    font-size: 0.95rem;
  }
  .site-footer {
    padding: 1.2rem 0 max(1.6rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    font-size: 0.75rem;
  }
  .seo-footer-links { gap: 0.25rem 0.45rem; }
}

/* Larger phones + small tablets: slightly roomier 2-col cards */
@media (min-width: 480px) and (max-width: 860px) {
  .results-grid, .trivia-grid { gap: 0.65rem; }
  .beer-card .thumb { height: 140px; }
  .package-thumb img { max-height: 120px; min-height: 72px; }
  .beer-card .body { padding: 0.6rem 0.65rem 0.75rem; }
  .beer-card h3 {
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .beer-card .ko { font-size: 0.74rem; }
  .stats-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .beer-card .tag:nth-child(n+3) { display: none; }
  .drink-tab {
    min-width: 3.9rem;
    padding: 0.4rem 0.55rem;
  }
  .drink-tab-en { display: none; }
  .hero-brand { font-size: clamp(1.85rem, 10.5vw, 2.6rem); }
  body[data-drink="makgeolli"] .hero-brand,
  body[data-drink="traditional"] .hero-brand {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }
  .search-shell {
    flex-wrap: wrap;
    border-radius: 14px;
  }
  .search-shell input { width: 100%; flex: 1 1 100%; }
  .search-shell button {
    width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .drink-tab { min-width: 3.55rem; }
  .stat strong { font-size: 1.1rem; }
  .results-grid, .trivia-grid { gap: 0.45rem; }
  .beer-card .thumb { height: 108px; }
  .package-thumb img { max-height: 90px; min-height: 48px; }
  .beer-card .body { padding: 0.45rem 0.48rem 0.55rem; }
  .beer-card h3 { font-size: 0.8rem; }
  .beer-card .ko { font-size: 0.66rem; }
}

/* —— SEO hub / item pages —— */
.seo-body .brand-mark { text-decoration: none; color: inherit; }
.seo-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}
.seo-header { position: relative; }
.seo-drink-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}
.seo-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}
.seo-pill.active,
.seo-pill:hover {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}
.seo-hero {
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seo-eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--amber);
}
.seo-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.seo-hero h1 small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-serif);
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--muted);
  font-style: italic;
}
.seo-lead {
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.65;
  margin-inline: auto;
}
.seo-count { color: var(--muted); font-size: 0.92rem; }
.seo-count a, .seo-more a, .seo-crumb a { color: var(--amber); }
.seo-section { margin: 2.2rem 0; }
.seo-section h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
}
.seo-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.seo-link-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.seo-link-list a:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.seo-link-list small { color: var(--muted); }
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.seo-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(34, 24, 15, 0.55);
}
.seo-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.seo-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a120c;
  display: grid;
  place-items: center;
}
.seo-card-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.seo-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}
.seo-card-body p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.78rem; }
.seo-card-meta { font-size: 0.72rem !important; }
.seo-crumb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.seo-item {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 1.75rem;
  align-items: start;
}
.seo-item-media img {
  width: 100%;
  border-radius: 16px;
  background: #1a120c;
  object-fit: contain;
  aspect-ratio: 1;
}
.seo-item-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 400;
}
.seo-sub { color: var(--muted); }
.seo-metrics {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.seo-metrics li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.seo-metrics b { display: block; font-size: 1.05rem; }
.seo-metrics span { color: var(--muted); font-size: 0.7rem; }
.seo-desc { line-height: 1.7; color: var(--foam); }
.seo-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.seo-tags li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.seo-buy { margin: 1.25rem 0; }
.seo-footer { text-align: center; }

.scene-gallery {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 14, 10, 0.55);
}
.scene-gallery h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.scene-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.scene-more-sentinel {
  height: 1px;
  width: 100%;
  margin: 0.5rem 0 0;
  pointer-events: none;
}
.scene-more-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.scene-more-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(20, 14, 10, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  cursor: pointer;
}
.scene-card[hidden] {
  display: none !important;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.scene-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 8, 6, 0.45);
}
.scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #140f0c;
}
.scene-card figcaption { padding: 0.7rem 0.8rem 0.85rem; }
.scene-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}
.scene-credit {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}
.scene-credit a { color: var(--muted); }
@media (max-width: 1100px) {
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .seo-main {
    width: min(1120px, calc(100% - 1rem));
    padding: 0.85rem 0 2rem;
  }
  .seo-drink-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
  }
  .seo-drink-nav::-webkit-scrollbar { display: none; }
  .seo-pill {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
  }
  .seo-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
    word-break: keep-all;
  }
  .seo-lead { font-size: 0.92rem; }
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .seo-link-list {
    grid-template-columns: 1fr;
  }
  .scene-gallery {
    width: min(1120px, calc(100% - 1rem));
    margin: 1.25rem auto 2rem;
    padding: 0.9rem;
  }
}
@media (min-width: 480px) and (max-width: 860px) {
  .seo-grid { gap: 0.7rem; }
}
@media (max-width: 720px) {
  .seo-item { grid-template-columns: 1fr; }
  .seo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-grid { grid-template-columns: 1fr; }
  .seo-card {
    grid-template-columns: 64px 1fr;
    min-height: 44px;
  }
}

/* —— Privacy / legal page —— */
.legal-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.legal-doc {
  color: var(--text, #f3ebe3);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: keep-all;
}
.legal-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.legal-eyebrow a {
  color: var(--muted, #a89480);
  text-decoration: none;
}
.legal-eyebrow a:hover { color: var(--amber, #d4a574); }
.legal-doc h1 {
  margin: 0 0 0.75rem;
  font-family: "Instrument Serif", "Noto Sans KR", serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
}
.legal-meta {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background: rgba(20, 14, 10, 0.45);
  color: var(--muted, #a89480);
  font-size: 0.88rem;
  line-height: 1.55;
}
.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber, #d4a574);
}
.legal-doc h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.legal-doc p { margin: 0.55rem 0; }
.legal-doc ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.25rem;
}
.legal-doc li { margin: 0.3rem 0; }
.legal-doc a {
  color: var(--amber, #d4a574);
  text-underline-offset: 2px;
}
.legal-doc code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: rgba(20, 14, 10, 0.55);
  color: var(--muted, #a89480);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .legal-main { padding: 1rem 1rem 2.5rem; }
  .legal-table { font-size: 0.8rem; }
}

/* —— Editorial / AdSense content density —— */
.content-no-rails {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.content-no-rails .content-main { width: 100%; }
.editorial-home {
  margin: 0.5rem 0 1.75rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid rgba(var(--accent-rgb, 224, 160, 48), 0.28);
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(var(--foam-rgb, 247, 239, 226), 0.06),
    rgba(20, 14, 10, 0.35)
  );
}
.legal-doc .editorial-home {
  margin: 1.25rem 0 1.75rem;
}
.legal-doc .editorial-home .section-head h2 {
  font-size: 1.35rem;
}
.editorial-home-body {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text, #f3ebe3);
  word-break: keep-all;
}
.editorial-home-body p { margin: 0.55rem 0; }
.editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.editorial-links a {
  color: var(--amber, #e0a030);
  text-decoration: none;
  font-weight: 500;
}
.editorial-links a:hover { text-decoration: underline; }
.seo-prose {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text, #f3ebe3);
  word-break: keep-all;
  margin: 0.85rem 0 1rem;
  max-width: 42rem;
}
.seo-prose p { margin: 0.55rem 0; }
.seo-prose a { color: var(--amber, #e0a030); }
.guide-index-list {
  margin: 1.2rem 0;
  padding-left: 1.2rem;
  line-height: 1.85;
}
.guide-index-list a { color: var(--amber, #e0a030); }
@media (max-width: 720px) {
  .editorial-home { padding: 1rem 1rem 1.15rem; }
  .editorial-home-body { font-size: 0.9rem; }
}

.scene-link { display: block; color: inherit; text-decoration: none; }
.scene-link:hover img { opacity: 0.92; }
.modal-scene-gallery {
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}
.modal-body .scene-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .modal-body .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Discovery-first renewal / Android WebView —— */
:root { --on-accent: #17100b; }
body[data-drink="wine"],
body[data-drink="whiskey"] { --on-accent: #fff7ef; }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--foam) 65%, var(--amber) 35%);
  outline-offset: 3px;
}
.search-shell:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.28), 0 12px 32px rgba(0, 0, 0, 0.42);
}
.search-shell input:focus-visible { outline: 0; }
.drink-tab.active,
.search-shell button,
.family-tab.active,
.buy-cta { color: var(--on-accent); }
.drink-tab.active .drink-tab-en { color: currentColor; }

.hero { padding: 2.2rem 0 2.5rem; }
.hero-copy { max-width: 44rem; }
.hero-atlas {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-question {
  margin: 0;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.13;
  word-break: keep-all;
  animation: titleIn .8s ease both;
}
.hero-question span {
  display: inline-block;
  background: var(--brand-grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 42rem;
  margin: 1rem auto 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: color-mix(in srgb, var(--foam) 84%, var(--muted) 16%);
}

.discovery-steps {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) 1.8fr;
  gap: 1.5rem;
  align-items: center;
  margin: .25rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .09), rgba(255,255,255,.015));
}
.section-kicker {
  margin: 0 0 .25rem;
  color: var(--amber);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.discovery-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.discovery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.discovery-list li {
  min-width: 0;
  padding: .7rem .75rem;
  border-left: 1px solid var(--line);
}
.discovery-list span { display: block; color: var(--amber); font: 1rem var(--font-display); }
.discovery-list strong { display: block; margin-top: .15rem; font-size: .88rem; }
.discovery-list small { display: block; margin-top: .2rem; color: var(--muted); font-size: .7rem; line-height: 1.45; }

.results-section { scroll-margin-top: 1rem; }
.stats-section { margin: 1.6rem 0 2rem; }
.result-skeleton {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,255,255,.025) 30%, rgba(var(--accent-rgb),.1) 45%, rgba(255,255,255,.025) 60%);
  background-size: 250% 100%;
  animation: skeletonMove 1.2s linear infinite;
}
@keyframes skeletonMove { to { background-position-x: -250%; } }
.search-error button {
  display: block;
  margin: .9rem auto 0;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid rgba(var(--accent-rgb),.5);
  border-radius: 999px;
  background: rgba(var(--accent-rgb),.12);
  color: var(--ink);
}

.detail-modal { background: var(--bg-2); }
.modal-inner {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  overflow-x: hidden;
}
.modal-body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.modal-hero {
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pkg-color) 28%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--pkg-color) 18%, var(--panel)), var(--bg-2));
}
.desc { color: color-mix(in srgb, var(--foam) 88%, var(--muted) 12%); }
.fun-list li,
.buy-box { background: rgba(var(--accent-rgb), .075); }
.tasting-notes h3,
.materials-row h3,
.taste-note { color: var(--foam); }
.taste-note strong { color: color-mix(in srgb, var(--amber) 78%, var(--foam) 22%); }

.identity-card {
  margin: 1rem 0 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(var(--accent-rgb), .42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .14), rgba(255,255,255,.025));
}
.identity-head,
.modal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.identity-head h3,
.modal-section-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.confidence-badge {
  flex: 0 0 auto;
  padding: .28rem .55rem;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
}
.identity-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .85rem 0 .7rem;
}
.identity-path span {
  padding: .34rem .58rem;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  font-size: .78rem;
}
.identity-path i { color: var(--muted); font-style: normal; }
.identity-summary { margin: 0; color: var(--foam); font-size: .9rem; line-height: 1.65; }
.identity-evidence { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.identity-evidence summary,
.detail-expand > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--amber);
  font-size: .86rem;
  cursor: pointer;
}
.identity-evidence ul { margin: .3rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.identity-evidence li strong,
.identity-evidence li span { display: block; }
.identity-evidence li strong { font-size: .78rem; color: var(--foam); }
.identity-evidence li span { margin-top: .12rem; font-size: .75rem; line-height: 1.55; color: var(--muted); }
.detail-expand { margin-top: 1rem; border-block: 1px solid var(--line); }
.detail-expand[open] { padding-bottom: .6rem; }

.similar-section { margin-top: 1.5rem; }
.modal-section-head > p { max-width: 16rem; margin: .2rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: right; }
.similar-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 43%);
  gap: .65rem;
  margin-top: .8rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: .45rem;
  width: 100%;
  min-width: 0;
}
.similar-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}
.similar-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, color-mix(in srgb, var(--pkg-color) 35%, var(--panel)), var(--bg-2));
}
.similar-thumb .pkg-blur,
.similar-thumb .pkg-wash { position: absolute; inset: -20%; opacity: .4; }
.similar-thumb img { position: relative; z-index: 1; max-width: 74%; max-height: 108px; object-fit: contain; }
.similar-copy { position: relative; min-width: 0; padding: .7rem .65rem; }
.similar-copy h4 { margin: 0; padding-right: 2.4rem; font-size: .84rem; line-height: 1.35; }
.similar-copy > p { margin: .18rem 0 .45rem; color: var(--amber); font-size: .7rem; }
.similar-score { position: absolute; top: .55rem; right: .55rem; text-align: right; color: var(--amber); }
.similar-score strong { display: block; font: 1rem var(--font-display); }
.similar-score small { display: block; font-size: .5rem; color: var(--muted); }
.similar-reasons { display: flex; flex-wrap: wrap; gap: .25rem; }
.similar-reasons span { padding: .18rem .35rem; border-radius: 999px; background: rgba(var(--accent-rgb),.1); color: var(--muted); font-size: .58rem; }

.external-search-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.external-search-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foam);
  text-decoration: none;
  font-size: .72rem;
}

.mobile-dock { display: none; }

@media (max-width: 860px) {
  .hero { padding: 1.25rem 0 1.35rem; }
  .hero-question { font-size: clamp(1.8rem, 8.4vw, 2.75rem); line-height: 1.18; }
  .hero-atlas { margin-bottom: .45rem; font-size: .62rem; }
  .hero-lead { margin: .65rem auto 1rem; max-width: 21rem; font-size: .88rem; line-height: 1.55; }
  .search-shell { flex-wrap: nowrap; gap: .3rem; border-radius: 16px; }
  .search-shell input { min-width: 0; width: auto; flex: 1 1 auto; padding: .65rem .65rem; font-size: .88rem; }
  .search-shell button { width: auto; min-width: 5.3rem; padding: .65rem .75rem; border-radius: 12px; font-size: .82rem; }
  .quick-chips {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: .2rem;
  }
  .chip { flex: 0 0 auto; scroll-snap-align: start; font-size: .76rem; }

  .discovery-steps { grid-template-columns: 1fr; gap: .75rem; margin: .25rem 0 1.15rem; padding: .9rem; }
  .discovery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; }
  .discovery-heading .section-kicker { display: none; }
  .discovery-heading h2 { font-size: 1.05rem; }
  .discovery-list { gap: .3rem; }
  .discovery-list li { padding: .45rem .4rem; }
  .discovery-list span { font-size: .84rem; }
  .discovery-list strong { font-size: .72rem; line-height: 1.35; }
  .discovery-list small { display: none; }

  .section-head { margin-top: 1.35rem; }
  .stats-section { margin: 1.1rem 0 1.65rem; }
  .ad-slot {
    min-height: 116px;
    margin: 2rem 0 1.5rem;
    background: rgba(255,255,255,.018);
  }
  .ad-slot .adsbygoogle { min-height: 100px; }

  .modal-body {
    margin-top: 0;
    padding: 1rem .85rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .identity-card { padding: .85rem; }
  .identity-head h3,
  .modal-section-head h3 { font-size: 1.18rem; }
  .similar-list { grid-auto-columns: minmax(246px, 82%); }
  .modal-section-head > p { display: none; }
  .modal-body .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .scene-card figcaption { padding: .55rem; }
  .scene-card strong { font-size: .75rem; }
  .scene-credit { font-size: .62rem; }

  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock {
    position: fixed;
    z-index: 20;
    left: .6rem;
    right: .6rem;
    bottom: max(.45rem, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .35rem;
    border: 1px solid rgba(var(--accent-rgb), .25);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-2) 92%, transparent);
    box-shadow: 0 14px 38px rgba(0,0,0,.48);
    backdrop-filter: blur(16px);
  }
  .mobile-dock a,
  .mobile-dock button {
    min-width: 0;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font: .66rem var(--font-body);
    text-decoration: none;
  }
  .mobile-dock span { color: var(--amber); font-size: 1.05rem; line-height: 1; }
}

@media (max-width: 430px) {
  .search-shell { flex-wrap: nowrap; }
  .search-shell input { flex: 1 1 auto; width: 0; }
  .search-shell button { width: auto; }
  .mini-bars { display: none; }
  .beer-card .tag { font-size: .68rem; line-height: 1.2; }
  .beer-card .tag:nth-child(n+2) { display: none; }
  .beer-card h3 { font-size: .88rem; }
  .beer-card .ko { margin-bottom: .42rem; font-size: .72rem; }
  .results-grid.query-results { grid-template-columns: 1fr; }
  .results-grid.query-results .beer-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 152px; }
  .results-grid.query-results .beer-card .thumb { height: 100%; min-height: 152px; }
  .results-grid.query-results .package-thumb img { max-width: 70%; max-height: 130px; }
  .result-skeleton { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
