:root {
  color-scheme: dark;
  --ink: #140d0f;
  --ink-soft: #23161a;
  --wine: #6f162b;
  --wine-bright: #9b2942;
  --cream: #f4ecdf;
  --paper: #e7dbc7;
  --muted: #bdaea1;
  --brass: #c9a76b;
  --line: rgba(244, 236, 223, 0.16);
  --glass: rgba(20, 13, 15, 0.68);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection {
  background: var(--wine-bright);
  color: #fff;
}

.site {
  width: 100%;
  overflow: clip;
  background:
    radial-gradient(circle at 80% 28%, rgba(111, 22, 43, 0.18), transparent 28rem),
    var(--ink);
}

.container {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.body-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  min-height: calc(64px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

.topbar.is-scrolled {
  background: rgba(20, 13, 15, 0.82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.brand__seal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 167, 107, 0.68);
  border-radius: 50%;
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.brand__word {
  display: none;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-badge,
.lang-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(244, 236, 223, 0.19);
  border-radius: 999px;
  background: rgba(13, 8, 10, 0.4);
  color: var(--cream);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.time-badge {
  position: relative;
  min-width: 72px;
  padding: 7px 11px 7px 8px;
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.time-badge::before {
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 52%, transparent 54%),
    conic-gradient(var(--brass) var(--timer-progress, 0%), rgba(244, 236, 223, 0.16) 0);
}

.time-badge.is-ready {
  border-color: rgba(201, 167, 107, 0.55);
  color: var(--brass);
}

.lang-button {
  padding: 0 13px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #171013;
}

.hero__image,
.hero__veil,
.hero__grain {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: url("./assets/hero-wine-v2.webp");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.012);
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 8, 9, 0.42) 0%, rgba(12, 8, 9, 0.04) 28%, rgba(16, 10, 12, 0.28) 54%, rgba(20, 13, 15, 0.96) 93%),
    linear-gradient(90deg, rgba(11, 7, 8, 0.58) 0%, transparent 68%);
}

.hero__grain {
  z-index: -1;
  opacity: 0.13;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, transparent 0 1px, rgba(255,255,255,.08) 1px 2px),
    repeating-linear-gradient(113deg, transparent 0 3px, rgba(0,0,0,.12) 3px 4px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: soft-light;
}

.hero__content {
  width: 100%;
  padding: calc(112px + var(--safe-top)) 0 calc(34px + var(--safe-bottom));
}

.hero__content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__edition {
  display: none;
}

.hero h1 {
  max-width: 8.8ch;
  font-size: clamp(3.35rem, 16vw, 6.8rem);
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.hero h1 > span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--paper);
  font-weight: 400;
}

.hero__sub {
  max-width: 34rem;
  margin: 18px 0 0;
  color: rgba(244, 236, 223, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero__actions {
  width: 100%;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.primary-button,
.secondary-button,
.quiz-option,
.card-action,
.sticky-action__button,
.age-button {
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-button,
.sticky-action__button,
.age-button--primary {
  background: var(--cream);
  color: var(--ink);
  font-weight: 760;
}

.primary-button,
.secondary-button {
  width: 100%;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
}

.primary-button::after {
  content: "↘";
  font-size: 1.1rem;
}

.secondary-button {
  border: 1px solid rgba(244, 236, 223, 0.28);
  background: rgba(20, 13, 15, 0.38);
  color: var(--cream);
  font-weight: 650;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__stats {
  width: 100%;
  margin: 24px 0 0;
  padding: 15px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(244, 236, 223, 0.22);
}

.hero__stat {
  min-width: 0;
}

.hero__stat strong,
.hero__stat span {
  display: block;
}

.hero__stat strong {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.hero__stat:last-child strong {
  color: var(--brass);
}

.hero__stat span {
  margin-top: 2px;
  color: rgba(244, 236, 223, 0.59);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 84px 0;
}

.section--paper {
  background: var(--cream);
  color: var(--ink);
}

.section--wine {
  background:
    radial-gradient(circle at 90% 0%, rgba(155, 41, 66, 0.33), transparent 28rem),
    linear-gradient(155deg, #2a1118, #160d10 60%);
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2 {
  font-size: clamp(2.55rem, 12vw, 5.8rem);
}

.section-heading p:last-child {
  max-width: 38rem;
  margin: 18px 0 0;
}

.section--paper .eyebrow {
  color: var(--wine);
}

.section--paper .body-copy {
  color: #6d5f59;
}

.tasting-layout {
  margin-top: 36px;
  display: grid;
  gap: 22px;
}

.quiz-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(20, 13, 15, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 52px rgba(46, 24, 29, 0.08);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quiz-progress span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: rgba(20, 13, 15, 0.12);
  transition: background 180ms ease;
}

.quiz-progress span.is-active {
  background: var(--wine);
}

.quiz-question {
  margin: 26px 0 16px;
  font-family: Georgia, serif;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.12;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  position: relative;
  width: 100%;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 13, 15, 0.13);
  background: transparent;
  color: var(--ink);
  text-align: start;
}

.quiz-option::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(20, 13, 15, 0.35);
  border-radius: 50%;
}

.quiz-option[aria-pressed="true"] {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.quiz-option[aria-pressed="true"]::after {
  border: 4px solid #fff;
  background: var(--wine);
}

.match-card {
  min-height: 270px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(244, 236, 223, 0.18);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(201, 167, 107, 0.24), transparent 35%),
    #231217;
  color: var(--cream);
  box-shadow: 0 24px 60px rgba(53, 13, 24, 0.22);
}

.match-card__empty {
  margin: auto 0;
  color: rgba(244, 236, 223, 0.62);
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.2;
}

.match-card__rank {
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.match-card h3 {
  max-width: 13ch;
  margin: 34px 0 8px;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.03;
}

.match-card__meta {
  color: rgba(244, 236, 223, 0.62);
  font-size: 0.82rem;
}

.match-card__price {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 14px;
}

.match-card__price span,
.match-card__price small {
  color: rgba(244, 236, 223, 0.56);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-card__price strong {
  grid-row: span 2;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.match-card__tags,
.wine-card__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid rgba(244, 236, 223, 0.18);
  border-radius: 999px;
  color: rgba(244, 236, 223, 0.8);
  font-size: 0.68rem;
}

.ranking-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ranking-head__source {
  max-width: 23rem;
  padding: 14px 0 0 17px;
  border-left: 1px solid var(--brass);
  color: rgba(244, 236, 223, 0.58);
  font-size: 0.76rem;
  line-height: 1.55;
}

.ranking-head__source a {
  color: var(--paper);
  text-underline-offset: 3px;
}

.wine-list {
  margin-top: 38px;
  display: grid;
  gap: 13px;
}

.wine-card {
  position: relative;
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(244, 236, 223, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.wine-card__showcase {
  position: relative;
  min-height: 238px;
  margin: -10px -10px 22px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 223, 0.1);
  border-radius: 19px;
  background:
    radial-gradient(circle at 32% 30%, rgba(201, 167, 107, 0.2), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(111, 22, 43, 0.12));
}

.wine-card__showcase::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 13, 16, 0.28) 0%, rgba(22, 13, 16, 0.04) 52%, transparent 78%);
}

.wine-card__bottle-photo {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 10px;
  width: 49%;
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.98) contrast(1.02) drop-shadow(0 22px 19px rgba(0, 0, 0, 0.38));
}

.brand-lockup {
  position: relative;
  z-index: 3;
  max-width: 55%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.brand-lockup__monogram {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 167, 107, 0.6);
  border-radius: 50%;
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.brand-lockup__name {
  color: rgba(244, 236, 223, 0.86);
  font-family: Georgia, serif;
  font-size: 0.94rem;
  letter-spacing: 0.025em;
  line-height: 1.12;
}

.discount-chip {
  position: relative;
  z-index: 3;
  padding: 7px 9px;
  border: 1px solid rgba(201, 167, 107, 0.5);
  border-radius: 999px;
  background: rgba(20, 13, 15, 0.62);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wine-card.is-open {
  border-color: rgba(201, 167, 107, 0.54);
  background: rgba(111, 22, 43, 0.16);
}

.wine-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
}

.price-row {
  margin-top: 19px;
  padding: 16px 0 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid rgba(244, 236, 223, 0.13);
}

.price-row span,
.price-row s,
.price-row strong {
  display: block;
}

.price-row span {
  margin-bottom: 5px;
  color: rgba(244, 236, 223, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-row s {
  color: rgba(244, 236, 223, 0.5);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.price-row strong {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.wine-card__basis {
  margin: 10px 0 0;
  color: rgba(244, 236, 223, 0.48);
  font-size: 0.68rem;
  line-height: 1.5;
}

.wine-card__rank {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wine-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.13;
}

.wine-card__region {
  margin: 6px 0 0;
  color: rgba(244, 236, 223, 0.5);
  font-size: 0.72rem;
  line-height: 1.35;
}

.score-seal {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 167, 107, 0.44);
  border-radius: 50%;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.wine-card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.wine-card.is-open .wine-card__details {
  grid-template-rows: 1fr;
}

.wine-card__details-inner {
  overflow: hidden;
}

.wine-card__detail-body {
  padding-top: 20px;
}

.wine-card__gallery {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.wine-card__gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 223, 0.12);
  border-radius: 15px;
  background: #140d10;
}

.wine-card__gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wine-card__gallery-item--bottle img {
  box-sizing: border-box;
  padding: 11px;
  object-fit: contain;
  object-position: center;
}

.wine-card__visual-note {
  margin: 0 0 17px;
  padding-left: 11px;
  border-left: 1px solid rgba(201, 167, 107, 0.58);
  color: rgba(244, 236, 223, 0.5);
  font-size: 0.64rem;
  line-height: 1.55;
}

.wine-card__visual-note a {
  color: rgba(244, 236, 223, 0.78);
  text-underline-offset: 3px;
}

.wine-card__variety {
  margin: 0;
  color: rgba(244, 236, 223, 0.72);
  font-size: 0.84rem;
}

.wine-card__actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-action {
  min-height: 46px;
  border: 1px solid rgba(244, 236, 223, 0.18);
  background: transparent;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
}

.card-action--save[aria-pressed="true"] {
  border-color: var(--brass);
  color: var(--brass);
}

.editorial-note {
  margin-top: 28px;
  color: rgba(244, 236, 223, 0.46);
  font-size: 0.68rem;
  line-height: 1.6;
}

.story-grid {
  margin-top: 38px;
  display: grid;
  gap: 12px;
}

.story-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(20, 13, 15, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
}

.story-card__number {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.story-card h3 {
  margin: 34px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.story-card p {
  margin: 0;
  color: #6d5f59;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer {
  padding: 70px 0 calc(105px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: #10090b;
}

.footer__brand {
  font-family: Georgia, serif;
  font-size: 2.2rem;
}

.footer__copy {
  max-width: 36rem;
  margin: 16px 0 0;
  color: rgba(244, 236, 223, 0.47);
  font-size: 0.72rem;
  line-height: 1.65;
}

.footer__line {
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: rgba(244, 236, 223, 0.42);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.sticky-action {
  position: fixed;
  z-index: 35;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  left: 12px;
  padding: 7px 7px 7px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(244, 236, 223, 0.16);
  border-radius: 999px;
  background: rgba(20, 13, 15, 0.88);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 220ms ease, transform 220ms ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.sticky-action.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-action__copy {
  min-width: 0;
}

.sticky-action__copy span,
.sticky-action__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-action__copy span {
  color: rgba(244, 236, 223, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sticky-action__copy strong {
  max-width: 42vw;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-weight: 400;
}

.sticky-action__button {
  min-width: 120px;
  padding: 0 17px;
}

.overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: max(18px, var(--safe-top)) 18px max(18px, var(--safe-bottom));
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 16%, rgba(111, 22, 43, 0.45), transparent 25rem),
    rgba(12, 7, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.age-panel {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(244, 236, 223, 0.17);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 48%),
    #1a0f12;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.age-panel__seal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 167, 107, 0.6);
  border-radius: 50%;
  color: var(--brass);
  font-family: Georgia, serif;
}

.age-panel h2 {
  margin: 30px 0 12px;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.age-panel p {
  margin: 0;
  color: rgba(244, 236, 223, 0.61);
  line-height: 1.65;
}

.age-panel__actions {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

.age-button {
  width: 100%;
  padding: 0 18px;
}

.age-button--secondary {
  border: 1px solid rgba(244, 236, 223, 0.18);
  background: transparent;
  color: rgba(244, 236, 223, 0.7);
}

.age-panel__fine {
  margin-top: 18px !important;
  color: rgba(244, 236, 223, 0.36) !important;
  font-size: 0.68rem;
}

.language-sheet {
  position: fixed;
  z-index: 80;
  inset: auto 0 0;
  max-height: min(82vh, 680px);
  max-height: min(82dvh, 680px);
  padding: 10px 16px calc(18px + var(--safe-bottom));
  border-top: 1px solid rgba(244, 236, 223, 0.16);
  border-radius: 28px 28px 0 0;
  background: rgba(23, 13, 17, 0.97);
  box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(105%);
  transition: transform 260ms ease;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.language-sheet.is-open {
  transform: translateY(0);
}

.language-sheet__handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(244, 236, 223, 0.25);
}

.language-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.language-sheet h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.language-sheet__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 236, 223, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.language-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
}

.language-option {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(244, 236, 223, 0.14);
  border-radius: 15px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  text-align: start;
}

.language-option[aria-selected="true"] {
  border-color: var(--brass);
  background: rgba(201, 167, 107, 0.12);
  color: var(--brass);
}

.sheet-scrim {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.sheet-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  z-index: 100;
  top: calc(76px + var(--safe-top));
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 15px;
  border: 1px solid rgba(201, 167, 107, 0.4);
  border-radius: 999px;
  background: rgba(20, 13, 15, 0.94);
  color: var(--paper);
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

[dir="rtl"] .ranking-head__source {
  padding-right: 17px;
  padding-left: 0;
  border-right: 1px solid var(--brass);
  border-left: 0;
}

[dir="rtl"] .primary-button::after {
  transform: scaleX(-1);
}

@keyframes hero-breathe {
  from { transform: scale(1.012); }
  to { transform: scale(1.05); }
}

@media (hover: hover) {
  .primary-button:hover,
  .secondary-button:hover,
  .quiz-option:hover,
  .card-action:hover,
  .sticky-action__button:hover,
  .age-button:hover {
    transform: translateY(-2px);
  }

  .wine-card:hover {
    border-color: rgba(201, 167, 107, 0.34);
  }
}

@media (min-width: 600px) {
  .brand__word {
    display: inline;
  }

  .hero__actions {
    width: auto;
    grid-template-columns: auto auto;
  }

  .primary-button,
  .secondary-button {
    width: auto;
    min-width: 210px;
  }

  .wine-list,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-action {
    right: 18px;
    left: auto;
    width: min(420px, calc(100% - 36px));
  }
}

@media (min-width: 820px) {
  .topbar {
    padding-inline: 28px;
  }

  .hero__content {
    padding-bottom: 58px;
  }

  .hero__image {
    background-position: center 52%;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__stats {
    width: min(520px, 100%);
    margin-top: 32px;
  }

  .section {
    padding: 116px 0;
  }

  .tasting-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: stretch;
  }

  .quiz-card,
  .match-card {
    padding: 32px;
  }

  .ranking-head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .wine-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1180px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding-top: calc(82px + var(--safe-top));
    padding-bottom: 28px;
  }

  .hero__content-inner {
    width: 58%;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(4.5rem, 4.8vw, 5.8rem);
    line-height: 0.88;
  }

  .hero__sub {
    max-width: 32rem;
    margin-top: 15px;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .hero__stats {
    margin-top: 24px;
  }

  .hero__image {
    background-position: 68% 54%;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(12, 8, 9, 0.32) 0%, rgba(12, 8, 9, 0.02) 46%, rgba(20, 13, 15, 0.9) 100%),
      linear-gradient(90deg, rgba(11, 7, 8, 0.82) 0%, rgba(11, 7, 8, 0.35) 46%, transparent 76%);
  }

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

  .hero__edition {
    position: absolute;
    z-index: 2;
    top: 96px;
    right: 28px;
    min-width: 116px;
    padding: 13px 15px;
    display: grid;
    gap: 3px;
    border: 1px solid rgba(201, 167, 107, 0.42);
    border-radius: 16px;
    background: rgba(18, 11, 13, 0.38);
    color: var(--paper);
    text-align: right;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .hero__edition span {
    color: rgba(244, 236, 223, 0.56);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.16em;
  }

  .hero__edition strong {
    color: var(--brass);
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero {
    min-height: 720px;
  }

  .hero__content {
    padding-top: 110px;
  }

  .age-panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

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