/* Тайный Санта: app layer on top of tokens.css + components.css. Tokens only. */

/* header: the wordmark is the app name with a gift icon instead of the brand mark */
.app-wordmark::before { display: none; }
.app-wordmark .ico { color: var(--accent-deep); }
.header-inner { display: flex; align-items: center; height: var(--header-height); }

/* hero: edge to edge field, compact for app screens; a warm rose spot for the season */
.app-hero { min-height: auto; place-items: end start; background:
  radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--field-rose-spot) 26%, transparent), transparent 32%),
  radial-gradient(circle at 10% 92%, var(--accent-soft), transparent 36%),
  repeating-linear-gradient(115deg, transparent 0 46px, color-mix(in srgb, var(--ink) 4%, transparent) 46px 47px),
  var(--surface-2); }
.app-hero-content { width: var(--shell); margin-inline: auto; justify-items: start; text-align: left; padding-block: clamp(56px, 8vw, 112px) clamp(44px, 6vw, 80px); }
.app-hero-content .lead { margin-top: 22px; }
.app-display { font-size: clamp(44px, 6.4vw, 96px); font-weight: 600; letter-spacing: var(--tr-display); line-height: 0.98; overflow-wrap: anywhere; margin-top: 14px; }
.reveal-hero { min-height: min(760px, 88svh); place-items: center start; }
.reveal-hero .you { margin-top: 24px; color: var(--ink); font-weight: 600; }
.recipient { font-size: clamp(56px, 11vw, 150px); color: var(--ink); }
@media (max-width: 760px) {
  .hero.app-hero .display { font-size: clamp(38px, 11vw, 48px); }
  .hero.app-hero .display.recipient { font-size: clamp(48px, 15vw, 72px); }
}

/* flash */
.flash { margin-top: 28px; padding: 14px 0 14px 16px; border-left: 3px solid var(--ink); font-weight: 600; }

/* forms */
.form-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.field-label { display: block; color: var(--muted); font-size: var(--fs-micro); font-weight: 800; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; margin-top: 10px; }
.input { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; font-size: 17px; transition: border-color 160ms ease; }
.input::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.input-l { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; counter-reset: nm; }
.name-grid li { position: relative; counter-increment: nm; }
.name-grid li::before { content: counter(nm, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.name-grid .input { padding-left: 30px; }
@media (max-width: 560px) { .name-grid { grid-template-columns: 1fr; } }
.text-btn { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-deep); font-weight: 700; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; color: var(--muted-strong); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-col .actions { margin-top: 12px; }
.add-row { display: flex; gap: 14px; align-items: end; }
.add-row .input { flex: 1; min-width: 0; }
.add-form { margin-top: 18px; }
.narrow { max-width: 720px; }
.note { margin-top: 14px; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 560px) { .add-row { flex-direction: column; align-items: stretch; } }

/* players list: hairline rows */
.players > li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.players .input { border-bottom: 0; flex: 1; min-width: 0; }
.players .input:focus { box-shadow: none; }
.players > li:focus-within { border-bottom-color: var(--accent); }
.tag { flex: none; color: var(--muted); font-size: var(--fs-micro); font-weight: 700; }
.icon-btn { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* links: hairline rows, name, url, copy */
.list-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.link-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--line-strong); }
.links .link-row:first-child { border-top: 1px solid var(--line-strong); }
.link-row-plain { border: 0; padding-block: 0; }
.link-main { display: grid; gap: 2px; min-width: 0; }
.link-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.link-url { color: var(--muted); font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn .ico { flex: none; }
.copy-btn.is-copied { color: var(--accent-deep); }
.button-accent.copy-btn.is-copied { color: var(--accent-ink); }

/* status line */
.status { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.status-off .dot { background: var(--muted); }

.steps-title { margin-bottom: 36px; }
.brief .h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: var(--tr-h2); line-height: 1; }
.split .h2 { overflow-wrap: anywhere; }

.app-footer { padding-block: 36px; background: color-mix(in srgb, var(--surface-2) 58%, var(--bg)); }
