/* styles-gift.css — /gift: buying a gift card and activating one (owner, 2026-11-21).
   The page is built from the kit and the /pass blocks (page-intro, pass-mine-banner, pass-promo-apply,
   pass-pay-card, pass-benefits, checkout-form, fu-seg, fu-field, fu-verify-*). Only the card itself and
   the page's own grids live here. */

/* ── the card ───────────────────────────────────────────────────────────
   One object, credit-card ratio, square corners, on the Member ID card's bone ground and at its two
   degrees. Every size is in cqw, so the card is one picture at any width — down to five minimums (the
   logo and four small texts) that keep it legible on a narrow card.
   THE LOGO is the site's own mark at rest: the Logo component's two paths and colours (ink glyphs,
   accent «UP» and ball panels), nothing animated, the rolling ball left out, never drawn smaller than
   the component's smallest size (129 × 35).
   ON A PHONE the card is 15% smaller (owner, 2026-11-22: «в мобилке размер карточки уменьши на 15%»):
   --gft-k on .gft-tilt scales the card's width AND those five minimums together, so it stays the same
   picture — narrowing the width alone left the minimums as they were and the rows ran out of the card. */
.gft-card { container-type: inline-size; position: relative; aspect-ratio: 1.586; width: 100%; font-family: var(--font-display);
  --gft-dim: color-mix(in srgb, var(--accent-text) 64%, transparent); }
.gft-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6cqw 6.5cqw 5.5cqw; background: var(--bone); color: var(--accent-text); overflow: hidden; }
.gft-top { display: flex; justify-content: space-between; align-items: center; gap: 4cqw; }
.gft-logo { display: block; flex: none; width: max(calc(129px * var(--gft-k, 1)), 27cqw); height: auto; color: inherit; }
/* one line wherever it fits; where it does not (Russian on a 320px phone) it breaks at the space instead of leaving the card */
.gft-kind { min-width: 0; font-weight: 700; font-size: max(calc(10px * var(--gft-k, 1)), 2.3cqw); line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; text-align: end; }
.gft-mid { display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqw; }
.gft-num { display: flex; align-items: flex-start; gap: 1.8cqw; font-weight: 900; font-size: 27cqw; line-height: .76; letter-spacing: -.05em; }
.gft-num small { font-family: var(--font-mono); font-weight: 500; font-size: max(calc(10px * var(--gft-k, 1)), 3.3cqw); letter-spacing: 0; line-height: 1; padding-top: .6cqw; }
.gft-of { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 5.4cqw; line-height: 1; letter-spacing: -.02em; background: var(--accent); color: var(--accent-text); padding: 1cqw 2.2cqw 1.2cqw; }
/* a set line-height: left to the font, an Arabic line is nearly twice a Latin one on Android and the two names ran out of the card */
.gft-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 4cqw; font-size: max(calc(10px * var(--gft-k, 1)), 2.5cqw); line-height: 1.15; }
/* beside a code the NAMES give way (min-width 0, and said outright: a clipped box, unlike a hidden one, keeps its own minimum); the labels never wrap */
.gft-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5cqw 2.4cqw; align-items: baseline; min-width: 0; margin: 0; }
.gft-who dt { font-weight: 700; font-size: max(calc(10px * var(--gft-k, 1)), .82em); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--gft-dim); }
/* cut at the side only: a mark above or below a letter is never shaved. The two-value shorthand, so a browser without `clip` drops the
   whole declaration and keeps `hidden` — as longhands it would take `overflow-y: visible` alone, which beside `hidden` computes to auto */
.gft-who dd { min-width: 0; margin: 0; font-weight: 800; font-size: 1.25em; letter-spacing: -.01em; text-transform: uppercase; max-width: 38cqw; overflow: hidden; overflow: clip visible; text-overflow: ellipsis; white-space: nowrap; }
.gft-who dd.is-empty { color: var(--gft-dim); }  /* nothing typed yet: the field's own label, dimmed */
.gft-code { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.gft-tilt { transform: rotate(-2deg); }
.gft-tilt.r { transform: rotate(2deg); }

/* ── the page: one card, built live beside the form ─────────────────── */
.gft-build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; padding: 56px var(--pad-x) 88px; align-items: start; }
.gft-stage { position: sticky; top: calc(var(--header-h) + 48px); display: grid; justify-items: center; padding: 28px 0; }
.gft-stage .gft-tilt { width: min(calc(100% * var(--gft-k, 1)), calc(580px * var(--gft-k, 1))); }
.gft-form { display: flex; flex-direction: column; gap: 48px; }
.gft-form .checkout-form { gap: 16px; }
/* minmax(0, …): a bare 1fr takes the input's own minimum, and on a 430px phone the second field ran past the screen */
.gft-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
/* ONE amount, three ways to set it (owner, 2026-11-22): a preset, the slider, or typed into the field. All three are
   always there, so nothing is revealed and nothing moves. */
.gft-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* «AED» over the figure, each on its own line: side by side «AED 2000» did not fit a third of a 320px row and broke in two */
.gft-amounts > button { min-height: 64px; flex-direction: column; gap: 2px; padding-inline: 8px; }
/* the slider: the native range, only its look is ours — a hairline track and a square thumb in the accent (no radius,
   no shadow). 44px tall and a 32px thumb: iOS moves the thumb only when the thumb itself is taken. */
.gft-slide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--bone-dim); }
.gft-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.gft-range::-webkit-slider-runnable-track { height: 2px; background: var(--bone-faint); }
.gft-range::-moz-range-track { height: 2px; background: var(--bone-faint); }
.gft-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -15px; border: 0; background: var(--accent); }
.gft-range::-moz-range-thumb { width: 32px; height: 32px; border: 0; background: var(--accent); }
.gft-range:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* the range line under the field is always there; a wrong amount only changes its colour */
.gft-form .fu-field-note.gft-bad { color: var(--field-error); }
/* an example in each field, the checkout's own habit («Diego Rios»): there while the field rests, gone the moment
   the cursor is in it (owner: «исчезают, когда курсор встаёт») — the label above stays */
.gft-form .fu-input::placeholder { color: var(--bone-dim); }
.gft-form .fu-input:focus::placeholder { color: transparent; }
.gft-form textarea.fu-input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.gft-count { font-family: var(--font-mono); text-align: end; }
/* the payer's address is proved before the payment: three states of one block */
/* minmax(0, …) here and on «Got a card?»: an input's own minimum is some 440px in the Arabic face, and a bare track took it —
   the address and code fields ran past the left edge of a phone */
.gft-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gft-mail-ok { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; color: var(--bone); font-size: 16px; }
.gft-mail-ok .t-label { color: var(--success); }
/* an address is one unbroken word: on a 320px phone a long one ran past the screen in both states */
.gft-mailbox .fu-verify-intro b, .gft-mail-ok > span:first-child { overflow-wrap: anywhere; min-width: 0; }
/* «Got a card?» — the /pass banner row with the /pass code field; the intro above already draws the hairline */
.gft-activate { border-top: 0; }
/* a width, never a flex-basis: on a phone the banner is a column, where a basis would be a 440px HEIGHT */
.gft-activate-form { flex: none; width: min(100%, 440px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* ONE button until it is pressed; then the code field opens beside it. The row is 48px either way and the button keeps
   its far edge, so nothing on the page moves (owner, 2026-11-22). */
.gft-activate-form .pass-promo-apply { justify-content: flex-end; }
.gft-activate-form .pass-promo-btn { position: relative; }
.gft-activate-form .pass-promo-btn .arrow { display: none; }
/* three steps, three columns (the /pass grid is four) */
.pass-benefit-grid.gft-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the giver's words, as the recipient will read them */
.gft-quote { margin: 0; max-width: 30ch; font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1.2; color: var(--bone); }
.gft-quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--bone-dim); }
.gft-stage .gft-quote--live { width: min(100%, 580px); max-width: none; margin-top: 48px; font-size: 26px; overflow-wrap: anywhere; }

/* ── after payment, and the player who opens a card ─────────────────── */
.gft-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; padding: 56px var(--pad-x) 96px; align-items: start; }
.gft-two .gft-tilt { width: min(calc(100% * var(--gft-k, 1)), calc(580px * var(--gft-k, 1))); margin: 28px auto; }
.gft-two .pass-pay-card { margin-top: 0; }
.gft-note { margin-top: 16px; }
.gft-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.gft-open { padding-block: 72px 96px; row-gap: 0; }
.gft-open .gft-tilt { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.gft-open h1 { margin: var(--head-eb-gap, 24px) 0 0; }
.gft-open-body .gft-quote { margin-top: 40px; overflow-wrap: anywhere; }
.gft-open .fu-field-note { margin-top: 20px; max-width: 52ch; font-size: 13px; }

@media (max-width: 1100px) {
  .gft-build, .gft-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gft-stage { position: static; padding: 8px 0 0; }
  .gft-open .gft-tilt { grid-column: auto; grid-row: auto; }
  .gft-open-body .gft-quote { margin-top: 8px; }
}
@media (max-width: 760px) {
  .gft-build, .gft-two { padding: 28px var(--pad-x) 64px; }
  .gft-form { gap: 40px; }
  .gft-quote { font-size: 24px; }
  .gft-open { padding-block: 28px 64px; }
  .gft-actions .fu-btn { width: 100%; }
  .pass-benefit-grid.gft-steps { grid-template-columns: 1fr; }
  /* iOS zooms a focused field under 16px */
  .gft-form input, .gft-form textarea, .gft-activate-form input { font-size: 16px; }
  .gft-tilt { --gft-k: .85; }
  /* the banner is a column here: the lone button fills its row */
  .gft-activate-form .pass-promo-apply:not(.is-open) .pass-promo-btn { flex: 1; }
}
/* 480, the site's phone breakpoint (tokens.css): it was 420, and from 421 to 480 the names stood two in a row
   and a code did not fit its field */
@media (max-width: 480px) {
  .gft-row2 { grid-template-columns: minmax(0, 1fr); }
  /* a 19-character code does not fit beside a worded button here, and one under the other would move the page:
     the field takes the row and the button becomes a 48px square that shows an arrow (its name stays the word) */
  .gft-activate-form .is-open .pass-promo-btn { flex: none; width: 48px; padding: 0; }
  .gft-activate-form .is-open .gft-go-t { display: none; }
  .gft-activate-form .is-open .pass-promo-btn .arrow { display: inline-block; font-size: 18px; letter-spacing: 0; }
}
