/*
 * /invite and /r/{code} (2026-11-05). Plain CSS outside the Vite build, on the
 * v2 tokens from home.css (keyed on html.dark). The look follows the Aura
 * canvas: one column, cards of rows, gold for the thing to press.
 */
.iv { font-family: var(--hv2-font); color: var(--text); padding: 20px 16px 48px; }
.iv *, .iv *::before, .iv *::after { box-sizing: border-box; }
.iv-col { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.iv-head h1 { margin: 0; font: 800 clamp(28px, 4.6vw, 36px)/1.06 var(--hv2-display); letter-spacing: -.025em; }
.iv-head h1 em { font-style: normal; color: var(--gold); }
.iv-head p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text-muted); }
.iv-head p b { color: var(--text); font-weight: 700; }

.iv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 16px; box-shadow: var(--shadow); }
.iv-label { font: 800 12px/1 var(--hv2-font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* the three steps */
.iv-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 6px; text-align: center; }
.iv-step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.iv-step__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); }
.iv-step__ico svg { width: 22px; height: 22px; }
.iv-step.is-gold .iv-step__ico { background: linear-gradient(180deg, #FFE48A 0%, #F3C851 60%, #D9A72E 100%); color: #1A1206; }
.iv-step.is-gold span:last-child { color: var(--gold); }
.iv-step__arrow { margin-top: 15px; color: var(--text-faint); }
.iv-step__arrow svg { width: 16px; height: 16px; }

/* code card */
.iv-code { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.iv-code__value {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 66px; border-radius: 14px;
    border: 1.5px dashed var(--code-border); background: var(--code-bg); color: var(--code);
    font: 700 30px/1 var(--hv2-mono); letter-spacing: .14em;
}
.iv-code__row { display: flex; gap: 10px; width: 100%; }
.iv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px;
    border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text) !important;
    font: 700 15px var(--hv2-font); text-decoration: none !important; cursor: pointer; flex: 1;
    transition: transform .15s var(--hv2-ease), box-shadow .2s;
}
.iv-btn svg { width: 18px; height: 18px; flex: none; }
.iv-btn:active { transform: translateY(1px); }
.iv-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.iv-btn.is-gold {
    flex: 1.5; border: 0; border-bottom: 3px solid #A87A14; color: #1A1206 !important;
    background: linear-gradient(180deg, #FFE48A 0%, #F3C851 60%, #D9A72E 100%);
    box-shadow: 0 6px 18px rgba(243, 200, 81, .32), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.iv-btn.is-done { color: var(--ok) !important; border-color: var(--ok-edge); background: var(--ok-soft); }
.iv-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.iv-link { width: 100%; font: 500 13px var(--hv2-mono); color: var(--text-faint); text-align: center; overflow-wrap: anywhere; }

/* your invites */
.iv-list { padding: 6px 16px; }
.iv-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0 8px; }
.iv-list__head span:last-child { font-size: 13px; color: var(--text-faint); }
.iv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.iv-row__av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: 15px; flex: none; }
.iv-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.iv-row__name { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-row__line { font-size: 13px; color: var(--text-muted); }
.iv-row__bar { height: 4px; width: 120px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.iv-row__bar span { display: block; height: 100%; background: var(--gold-fill); border-radius: 2px; }
.iv-row__val { font: 800 14.5px var(--hv2-font); white-space: nowrap; }
.iv-row__val.is-ok { color: var(--ok); }
.iv-row__val.is-wait { color: var(--gold); }
.iv-row__val.is-off { color: var(--text-faint); font-weight: 600; }
.iv-empty { padding: 4px 0 14px; font-size: 14px; color: var(--text-muted); }

/* typing a friend's code */
.iv-claim { background: var(--gold-soft); border-color: var(--gold-edge); }
.iv-claim h2 { margin: 0; font: 700 16.5px/1.3 var(--hv2-font); }
.iv-claim p { margin: 3px 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.iv-claim form { display: flex; gap: 10px; }
.iv-claim input {
    flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); padding: 0 14px;
    font: 700 16px var(--hv2-mono); letter-spacing: .12em; text-transform: uppercase;
}
.iv-claim input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.iv-claim .iv-btn { flex: none; }
.iv-flash { border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.iv-flash.is-ok { background: var(--ok-soft); color: var(--ok); }
.iv-flash.is-err { background: var(--heat-hot-bg); color: var(--heat-hot); }

/* the landing page a friend opens */
.iv-hero { text-align: center; padding: 18px 8px 4px; }
.iv-hero__badge { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; margin-bottom: 14px;
    background: linear-gradient(180deg, #FFE48A 0%, #F3C851 60%, #D9A72E 100%); color: #1A1206; box-shadow: 0 10px 28px rgba(243, 200, 81, .35); }
.iv-hero__badge svg { width: 34px; height: 34px; }
.iv-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.iv-stores .iv-btn { min-width: 150px; }
.iv-or { margin: 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.iv-or a { color: var(--text); font-weight: 700; }

@media (max-width: 380px) {
    .iv-code__value { font-size: 25px; }
    .iv-step { font-size: 12.5px; }
}
.iv .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* /giveaway (2026-11-05): the monthly draw's page. */
.gv-hero {
    position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 8px; min-height: 220px; padding: 22px 0 0 20px;
    border-radius: 22px; border: 2px solid #F3C851; color: #fff;
    background: linear-gradient(135deg, #3B2A08 0%, #22180A 45%, #131823 100%);
    box-shadow: 0 0 0 1px #8A6210, 0 0 32px rgba(243, 200, 81, .30), 0 12px 30px rgba(0, 0, 0, .35);
}
.gv-hero__glow { position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(243, 200, 81, .28), transparent); pointer-events: none; }
.gv-hero__text { position: relative; flex: 1; min-width: 0; padding-bottom: 22px; align-self: center; }
.gv-eyebrow { font: 800 12px/1 var(--hv2-font); letter-spacing: .12em; text-transform: uppercase; color: #FFD36B; }
.gv-hero h1 { margin: 8px 0 0; font: 900 clamp(30px, 6vw, 40px)/.98 var(--hv2-display); letter-spacing: -.03em; color: #fff; }
.gv-hero h1 em { font-style: normal; color: #FFD36B; text-shadow: 0 0 18px rgba(255, 211, 107, .45); }
.gv-hero p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #E9DFC8; }
.gv-hero__img { position: relative; width: 44%; max-width: 220px; height: auto; max-height: 240px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.gv-cta { width: 100%; min-height: 56px; font-size: 17px; }
.gv-clock { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gv-clock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.gv-clock__row div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--surface-2); }
.gv-clock__row strong { font: 800 26px/1 var(--hv2-display); font-variant-numeric: tabular-nums; }
.gv-clock__row span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.gv-mine__n { font: 800 26px/1 var(--hv2-display); color: var(--gold); }
.gv-row-link { color: var(--text) !important; text-decoration: none !important; }
.gv-how ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }
.gv-how strong { color: var(--text); }
.iv-note a { color: var(--text); font-weight: 700; }

/* Pick your own code (2026-11-05). */
.iv-own { width: 100%; border-top: 1px solid var(--border); padding-top: 12px; }
.iv-own summary { cursor: pointer; list-style: none; text-align: center; font: 700 14px var(--hv2-font); color: var(--text); }
.iv-own summary::-webkit-details-marker { display: none; }
.iv-own summary::after { content: ' \203A'; color: var(--text-faint); }
.iv-own[open] summary::after { content: ''; }
.iv-own form { display: flex; gap: 10px; margin-top: 12px; }
.iv-own input {
    flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); padding: 0 14px;
    font: 700 16px var(--hv2-mono); letter-spacing: .1em; text-transform: uppercase;
}
.iv-own input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.iv-own .iv-btn { flex: none; }
.iv-own__line { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.iv-own__line.is-err { color: var(--danger, #C81E1E); font-weight: 600; }

/* "This can't be gamed" (2026-11-06), shared by /giveaway and /invite. */
.iv-fair { display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, #E8362A 55%, var(--border)); }
.iv-fair__head { display: flex; align-items: center; gap: 10px; }
.iv-fair__ico { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #D93A2E; background: color-mix(in srgb, #E8362A 14%, transparent); flex: none; }
.iv-fair__ico svg { width: 20px; height: 20px; }
.iv-fair__title { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.iv-fair__line { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.iv-fair__note { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text); background: color-mix(in srgb, #E8362A 10%, transparent); }
