:root {
  --green-950: #0a140e;
  --green-900: #10241a;
  --green-700: #1d3d2b;
  --paper: #f7f1dd;
  --paper-2: #f0e7cb;
  --paper-line: #ded2ac;
  --ink: #20241c;
  --ink-soft: #6c6a4e;
  --gold: #e3a514;
  --gold-deep: #9a6e08;
  --gold-soft: #f2c75c;
  --stamp: #1f6b44;
  --stamp-dark: #124a2e;
  --danger: #a0432f;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-page: 0 30px 60px -20px rgba(2, 10, 5, 0.6), 0 4px 10px rgba(2, 10, 5, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 107, 68, 0.4), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(227, 165, 20, 0.14), transparent 60%),
    var(--green-950);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--green-950);
}

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

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

.bunting {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
  overflow: hidden;
}

.bunting span {
  width: 34px;
  height: 44px;
  flex: 0 0 auto;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: sway 3.4s ease-in-out infinite;
}

.bunting span:nth-child(odd) {
  animation-delay: -1.7s;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.f-gold {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep));
}
.f-green {
  background: linear-gradient(160deg, #2e7a4e, var(--green-900));
}
.f-br {
  background: linear-gradient(135deg, #009739 55%, #fedd00 55% 78%, #012169 78%);
}
.f-sn {
  background: linear-gradient(90deg, #00853f 33%, #fdef42 33% 66%, #e31b23 66%);
}
.f-gh {
  background: linear-gradient(180deg, #ce1126 33%, #fcd116 33% 66%, #006b3f 66%);
}
.f-it {
  background: linear-gradient(90deg, #008c45 33%, #f4f5f0 33% 66%, #cd212a 66%);
}
.f-in {
  background: linear-gradient(180deg, #ff9933 33%, #fff 33% 66%, #138808 66%);
}
.f-cn {
  background: #de2910;
}
.f-cl {
  background:
    linear-gradient(180deg, #fff 0 50%, #d52b1e 50%),
    linear-gradient(90deg, #0039a6 0 40%, transparent 40%);
}
.f-us {
  background: repeating-linear-gradient(180deg, #b31942 0 6px, #fff 6px 12px);
}
.f-nz {
  background: #012169;
}

.topbar,
.wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s4);
}

.brand-logos,
.topbar-link {
  color: #d7dcc7;
  text-decoration: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.logo-peregrinos {
  display: block;
  width: clamp(142px, 26vw, 220px);
  height: auto;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 34px;
  background: rgba(242, 199, 92, 0.38);
}

.logo-ipo-tile,
.cover-logo-ipo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-ipo-tile {
  width: clamp(132px, 22vw, 190px);
  height: 46px;
  padding: 0;
}

.logo-ipo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.topbar-link {
  border: 1px solid rgba(242, 199, 92, 0.32);
  border-radius: 999px;
  padding: 9px 14px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-link:hover,
.brand-logos:hover {
  color: #fff;
}

.wrap {
  padding: var(--s5) 0 var(--s8);
}

.cover {
  position: relative;
  margin-top: var(--s5);
  background: radial-gradient(140% 120% at 50% -20%, var(--green-700), var(--green-900) 60%);
  border: 1px solid rgba(227, 165, 20, 0.5);
  border-radius: var(--r-lg);
  padding: var(--s7) var(--s5) var(--s6);
  color: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-page);
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid rgba(227, 165, 20, 0.55);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: repeating-conic-gradient(
    from 0deg at 50% 120%,
    transparent 0 9deg,
    rgba(227, 165, 20, 0.06) 9deg 9.5deg
  );
  pointer-events: none;
}

.cover > * {
  position: relative;
  z-index: 1;
}

.cover-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin: 0 auto var(--s5);
}

.cover-logo-peregrinos {
  display: block;
  width: min(280px, 54vw);
  height: auto;
  object-fit: contain;
}

.cover-logo-ipo-tile {
  width: min(300px, 44vw);
  height: 86px;
  padding: 0;
}

.cover-logo-ipo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.eyebrow {
  display: block;
  margin-bottom: var(--s4);
  color: var(--gold-soft);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

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

.cover h1 {
  margin: 0;
  background: linear-gradient(180deg, #f8e7b4, var(--gold) 70%, var(--gold-deep));
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
  font: 800 clamp(42px, 8vw, 76px) / 0.95 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.compass {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: var(--s5) auto var(--s4);
  position: relative;
  border: 1.5px solid rgba(242, 199, 92, 0.84);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(247, 241, 221, 0.16) 0 17%, transparent 18%),
    conic-gradient(from 45deg, transparent 0 12.5%, rgba(242, 199, 92, 0.2) 12.5% 25%, transparent 25% 37.5%, rgba(242, 199, 92, 0.2) 37.5% 50%, transparent 50% 62.5%, rgba(242, 199, 92, 0.2) 62.5% 75%, transparent 75% 87.5%, rgba(242, 199, 92, 0.2) 87.5% 100%);
  box-shadow:
    inset 0 0 0 8px rgba(227, 165, 20, 0.08),
    0 0 24px rgba(227, 165, 20, 0.18);
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
}

.compass::before {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold) 0 50%, transparent 50%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transform: rotate(45deg);
}

.compass::after {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--green-900);
  border-radius: 50%;
  background: var(--gold-soft);
}

.compass i {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(242, 199, 92, 0.45);
  border-radius: 50%;
}

.cover .sub {
  max-width: 56ch;
  margin: var(--s3) auto 0;
  color: #d7dcc7;
  font-size: 15px;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  margin-top: var(--s5);
  color: var(--gold-soft);
  font: 500 12px/1.4 var(--font-mono);
}

.meta span {
  border: 1px solid rgba(227, 165, 20, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
}

.page,
.section-block {
  position: relative;
  margin-top: var(--s5);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(31, 107, 68, 0.05) 34px 35px),
    radial-gradient(120% 100% at 50% 0%, var(--paper), var(--paper-2));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-page);
  padding: var(--s6) clamp(16px, 5vw, 56px) 0;
  overflow: hidden;
}

.page::before,
.section-block::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: repeating-linear-gradient(45deg, var(--stamp) 0 2px, transparent 2px 8px);
  opacity: 0.28;
}

.intro {
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.45);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.intro b {
  color: var(--ink);
}

.req-note {
  margin-bottom: var(--s4);
  color: var(--danger);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
}

.route {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  color: var(--ink-soft);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.route .path {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 8px, transparent 8px 16px);
}

.route .plane {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -58%);
  color: var(--stamp);
  font-size: 20px;
  transition: left 0.5s cubic-bezier(0.5, 1.4, 0.4, 1);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.route .pct {
  min-width: 44px;
  color: var(--stamp);
  text-align: right;
}

.step {
  padding: var(--s5) 0 var(--s6);
  border-bottom: 1px dashed var(--paper-line);
}

.step:last-of-type {
  border-bottom: 0;
}

.step-head,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

.tag,
.step-pill {
  display: inline-block;
  transform: rotate(-1.5deg);
  border-radius: 3px;
  background: var(--stamp);
  color: var(--paper);
  padding: 6px 10px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.step-head h2,
.section-heading h2,
.admin-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(22px, 4vw, 30px) / 1 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hint,
.section-heading p,
.guest-panel p,
.admin-toolbar p {
  max-width: 64ch;
  margin: 0 0 var(--s4);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.full {
  grid-column: 1 / -1;
}

.field {
  display: block;
}

.field span,
.choice-group legend {
  display: block;
  margin-bottom: var(--s2);
  color: var(--ink-soft);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field b,
.choice-group b {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  appearance: none;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  padding: 12px 14px;
  font: 500 16px/1.4 var(--font-body);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--stamp);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(31, 107, 68, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a79d82;
}

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

.country-select-field select {
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--stamp) 50%) calc(100% - 22px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--stamp) 50%, transparent 50%) calc(100% - 16px) 52% / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.68);
}

.mobile-country-card {
  display: none;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-control {
  display: flex;
  gap: var(--s2);
}

.segmented-control label {
  position: relative;
  flex: 1;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: block;
  min-height: 44px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  padding: 13px 10px;
  color: var(--ink);
  cursor: pointer;
  font: 600 14px/1.2 var(--font-body);
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.segmented-control span:hover {
  border-color: var(--stamp);
}

.segmented-control input:checked + span {
  border-color: var(--stamp);
  background: var(--stamp);
  color: var(--paper);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

.reveal:not([hidden]) {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.guest-panel {
  margin-top: var(--s4);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.45);
  padding: var(--s5);
}

.guest-panel h3,
.dhead h3 {
  margin: 0;
  font: 800 18px/1.1 var(--font-display);
  text-transform: uppercase;
}

.guests-list {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

.guest-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(96px, 0.45fr) auto;
  gap: var(--s3);
  align-items: end;
  border-bottom: 1px dashed var(--paper-line);
  padding-bottom: var(--s3);
}

.guest-actions,
.selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: flex-start;
  margin-top: var(--s4);
}

.nations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}

.nation-card {
  position: relative;
  min-height: 168px;
}

.nation-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nation-surface {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  padding: var(--s4) var(--s2);
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.nation-surface:hover {
  transform: translateY(-3px);
  border-color: var(--stamp);
}

.nation-card-sold-out .nation-surface {
  cursor: not-allowed;
  border-color: rgba(108, 106, 78, 0.28);
  background: rgba(238, 235, 222, 0.72);
  box-shadow: none;
  filter: grayscale(1);
  opacity: 0.68;
}

.nation-card-sold-out .nation-surface:hover {
  transform: none;
  border-color: rgba(108, 106, 78, 0.28);
}

.nation-card-sold-out .nation-name,
.nation-card-sold-out .nation-reference {
  color: #8c8875;
}

.nation-card-sold-out .nation-seal {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
}

.nation-card-sold-out .nation-seal b {
  border-color: #77705e;
  background: rgba(247, 241, 221, 0.9);
  color: #77705e;
}

.nation-flag {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 4px;
  border: 1.5px solid rgba(222, 210, 172, 0.9);
  border-radius: 50%;
  background: rgba(247, 241, 221, 0.72);
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.nation-flag-img {
  display: block;
  width: 46px;
  height: 34px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(32, 36, 28, 0.16);
  object-fit: cover;
}

.nation-name {
  color: var(--ink);
  font: 700 13px/1.15 var(--font-display);
  text-align: center;
  text-transform: uppercase;
}

.nation-reference {
  color: var(--ink-soft);
  font: 500 10px/1.35 var(--font-mono);
  letter-spacing: 0.02em;
  text-align: center;
}

.nation-reference::before {
  content: "em homenagem a ";
  display: block;
  color: #a79d82;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nation-seal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-14deg) scale(2.2);
}

.nation-seal b {
  border: 2.5px double var(--stamp);
  border-radius: 6px;
  background: rgba(247, 241, 221, 0.86);
  color: var(--stamp);
  padding: 7px 9px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
}

.nation-card input:checked + .nation-surface {
  border-color: var(--stamp);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 107, 68, 0.16);
}

.nation-card input:checked + .nation-surface .nation-seal {
  animation: stampIn 0.38s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scale(2.4);
  }
  60% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}

.nation-card input:focus-visible + .nation-surface {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

.dishes {
  margin-top: var(--s5);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  padding: var(--s5);
}

.selected-dishes-panel {
  margin-top: var(--s4);
  border: 1.5px solid rgba(31, 107, 68, 0.24);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 241, 221, 0.66)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(154, 110, 8, 0.055) 24px 25px);
  padding: var(--s4);
}

.selected-dishes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.selected-dishes-head h3 {
  margin: 0;
  color: var(--stamp-dark);
  font: 800 16px/1.1 var(--font-display);
  text-transform: uppercase;
}

.selected-items-list {
  display: grid;
  gap: var(--s2);
}

.selected-item-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  border: 1px dashed rgba(31, 107, 68, 0.2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.selected-item-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font: 700 11px/1 var(--font-mono);
}

.selected-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.selected-item-copy b {
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 700 14px/1.25 var(--font-body);
}

.selected-item-copy small {
  color: var(--ink-soft);
  font: 600 10px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-item-remove {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.dhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.count {
  border: 1.5px solid var(--stamp);
  border-radius: 999px;
  color: var(--stamp);
  padding: 7px 12px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.dish-list {
  display: grid;
}

.item-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: center;
  min-height: 68px;
  border-bottom: 1px dashed var(--paper-line);
  padding: var(--s3) 0;
  cursor: pointer;
}

.item-card:last-child {
  border-bottom: 0;
}

.item-card > input[type="checkbox"] {
  appearance: none;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--paper-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.item-card > input[type="checkbox"]:checked {
  border-color: var(--stamp);
  background: var(--stamp);
}

.item-card > input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--paper);
  font: 700 14px/1 var(--font-body);
}

.item-card > input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

.item-title {
  display: block;
  color: var(--ink);
  font: 600 15px/1.35 var(--font-body);
}

.item-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font: 500 11px/1.35 var(--font-mono);
}

.other-input {
  grid-column: 2;
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--paper-line);
  background: transparent;
  color: var(--ink);
  padding: 8px 2px;
  outline: none;
  font: 500 14px/1.3 var(--font-body);
}

.other-input:focus {
  border-color: var(--stamp);
}

.other-input[hidden] {
  display: none;
}

.muted-state {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.summary-list {
  display: grid;
  gap: 10px;
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.45);
  padding: var(--s4) var(--s5);
}

.summary-list p {
  margin: 0;
  color: var(--ink-soft);
}

.summary-row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: var(--s3);
  line-height: 1.5;
}

.summary-label {
  color: var(--ink-soft);
  font: 600 11px/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions {
  padding: var(--s5) 0 var(--s6);
  text-align: center;
}

.actions small {
  display: block;
  margin-top: var(--s3);
  color: var(--ink-soft);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.danger-button {
  min-height: 44px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--green-950);
  padding: 18px 34px;
  box-shadow: 0 6px 0 var(--gold-deep), 0 14px 24px rgba(227, 165, 20, 0.3);
  font: 800 18px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--gold-deep), 0 6px 12px rgba(227, 165, 20, 0.25);
}

.secondary-button,
.ghost-button,
.icon-button {
  border: 1.5px solid var(--stamp);
  background: transparent;
  color: var(--stamp);
  padding: 0 16px;
  font: 700 14px/1 var(--font-body);
}

.secondary-button:hover,
.ghost-button:hover {
  background: var(--stamp);
  color: var(--paper);
}

.icon-button,
.danger-button {
  border-color: var(--paper-line);
  color: var(--danger);
}

.danger-button {
  border: 1.5px solid rgba(160, 67, 47, 0.72);
  background: transparent;
  padding: 0 16px;
  font: 700 14px/1 var(--font-body);
}

.danger-button:hover {
  background: var(--danger);
  color: var(--paper);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.form-error,
.error-message {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-error {
  margin: var(--s3) 0 0;
}

.form-error[data-tone="info"] {
  color: var(--ink-soft);
}

.mrz {
  margin: 0 calc(-1 * clamp(16px, 5vw, 56px));
  border-top: 1.5px solid var(--paper-line);
  background: #ede4c4;
  color: #8c8460;
  padding: var(--s4) clamp(16px, 5vw, 56px);
  overflow: hidden;
  font: 500 clamp(10px, 2.4vw, 14px) / 1.7 var(--font-mono);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.success-dialog {
  width: min(460px, calc(100% - 28px));
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow-page);
}

.success-dialog::backdrop {
  background: rgba(10, 20, 14, 0.85);
  backdrop-filter: blur(4px);
}

.success-dialog form {
  position: relative;
  overflow: hidden;
  padding: var(--s7) var(--s6);
  text-align: center;
}

.big-stamp {
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  margin: 0 auto var(--s4);
  transform: rotate(-10deg);
  border: 4px double var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  animation: bigStamp 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) 0.15s both;
}

.big-stamp div {
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.big-stamp b {
  display: block;
  font: 800 20px/1.1 var(--font-display);
}

@keyframes bigStamp {
  0% {
    opacity: 0;
    transform: rotate(-26deg) scale(2.6);
  }
  65% {
    opacity: 1;
    transform: rotate(-10deg) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

.success-dialog h2 {
  margin: 0 0 var(--s2);
  font: 800 26px/1.1 var(--font-display);
  text-transform: uppercase;
}

.success-dialog p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--s5);
}

.admin-shell {
  padding-bottom: var(--s8);
}

.compact-intro {
  padding-block: var(--s6);
}

.compact-intro h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.section-block {
  padding-bottom: var(--s6);
}

.admin-login .field-grid {
  align-items: end;
}

.admin-message {
  grid-column: 1 / -1;
}

.admin-login-button {
  width: fit-content;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.back-link {
  color: var(--gold-soft);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.registrations-list {
  display: grid;
  gap: var(--s3);
}

.registration-card {
  display: grid;
  gap: var(--s3);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  padding: var(--s4);
}

.registration-title {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  justify-content: space-between;
}

.registration-title h3 {
  margin: 0;
  font: 800 18px/1.1 var(--font-display);
  text-transform: uppercase;
}

.registration-title span,
.registration-meta p {
  color: var(--ink-soft);
}

.registration-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}

.registration-meta p {
  margin: 0;
  line-height: 1.45;
}

.item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: flex-end;
}

.edit-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: min(860px, calc(100vh - 24px));
  border: 0;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(31, 107, 68, 0.05) 34px 35px),
    radial-gradient(120% 100% at 50% 0%, var(--paper), var(--paper-2));
  color: var(--ink);
  box-shadow: var(--shadow-page);
}

.edit-dialog::backdrop {
  background: rgba(10, 20, 14, 0.82);
  backdrop-filter: blur(3px);
}

.edit-dialog form {
  padding: var(--s6);
}

.edit-dialog-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s5);
}

.edit-dialog-head h2 {
  margin: var(--s2) 0 0;
  font: 800 clamp(22px, 4vw, 30px) / 1 var(--font-display);
  text-transform: uppercase;
}

.edit-items-block {
  margin-top: var(--s5);
}

.edit-items-block h3 {
  margin-bottom: var(--s2);
  font: 800 18px/1.1 var(--font-display);
  text-transform: uppercase;
}

.edit-items {
  display: grid;
  gap: var(--s2);
  max-height: 420px;
  overflow: auto;
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.42);
  padding: var(--s4);
}

.edit-country-group {
  display: grid;
  gap: var(--s2);
  border-bottom: 1px dashed var(--paper-line);
  padding-bottom: var(--s3);
}

.edit-country-group h4 {
  margin: var(--s2) 0 0;
  color: var(--stamp-dark);
  font: 700 12px/1.2 var(--font-display);
  text-transform: uppercase;
}

.edit-item {
  display: flex;
  gap: var(--s3);
  align-items: center;
  color: var(--ink);
  line-height: 1.35;
}

.edit-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--stamp);
}

.edit-item.unavailable {
  color: var(--ink-soft);
  opacity: 0.72;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s5);
}

.item-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(31, 107, 68, 0.2);
  border-radius: 999px;
  background: rgba(31, 107, 68, 0.1);
  color: var(--stamp-dark);
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.other-badge {
  border-color: rgba(154, 110, 8, 0.25);
  background: rgba(242, 199, 92, 0.28);
  color: #8a481e;
}

@media (max-width: 760px) {
  .topbar,
  .wrap {
    width: min(100% - 20px, 920px);
  }

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

  .brand-logos {
    justify-content: center;
  }

  .topbar-link {
    text-align: center;
  }

  .cover-logos {
    flex-direction: column;
  }

  .cover-logo-peregrinos {
    width: min(260px, 72vw);
  }

  .cover-logo-ipo-tile {
    width: min(220px, 70vw);
  }

  .cover {
    padding: var(--s6) var(--s4);
  }

  .grid,
  .field-grid,
  .guest-row,
  .summary-row,
  .registration-meta {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    flex-direction: column;
  }

  .country-select-field {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .country-select-field > span:first-child {
    margin-bottom: var(--s2);
  }

  .mobile-country-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: var(--s3);
    align-items: center;
    min-height: 76px;
    overflow: hidden;
    border: 1.5px solid rgba(31, 107, 68, 0.24);
    border-radius: var(--r-md);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 221, 0.82)),
      repeating-linear-gradient(90deg, transparent 0 22px, rgba(31, 107, 68, 0.05) 22px 23px);
    box-shadow: 0 12px 28px -22px rgba(16, 36, 26, 0.7);
    padding: 10px 10px 10px 12px;
  }

  .country-select-field .mobile-country-card,
  .country-select-field .mobile-country-card span {
    margin-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
  }

  .country-select-field .mobile-country-card {
    display: grid;
  }

  .country-select-field .mobile-country-flag,
  .country-select-field .mobile-country-copy {
    display: grid;
  }

  .country-select-field .mobile-country-action {
    display: inline-block;
  }

  .mobile-country-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(154, 110, 8, 0.28);
    border-radius: calc(var(--r-md) - 5px);
    pointer-events: none;
  }

  .mobile-country-flag {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1.5px solid rgba(222, 210, 172, 0.95);
    border-radius: 50%;
    background: rgba(247, 241, 221, 0.86);
    color: var(--gold-deep);
    font: 700 22px/1 var(--font-display);
    z-index: 1;
  }

  .mobile-country-flag img {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(32, 36, 28, 0.15);
    object-fit: cover;
  }

  .mobile-country-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
    z-index: 1;
  }

  .mobile-country-copy b {
    overflow: hidden;
    color: var(--ink);
    font: 800 16px/1.1 var(--font-display);
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-country-copy small {
    overflow: hidden;
    color: var(--ink-soft);
    font: 500 11px/1.25 var(--font-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-country-action {
    align-self: center;
    border: 1px solid rgba(31, 107, 68, 0.22);
    border-radius: 999px;
    background: rgba(31, 107, 68, 0.08);
    color: var(--stamp-dark);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
    padding: 8px 9px;
    text-transform: uppercase;
    z-index: 1;
  }

  .mobile-country-card select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
  }

  .nations {
    display: none;
  }

  .dishes,
  .guest-panel,
  .selected-dishes-panel {
    padding: var(--s4);
  }

  .selected-item-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .selected-item-marker {
    width: 30px;
    height: 30px;
  }

  .selected-item-remove {
    grid-column: 1 / -1;
    width: 100%;
  }

  .primary-button {
    width: 100%;
    padding-inline: var(--s4);
  }

  .secondary-button,
  .ghost-button,
  .icon-button,
  .danger-button {
    width: 100%;
  }

  .registration-actions,
  .edit-actions {
    justify-content: stretch;
  }

  .edit-dialog form {
    padding: var(--s5) var(--s4);
  }

  .mrz {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .bunting span {
    width: 26px;
    height: 34px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* Jornada de descoberta: cardapio antes do check-in. */
.menu-screen {
  position: relative;
  margin-top: var(--s5);
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(31, 107, 68, 0.05) 34px 35px),
    radial-gradient(120% 100% at 50% 0%, var(--paper), var(--paper-2));
  box-shadow: var(--shadow-page);
  padding: var(--s6) clamp(16px, 5vw, 56px) var(--s8);
}

.menu-screen::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: repeating-linear-gradient(45deg, var(--stamp) 0 2px, transparent 2px 8px); opacity: 0.3; }
.menu-head { position: relative; text-align: center; margin-bottom: var(--s5); }
.menu-head .tag { display: inline-block; color: var(--paper); background: var(--stamp); border-radius: 3px; padding: 6px 10px; font: 600 10px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; transform: rotate(-1.5deg); }
.menu-head h2 { margin-top: var(--s3); color: var(--ink); font: 800 clamp(26px, 5vw, 38px)/1 var(--font-display); text-transform: uppercase; }
.menu-head p { max-width: 58ch; margin: var(--s3) auto 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.dice, .edit-menu { margin-top: var(--s4); border: 1.5px solid var(--stamp); border-radius: 999px; background: transparent; color: var(--stamp); padding: 11px 20px; cursor: pointer; font: 700 13px/1 var(--font-body); transition: 0.15s; }
.dice:hover, .edit-menu:hover { background: var(--stamp); color: var(--paper); }
.menu-status { position: relative; min-height: 0; margin: 0 0 var(--s4); text-align: center; }
.menu-cat { position: relative; margin-top: var(--s6); }
.menu-cat h3 { display: flex; align-items: center; gap: var(--s2); color: var(--ink); font: 800 18px/1 var(--font-display); text-transform: uppercase; }
.menu-cat h3::after { content: ""; flex: 1; border-top: 1px dashed var(--paper-line); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.mdish { position: relative; min-width: 0; }
.mdish input { position: absolute; opacity: 0; pointer-events: none; }
.mdish .card { display: flex; height: 100%; min-height: 142px; flex-direction: column; gap: 6px; border: 1.5px solid var(--paper-line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.62); padding: var(--s4); cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s; }
.mdish .card:hover { transform: translateY(-3px); border-color: var(--stamp); }
.mdish .dn { color: var(--ink); font: 700 14px/1.25 var(--font-body); }
.mdish .dt { color: var(--ink-soft); font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.08em; }
.mdish .country { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; border: 1px solid var(--paper-line); border-radius: 999px; background: rgba(255, 255, 255, 0.65); color: var(--ink-soft); padding: 5px 9px; font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em; }
.menu-country-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.mdish input:checked + .card { border-color: var(--stamp); background: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 68, 0.16); }
.mdish input:checked + .card .dn::after { content: " ✓"; color: var(--stamp); }
.mdish input:focus-visible + .card { outline: 3px solid var(--focus); outline-offset: 2px; }
.mdish.locked .card { cursor: not-allowed; opacity: 0.35; filter: saturate(0.4); }
.skip-link { display: block; width: 100%; margin-top: var(--s5); border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; text-align: center; text-decoration: underline; text-underline-offset: 3px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.06em; }
.skip-link:hover { color: var(--stamp); }
.boardbar { position: fixed; z-index: 40; bottom: 14px; left: 50%; display: flex; width: min(880px, calc(100% - 24px)); flex-wrap: wrap; align-items: center; gap: var(--s3); transform: translate(-50%, 140%); border: 1px solid rgba(227, 165, 20, 0.5); border-radius: var(--r-md); background: var(--green-900); padding: var(--s3) var(--s4); box-shadow: 0 18px 40px rgba(2, 10, 5, 0.55); transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1); }
.boardbar.show { transform: translate(-50%, 0); }
.boardbar .info { min-width: 180px; flex: 1; color: var(--paper); }
.boardbar .info b { display: block; font: 700 14px/1.3 var(--font-body); }
.boardbar .info small { color: var(--gold-soft); font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.08em; }
.boardbar .clear { border: 0; background: transparent; color: #c9cbb4; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: 600 12px var(--font-body); }
.boardbar .go { border: 0; border-radius: var(--r-sm); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--green-950); padding: 13px 20px; cursor: pointer; box-shadow: 0 4px 0 var(--gold-deep); font: 800 14px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
body.menu-open { padding-bottom: 94px; }
.passport-form[hidden], .menu-screen[hidden] { display: none; }
.back-menu { margin: 0 0 var(--s4); text-align: left; }
.visa-step .step-head .count { margin-left: auto; }
.stamps { display: flex; min-height: 0; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.pstamp { --rot: -8deg; position: relative; display: grid; width: 118px; height: 118px; flex: 0 0 auto; place-items: center; border: 3.5px double var(--stamp); border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(31, 107, 68, 0.06) 56%), rgba(255, 255, 255, 0.35); color: var(--stamp); text-align: center; transform: rotate(var(--rot)); animation: stampIn 0.42s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.pstamp::before { content: ""; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.55; }
.pstamp .in { display: grid; place-items: center; padding: 10px; font: 600 8px/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.pstamp .in b { margin: 2px 0; font: 800 10.5px/1.15 var(--font-display); letter-spacing: 0.02em; }
.pstamp.gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.stamp-flag { width: 28px; height: 20px; margin-bottom: 2px; border-radius: 3px; object-fit: cover; }
.bag-box { display: block; }
.bag-item { display: flex; align-items: center; gap: var(--s3); border-bottom: 1px dashed var(--paper-line); padding: var(--s3) 0; }
.bag-item:last-child { border-bottom: 0; }
.bag-flag { width: 28px; height: 20px; flex: 0 0 auto; border-radius: 3px; object-fit: cover; }
.bag-item .bt { flex: 1; color: var(--ink); font: 500 15px/1.35 var(--font-body); }
.bag-item .bt small { display: block; color: var(--ink-soft); font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.04em; }
.bag-item .rm { border: 1.5px solid #e0c4b4; border-radius: 999px; background: transparent; color: var(--danger); padding: 7px 12px; cursor: pointer; font: 600 11px var(--font-mono); }
.bag-item .rm:hover { border-color: var(--danger); background: var(--danger); color: var(--paper); }

@media (max-width: 640px) {
  .menu-screen { padding-bottom: var(--s7); }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .mdish .card { min-height: 130px; padding: var(--s3); }
  .mdish .dn { font-size: 12.5px; }
  .mdish .dt { font-size: 9px; }
  .mdish .country { max-width: 100%; padding: 5px 7px; font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .boardbar { display: grid; grid-template-columns: 1fr auto; }
  .boardbar .info { grid-column: 1 / -1; }
  .boardbar .go { min-height: 43px; padding-inline: 12px; font-size: 12px; }
  .boardbar .clear { min-height: 43px; }
  .stamps { justify-content: center; gap: var(--s3); }
  .pstamp { width: 104px; height: 104px; }
}

/* Central dos organizadores */
.admin-body { min-height: 100vh; background: #0a140e; color: var(--paper); }
.admin-topbar { display: flex; width: min(1180px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: var(--s4); margin: 0 auto; padding: 18px 0; }
.admin-workspace { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 72px; }
.admin-login-view { display: grid; min-height: min(680px, calc(100vh - 132px)); grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); overflow: hidden; border: 1px solid rgba(242, 199, 92, 0.36); border-radius: 12px; background: #10241a; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36); }
.admin-login-aside { position: relative; display: flex; min-height: 520px; flex-direction: column; justify-content: flex-end; overflow: hidden; background: radial-gradient(80% 100% at 82% 10%, rgba(39, 100, 64, 0.66), transparent 65%), linear-gradient(145deg, #1b3a28, #0c1c12 80%); padding: clamp(32px, 6vw, 76px); }
.admin-login-aside::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(242, 199, 92, 0.34); pointer-events: none; }
.admin-login-aside::after { content: ""; position: absolute; top: -12%; right: -18%; width: 72%; aspect-ratio: 1; border: 1px solid rgba(242, 199, 92, 0.24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(242, 199, 92, 0.035), 0 0 0 68px rgba(242, 199, 92, 0.025); }
.admin-kicker, .admin-eyebrow { display: inline-block; color: var(--gold-soft); font: 600 10px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.admin-login-aside h1, .dashboard-header h1 { position: relative; z-index: 1; max-width: 10ch; margin: var(--s4) 0 0; color: var(--paper); font: 800 clamp(40px, 6vw, 70px)/0.94 var(--font-display); letter-spacing: 0; text-transform: uppercase; }
.admin-login-aside p { position: relative; z-index: 1; max-width: 44ch; margin: var(--s4) 0 0; color: #d7dcc7; font-size: 15px; line-height: 1.6; }
.admin-login-route { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: var(--s6); color: var(--gold-soft); font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; }
.admin-login-route i { width: 96px; border-top: 1px dashed var(--gold-soft); opacity: 0.8; }
.admin-login-card { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #f8f3e2, #eee3c6); color: var(--ink); padding: clamp(32px, 6vw, 72px); }
.admin-login-card .admin-eyebrow { color: var(--stamp); }
.admin-login-card h2 { margin: var(--s3) 0 0; color: var(--ink); font: 800 clamp(28px, 4vw, 42px)/1 var(--font-display); text-transform: uppercase; }
.admin-login-card > p { margin: var(--s3) 0 var(--s6); color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.admin-auth-form { display: grid; gap: var(--s4); }
.admin-auth-form .primary-button { width: 100%; margin-top: var(--s2); }
.admin-dashboard { color: var(--ink); }
#loginPanel[hidden],
#adminPanel[hidden] { display: none !important; }
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); }
.dashboard-header h1 { max-width: none; margin-top: var(--s2); font-size: clamp(36px, 5vw, 58px); }
.dashboard-header > div:first-child > p { margin: var(--s3) 0 0; color: #c9cbb4; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.06em; }
.dashboard-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
.compact-action { min-height: 40px; padding: 0 13px; border-radius: 6px; font-size: 12px; }
.dashboard-header-actions .secondary-button { border-color: rgba(242, 199, 92, 0.65); color: var(--gold-soft); }
.dashboard-header-actions .secondary-button:hover { background: var(--gold-soft); color: var(--green-950); }
.text-action { min-height: 40px; border: 0; background: transparent; color: #c9cbb4; cursor: pointer; font: 700 12px/1 var(--font-body); }
.text-action:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.metric-card { min-height: 142px; border: 1px solid rgba(222, 210, 172, 0.24); border-radius: 8px; background: rgba(255, 255, 255, 0.065); padding: var(--s4); color: var(--paper); }
.metric-card.metric-primary { border-color: rgba(242, 199, 92, 0.52); background: linear-gradient(135deg, rgba(227, 165, 20, 0.25), rgba(31, 107, 68, 0.2)); }
.metric-card span { display: block; color: #c9cbb4; font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 18px; color: var(--paper); font: 800 clamp(29px, 3vw, 42px)/1 var(--font-display); }
.metric-card small { display: block; margin-top: 8px; color: var(--gold-soft); font: 500 10px/1.35 var(--font-mono); letter-spacing: 0.05em; }
.dashboard-layout { display: grid; grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.7fr); gap: var(--s4); align-items: start; }
.country-overview, .registrations-panel { border: 1px solid rgba(222, 210, 172, 0.3); border-radius: 8px; background: linear-gradient(145deg, #f8f3e2, #eee3c6); padding: var(--s5); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.panel-heading h2 { margin: 7px 0 0; color: var(--ink); font: 800 23px/1 var(--font-display); text-transform: uppercase; }
.panel-heading .admin-eyebrow, .admin-edit-dialog .admin-eyebrow, .confirm-dialog .admin-eyebrow { color: var(--stamp); }
.panel-copy { margin: var(--s3) 0 var(--s4); color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.coverage-total, .result-count { border: 1px solid rgba(31, 107, 68, 0.3); border-radius: 999px; background: rgba(31, 107, 68, 0.08); color: var(--stamp-dark); padding: 7px 10px; white-space: nowrap; font: 700 10px/1 var(--font-mono); letter-spacing: 0.08em; }
.country-coverage { display: grid; gap: 3px; max-height: 620px; overflow: auto; margin: 0 -6px -6px; padding: 0 6px 6px; }
.coverage-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 56px auto; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 5px; background: transparent; padding: 8px 5px; color: var(--ink); cursor: pointer; text-align: left; }
.coverage-row:hover, .coverage-row[data-active="true"] { background: rgba(31, 107, 68, 0.1); }
.coverage-row[data-active="true"] { box-shadow: inset 3px 0 0 var(--stamp); }
.coverage-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(32, 36, 28, 0.14); }
.coverage-copy { display: grid; min-width: 0; gap: 2px; }
.coverage-copy b { overflow: hidden; color: var(--ink); font: 700 12px/1.1 var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.coverage-copy small { overflow: hidden; color: var(--ink-soft); font: 500 8px/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.coverage-progress { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(31, 107, 68, 0.14); }
.coverage-progress i { display: block; height: 100%; border-radius: inherit; background: var(--stamp); }
.coverage-count { color: var(--stamp-dark); font: 700 10px/1 var(--font-mono); }
.registrations-heading { align-items: center; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 0.52fr)); gap: var(--s2); margin: var(--s5) 0 var(--s3); }
.search-field input, .select-filter select { width: 100%; min-height: 42px; border: 1px solid rgba(222, 210, 172, 0.95); border-radius: 6px; background: rgba(255, 255, 255, 0.72); color: var(--ink); padding: 0 11px; outline: 0; font: 600 12px var(--font-body); }
.search-field input:focus, .select-filter select:focus { border-color: var(--stamp); box-shadow: 0 0 0 3px rgba(31, 107, 68, 0.14); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
.active-filters span { border: 1px solid rgba(31, 107, 68, 0.2); border-radius: 999px; background: rgba(31, 107, 68, 0.08); color: var(--stamp-dark); padding: 6px 9px; font: 600 10px/1 var(--font-mono); }
.registrations-list { display: grid; gap: var(--s2); }
.registration-card { gap: var(--s3); border: 1px solid rgba(222, 210, 172, 0.82); border-radius: 7px; background: rgba(255, 255, 255, 0.46); padding: 15px; }
.registration-card:hover { border-color: rgba(31, 107, 68, 0.48); box-shadow: 0 8px 22px rgba(31, 107, 68, 0.08); }
.registration-card-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.registration-initials { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--stamp); color: var(--paper); font: 800 11px/1 var(--font-mono); letter-spacing: 0.06em; }
.registration-card-head h3 { overflow: hidden; margin: 0; color: var(--ink); font: 800 16px/1.1 var(--font-display); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.registration-card-head p { margin: 4px 0 0; color: var(--ink-soft); font: 500 10px/1.2 var(--font-mono); }
.card-action, .card-delete { border: 0; background: transparent; cursor: pointer; font: 700 11px/1 var(--font-body); }
.card-action { color: var(--stamp-dark); padding: 8px; }
.card-action:hover { color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; }
.registration-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.registration-chip, .registration-item { display: inline-flex; min-height: 27px; align-items: center; gap: 5px; border-radius: 4px; padding: 5px 7px; font: 600 10px/1.25 var(--font-body); }
.registration-chip { background: #e8dfc4; color: var(--ink-soft); }
.registration-item { border: 1px solid rgba(31, 107, 68, 0.17); background: rgba(31, 107, 68, 0.08); color: var(--stamp-dark); }
.item-flag { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; }
.registration-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); border-top: 1px dashed var(--paper-line); padding-top: 10px; color: var(--ink-soft); font: 500 9px/1.3 var(--font-mono); letter-spacing: 0.03em; }
.card-delete { color: var(--danger); padding: 7px 0 7px 8px; }
.card-delete:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-empty { display: grid; min-height: 220px; place-content: center; gap: 8px; border: 1px dashed var(--paper-line); border-radius: 7px; color: var(--ink-soft); text-align: center; }
.admin-empty strong { color: var(--ink); font: 800 18px/1 var(--font-display); text-transform: uppercase; }
.admin-empty span { font-size: 12px; }
.admin-edit-dialog { width: min(860px, calc(100% - 24px)); }
.edit-items-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.edit-items-heading h3 { margin: 0; }
.edit-items-heading .hint { margin: var(--s2) 0 0; }
.edit-country-group h4 { display: flex; align-items: center; gap: 7px; }
.edit-country-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.confirm-dialog { width: min(430px, calc(100% - 28px)); border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-page); }
.confirm-dialog::backdrop { background: rgba(10, 20, 14, 0.82); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: var(--s6); }
.confirm-dialog h2 { margin: var(--s3) 0 0; font: 800 28px/1 var(--font-display); text-transform: uppercase; }
.confirm-dialog p { margin: var(--s3) 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s5); }
.confirm-actions .ghost-button, .confirm-actions .danger-button { min-height: 42px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 960px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .country-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
}

@media (max-width: 760px) {
  .admin-topbar, .admin-workspace { width: min(100% - 20px, 1180px); }
  .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-topbar .brand-logos { justify-content: center; }
  .admin-topbar .topbar-link { text-align: center; }
  .admin-login-view { grid-template-columns: 1fr; }
  .admin-login-aside { min-height: 370px; padding: 36px 28px; }
  .admin-login-aside h1 { font-size: 42px; }
  .admin-login-card { padding: 34px 28px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-header-actions { width: 100%; justify-content: stretch; }
  .dashboard-header-actions .compact-action { flex: 1; width: auto; }
  .dashboard-header-actions .text-action { width: auto; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .registrations-panel, .country-overview { padding: var(--s4); }
  .confirm-actions .ghost-button, .confirm-actions .danger-button { width: 100%; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 116px; padding: 12px; }
  .metric-card strong { margin-top: 14px; font-size: 31px; }
  .metric-card small { font-size: 8px; }
  .country-coverage { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .registration-card-head { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .registration-initials { width: 34px; height: 34px; }
  .registration-card-head h3 { font-size: 14px; }
  .registration-card-footer { align-items: flex-start; flex-direction: column; }
  .card-delete { padding-left: 0; }
}

/* Consulta de comprovante e confirmação da inscrição. */
.recovery-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr); align-items: end; gap: var(--s5); margin: 0 0 var(--s5); border: 1.5px solid rgba(31, 107, 68, 0.28); border-radius: var(--r-md); background: linear-gradient(135deg, rgba(31, 107, 68, 0.1), rgba(255, 255, 255, 0.52)); padding: var(--s4) var(--s5); }
.recovery-kicker, .lookup-dialog-kicker { color: var(--stamp); font: 700 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.recovery-card h3 { margin: 7px 0 0; color: var(--ink); font: 800 20px/1 var(--font-display); text-transform: uppercase; }
.recovery-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s2); }
.lookup-form .field span { font-size: 9px; }
.lookup-form .field input { min-height: 42px; padding: 10px 11px; font-size: 14px; }
.lookup-form .ghost-button { min-height: 42px; width: auto; padding: 0 13px; font-size: 12px; white-space: nowrap; }
.lookup-status { grid-column: 1 / -1; min-height: 0; margin: 0; }
.screenshot-note { margin: var(--s4) 0 var(--s3) !important; border: 1px dashed rgba(31, 107, 68, 0.35); border-radius: var(--r-sm); background: rgba(31, 107, 68, 0.07); color: var(--stamp-dark) !important; padding: 10px 12px; font: 600 11px/1.45 var(--font-mono); letter-spacing: 0.03em; }
.confirmation-items { display: grid; gap: 7px; margin-top: var(--s4); text-align: left; }
.confirmation-item { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(31, 107, 68, 0.18); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.56); padding: 9px 10px; }
.confirmation-flag { width: 27px; height: 19px; flex: 0 0 auto; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(32, 36, 28, 0.14); }
.confirmation-copy { display: grid; min-width: 0; gap: 2px; }
.confirmation-copy b { overflow-wrap: anywhere; color: var(--ink); font: 700 13px/1.25 var(--font-body); }
.confirmation-copy small { color: var(--ink-soft); font: 600 9px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.lookup-dialog { width: min(500px, calc(100% - 28px)); }
.lookup-dialog form { padding: var(--s6); }
.lookup-dialog h2 { margin: var(--s3) 0 0; }
.lookup-dialog p { margin-top: var(--s3); }
.lookup-registration { display: grid; gap: 7px; border-top: 1px dashed var(--paper-line); padding-top: var(--s3); }
.lookup-registration:first-child { border-top: 0; padding-top: 0; }
.lookup-registration-head { margin: 0 !important; color: var(--stamp-dark) !important; font: 600 10px/1.45 var(--font-mono); letter-spacing: 0.06em; }
.lookup-registration-items { display: grid; gap: 6px; }

@media (max-width: 640px) {
  .recovery-card { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4); }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .ghost-button { width: 100%; }
}

/* KV Ide e Pregai: azul-petróleo, coral e tipografia editorial. */
:root {
  --green-950: #0b222b;
  --green-900: #123a46;
  --green-700: #1b5e70;
  --paper: #f7f4ed;
  --paper-2: #efeae0;
  --paper-line: #dad2c2;
  --ink: #241f26;
  --ink-soft: #6b6572;
  --gold: #e2703b;
  --gold-deep: #7e2638;
  --gold-soft: #f09b57;
  --stamp: #1b5e70;
  --stamp-dark: #123a46;
  --focus: #1b5e70;
  --font-brand: "Playfair Display", serif;
  --font-display: "Jost", sans-serif;
  --font-body: "Jost", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shadow-page: 0 30px 60px -20px rgba(4, 20, 28, 0.62), 0 4px 10px rgba(4, 20, 28, 0.3);
}

body {
  background: #0b222b;
  overflow-x: clip;
}

.kv-beams {
  display: none;
}

/* The KV has enough presence on its own; keep the page chrome quiet and contained. */
.bunting {
  display: none;
}

.topbar {
  width: min(100% - 32px, 920px);
  padding-top: 24px;
}

.topbar-link,
.back-link {
  border: 1px solid rgba(143, 217, 194, 0.42);
  border-radius: 999px;
  color: #d7f4e7;
  padding: 9px 13px;
}

.topbar-link:hover,
.back-link:hover {
  border-color: #f09b57;
  color: #fff2e4;
}

.cover {
  isolation: isolate;
  border: 1px solid rgba(255, 226, 194, 0.34);
  border-radius: 12px;
  background: #b3303f;
  color: #fff;
  padding: clamp(40px, 7vw, 72px);
  text-align: left;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(255, 226, 194, 0.44);
  border-radius: 5px;
}

.cover::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -18%;
  right: 10%;
  width: 24%;
  height: 136%;
  background: rgba(240, 155, 87, 0.16);
  transform: rotate(24deg);
  transform-origin: center;
}

.cover .cover-logos {
  display: none;
}

.cover .cover-logo-peregrinos {
  width: min(230px, 46vw);
  height: auto;
}

.cover .cover-logo-ipo-tile {
  width: min(106px, 25vw);
  border: 0;
  background: transparent;
  padding: 0;
}

.cover .cover-logo-ipo {
  width: 100%;
  height: auto;
}

.cover .eyebrow {
  color: #ffe3c2;
  font: italic 500 clamp(13px, 2.7vw, 18px)/1.3 var(--font-display);
  letter-spacing: 0.1em;
}

.cover h1 {
  margin: var(--s2) 0 0 -3px;
  max-width: 8ch;
  color: #fff;
  font: 700 clamp(58px, 11vw, 108px)/0.9 var(--font-brand);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(46, 33, 80, 0.24);
}

.cover .compass {
  display: none;
}

.cover .compass::before,
.cover .compass::after,
.cover .compass i { border-color: #ffe3c2; }

.cover .sub {
  max-width: 45ch;
  margin: var(--s5) 0 0;
  color: #fff;
  font: italic 500 clamp(12px, 2.1vw, 16px)/1.55 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover .meta {
  justify-content: flex-start;
  margin-top: var(--s6);
}

.cover .meta span {
  border-color: rgba(255, 227, 194, 0.75);
  border-radius: 4px;
  color: #ffe3c2;
}

.menu-screen,
.page {
  border-radius: 12px;
  box-shadow: var(--shadow-page);
}

.menu-screen::before,
.page::before {
  background: repeating-linear-gradient(45deg, var(--stamp) 0 2px, transparent 2px 8px);
}

.menu-head .tag,
.step-head .tag {
  background: var(--stamp);
  border-radius: 3px;
  transform: rotate(-1.5deg);
}

.menu-head h2,
.step-head h2,
.dhead h3,
.selected-dishes-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.menu-head h2 {
  font-size: clamp(25px, 4.7vw, 36px);
}

.dice,
.edit-menu {
  border-color: var(--stamp);
  border-radius: 999px;
}

.dice:hover,
.edit-menu:hover {
  background: var(--stamp);
}

.recovery-card {
  border-color: rgba(27, 94, 112, 0.28);
  background: rgba(255, 255, 255, 0.56);
}

.recovery-kicker,
.lookup-dialog-kicker { color: var(--stamp); }

.mdish .card {
  min-height: 142px;
  border-radius: 8px;
  background: #fdfcfa;
}

.mdish .card::before {
  content: "";
  position: absolute;
  inset: auto -30% -58% 18%;
  height: 100%;
  background: rgba(226, 112, 59, 0.15);
  transform: rotate(-28deg);
  pointer-events: none;
}

.mdish .card::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 36%;
  width: 24%;
  background: rgba(143, 217, 194, 0.12);
  filter: blur(18px);
  transform: rotate(28deg);
  pointer-events: none;
}

.mdish .card > * { position: relative; z-index: 1; }
.mdish input:checked + .card { border-color: var(--stamp); box-shadow: 0 0 0 3px rgba(27, 94, 112, 0.16); }
.mdish input:checked + .card .dn::after { color: var(--stamp); }

.boardbar {
  border-color: rgba(240, 155, 87, 0.6);
  border-radius: 8px;
  background: #123a46;
}

.boardbar .info small { color: #f09b57; }
.boardbar .go,
.primary-button {
  background: #e2703b;
  box-shadow: 0 6px 0 #7e2638, 0 14px 24px rgba(179, 48, 63, 0.28);
}

.boardbar .go:active,
.primary-button:active { box-shadow: 0 2px 0 #7e2638, 0 6px 12px rgba(179, 48, 63, 0.24); }

.count {
  border-color: var(--stamp);
  color: var(--stamp);
}

.pstamp { border-color: var(--stamp); color: var(--stamp); }
.pstamp.gold { border-color: #7e2638; color: #7e2638; }
.pstamp::before { border-color: currentColor; }

.big-stamp { border-color: var(--stamp); color: var(--stamp); }
.success-dialog { border-radius: 12px; }

/* KV cleanup: public surfaces use solid paper and petrol, never inherited gradients. */
.section-block,
.menu-screen,
.page {
  background: #f7f4ed;
}

.intro,
.recovery-card,
.selected-dishes,
.companions-box,
.nation-surface,
.item-card,
.lookup-dialog,
.success-dialog,
.confirmation-item {
  background: #fdfcfa;
}

.pstamp {
  background: #fdfcfa;
}

.mdish .card::after {
  display: none;
}

.mdish .card::before {
  opacity: 0.75;
}

/* Official menu details: quantity guidance and recipe access. */
.mdish .card {
  min-height: 210px;
}

.mdish .dq {
  color: var(--stamp-dark);
  font: 700 11px/1.35 var(--font-body);
}

.recipe-link,
.bag-recipe,
.confirmation-recipe,
.registration-item a,
.edit-item a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--stamp);
  font: 700 11px/1.2 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipe-link {
  align-self: flex-start;
  margin-top: 2px;
}

.recipe-link:hover,
.bag-recipe:hover,
.confirmation-recipe:hover,
.registration-item a:hover,
.edit-item a:hover {
  color: var(--gold-deep);
}

.bag-quantity,
.confirmation-quantity {
  display: block;
  color: var(--stamp-dark);
  font: 700 11px/1.35 var(--font-body);
}

.bag-recipe {
  display: inline-block;
  margin-top: 4px;
}

.confirmation-copy {
  gap: 4px;
}

.confirmation-recipe {
  justify-self: start;
}

.registration-item {
  align-items: flex-start;
  max-width: 320px;
}

.registration-item-copy,
.edit-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.registration-item-copy b,
.edit-item-copy b {
  font: 700 11px/1.25 var(--font-body);
}

.registration-item-copy small,
.edit-item-copy small {
  color: var(--ink-soft);
  font: 600 9px/1.3 var(--font-mono);
}

.edit-item-copy {
  flex: 1;
}

@media (max-width: 640px) {
  .topbar { width: min(100% - 20px, 920px); }
  .cover { padding: 36px 24px 38px; }
  .cover h1 { font-size: clamp(49px, 15vw, 70px); }
  .cover .meta { align-items: flex-start; }
  .cover .meta span { width: 100%; }
  .mdish .card { min-height: 225px; }
  .mdish .dq { font-size: 10px; }
  .recipe-link { font-size: 10px; }
}
