/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden='until-found' i]) {
    display: none !important;
  }
  dialog:not([open]) {
    display: none !important;
  }

  :where(
      .od-stack,
      .od-row,
      .od-row-top,
      .od-cluster,
      .od-grid,
      .od-field,
      .od-stat,
      .od-cell,
      .od-tile
    )
    > :where(*) {
    min-width: 0;
  }

  /* containers */
  .od-stack {
    display: flex;
    flex-direction: column;
    gap: var(--od-gap, 8px);
  }
  .od-row {
    display: flex;
    align-items: center;
    gap: var(--od-gap, 8px);
  }
  .od-row-top {
    display: flex;
    align-items: flex-start;
    gap: var(--od-gap, 8px);
  }
  .od-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--od-gap, 8px);
  }
  .od-fill {
    flex: 1 1 0;
    min-width: 0;
  }
  .od-fixed {
    flex: none;
  }
  .od-grid {
    display: grid;
    gap: var(--od-gap, 12px);
    grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr));
  }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat,
  .od-field,
  .od-cell {
    display: grid;
    gap: var(--od-gap, 2px);
  }
  :where(.od-stat, .od-field, .od-cell) > :where(*) {
    display: block;
  }
  .od-tile {
    display: grid;
    grid-template-rows: auto 1fr;
  }
  :where(.od-tile) > :where(*) {
    display: block;
  }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--od-ratio, auto);
  }
  .od-media-cover {
    object-fit: cover;
  }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon {
    display: inline-block;
    inline-size: var(--od-icon-size, 1em);
    block-size: var(--od-icon-size, 1em);
    flex: none;
  }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .od-clamp-2,
  .od-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .od-clamp-2 {
    -webkit-line-clamp: 2;
  }
  .od-clamp-3 {
    -webkit-line-clamp: 3;
  }
  .od-lines-2 {
    min-height: calc(2 * 1.4em);
  } /* block-level reservation for a shared baseline */
  .od-nowrap {
    white-space: nowrap;
  } /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep {
    word-break: keep-all;
    overflow-wrap: anywhere;
  } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
  }
  .od-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
  }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail {
    display: flex;
    gap: var(--od-gap, 8px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-inline: var(--od-rail-pad, 16px);
    scroll-padding-inline: var(--od-rail-pad, 16px);
  }
  .od-rail::-webkit-scrollbar {
    display: none;
  }
  :where(.od-rail) > :where(*) {
    flex: none;
    scroll-snap-align: start;
  }
  :where(.od-rail) > :where(:last-child) {
    margin-inline-end: var(--od-rail-pad, 16px);
  }

  .od-spacer {
    flex: none;
    visibility: hidden;
    pointer-events: none;
  }
  .od-touch {
    min-width: 44px;
    min-height: 44px;
  }
}
:root [hidden]:where(:not([hidden='until-found' i])) {
  display: none;
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* Native hidden remains authoritative over component flex/grid styles. */
[hidden]:not([hidden='until-found' i]) {
  display: none !important;
}

:root {
  color-scheme: dark;
  --paper: #181f25;
  --surface: #222c32;
  --ink: #f7ecd9;
  --quiet: #c1c7bb;
  --line: #465351;
  --pine: #a9d0b6;
  --pine-deep: #c2dec9;
  --on-pine: #172d24;
  --berry: #f2a4b4;
  --berry-bg: #442a37;
  --gold: #e5bf7c;
  --tag: #edcf97;
  --tag-ink: #203d31;
  --tag-line: #a77b43;
  --tag-cord: #c46e7a;
  --tint: #273a34;
  --stage: #272d34;
  --soft-gold: #f0d091;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: 24px;
  --radius: 12px;
  --movement: 340ms;
}
body {
  font: 400 16px/1.5 var(--body);
  background: var(--stage);
  color: var(--ink);
}
.app {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  isolation: isolate;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
}
:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}
#page-title:focus {
  outline: none;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.043em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(34px, 10vw, 46px);
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
}
small,
.small {
  font-size: 14px;
  line-height: 1.45;
}
.muted {
  color: var(--quiet);
}
.od-icon {
  --od-icon-size: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top {
  min-height: 56px;
  padding: 4px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: 'back brand tools';
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 720;
}
.brand .od-icon {
  --od-icon-size: 17px;
  color: var(--berry);
}
.top-end {
  grid-area: tools;
  justify-self: end;
  display: flex;
}
.top-end > .icon-btn {
  min-width: 36px;
  width: 36px;
  padding: 0;
}
.icon-btn,
.back {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
#snow-toggle[aria-pressed='false'] .od-icon {
  opacity: 0.6;
}
.back {
  grid-area: back;
  justify-self: start;
  gap: 2px;
  font-size: 14px;
  font-weight: 650;
  padding: 0 4px;
}
.back .od-icon {
  --od-icon-size: 17px;
}
.page {
  position: relative;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-padding-block: 24px;
  padding: 24px var(--gutter) 32px;
}
.page::-webkit-scrollbar {
  display: none;
}
.page > :first-child {
  margin-top: 0;
}
.heading {
  margin-bottom: 20px;
}
.heading .meta {
  margin-top: 16px;
}
.intro {
  margin: 12px 0 24px;
  color: var(--quiet);
}
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--berry);
  line-height: 1.45;
}
.actions {
  display: grid;
  gap: 8px;
}
.btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--pine);
  font-weight: 720;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.btn.primary {
  background: var(--pine);
  color: var(--on-pine);
}
.btn.primary:disabled {
  background: var(--tint);
  color: var(--quiet);
}
.btn.outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--pine);
}
.btn.text {
  color: var(--pine);
}
.btn .od-icon {
  --od-icon-size: 18px;
}
@media (hover: hover) {
  .btn.outline:hover,
  .icon-btn:hover,
  .back:hover,
  .game-row:hover,
  .btn.text:hover,
  .choice:hover {
    background: var(--tint);
  }
  .btn.primary:not(:disabled):hover {
    background: var(--pine-deep);
    color: var(--on-pine);
  }
  .create-hero:hover {
    background: #235244;
  }
}
.home-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.game-total {
  font-size: 13px;
  font-weight: 650;
  color: var(--quiet);
  white-space: nowrap;
}
.winter {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #1a4336;
  color: #fff4d8;
}
.create-hero {
  width: 100%;
  min-height: 150px;
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #243d35;
  color: #fff4d8;
  border-radius: 16px;
}
.create-label {
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 12px;
}
.create-label strong {
  font: 400 28px/1 var(--display);
  letter-spacing: -0.04em;
}
.create-label .round {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2dfb7;
  color: #214538;
}
.round .od-icon {
  --od-icon-size: 19px;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-tag {
  --hole-y: 14px;
  position: absolute;
  right: 26px;
  top: 34px;
  width: 100px;
  height: 104px;
  display: grid;
  place-items: center;
  padding-top: 16px;
  color: var(--tag-ink);
  transform: rotate(-14deg);
}
.hero-tag-paper {
  position: absolute;
  inset: 0;
  background: var(--tag);
  clip-path: polygon(19% 0, 81% 0, 100% 19px, 100% 100%, 0 100%, 0 19px);
  mask-image: radial-gradient(circle at 50% var(--hole-y), transparent 4px, #000 5px);
}
.hero-tag-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tag-line);
  clip-path: path(evenodd, 'M23 8H77L92 23V96H8V23Z M23.4 9H76.6L91 23.4V95H9V23.4Z');
}
.hero-tag-eye {
  position: absolute;
  left: 50%;
  top: var(--hole-y);
  width: 11px;
  height: 11px;
  border: 1px solid var(--tag-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.tag-loop {
  --loop-anchor-x: 23px;
  --loop-anchor-y: 48px;
  position: absolute;
  width: 46px;
  height: 52px;
  background: var(--tag-cord);
  clip-path: path(
    'M21 49C9 43 2 32 2 20C2 8 11 2 22 2C34 2 44 11 44 23C44 33 37 44 24 50Q21 51 22 46C33 41 40 32 40 23C40 13 32 6 22 6C13 6 6 11 6 20C6 30 12 40 23 46Z'
  );
}
.hero-loop {
  left: calc(50% - var(--loop-anchor-x));
  top: calc(var(--hole-y) - var(--loop-anchor-y));
}
.tag-loop.front {
  clip-path: path('M44 23C44 33 37 44 24 50Q21 51 22 46C33 41 40 32 40 23Z');
}
.hero-tag .od-icon {
  position: relative;
  --od-icon-size: 43px;
  stroke-width: 1.35;
}
.tag-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--soft-gold);
}
.tag-snowflake {
  position: absolute;
  left: var(--x);
  top: var(--y);
  opacity: var(--flake-opacity);
  transform: translate(-50%, -50%) perspective(100px) rotateZ(var(--angle)) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
}
.tag-snowflake .od-icon {
  --od-icon-size: var(--flake-size);
  display: block;
  stroke-width: 1.75;
}
.ambient-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  transition: opacity 180ms ease-out;
}
.ambient-snow i {
  position: absolute;
  display: block;
  left: var(--x);
  top: 0;
  width: var(--snow-size);
  height: 100%;
  opacity: var(--flake-opacity);
  animation: ambient-fall var(--fall) var(--delay) linear infinite;
}
.ambient-snow i::before {
  content: '';
  display: block;
  width: 100%;
  height: var(--snow-size);
  border-radius: 50%;
  background: #dcecf2;
}
.app[data-snow='off'] .ambient-snow {
  display: none;
}
.app:has(.form input:focus) .ambient-snow {
  opacity: 0.3;
}
.app:has(.form input:focus) .ambient-snow i {
  animation-play-state: paused;
}
@keyframes ambient-fall {
  0% {
    transform: translate(0, -4%);
    opacity: 0;
  }
  14%,
  84% {
    opacity: var(--flake-opacity);
  }
  100% {
    transform: translate(var(--drift), 104%);
    opacity: 0;
  }
}
.home-actions {
  margin-bottom: 24px;
}
.game-list,
.people,
.wish-list,
.result-list,
.steps {
  list-style: none;
  padding: 0;
}
.game-list {
  border-top: 1px solid var(--line);
}
.game-row {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--pine);
  background: var(--tint);
}
.tile-icon.alt {
  color: var(--berry);
  background: var(--berry-bg);
}
.tile-icon .od-icon {
  --od-icon-size: 19px;
}
.game-name {
  font-weight: 740;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.game-state {
  color: var(--pine);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
  margin-top: 3px;
}
.row-meta {
  color: var(--quiet);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.empty {
  text-align: center;
  padding: 35px 12px;
  color: var(--quiet);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.home-footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.home-footer .btn {
  font-size: 14px;
}
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  gap: 8px;
}
.meta-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.meta-item + .meta-item {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.meta-item .od-icon {
  color: var(--gold);
  --od-icon-size: 19px;
}
.meta-item strong {
  font-size: 16px;
  line-height: 1.25;
}
.meta-item small {
  font-size: 12px;
  color: var(--quiet);
  line-height: 1.35;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pine);
  font-size: 14px;
  font-weight: 750;
  margin: 14px 0 0;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.status.complete {
  color: var(--berry);
}
.section {
  margin-top: 22px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.section-head small {
  color: var(--quiet);
  white-space: nowrap;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--pine);
  font-size: 13px;
  font-weight: 760;
}
.person:nth-child(3n + 2) .avatar {
  background: var(--berry-bg);
  color: var(--berry);
}
.person:nth-child(3n) .avatar {
  background: var(--surface);
  color: var(--gold);
  border: 1px solid var(--line);
}
.person-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 630;
  line-height: 1.35;
}
.person small {
  color: var(--quiet);
  font-size: 12px;
}
.remark {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 14px;
}
.game-actions {
  margin-top: 20px;
}
.invite-tag {
  margin-top: 16px;
}
.inline-invite {
  margin-top: 8px;
}
.game-tag {
  --tag-hole-x: 16px;
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 25px 20px 20px 40px;
  color: #fff3d4;
  min-height: 114px;
  display: grid;
  align-content: center;
  justify-items: start;
}
.game-tag-loop {
  left: calc(var(--tag-hole-x) - var(--loop-anchor-x));
  top: calc(50% - var(--loop-anchor-y));
  transform-origin: var(--loop-anchor-x) var(--loop-anchor-y);
  transform: rotate(-90deg) scale(0.68);
  pointer-events: none;
}
.game-tag-paper {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #244739;
  mask-image: radial-gradient(circle at var(--tag-hole-x) 50%, transparent 5px, #000 6px);
  pointer-events: none;
}
.game-tag-eye {
  position: absolute;
  top: 50%;
  left: var(--tag-hole-x);
  width: 14px;
  height: 14px;
  border: 2px solid var(--soft-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.game-tag .kicker {
  color: #f2cc89;
  font-family: var(--body);
  letter-spacing: 0.11em;
  z-index: 1;
}
.game-tag-value {
  font: 400 clamp(38px, 11vw, 50px)/1.07 var(--display);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  z-index: 1;
}
.code-tag {
  --copy-gap: clamp(8px, 2.5vw, 12px);
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: var(--copy-gap);
  padding-inline: 34px 12px;
  background: transparent;
  border-radius: 16px;
  text-align: left;
}
.code-tag > .kicker {
  grid-column: 1 / -1;
  position: relative;
}
.code-tag .game-tag-value {
  font: 750 clamp(24px, 7vw, 30px)/1.15 var(--body);
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
}
.code-copy-action {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-height: 44px;
  padding-inline-start: var(--copy-gap);
  border-inline-start: 1px solid #6b8d7a;
  color: #e0ede2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.code-copy-action .od-icon {
  --od-icon-size: 18px;
}
@media (hover: hover) {
  .code-tag:hover .game-tag-paper {
    background: #2b5142;
  }
}
.game-tag.first {
  animation: tag-in var(--movement) ease-out both;
}
.game-tag.first .game-tag-loop {
  animation: ribbon-in var(--movement) ease-out both;
}
@keyframes tag-in {
  from {
    transform: translateY(7px);
    opacity: 0.28;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes ribbon-in {
  from {
    transform: rotate(-94deg) scale(0.68);
  }
}
.result-wishes {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.result-list {
  margin-top: 6px;
}
.result-list li {
  position: relative;
  padding-left: 17px;
  overflow-wrap: anywhere;
}
.result-list li + li {
  margin-top: 4px;
}
.result-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.form {
  display: grid;
  gap: 20px;
}
.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label,
.form legend {
  font-size: 15px;
  font-weight: 730;
}
.form legend {
  margin-bottom: 8px;
  padding: 0;
}
.field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.field input::placeholder {
  color: var(--quiet);
}
.field input[aria-invalid='true'] {
  border-color: var(--berry);
}
.field input[type='date'] {
  display: block;
  appearance: none;
}
.helper {
  font-size: 13px;
  color: var(--quiet);
  line-height: 1.45;
}
.error {
  color: var(--berry);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  min-height: 44px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.choice:has(input:checked) {
  background: var(--tint);
  border-color: var(--pine);
  color: var(--pine);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}
.visually-hidden,
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
  border: 0;
}
.custom {
  margin-top: 10px;
}
.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-weight: 730;
  gap: 8px;
  border-block: 1px solid var(--line);
  cursor: pointer;
}
.switch {
  appearance: none;
  width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  margin: 0;
  position: relative;
  flex: none;
  cursor: pointer;
}
.switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--quiet);
  transition: transform 180ms ease-out;
}
.switch:checked {
  background: var(--pine);
  border-color: var(--pine);
}
.switch:checked::after {
  transform: translateX(20px);
  background: var(--on-pine);
}
.person-form {
  display: grid;
  gap: 20px;
}
.wish-editor {
  min-width: 0;
}
.wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.wish-head small {
  color: var(--quiet);
  white-space: nowrap;
}
.wish-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  min-height: 44px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.wish-list li span {
  min-width: 0;
}
.wish-list .icon-btn {
  color: var(--berry);
}
.wish-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.wish-add input:focus {
  border-color: var(--berry);
  outline: none;
}
.wish-add .btn {
  min-height: 48px;
}
.confirm {
  width: min(352px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 20px 64px #171e2580;
}
.confirm::backdrop {
  background: #14231fd0;
}
.confirm .actions {
  margin-top: 16px;
}
.confirm p {
  margin-top: 10px;
}
.confirm .people {
  margin-top: 8px;
}
.invite-link {
  overflow-wrap: anywhere;
}
.steps {
  display: grid;
  gap: 17px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--pine);
  font-weight: 730;
  font-size: 14px;
}
.steps h3 {
  margin-bottom: 3px;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.visually-hidden:empty {
  display: none;
}
@media (max-width: 375px) {
  :root {
    --gutter: 20px;
  }
  .hero-tag {
    right: 20px;
  }
  .create-label strong {
    font-size: 26px;
  }
  .top {
    padding-inline: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ambient-snow i {
    top: var(--y);
    height: 0;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.phone-content {
  height: var(--app-height, 100dvh);
  max-width: 520px;
  margin-inline: auto;
  background: var(--paper);
  padding-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom, 0px));
}
.demo {
  margin-top: 24px;
  color: var(--quiet);
  font-size: 13px;
}
.demo select {
  margin-inline-start: 8px;
  padding: 6px;
  border-radius: 6px;
}
