/* Base styles reused from the approved VirtualBeer mockups (virtualbeer-poker/styles.css). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #100c09;
  --bg-elev: #1a140f;
  --bg-soft: #241c15;
  --ink: #f6efe3;
  --cream: #eadcc8;
  --muted: #b8a894;
  --amber: #e8a020;
  --amber-bright: #f5c45a;
  --copper: #c46b28;
  --line: rgba(245, 196, 90, 0.16);
  --line-strong: rgba(245, 196, 90, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --beer-1: #f3bf45;
  --beer-2: #e09216;
  --beer-3: #c46b18;
  --beer-4: #8a3f0c;
  --foam: #fffdf8;
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(196, 107, 40, 0.32), transparent 58%),
    radial-gradient(700px 420px at -10% 18%, rgba(232, 160, 32, 0.1), transparent 50%),
    radial-gradient(600px 400px at 50% 120%, rgba(232, 160, 32, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--amber-bright); text-underline-offset: 3px; text-decoration: none; }
::selection { background: var(--amber); color: var(--bg); }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-word em { font-style: italic; color: var(--amber-bright); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: #1a1006;
  box-shadow: 0 8px 24px rgba(232, 160, 32, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-nav { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-wide { width: 100%; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: rgba(0,0,0,.25);
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--bg); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--amber); }

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--cream);
  background: rgba(232, 160, 32, 0.08);
  font-size: 0.8rem;
  font-weight: 500;
}
.pill.on, .pill-solid {
  background: var(--amber);
  color: var(--bg);
  border-color: transparent;
  font-weight: 700;
}

.field { display: grid; gap: 6px; }
.field label, .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .fake-input, .field textarea, .fake-area {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.28);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  outline: none;
}
.fake-area { min-height: 96px; line-height: 1.5; font-weight: 300; }

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(16, 12, 9, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner, .app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.nav-inner { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.nav-actions, .right, .left, .mid { display: flex; align-items: center; gap: 12px; }

/* ================= LANDING ================= */
.landing { padding: 28px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hero h1 em {
  display: block;
  font-style: italic;
  color: var(--amber-bright);
  font-weight: 500;
}
.lead {
  font-size: 1.02rem;
  color: var(--cream);
  max-width: 36rem;
  margin: 0 0 18px;
  font-weight: 300;
}
.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.tier-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tier {
  background: linear-gradient(180deg, rgba(36, 28, 21, 0.92), rgba(20, 16, 12, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 148px;
}
.tier.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(232, 160, 32, 0.35), var(--shadow);
  background: linear-gradient(180deg, rgba(232, 160, 32, 0.14), rgba(20, 16, 12, 0.96));
}
.tier .price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--amber-bright);
  margin: 0 0 4px;
  line-height: 1.1;
}
.tier h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
.tier p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.hero-note { margin: 0; color: var(--muted); font-size: 0.84rem; }
.legal-line { margin: 16px 0 0; color: var(--muted); font-size: 0.76rem; text-align: center; }

.postcard-preview {
  background: linear-gradient(180deg, #2a2118, #14100c);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.postcard-preview .route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
  font-weight: 600;
  margin-bottom: 12px;
}
.dash {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--line-strong);
  margin: 0 8px;
  position: relative;
}
.dash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(90deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5c45a'%3E%3Cpath d='M21 16v-2l-8-5V3.5A1.5 1.5 0 0 0 11.5 2 1.5 1.5 0 0 0 10 3.5V9L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5L21 16z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Stamp */
.stamp {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px double rgba(196, 107, 40, 0.85);
  color: #c46b28;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-12deg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.58rem;
  line-height: 1.2;
  background: radial-gradient(circle, rgba(196,107,40,.08), transparent 70%);
  box-shadow: inset 0 0 0 4px rgba(196, 107, 40, 0.25);
  flex: none;
}
.stamp b { display: block; font-family: var(--font-display); font-style: italic; font-size: 0.72rem; letter-spacing: 0.02em; font-weight: 700; }
.stamp.ink-uk { color: #6a7a8a; border-color: rgba(120,140,160,.8); box-shadow: inset 0 0 0 4px rgba(120,140,160,.25); }
.stamps-row { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }

/* ================= APP ================= */
body.app {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(196, 107, 40, 0.22), transparent 58%),
    var(--bg);
}
.app-nav {
  height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 12, 9, 0.86);
  backdrop-filter: blur(16px);
}
.crumb { color: var(--muted); font-size: 0.86rem; }
.crumb strong { color: var(--ink); font-weight: 600; }

.app-body { height: calc(100vh - 62px); display: grid; }

/* Catalog */
.catalog { grid-template-columns: 280px 1fr; }
.side {
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  background: rgba(16, 12, 9, 0.5);
  overflow: hidden;
}
.side h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.side .lede { margin: 0 0 14px; color: var(--muted); font-size: 0.84rem; }
.continents { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.continents .pill { padding: 4px 10px; font-size: 0.74rem; }
.countries { display: grid; gap: 4px; }
.country {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--cream);
  font-size: 0.9rem;
}
.country.on {
  background: rgba(232, 160, 32, 0.14);
  color: var(--ink);
  border: 1px solid var(--line);
}
.flag { font-size: 1.1rem; line-height: 1; }
.mini-map {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #14100c;
}
.mini-map svg { width: 100%; height: auto; display: block; }
.mini-map .cap { margin: 8px 0 0; font-size: 0.72rem; color: var(--muted); text-align: center; }

.main { padding: 18px 22px 16px; overflow: hidden; display: flex; flex-direction: column; }
.main-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.main-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}
.main-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }
.beer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.beer-card {
  background: linear-gradient(180deg, #241c15, #16110c);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 12px;
  min-height: 268px;
  display: flex;
  flex-direction: column;
}
.beer-card.picked {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(232, 160, 32, 0.4);
}
.beer-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.beer-card .meta { color: var(--amber-bright); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.beer-card .fact { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; flex: 1; }
.stage-bottles {
  height: 118px;
  display: grid;
  place-items: end center;
  margin-bottom: 2px;
}

.uk-row { margin-top: 14px; }
.uk-row h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-bright);
  font-weight: 600;
}
.uk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.uk-grid .beer-card { min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; }
.uk-grid .stage-bottles { height: 64px; margin: 0; flex: none; width: 40px; }
.uk-grid h3 { font-size: 0.95rem; margin: 0; letter-spacing: 0; text-transform: none; color: var(--ink); font-family: var(--font-display); }
.uk-grid .meta { display: block; }

/* ================= BOTTLES ================= */
.btl {
  position: relative;
  width: 36px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.4));
}
.uk-grid .btl, .compact .btl { height: 62px; width: 22px; }
.btl .cap {
  width: 12px;
  height: 8px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #d9be94, #7a5628);
  z-index: 2;
}
.btl .neck {
  width: 10px;
  height: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.28) 40%, rgba(255,255,255,.04));
  border-left: 1px solid rgba(255,255,255,.15);
  border-right: 1px solid rgba(0,0,0,.3);
  z-index: 1;
}
.uk-grid .btl .neck { height: 12px; }
.btl .body {
  width: 28px;
  flex: 1;
  border-radius: 4px 4px 6px 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.uk-grid .btl .body { width: 18px; }
.btl .label {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 28%;
  height: 42%;
  border-radius: 2px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #f6efe3;
  padding: 2px;
}
.uk-grid .btl .label { font-size: 0; height: 36%; top: 30%; }

/* ================= COMPOSE ================= */
.compose { grid-template-columns: 1fr 420px; }
.compose-form { padding: 18px 28px; overflow: hidden; }
.compose-form h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.picked-beer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  margin-bottom: 14px;
}
.picked-beer strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.picked-beer span { color: var(--muted); font-size: 0.8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stack { display: grid; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.pay {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0,0,0,.22);
  text-align: left;
}
.pay.on {
  border-color: var(--amber);
  background: rgba(232, 160, 32, 0.12);
  box-shadow: 0 0 0 1px rgba(232, 160, 32, 0.3);
}
.pay b { display: block; font-family: var(--font-display); font-style: italic; color: var(--amber-bright); font-size: 1.05rem; }
.pay small { color: var(--muted); font-size: 0.72rem; }

.compose-aside {
  background: #0c0a08;
  border-left: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================= RECEIVED CARD ================= */
body.receive { overflow: hidden; height: 100vh; }
.receive-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 24px;
}
.letter {
  width: min(980px, 100%);
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(232, 160, 32, 0.12), transparent 60%),
    linear-gradient(180deg, #2a2118, #14100c);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
}
.letter-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.letter h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
  line-height: 1.05;
}
.letter h1 em { font-style: italic; color: var(--amber-bright); }
.letter-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}
.pour-stage {
  position: relative;
  height: 420px;
  display: grid;
  place-items: end center;
  padding-bottom: 20px;
}
.pour-stage .glow {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.5), transparent 68%);
  filter: blur(18px);
}
.glass {
  position: relative;
  width: 130px;
  height: 250px;
  z-index: 2;
}
.glass-shape {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(246,239,227,.35);
  border-top-color: rgba(246,239,227,.18);
  border-radius: 8px 8px 28px 28px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02) 40%, rgba(255,255,255,.08));
  overflow: hidden;
  box-shadow: inset -16px 0 20px rgba(255,255,255,.05), 0 16px 30px rgba(0,0,0,.35);
}
.glass-shape .liq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78%;
  background: linear-gradient(180deg, #f3bf45, #e09216 30%, #c46b18 70%, #8a3f0c);
}
.glass-shape .foam {
  position: absolute;
  left: 0; right: 0;
  bottom: 76%;
  height: 28px;
  background:
    radial-gradient(16px 12px at 18% 60%, #fff, transparent 70%),
    radial-gradient(18px 14px at 48% 40%, var(--foam), transparent 70%),
    radial-gradient(16px 12px at 82% 65%, #fff, transparent 70%),
    #f6efe3;
  border-radius: 40% 40% 4px 4px;
}
.bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 248, 230, 0.55);
  border: 1px solid rgba(255,255,255,.28);
}
.bubbles span:nth-child(1) { left: 28%; bottom: 22%; width: 7px; height: 7px; }
.bubbles span:nth-child(2) { left: 48%; bottom: 38%; width: 5px; height: 5px; }
.bubbles span:nth-child(3) { left: 62%; bottom: 28%; width: 8px; height: 8px; }
.bubbles span:nth-child(4) { left: 36%; bottom: 52%; width: 4px; height: 4px; }
.bubbles span:nth-child(5) { left: 58%; bottom: 60%; width: 6px; height: 6px; }
.coaster {
  position: absolute;
  bottom: 8px;
  width: 168px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 0%, #5a3a1c, #1a100a 70%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.msg-block {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--cream);
  margin: 0 0 16px;
}
.msg-block cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.letter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.meta-line { color: var(--muted); font-size: 0.84rem; margin: 0 0 8px; }

/* pour animation present in HTML, frozen in shot */
@keyframes fillUp {
  from { height: 0; }
  to { height: 78%; }
}
@keyframes foamIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.glass-shape .liq { animation: fillUp 2.6s ease-out forwards; }
.glass-shape .foam { animation: foamIn 0.8s ease-out 1.8s both; }
html.shot .glass-shape .liq, html.shot .glass-shape .foam { animation: none; }

html.shot *, html.shot *::before, html.shot *::after {
  animation: none !important;
  transition: none !important;
}
html.shot .glass-shape .liq { height: 78%; }
html.shot .glass-shape .foam { opacity: 1; }


/* ================= LIVE APP OVERRIDES ================= */
[hidden] { display: none !important; }
a.btn, button.btn { cursor: pointer; text-decoration: none; }
.btn:focus-visible, .pill:focus-visible, .country:focus-visible, .beer-card:focus-visible, .lang button:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.pill { cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav .crumb { flex: 1; text-align: center; }
.view { min-height: calc(100vh - 64px); }
.free-badge { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--amber-bright); font-size: .85rem; margin: 0 0 14px; }
.free-badge b { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.steps .tier { min-height: 0; }
.steps .tier .price { font-size: 1.2rem; }
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 0 28px; color: var(--muted); font-size: .78rem; }
.site-foot .wrap { display: grid; gap: 8px; }
.site-foot p { margin: 0; }
.site-foot details summary { cursor: pointer; color: var(--cream); }
.site-foot details p { margin-top: 6px; max-width: 60rem; }

/* catalog */
.app-body { height: auto; min-height: calc(100vh - 64px); }
.side, .main, .compose-form { overflow: visible; }
.countries { max-height: 52vh; overflow: auto; padding-right: 4px; }
.country { cursor: pointer; border: 1px solid transparent; background: none; text-align: left; width: 100%; }
.country:hover { background: rgba(232,160,32,.08); }
.country .n { margin-left: auto; color: var(--muted); font-size: .75rem; }
.continents .pill { cursor: pointer; }
.beer-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.beer-card { min-height: 220px; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.beer-card:hover { border-color: var(--line-strong); }
.beer-card .fact { flex: 0; }
.na-toggle[aria-pressed="true"] { background: var(--amber); color: var(--bg); font-weight: 700; }
.disclaimer { color: var(--muted); font-size: .72rem; margin: 14px 0 0; }

/* generic bottle: colors only, no logos */
.btl .body { background: linear-gradient(180deg, var(--shoulder, #d8c8a0) 0 15%, var(--b, #c89020) 15% 100%); }
.btl .label { background: var(--l, #f6efe3); color: var(--li, #1a120c); }
.btl.big { width: 40px; height: 116px; }
.btl.big .body { width: 32px; }
.btl.big .label { font-size: 5.5px; }

/* glass liquid per style */
.glass-shape .liq { background: linear-gradient(180deg, color-mix(in srgb, var(--liq, #e8a020) 70%, #fff3) , var(--liq, #e8a020) 45%, color-mix(in srgb, var(--liq, #e8a020) 70%, #000)); }

/* compose */
.compose { grid-template-columns: 1fr 420px; }
.compose-form { max-width: 820px; }
.field select { appearance: none; width: 100%; border: 1px solid var(--line-strong); background: rgba(0,0,0,.28); border-radius: 12px; padding: .7rem .9rem; color: var(--ink); }
.field select option { background: #1a140f; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; font-weight: 300; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); }
.counter { font-size: .72rem; color: var(--muted); text-align: right; }
.pay { cursor: pointer; color: inherit; font: inherit; }
.pay-row.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--cream); font-size: .85rem; margin: 6px 0 14px; }
.check input { margin-top: 4px; accent-color: var(--amber); }
.form-error { color: #ff9b7a; font-size: .85rem; min-height: 1.2em; margin: 0 0 10px; }
.mobile-stamps { display: none; }

/* sent */
.sent-shell { display: grid; place-items: center; padding: 36px 24px; }
.sent-box { width: min(720px, 100%); }
.sent-box h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; margin: 0 0 8px; letter-spacing: -.02em; }
.sent-box h1 em { color: var(--amber-bright); }
.link-row { display: flex; gap: 8px; margin: 18px 0 10px; }
.link-row input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: rgba(0,0,0,.28); border-radius: 999px; padding: .75rem 1rem; color: var(--ink); }
.notice { border: 1px solid var(--line-strong); background: rgba(232,160,32,.08); border-radius: 14px; padding: 10px 14px; color: var(--cream); font-size: .88rem; margin: 10px 0; }
.notice.ok { border-color: rgba(120,200,140,.5); background: rgba(120,200,140,.08); }

/* received */
.receive-shell { min-height: calc(100vh - 64px); }
.msg-block { white-space: pre-line; overflow-wrap: anywhere; }
.letter .pour-stage { height: 360px; }
.state-msg { text-align: center; color: var(--muted); padding: 80px 20px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  body .postcard-preview { min-height: 0 !important; }
  .catalog { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .countries { display: flex; overflow-x: auto; max-height: none; gap: 6px; padding-bottom: 4px; }
  .country { width: auto; white-space: nowrap; border: 1px solid var(--line); }
  .country .n { display: none; }
  .mini-map { display: none; }
  .compose { grid-template-columns: 1fr; }
  .compose-aside { display: none; }
  .mobile-stamps { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 12px; }
  .mobile-stamps .dash { margin: 0 12px; }
  .letter-grid { grid-template-columns: 1fr; }
  .letter .pour-stage { height: 260px; }
}
@media (max-width: 640px) {
  .wrap, .nav-inner { width: calc(100% - 28px); }
  .nav .crumb, .nav .hide-sm { display: none; }
  .nav-actions { gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .beer-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .beer-card { min-height: 0; padding: 10px; }
  .beer-card .fact { display: none; }
  .main, .side, .compose-form { padding: 14px; }
  .main-head { flex-direction: column; align-items: stretch; }
  .letter { padding: 20px 16px; }
  .letter-top { flex-direction: column; }
  .letter h1 { font-size: 1.8rem; }
  .stamp { width: 74px; height: 74px; font-size: .48rem; }
  .stamp b { font-size: .58rem; }
  .link-row { flex-direction: column; }
  .hero h1 { font-size: 2.2rem; }
}
.app-body > *, .catalog > *, .compose > * { min-width: 0; }
.stamp span { padding: 0 6px; }
.continents { margin-bottom: 10px; }
@media (max-width: 640px) {
  .nav-actions .btn-nav { padding: .45rem .8rem; font-size: .82rem; }
  .logo-word { font-size: 1.05rem; }
  html, body { overflow-x: hidden; }
}
html.shot .nav { position: relative; }
