@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800;900&display=swap");

:root {
  --cream: #f6efe3;
  --foam: #fff8e7;
  --ink: #1f1712;
  --gold: #f5c542;
  --green: #1f5a3d;
  --sage: #6f8063;
  --sage-light: #d8e3cf;
  --sage-warm: #87946f;
  --brick: #c96a4d;
  --line: rgba(31, 23, 18, 0.18);
  --muted: #6f625a;
  --card: #fffaf0;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-small: 2px 2px 0 var(--ink);
  --skin: #d79052;
  --hair: #211b18;
  --shirt: #1f5a3d;
  --pants: #1f1712;
  --shoes: #f5c542;
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 231, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #1f5a3d, #6f8063);
  background-size: 22px 22px, 22px 22px, auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.brand,
.profile-chip,
.leaderboard-row,
.profile-summary,
.history-item,
.venue-card-top,
.stat-grid,
.mini-stat,
.view-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.home-button {
  justify-self: start;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand span:not(.pint-logo) {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.pint-logo {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
}

.top-nav,
.map-toolbar,
.segmented,
.button-row,
.swatch-row,
.detail-links,
.stars {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav {
  align-items: center;
}

.nav-button,
.profile-chip,
.option-button,
.swatch-button,
.toggle-pill,
.segmented button,
.secondary-button,
.primary-button {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow-small);
  cursor: pointer;
}

.nav-button,
.segmented button,
.toggle-pill {
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.nav-button.is-active,
.segmented button.is-active,
.toggle-pill.is-active {
  background: var(--gold);
}

.profile-chip {
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  padding: 5px 10px 5px 5px;
  font-weight: 800;
}

.screen {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 18px 12px 32px;
}

.onboarding {
  display: grid;
  align-content: center;
  gap: 16px;
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100svh - 92px);
  padding: 22px 0 28px;
}

.builder-hero,
.builder-panel,
.venue-detail,
.suggestion-panel,
.empty-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.builder-hero {
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 248, 231, 0.28), transparent 28%),
    linear-gradient(135deg, #236044, #7d8d68);
  color: var(--foam);
  position: relative;
}

.builder-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
  height: 220px;
  background: rgba(255, 248, 231, 0.42);
  border: 3px solid rgba(31, 23, 18, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 10px;
  font-size: 2.25rem;
  line-height: 0.96;
}

.builder-hero h1 {
  max-width: 13.5ch;
  margin-bottom: 12px;
}

.builder-hero h3 {
  max-width: 36rem;
  margin-bottom: 0;
  color: rgba(255, 248, 231, 0.84);
  font-size: clamp(0.95rem, 3.4vw, 1.08rem);
  line-height: 1.28;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.venue-card-detail > p,
.empty-detail p,
.legal-note,
.verification-note,
.empty-inline {
  color: var(--muted);
}

.builder-hero > p:not(.eyebrow) {
  color: rgba(255, 248, 231, 0.84);
}

.request-inline-button {
  justify-self: start;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  font-size: 0.78rem;
  font-weight: 900;
}

.builder-fields {
  display: contents;
}

.city-picker-block,
.request-action-row {
  display: grid;
  gap: 8px;
  align-content: start;
}

.request-action-row {
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.request-action-row .request-inline-button {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--card);
  border-color: rgba(31, 23, 18, 0.8);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.72rem;
}

.request-panel {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  color: var(--ink);
  border-top: 2px solid var(--line);
}

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

.city-request-grid label:last-child {
  grid-column: 1 / -1;
}

.character-stage {
  display: grid;
  min-height: 315px;
  place-items: end center;
  margin-top: 14px;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.pub-backdrop,
.pub-backdrop span {
  position: absolute;
  pointer-events: none;
}

.pub-backdrop {
  inset: 0;
  background:
    linear-gradient(0deg, rgba(100, 51, 30, 0.95) 0 28%, transparent 28%),
    linear-gradient(180deg, rgba(72, 39, 27, 0.9) 0 18%, transparent 18%),
    linear-gradient(90deg, rgba(31, 23, 18, 0.08) 1px, transparent 1px),
    linear-gradient(#fff7e9, #f8e6ca 56%, #6f3a23 56%);
  background-size: auto, auto, 34px 100%, auto;
}

.pub-backdrop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  height: 56px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(31, 23, 18, 0.72) 8% 9%, transparent 9% 31%, rgba(31, 23, 18, 0.72) 31% 32%, transparent 32% 68%, rgba(31, 23, 18, 0.72) 68% 69%, transparent 69% 91%, rgba(31, 23, 18, 0.72) 91% 92%, transparent 92%),
    linear-gradient(#6f3a23, #4b2b1f);
  border-top: 3px solid rgba(31, 23, 18, 0.62);
  border-bottom: 3px solid rgba(31, 23, 18, 0.62);
  opacity: 0.9;
}

.pub-backdrop::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28px;
  height: 64px;
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.09) 1px, transparent 1px),
    linear-gradient(#a9653d, #6a351f);
  background-size: 48px 100%, auto;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-shadow: 0 10px 0 #301b14;
  z-index: 1;
}

.pub-light {
  top: 12px;
  width: 34px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 70%, #fff1a8 0 10px, #f5c542 11px 18px, rgba(245, 197, 66, 0.35) 19px 22px, transparent 23px),
    linear-gradient(90deg, transparent 45%, rgba(31, 23, 18, 0.65) 45% 55%, transparent 55%);
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(245, 197, 66, 0.35));
}

.pub-light-left {
  left: 20%;
}

.pub-light-right {
  right: 18%;
}

.pub-post {
  top: 0;
  bottom: 74px;
  width: 22px;
  background: linear-gradient(90deg, #3a2119, #7b452e 50%, #2f1b15);
  border-left: 2px solid rgba(31, 23, 18, 0.75);
  border-right: 2px solid rgba(31, 23, 18, 0.75);
}

.pub-post-left {
  left: 11%;
}

.pub-post-right {
  right: 12%;
}

.pub-tv {
  top: 72px;
  width: 112px;
  height: 68px;
  background:
    radial-gradient(circle at 88% 32%, #e8bd64 0 5px, #2b1a12 5.5px 8px, transparent 8.5px),
    radial-gradient(circle at 88% 62%, #e8bd64 0 4px, #2b1a12 4.5px 7px, transparent 7.5px),
    linear-gradient(90deg, #643421 0 76%, #3b2118 76% 100%);
  border: 4px solid #25150f;
  border-radius: 15px;
  box-shadow:
    0 0 0 3px #6b3721,
    inset 0 0 0 4px rgba(255, 248, 231, 0.08);
  z-index: 1;
}

.pub-tv::before {
  content: "";
  position: absolute;
  inset: 9px 31px 9px 9px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 10px, rgba(255, 248, 231, 0.76) 10px 12px, transparent 12px),
    linear-gradient(90deg, transparent 0 49%, rgba(255, 248, 231, 0.78) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 248, 231, 0.46) 48% 52%, transparent 52%),
    linear-gradient(90deg, transparent 0 10%, rgba(255, 248, 231, 0.62) 10% 11%, transparent 11% 24%, rgba(255, 248, 231, 0.62) 24% 25%, transparent 25% 75%, rgba(255, 248, 231, 0.62) 75% 76%, transparent 76% 89%, rgba(255, 248, 231, 0.62) 89% 90%, transparent 90%),
    repeating-linear-gradient(90deg, #24784d 0 10px, #185f3e 10px 20px);
  border: 2px solid rgba(255, 248, 231, 0.7);
  border-radius: 7px;
}

.pub-tv::after {
  content: "";
  position: absolute;
  left: var(--ball-left, 48%);
  top: var(--ball-top, 48%);
  width: 12px;
  height: 12px;
  background:
    radial-gradient(circle at 50% 50%, #1f1712 0 2px, transparent 2.5px),
    radial-gradient(circle at 30% 32%, #1f1712 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 34%, #1f1712 0 1.5px, transparent 2px),
    radial-gradient(circle at 34% 72%, #1f1712 0 1.5px, transparent 2px),
    radial-gradient(circle at 68% 72%, #1f1712 0 1.5px, transparent 2px),
    var(--foam);
  border: 2px solid #25150f;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pub-tv-left {
  left: 16%;
}

.pub-tv-left::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 248, 231, 0.34) 0 20px, transparent 21px),
    linear-gradient(135deg, rgba(255, 248, 231, 0.28), transparent 44%),
    linear-gradient(#f3c57a, #d5943f);
}

.pub-tv-left::after {
  left: 42%;
  top: 50%;
  width: 21px;
  height: 33px;
  background:
    linear-gradient(90deg, transparent 0 14%, #1f5a3d 14% 86%, transparent 86%) 0 76% / 100% 4px no-repeat,
    linear-gradient(90deg, transparent 0 10%, #f5c542 10% 90%, transparent 90%) 0 87% / 100% 4px no-repeat,
    linear-gradient(90deg, transparent 0 4%, #8f541b 4% 96%, transparent 96%) 0 98% / 100% 4px no-repeat,
    linear-gradient(118deg, #f9df72 0 34%, #c87322 35% 45%, #f5b437 46% 100%);
  border: 2px solid #8f541b;
  border-radius: 14px 14px 6px 6px;
  clip-path: polygon(16% 0, 84% 0, 84% 22%, 70% 35%, 66% 56%, 78% 72%, 92% 100%, 8% 100%, 22% 72%, 34% 56%, 30% 35%, 16% 22%);
}

.pub-tv-right {
  right: 20%;
}

.pub-tv-right::before {
  background:
    linear-gradient(135deg, rgba(255, 248, 231, 0.16), transparent 42%),
    linear-gradient(#214f37, #183627);
}

.pub-tv-right::after {
  display: none;
}

.pub-bar {
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background:
    linear-gradient(90deg, rgba(31, 23, 18, 0.18) 1px, transparent 1px),
    linear-gradient(#6d3f27, #4f2c1d);
  background-size: 44px 100%, auto;
  border-top: 3px solid var(--ink);
  z-index: 2;
}

.pub-bar::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 248, 231, 0.12);
}

.pub-pint,
.drink {
  width: 33px;
  height: 53px;
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.24), transparent 31%),
    linear-gradient(var(--foam) 0 22%, #2b1a12 23% 100%);
  border: 3px solid var(--ink);
  border-radius: 7px 7px 11px 11px;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 231, 0.18);
}

.pub-pint {
  bottom: 68px;
  z-index: 3;
}

.pub-pint::before,
.drink::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  right: 4px;
  height: 9px;
  background: var(--foam);
  border-bottom: 2px solid rgba(31, 23, 18, 0.5);
  border-radius: 6px 6px 4px 4px;
}

.pub-pint::after,
.drink::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 15px;
  width: 13px;
  height: 24px;
  border: 3px solid var(--ink);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.glass-harp {
  position: absolute;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='17 27 18 24'%3E%3Cpath d='M24 30c6 1 9 4 8 9-1 6-6 10-13 9 4-5 5-11 5-18Z' fill='none' stroke='%23f5c542' stroke-opacity='.88' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M27 33 25 46M30 36 27 45M22 37 21 46' fill='none' stroke='%23f5c542' stroke-opacity='.7' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.glass-harp::before,
.glass-harp::after {
  content: none;
}

.pub-pint .glass-harp,
.drink .glass-harp {
  left: 50%;
  top: 26px;
  width: 17px;
  height: 22px;
  opacity: 0.92;
  transform: translateX(-50%);
  z-index: 2;
}

.pub-pint-large {
  left: 14.8%;
  bottom: 72px;
}

.pub-pint-mid {
  left: 38.5%;
  bottom: 76px;
  transform: scale(0.9);
  transform-origin: center bottom;
}

.pub-pint-right {
  right: 17.4%;
  bottom: 72px;
  transform: scale(0.92);
  transform-origin: center bottom;
}

.character-stage .character {
  height: 300px;
  z-index: 4;
}

.builder-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.builder-fields > .primary-button,
.request-panel,
.request-action-row,
.builder-panel > .legal-note {
  grid-column: 1 / -1;
}

label {
  display: grid;
  align-content: start;
  gap: 7px;
  font-weight: 800;
  line-height: 1.12;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 6px;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 248, 231, 0.7);
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.option-section {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
  margin: 0;
  padding-top: 1px;
  border: 0;
}

.option-title {
  margin-bottom: 0;
  padding: 0;
  font-weight: 900;
  line-height: 1.1;
}

.swatch-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--swatch);
  border-radius: 7px;
  overflow: hidden;
}

.swatch-button::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 14px;
  height: 9px;
  background: rgba(255, 248, 231, 0.22);
  border-radius: 999px;
  pointer-events: none;
}

.option-button {
  display: inline-grid;
  min-width: 40px;
  min-height: 38px;
  padding: 0 11px;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

#face-options .option-button {
  width: 44px;
  height: 40px;
  padding: 0;
  font-size: 0.95rem;
}

.hair-option-button {
  display: grid;
  width: 42px;
  height: 40px;
  padding: 0;
  place-items: center;
}

.hair-preview {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
}

.hair-preview-head,
.hair-preview-style {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hair-preview-head {
  bottom: 2px;
  width: 23px;
  height: 23px;
  background: var(--skin);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  z-index: 2;
}

.hair-preview-style {
  top: 5px;
  width: 26px;
  height: 14px;
  background: var(--hair);
  border: 2px solid var(--ink);
  border-radius: 16px 16px 6px 6px;
  z-index: 2;
}

[data-hair-preview="mohawk"] .hair-preview-style {
  top: 1px;
  width: 14px;
  height: 25px;
  background: var(--hair);
  border: 2px solid var(--ink);
  border-radius: 9px 9px 5px 5px;
}

[data-hair-preview="buzz"] .hair-preview-style {
  top: 8px;
  height: 9px;
}

[data-hair-preview="long"] .hair-preview-style {
  top: 3px;
  width: 31px;
  height: 31px;
  border-radius: 17px 17px 12px 12px;
  z-index: 1;
}

[data-hair-preview="bun"] .hair-preview-style {
  top: 8px;
  width: 22px;
  height: 12px;
}

[data-hair-preview="bun"] .hair-preview-style::before,
[data-hair-preview="cap"] .hair-preview-style::before {
  content: "";
  position: absolute;
}

[data-hair-preview="bun"] .hair-preview-style::before {
  top: -9px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--hair);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

[data-hair-preview="cap"] .hair-preview-style {
  top: 3px;
  width: 29px;
  height: 17px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 248, 231, 0.16) 0 11px, transparent 12px),
    linear-gradient(90deg, #1a1718 0 14%, #352b31 15% 84%, #1a1718 85% 100%);
  border: 2px solid var(--ink);
  border-radius: 16px 16px 7px 7px;
}

[data-hair-preview="cap"] .hair-preview-style::before {
  left: 50%;
  bottom: -7px;
  width: 34px;
  height: 11px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 248, 231, 0.12), transparent 50%),
    #2b2227;
  border: 2px solid var(--ink);
  border-radius: 0 0 18px 18px;
}

[data-hair-preview="cap"] .hair-preview-style::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 16px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(255, 248, 231, 0.18);
  border-radius: 999px;
}

[data-hair-preview="bald"] .hair-preview-style {
  display: none;
}

.outfit-groups {
  display: grid;
  gap: 9px;
}

.outfit-group {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.outfit-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.outfit-group .swatch-row {
  gap: 7px;
}

.outfit-group .swatch-button {
  width: 32px;
  height: 32px;
}

.swatch-button.is-selected,
.option-button.is-selected {
  outline: 0;
  box-shadow: 0 0 0 4px var(--gold), var(--shadow-small);
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 900;
}

.primary-button {
  background: var(--green);
  color: var(--foam);
}

.secondary-button {
  background: var(--gold);
}

.legal-note {
  margin: 0;
  font-size: 0.88rem;
}

.app-shell {
  display: block;
}

.app-view {
  display: grid;
  gap: 14px;
}

#map-view {
  gap: 12px;
}

.view-heading {
  justify-content: space-between;
  gap: 12px;
}

.view-heading h1 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.view-heading > div {
  min-width: 0;
}

#map-title {
  color: var(--foam);
  max-width: none;
  text-wrap: balance;
}

#leaderboard-title {
  color: var(--foam);
  max-width: none;
}

.city-control {
  flex: 0 0 180px;
}

.city-control span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.view-heading select {
  max-width: 180px;
  background: var(--gold);
  font-weight: 900;
}

.map-toolbar {
  align-items: end;
  padding: 9px;
  background: rgba(255, 250, 240, 0.76);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.search-field {
  flex: 1 1 220px;
}

.toggle-pill {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.toggle-pill input {
  width: auto;
  min-height: auto;
}

.map-layout {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.map-frame {
  position: relative;
  min-height: 430px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.venue-map {
  min-height: inherit;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #dce8dc;
}

.map-empty-message {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 500;
  margin: 0;
  padding: 10px 12px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow-small);
  font-weight: 800;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-zoom a {
  position: relative;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  place-items: center;
  border: 2px solid var(--ink) !important;
  color: var(--ink) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}

.leaflet-control-zoom a + a {
  border-top: 0 !important;
}

.leaflet-control-zoom a::before {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.leaflet-control-zoom-in::before {
  content: "+";
}

.leaflet-control-zoom-out::before {
  content: "\2212";
}

.leaflet-control-attribution {
  max-width: 170px;
  padding: 1px 3px !important;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.46) !important;
  border: 0 !important;
  border-radius: 3px;
  box-shadow: none !important;
  color: rgba(31, 23, 18, 0.58) !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
  opacity: 0.45;
  white-space: nowrap;
}

.leaflet-control-attribution a {
  color: inherit !important;
}

.empty-map,
.empty-detail {
  display: grid;
  gap: 12px;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.empty-detail .eyebrow {
  margin: 8px 0 0;
}

.empty-detail h2,
.empty-detail p {
  max-width: 15rem;
}

.venue-detail {
  min-height: 430px;
  height: 100%;
  overflow: hidden;
}

.venue-card-detail {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 14px;
}

.venue-card-top {
  justify-content: space-between;
  gap: 12px;
}

.detail-icon {
  display: grid;
  width: 52px;
  height: 58px;
  place-items: center;
}

.trust-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 900;
}

.trust-label.verified {
  background: var(--green);
  color: var(--foam);
}

.trust-label.needs_confirmation {
  background: var(--gold);
}

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

.stat-grid > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.08;
}

.stat-grid strong {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.05rem, 3.2vw, 1.2rem);
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  display: block;
  margin-top: 3px;
  line-height: 1.05;
  white-space: nowrap;
}

.verification-note,
.verification-note-list {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid var(--brick);
}

.verification-note-list {
  display: grid;
  gap: 7px;
  padding-left: 24px;
  color: var(--muted);
}

.verification-note-list li {
  padding-left: 2px;
}

.detail-links a {
  padding: 7px 9px;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-weight: 800;
  text-decoration: none;
}

.checkin-box {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  background: rgba(245, 197, 66, 0.18);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.stars button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-size: 1.35rem;
  cursor: pointer;
}

.stars button.is-selected,
.stars button:hover {
  background: var(--gold);
}

.suggestion-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.suggestion-panel h2 {
  margin-bottom: 0;
}

.map-leaderboard-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.panel-heading h2 {
  margin-bottom: 0;
}

.compact-button {
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.form-feedback {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.leaderboard-list,
.profile-panel,
.history-list,
.profile-grid {
  display: grid;
  gap: 12px;
}

.leaderboard-row {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
  text-align: left;
}

.leaderboard-row:hover {
  transform: translate(-1px, -1px);
}

.rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.leaderboard-pint {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.leaderboard-pint .pint-art {
  width: 30px;
  height: 38px;
}

.leaderboard-copy,
.leaderboard-score {
  display: grid;
  gap: 2px;
}

.leaderboard-copy small,
.leaderboard-score small,
.history-item span,
.mini-stat span {
  color: var(--muted);
}

.leaderboard-score {
  text-align: right;
}

.leaderboard-score strong {
  font-size: 1.35rem;
}

#profile-view {
  gap: 10px;
}

#profile-view .view-heading {
  align-items: end;
}

#profile-title {
  max-width: none;
  color: var(--foam);
  font-size: clamp(2.35rem, 5.8vw, 3.6rem);
  line-height: 0.95;
}

#profile-view .view-heading .eyebrow {
  color: rgba(255, 248, 231, 0.68);
}

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

.profile-summary {
  display: grid;
  grid-template-columns: minmax(188px, 188px) minmax(0, 1fr);
  grid-template-areas:
    "mini copy"
    "stats stats";
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}

.profile-mini-frame {
  grid-area: mini;
  display: grid;
  width: 100%;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 23, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 23, 18, 0.06) 1px, transparent 1px),
    rgba(245, 197, 66, 0.18);
  background-size: 22px 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.profile-mini-frame .mini-frame.is-full {
  width: min(220px, 100%);
  height: 300px;
  overflow: visible;
  transform: none;
}

.profile-mini-frame .mini-frame.is-full .mini-character {
  --mini-scale: 0.9;
  height: 300px;
}

.profile-copy {
  grid-area: copy;
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.profile-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.profile-stat-grid {
  grid-area: stats;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.profile-stat-grid > span {
  min-height: 62px;
  align-content: center;
}

.passport-book {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #1f5a3d;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--foam);
}

.passport-cover {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(31, 23, 18, 0.22) 0 9px, transparent 9px),
    linear-gradient(135deg, #1f5a3d, #18442f);
  border: 3px solid var(--ink);
  border-radius: 6px;
  text-align: center;
  text-transform: uppercase;
}

.passport-cover strong {
  font-size: 1.25rem;
  line-height: 1;
}

.passport-cover small {
  color: rgba(255, 248, 231, 0.74);
  font-weight: 900;
  letter-spacing: 0;
}

.passport-icon {
  width: 48px;
  height: 58px;
}

.passport-pages {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 172px;
  padding: 14px 16px;
  color: var(--ink);
  background:
    linear-gradient(rgba(31, 23, 18, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 23, 18, 0.06) 1px, transparent 1px),
    var(--foam);
  background-size: 28px 28px, 28px 28px, auto;
  border: 3px solid var(--ink);
  border-radius: 6px;
}

.passport-pages-heading h3 {
  margin-bottom: 0;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.passport-stamp {
  position: relative;
  display: grid;
  width: min(100%, 190px);
  min-height: 112px;
  align-content: space-between;
  justify-items: center;
  justify-self: center;
  gap: 6px;
  padding: 13px 15px;
  color: #9b402f;
  background:
    radial-gradient(circle at 12px 10px, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 12px) 10px, currentColor 0 2px, transparent 2.5px),
    linear-gradient(135deg, rgba(159, 63, 43, 0.08), rgba(159, 63, 43, 0.02));
  border: 3px solid currentColor;
  border-radius: 13px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.94;
  box-shadow:
    inset 0 0 0 3px rgba(159, 63, 43, 0.08),
    0 1px 0 rgba(31, 23, 18, 0.05);
}

.passport-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid currentColor;
  border-radius: 9px;
  opacity: 0.72;
}

.passport-stamp::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 39px;
  left: 18px;
  border-top: 2px solid currentColor;
  opacity: 0.7;
}

.passport-stamp strong {
  max-width: 15ch;
  color: currentColor;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  line-height: 0.98;
  z-index: 1;
  overflow-wrap: anywhere;
}

.passport-stamp span {
  position: relative;
  z-index: 1;
  color: currentColor;
  font-weight: 900;
}

.stamp-label {
  padding: 0 10px;
  background: var(--foam);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.stamp-city {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.stamp-meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 7px;
  border: 2px dashed currentColor;
  border-radius: 4px;
  font-size: 0.58rem;
  line-height: 1;
}

.stamp-ink-0 {
  color: #a44635;
}

.stamp-ink-1 {
  color: #1f6a4a;
}

.stamp-ink-2 {
  color: #21466f;
}

.stamp-ink-3 {
  color: #b85d17;
}

.stamp-tilt-0 {
  transform: rotate(-2deg);
}

.stamp-tilt-1 {
  transform: rotate(1.5deg);
}

.stamp-tilt-2 {
  transform: rotate(-0.75deg);
}

.stamp-tilt-3 {
  transform: rotate(2deg);
}

.profile-grid {
  grid-template-columns: 1fr;
}

.profile-grid section {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}

.profile-grid h3,
.history-list h3 {
  margin-bottom: 4px;
}

.mini-stat {
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.history-list {
  gap: 8px;
  margin-top: 0;
  padding: 14px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}

.history-item {
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.history-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-item strong {
  line-height: 1.12;
}

.history-item > div > span {
  font-size: 0.92rem;
  line-height: 1.2;
}

.history-rating {
  flex: 0 0 auto;
  padding: 7px 9px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 5px;
  color: var(--ink);
  font-weight: 900;
}

.history-item p {
  margin: 5px 0 0;
  color: var(--ink);
}

.empty-card {
  padding: 18px;
}

.startup-error {
  max-width: 620px;
}

.startup-error h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.startup-error code,
.startup-error a {
  color: var(--ink);
  font-weight: 900;
}

.startup-error code {
  padding: 1px 5px;
  background: rgba(245, 197, 66, 0.24);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.startup-error a {
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.muted-error {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-inline {
  margin-bottom: 0;
}

.receipt {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: grid;
  gap: 3px;
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  background: var(--green);
  color: var(--foam);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.marker-wrap {
  border: 0;
  background: transparent;
}

.map-marker {
  position: relative;
  display: grid;
  width: 48px;
  height: 50px;
  place-items: center;
  transform: translate(var(--marker-offset-x, 0), var(--marker-offset-y, 0));
  filter: drop-shadow(3px 4px 0 var(--ink));
}

.map-marker-bob {
  position: relative;
  display: grid;
  width: 48px;
  height: 50px;
  place-items: center;
  transform-origin: center bottom;
}

.map-marker .pint-art {
  width: 38px;
  height: 46px;
}

.map-marker-count {
  position: absolute;
  right: -4px;
  bottom: 2px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.map-marker.is-selected {
  transform: translate(var(--marker-offset-x, 0), calc(var(--marker-offset-y, 0px) - 5px)) scale(1.08);
}

.map-marker.is-dense,
.map-marker.is-dense .map-marker-bob {
  width: 40px;
  height: 44px;
}

.map-marker.is-dense .pint-art {
  width: 30px;
  height: 38px;
}

.map-marker.is-dense .map-marker-count {
  right: -5px;
  bottom: 0;
  min-width: 20px;
  height: 20px;
  font-size: 0.64rem;
}

.map-marker.is-checked .map-marker-bob::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: var(--green);
  border: 2px solid var(--foam);
  border-radius: 50%;
}

.leaflet-control-zoom a {
  display: grid !important;
  place-items: center;
  line-height: 1 !important;
}

.leaflet-control-attribution {
  font-size: 7px !important;
  opacity: 0.34;
  transform: scale(0.78);
  transform-origin: right bottom;
}

.pint-art {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pint-glass {
  fill: rgba(255, 248, 231, 0.85);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}

.pint-stout {
  fill: #24150f;
  stroke: var(--ink);
  stroke-width: 2;
}

.pint-foam {
  fill: var(--foam);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}

.pint-shine,
.pint-base,
.pint-mark,
.pint-mark-strings {
  fill: none;
  stroke: rgba(255, 248, 231, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
}

.pint-mark {
  stroke: rgba(245, 197, 66, 0.88);
  stroke-width: 2.3;
  stroke-linejoin: round;
}

.pint-mark-strings {
  stroke: rgba(245, 197, 66, 0.7);
  stroke-width: 1.4;
}

.mini-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.mini-frame {
  display: inline-grid;
  width: 58px;
  height: 68px;
  place-items: center;
  overflow: hidden;
}

.mini-frame.is-avatar {
  width: 32px;
  height: 34px;
}

.mini-frame.is-full {
  width: 120px;
  height: 150px;
}

.mini-character {
  --mini-scale: 0.3;
  transform: scale(var(--mini-scale));
  transform-origin: center bottom;
}

.mini-frame.is-avatar .mini-character {
  --mini-scale: 0.19;
}

.mini-frame.is-full .mini-character {
  --mini-scale: 0.65;
}

.character.is-active-idle {
  transform-origin: center bottom;
  will-change: transform;
}

.character.is-active-idle .head,
.character.is-active-idle .eyes,
.character.is-active-idle .arm-right,
.character.is-active-idle .drink {
  will-change: transform;
}

.character {
  position: relative;
  width: 170px;
  height: 240px;
}

.head {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translateX(-50%);
  background: var(--skin);
  border: 4px solid var(--ink);
  border-radius: 42px 42px 34px 34px;
  z-index: 4;
}

.hair {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 88px;
  height: 46px;
  transform: translateX(-50%);
  background: var(--hair);
  border: 4px solid var(--ink);
  border-radius: 42px 42px 14px 14px;
  z-index: 5;
}

.hair-mohawk {
  top: 8px;
  width: 32px;
  height: 52px;
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.08), transparent 34% 66%, rgba(31, 23, 18, 0.12)),
    var(--hair);
  border-radius: 20px 20px 8px 8px;
}

.hair-buzz {
  top: 31px;
  height: 30px;
}

.hair-long {
  top: 26px;
  height: 108px;
  border-radius: 42px 42px 28px 28px;
  z-index: 3;
}

.hair-bun {
  top: 29px;
  width: 78px;
  height: 38px;
  border-radius: 38px 38px 13px 13px;
}

.hair-bun::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  background: var(--hair);
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.hair-cap {
  top: 27px;
  width: 70px;
  height: 28px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 248, 231, 0.12) 0 20px, transparent 21px),
    linear-gradient(90deg, #171416 0 12%, #342b31 13% 86%, #171416 87% 100%);
  border-radius: 35px 35px 11px 11px;
}

.hair-cap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 78px;
  height: 10px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255, 248, 231, 0.1) 0 20px, transparent 21px),
    #2a2227;
  border: 4px solid var(--ink);
  border-radius: 0 0 38px 38px;
}

.hair-cap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 32px;
  height: 3px;
  transform: translateX(-50%);
  background: rgba(255, 248, 231, 0.12);
  border-radius: 999px;
}

.hair-bald {
  display: none;
}

.eyes {
  position: absolute;
  top: 36px;
  left: 22px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 32px 0 0 var(--ink);
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 26px;
  height: 13px;
  transform: translateX(-50%);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 50% 50%;
}

.mouth-calm {
  height: 4px;
  border-radius: 0;
}

.mouth-wow {
  width: 17px;
  height: 20px;
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.neck {
  position: absolute;
  top: 112px;
  left: 50%;
  width: 32px;
  height: 28px;
  transform: translateX(-50%);
  background: var(--skin);
  border: 4px solid var(--ink);
  z-index: 2;
}

.body {
  position: absolute;
  top: 130px;
  left: 50%;
  width: 96px;
  height: 72px;
  transform: translateX(-50%);
  background: var(--shirt);
  border: 4px solid var(--ink);
  border-radius: 18px 18px 8px 8px;
  z-index: 3;
}

.shirt-detail {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 28px;
  height: 38px;
  transform: translateX(-50%);
  border-left: 3px solid rgba(255, 248, 231, 0.65);
  border-right: 3px solid rgba(255, 248, 231, 0.65);
}

.arm {
  position: absolute;
  top: 138px;
  width: 30px;
  height: 74px;
  background: var(--skin);
  border: 4px solid var(--ink);
  border-radius: 18px;
  z-index: 2;
}

.arm-left {
  left: 28px;
  transform: rotate(12deg);
}

.arm-right {
  right: 28px;
  transform: rotate(-15deg);
  transform-origin: 50% 10%;
}

.drink {
  position: absolute;
  top: 156px;
  right: 14px;
  transform-origin: 50% 15%;
  z-index: 6;
}

.drink-liquid {
  display: none;
}

.pants {
  position: absolute;
  top: 194px;
  left: 50%;
  width: 86px;
  height: 42px;
  transform: translateX(-50%);
  background: var(--pants);
  border: 4px solid var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.leg {
  position: absolute;
  top: 226px;
  width: 27px;
  height: 42px;
  background: var(--skin);
  border: 4px solid var(--ink);
  border-top: 0;
  z-index: 1;
}

.leg-left {
  left: 57px;
}

.leg-right {
  right: 57px;
}

.shoe {
  position: absolute;
  top: 262px;
  width: 38px;
  height: 19px;
  background: var(--shoes);
  border: 4px solid var(--ink);
  border-radius: 12px 12px 4px 4px;
  z-index: 2;
}

.shoe-left {
  left: 48px;
}

.shoe-right {
  right: 48px;
}

@media (min-width: 760px) {
  h1 {
    font-size: 3.75rem;
  }

  .builder-hero h1 {
    max-width: 13.5ch;
    font-size: clamp(3.1rem, 4.25vw, 4rem);
  }

  .view-heading h1 {
    font-size: 3.6rem;
  }

  #map-title {
    font-size: clamp(2.4rem, 3.2vw, 3.35rem);
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 12px 20px;
  }

  .onboarding {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.82fr);
    align-items: stretch;
    align-content: center;
    gap: 20px;
    padding-top: 18px;
  }

  .builder-panel {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    column-gap: 18px;
    row-gap: 12px;
    padding: 20px;
  }

  .builder-fields > .request-action-row {
    grid-column: 1 / -1;
    grid-row: 7;
    justify-content: center;
  }

  .builder-fields > .skin-section {
    grid-column: 1;
    grid-row: 3;
  }

  .builder-fields > .hair-color-section {
    grid-column: 2;
    grid-row: 3;
  }

  .builder-fields > .hair-section {
    grid-column: 1;
    grid-row: 4;
  }

  .builder-fields > .face-section {
    grid-column: 2;
    grid-row: 4;
  }

  .builder-fields > .outfit-section {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .builder-fields > .primary-button {
    grid-row: 6;
  }

  .request-panel {
    grid-row: 8;
  }

  .builder-panel > .legal-note {
    grid-row: 9;
  }

  .builder-fields > .primary-button,
  .request-action-row,
  .request-panel,
  .builder-panel > .legal-note {
    grid-column: 1 / -1;
  }

  .outfit-groups {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .character-stage {
    height: clamp(315px, 34vh, 350px);
    min-height: 0;
  }

  .city-request-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
    align-items: stretch;
  }

  .map-frame,
  .venue-detail {
    min-height: clamp(360px, calc(100svh - 360px), 560px);
  }

  .venue-detail {
    position: sticky;
    top: 106px;
  }

  .suggestion-panel {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.85fr) minmax(180px, 0.85fr) auto;
    align-items: end;
  }

  .suggestion-panel > div,
  .suggestion-panel .form-feedback {
    grid-column: 1 / -1;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .passport-book {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  #profile-view {
    gap: 12px;
  }

  #profile-view .view-heading {
    min-height: auto;
  }

  .profile-panel {
    grid-template-columns: minmax(390px, 0.68fr) minmax(0, 1.32fr);
    grid-template-areas:
      "summary passport"
      "insights history";
    align-items: stretch;
  }

  .profile-summary {
    grid-area: summary;
  }

  .passport-book {
    grid-area: passport;
  }

  .profile-insights {
    grid-area: insights;
    grid-template-columns: 1fr;
  }

  .profile-history {
    grid-area: history;
    max-height: clamp(190px, calc(100vh - 560px), 280px);
    overflow: auto;
  }

  .passport-pages {
    min-height: 208px;
  }
}

@media (max-width: 520px) {
  .screen {
    padding: 14px 10px 26px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 6px;
    padding: 10px;
  }

  .home-button {
    grid-column: 1 / -1;
  }

  .top-nav {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }

  .nav-button {
    min-height: 38px;
    padding: 6px 5px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .profile-chip {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    gap: 4px;
    min-height: 38px;
    padding: 3px 6px 3px 3px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .profile-chip .mini-avatar {
    width: 26px;
    height: 26px;
  }

  .profile-chip #header-name {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mini"
      "copy"
      "stats";
  }

  .profile-mini-frame {
    width: 100%;
    min-height: 260px;
  }

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

  .passport-book {
    padding: 10px;
  }

  .stamp-grid {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-score {
    grid-column: 3;
    text-align: left;
  }

  .view-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #map-view {
    gap: 10px;
  }

  #map-view .view-heading {
    gap: 8px;
  }

  #map-view .view-heading .eyebrow {
    margin-bottom: 2px;
  }

  #profile-view .view-heading {
    align-items: stretch;
  }

  #profile-title {
    font-size: clamp(2.25rem, 13vw, 3.05rem);
  }

  #map-title {
    font-size: clamp(2.25rem, 12vw, 2.9rem);
    line-height: 0.98;
  }

  .city-control {
    flex-basis: auto;
    gap: 4px;
  }

  .city-control span {
    margin-bottom: 0;
  }

  .view-heading select {
    max-width: none;
  }

  .map-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
    gap: 8px;
    align-items: stretch;
    padding: 8px;
  }

  .search-field {
    grid-column: 1 / -1;
    gap: 5px;
  }

  .search-field input {
    min-height: 44px;
  }

  .toggle-pill {
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
  }

  #top-rated-filter {
    width: 100%;
  }

  .map-layout {
    gap: 10px;
  }

  .map-frame {
    height: clamp(300px, 42svh, 380px);
    min-height: 0;
  }

  .venue-detail {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .empty-detail {
    min-height: 260px;
    padding: 18px;
  }

  .venue-card-detail {
    min-height: auto;
    gap: 10px;
    padding: 12px;
  }

  .venue-card-top {
    align-items: flex-start;
  }

  .detail-icon {
    width: 44px;
    height: 50px;
  }

  .venue-card-detail h2 {
    font-size: 1.6rem;
    line-height: 1.05;
  }

  .trust-label {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .detail-links {
    gap: 6px;
  }

  .detail-links a {
    padding: 6px 8px;
  }

  .checkin-box {
    gap: 8px;
    padding: 10px;
  }

  .stars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .stars button {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .checkin-box .primary-button {
    min-height: 46px;
  }
}

@media (min-width: 900px) {
  #map-title {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes map-marker-idle {
    0%,
    100% {
      transform: translateY(0) rotate(-1.1deg);
    }

    50% {
      transform: translateY(-5px) rotate(1.1deg);
    }
  }

  .map-marker {
    transition: transform 160ms ease;
  }

  .map-marker-bob {
    animation: map-marker-idle 3.8s ease-in-out infinite;
    animation-delay: var(--marker-delay, 0s);
  }

  .map-marker.is-selected .map-marker-bob {
    animation-duration: 3.2s;
  }

  .leaderboard-row {
    transition: transform 120ms ease;
  }
}
