/* Self-hosted fonts (SIL Open Font License): Geist and Bricolage Grotesque, latin and latin-ext. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.72);
  --line: rgba(244, 241, 234, 0.28);
  --paper: #efebe4;
  --dark: #171614;
  --on-ink: #171614;
  --veil: rgba(255, 255, 255, 0.14);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tray-h: 96px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--field);
  transition: background-color 700ms var(--ease), color 400ms;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-step="items"] { overflow: hidden; }
body[data-tone="light"] { --ink: var(--dark); --ink-soft: rgba(23, 22, 20, 0.68); --line: rgba(23, 22, 20, 0.22); --on-ink: #f4f1ea; --veil: rgba(23, 22, 20, 0.08); }
body[data-step="shipping"] { background: var(--paper); }


.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 48px) 20px;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.mark img { height: 22px; width: auto; display: block; }
.mark-dark { display: none !important; }
body[data-tone="light"] .mark-light { display: none !important; }
body[data-tone="light"] .mark-dark { display: block !important; }
body[data-step="shipping"] .bar { position: absolute; }

.steps { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.steps li { position: relative; padding-bottom: 4px; }
.steps li.is-current { color: var(--ink); }
.steps li.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.steps li.is-past { color: var(--ink-soft); }

/* Shared */
.step { min-height: 100vh; min-height: 100dvh; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 em, .serif-i { font-style: italic; }
.lede { color: var(--ink-soft); font-size: 17px; line-height: 1.5; max-width: 36ch; margin: 16px 0 0; }
.msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.msg.is-error { color: #ffd2c8; }
body[data-tone="light"] .msg.is-error { color: #a3261b; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), opacity 200ms, background-color 200ms;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--ink); color: var(--on-ink); }
.btn-dark { background: var(--dark); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: 0.6; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:focus-visible { outline-color: var(--ink); }
.btn-dark:focus-visible { outline-color: var(--dark); }

/* Step 1: code */
#step-code { position: relative; }
.scene { position: fixed; inset: 0; z-index: 0; background: #eeeefc; }
.scene canvas, .tree-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tree-still { display: none; }
.no-webgl .tree-still { display: block; }
.no-webgl .scene canvas { display: none; }
.scene::after {
  content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
  transition: opacity 700ms var(--ease);
}
.no-webgl #step-code.is-leaving .scene::after { opacity: 1; }

.hero {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 56px; color: #fff;
  text-shadow: 0 1px 24px rgba(24, 26, 120, 0.35);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}
#step-code.is-leaving .hero { opacity: 0; transform: translateY(-6px); }
.hero-kicker { margin: 0 0 16px; font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 400; opacity: 0.85; }
.hero-title {
  max-width: 10em; font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
}
.hero-line { margin: 24px auto 0; max-width: 34ch; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.code-form { margin: 40px auto 0; width: 100%; max-width: 420px; }
.hero-note { margin: 0 0 18px; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.code-form label { display: block; font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78); margin-bottom: 10px; }
.code-row { display: flex; gap: 8px; text-align: left; text-shadow: none; }
.code-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font: 500 15px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 160ms, background-color 160ms;
}
.code-row input:focus { outline: none; border-color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.16); }
.btn-gift { height: 48px; padding: 0 22px; border-radius: 10px; background: #fff; color: #141414; font-weight: 600; }
.btn-gift:focus-visible { outline-color: #fff; }
#step-code .msg { color: rgba(255, 255, 255, 0.86); }
#step-code .msg.is-error { color: #fff; font-weight: 600; }
body[data-step="code"] .mark-light { display: none !important; }
body[data-step="code"] .mark-dark { display: block !important; opacity: 0.85; }

/* Header code chip (items step) */

/* Step 2: items */
#step-items { position: relative; height: 100vh; height: 100dvh; }
.product-nav {
  position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 15;
  display: flex; justify-content: center; gap: 4px; padding: 0 16px; overflow-x: auto; scrollbar-width: none;
}
.product-nav::-webkit-scrollbar { display: none; }
.product-nav button {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink-soft); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 200ms, color 200ms;
}
.product-nav button:hover { color: var(--ink); }
.product-nav button[aria-current="true"] { background: var(--veil); color: var(--ink); }

.track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: center;
  padding: 120px clamp(20px, 6vw, 96px) calc(var(--tray-h) + 32px);
  gap: clamp(16px, 3vw, 48px);
}
.slide-object { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.slide-object img {
  max-height: 100%; max-width: 100%; object-fit: contain; grid-area: 1 / 1;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.14)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.09));
  transform: scale(0.94); opacity: 0.4;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}
.slide.is-active .slide-object img { transform: none; opacity: 1; }
.slide-info { max-width: 380px; }
.slide-info h2 { font-size: clamp(48px, 6vw, 96px); line-height: 0.95; font-style: italic; }
.slide-info .lede { font-size: 16px; margin-top: 14px; }

.sizes { border: 0; padding: 0; margin: 24px 0 0; }
.sizes + .sizes { margin-top: 18px; }
.swatch-row label { position: relative; }
.sizes .swatch-row > label > span { gap: 8px; padding: 0 14px 0 8px; border-radius: 999px; display: flex; align-items: center; }
.sizes .swatch-row .dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(127, 127, 127, 0.45); flex: none; min-width: 0; }
.sizes .swatch-row input:checked + span { background: var(--veil); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sizes legend { padding: 0; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size-row label { position: relative; }
.size-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-row span {
  display: grid; place-items: center; min-width: 48px; height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font: 500 15px/1 var(--sans); transition: background-color 160ms, color 160ms, border-color 160ms;
}
.size-row input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.size-row input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.one-size { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.add { margin-top: 20px; width: 100%; max-width: 320px; }
.add .plus { font-size: 20px; font-weight: 400; margin-top: -2px; }
.add-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }

.arrow {
  position: fixed; top: 50%; z-index: 12; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer;
  transition: background-color 200ms, opacity 200ms;
}
.arrow:hover { background: var(--veil); }
.arrow[disabled] { opacity: 0; pointer-events: none; }
.arrow-prev { left: clamp(12px, 2vw, 28px); }
.arrow-next { right: clamp(12px, 2vw, 28px); }

/* Tray */
.tray {
  --ink: #171614; --ink-soft: rgba(23, 22, 20, 0.66); --on-ink: #f4f1ea;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 0 clamp(12px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px));
}
.tray-inner {
  display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto;
  padding: 10px 10px 10px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(23, 22, 20, 0.08);
  box-shadow: 0 10px 40px rgba(23, 22, 20, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.slots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slot {
  position: relative; width: 52px; height: 52px; border-radius: 12px;
  border: 1px dashed rgba(23, 22, 20, 0.2);
}
.slot.is-filled { border: 0; }
.slot button { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
.slot button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.slot img { width: 42px; height: 42px; object-fit: contain; }
.slot .size-tag {
  position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: var(--on-ink); font: 600 10px/18px var(--sans); text-align: center;
}
.slot .x {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); font: 600 12px/18px var(--sans); text-align: center;
  opacity: 0; transition: opacity 150ms;
}
.slot button:hover .x, .slot button:focus-visible .x { opacity: 1; }
.slot.is-new { animation: pop 380ms var(--ease); }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tray-count { flex: 1; margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.3; }
.tray-count strong { color: var(--ink); font-weight: 600; }
.tray-go { height: 48px; flex: none; }

/* Step 3: shipping */
#step-shipping { padding: 112px clamp(20px, 5vw, 72px) 64px; }
.ship {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 340px; grid-template-areas: "head sum" "form sum";
  column-gap: clamp(32px, 6vw, 96px); row-gap: 40px; align-items: start;
}
.ship-head { grid-area: head; }
.ship-head h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.ship-form { grid-area: form; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.summary { grid-area: sum; position: sticky; top: 32px; padding: 24px; border-radius: 20px; background: #f9f7f3; border: 1px solid rgba(23, 22, 20, 0.08); }
.summary h2 { font-size: 26px; }
.sum-list { list-style: none; margin: 16px 0 18px; padding: 0; }
.sum-list li { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.sum-list li:first-child { border-top: 0; }
.sum-thumb { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sum-thumb img { width: 42px; height: 42px; object-fit: contain; }
.sum-name { font-size: 15px; }
.sum-size { color: var(--ink-soft); font-size: 14px; }
.text-link { color: var(--ink); font-size: 15px; text-underline-offset: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.span2 { grid-column: span 2; }
.field label { font-size: 14px; color: var(--ink-soft); }
.opt { color: var(--ink-soft); }
.field input, .field select {
  height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(23, 22, 20, 0.2);
  background: #fbfaf7; color: var(--dark); font: 16px var(--sans); width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 1px var(--dark); }
.field [aria-invalid] { border-color: #a3261b; }
.ship-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.ship-actions .msg { margin: 0; }

/* Done */
#step-done { display: grid; place-items: center; padding: 96px 24px 64px; text-align: center; }
.done { display: flex; flex-direction: column; align-items: center; width: 100%; }
.done-row { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(8px, 2vw, 24px); margin: 0 0 48px; padding: 0; list-style: none; }
.done-row li { width: clamp(72px, 13vw, 176px); aspect-ratio: 1; display: grid; place-items: center; padding: clamp(8px, 1.4vw, 18px); border-radius: clamp(14px, 2vw, 24px); box-shadow: inset 0 0 0 1px rgba(23, 22, 20, 0.08); animation: rise 800ms var(--ease) both; }
.done-row img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.12)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.1)); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.done h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1; font-style: italic; }
.done .lede { margin-inline: auto; }

/* Narrow */
@media (max-width: 860px) {
  .steps { gap: 14px; font-size: 13px; }
  .hero { padding: 96px 28px 40px; }
  .hero-title { font-size: 44px; letter-spacing: -0.02em; max-width: 9em; }
  .hero-line, .hero-note { max-width: 24ch; margin-inline: auto; }
  .code-form { max-width: 320px; }
  .hero-line { font-size: 16px; }
  .lede { font-size: 16px; }
  .code-form { margin-top: 36px; }

  :root { --tray-h: 80px; }
  .product-nav { top: calc(64px + env(safe-area-inset-top, 0px)); justify-content: flex-start; }
  .slide {
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto;
    padding: 112px 20px calc(var(--tray-h) + 20px); gap: 8px; align-items: end;
  }
  .slide-info { max-width: none; }
  .slide-info h2 { font-size: 42px; }
  .sizes + .sizes { margin-top: 12px; }
  .sizes .swatch-row > label > span { height: 38px; font-size: 14px; }
  .sizes .swatch-row .dot { width: 20px; height: 20px; }
  .slide-info .lede { display: none; }
  .sizes, .one-size { margin-top: 14px; }
  .sizes legend { margin-bottom: 8px; }
  .size-row span { min-width: 44px; height: 40px; }
  .add { max-width: none; margin-top: 14px; }
  .add-note { display: none; }
  .arrow { display: none; }

  .tray { padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .tray-inner { gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px; }
  .slots { gap: 4px; }
  .slot { width: 40px; height: 40px; border-radius: 10px; }
  .slot img { width: 32px; height: 32px; }
  .slot .x { opacity: 1; width: 16px; height: 16px; line-height: 16px; font-size: 11px; }
  .tray-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .slots { flex: 1; }
  .tray-go { padding: 0 18px; height: 44px; }

  #step-shipping { padding-top: 88px; }
  .ship { grid-template-columns: 1fr; grid-template-areas: "head" "sum" "form"; row-gap: 28px; }
  .ship-head h1 { font-size: 40px; text-wrap: balance; }
  .summary { position: static; padding: 18px; }
  .ship-form { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .ship-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Test: Paper Shaders look switcher on the first page */
.look-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.look-layer canvas { width: 100%; height: 100%; display: block; }
.has-look .look-layer { opacity: 1; }
.has-look #step-code.is-leaving .scene::after { opacity: 1; }
.has-look .hero { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
.look-picker {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: calc(100vw - 32px);
  padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.look-picker button {
  border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; color: #1d1d1b; background: transparent; cursor: pointer;
}
.look-picker button[aria-pressed="true"] { background: #1d1d1b; color: #fff; }
@media (max-width: 520px) { .look-picker { border-radius: 16px; } .look-picker button { padding: 6px 9px; font-size: 12px; } }
/* Dark looks on the first page: white wordmark */
body.has-look[data-step="code"] .mark-light { display: block !important; opacity: 0.95; }
body.has-look[data-step="code"] .mark-dark { display: none !important; }
/* Header link to Fynd Swap */
.bar { justify-content: flex-start; }
.steps { margin-left: auto; }
.swap-link {
  margin-left: 24px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor;
  font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms, color 160ms;
}
.steps[hidden] + .swap-link { margin-left: auto; }
.swap-link:hover { background: var(--ink); color: #fff; }
body[data-step="code"] .swap-link { color: #23257a; }
body[data-step="code"] .swap-link:hover { background: #23257a; color: #fff; }
body.has-look[data-step="code"] .swap-link { color: #fff; }
body.has-look[data-step="code"] .swap-link:hover { background: #fff; color: #141414; }
@media (max-width: 520px) { .swap-link { margin-left: 14px; padding: 7px 11px; font-size: 13px; } }

/* Poster look: artsy red card */
.poster { display: none; }
body.layout-poster .scene { background: #c0392d; }
body.layout-poster .look-layer, body.layout-poster #tree-canvas, body.layout-poster .tree-still { display: none !important; }
body.layout-poster .poster {
  display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; color: #f6e4c8;
  font-family: "Manrope", var(--sans);
}
body.layout-poster[data-step]:not([data-step="code"]) .poster { display: none; }
.poster-star { position: absolute; left: 50%; top: 50%; width: min(118vh, 110vw); height: min(118vh, 110vw); transform: translate(-50%, -50%); fill: #a82a20; opacity: 0.9; animation: star-turn 60s linear infinite; }
.poster-star .poster-star-2 { fill: #b33125; }
@keyframes star-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; }
.sparkles path { fill: #f6e4c8; transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.poster p { position: absolute; margin: 0; font-size: 15px; line-height: 1.1; letter-spacing: 0.01em; }
.p-tl { top: 92px; left: clamp(24px, 6vw, 96px); font-size: clamp(18px, 1.6vw, 24px) !important; }
.p-br { bottom: 48px; right: clamp(24px, 6vw, 96px); text-align: left; font-size: clamp(18px, 1.6vw, 24px) !important; }
.p-vr { top: 96px; right: clamp(20px, 5vw, 80px); writing-mode: vertical-rl; }
.p-vl { bottom: 48px; left: clamp(20px, 5vw, 80px); writing-mode: vertical-rl; transform: rotate(180deg); }
.p-date { top: 50%; font-size: 18px !important; letter-spacing: 0.06em; }
.p-date-l { left: clamp(20px, 5vw, 80px); writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.p-date-r { right: clamp(20px, 5vw, 80px); writing-mode: vertical-rl; transform: translateY(-50%); }
body.layout-poster .hero { color: #f6e4c8; text-shadow: none; }
body.layout-poster .hero-kicker, body.layout-poster .hero-line { display: none; }
body.layout-poster .hero-title {
  font-family: "Manrope", var(--sans); font-weight: 500; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 0.98; letter-spacing: -0.01em; max-width: 9em;
}
body.layout-poster .t-script {
  display: block; font-family: "Pinyon Script", cursive; font-weight: 400; text-transform: none;
  font-size: 1.9em; line-height: 0.8; letter-spacing: 0; margin-bottom: 0.08em;
}
body.layout-poster .code-row input { background: rgba(246, 228, 200, 0.1); border-color: rgba(246, 228, 200, 0.45); color: #f6e4c8; }
body.layout-poster .btn-gift { background: #f6e4c8; color: #8e1f16; }
body.layout-poster[data-step="code"] .swap-link { color: #f6e4c8 !important; }
body.layout-poster[data-step="code"] .swap-link:hover { background: #f6e4c8 !important; color: #8e1f16 !important; }
body.layout-poster[data-step="code"] .mark-light { display: block !important; }
body.layout-poster[data-step="code"] .mark-dark { display: none !important; }
@media (max-width: 520px) {
  .p-tl { top: 84px; } .p-vr, .p-vl { font-size: 12px !important; } .p-date { font-size: 14px !important; }
  body.layout-poster .hero { padding-inline: 56px; }
}
@media (prefers-reduced-motion: reduce) { .poster-star, .sparkles path { animation: none; } }

/* Snowflake look */
.flake { display: none; }
body.layout-flake .scene { background: #be3a2e; }
body.layout-flake .look-layer, body.layout-flake #tree-canvas, body.layout-flake .tree-still { display: none !important; }
body.layout-flake[data-step="code"] .flake { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; color: #f6e4c8; }
.flake-svg {
  position: absolute; left: 50%; top: 50%; width: min(150vh, 150vw); height: min(150vh, 150vw); transform: translate(-50%, -50%);
  fill: none; stroke: #c94a3c; stroke-width: 46; stroke-linecap: butt; stroke-linejoin: miter;
  animation: flake-turn 240s linear infinite;
}
.flake-svg .flake-core { fill: #c94a3c; stroke: none; }
@keyframes flake-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.f-bottom {
  position: absolute; left: 50%; bottom: calc(36px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(640px, calc(100vw - 48px)); text-align: center; font-family: "Manrope", var(--sans);
}
.f-head { margin: 0 0 10px; font: 700 clamp(22px, 2.4vw, 32px)/1 "Comfortaa", var(--sans); text-transform: uppercase; letter-spacing: 0.02em; }
.f-text { margin: 0 0 12px; font-size: 15px; line-height: 1.45; opacity: 0.9; }
.f-row { display: flex; justify-content: space-between; margin: 0; font-size: 13px; opacity: 0.85; }
body.layout-flake .hero {
  color: #f6e4c8; text-shadow: none; display: grid; grid-template-rows: auto 1fr; justify-items: center;
  padding: 104px 24px 220px;
}
body.layout-flake .hero-kicker, body.layout-flake .hero-line { display: none; }
body.layout-flake .hero-title {
  font: 700 clamp(36px, 5.2vw, 76px)/1.02 "Comfortaa", var(--sans); text-transform: uppercase; letter-spacing: 0; max-width: 12em;
}
body.layout-flake .hero-title::after {
  content: "2026 \2013 2027"; display: block; margin-top: 14px; font: 500 clamp(20px, 2.2vw, 32px)/1 "Manrope", var(--sans); letter-spacing: 0.02em;
}
body.layout-flake .code-form { align-self: center; margin: 0 auto; max-width: 380px; }
body.layout-flake .code-row input { background: rgba(120, 20, 14, 0.35); border-color: rgba(246, 228, 200, 0.5); color: #f6e4c8; }
body.layout-flake .btn-gift { background: #f6e4c8; color: #8e1f16; }
body.layout-flake[data-step="code"] .swap-link { color: #f6e4c8 !important; }
body.layout-flake[data-step="code"] .swap-link:hover { background: #f6e4c8 !important; color: #8e1f16 !important; }
body.layout-flake[data-step="code"] .mark-light { display: block !important; }
body.layout-flake[data-step="code"] .mark-dark { display: none !important; }
@media (max-width: 520px) {
  body.layout-flake .hero { padding: 92px 20px 230px; }
  body.layout-flake .hero-title { font-size: 34px; }
  .f-row { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .flake-svg { animation: none; } }

/* Frost over video (first page) */
.frost-video, .frost-canvas { display: none; }
body.layout-frost .scene { background: #1b2430; }
body.layout-frost .frost-video, body.layout-frost .frost-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
body.layout-frost .frost-video { object-fit: cover; }
body.layout-frost .flake-svg { display: none; }
body.layout-frost .hero, body.layout-frost .flake { color: #fff; }
body.layout-frost .hero-title, body.layout-frost .f-bottom { text-shadow: 0 2px 18px rgba(10, 20, 35, 0.55); }
body.layout-frost .hero { pointer-events: none; }
body.layout-frost .hero .code-form { pointer-events: auto; }
body.layout-frost .code-row input { background: rgba(20, 30, 45, 0.35); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
body.layout-frost .btn-gift { background: #fff; color: #9b1c1c; }
body.layout-frost[data-step="code"] .swap-link { color: #fff !important; }
body.layout-frost[data-step="code"] .swap-link:hover { background: #fff !important; color: #141414 !important; }
/* Frost shader: the canvas draws the video itself; keep the raw video hidden unless the shader is missing */
body.has-frost .frost-video { opacity: 0; }

/* Frost page: simple centred layout, no scattered text */
body.layout-frost .f-bottom { display: none; }
body.layout-frost .hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 80px;
}
body.layout-frost .hero-title::after { content: none; }
body.layout-frost .hero-title {
  font: 700 clamp(44px, 6vw, 88px)/1.02 "Comfortaa", var(--sans); text-transform: none; letter-spacing: -0.01em; max-width: 11em;
}
body.layout-frost .hero-line {
  display: block; margin: 18px auto 0; max-width: 32ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(10, 20, 35, 0.6);
}
body.layout-frost .code-form { margin: 40px auto 0; align-self: center; }
@media (max-width: 520px) { body.layout-frost .hero-title { font-size: 42px; } }

/* Frost page: refined type and a single frosted-glass code bar */
body.layout-frost .hero-title {
  font: 400 clamp(56px, 8vw, 128px)/0.95 "Instrument Serif", Georgia, serif; letter-spacing: -0.02em; max-width: 10em;
  text-shadow: 0 2px 30px rgba(10, 20, 35, 0.45);
}
body.layout-frost .hero-title em { font-style: italic; }
body.layout-frost .hero-line { font: 500 clamp(16px, 1.3vw, 19px)/1.5 "Manrope", var(--sans); letter-spacing: 0.01em; margin-top: 20px; }
body.layout-frost .code-form { margin-top: 44px; max-width: 460px; }
body.layout-frost .code-row {
  gap: 6px; padding: 6px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 50px rgba(10, 20, 35, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color 160ms, background-color 160ms, box-shadow 160ms;
}
body.layout-frost .code-row:focus-within { border-color: #fff; background: rgba(255, 255, 255, 0.22); }
body.layout-frost .code-row input {
  height: 52px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #fff; font: 600 16px/1 "Manrope", var(--sans); letter-spacing: 0.14em;
}
body.layout-frost .code-row input::placeholder { color: rgba(255, 255, 255, 0.7); }
body.layout-frost .code-row input:focus { background: transparent; border: 0; }
body.layout-frost .btn-gift {
  height: 52px; padding: 0 22px; border-radius: 11px; background: #0f1724; color: #fff;
  font: 600 15px/1 "Manrope", var(--sans); letter-spacing: 0.01em; box-shadow: 0 6px 16px rgba(10, 20, 35, 0.3);
  transition: background-color 160ms, transform 160ms;
}
body.layout-frost .btn-gift:hover { background: #000; transform: translateY(-1px); }
body.layout-frost .btn-gift span { margin-left: 6px; }
@media (max-width: 520px) {
  body.layout-frost .hero-title { font-size: 60px; }
  body.layout-frost .btn-gift { padding: 0 16px; }
}

/* Dot tree page */
.dots-canvas { display: none; }
body.layout-dots .scene { background: #000; }
body.layout-dots .dots-canvas { display: block; position: absolute; inset: 0; }
body.layout-dots .flake, body.layout-dots .poster { display: none !important; }
body.layout-dots .hero {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: 48px; align-items: end;
  padding: 120px clamp(24px, 6vw, 96px) calc(56px + env(safe-area-inset-bottom, 0px)); color: #fff; text-shadow: none; text-align: left;
}
body.layout-dots .hero-kicker { display: none; }
body.layout-dots .hero-title {
  grid-column: 1; grid-row: 2; margin: 0; max-width: none;
  font: 600 clamp(52px, 7.4vw, 120px)/0.95 "Geist", var(--sans); letter-spacing: -0.035em; text-transform: none;
}
body.layout-dots .accent-dot { color: #e8432e; }
body.layout-dots .hero-line {
  display: block; grid-column: 2; grid-row: 2; align-self: end; margin: 0 0 76px; max-width: 30ch;
  font: 500 14px/1.5 "Geist", var(--sans); color: rgba(255, 255, 255, 0.78);
}
body.layout-dots .code-form { grid-column: 2; grid-row: 2; align-self: end; margin: 0; width: 360px; max-width: 100%; }
body.layout-dots .code-row { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #141414; border: 1px solid #2c2c2c; }
body.layout-dots .code-row:focus-within { border-color: #6a6a6a; }
body.layout-dots .code-row input {
  height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #fff; font: 500 14px/1 "Geist", var(--sans); letter-spacing: 0.12em;
}
body.layout-dots .code-row input:focus { background: transparent; border: 0; }
body.layout-dots .btn-gift {
  height: 44px; padding: 0 16px; border-radius: 8px; background: #fff; color: #000; box-shadow: none;
  font: 600 14px/1 "Geist", var(--sans);
}
body.layout-dots .btn-gift:hover { background: #e8432e; color: #fff; }
body.layout-dots .msg { grid-column: 2; }
body.layout-dots[data-step="code"] .swap-link { color: #fff !important; }
body.layout-dots[data-step="code"] .swap-link:hover { background: #fff !important; color: #000 !important; }
body.layout-dots[data-step="code"] .mark-light { display: block !important; }
body.layout-dots[data-step="code"] .mark-dark { display: none !important; }
@media (max-width: 760px) {
  body.layout-dots .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; row-gap: 16px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  body.layout-dots .hero-title { grid-column: 1; grid-row: 2; font-size: 52px; }
  body.layout-dots .hero-line { grid-column: 1; grid-row: 3; margin: 0; }
  body.layout-dots .code-form { grid-column: 1; grid-row: 4; width: 100%; }
}
body.layout-dots .tree-still, body.layout-dots #tree-canvas { display: none !important; }
body.layout-dots .hero { grid-template-rows: 1fr auto auto; row-gap: 14px; }
body.layout-dots .hero-title { grid-row: 2 / 4; align-self: end; }
body.layout-dots .hero-line { grid-row: 2; margin: 0; }
body.layout-dots .code-form { grid-row: 3; }
@media (max-width: 760px) {
  body.layout-dots .hero { grid-template-rows: 1fr auto auto auto; }
  body.layout-dots .hero-title { grid-row: 2; }
  body.layout-dots .hero-line { grid-row: 3; }
  body.layout-dots .code-form { grid-row: 4; }
}

/* Buttons in Fynd Swap style */
body.layout-dots .btn-gift {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(49.59% 37.11% at 50.41% 101.56%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 66.46%),
    #c12707;
  color: #f5f1e4; font: 500 15px/1 "Geist", var(--sans);
  box-shadow:
    rgba(0, 0, 0, 0.13) 0 1px 0.5px -0.5px, rgba(0, 0, 0, 0.13) 0 1px 2px -0.5px,
    rgba(0, 0, 0, 0.13) 0 4px 6px -2px, rgba(0, 0, 0, 0.13) 0 2px 3px -1.5px,
    #c12707 0 0 4px 1px inset, rgba(255, 255, 255, 0.1) 0 0 4px 2px inset, rgba(255, 255, 255, 0.75) 0 0 12px -6px inset;
  transition: filter 160ms, transform 160ms;
}
body.layout-dots .btn-gift:hover { background-color: #c12707; color: #f5f1e4; filter: brightness(1.08); }
body.layout-dots .btn-gift:active { transform: translateY(1px); }
body.layout-dots .code-row { border-radius: 999px; padding: 5px 5px 5px 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
body.layout-dots .code-row:focus-within { border-color: rgba(255, 255, 255, 0.35); }
body.layout-dots .code-row input { font-family: "Geist", var(--sans); }
body.layout-dots .accent-dot { color: #c12707; }
.swap-link {
  height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-radius: 18px;
  font: 500 14px/1 "Geist", var(--sans);
}
body.layout-dots[data-step="code"] .swap-link { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
body.layout-dots[data-step="code"] .swap-link:hover { background: rgba(255, 255, 255, 0.14) !important; color: #fff !important; }
body:not([data-step="code"]) .swap-link { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
body:not([data-step="code"]) .swap-link:hover { background: rgba(0, 0, 0, 0.1); color: var(--ink); }

/* Main actions on Items and Shipping: Fynd Swap primary style */
.btn-light, .btn-dark {
  border: 1px solid transparent; border-radius: 999px;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(49.59% 37.11% at 50.41% 101.56%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 66.46%),
    #c12707;
  color: #f5f1e4; font-family: "Geist", var(--sans); font-weight: 500;
  box-shadow:
    rgba(0, 0, 0, 0.13) 0 1px 0.5px -0.5px, rgba(0, 0, 0, 0.13) 0 1px 2px -0.5px,
    rgba(0, 0, 0, 0.13) 0 4px 6px -2px, rgba(0, 0, 0, 0.13) 0 2px 3px -1.5px,
    #c12707 0 0 4px 1px inset, rgba(255, 255, 255, 0.1) 0 0 4px 2px inset, rgba(255, 255, 255, 0.75) 0 0 12px -6px inset;
  transition: filter 160ms, transform 160ms, opacity 160ms;
}
.btn-light:hover, .btn-dark:hover { filter: brightness(1.08); }
.btn-light:active, .btn-dark:active { transform: translateY(1px); }
.btn-light[aria-disabled="true"], .btn-light:disabled, .btn-dark:disabled { filter: saturate(0.2) brightness(1.4); opacity: 0.55; box-shadow: none; }
/* Dot page: keep content in a centred column on wide screens */
body.layout-dots .hero { width: 100%; max-width: 1200px; margin-inline: auto; box-sizing: border-box; }
/* Dot page: right column as one block, bottom aligned with the headline */
body.layout-dots .hero { grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; }
body.layout-dots .hero-title { grid-column: 1; grid-row: 2; align-self: end; }
body.layout-dots .hero-side { grid-column: 2; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 18px; width: 340px; padding-bottom: 0.18em; }
body.layout-dots .hero-side .hero-line { margin: 0; font: 400 15px/1.5 "Geist", var(--sans); color: rgba(255, 255, 255, 0.6); max-width: none; }
body.layout-dots .hero-side .hero-line strong { font-weight: 500; color: #fff; }
body.layout-dots .hero-side .code-form { margin: 0; width: 100%; }
body.layout-dots .hero-side .msg { margin: 8px 0 0; }
@media (max-width: 760px) {
  body.layout-dots .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; row-gap: 20px; }
  body.layout-dots .hero-side { grid-column: 1; grid-row: 3; width: 100%; }
}
/* Header in the same centred column as the content */
.bar { padding-left: calc(max(0px, (100vw - 1200px) / 2) + clamp(24px, 6vw, 96px)); padding-right: calc(max(0px, (100vw - 1200px) / 2) + clamp(24px, 6vw, 96px)); }
body.layout-dots .hero-side .hero-line { margin: 0 !important; text-align: left; }
body.layout-dots .hero-side .hero-line { align-self: stretch; width: auto; }

/* 3D dithered tree on the first page */
.tree3d-canvas { display: none; }
body.layout-dots .tree3d-canvas {
  display: block; position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: min(66vh, 92vw); height: min(66vh, 92vw);
}
body.layout-dots .hero { pointer-events: none; }
body.layout-dots .hero-side, body.layout-dots .hero-side * { pointer-events: auto; }
@media (max-width: 760px) { body.layout-dots .tree3d-canvas { top: 9%; width: 92vw; height: 92vw; } }
/* Right block text: larger, one colour */
body.layout-dots .hero-side .hero-line { font: 400 19px/1.45 "Geist", var(--sans); color: #fff; }
body.layout-dots .hero-side .hero-line strong { font-weight: 400; color: #fff; }
body.layout-dots .hero-side { width: 380px; }
@media (max-width: 760px) { body.layout-dots .hero-side .hero-line { font-size: 17px; } }
/* Gift button: icon before the label, even spacing */
.btn-gift { display: inline-flex; align-items: center; gap: 8px; }
.btn-gift span { margin: 0 !important; }
.btn-gift .gift-icon { flex: none; margin-left: -2px; transition: transform 200ms var(--ease); }
.btn-gift:hover .gift-icon { transform: rotate(-8deg) scale(1.08); }
/* Balance: two equal columns */
body.layout-dots .hero { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
body.layout-dots .hero-title { font-size: clamp(56px, 6.4vw, 104px); }
body.layout-dots .hero-side { width: auto; max-width: 480px; justify-self: end; gap: 22px; padding-bottom: 0.12em; }
body.layout-dots .hero-side .hero-line { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; }
body.layout-dots .code-row { padding: 6px 6px 6px 10px; }
body.layout-dots .code-row input { height: 52px; font-size: 16px; }
body.layout-dots .btn-gift { height: 52px; padding: 0 24px; font-size: 16px; }
@media (max-width: 760px) {
  body.layout-dots .hero { grid-template-columns: 1fr; }
  body.layout-dots .hero-side { justify-self: stretch; max-width: none; }
}
body.layout-dots .code-row input::placeholder { color: rgba(255, 255, 255, 0.45); letter-spacing: 0; opacity: 1; }
/* Arrow-only gift button */
body.layout-dots .btn-gift.btn-arrow { width: 52px; height: 52px; padding: 0; justify-content: center; flex: none; }
body.layout-dots .btn-gift.btn-arrow svg { transition: transform 200ms var(--ease); }
body.layout-dots .btn-gift.btn-arrow:hover svg { transform: translateX(2px); }

/* Cart bar: same look as the code bar */
.tray-inner {
  max-width: 560px; padding: 6px 6px 6px 8px; gap: 14px; border-radius: 999px;
  background: #141414; border: 1px solid #2c2c2c; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.tray .slots { gap: 6px; }
.tray .slot { width: 52px; height: 52px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.22); }
.tray .slot.is-filled { border: 0; border-radius: 50%; }
.tray .slot button { border-radius: 50%; }
.tray .slot img { width: 40px; height: 40px; }
.tray .slot .size-tag, .tray .slot .x { background: #fff; color: #141414; }
.tray .slot button:focus-visible { outline-color: #fff; }
.tray-count { color: rgba(255, 255, 255, 0.6); font: 400 15px/1.3 "Geist", var(--sans); }
.tray-count strong { color: #fff; font-weight: 500; }
.tray-go.btn-arrow { width: 52px; height: 52px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tray-go.btn-arrow svg { transition: transform 200ms var(--ease); }
.tray-go.btn-arrow:hover svg { transform: translateX(2px); }
@media (max-width: 760px) {
  .tray-inner { padding: 5px 5px 5px 6px; gap: 8px; border-radius: 999px; }
  .tray .slot { width: 46px; height: 46px; }
  .tray .slot img { width: 36px; height: 36px; }
  .tray-go.btn-arrow { width: 46px; height: 46px; }
}
/* No step navigation in the header */
.steps { display: none !important; }
.swap-link { margin-left: auto !important; }

/* Colour: round swatches only, selected name next to the label */
.sizes legend .color-name { margin-left: 6px; color: var(--ink); font-weight: 500; }
.sizes .swatch-row { gap: 10px; }
.sizes .swatch-row > label > span.swatch {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; min-width: 0;
  background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  display: block; cursor: pointer; transition: box-shadow 150ms, transform 150ms;
}
.sizes .swatch-row > label > span.swatch:hover { transform: scale(1.06); }
.sizes .swatch-row input:checked + span.swatch {
  background: var(--swatch); border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 3px #fff, 0 0 0 4.5px var(--ink);
}
.sizes .swatch-row input:focus-visible + span.swatch { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 760px) { .sizes .swatch-row > label > span.swatch { width: 34px; height: 34px; } }
/* Header: centred logo; Swap link only on the first page */
.bar { justify-content: center; }
.bar .mark { position: absolute; left: 50%; transform: translateX(-50%); }
body:not([data-step="code"]) .swap-link { display: none !important; }
/* Size buttons as pills, to match the round swatches and buttons */
.sizes [data-sizes] label > span { border-radius: 999px !important; min-width: 52px; padding: 0 16px; }
/* Carousel arrows: Fynd Swap control style */
.arrow {
  width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.04); color: var(--ink);
  box-shadow: rgba(0, 0, 0, 0.12) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 20px 0, rgba(0, 0, 0, 0.04) 0 5px 20px 0;
  transition: background-color 160ms, transform 160ms;
}
.arrow:hover { background: rgba(0, 0, 0, 0.08); }
.arrow:active { transform: scale(0.96); }
.arrow-prev:hover svg { transform: translateX(-2px); }
.arrow-next:hover svg { transform: translateX(2px); }
.arrow svg { transition: transform 200ms var(--ease); }
.arrow[disabled] { opacity: 1; pointer-events: auto; }
/* More room for the logo at the top */
.bar { padding-top: calc(36px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.mark img { height: 26px; }
.product-nav { top: calc(100px + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) {
  .bar { padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
  .mark img { height: 24px; }
  .product-nav { top: calc(78px + env(safe-area-inset-top, 0px)); }
}
.bar .mark { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) { .bar .mark { top: calc(22px + env(safe-area-inset-top, 0px)); } }
/* First page: deep pine green background */
body.layout-dots .scene { background: #0d3324; }
body.layout-dots .code-row { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.14); }
body.layout-dots .code-row:focus-within { border-color: rgba(255, 255, 255, 0.4); }

/* ===== Paper page (risograph print style) ===== */
.paper-art, .paper-defs { display: none; }
body.layout-paper[data-step="code"] { background: #f3e9d6; }
body.layout-paper .scene { background: #f3e9d6; }
body.layout-paper .scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
body.layout-paper .tree3d-canvas, body.layout-paper .dots-canvas { display: none !important; }
body.layout-paper[data-step="code"] .paper-art {
  display: block; position: fixed; left: 0; bottom: 0; width: min(62vw, 92vh); height: min(62vw, 92vh); z-index: 0;
}
.paper-art .tree { fill: #4f9a62; }
.paper-art .balls circle { transform-box: fill-box; transform-origin: center; animation: ball-in 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(250ms + var(--i) * 110ms); }
@keyframes ball-in { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .paper-art .balls circle { animation: none; } }

body.layout-paper .hero { color: #1d1a1b; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
body.layout-paper .hero-title {
  grid-column: 1 / 3; grid-row: 1; justify-self: end; align-self: start; text-align: left;
  font: 900 clamp(64px, 10vw, 168px)/0.86 "Geist", var(--sans); letter-spacing: -0.055em; color: #1d1a1b; filter: url(#ink);
}
body.layout-paper .hero-side { grid-column: 2; grid-row: 3; justify-self: end; }
body.layout-paper .hero-side .hero-line, body.layout-paper .hero-side .hero-line strong { color: #1d1a1b; }
body.layout-paper .code-row { background: #1d1a1b; border-color: #1d1a1b; }
body.layout-paper .code-row input { color: #f3e9d6; }
body.layout-paper .code-row input::placeholder { color: rgba(243, 233, 214, 0.5); }
body.layout-paper[data-step="code"] .mark-light { display: none !important; }
body.layout-paper[data-step="code"] .mark-dark { display: block !important; }
body.layout-paper .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) {
  body.layout-paper .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  body.layout-paper .hero-title { grid-column: 1; justify-self: start; font-size: 64px; }
  body.layout-paper .hero-side { grid-column: 1; grid-row: 3; justify-self: stretch; background: rgba(243, 233, 214, 0.92); padding: 14px; border-radius: 22px; }
  body.layout-paper[data-step="code"] .paper-art { width: 95vw; height: 95vw; }
}
@media (max-width: 760px) {
  body.layout-paper[data-step="code"] .paper-art { width: 100vw; height: 100vw; bottom: auto; top: calc(44% - 50vw); }
  body.layout-paper .hero-side { background: none; padding: 0; }
  body.layout-paper .hero-title { filter: none; }
}
/* Stronger paper: fine grain + uneven tone */
body.layout-paper .scene::before {
  opacity: 0.85;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.27 0 0 0 0 0.2 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
}
body.layout-paper .scene { background: #f1e5cd; }
body.layout-paper[data-step="code"] { background: #f1e5cd; }
body.layout-paper .scene::before { opacity: 0.38; }
body.layout-paper .scene { background: #f3e8d2; }
/* Paper headline: Inter Tight Black, set tight like the reference */
body.layout-paper .hero-title { font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 900; letter-spacing: -0.06em; line-height: 0.88; }

/* ===== Event poster page (Apple invitation style) ===== */
.event-logo { display: none; }
body.layout-event[data-step="code"], body.layout-event .scene { background: #000; }
body.layout-event .paper-art, body.layout-event .tree3d-canvas, body.layout-event .dots-canvas { display: none !important; }
body.layout-event .scene::before { content: none; }
body.layout-event[data-step="code"] .event-logo {
  display: block; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: min(62vh, 86vw); height: min(62vh, 86vw);
}
body.layout-event .hero {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  max-width: none; padding: 0 24px calc(48px + env(safe-area-inset-bottom, 0px)); gap: 10px;
}
body.layout-event .hero-title {
  font: 600 clamp(26px, 2.6vw, 40px)/1.1 "Geist", var(--sans); letter-spacing: -0.02em; color: #f5f5f7; filter: none;
  grid-column: auto; grid-row: auto; justify-self: auto; max-width: none;
}
body.layout-event .hero-side { width: min(420px, 100%); align-items: stretch; gap: 26px; padding: 0; background: none; }
body.layout-event .hero-side .hero-line { text-align: center; font: 400 17px/1.45 "Geist", var(--sans); color: #86868b; }
body.layout-event .code-row { background: #1d1d1f; border-color: #2d2d30; }
body.layout-event .code-row input { color: #f5f5f7; }
body.layout-event .code-row input::placeholder { color: #86868b; }
body.layout-event[data-step="code"] .mark-light { display: block !important; }
body.layout-event[data-step="code"] .mark-dark { display: none !important; }
@media (max-width: 760px) {
  body.layout-event[data-step="code"] .event-logo { top: 36%; width: 88vw; height: 88vw; }
  body.layout-event .hero-title { font-size: 26px; }
}
body.layout-event .event-logo canvas { display: block !important; width: 100%; height: 100%; }
body.layout-event .hero-title, body.layout-event .hero-side { align-self: center !important; }
body.layout-event .event-logo { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* Event page: Christmas touches */
body.layout-event .snow { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body.layout-event .snow-front { z-index: 3; }
body.layout-event:not([data-step="code"]) .snow { display: none !important; }
body.layout-event .event-logo { z-index: 1; }
.star-twinkle {
  position: absolute; left: 76.5%; top: 29.5%; width: 9%; height: 9%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 236, 170, 0.95), rgba(255, 200, 90, 0.35) 45%, transparent 75%);
  mix-blend-mode: screen; animation: twinkle-star 3.2s ease-in-out infinite;
}
.star-twinkle::before, .star-twinkle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 260%; height: 2px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.9), transparent);
}
.star-twinkle::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle-star { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85) rotate(0deg); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .star-twinkle { animation: none; } }
body.layout-event .hero-kicker {
  display: block !important; margin: 0 0 4px; font: italic 400 clamp(18px, 1.6vw, 22px)/1 "Instrument Serif", Georgia, serif; color: #f2c46d; letter-spacing: 0.01em;
}

/* Metal layout: light poster, letter on the left, liquid metal dogo on the right */
body.layout-event.layout-metal[data-step="code"],
body.layout-event.layout-metal .scene {
  background-color: #ecebe8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.layout-metal .star-twinkle, body.layout-metal .snow { display: none !important; }
body.layout-metal[data-step="code"] .mark-light { display: none !important; }
body.layout-metal[data-step="code"] .mark-dark { display: block !important; }
body.layout-event.layout-metal[data-step="code"] .event-logo {
  left: calc(50% - 24px); top: 50%; transform: translateY(-50%);
  width: min(54vw, 92vh); height: min(54vw, 92vh);
  -webkit-mask-image: none; mask-image: none;
}
body.layout-event.layout-metal .hero {
  position: relative; z-index: 2; box-sizing: border-box;
  max-width: 1200px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: 112px 32px calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; gap: 0;
}
body.layout-event.layout-metal .hero > * { width: min(460px, 100%); }
body.layout-event.layout-metal .hero-title,
body.layout-event.layout-metal .hero-side { align-self: flex-start !important; }
body.layout-event.layout-metal .hero-kicker { margin: 0 0 14px; color: #b3121f; }
body.layout-event.layout-metal .hero-title {
  margin: 0; font: 600 clamp(40px, 4.6vw, 66px)/1 "Geist", var(--sans); letter-spacing: -0.04em; color: #111;
}
body.layout-event.layout-metal .hero-side { margin-top: 28px; gap: 28px; }
body.layout-metal .letter p { margin: 0 0 12px; font: 400 17px/1.55 "Geist", var(--sans); color: #55555a; }
body.layout-metal .letter .letter-best { margin: 20px 0 0; color: #1d1d1f; }
body.layout-metal .signature { margin: 0 !important; height: 64px; }
body.layout-metal .signature span {
  display: inline-block; padding: 0 8px 0 2px; font: 400 52px/1.3 "Mrs Saint Delafield", "Pinyon Script", cursive; color: #c12707;
  clip-path: inset(-20% 100% -20% 0); animation: sign-in 2.4s cubic-bezier(0.45, 0.05, 0.4, 1) 0.8s forwards;
}
@keyframes sign-in { to { clip-path: inset(-20% 0 -20% 0); } }
@media (prefers-reduced-motion: reduce) { body.layout-metal .signature span { animation: none; clip-path: none; } }
body.layout-metal .code-row { background: #fff; border-color: #dcdbd7; }
body.layout-metal .code-row input { color: #111; }
body.layout-metal .code-row input::placeholder { color: #8a8a8e; }
body.layout-metal .msg { color: #55555a; }
@media (max-width: 760px) {
  body.layout-event.layout-metal[data-step="code"] .event-logo { left: 50%; top: 64px; transform: translateX(-50%); width: 84vw; height: 84vw; }
  body.layout-event.layout-metal .hero { justify-content: flex-start; padding: calc(84vw + 72px) 20px 40px; }
  body.layout-event.layout-metal .hero-title { font-size: 40px; }
}

/* Noir layout: dark card, letter top left, chrome dogo bleeding off the bottom right */
body.layout-event.layout-metal.layout-noir[data-step="code"],
body.layout-event.layout-metal.layout-noir .scene { background: #1b1e21; overflow: hidden; }
body.layout-noir[data-step="code"] .mark-light { display: block !important; }
body.layout-noir[data-step="code"] .mark-dark { display: none !important; }
body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo {
  left: auto; top: auto; right: -2vw; bottom: -18vh; transform: none;
  width: min(60vw, 112vh); height: min(60vw, 112vh);
}
body.layout-event.layout-metal.layout-noir .hero {
  justify-content: flex-start; padding-top: clamp(96px, 12vh, 140px); pointer-events: none;
}
body.layout-event.layout-metal.layout-noir .hero > * { width: min(560px, 100%); pointer-events: auto; }
body.layout-event.layout-metal.layout-noir .hero-title {
  font: 500 clamp(20px, 1.6vw, 24px)/1.3 "Geist", var(--sans); letter-spacing: -0.01em; color: #f5f5f7;
}
body.layout-event.layout-metal.layout-noir .hero-side { margin-top: 24px; gap: 44px; }
body.layout-noir .letter p { margin: 0; font: 400 17px/1.55 "Geist", var(--sans); color: #9a9ea4; }
body.layout-noir .letter .letter-best { margin: 28px 0 0; color: #9a9ea4; }
body.layout-noir .signature { width: 260px; height: 64px; margin: 10px 0 0 -2px; }
body.layout-noir .signature svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.layout-noir .signature path { fill: none; stroke: url(#sig-grad); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.layout-noir .code-row { width: min(400px, 100%); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
body.layout-noir .code-row input { color: #f5f5f7; }
body.layout-noir .code-row input::placeholder { color: #7d8187; }
body.layout-noir .msg { color: #9a9ea4; }
@media (max-width: 760px) {
  body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo { left: auto; top: auto; right: -30vw; bottom: -8vh; width: 115vw; height: 115vw; transform: none; }
  body.layout-event.layout-metal.layout-noir .hero { padding: 96px 20px 40px; }
}

/* Gift link with the code inside: the bar shows a label in place of the code field */
.open-label { display: none; }
body.has-link-code .code-row input { display: none; }
body.no-code .code-row { display: none; }
body.has-link-code .open-label { display: block; flex: 1; align-self: center; padding-left: 16px; font: 500 16px/1 "Geist", var(--sans); color: #f5f5f7; }

/* Noir layout, centred: letter at the top, dogo rising from the bottom, CTA bar pinned to the bottom */
body.layout-event.layout-metal.layout-noir .hero { align-items: center; text-align: center; padding-bottom: 140px; }
body.layout-event.layout-metal.layout-noir .hero-title,
body.layout-event.layout-metal.layout-noir .hero-side { align-self: center !important; }
body.layout-event.layout-metal.layout-noir .hero-side { align-items: center; }
body.layout-noir .letter p { text-align: center; }
body.layout-noir .signature { margin: 10px auto 0; }
body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo {
  left: 50%; right: auto; top: auto; bottom: -24vh; transform: translateX(-50%);
  width: min(66vw, 80vh); height: min(66vw, 80vh);
}
body.layout-noir .code-form {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; width: auto !important;
  padding: 0 clamp(12px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px));
}
body.layout-noir .code-row {
  width: auto; max-width: 560px; margin: 0 auto; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: #141414; border: 1px solid #2c2c2c; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
body.layout-noir .code-form .msg { max-width: 560px; margin: 8px auto 0; text-align: center; }
@media (max-width: 760px) {
  body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo { left: 50%; right: auto; bottom: -10vh; transform: translateX(-50%); width: 110vw; height: 110vw; }
}
/* Gift link: the whole bar is the button */
body.has-link-code .code-row { position: relative; cursor: pointer; transition: background-color 200ms var(--ease); }
body.has-link-code .code-row:hover { background: #1c1c1c; }
body.has-link-code .code-row .btn-arrow { position: static; }
body.has-link-code .code-row .btn-arrow::after { content: ""; position: absolute; inset: 0; border-radius: 999px; }
body.has-link-code .code-row:hover .btn-arrow svg { transform: translateX(2px); }
/* Title and bar label use the logo cream */
body.layout-event.layout-metal.layout-noir .hero-title, body.has-link-code .open-label { color: #f5f1e4; }
/* Fynd logo signs the letter; header logo hidden on the first page */
.sign-logo { display: none; }
body.layout-noir .sign-logo { display: block; height: 26px; width: auto; margin: 32px auto 0; }
body.layout-noir[data-step="code"] .mark-light, body.layout-noir[data-step="code"] .mark-dark { display: none !important; }
/* Gift link: the bar is one red Fynd button */
body.layout-noir.has-link-code .code-row {
  justify-content: center; gap: 6px; height: 60px; padding: 0 24px; box-sizing: border-box; border: 1px solid transparent;
  background: radial-gradient(50% 50% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), radial-gradient(49.59% 37.11% at 50.41% 101.56%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 66.46%), #c12707;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 0 4px 1px #c12707, inset 0 0 4px 2px rgba(255, 255, 255, 0.1), inset 0 0 12px -6px rgba(255, 255, 255, 0.75);
  transition: filter 160ms;
}
body.layout-noir.has-link-code .code-row:hover { background-color: #c12707; filter: brightness(1.08); }
body.layout-noir.has-link-code .open-label { flex: none; padding: 0; font: 500 17px/1 "Geist", var(--sans); color: #f5f1e4; }
body.layout-noir.has-link-code .code-row .btn-arrow { width: 28px; height: 28px; background: none; box-shadow: none; border: 0; color: #f5f1e4; filter: none; }
body.layout-noir.has-link-code .code-row { align-items: center; }
body.layout-noir.has-link-code .code-row .btn-arrow { align-self: center; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
/* Dogo fits the space between the letter and the button (top and bottom set by metal.js) */
body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo {
  left: 0; right: 0; width: auto; height: auto; transform: none; top: var(--logo-top, 40vh); bottom: var(--logo-bottom, 100px);
}
@media (max-width: 760px) {
  body.layout-event.layout-metal.layout-noir[data-step="code"] .event-logo { left: 0; right: 0; width: auto; height: auto; transform: none; bottom: var(--logo-bottom, 100px); }
}
/* Letter higher, larger heading */
body.layout-event.layout-metal.layout-noir .hero { padding-top: clamp(48px, 7vh, 80px); }
body.layout-event.layout-metal.layout-noir .hero-title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -0.025em; }
body.layout-event.layout-metal.layout-noir .hero-side { margin-top: 18px; }
body.layout-noir .sign-logo { margin-top: 24px; }
@media (max-width: 760px) { body.layout-event.layout-metal.layout-noir .hero { padding-top: 48px; } }
/* Christmas pine background */
body.layout-event.layout-metal.layout-noir[data-step="code"],
body.layout-event.layout-metal.layout-noir .scene { background: radial-gradient(120% 90% at 50% 0%, #17402f 0%, #0d2a1f 55%, #081c15 100%); }
body.layout-noir .letter p { color: #a9bdb2; }
/* No 3D logo: letter centred in the page */
body.layout-event.layout-metal.layout-noir .hero { justify-content: center; padding-top: 48px; }
/* Header logo back on the first page; Propeller Team signature under the letter */
body.layout-noir[data-step="code"] .mark-light { display: block !important; }
.ph-signature { display: none; }
body.layout-noir .ph-signature { display: block; width: 190px; margin: 28px auto 0; color: #f5f1e4; }
body.layout-noir .ph-signature svg {
  display: block; width: 100%; height: auto;
  clip-path: inset(-10% 100% -10% 0); animation: sign-in 2.2s cubic-bezier(0.45, 0.05, 0.4, 1) 0.6s forwards;
}
@media (prefers-reduced-motion: reduce) { body.layout-noir .ph-signature svg { animation: none; clip-path: none; } }
/* Composition: one centred group (title, letter, signature, button) */
body.layout-event.layout-metal.layout-noir .hero { padding-bottom: 72px; }
body.layout-event.layout-metal.layout-noir .hero-title { font-size: clamp(34px, 3.4vw, 52px); }
body.layout-event.layout-metal.layout-noir .hero-side { margin-top: 20px; gap: 48px; }
body.layout-noir .letter p { font-size: 18px; max-width: 30em; margin-inline: auto; }
body.layout-noir .ph-signature { width: 150px; margin-top: 24px; }
body.layout-noir .code-form { position: static; padding: 0; width: 100% !important; }
body.layout-noir .code-row { max-width: 340px; }
body.layout-noir.has-link-code .code-row { height: 56px; }
/* Light rays (React Bits) on the first page */
.rays { display: none; }
body.layout-noir[data-step="code"] .rays { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
body.layout-noir .rays canvas { display: block !important; width: 100%; height: 100%; }
/* Soft dark area behind the letter so it reads over the CRT background */
body.layout-noir[data-step="code"] .rays::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 48%, rgba(6, 21, 16, 0.75) 0%, rgba(6, 21, 16, 0.4) 55%, rgba(6, 21, 16, 0) 100%);
}
body.layout-noir .ph-signature[hidden] { display: none; }
/* Dithered gift box below the letter and button */
.gift-box { display: none; }
body.layout-noir[data-step="code"] .gift-box { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
body.layout-noir .gift-box canvas { display: block !important; width: 100%; height: 100%; }
body.layout-noir[data-step="code"] .rays::after { content: none; }
body.layout-event.layout-metal.layout-noir .hero { justify-content: flex-start; padding-top: clamp(96px, 14vh, 160px); }

/* Pixel Snow (React Bits) behind the gift box on the first page. */
.pixel-snow { display: none; }
body.layout-noir[data-step="code"] .pixel-snow {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.layout-noir .pixel-snow canvas { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; }
body.layout-noir[data-step="code"] .pixel-snow {
  --fade: radial-gradient(ellipse min(46vw, 560px) var(--fade-h, 220px) at 50% var(--fade-y, 30%), rgb(0 0 0 / 0.2) 45%, #000 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

/* Leaving the first page: a snow storm fills the screen (pixel-snow.js), then a white wipe opens the next step. */
body.layout-noir #step-code.is-leaving .scene::after { opacity: 0; }
body.layout-noir[data-step="code"] .pixel-snow.is-storm { -webkit-mask-image: none; mask-image: none; }
.snow-wipe { position: fixed; inset: 0; z-index: 100; background: #fff; opacity: 0; pointer-events: none; transition: opacity 350ms ease-in; }
.snow-wipe.is-on { opacity: 1; }
.snow-wipe.is-out { transition: opacity 600ms ease-out; }


/* First page without the box: larger heading, content centred in the window. */
body.layout-event.layout-metal.layout-noir .hero { justify-content: center; padding-top: 72px; padding-bottom: 96px; }
body.layout-event.layout-metal.layout-noir .hero-title { font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -0.03em; }
body.layout-event.layout-metal.layout-noir .hero-title { width: auto; max-width: 14em; text-wrap: balance; }
.title-word { display: inline-block; white-space: nowrap; }
.title-letter { display: inline-block; animation: title-in 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes title-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(0.18em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
/* The whole red bar is the button: keep the stretched click area stable while pressed. */
body.has-link-code .code-row .btn-gift:active { transform: none; }
body.has-link-code .code-row:has(.btn-gift:active) { transform: translateY(1px); }

/* Geist on every page: headings use the same face as the text, upright, medium weight. */
body.layout-noir {
  --serif: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
}
body.layout-noir h1, body.layout-noir h2, body.layout-noir .hero-kicker, body.layout-noir h1 em, body.layout-noir .serif-i {
  font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: -0.03em;
}
body.layout-event.layout-metal.layout-noir .hero-title { max-width: 10em; line-height: 1.04; }
/* One-button bar: no arrow, the bar fits its label. The submit button stays as the full-bar click area. */
body.layout-noir.has-link-code .code-row { width: fit-content !important; max-width: 100%; margin-inline: auto; padding: 0 44px; height: 54px; gap: 0; }
body.layout-noir.has-link-code .code-row .btn-arrow { width: 0; height: 0; min-width: 0; overflow: visible; }
body.layout-noir.has-link-code .code-row .btn-arrow svg { display: none; }
body.layout-noir.has-link-code .code-row .btn-arrow:focus-visible { outline: none; }
body.layout-noir.has-link-code .code-row:has(.btn-arrow:focus-visible) { outline: 2px solid #f5f1e4; outline-offset: 3px; }
/* First page heading: Bricolage Grotesque, narrow and bold. */
body.layout-event.layout-metal.layout-noir .hero-title {
  font-family: "Bricolage Grotesque", var(--sans); font-weight: 700; font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(56px, 8vw, 124px); line-height: 0.95; letter-spacing: normal; max-width: 6.8em;
}
@media (max-width: 760px) { body.layout-event.layout-metal.layout-noir .hero-title { font-size: min(17.5vw, 88px); } }

/* First page reveal (title.js): wait for the fonts, then heading letters, then text, then button. Snow fades in. */
.reveal-wait #step-code .hero-title, .reveal-wait #step-code .letter, .reveal-wait #step-code .code-form { opacity: 0; }
.title-letter { animation-play-state: paused; }
.reveal .title-letter { animation-play-state: running; }
.reveal #step-code .letter { animation: reveal-up 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 700ms both; }
.reveal #step-code .code-form { animation: reveal-up 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 900ms both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.layout-noir[data-step="code"] .pixel-snow { animation: snow-in 700ms ease both; }
@keyframes snow-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal #step-code .letter, .reveal #step-code .code-form, body.layout-noir[data-step="code"] .pixel-snow { animation: none; }
}
/* Headings on every page use the first page heading style. */
body.layout-noir h1, body.layout-noir h2 {
  font-family: "Bricolage Grotesque", var(--sans); font-weight: 700; font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: normal;
}

/* Phones: snow stays faint behind the logo, heading, text and button; content sits a little lower. */
@media (max-width: 760px) {
  body.layout-noir[data-step="code"] .pixel-snow {
    --fade:
      radial-gradient(ellipse 80vw var(--fade-h, 220px) at 50% var(--fade-y, 30%), rgb(0 0 0 / 0.2) 55%, #000 100%),
      radial-gradient(ellipse 34vw 30px at 50% var(--logo-y, 34px), rgb(0 0 0 / 0.2) 50%, #000 100%);
    -webkit-mask-image: var(--fade);
    mask-image: var(--fade);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  body.layout-noir[data-step="code"] .pixel-snow.is-storm { -webkit-mask-image: none; mask-image: none; }
  body.layout-event.layout-metal.layout-noir .hero { padding-bottom: 64px; }
}

/* Product views (hoodie): front, cuff and inside label as small buttons under the image. */
.slide-object:has(.views) { grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.slide-object .slide-main.is-detail { filter: none; border-radius: 16px; max-height: 92%; }
.views { display: flex; gap: 10px; justify-content: center; grid-row: 2; }
.views .view {
  width: 56px; height: 56px; padding: 0; border: 1px solid rgba(23, 22, 20, 0.12); border-radius: 12px;
  background: #f4f4f2; overflow: hidden; cursor: pointer; transition: border-color 160ms, box-shadow 160ms;
}
.views .view img { width: 100%; height: 100%; object-fit: cover; filter: none; transform: none; opacity: 1; max-height: none; transition: none; }
.views .view[aria-pressed="true"] { border-color: #171614; box-shadow: 0 0 0 1px #171614; }
.views .view:focus-visible { outline: 2px solid #171614; outline-offset: 2px; }
@media (max-width: 760px) { .views .view { width: 48px; height: 48px; border-radius: 10px; } }

/* Full tray: Add buttons look disabled, tray arrow grows into a labelled pill */
.btn-light.add[aria-disabled="true"] {
  background: #e4e1d8; color: #8a867b; box-shadow: none; filter: none; opacity: 1; cursor: not-allowed;
  border-color: rgba(20, 20, 20, 0.08);
}
.btn-light.add[aria-disabled="true"]:hover { filter: none; }
.btn-light.add[aria-disabled="true"]:active { transform: none; }
.tray-go.btn-arrow { gap: 0; transition: filter 160ms, transform 160ms, opacity 160ms, padding 320ms var(--ease); }
.tray-go .go-label {
  display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 15px; line-height: 1; padding-left: 0;
  transition: max-width 320ms var(--ease), opacity 200ms, padding 320ms var(--ease);
}
.tray-go.btn-arrow.is-full { width: auto; padding: 0 20px 0 22px; gap: 10px; }
.tray-go.is-full .go-label { max-width: 10em; opacity: 1; transition-delay: 0s, 120ms, 0s; }
@media (max-width: 760px) {
  .tray-go.btn-arrow.is-full { width: auto; padding: 0 16px 0 18px; gap: 8px; }
  .tray-go .go-label { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tray-go.btn-arrow, .tray-go .go-label { transition: none !important; }
}

/* Product image fit: keep image (and thumbnail row) inside the slide area, below the menu */
.slide-object { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: auto; align-self: stretch; margin-top: 24px; }
.slide-object .slide-main { min-height: 0; min-width: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; justify-self: center; align-self: center; }
.slide-object:has(.views) { grid-template-rows: minmax(0, 1fr) auto; }
.slide-object:has(.views) .slide-main { grid-row: 1; }
@media (max-width: 760px) { .slide-object { margin-top: 10px; } }
/* Product views: thumbnails in a column on the left of the image (desktop); a row under it on phones. */
@media (min-width: 761px) {
  .slide-object:has(.views) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 20px; }
  .slide-object:has(.views) .slide-main { grid-column: 2; grid-row: 1; }
  .slide-object .views { grid-column: 1; grid-row: 1; flex-direction: column; align-self: center; }
}

/* Gift picker: logo on the left and the product menu on the same row, so the product gets more height. */
body[data-step="items"] .bar .mark { left: clamp(20px, 4vw, 48px); transform: none; }
body[data-step="items"] .product-nav { top: calc(28px + env(safe-area-inset-top, 0px)); padding: 0 180px; }
body[data-step="items"] .slide { padding-top: 88px; }
@media (max-width: 760px) {
  body[data-step="items"] .bar .mark { left: 20px; top: calc(22px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .product-nav { top: calc(17px + env(safe-area-inset-top, 0px)); padding: 0 16px 0 124px; justify-content: flex-start; }
  body[data-step="items"] .slide { padding-top: 64px; }
}
/* Gift picker: no logo; the product menu alone on the top row. */
body[data-step="items"] .bar .mark { display: none; }
body[data-step="items"] .product-nav { padding: 0 16px; }
@media (max-width: 760px) { body[data-step="items"] .product-nav { padding: 0 16px; } }
/* Gift picker: keep the short product description on phones too. */
@media (max-width: 860px) { .slide-info .lede { display: block; font-size: 14px; line-height: 1.45; margin-top: 6px; } }
/* The description pushes the product name up on phones: keep the carousel arrows beside the image. */
@media (max-width: 860px) { .arrow { top: 36%; } }
/* Product views on desktop: thumbnails hug the image's left edge (images are square, so the rendered size is min(width, height)). */
@media (min-width: 761px) {
  .slide-object:has(.views) { container-type: size; grid-template-columns: minmax(0, 1fr); }
  .slide-object:has(.views) .slide-main { grid-column: 1; }
  .slide-object .views { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); left: max(0px, calc(50cqw - min(100cqw, 100cqh) / 2 + 2cqmin)); }
}
@media (min-width: 761px) {
  .slide-object .views { top: max(0px, calc(50cqh - min(100cqw, 100cqh) / 2 + 2cqmin)); transform: none; }
}

.slide-clone { pointer-events: none; }

/* Gift picker: the heading is the menu. The product name is big; the other gifts follow it, small and grey. */
body[data-step="items"] .product-nav { display: none; }
body[data-step="items"] .slide { padding-top: 56px; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 6px; }
.title-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
.title-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 17px/1.2 var(--sans); color: var(--ink-soft); transition: color 160ms;
}
.title-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.title-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.title-link + .title-link::before { content: "·"; display: inline-block; margin: 0 9px; color: var(--ink-soft); text-decoration: none; }
@media (max-width: 760px) {
  body[data-step="items"] .slide { padding-top: 24px; }
  .title-row { column-gap: 12px; }
  .title-link { font-size: 14px; }
  .title-link + .title-link::before { margin: 0 6px; }
}
/* "To shipping" pill: label only, no arrow. The round button keeps its arrow when the tray is not full. */
.tray-go.is-full svg { display: none; }
.tray-go.btn-arrow.is-full { padding: 0 24px; gap: 0; }
@media (max-width: 760px) { .tray-go.btn-arrow.is-full { padding: 0 20px; } }

/* Heading tabs: every product name at heading size in one row; the current one solid, the next ones faint and fading out to the right. */
.slide-info .title-row {
  flex-wrap: nowrap; overflow: hidden; column-gap: 0.28em; font-size: clamp(48px, 6vw, 96px);
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.slide-info .title-row h2 { font-size: 1em; flex: none; }
.slide-info .title-nav { flex-wrap: nowrap; gap: 0 0.28em; }
.slide-info .title-link {
  font: 700 1em/0.95 "Bricolage Grotesque", var(--sans); font-variation-settings: "wdth" 75, "opsz" 96;
  color: var(--ink); opacity: 0.14; white-space: nowrap; transition: opacity 200ms;
}
.slide-info .title-link:hover { opacity: 0.4; text-decoration: none; }
.slide-info .title-link + .title-link::before { content: none; }
@media (max-width: 760px) {
  .slide-info .title-row { font-size: 42px; column-gap: 0.25em; }
  .slide-info .title-link { font-size: 1em; }
}

/* Size guide */
.sizes legend .size-guide-btn {
  margin-left: 10px; padding: 0; border: 0; background: none; color: #171614; font: 500 13px/1 "Geist", var(--sans);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
}
.sizes legend .size-guide-btn:hover { text-decoration-thickness: 2px; }
.sizes legend .size-guide-btn:focus-visible { outline: 2px solid #171614; outline-offset: 3px; border-radius: 2px; }
dialog.size-guide {
  width: min(560px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #e3e1dc; border-radius: 12px;
  background: #fff; color: #171614; font-family: "Geist", var(--sans); box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
}
dialog.size-guide::backdrop { background: rgb(23 22 20 / 0.28); }
.size-guide-box { padding: 18px 20px 16px; }
.size-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.size-guide-head h3 { margin: 0; font: 600 16px/1.2 "Geist", var(--sans); font-style: normal; }
.size-guide-close {
  width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 8px; background: none; color: #171614;
  font: 300 24px/1 "Geist", var(--sans); cursor: pointer;
}
.size-guide-close:hover { background: #f3f2ef; }
.size-guide-close:focus-visible, .size-guide-units button:focus-visible { outline: 2px solid #171614; outline-offset: 2px; }
.size-guide-units { display: inline-flex; margin: 12px 0 14px; border: 1px solid #e3e1dc; border-radius: 8px; overflow: hidden; }
.size-guide-units button {
  padding: 6px 14px; border: 0; background: #fff; color: #171614; font: 500 13px/1 "Geist", var(--sans); cursor: pointer;
}
.size-guide-units button + button { border-left: 1px solid #e3e1dc; }
.size-guide-units button[aria-pressed="true"] { background: #171614; color: #fff; }
.size-guide-scroll { overflow-x: auto; }
.size-guide table { width: 100%; border-collapse: collapse; font: 400 13px/1.2 "Geist", var(--sans); font-variant-numeric: tabular-nums; }
.size-guide th, .size-guide td { padding: 10px 12px; border-bottom: 1px solid #e3e1dc; text-align: center; white-space: nowrap; }
.size-guide thead th { font-weight: 600; border-bottom-color: #171614; }
.size-guide tbody th { text-align: left; font-weight: 500; position: sticky; left: 0; background: #fff; }
.size-guide thead th:first-child { text-align: left; color: #6b6963; font-weight: 400; position: sticky; left: 0; background: #fff; }
.size-guide-note { margin: 12px 0 0; font: 400 12px/1.4 "Geist", var(--sans); color: #6b6963; }
.slide-info { min-width: 0; }
@media (min-width: 761px) { .slide-info .title-row { width: 40vw; max-width: none; } }
@media (max-width: 760px) { .slide-info .title-row { width: 100%; } }

/* Gift picker heading bar: fixed at the top centre, the current name solid, the others fading out on both sides. */
.title-bar {
  position: fixed; z-index: 15; left: 0; right: 0; top: calc(22px + env(safe-area-inset-top, 0px));
  overflow: hidden; font-size: clamp(48px, 6vw, 96px); line-height: 1; padding: 0.06em 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 66%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 66%, transparent 96%);
}
.title-strip { display: flex; gap: 0.32em; width: max-content; will-change: transform; }
.title-bar button {
  flex: none; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 700 1em/0.95 "Bricolage Grotesque", var(--sans); font-variation-settings: "wdth" 75, "opsz" 96; white-space: nowrap;
}
.title-bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
/* The per-slide heading stays for screen readers only. */
.slide-info .title-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; -webkit-mask-image: none; mask-image: none; }
body[data-step="items"] .slide { padding-top: calc(clamp(48px, 6vw, 96px) + 64px); }
@media (max-width: 760px) {
  .title-bar { font-size: 44px; top: calc(14px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: 76px; }
}
/* Heading bar: attached to the page, shown only on the gift picker; larger, with more air. */
body:not([data-step="items"]) .title-bar { display: none; }
.title-bar { font-size: clamp(60px, 8vw, 128px); top: calc(34px + env(safe-area-inset-top, 0px)); }
body[data-step="items"] .slide { padding-top: calc(clamp(60px, 8vw, 128px) + 92px); }
@media (max-width: 760px) {
  .title-bar { font-size: 54px; top: calc(22px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: 104px; }
}
.slide-info { position: relative; }
/* Flat carousel arrows: soft grey circle, no shadow or outline. */
body[data-step="items"] .arrow { background: rgba(23, 22, 20, 0.05); box-shadow: none; border: 0; color: var(--ink); filter: none; backdrop-filter: none; }
body[data-step="items"] .arrow:hover { background: rgba(23, 22, 20, 0.1); }
/* Gift picker: Fynd logo back, top left, above the heading bar's faded edge. */
body[data-step="items"] .bar .mark { display: block; left: clamp(20px, 4vw, 48px); transform: none; }
/* Size guide: a small grey helper link at the right end of the "Size" line, not a value. */
.sizes legend:has(.size-guide-btn) { display: flex; align-items: baseline; justify-content: space-between; width: 100%; max-width: 420px; }
.sizes legend .size-guide-btn {
  margin: 0; padding: 0; font: 500 13px/1.2 "Geist", var(--sans); color: var(--ink-soft);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(23, 22, 20, 0.3); text-underline-offset: 3px;
}
.sizes legend .size-guide-btn:hover { color: var(--ink); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
/* Gift picker on phones: logo centred above the heading bar, not on top of it. */
@media (max-width: 760px) {
  body[data-step="items"] .bar .mark { left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top, 0px)); height: 20px; }
  body[data-step="items"] nav.title-bar { top: calc(44px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: 126px; }
}
/* Cart: 3 spots at the top right of the gift picker (replaces the bottom tray). The panel drops below it. */
:root { --tray-h: 0px; }
.cart { position: fixed; z-index: 30; top: calc(22px + env(safe-area-inset-top, 0px)); right: clamp(20px, 4vw, 48px); color: #171614; font-family: "Geist", var(--sans); }
.cart-toggle {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 22, 20, 0.1);
  transition: box-shadow 160ms;
}
.cart-toggle:hover, .cart-toggle[aria-expanded="true"] { box-shadow: 0 0 0 1px rgba(23, 22, 20, 0.28); }
.cart-toggle:focus-visible { outline: 2px solid #171614; outline-offset: 2px; }
.cart-spots { display: flex; gap: 4px; }
.cart-spot { box-sizing: border-box; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed rgba(23, 22, 20, 0.3); display: grid; place-items: center; }
.cart-spot.is-filled { border: 0; background: #f4f4f2; }
.cart-spot img { width: 28px; height: 28px; object-fit: contain; }
.cart-count { font: 500 14px/1 "Geist", var(--sans); font-variant-numeric: tabular-nums; }
.cart-panel {
  position: absolute; top: calc(100% + 10px); right: 0; box-sizing: border-box; width: min(340px, calc(100vw - 32px));
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23, 22, 20, 0.1);
  box-shadow: 0 16px 40px -12px rgba(23, 22, 20, 0.22);
}
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-title { font: 600 15px/1.3 "Geist", var(--sans); }
.cart-of { font-size: 13px; color: rgba(23, 22, 20, 0.6); font-variant-numeric: tabular-nums; }
.cart-undo { all: unset; cursor: pointer; font-size: 13px; color: rgba(23, 22, 20, 0.7); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(23, 22, 20, 0.3); }
.cart-undo:hover { color: #171614; text-decoration-color: currentColor; }
.cart-undo:focus-visible, .cart-remove:focus-visible { outline: 2px solid #171614; outline-offset: 2px; border-radius: 4px; }
.cart-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.cart-list:empty { display: none; }
.cart-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px; margin: 0 -4px; border-radius: 12px; }
.cart-row img { width: 44px; height: 44px; border-radius: 50%; background: #f4f4f2; object-fit: contain; }
.cart-row-text b { display: block; font: 600 15px/1.25 "Geist", var(--sans); }
.cart-row-text span { display: block; font-size: 13px; line-height: 1.3; color: rgba(23, 22, 20, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-remove { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; color: rgba(23, 22, 20, 0.5); }
.cart-remove:hover { background: rgba(23, 22, 20, 0.06); color: #171614; }
.cart-row.is-new { animation: cart-row-new 1600ms ease-out; }
@keyframes cart-row-new { 0%, 40% { background: rgba(193, 39, 7, 0.08); } 100% { background: transparent; } }
.cart-hint { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: rgba(23, 22, 20, 0.6); }
.cart-go { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 48px; margin-top: 14px; font-size: 15px; text-decoration: none; }
.cart-go[aria-disabled="true"] { pointer-events: none; }
.cart-fly { position: fixed; z-index: 40; object-fit: contain; pointer-events: none; transform-origin: center; will-change: transform; }
@media (max-width: 760px) {
  .cart { top: calc(8px + env(safe-area-inset-top, 0px)); right: 12px; }
  .cart-toggle { gap: 6px; padding: 3px 10px 3px 3px; }
  .cart-spots { gap: 3px; }
  .cart-spot { width: 28px; height: 28px; }
  .cart-spot img { width: 22px; height: 22px; }
  .cart-count { font-size: 13px; }
  .cart-panel { right: -4px; width: calc(100vw - 16px); }
}
@media (prefers-reduced-motion: reduce) { .cart-row.is-new { animation: none; background: rgba(193, 39, 7, 0.06); } }
@media (max-width: 760px) { body[data-step="items"] .bar .mark { left: 20px; transform: none; } }
/* "Color: Forest Green": a normal word space after the colon. */
.sizes legend .color-name { margin-left: 2px; }
/* Lightbox: the product image large on a light page, with the views as thumbnails. */
dialog.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #f4f4f2; color: #171614; overflow: hidden;
}
dialog.lightbox::backdrop { background: #f4f4f2; }
dialog.lightbox[open] { animation: lightbox-in 200ms ease-out; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { position: absolute; inset: 64px 72px 120px; margin: 0; display: grid; place-items: center; cursor: zoom-out; }
dialog.lightbox.is-single .lightbox-stage { bottom: 48px; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
.lightbox-img.is-detail { border-radius: 16px; }
.lightbox-close, .lightbox-arrow {
  all: unset; position: absolute; z-index: 1; box-sizing: border-box; display: grid; place-items: center; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(23, 22, 20, 0.06); color: #171614;
}
.lightbox-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; font-size: 26px; line-height: 1; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(23, 22, 20, 0.12); }
.lightbox-close:focus-visible, .lightbox-arrow:focus-visible, .lightbox-thumb:focus-visible { outline: 2px solid #171614; outline-offset: 2px; }
dialog.lightbox.is-single .lightbox-arrow { display: none; }
.lightbox-thumbs { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 8px; }
.lightbox-thumb { all: unset; box-sizing: border-box; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; border: 2px solid transparent; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb[aria-pressed="true"] { border-color: #171614; }
.slide:not(.slide-clone) .slide-main { cursor: zoom-in; }
@media (max-width: 760px) {
  .lightbox-stage { inset: 64px 12px 112px; }
  .lightbox-arrow { top: auto; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); transform: none; width: 40px; height: 40px; }
  .lightbox-thumb { width: 52px; height: 52px; }
  .lightbox-thumbs { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { dialog.lightbox[open] { animation: none; } }
/* Size guide sits right after "Size", styled like the colour name, underlined because it opens the guide. */
.sizes legend:has(.size-guide-btn) { display: block; max-width: none; }
.sizes legend .size-guide-btn {
  margin: 0 0 0 8px; padding: 0; font: 500 14px/1.2 "Geist", var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(23, 22, 20, 0.35); text-underline-offset: 3px;
}
.sizes legend .size-guide-btn:hover { color: var(--ink); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.lightbox-img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 184px); }
dialog.lightbox.is-single .lightbox-img { max-height: calc(100dvh - 112px); }
@media (max-width: 760px) {
  .lightbox-img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 176px); }
}
/* Phones: swipe between views instead of arrows. */
@media (max-width: 760px) { .lightbox-arrow { display: none; } }
/* Tight labels: one word space after "Color:" and after "Size". */
.sizes legend .color-name, .sizes legend .size-guide-btn { margin-left: 0; }

/* Shipping form: hints, errors, country search, phone dial code */
.field .hint, .field-error { margin: 0; font-size: 13px; line-height: 1.4; }
.field .hint { color: var(--ink-soft); }
.field-error { color: #a3261b; font-weight: 500; }
.field:has(.field-error:not([hidden])) .hint:not(#delivery) { display: none; }
.hint-fix { all: unset; cursor: pointer; font-weight: 600; color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.field input.is-valid { padding-right: 40px; background: #fbfaf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d7a46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3L13 4.5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.combo { position: relative; }
.combo input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 288px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid rgba(23, 22, 20, 0.15); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 22, 20, 0.12); }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--dark); }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: #f1eee7; }
.combo-list .combo-empty { cursor: default; color: var(--ink-soft); }
.combo-list .combo-empty:hover { background: none; }
.phone-row { display: flex; }
.phone-row .dial { display: flex; align-items: center; padding: 0 12px; border: 1px solid rgba(23, 22, 20, 0.2); border-right: 0; border-radius: 12px 0 0 12px; background: #f1eee7; font-size: 16px; color: var(--dark); white-space: nowrap; }
.phone-row .dial:not([hidden]) + input { border-radius: 0 12px 12px 0; }
/* Desktop: larger product image under the name bar (wider image column, less empty space above and below). */
@media (min-width: 761px) {
  body[data-step="items"] .slide { grid-template-columns: 1.7fr 1fr; padding-top: calc(clamp(60px, 8vw, 128px) + 56px); padding-bottom: 24px; }
  .slide-object { margin-top: 0; }
}
/* Desktop: name bar lower (below the logo and cart row) and larger. */
@media (min-width: 761px) {
  .title-bar { font-size: clamp(72px, 10vw, 168px); top: calc(76px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: calc(clamp(72px, 10vw, 168px) + 100px); }
}
/* Fynd star between the names in the heading bar. */
.title-strip { gap: 0.16em; align-items: center; }
.title-star {
  flex: none; width: 0.17em; height: 0.17em; background: var(--ink); opacity: 0.35;
  -webkit-mask: url(/assets/print/hoodie-star.png) center / contain no-repeat; mask: url(/assets/print/hoodie-star.png) center / contain no-repeat;
}
.title-star { width: 0.22em; height: 0.22em; }
@media (min-width: 761px) {
  .title-bar { top: calc(112px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: calc(clamp(72px, 10vw, 168px) + 136px); }
}
@media (min-width: 761px) {
  .title-bar { top: calc(56px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: calc(clamp(72px, 10vw, 168px) + 84px); }
}
.title-star { opacity: 0.14; }
/* Desktop: the image starts right under the name bar, also when the column width limits it (tall windows). */
@media (min-width: 761px) {
  .slide-object .slide-main { align-self: start; }
  .slide-object .views { top: 2cqmin; }
}
/* Desktop: image column as wide as the (square) image, image and text centred as one group with an even gap. */
@media (min-width: 761px) {
  body[data-step="items"] .slide {
    grid-template-columns: minmax(0, min(calc(100dvh - clamp(72px, 10vw, 168px) - 108px), 56vw)) minmax(0, 400px);
    justify-content: center; column-gap: clamp(40px, 6vw, 112px);
  }
}

#delivery.is-error { color: #a3261b; font-weight: 500; }
/* Desktop: the image box is square (as big as the space allows), and the text is centred against it, not against the page. */
@media (min-width: 761px) {
  body[data-step="items"] .slide { --img: min(calc(100dvh - clamp(72px, 10vw, 168px) - 108px), 56vw); grid-template-columns: minmax(0, var(--img)) minmax(0, 400px); align-content: start; align-items: center; }
  .slide-object { height: var(--img); align-self: start; }
}
@media (min-width: 761px) { body[data-step="items"] .slide { align-content: center; } }
@media (min-width: 761px) { .slide-object { height: auto; width: 100%; aspect-ratio: 1 / 1; } }

/* Window-size fixes for the gift picker. */
/* Desktop: name bar 8px lower so the cart pill does not touch it. The product starts a fixed gap under the name bar
   (spare height goes to the bottom). The image takes all the width the text column (min 360px) leaves, up to its own size (1000px). */
@media (min-width: 761px) {
  .title-bar { top: calc(64px + env(safe-area-inset-top, 0px)); }
  #step-items, body[data-step="items"] .slide {
    --pad-top: calc(clamp(72px, 10vw, 168px) + 92px);
    --img: min(calc(100dvh - var(--pad-top) - 24px), calc(100vw - 2 * clamp(20px, 6vw, 96px) - clamp(40px, 6vw, 112px) - 360px), 1000px);
  }
  body[data-step="items"] .slide { grid-template-columns: var(--img) minmax(0, 400px); padding-top: var(--pad-top); align-content: start; }
  body[data-step="items"] .arrow { top: calc(var(--pad-top) + var(--img) / 2); margin-top: -22px; }
}
/* Very large screens: text, logo and cart scale up with the image. */
@media (min-width: 2200px) and (min-height: 1200px) and (orientation: landscape) {
  #step-items, body[data-step="items"] .slide { --pad-top: calc(clamp(72px, 10vw, 168px) + 116px); }
  body[data-step="items"] .slide { grid-template-columns: minmax(0, var(--img)) minmax(0, 520px); }
  body[data-step="items"] .slide-info, body[data-step="items"] .bar .mark, .cart { zoom: 1.3; }
  .title-bar { top: calc(88px + env(safe-area-inset-top, 0px)); }
}
/* Portrait tablets: image on top, text under it, both centred. Arrows at the image's middle. */
@media (min-width: 761px) and (orientation: portrait) {
  #step-items, body[data-step="items"] .slide {
    --pad-top: calc(clamp(72px, 10vw, 168px) + 92px);
    --img: min(calc(100vw - 2 * clamp(48px, 8vw, 96px)), calc(100dvh - var(--pad-top) - 430px), 720px);
  }
  body[data-step="items"] .slide {
    grid-template-columns: minmax(0, var(--img)); grid-template-rows: auto auto;
    justify-content: center; align-content: start; row-gap: clamp(24px, 3vh, 40px);
    padding: var(--pad-top) 24px 24px;
  }
  body[data-step="items"] .slide-info { max-width: none; width: 100%; }
  body[data-step="items"] .arrow { top: calc(var(--pad-top) + var(--img) / 2); margin-top: -22px; }
}
/* Phones: 8 colour swatches and 5 sizes fit on one row, also at 320px. */
.sizes .swatch-row > label > span.swatch { width: var(--sw, 36px); height: var(--sw, 36px); }
@media (max-width: 760px) {
  .sizes .swatch-row { --gap: min(10px, 2.2vw); --sw: min(34px, calc((100vw - 40px - 7 * var(--gap)) / 8)); gap: var(--gap); }
  .sizes [data-sizes] label > span { min-width: 48px; padding: 0 12px; }
}
/* Short phones (portrait): smaller name bar and tighter text, so the image keeps a good size. */
@media (max-width: 760px) and (max-height: 700px) and (orientation: portrait) {
  body[data-step="items"] nav.title-bar { font-size: 44px; top: calc(40px + env(safe-area-inset-top, 0px)); }
  body[data-step="items"] .slide { padding-top: 100px; padding-bottom: 12px; }
  .slide-object:has(.views) { gap: 8px; }
  .views .view { width: 40px; height: 40px; }
  .sizes, .one-size { margin-top: 10px; }
  .sizes legend { margin-bottom: 6px; }
  .add { margin-top: 12px; }
}
/* Short landscape windows (phones on their side): one header row (logo, name bar, cart), image and text side by side. */
@media (orientation: landscape) and (max-height: 560px) {
  #step-items, body[data-step="items"] .slide { --top: 72px; --img: min(calc(100dvh - var(--top) - 16px), 46vw); }
  body[data-step="items"] .bar .mark { top: calc(20px + env(safe-area-inset-top, 0px)); left: clamp(16px, 4vw, 48px); transform: none; height: auto; }
  .cart { top: calc(14px + env(safe-area-inset-top, 0px)); right: clamp(12px, 4vw, 48px); }
  body[data-step="items"] nav.title-bar { top: calc(10px + env(safe-area-inset-top, 0px)); left: clamp(140px, 23vw, 300px); right: clamp(140px, 23vw, 300px); font-size: 44px; }
  body[data-step="items"] .slide {
    grid-template-columns: minmax(0, var(--img)) minmax(0, 400px); grid-template-rows: auto;
    justify-content: center; align-content: safe center; align-items: center; gap: 0 clamp(24px, 4vw, 56px);
    padding: var(--top) clamp(16px, 4vw, 48px) 16px; overflow-y: auto;
  }
  .slide-object { margin-top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; align-self: center; }
  .slide-object:has(.views) { container-type: size; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; }
  .slide-object:has(.views) .slide-main { grid-column: 1; grid-row: 1; }
  .slide-object .views { grid-area: 1 / 1; position: absolute; z-index: 2; top: 2cqmin; left: max(0px, calc(50cqw - min(100cqw, 100cqh) / 2 + 2cqmin)); transform: none; flex-direction: column; gap: 8px; }
  .views .view { width: 44px; height: 44px; border-radius: 10px; }
  .slide-info { max-width: none; align-self: center; }
  .slide-info .lede { font-size: 14px; line-height: 1.45; margin-top: 0; }
  .sizes, .one-size { margin-top: 12px; }
  .sizes legend { margin-bottom: 6px; }
  .sizes .swatch-row { --sw: 30px; gap: 8px; }
  .sizes [data-sizes] label > span { min-width: 48px; height: 40px; padding: 0 12px; }
  .add { margin-top: 14px; max-width: 320px; }
  .add-note { display: none; }
  body[data-step="items"] .arrow { top: calc(var(--top) + (100dvh - var(--top) - 16px) / 2); margin-top: -22px; }
}
@media (orientation: landscape) and (max-height: 560px) and (min-width: 761px) {
  body[data-step="items"] .slide { padding-inline: 72px; }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 760px) {
  body[data-step="items"] .arrow { display: none; }
}
/* Size guide on phones: row labels wrap and cells are tighter, so all sizes fit. */
@media (max-width: 560px) {
  .size-guide-box { padding: 16px 14px 14px; }
  .size-guide table { font-size: 12px; }
  .size-guide th, .size-guide td { padding: 8px 5px; }
  .size-guide tbody th { white-space: normal; min-width: 6em; padding-left: 0; }
  .size-guide thead th:first-child { padding-left: 0; }
}
#delivery:not(.is-error) { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #e6efe9; color: #0d2a1f; }
#delivery[hidden] { display: none; }
#delivery .delivery-icon { flex: none; color: #1d6b45; }
#delivery .delivery-text { display: flex; flex-direction: column; gap: 2px; }
#delivery .delivery-label { font-size: 13px; color: #3c5a4b; }
#delivery strong { font-size: 16px; font-weight: 600; color: #0d2a1f; }
.phone-row .dial { position: relative; gap: 6px; cursor: pointer; }
.phone-row .dial:hover { background: #e9e5db; }
.phone-row .dial:focus-within { outline: 2px solid var(--dark); outline-offset: -2px; }
.phone-row .dial svg { color: #555; }
.phone-row .dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
/* Desktop: side padding always clears the arrows (arrow inset + 44px button + 20px gap), so text never touches them. */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 561px) {
  #step-items, body[data-step="items"] .slide {
    --side: max(clamp(20px, 6vw, 96px), calc(clamp(12px, 2vw, 28px) + 64px));
    --img: min(calc(100dvh - var(--pad-top) - 24px), calc(100vw - 2 * var(--side) - clamp(40px, 6vw, 112px) - 360px), 1000px);
  }
  body[data-step="items"] .slide { padding-inline: var(--side); }
}
/* Desktop: the view thumbnails sit outside the image, on its left, when they fit between the image and the carousel arrow; else inside. */
@media (min-width: 761px) and (min-height: 561px) {
  .slide-object .views {
    --room: calc((100vw - var(--img) - clamp(40px, 6vw, 112px) - 400px) / 2);
    left: calc(max(0px, calc(50cqw - min(100cqw, 100cqh) / 2)) + 2cqmin - clamp(0px, (var(--room) - 152px) * 1000, 72px + 2cqmin));
    top: calc(2cqmin - clamp(0px, (var(--room) - 152px) * 1000, 2cqmin));
  }
}
/* Lightbox: biggest square the window allows (up to 1250px), thin chrome around it. */
.lightbox-stage { inset: 12px 72px 92px; container-type: size; }
dialog.lightbox.is-single .lightbox-stage { bottom: 12px; }
.lightbox-img, dialog.lightbox.is-single .lightbox-img { width: min(100cqw, 100cqh, 1250px); height: min(100cqw, 100cqh, 1250px); max-width: none; max-height: none; }
.lightbox-thumbs { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox-thumb { width: 56px; height: 56px; }
@media (max-width: 760px) {
  .lightbox-stage { inset: 60px 0 calc(84px + env(safe-area-inset-bottom, 0px)); }
  dialog.lightbox.is-single .lightbox-stage { bottom: 16px; }
  .lightbox-thumb { width: 52px; height: 52px; }
  .lightbox-thumbs { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lightbox-img.is-detail { border-radius: 0; }
}
@media (max-height: 500px) {
  .lightbox-stage, dialog.lightbox.is-single .lightbox-stage { inset: 8px 72px 8px 144px; }
  dialog.lightbox.is-single .lightbox-stage { left: 72px; }
  .lightbox-thumbs { left: 72px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; }
  .lightbox-thumb { width: 48px; height: 48px; }
  .lightbox-arrow { display: grid; top: 50%; bottom: auto; transform: translateY(-50%); width: 44px; height: 44px; }
  dialog.lightbox.is-single .lightbox-arrow { display: none; }
}
/* Phone code picker: a button with the flag and code; it opens a search with the country list. */
.phone-row .dial-wrap { position: relative; display: flex; flex: none; }
.phone-row .dial-wrap:not([hidden]) + input { border-radius: 0 12px 12px 0; }
.phone-row .dial { font: inherit; font-size: 16px; line-height: 1; }
.phone-row .dial:focus-visible { outline: 2px solid var(--dark); outline-offset: -2px; }
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 18px; line-height: 1; }
.dial-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(320px, calc(100vw - 40px)); padding: 6px; background: #fff; border: 1px solid rgba(23, 22, 20, 0.15); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 22, 20, 0.12); }
.dial-pop input { width: 100%; box-sizing: border-box; }
.dial-pop .combo-list { position: static; max-height: 264px; margin-top: 6px; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.dial-pop .combo-list li[data-code] { display: flex; align-items: center; gap: 10px; }
.dial-pop .dial-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-pop .dial-code { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* Desktop: detail photos fill the same square as the front image, so the view thumbnails keep one even inset inside both. */
@media (min-width: 761px) and (min-height: 561px) {
  .slide-object .slide-main.is-detail { max-height: 100%; }
}
/* Country field: the flag of the picked country inside the field, and a flag on each option. */
.combo-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.combo:has(.combo-flag:not(:empty)) input { padding-left: 44px; }
#country-list li[data-code] { display: flex; align-items: center; gap: 10px; }
