:root {
  --ink: #1f2320;
  --muted: #68716a;
  --paper: #fffaf0;
  --cream: #f6eedf;
  --foam: #fffdf6;
  --gold: #d69627;
  --amber: #b96028;
  --stout: #2a1f1c;
  --green: #3c6b57;
  --blue: #284c70;
  --line: rgba(31, 35, 32, 0.14);
  --shadow: 0 18px 50px rgba(31, 35, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--foam);
  background: var(--green);
  border-radius: 50%;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
.text-link:hover,
.article-list a:hover {
  color: var(--green);
}

.search-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--foam);
}

.search-button svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 32px 104px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 250, 240, 0), var(--paper));
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 24, 21, 0.78) 0%, rgba(20, 24, 21, 0.48) 44%, rgba(20, 24, 21, 0.08) 100%),
    linear-gradient(0deg, rgba(20, 24, 21, 0.25), rgba(20, 24, 21, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  color: var(--foam);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c15c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 20px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-lead {
  max-width: 36em;
  margin-bottom: 30px;
  color: rgba(255, 253, 246, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #191a16;
  background: #f0c15c;
}

.button.secondary {
  color: var(--foam);
  border: 1px solid rgba(255, 253, 246, 0.56);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.japan-copy h2,
.taste-band h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.explore-grid,
.beer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.beer-card,
.article-list a {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  gap: 10px;
  min-height: 236px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(60, 107, 87, 0.45);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green);
  background: rgba(60, 107, 87, 0.1);
  border-radius: 50%;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-kicker,
.beer-meta,
.article-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card strong {
  font-size: 24px;
  line-height: 1.25;
}

.feature-card span:last-child {
  color: var(--muted);
}

.finder {
  width: min(1240px, calc(100% - 48px));
}

.finder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.finder-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.free-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.free-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.free-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(60, 107, 87, 0.14);
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.world-map-card,
.filter-panel,
.result-panel {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.world-map-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.map-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border: 1px solid rgba(40, 76, 112, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.map-page-links a:hover {
  color: var(--foam);
  background: var(--blue);
}

.map-heading,
.filter-title,
.result-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.map-heading h3,
.filter-title h3,
.result-heading h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

.filter-reset {
  min-height: 34px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(60, 107, 87, 0.08);
  border: 1px solid rgba(60, 107, 87, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.world-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(246, 238, 223, 0.9), transparent 24%),
    linear-gradient(180deg, #e8f2f0 0%, #dbe9e7 55%, #cddedb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.world-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.4), transparent 22%);
  pointer-events: none;
}

.map-art {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-map-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  filter: saturate(0.85) hue-rotate(34deg) brightness(0.92);
  mix-blend-mode: multiply;
}

.world-map::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 253, 246, 0.5);
  border-radius: 6px;
  box-shadow: inset 0 0 50px rgba(255, 253, 246, 0.26);
  pointer-events: none;
}

.map-ocean {
  fill: transparent;
  stroke: none;
}

.map-grid-bg {
  fill: url("#map-grid");
  opacity: 0.34;
  stroke: none;
}

.map-grid-line {
  fill: none;
  stroke: rgba(40, 76, 112, 0.16);
  stroke-width: 1;
}

.land {
  fill: url("#land-gradient");
  stroke: rgba(255, 253, 246, 0.76);
  stroke-width: 2;
}

.greenland {
  fill: rgba(124, 165, 143, 0.52);
}

.japan-islands {
  fill: #2f604f;
}

.map-route {
  fill: none;
  stroke: rgba(214, 150, 39, 0.72);
  stroke-dasharray: 9 10;
  stroke-linecap: round;
  stroke-width: 3;
}

.route-secondary {
  opacity: 0.48;
  stroke: rgba(40, 76, 112, 0.48);
  stroke-width: 2;
}

.map-labels text {
  fill: rgba(31, 35, 32, 0.28);
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.country-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.96);
  border: 1px solid rgba(31, 35, 32, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31, 35, 32, 0.16);
  font-size: 13px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.country-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 9px;
  height: 9px;
  background: inherit;
  border-right: 1px solid rgba(31, 35, 32, 0.18);
  border-bottom: 1px solid rgba(31, 35, 32, 0.18);
  transform: translateX(-50%) rotate(45deg);
}

.country-pin:hover,
.country-pin.is-selected,
.choice-grid button:hover,
.choice-grid button.is-selected {
  color: var(--foam);
  background: var(--green);
  border-color: var(--green);
}

.flag {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  overflow: hidden;
  background: var(--foam);
  border: 1px solid rgba(31, 35, 32, 0.2);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.flag-jp {
  background: radial-gradient(circle at 50% 50%, #bc002d 0 28%, transparent 29%), #fff;
}

.flag-us {
  background:
    linear-gradient(90deg, #25467b 0 42%, transparent 43%),
    repeating-linear-gradient(180deg, #b22234 0 7.7%, #fff 7.7% 15.4%);
}

.flag-de {
  background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.flag-be {
  background: linear-gradient(90deg, #000 0 33.33%, #fae042 33.33% 66.66%, #ed2939 66.66%);
}

.flag-uk {
  background:
    linear-gradient(26deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 53%, #fff 53% 59%, transparent 59%),
    linear-gradient(154deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 53%, #fff 53% 59%, transparent 59%),
    linear-gradient(90deg, transparent 0 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(180deg, transparent 0 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66%),
    #012169;
}

.flag-cz {
  background: linear-gradient(180deg, #fff 0 50%, #d7141a 50%);
}

.flag-cz::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background: #11457e;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.flag-au {
  background:
    radial-gradient(circle at 70% 34%, #fff 0 5%, transparent 6%),
    radial-gradient(circle at 78% 62%, #fff 0 4%, transparent 5%),
    radial-gradient(circle at 58% 70%, #fff 0 3.5%, transparent 4.5%),
    linear-gradient(90deg, #012169 0 45%, transparent 45%),
    #012169;
}

.flag-au::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44%;
  height: 52%;
  background:
    linear-gradient(26deg, transparent 0 38%, #fff 38% 46%, #c8102e 46% 54%, #fff 54% 62%, transparent 62%),
    linear-gradient(154deg, transparent 0 38%, #fff 38% 46%, #c8102e 46% 54%, #fff 54% 62%, transparent 62%),
    linear-gradient(90deg, transparent 0 35%, #fff 35% 43%, #c8102e 43% 57%, #fff 57% 65%, transparent 65%),
    linear-gradient(180deg, transparent 0 31%, #fff 31% 40%, #c8102e 40% 60%, #fff 60% 69%, transparent 69%),
    #012169;
}

.filter-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice-grid button {
  min-height: 40px;
  padding: 7px 12px;
  color: var(--ink);
  background: #f6efe4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.taste-choice-grid button {
  background: #eef2e9;
}

.selection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.selection-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--green);
  background: rgba(60, 107, 87, 0.1);
  border: 1px solid rgba(60, 107, 87, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.country-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.6fr);
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(40, 76, 112, 0.08), rgba(60, 107, 87, 0.1)),
    var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.country-spotlight h3,
.country-spotlight h4 {
  margin-bottom: 8px;
  line-height: 1.25;
}

.country-spotlight h3 {
  font-size: 24px;
}

.country-spotlight p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.country-stat {
  padding: 12px;
  background: rgba(255, 253, 246, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.country-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.country-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.country-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.country-list li:last-child {
  border-bottom: 0;
}

.country-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stat-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border: 1px solid rgba(40, 76, 112, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.stat-links a:hover {
  color: var(--foam);
  background: var(--blue);
}

.japan-drilldown {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 16px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(60, 107, 87, 0.1), rgba(214, 150, 39, 0.08)),
    var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.japan-drilldown.is-hidden {
  display: none;
}

.drilldown-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.drilldown-copy p:last-child {
  margin-bottom: 0;
}

.drilldown-groups {
  display: grid;
  gap: 16px;
}

.filter-title h4 {
  margin: 0;
  font-size: 16px;
}

.prefecture-grid button {
  background: #fffaf0;
}

.result-panel {
  padding: 20px;
}

.result-heading {
  align-items: center;
  margin-bottom: 14px;
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.result-tools label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-tools select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.result-tools input {
  min-height: 38px;
  min-width: min(220px, 100%);
  padding: 0 12px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.review-tools {
  max-width: 760px;
}

.result-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.result-card {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 16px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card button {
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 12px;
  color: var(--foam);
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.card-actions,
.cellar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.cellar-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(64, 111, 85, 0.08);
  border: 1px solid rgba(64, 111, 85, 0.18);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.cellar-button:hover,
.cellar-button.is-saved {
  color: var(--foam);
  background: var(--green);
}

.detail-link-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border: 1px solid rgba(40, 76, 112, 0.14);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.detail-link-button:hover {
  color: var(--foam);
  background: var(--blue);
}

.result-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.result-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.empty-result {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  background: #fffaf0;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.load-more-button {
  display: none;
  min-height: 42px;
  margin: 16px auto 0;
  padding: 0 18px;
  color: var(--foam);
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-weight: 900;
}

.load-more-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.taste-quiz {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(246, 238, 223, 0.82), rgba(232, 242, 240, 0.92)),
    var(--cream);
}

.quiz-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

.quiz-copy p:last-child {
  max-width: 42em;
  margin-bottom: 0;
  color: var(--muted);
}

.quiz-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quiz-controls {
  display: grid;
  gap: 16px;
}

.quiz-controls label {
  display: grid;
  grid-template-columns: 84px 1fr 32px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.quiz-controls input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.quiz-controls output {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.quiz-result {
  display: grid;
  gap: 12px;
}

.quiz-result-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quiz-rank {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--foam);
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.quiz-result-card h3 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.3;
}

.quiz-result-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.data-hub {
  width: min(1180px, calc(100% - 48px));
}

.data-hub-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.data-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.data-tabs button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.data-tabs button:hover,
.data-tabs button.is-selected {
  color: var(--foam);
  background: var(--green);
  border-color: var(--green);
}

.data-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cellar-preview {
  background: #f7efe0;
}

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

.cellar-summary-grid a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cellar-summary-grid strong {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.cellar-summary-grid span {
  color: var(--muted);
  font-weight: 900;
}

.cellar-tabs {
  margin-bottom: 18px;
}

.drink-note-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(64, 111, 85, 0.07);
  border: 1px solid rgba(64, 111, 85, 0.14);
  border-radius: 8px;
}

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

.drink-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.drink-note-form input,
.drink-note-form select,
.drink-note-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.drink-note-form textarea {
  resize: vertical;
}

.review-form {
  display: grid;
  gap: 14px;
}

.review-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.review-form textarea {
  resize: vertical;
}

.review-axis-fieldset {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(64, 111, 85, 0.14);
  border-radius: 8px;
  background: rgba(64, 111, 85, 0.06);
}

.review-axis-fieldset legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.review-axis-fieldset label {
  grid-template-columns: 92px 1fr 28px;
  align-items: center;
  gap: 10px;
}

.review-axis-fieldset input {
  min-height: 26px;
  padding: 0;
}

.review-axis-fieldset output {
  color: var(--green);
  font-weight: 900;
}

.star-rating {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.star-rating legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.star-rating-buttons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-rating-buttons button {
  min-width: 34px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  color: rgba(151, 113, 34, 0.35);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
}

.star-rating-buttons button:hover,
.star-rating-buttons button.is-selected {
  color: #bf7e13;
  background: #fff4d3;
  border-color: rgba(191, 126, 19, 0.32);
}

.star-rating-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-card .review-stars {
  color: rgba(151, 113, 34, 0.3);
  white-space: nowrap;
}

.review-card .review-stars .is-filled {
  color: #bf7e13;
}

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

.review-axis-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 8px;
  color: var(--muted);
  background: rgba(40, 76, 112, 0.06);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.review-axis-list strong {
  color: var(--green);
  font-size: 14px;
}

.data-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.data-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.data-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 4px 10px;
  color: var(--foam);
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
}

.data-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.data-card button {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border: 1px solid rgba(40, 76, 112, 0.14);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.data-card button:hover {
  color: var(--foam);
  background: var(--blue);
}

.beer-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.beer-modal.is-open {
  display: flex;
}

.beer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 23, 0.62);
  backdrop-filter: blur(8px);
}

.beer-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 0.54fr);
  width: min(920px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  background: var(--foam);
  border: 1px solid rgba(255, 253, 246, 0.5);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-beer-visual {
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.94) 0 16%, transparent 17%),
    linear-gradient(160deg, #f5da80, #d69627 52%, #5b3428);
}

.modal-beer-content {
  padding: 38px;
}

.modal-beer-content h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.modal-brewery {
  color: var(--green);
  font-weight: 800;
}

.modal-brewery a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.modal-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-meter-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-meter-list div {
  display: grid;
  grid-template-columns: 88px 1fr 32px;
  align-items: center;
  gap: 10px;
}

.detail-meter-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-meter-list dd {
  position: relative;
  height: 12px;
  margin: 0;
  overflow: hidden;
  background: #e6dfd2;
  border-radius: 999px;
}

.detail-meter-list dd span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--score) / 5) * 100%);
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: inherit;
}

.detail-meter-list .meter-score {
  color: var(--ink);
  font-weight: 900;
}

.beer-page-shell {
  background: var(--paper);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--green);
}

.beer-detail-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 0;
  width: min(1180px, calc(100% - 48px));
  margin: 26px auto 0;
  overflow: hidden;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.beer-detail-visual {
  min-height: 620px;
  overflow: hidden;
}

.beer-detail-main {
  padding: 46px;
}

.beer-detail-main h1 {
  max-width: none;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
}

.beer-detail-note {
  color: var(--muted);
  font-size: 17px;
}

.related-section {
  padding-top: 56px;
}

.country-page-shell {
  background: var(--paper);
}

.country-hero-page {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 26px auto 0;
  align-items: stretch;
}

.brewery-hero-page h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.style-hero-page h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.search-hero-page h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.country-hero-page > div {
  padding: 28px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.country-hero-page h1 {
  max-width: none;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
}

.country-hero-page p {
  color: var(--muted);
}

.country-page-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.country-side-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.country-page-section {
  padding-top: 56px;
}

.search-page-link {
  white-space: nowrap;
}

.search-condition-bar {
  margin-top: 22px;
}

.search-refine-form {
  display: grid;
  gap: 14px;
}

.search-refine-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-refine-form input,
.search-refine-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
}

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

.search-refine-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(40, 76, 112, 0.08);
  border: 1px solid rgba(40, 76, 112, 0.14);
  border-radius: 6px;
  font-weight: 900;
}

.share-button:hover {
  color: var(--foam);
  background: var(--blue);
}

.share-button.line {
  color: #12752c;
  background: rgba(6, 199, 85, 0.1);
  border-color: rgba(6, 199, 85, 0.22);
}

.share-button.line:hover {
  color: #fff;
  background: #06c755;
}

.share-button.x {
  color: #111;
  background: rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.16);
}

.share-button.x:hover {
  color: #fff;
  background: #111;
}

.share-button.instagram {
  color: #9a2f68;
  background: rgba(193, 53, 132, 0.1);
  border-color: rgba(193, 53, 132, 0.18);
}

.share-button.instagram:hover {
  color: #fff;
  background: #c13584;
}

.share-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(320px, calc(100vw - 40px));
  padding: 12px 14px;
  color: var(--foam);
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.japan-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background: #eef2e9;
}

.japan-copy p {
  max-width: 42em;
  margin-bottom: 0;
  color: var(--muted);
}

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

.region-panel a,
.taste-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--foam);
  font-weight: 800;
}

.region-panel a:hover,
.taste-tags a:hover {
  color: var(--foam);
  background: var(--green);
}

.beer-card {
  overflow: hidden;
}

.beer-swatch {
  height: 128px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.beer-image,
.beer-swatch img,
.modal-beer-visual img,
.beer-detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beer-swatch.pale {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(90deg, #e8cf71, #f5da80);
}

.beer-swatch.amber {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.92) 0 18%, transparent 19%),
    linear-gradient(90deg, #d69627, #a84b2a);
}

.beer-swatch.dark {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.86) 0 18%, transparent 19%),
    linear-gradient(90deg, #5b3428, #211817);
}

.beer-card-body {
  padding: 20px;
}

.beer-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.32;
}

.beer-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.meter-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.meter-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
}

.meter-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meter-list dd {
  position: relative;
  height: 8px;
  margin: 0;
  overflow: hidden;
  background: #e6dfd2;
  border-radius: 999px;
}

.meter-list dd span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--score) / 5) * 100%);
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: inherit;
}

.taste-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background: var(--stout);
  color: var(--foam);
}

.taste-band .eyebrow {
  color: #f0c15c;
}

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

.taste-tags a {
  color: var(--foam);
  background: rgba(255, 253, 246, 0.08);
  border-color: rgba(255, 253, 246, 0.22);
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 20px;
  box-shadow: none;
}

.article-list span {
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  color: var(--foam);
  background: #161917;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 253, 246, 0.72);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
    padding: 64px 24px 96px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(20, 24, 21, 0.82), rgba(20, 24, 21, 0.34));
  }

  .section {
    width: min(100% - 36px, 680px);
    padding: 56px 0;
  }

  .explore-grid,
  .beer-grid,
  .finder-head,
  .finder-layout,
  .japan-drilldown,
  .country-spotlight,
  .result-grid,
  .data-view,
  .taste-quiz,
  .japan-focus,
  .taste-band {
    grid-template-columns: 1fr;
  }

  .finder {
    width: min(100% - 36px, 680px);
  }

  .world-map {
    min-height: 430px;
  }

  .country-pin {
    font-size: 12px;
  }

  .map-labels {
    display: none;
  }

  .japan-focus,
  .taste-quiz,
  .taste-band {
    width: 100%;
    padding: 56px 18px;
  }

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

  .country-stat-grid {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 18px;
  }

  .beer-modal {
    padding: 18px;
  }

  .beer-modal-panel {
    grid-template-columns: 1fr;
  }

  .beer-detail-page {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 680px);
  }

  .country-hero-page {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 680px);
  }

  .country-page-stats {
    grid-template-columns: 1fr;
  }

  .cellar-summary-grid {
    grid-template-columns: 1fr;
  }

  .drink-note-grid {
    grid-template-columns: 1fr;
  }

  .review-axis-fieldset label {
    grid-template-columns: 1fr;
  }

  .review-axis-list {
    grid-template-columns: 1fr;
  }

  .beer-detail-visual {
    min-height: 220px;
  }

  .beer-detail-main {
    padding: 28px 22px;
  }

  .breadcrumb {
    width: min(100% - 36px, 680px);
  }

  .modal-beer-visual {
    min-height: 180px;
  }

  .modal-beer-content {
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .region-panel {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 500px;
  }

  .country-pin {
    padding: 5px 8px;
  }

  .article-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-heading,
  .result-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-controls label {
    grid-template-columns: 72px 1fr 28px;
  }
}
