@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@300;400;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #070707;
  --bg2:   #0e0e0e;
  --bg3:   #151515;
  --bg4:   #1d1d1d;
  --gold:        #c9a84c;
  --gold-light:  #e4c97e;
  --gold-dark:   #8b6914;
  --gold-subtle: rgba(201,168,76,0.10);
  --gold-border: rgba(201,168,76,0.22);
  --gold-border-bright: rgba(201,168,76,0.55);
  --text:        #f0ede6;
  --text-muted:  #b0ab9f;
  --text-subtle: #7a766e;
  --radius: 4px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--easing);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   VIEWS (menu / detail)
   ======================================== */
.view {
  min-height: 100vh;
  display: none;
  flex-direction: column;
}
.view.active { display: flex; }

/* ========================================
   ── MENU VIEW ──
   ======================================== */

/* SITE HEADER */
.site-header {
  text-align: center;
  padding: 52px 24px 36px;
  border-bottom: 1px solid var(--gold-border);
  position: relative;
  background: linear-gradient(to bottom, #090909, var(--bg));
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold-dark));
}

.header-eye {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 9vw, 68px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.site-logo em {
  color: var(--gold);
  font-style: normal;
}

.header-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.ornament-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}
.ornament-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-dark));
}
.ornament-diamond {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* RANKING BANNER */
.ranking-banner {
  background: linear-gradient(135deg, #0c0900, #181200);
  border-bottom: 1px solid var(--gold-border);
  padding: 14px 20px;
}
.ranking-label {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ranking-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.ranking-list::-webkit-scrollbar { display: none; }

.ranking-item {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition);
  padding: 3px 0;
}
.ranking-item[data-id]:hover .r-name { color: var(--gold-light); }
.ranking-item[data-id] .r-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-border); }

.r-num {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  min-width: 16px;
  text-align: right;
}
.r-name {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

/* STICKY NAV */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,7,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
}
.nav-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  flex: none;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--gold); }
.nav-tab.active::after { transform: translateX(-50%) scaleX(1); }

/* BASE FILTER */
.base-filter {
  background: var(--bg2);
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.base-filter::-webkit-scrollbar { display: none; }

.base-btn {
  flex: none;
  padding: 6px 16px;
  border: 1px solid var(--text-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  transition: var(--transition);
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
}
.base-btn:hover { border-color: var(--text); color: var(--text); }
.base-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-subtle); }

/* MENU CONTENT */
.menu-content {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 0 80px;
}

.section-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 36px;
}
.section-eye {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3px;
}
.section-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* BASE GROUP */
.base-group { margin-bottom: 0; }

.base-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 12px;
}
.base-group-label {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  flex: none;
}
.base-group-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
}

/* COCKTAIL LIST */
.cocktail-list { list-style: none; }

.cocktail-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.cocktail-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--row-bg-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  transition: opacity var(--transition);
  pointer-events: none;
}
.cocktail-row:hover::before { opacity: 0.15; }
.cocktail-row:hover {
  background: rgba(201,168,76,0.05);
  border-bottom-color: var(--gold-border);
}
.cocktail-row:hover .row-arrow {
  transform: translateX(5px);
  color: var(--gold);
}
.cocktail-row:hover .row-ja { color: var(--gold-light); }
.cocktail-row:active { background: rgba(201,168,76,0.09); }

.row-names { flex: 1; min-width: 0; }
.row-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color var(--transition);
}
.row-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  display: block;
}
.row-arrow {
  font-size: 16px;
  color: var(--text-muted);
  flex: none;
  transition: transform var(--transition), color var(--transition);
}

/* PRICE FOOTER */
.price-footer {
  background: linear-gradient(to right, #0a0800, #0f0c00, #0a0800);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 22px 24px;
  text-align: center;
}
.price-label { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 2.5px; color: var(--text-muted); margin-bottom: 4px; }
.price-value { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold); font-weight: 400; }
.price-note { font-size: 12px; color: var(--text-muted); margin-top: 5px; letter-spacing: 0.05em; }

/* SITE FOOTER */
.site-footer {
  border-top: 1px solid var(--gold-border);
  padding: 32px 24px;
  text-align: center;
  background: var(--bg2);
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 10px; }
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-info { font-size: 13px; color: var(--text-muted); line-height: 2; }

/* ========================================
   ── COCKTAIL DETAIL VIEW ──
   ======================================== */

/* DETAIL HERO */
.detail-hero {
  position: relative;
  width: 100%;
  height: min(55vh, 420px);
  overflow: hidden;
  background: #050505;
  flex: none;
}
.detail-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.6s ease;
  display: block;
}
.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(7,7,7,0.0) 40%,
    rgba(7,7,7,0.95) 100%
  );
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}
.detail-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 28px 28px;
}

/* BACK BUTTON */
.back-btn {
  position: absolute;
  top: 18px; left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  z-index: 10;
}
.back-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--gold); color: var(--gold); }
.back-btn svg { width: 14px; height: 14px; }

/* DETAIL TITLE AREA */
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  margin-bottom: 5px;
}
.detail-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2.5px;
  display: block;
}

/* DETAIL BODY */
.detail-body {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.detail-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* SECTIONS */
.detail-section { margin-bottom: 36px; }

.detail-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 3.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.detail-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

/* INGREDIENTS */
.ingredients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ingredient-chip {
  background: var(--bg3);
  border: 1px solid var(--gold-border);
  color: var(--text);
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: var(--transition);
}
.ingredient-chip:hover { border-color: var(--gold-border-bright); background: var(--gold-subtle); }

/* TEXT SECTIONS */
.detail-text {
  font-size: 15px;
  color: rgba(240,237,230,0.92);
  line-height: 2;
  font-weight: 300;
}

.trivia-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.07), rgba(201,168,76,0.02));
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}

/* RELATED COCKTAILS */
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.related-card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.related-card:hover { border-color: var(--gold-border); background: var(--bg4); }
.related-name { font-family: 'Noto Serif JP', serif; font-size: 15px; color: var(--text); display: block; margin-bottom: 3px; }
.related-en { font-family: 'Cormorant Garamond', serif; font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0;
}
.divider-line { flex: 1; height: 1px; background: var(--gold-border); }
.divider-diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.view.active { animation: fadeIn 0.3s ease both; }

.cocktail-row { animation: fadeInUp 0.35s ease both; }
.cocktail-row:nth-child(1)  { animation-delay: 0.02s; }
.cocktail-row:nth-child(2)  { animation-delay: 0.05s; }
.cocktail-row:nth-child(3)  { animation-delay: 0.08s; }
.cocktail-row:nth-child(4)  { animation-delay: 0.11s; }
.cocktail-row:nth-child(5)  { animation-delay: 0.14s; }
.cocktail-row:nth-child(6)  { animation-delay: 0.17s; }
.cocktail-row:nth-child(n+7){ animation-delay: 0.20s; }

.detail-content > * { animation: fadeInUp 0.4s ease both; }
.detail-content > *:nth-child(1) { animation-delay: 0.05s; }
.detail-content > *:nth-child(2) { animation-delay: 0.12s; }
.detail-content > *:nth-child(3) { animation-delay: 0.18s; }
.detail-content > *:nth-child(4) { animation-delay: 0.24s; }
.detail-content > *:nth-child(5) { animation-delay: 0.30s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-subtle); border-radius: 2px; }
scrollbar-width: thin;
scrollbar-color: var(--text-subtle) transparent;

/* ========================================
   ── FEATURE CARDS (menu view) ──
   ======================================== */
.feature-cards {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0a0800, #100d00);
  border-bottom: 1px solid var(--gold-border);
}

.feature-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(201,168,76,0.05);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
}
.feature-card:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-border-bright);
}
.feature-card:active { background: rgba(201,168,76,0.17); }

.feature-card-icon {
  font-size: 18px;
  color: var(--gold);
  flex: none;
  line-height: 1;
}
.feature-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-card-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-card-arrow {
  font-size: 18px;
  color: var(--text-subtle);
  flex: none;
  transition: var(--transition);
}
.feature-card:hover .feature-card-arrow { color: var(--gold); transform: translateX(3px); }

/* ========================================
   ── FEATURE VIEWS (gacha / quiz) ──
   ======================================== */
.feature-view-header {
  position: relative;
  height: 60px;
  flex: none;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-view-header .back-btn { position: absolute; top: 12px; left: 16px; }

.fv-wrap {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.fv-head {
  text-align: center;
  padding: 44px 24px 32px;
  border-bottom: 1px solid var(--gold-border);
  background: linear-gradient(to bottom, #090700, var(--bg));
}
.fv-eye {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.fv-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}
.fv-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── GACHA ─── */
.gacha-context {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 22px 24px 0;
  flex-wrap: wrap;
}
.gacha-ctx-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 22px;
  border-right: 1px solid var(--gold-border);
}
.gacha-ctx-item:last-child { border-right: none; }

.ctx-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
.ctx-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--text);
  font-weight: 300;
}
.ctx-loading { color: var(--text-subtle); }

.gacha-center {
  display: flex;
  justify-content: center;
  padding: 36px 24px 28px;
}

.gacha-draw-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border: 1px solid var(--gold-border-bright);
  border-radius: 50px;
  padding: 16px 40px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Serif JP', serif;
  color: var(--gold);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.gacha-draw-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(201,168,76,0.12));
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.15);
}
.gacha-draw-btn:active { transform: translateY(0); }
.gacha-draw-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.gacha-draw-icon {
  font-size: 20px;
  transition: transform 0.6s ease;
}
.gacha-draw-btn:not(:disabled):hover .gacha-draw-icon { transform: rotate(180deg); }

/* Gacha loading */
.gacha-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

@keyframes spinDiamond {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.gacha-spinner {
  display: block;
  width: 32px; height: 32px;
  border: 2px solid var(--gold-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinDiamond 0.9s linear infinite;
}

/* Gacha result card */
.gacha-result {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gacha-card { animation: slideUp 0.45s var(--easing) both; }

.gacha-card-hero {
  position: relative;
  height: 200px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.gacha-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  display: block;
}
.gacha-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(7,7,7,0.92) 100%);
}
.gacha-card-names {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
}
.gacha-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0,0,0,0.5);
  margin-bottom: 6px;
}
.gacha-card-ja {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  line-height: 1.2;
  margin-bottom: 2px;
}
.gacha-card-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
}

.gacha-card-body {
  background: var(--bg3);
  border: 1px solid var(--gold-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px 20px 24px;
}
.gacha-reason-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gacha-reason-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}
.gacha-reason {
  font-size: 14px;
  color: rgba(240,237,230,0.9);
  line-height: 2;
  font-weight: 300;
  margin-bottom: 18px;
}
.gacha-detail-btn {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 12px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.gacha-detail-btn:hover { background: var(--gold-subtle); border-color: var(--gold); }

/* Gacha error */
.gacha-error {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 2;
}

/* API key prompt */
.api-key-prompt {
  background: var(--bg3);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 24px 20px;
  animation: slideUp 0.35s var(--easing) both;
}
.api-key-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 10px;
}
.api-key-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}
.api-key-desc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.api-key-input-wrap { display: flex; gap: 8px; }
.api-key-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--text-subtle);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: monospace;
  outline: none;
  transition: var(--transition);
}
.api-key-input:focus { border-color: var(--gold); }
.api-key-save-btn {
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 10px 18px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.api-key-save-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--gold); }

/* ─── QUIZ ─── */
.quiz-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.quiz-q {
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 18px 18px 16px;
  background: var(--bg2);
  animation: fadeInUp 0.35s var(--easing) both;
}
.quiz-q:nth-child(1) { animation-delay: 0.05s; }
.quiz-q:nth-child(2) { animation-delay: 0.10s; }
.quiz-q:nth-child(3) { animation-delay: 0.15s; }
.quiz-q:nth-child(4) { animation-delay: 0.20s; }

.quiz-q-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.quiz-q-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  flex: none;
}
.quiz-q-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

.quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quiz-opts-avoid { gap: 6px; }

.quiz-opt {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 8px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.quiz-opts-avoid .quiz-opt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
}
.quiz-opt:hover { border-color: var(--gold-border-bright); color: var(--text); }
.quiz-opt.selected {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold);
}

.quiz-submit-btn {
  display: block;
  width: 100%;
  margin: 28px 0 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.08));
  border: 1px solid var(--gold-border-bright);
  border-radius: 4px;
  padding: 16px;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}
.quiz-submit-btn:not(:disabled):hover {
  background: rgba(201,168,76,0.22);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.quiz-submit-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Quiz result */
.quiz-result {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 0;
  animation: fadeInUp 0.4s var(--easing) both;
}

.quiz-result-header {
  text-align: center;
  margin-bottom: 28px;
}
.qr-pref {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.qr-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
}

.quiz-result-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.quiz-result-card {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  transition: var(--transition);
}
.quiz-result-card:hover { border-color: var(--gold-border-bright); background: var(--bg3); }

.qrc-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border-right: 1px solid var(--gold-border);
  background: rgba(0,0,0,0.2);
}
.qrc-hero {
  width: 90px;
  flex: none;
  position: relative;
  overflow: hidden;
}
.qrc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  display: block;
}
.qrc-body {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.qrc-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.qrc-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrc-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}
.qrc-reason {
  font-size: 12px;
  color: var(--text-subtle);
  line-height: 1.6;
}

.quiz-retry-btn {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}
.quiz-retry-btn:hover { border-color: var(--text-subtle); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .menu-content { padding: 40px 0 100px; }
  .cocktail-row { padding: 20px 36px; }
  .base-group-header { padding: 24px 36px 14px; }
  .detail-hero { height: min(60vh, 500px); }
  .detail-hero-content { padding: 0 40px 36px; }
  .detail-content { padding: 44px 36px 100px; }
  .back-btn { top: 22px; left: 24px; }
}
