@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #171412;
  --bg-soft: #241f1b;
  --panel: rgba(34, 29, 26, 0.86);
  --panel-strong: rgba(44, 37, 33, 0.95);
  --line: rgba(255, 239, 218, 0.12);
  --line-strong: rgba(255, 239, 218, 0.2);
  --text: #f4eadc;
  --muted: rgba(244, 234, 220, 0.68);
  --accent: #f2dfca;
  --accent-strong: #c89a63;
  --accent-dark: #7d5b3a;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(201, 157, 92, 0.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(93, 63, 35, 0.22), transparent 28%),
    linear-gradient(180deg, #1d1815 0%, #151210 45%, #120f0d 100%);
  color: var(--text);
  font-family: "Manrope", "PingFang SC", "Helvetica Neue", sans-serif;
}

body,
button {
  -webkit-font-smoothing: antialiased;
}

html.lang-zh body,
html.lang-zh button {
  font-family: "Manrope", "PingFang SC", "Noto Sans SC", sans-serif;
}

html.lang-en body,
html.lang-en button {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.hidden {
  display: none !important;
}

.page-glow {
  position: fixed;
  inset: -25vh -10vw auto;
  height: 60vh;
  background: radial-gradient(circle, rgba(255, 240, 219, 0.08), transparent 58%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 72px;
}

.logo,
.bartender-name,
.question-title,
.result-name,
.login-btn,
.lang-btn {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.logo {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  font-style: italic;
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn,
.login-btn,
.ghost-btn,
.option-btn {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.lang-btn {
  min-width: 48px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 2px 6px;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--text);
  border-color: var(--line);
  border-radius: 999px;
}

.login-btn,
.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.04);
  color: var(--text);
  padding: 10px 18px;
  cursor: pointer;
}

.login-btn {
  font-size: 1.3rem;
  font-style: italic;
}

.hero-card,
.flow-card,
.result-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(44, 37, 33, 0.92), rgba(27, 22, 19, 0.94)),
    rgba(34, 29, 26, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  width: min(720px, 100%);
  margin: 0 auto 40px;
  padding: 40px 40px 34px;
  border-radius: 36px;
  text-align: center;
}

.bartender-badge {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(242, 223, 202, 0.95), rgba(107, 146, 188, 0.8));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.bartender-badge span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(106, 155, 209, 0.28), transparent 42%),
    linear-gradient(180deg, #3c2f28 0%, #1d1714 100%);
  color: var(--accent);
  font-size: 2.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.08em;
}

.hero-kicker,
.section-kicker,
.question-index,
.question-hint,
.hero-subtitle,
.hero-description,
.progress-dot-label,
.progress-dot-state,
.reason-summary,
.result-base,
.option-meta,
.summary-chip,
.recipe-list,
.method-list {
  color: var(--muted);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bartender-name {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
}

.hero-subtitle {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.hero-description {
  width: min(520px, 100%);
  margin: 0 auto;
  line-height: 1.75;
}

.flow-card,
.result-card {
  border-radius: 40px;
  padding: 34px;
}

.flow-head,
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.flow-head h2,
.result-name {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 500;
}

.progress-dots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 24px;
}

.progress-dot {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 249, 242, 0.03);
}

.progress-dot.active {
  border-color: rgba(242, 223, 202, 0.42);
  background: rgba(255, 241, 225, 0.08);
}

.progress-dot.done {
  border-color: rgba(200, 154, 99, 0.48);
  background: rgba(200, 154, 99, 0.12);
}

.progress-dot-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.progress-dot-label,
.progress-dot-state {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}

.answer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.summary-title {
  width: 100%;
  color: var(--text);
  font-size: 0.9rem;
}

.summary-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 247, 236, 0.04);
  font-size: 0.88rem;
}

.summary-chip strong {
  color: var(--text);
  font-weight: 600;
}

.question-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
}

.question-index {
  margin: 0 0 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.question-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
}

.question-hint {
  margin: 0 0 28px;
  font-size: 0.98rem;
}

.option-list {
  display: grid;
  gap: 14px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: 1px solid rgba(242, 223, 202, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250, 239, 226, 0.97), rgba(237, 221, 205, 0.94));
  color: #2d221c;
  padding: 18px 28px;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-style: italic;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.option-btn:hover,
.option-btn:focus-visible,
.login-btn:hover,
.ghost-btn:hover,
.lang-btn:hover {
  transform: translateY(-2px);
}

.option-btn:focus-visible,
.login-btn:focus-visible,
.ghost-btn:focus-visible,
.lang-btn:focus-visible,
.logo:focus-visible {
  outline: 2px solid rgba(242, 223, 202, 0.5);
  outline-offset: 3px;
}

.option-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(45, 34, 28, 0.46);
}

.loading-state {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 80px 0 56px;
  text-align: center;
}

.loading-orbit {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(242, 223, 202, 0.14);
  border-top-color: var(--accent);
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  margin-top: 30px;
}

.result-base {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.result-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 247, 236, 0.03);
}

.result-panel-wide {
  grid-column: 1 / -1;
}

.result-panel h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reason-summary {
  margin: 0 0 18px;
  line-height: 1.8;
}

.reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reason-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--text);
}

.recipe-list,
.method-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.recipe-list li + li,
.method-list li + li {
  margin-top: 6px;
}

@media (max-width: 940px) {
  .progress-dots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 24px, 100%);
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .topbar {
    margin-bottom: 38px;
    align-items: flex-start;
  }

  .topbar,
  .flow-head,
  .result-head {
    flex-direction: column;
  }

  .hero-card,
  .flow-card,
  .result-card {
    border-radius: 28px;
    padding: 24px 18px;
  }

  .bartender-badge {
    width: 92px;
    height: 92px;
  }

  .question-title {
    font-size: clamp(2rem, 8vw, 2.9rem);
  }

  .option-btn {
    padding: 16px 18px;
    font-size: 1.2rem;
    text-align: left;
  }

  .option-meta {
    display: none;
  }

  .progress-dots {
    grid-template-columns: 1fr;
  }
}
