/* ==========================================================================
   Cicerone Study & Pairing Guide — iPhone 16 PWA Design System
   House Palette:
     Warm Off-White : #FCFCFA
     Deep Navy      : #163A5F
     Hop Green      : #365F43
     Malt Amber     : #9A6312
   Viewport Target  : 393 x 852px logical, viewport-fit=cover
   ========================================================================== */

:root {
  --bg: #FCFCFA;
  --surface: #FFFFFF;
  --surface-tint: #F4F2EC;
  --navy: #163A5F;
  --navy-deep: #0F2944;
  --hop: #365F43;
  --hop-deep: #274732;
  --amber: #9A6312;
  --amber-soft: #FDF6E9;
  --ink: #1C252E;
  --muted: #5A6672;
  --border: #E2DDD2;
  --safe-top: env(safe-area-inset-top, 14px);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ===================== SCREENS ===================== */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen--active {
  display: flex;
}

.screen--snap {
  padding: 0;
  overflow: hidden;
}

/* ===================== HOME SCREEN ===================== */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  flex-shrink: 0;
}

.home-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.home-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.home-split {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 16px 14px;
  min-height: 0;
}

.home-tile {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 10px 24px rgba(22, 58, 95, 0.12);
}

.home-tile:active {
  transform: scale(0.985);
}

.home-tile--navy {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--bg);
}

.home-tile--green {
  background: linear-gradient(145deg, var(--hop) 0%, var(--hop-deep) 100%);
  color: var(--bg);
}

.home-tile__badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #F2C97D;
  margin-bottom: 14px;
}

.home-tile__icon {
  margin-bottom: 14px;
}

.home-tile__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  color: #FCFCFA;
}

.home-tile__sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.42;
  color: rgba(252, 252, 250, 0.86);
  max-width: 280px;
}

/* ===================== TOP BAR & BACK ARROW ===================== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 8px;
  flex-shrink: 0;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22, 58, 95, 0.06);
}

.back-btn:active {
  background: var(--surface-tint);
}

.back-btn--float {
  background: rgba(252, 252, 250, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(22, 58, 95, 0.14);
}

.top-bar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.top-bar__sub {
  font-size: 12px;
  color: var(--muted);
}

/* ===================== STYLE REFERENCES MENU ===================== */
.search-wrap {
  padding: 4px 16px 10px;
  flex-shrink: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.search-field:focus-within {
  border-color: var(--navy);
}

.search-field__icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-sans);
}

.clear-btn {
  border: none;
  background: var(--surface-tint);
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 20px;
}

.search-hit {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.search-hit__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.search-hit__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.search-hit__code {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.region-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 14px;
  gap: 12px;
}

.region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.region-btn {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(22, 58, 95, 0.04);
}

.region-btn:active {
  transform: scale(0.99);
  border-color: var(--navy);
}

.region-btn__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.flag-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.flag-svg {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  display: block;
}

.region-btn__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.region-btn__count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.region-btn__chev {
  color: var(--amber);
  font-weight: 700;
  font-size: 18px;
}

.see-all-wrap {
  margin-top: auto;
  padding: 8px 0 4px;
  text-align: center;
}

.see-all-link {
  width: 100%;
  background: var(--navy);
  color: #FCFCFA;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
}

/* ===================== FULL-SCREEN VERTICAL SNAP DECK ===================== */
.floating-nav {
  position: absolute;
  top: calc(var(--safe-top) + 6px);
  left: 14px;
  right: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.floating-nav > * {
  pointer-events: auto;
}

.deck-pill {
  background: rgba(22, 58, 95, 0.9);
  color: #FCFCFA;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.snap-scroller {
  width: 100%;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.snap-slide {
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: calc(var(--safe-top) + 52px) 14px calc(var(--safe-bottom) + 12px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.card-sheet {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(22, 58, 95, 0.07);
  overflow: hidden;
  min-height: 0;
}

.card-sheet--tappable {
  cursor: pointer;
}

.card-sheet--tappable:active {
  border-color: var(--navy);
}

/* ===================== FLASHCARD INTERNALS ===================== */
.fc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.fc-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.fc-main {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.fc-gauges {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fc-metric {
  background: var(--bg);
  border: 1px solid #EAE6DC;
  border-radius: 10px;
  padding: 6px 8px;
}

.fc-metric__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.fc-metric__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fc-metric__val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
}

.fc-metric__svg svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22px;
}

.fc-metric__sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-glass-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid #EAE6DC;
  border-radius: 14px;
  padding: 8px 4px;
  height: 100%;
}

.fc-glass-img {
  max-width: 100%;
  max-height: 215px;
  object-fit: contain;
  display: block;
}

.fc-notes {
  flex: 1;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 9px;
}

.fc-notes p {
  margin: 0 0 7px;
}

.fc-notes strong {
  color: var(--navy);
}

.fc-tap-cue {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--hop);
}

/* ===================== COMMERCIAL EXAMPLE CARDS (DETAIL 2-4 & PAIRING 9) ===================== */
.commercial-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #163A5F 0%, #0F2944 100%);
  color: #FCFCFA;
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 41, 68, 0.22);
}

.commercial-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F2C97D;
}

.commercial-card__photo-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  border-radius: 16px;
  background: rgba(252, 252, 250, 0.08);
  border: 1px solid rgba(252, 252, 250, 0.16);
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.commercial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specimen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}

.specimen-placeholder__path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.32);
  color: #F2C97D;
  padding: 5px 10px;
  border-radius: 8px;
  word-break: break-all;
}

.commercial-card__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: #FCFCFA;
}

.commercial-card__style {
  font-size: 13.5px;
  color: rgba(252, 252, 250, 0.8);
}

/* ===================== FOOD PAIRING CARD (DETAIL CARD 5) ===================== */
.dish-banner {
  height: 122px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hop) 0%, var(--navy) 100%);
  color: #FCFCFA;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.dish-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.dish-banner__content {
  position: relative;
  z-index: 2;
}

.dish-banner__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F2C97D;
}

.dish-banner__title {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
}

.pairing-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pairing-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
}

.pairing-row__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.pairing-row__dish {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.25;
}

.principle-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #E8F1EB;
  color: var(--hop);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pairing-row__why {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.36;
  color: var(--muted);
}

/* ===================== PAIRING SEARCH SCREEN ===================== */
.pairing-search-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px 20px;
  text-align: center;
}

.pairing-hero-graphic {
  margin: 4px 0 6px;
}

.pairing-prompt-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--navy);
}

.pairing-prompt-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 320px;
}

.pairing-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pairing-input-wrap input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 15.5px;
  color: var(--ink);
  font-family: var(--font-sans);
  outline: none;
}

.pairing-input-wrap input:focus {
  border-color: var(--hop);
}

.primary-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: var(--hop);
  color: #FCFCFA;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 18px;
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.65;
}

.example-chips {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.example-chips__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
}

.chip-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.chip-btn:active {
  background: var(--surface-tint);
}

.status-pill {
  margin-top: auto;
  padding: 7px 12px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-tint);
  border-radius: 999px;
}

/* ===================== PAIRING RESULTS 9-CARD DECK ===================== */
.p-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.p-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.14;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  align-content: start;
  overflow-y: auto;
}

.profile-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
}

.profile-cell--wide {
  grid-column: 1 / -1;
}

.profile-cell__k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.profile-cell__v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.component-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.component-tag {
  background: #E8F1EB;
  color: var(--hop);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}

/* Trait Cards 2-7 */
.trait-target-box {
  background: var(--amber-soft);
  border: 1.5px solid #E5C891;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0 14px;
}

.trait-target-box__k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.trait-target-box__v {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 3px;
}

.trait-why {
  font-size: 15px;
  line-height: 1.52;
  color: var(--ink);
  margin: 0 0 18px;
}

.running-counter {
  margin-top: auto;
  background: var(--navy);
  color: #FCFCFA;
  border-radius: 16px;
  padding: 16px 18px;
}

.running-counter__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.running-counter__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #F2C97D;
  line-height: 1;
}

.running-counter__of {
  font-size: 14px;
  color: rgba(252, 252, 250, 0.85);
}

.running-counter__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(252, 252, 250, 0.18);
  overflow: hidden;
  margin-bottom: 8px;
}

.running-counter__fill {
  height: 100%;
  background: linear-gradient(90deg, #529468 0%, #F2C97D 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.running-counter__sub {
  font-size: 12px;
  color: rgba(252, 252, 250, 0.78);
}

/* Card 8: Top 5 Pairings */
.top5-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top5-row {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 10px 12px;
  cursor: pointer;
}

.top5-row:active {
  border-color: var(--navy);
}

.top5-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.top5-row__rank {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.top5-row__score {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--hop);
  color: #FCFCFA;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.top5-row__fb {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Card 9: Top 3 Commercial Showcase */
.showcase-grid {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
  min-height: 0;
}

.showcase-tile {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #FCFCFA;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.showcase-tile__thumb {
  width: 76px;
  height: 100%;
  max-height: 126px;
  border-radius: 10px;
  background: rgba(252, 252, 250, 0.12);
  border: 1px solid rgba(252, 252, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-tile__rank {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2C97D;
}

.showcase-tile__beer {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0;
  line-height: 1.15;
}

.showcase-tile__style {
  font-size: 12px;
  color: rgba(252, 252, 250, 0.8);
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 68, 0.55);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy);
}

.modal-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 14px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  background: var(--surface);
}

.modal-actions {
  margin-top: 16px;
}
