:root {
  --paper: #f0ddb2;
  --paper-deep: #d5b171;
  --paper-soft: #fbf3de;
  --foam: #fff8ec;
  --ink: #2f2216;
  --muted: #70573a;
  --muted-soft: #967553;
  --lager: #c98a2b;
  --lager-deep: #8e521a;
  --wood: #563620;
  --tap: #24372a;
  --tap-soft: #355040;
  --line: rgba(86, 54, 32, 0.18);
  --shadow: 0 22px 52px rgba(70, 43, 18, 0.16);
  --shadow-soft: 0 14px 30px rgba(70, 43, 18, 0.11);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,0.55), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(201,138,43,0.18), transparent 18%),
    linear-gradient(180deg, #efe3c4 0%, #e7d09f 44%, #ddb776 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(86,54,32,0.018) 0 3px, transparent 3px 13px),
    repeating-linear-gradient(0deg, rgba(86,54,32,0.02) 0 2px, transparent 2px 10px);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 36vw;
  height: 36vw;
  right: -10vw;
  bottom: 8vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,80,64,0.16), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 32px;
}

.site-header {
  margin-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 760px);
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(86,54,32,0.15);
  border-radius: 999px;
  background: rgba(255,248,236,0.56);
  color: var(--lager-deep);
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-board {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(255,250,240,0.92), rgba(250,239,211,0.88));
  border: 1px solid rgba(86,54,32,0.14);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(86,54,32,0.12);
  border-radius: 24px;
  pointer-events: none;
}

.hero-copy::after {
  content: 'KASSENBON LOOK';
  position: absolute;
  right: -6px;
  top: 26px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201,138,43,0.16);
  color: var(--lager-deep);
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 1.6px;
  transform: rotate(10deg);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--lager-deep);
  font-size: 0.82rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.header-note {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-points {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-point {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,248,236,0.82);
  border: 1px solid rgba(86,54,32,0.12);
  color: var(--ink);
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(70,43,18,0.08);
}

.hero-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  color: var(--foam);
  text-decoration: none;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.18rem;
  letter-spacing: 1.4px;
  box-shadow: 0 16px 28px rgba(36,55,42,0.18);
}

.hero-cta:hover {
  transform: translateY(-1px);
}

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

.hero-coaster {
  position: relative;
  min-height: 280px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,250,240,0.92), rgba(239,219,178,0.96) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  border: 1px solid rgba(86,54,32,0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-coaster::before,
.hero-coaster::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: 26px;
  border: 1px solid rgba(86,54,32,0.12);
}

.hero-coaster::after {
  inset: 52px;
  border-style: dashed;
}

.coaster-ring {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.coaster-small {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  color: var(--lager-deep);
  margin-bottom: 10px;
}

.coaster-big {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 1.3px;
  line-height: 0.95;
}

.coaster-copy {
  margin-top: 12px;
  max-width: 16rem;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.96rem;
}

.steps-dots {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.step-dot {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(251,243,222,0.9);
  border: 1px solid rgba(86,54,32,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.42rem;
  letter-spacing: 1px;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}

.step-dot::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 13px;
  border: 1px solid rgba(86,54,32,0.12);
}

.step-dot.active {
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  border-color: rgba(36,55,42,0.92);
  color: var(--foam);
  transform: translateY(-2px);
}

.step-dot.active::before { border-color: rgba(255,248,236,0.18); }

.step-dot.done {
  background: linear-gradient(180deg, #ddb365, var(--lager));
  border-color: rgba(142,82,26,0.82);
  color: #2f1f12;
}

.step-connector {
  flex: 1;
  height: 3px;
  margin: 0 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(112,87,58,0.42) 0 14px, transparent 14px 22px);
}

.step-connector.done {
  background: linear-gradient(90deg, var(--lager), var(--lager-deep));
}

.steps-container {
  width: 100%;
  max-width: 760px;
  margin: 24px auto 70px;
}

.step {
  display: none;
  animation: fadeUp 0.45s ease;
}

.step.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,250,240,0.96), rgba(248,235,205,0.92));
  border: 1px solid rgba(86,54,32,0.14);
  border-radius: var(--radius-lg);
  padding: 34px 34px 32px;
  box-shadow: var(--shadow);
}

.step-card::before,
.step-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.step-card::before {
  width: 220px;
  height: 220px;
  right: -56px;
  top: -64px;
  border: 2px solid rgba(86,54,32,0.06);
}

.step-card::after {
  width: 140px;
  height: 140px;
  left: -38px;
  bottom: -44px;
  border: 1px dashed rgba(86,54,32,0.08);
}

.step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(201,138,43,0.16);
  color: var(--lager-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.step-aside {
  color: var(--muted-soft);
  font-size: 0.92rem;
}

.step-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  letter-spacing: 1.4px;
  line-height: 0.95;
  margin-bottom: 10px;
}

.step-sub {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

.input-group {
  margin-bottom: 22px;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  color: var(--lager-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.number-input-wrap {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 14px;
}

.num-btn,
.btn-primary,
.btn-secondary,
.opt-pill,
.share-btn,
.restart-btn {
  -webkit-appearance: none;
  appearance: none;
}

.num-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(36,55,42,0.14);
  background: rgba(255,248,236,0.92);
  color: var(--tap);
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.num-btn:hover {
  background: var(--foam);
  border-color: rgba(36,55,42,0.34);
}

.num-btn:active { transform: scale(0.95); }

.num-display {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,251,244,0.88);
  border: 1px solid rgba(86,54,32,0.12);
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62);
}

.num-display input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: center;
  color: var(--ink);
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.options-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opt-pill {
  width: 100%;
  padding: 16px 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(86,54,32,0.12);
  background: rgba(255,251,244,0.76);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 20px rgba(70,43,18,0.06);
}

.opt-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(142,82,26,0.34);
  background: rgba(255,251,244,0.92);
}

.opt-pill.selected {
  background: linear-gradient(180deg, rgba(53,80,64,0.98), rgba(36,55,42,0.98));
  border-color: rgba(36,55,42,0.92);
  color: var(--foam);
  box-shadow: 0 16px 30px rgba(36,55,42,0.18);
}

button:focus-visible,
input:focus-visible,
.opt-pill:focus-visible,
.content-card:focus-visible {
  outline: 3px solid rgba(201,138,43,0.72);
  outline-offset: 3px;
}

.pill-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.pill-meta {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.opt-pill.selected .pill-meta { color: rgba(255,248,236,0.75); }

.slider-wrap {
  margin-bottom: 18px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.slider-note {
  font-size: 0.9rem;
  color: var(--muted-soft);
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(142,82,26,0.18);
  outline: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  box-shadow: 0 0 0 5px rgba(36,55,42,0.12);
}

.custom-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  box-shadow: 0 0 0 5px rgba(36,55,42,0.12);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.slider-value {
  margin-top: 14px;
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--tap);
}

.style-preview {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(86,54,32,0.18);
  background: rgba(255,248,236,0.54);
  color: var(--muted);
  line-height: 1.6;
}

.style-preview strong {
  color: var(--ink);
}

.btn-primary,
.btn-secondary,
.restart-btn {
  width: 100%;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(36,55,42,0.92);
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  color: var(--foam);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.26rem;
  letter-spacing: 1.5px;
  box-shadow: 0 18px 30px rgba(36,55,42,0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(36,55,42,0.26);
}

.btn-secondary,
.restart-btn {
  padding: 14px 18px;
  margin-top: 10px;
  border: 1px solid rgba(86,54,32,0.14);
  background: rgba(255,248,236,0.7);
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(70,43,18,0.06);
}

.btn-secondary:hover,
.restart-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(142,82,26,0.34);
  color: var(--ink);
  background: rgba(255,248,236,0.88);
}

#results {
  display: none;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 72px;
}

#results.show {
  display: block;
  animation: fadeUp 0.45s ease;
}

.result-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.result-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-ticket {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #2f4637 0%, #223228 100%);
  border: 1px solid rgba(28,44,34,0.9);
  box-shadow: 0 24px 48px rgba(29,46,35,0.22);
  color: var(--foam);
}

.result-ticket::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px dashed rgba(249,238,213,0.18);
}

.result-ticket::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -7px;
  height: 18px;
  background:
    radial-gradient(circle at 12px 0, transparent 12px, #223228 13px) repeat-x;
  background-size: 24px 18px;
}

.ticket-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ticket-stamp {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249,238,213,0.08);
  border: 1px solid rgba(249,238,213,0.14);
  color: #f4dba8;
  font-family: 'Bebas Neue', cursive;
  font-size: 0.96rem;
  letter-spacing: 1.8px;
}

.ticket-note {
  color: rgba(255,248,236,0.74);
  font-size: 0.92rem;
}

.result-pretitle {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1.5px;
  font-size: 1.3rem;
  color: rgba(255,248,236,0.72);
}

.result-number {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 2px;
  color: #fff4dd;
}

.result-unit {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 1.05rem;
  color: rgba(255,248,236,0.76);
}

.result-context {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: rgba(255,248,236,0.78);
  line-height: 1.6;
}

.result-title-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(201,138,43,0.16);
  border: 1px solid rgba(249,238,213,0.16);
  color: #ffe4b1;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.36rem;
  letter-spacing: 1.8px;
}

.result-persona-copy {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgba(255,248,236,0.84);
  line-height: 1.68;
  max-width: 40rem;
}

.receipt-list {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,248,236,0.2);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,248,236,0.16);
  opacity: 0;
  transform: translateY(8px);
}

#results.show .receipt-line {
  animation: receiptLine 0.4s ease forwards;
}

#results.show .receipt-line:nth-child(1) { animation-delay: 0.05s; }
#results.show .receipt-line:nth-child(2) { animation-delay: 0.12s; }
#results.show .receipt-line:nth-child(3) { animation-delay: 0.19s; }
#results.show .receipt-line:nth-child(4) { animation-delay: 0.26s; }

@keyframes receiptLine {
  to { opacity: 1; transform: translateY(0); }
}

.receipt-line span {
  color: rgba(255,248,236,0.72);
  font-size: 0.95rem;
}

.receipt-line strong {
  color: #fff4dd;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.54rem;
  letter-spacing: 1px;
}

.panel,
.share-section {
  background: linear-gradient(180deg, rgba(255,250,240,0.96), rgba(248,235,205,0.92));
  border: 1px solid rgba(86,54,32,0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 22px;
}

.panel-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--lager-deep);
  font-weight: 700;
  margin-bottom: 10px;
}

.panel-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1.2px;
  line-height: 0.96;
  margin-bottom: 10px;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.65;
}

.style-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.style-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255,248,236,0.84);
  border: 1px solid rgba(86,54,32,0.12);
}

.style-stat span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted-soft);
  margin-bottom: 4px;
}

.style-stat strong {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.8px;
  color: var(--tap);
}

.result-pour {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,248,236,0.82);
  border: 1px solid rgba(86,54,32,0.12);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.result-pour-glass {
  position: relative;
  width: 72px;
  height: 116px;
  margin: 0 auto;
  border: 3px solid rgba(86,54,32,0.28);
  border-top-width: 4px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.34);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.result-pour-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, #f6c241 0%, #e59b18 45%, #b96b00 100%);
  transition: height 0.9s cubic-bezier(.22,.61,.36,1);
}

.result-pour-foam {
  position: absolute;
  top: 8px;
  left: 7px;
  right: 7px;
  height: 18px;
  border-radius: 999px 999px 12px 12px;
  background: rgba(255,248,236,0.94);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.result-pour-copy {
  color: var(--muted);
  line-height: 1.62;
}

.crate-meter {
  position: relative;
  height: 26px;
  margin: 18px 0 12px;
  border-radius: 999px;
  background: rgba(86,54,32,0.08);
  overflow: hidden;
  border: 1px solid rgba(86,54,32,0.12);
}

.crate-meter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,248,236,0.18) 0 7%, rgba(86,54,32,0.05) 7% 10%);
  opacity: 0.65;
}

.crate-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ddb365 0%, var(--lager) 55%, var(--lager-deep) 100%);
  transition: width 0.55s ease;
}

.shelf-copy {
  line-height: 1.65;
  color: var(--muted);
}

.shelf-copy strong {
  color: var(--ink);
}

.milestone-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.milestone-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,248,236,0.78);
  border: 1px solid rgba(86,54,32,0.12);
  color: var(--muted-soft);
  font-size: 0.82rem;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.milestone-chip.is-hit {
  background: linear-gradient(180deg, var(--tap-soft), var(--tap));
  border-color: rgba(36,55,42,0.9);
  color: var(--foam);
}

.compare-panel,
.future-card,
.share-section {
  margin-bottom: 18px;
}

.seo-section {
  max-width: 980px;
  margin: 0 auto 24px;
}

.quick-kcal {
  max-width: 980px;
  margin: 0 auto 28px;
  border-radius: 14px;
}

.quick-kcal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.quick-kcal-head .panel-copy {
  max-width: 26rem;
}

.kcal-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(86,54,32,0.12);
  border-radius: 12px;
  background: rgba(255,248,236,0.62);
}

.kcal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(90px, 0.7fr) minmax(120px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(86,54,32,0.1);
}

.kcal-row:last-child {
  border-bottom: 0;
}

.kcal-row.head {
  background: rgba(201,138,43,0.14);
  color: var(--lager-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.kcal-row strong {
  color: var(--tap);
}

.seo-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.seo-column {
  display: grid;
  gap: 18px;
  grid-template-rows: auto 1fr;
  align-content: stretch;
}

.seo-column > .panel {
  height: 100%;
}

@media (min-width: 901px) {
  .seo-columns {
    grid-template-rows: auto auto;
  }

  .seo-column {
    display: contents;
  }

  .seo-column:nth-child(1) > .panel:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .seo-column:nth-child(1) > .panel:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .seo-column:nth-child(2) > .panel:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .seo-column:nth-child(2) > .panel:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }
}

.seo-section .panel {
  padding: 22px 20px 20px;
  border-radius: 14px;
}

.seo-section .panel-kicker {
  margin-bottom: 8px;
}

.seo-section .panel-title {
  margin-bottom: 14px;
  line-height: 0.98;
}

.seo-copy {
  color: var(--muted);
  line-height: 1.72;
  display: grid;
  gap: 12px;
}

.seo-copy p + p {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 14px 14px 13px;
  border-radius: 10px;
  background: rgba(255,248,236,0.8);
  border: 1px solid rgba(86,54,32,0.12);
}

.faq-item h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
}

.faq-item p {
  color: var(--muted);
  line-height: 1.65;
}

.content-links {
  display: grid;
  gap: 10px;
  grid-auto-rows: 1fr;
}

.content-card {
  display: block;
  text-decoration: none;
  height: 100%;
  padding: 14px 14px 13px;
  border-radius: 10px;
  background: rgba(255,248,236,0.8);
  border: 1px solid rgba(86,54,32,0.12);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.content-card:hover {
  transform: translateY(-1px);
  border-color: rgba(142,82,26,0.34);
  background: rgba(255,248,236,0.94);
}

.content-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.content-card span {
  display: block;
  color: var(--muted);
  line-height: 1.58;
}

.topic-page {
  max-width: 980px;
  margin: 0 auto 28px;
  display: grid;
  gap: 18px;
}

.topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.topic-grid > .panel {
  height: 100%;
}

.topic-grid > .cta-panel {
  display: flex;
  flex-direction: column;
}

.answer-box {
  border-radius: 14px;
  background: rgba(255,248,236,0.84);
  border: 1px solid rgba(86,54,32,0.12);
  padding: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.answer-box strong {
  color: var(--ink);
}

.table-list {
  display: grid;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(86,54,32,0.12);
  background: rgba(255,248,236,0.66);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(86,54,32,0.1);
  align-items: center;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  background: rgba(201,138,43,0.14);
  color: var(--lager-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.table-row strong {
  color: var(--tap);
}

.cta-panel {
  background: linear-gradient(180deg, rgba(47,70,55,0.98), rgba(34,50,40,0.98));
  border-color: rgba(28,44,34,0.9);
  color: var(--foam);
}

.cta-panel .panel-kicker,
.cta-panel .panel-copy {
  color: rgba(255,248,236,0.76);
}

.cta-panel .panel-title {
  color: #fff1cf;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255,248,236,0.92);
  color: var(--tap);
  text-decoration: none;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.15rem;
  letter-spacing: 1.3px;
  align-self: flex-start;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,248,236,0.8);
  border: 1px solid rgba(86,54,32,0.12);
}

.compare-tag {
  flex-shrink: 0;
  min-width: 48px;
  padding: 9px 10px 8px;
  border-radius: 14px;
  background: rgba(201,138,43,0.14);
  color: var(--lager-deep);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.02rem;
  letter-spacing: 1.4px;
  text-align: center;
}

.compare-text {
  line-height: 1.65;
  color: var(--muted);
}

.compare-text strong {
  color: var(--ink);
}

.future-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.future-note {
  color: var(--muted-soft);
  font-size: 0.92rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.forecast-item {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,248,236,0.8);
  border: 1px solid rgba(86,54,32,0.12);
}

.forecast-item span {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted-soft);
  margin-bottom: 8px;
}

.forecast-item strong {
  display: block;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: var(--tap);
  line-height: 1;
}

.share-section {
  background: linear-gradient(180deg, rgba(47,70,55,0.98), rgba(34,50,40,0.98));
  border-color: rgba(28,44,34,0.9);
}

.share-kicker {
  color: rgba(255,228,177,0.78);
}

.share-title {
  color: #fff1cf;
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1.4px;
  line-height: 0.96;
}

.share-sub {
  margin-top: 10px;
  color: rgba(255,248,236,0.74);
  line-height: 1.65;
}

.share-buttons {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,248,236,0.12);
  background: rgba(255,248,236,0.1);
  color: #fff6e1;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,248,236,0.26);
}

.share-btn.whatsapp {
  background: #1faa5d;
  border-color: #1faa5d;
}

.group-panel {
  margin-bottom: 18px;
}

.group-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.group-input {
  width: 100%;
  background: rgba(255,251,244,0.88);
  border: 1px solid rgba(86,54,32,0.14);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.group-add-btn {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.group-action-btn {
  width: auto;
  margin-top: 0;
}

.group-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.group-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,248,236,0.74);
  border: 1px dashed rgba(86,54,32,0.16);
  color: var(--muted);
}

.group-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,248,236,0.8);
  border: 1px solid rgba(86,54,32,0.12);
}

.group-rank {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,138,43,0.16);
  color: var(--lager-deep);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.18rem;
  letter-spacing: 1px;
}

.group-name {
  font-weight: 700;
  color: var(--ink);
}

.group-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.group-score {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.7rem;
  color: var(--tap);
  letter-spacing: 1px;
  white-space: nowrap;
}

.group-remove {
  border: 1px solid rgba(86,54,32,0.14);
  background: rgba(255,248,236,0.9);
  color: var(--muted);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39, 28, 16, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 1200;
  backdrop-filter: blur(8px);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-card {
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,250,240,0.98), rgba(248,235,205,0.95));
  border: 1px solid rgba(86,54,32,0.14);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-mug {
  position: relative;
  width: 98px;
  height: 126px;
  margin: 0 auto 18px;
  border-radius: 18px 18px 22px 22px;
  border: 3px solid rgba(86,54,32,0.22);
  overflow: hidden;
  background: rgba(255,255,255,0.32);
}

.loading-mug::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 26px;
  width: 24px;
  height: 44px;
  border: 4px solid rgba(86,54,32,0.22);
  border-left: none;
  border-radius: 0 14px 14px 0;
}

.loading-mug-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #f8c84b 0%, #e69711 44%, #b86b01 100%);
  animation: loadingFill 1.2s ease-in-out infinite;
}

.loading-mug-foam {
  position: absolute;
  top: 10px;
  left: 9px;
  right: 9px;
  height: 18px;
  background: rgba(255,248,236,0.94);
  border-radius: 999px;
}

.loading-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.loading-copy {
  color: var(--muted);
  line-height: 1.65;
}

@keyframes loadingFill {
  0%, 100% { height: 16%; }
  50% { height: 76%; }
}

.restart-btn {
  max-width: 980px;
}

footer {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, rgba(86,54,32,0.2), transparent);
}

.footer-meta {
  margin-top: 10px;
}

footer a {
  color: var(--lager-deep);
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(70px);
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255,248,236,0.96);
  border: 1px solid rgba(86,54,32,0.14);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease;
  z-index: 999;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.counting { animation: numberPulse 0.12s ease; }

@keyframes numberPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@media (max-width: 900px) {
  .hero-board,
  .result-shell,
  .seo-columns,
  .topic-grid,
  .link-grid,
  .compare-list,
  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .hero-coaster {
    min-height: 240px;
  }

  .result-side {
    order: 2;
  }

  .quick-kcal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-column {
    display: grid;
    grid-template-rows: none;
  }

  .seo-column > .panel,
  .topic-grid > .panel {
    height: auto;
  }
}

@media (max-width: 720px) {
  .app { padding: 20px 14px 28px; }

  .hero-copy,
  .step-card,
  .panel,
  .share-section,
  .result-ticket {
    padding: 24px 20px 22px;
    border-radius: 26px;
  }

  .seo-section .panel {
    padding: 20px 18px 18px;
    border-radius: 12px;
  }

  .quick-kcal {
    padding: 20px 18px 18px;
  }

  .kcal-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .kcal-row.head {
    display: none;
  }

  .table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .table-row.head {
    display: none;
  }

  .seo-section .faq-item,
  .seo-section .content-card {
    border-radius: 8px;
  }

  .hero-copy::after {
    right: 6px;
    top: 20px;
    font-size: 0.92rem;
  }

  .steps-dots {
    gap: 0;
  }

  .step-dot {
    width: 46px;
    height: 46px;
    font-size: 1.18rem;
    border-radius: 14px;
  }

  .step-dot::before {
    inset: 6px;
    border-radius: 10px;
  }

  .step-connector {
    margin: 0 5px;
  }

  .step-title {
    font-size: 2rem;
  }

  .step-sub {
    font-size: 0.94rem;
    margin-bottom: 22px;
  }

  .number-input-wrap {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 10px;
  }

  .num-btn {
    width: 50px;
    height: 50px;
  }

  .num-display input {
    font-size: 2rem;
  }

  .options-grid,
  .options-grid.three,
  .style-stats {
    grid-template-columns: 1fr;
  }

  .result-pour,
  .group-controls {
    grid-template-columns: 1fr;
  }

  .topic-page {
    gap: 14px;
    margin-bottom: 22px;
  }

  .topic-grid,
  .link-grid,
  .content-links {
    gap: 12px;
  }

  .answer-box {
    padding: 14px;
    border-radius: 12px;
  }

  .cta-panel {
    min-height: auto;
  }

  .cta-link {
    width: 100%;
    align-self: stretch;
    margin-top: 18px;
    padding: 13px 14px;
  }

  footer {
    padding: 0 14px;
    margin-bottom: 30px;
  }

  .group-add-btn,
  .group-action-btn {
    width: 100%;
  }

  .group-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .group-score {
    grid-column: 2;
  }

  .group-remove {
    grid-column: 2;
    justify-self: start;
  }

  .slider-value {
    font-size: 1.75rem;
  }

  .result-number {
    font-size: 4.2rem;
  }

  .result-title-badge {
    font-size: 1.18rem;
  }

  .panel-title,
  .share-title {
    font-size: 1.65rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }

  .toast {
    max-width: calc(100vw - 28px);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-copy,
  .step-card,
  .panel,
  .share-section,
  .result-ticket {
    padding: 22px 16px 20px;
  }

  .seo-columns,
  .seo-column,
  .topic-page,
  .topic-grid {
    gap: 14px;
  }

  .seo-section .panel {
    padding: 18px 15px 16px;
    border-radius: 10px;
  }

  .seo-section .panel-title {
    margin-bottom: 12px;
  }

  .topic-page .panel-title,
  .panel-title,
  .share-title {
    font-size: 1.48rem;
  }

  .table-row,
  .kcal-row {
    padding: 11px 12px;
  }

  .content-card,
  .faq-item {
    padding: 13px 12px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    max-width: 100%;
  }

  .logo-text {
    font-size: 2.8rem;
  }

  .header-note {
    font-size: 0.94rem;
  }

  .step-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-badge {
    font-size: 0.72rem;
  }

  .step-aside {
    font-size: 0.84rem;
  }

  .step-dot {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .step-dot::before {
    inset: 5px;
    border-radius: 8px;
  }

  .step-connector {
    margin: 0 4px;
  }

  .result-number {
    font-size: 3.5rem;
  }

  .receipt-line strong,
  .forecast-item strong {
    font-size: 1.5rem;
  }

  .group-item {
    padding: 12px 14px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,248,236,0.7);
  border: 1px solid rgba(86,54,32,0.12);
  transition: color 0.18s ease, background 0.18s ease;
}
.back-link:hover {
  color: var(--ink);
  background: rgba(255,248,236,0.92);
}

.subpage-hero {
  position: relative;
  margin-bottom: 28px;
}

.subpage-hero .back-link {
  position: absolute;
  left: 0;
  top: 0;
  margin-bottom: 0;
}

.subpage-hero .hero-copy {
  max-width: none;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .subpage-hero .back-link {
    position: static;
    margin-bottom: 14px;
  }

  .subpage-hero .hero-copy {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
