/* Mobile creation journey. Desktop retains the established account layout. */
.create-head-icon,.color-step,.occasion-mini,.mobile-step-head,.create-layout .create-main > .mobile-step-next { display:none; }
.mobile-flow-head,.mobile-gift-hero,.mobile-review-card,.mobile-paid-panel,.mobile-install,.mobile-only { display:none; }
.create-advanced,.occasion-picker { display:contents; }
/* Any participating restaurant is the only choice for now; a registration restaurant or an error still shows. */
.create-main > .create-restriction:not(:has(.restriction-origin,.field-error:not([hidden]))) { display:none; }
.create-advanced > summary { display:none; }
/* Phone-only: the sender-name choice. */
.sender-name-toggle { display:none; }
@media (max-width:640px) {
  .mobile-only { display:inline; }
  .desktop-only { display:none; }
  /* The phone journey stays dark in both modes, so its fields keep a dark fill under their light text. */
  .mobile-flow { --surface:#141414; --field:#151515; --text:#f4eee3; --text-2:#d2c8b8; --text-3:#a89d8c; --line:rgb(229 193 125 / 23%); background:#090909!important; color:#f4eee3; padding:0; min-height:100svh; min-height:100dvh; }
  .mobile-flow .app-bar,.mobile-flow .bottom-nav,.mobile-flow .demo-ribbon,.mobile-flow .progress-steps { display:none; }
  .mobile-flow .account-main { width:100%; max-width:540px; margin:auto; padding:10px max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)); gap:14px; }
  .mobile-flow-head { display:flex; align-items:center; justify-content:space-between; padding:calc(10px + env(safe-area-inset-top)) 18px 10px; border-bottom:1px solid rgb(255 255 255 / 8%); background:#090909; }
  .mobile-flow-head a { display:inline-flex; align-items:center; gap:6px; min-width:36px; height:36px; padding-inline:4px; color:#efdfbf; font-size:15px; font-weight:600; white-space:nowrap; }
  .mobile-flow-head strong { font-size:19px; }
  .mobile-flow-head > span { color:#ddb26a; }
  .mobile-flow .page-head { margin:0; gap:8px; }
  .mobile-flow .page-head h1,.mobile-flow .page-head p,.mobile-flow .page-head .back-link { display:none; }
  .mobile-flow .page-head .btn { margin-inline-start:auto; }
  .mobile-flow .create-layout,.mobile-flow .pay-layout { display:flex; flex-direction:column; gap:18px; }
  .mobile-flow .create-main { display:flex; flex-direction:column; gap:12px; width:100%; }
  /* Simple phone form: each step sits in its own rounded card, amount first as in the approved reference. */
  .mobile-flow .create-main > .card-section { border:1px solid rgb(255 255 255 / 9%); border-radius:16px; background:#111; box-shadow:none; padding:14px; gap:12px; animation:none; }
  .mobile-flow .create-main > .create-amount { order:0; }
  .mobile-flow .create-main > .create-recipient { order:1; }
  .mobile-flow .create-main > .create-design { order:2; }
  .mobile-flow .create-main > .create-restriction { order:3; }
  .mobile-flow .section-no { display:none; }
  .mobile-flow .card-section h2 { font-size:15px; margin:0; gap:9px; }
  .mobile-flow .create-head-icon { display:block; width:20px; height:20px; color:#ddb26a; }
  .mobile-flow .create-message > label { display:flex; align-items:center; gap:9px; font-size:15px; font-weight:700; }
  .mobile-flow .create-main > .create-restriction { order:4; }
  .mobile-flow .create-main > .mobile-step-next { order:5; display:flex; margin-top:2px; }
  .color-swatches { contain:inline-size; min-width:0; display:flex; gap:12px; overflow-x:auto; padding:6px 4px 4px; scroll-snap-type:x proximity; scrollbar-width:none; }
  .color-swatches::-webkit-scrollbar { display:none; }
  .color-swatch { flex:0 0 62px; display:grid; justify-items:center; gap:8px; padding:0; border:0; background:none; color:#d9d0c1; font:inherit; font-size:11px; line-height:1.4; text-align:center; cursor:pointer; scroll-snap-align:start; }
  .color-dot { width:46px; height:46px; border-radius:50%; background:var(--gift-bg,#141414); border:1px solid rgb(255 255 255 / 22%); transition:outline-color .2s; outline:2px solid transparent; outline-offset:3px; }
  .color-dot.design-dot { background:conic-gradient(from 30deg,#121212,#15223f,#0e3a2d,#40121f,#f3e9da,#121212); }
  .color-swatch[aria-pressed="true"] { color:#f1d69e; }
  .color-swatch[aria-pressed="true"] .color-dot { outline-color:#e5bc75; }
  .color-swatch:focus-visible { outline:none; }
  .color-swatch:focus-visible .color-dot { outline-color:#fff; }
  /* Details step: the card, its designs and the submit wait for the card screen. */
  .mobile-flow:not(.create-step-card) .create-layout > .create-aside,
  .mobile-flow:not(.create-step-card) .create-design > :not(.create-message) { display:none; }
  /* Card screen: live preview, design choices and the submit together on one screen. */
  .mobile-flow.create-step-card .mobile-step-head { display:grid; gap:6px; width:100%; align-self:stretch; text-align:center; order:0; }
  .mobile-flow.create-step-card .mobile-step-head :is(h1,p) { text-align:center; }
  .mobile-flow.create-step-card .mobile-step-head h1 { font-size:21px; margin:0; }
  .mobile-flow.create-step-card .mobile-step-head p { margin:0; color:#c7beaf; font-size:13px; }
  .mobile-flow.create-step-card .create-layout { gap:12px; }
  .mobile-flow.create-step-card .create-main { order:2; }
  .mobile-flow.create-step-card .create-main > :not(.create-design),
  .mobile-flow.create-step-card .create-design > h2,
  .mobile-flow.create-step-card .create-design > .create-message,
  .mobile-flow.create-step-card .color-step > h2,
  .mobile-flow.create-step-card .mobile-install { display:none; }
  .mobile-flow.create-step-card .create-main > .create-design { padding:0; border:0; background:none; gap:12px; }
  .mobile-flow.create-step-card .create-aside { display:contents; }
  /* The card fills the screen width; mobile-invitation.js scales it from its natural width. */
  .mobile-flow.create-step-card .create-aside > .gift-card { display:grid; order:1; width:300px; max-width:none; margin-inline:auto; }
  .mobile-flow.create-step-card .create-aside > .gift-card:has(.orientation-landscape) { width:420px; }
  .mobile-flow.create-step-card .create-aside > .btn { order:3; }
  .mobile-flow.create-step-card .create-aside > .muted-note { order:4; margin:0; text-align:center; }
  /* The card was chosen on the details screen; this screen offers its colour as round icons. */
  .mobile-flow.create-step-card .color-step { display:block; }
  .mobile-flow.create-step-card .color-swatches { justify-content:safe center; }
  /* The occasion and the names are not chosen on the card screen; the name choice sits with the details. */
  .mobile-flow.create-step-card .create-advanced { display:none; }
  @media (max-height:700px) {
    .mobile-flow.create-step-card .mobile-step-head h1 { font-size:18px; }
    .mobile-flow.create-step-card .account-main { padding-top:8px; }
  }
  /* Details screen: show the inviter's name with the gift, as a yes/no switch on the question's line
     (it wraps under the question only where the line is too narrow). */
  .mobile-flow .create-recipient .sender-name-toggle { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; margin:0; }
  .mobile-flow .sender-name-toggle .field-label { margin:0; color:#ded9ce; font-size:14px; font-weight:600; }
  .mobile-flow .sender-name-options { display:grid; grid-template-columns:repeat(2,58px); gap:3px; padding:3px; border:1px solid rgb(255 255 255 / 18%); border-radius:999px; background:#151515; }
  .mobile-flow .sender-name-options button { min-height:34px; padding:0 8px; border:1px solid transparent; border-radius:999px; background:none; color:#d9d0c1; font:inherit; font-size:14px; cursor:pointer; transition:background-color .2s, color .2s; }
  .mobile-flow .sender-name-options button[aria-pressed="true"] { background:linear-gradient(110deg,#f1cd89,#dca65c); border-color:#e7bc77; color:#21170d; font-weight:700; }
  .mobile-flow .sender-name-options button:focus-visible { outline:2px solid #e5bc75; outline-offset:2px; }
  /* 320–359px phones: narrower switch and amount chips so the question and the amounts stay on one line. */
  @media (max-width:359px) {
    .mobile-flow .create-recipient .sender-name-toggle { column-gap:8px; }
    .mobile-flow .sender-name-options { grid-template-columns:repeat(2,50px); }
    .mobile-flow .create-amount .amount-chips { gap:6px; }
    .mobile-flow .amount-chips .amount-chip { padding-inline:2px; font-size:13px; white-space:nowrap; }
  }
  .mobile-flow .grid-2 { grid-template-columns:1fr; gap:12px; }
  .mobile-flow .control,.mobile-flow .textarea { background:#151515; border-color:rgb(255 255 255 / 24%); border-radius:12px; color:#f4eee3; }
  .mobile-flow .control input,.mobile-flow .control select { color:#f4eee3; font-size:16px; min-height:44px; }
  .mobile-flow select option { background:#171717; color:#f4eee3; }
  .mobile-flow .field label { color:#ded9ce; }
  .mobile-flow .field-hint,.mobile-flow .form-hint { color:#bcb3a4; font-size:12px; line-height:1.55; }
  .mobile-flow .create-main .field { gap:6px; }
  /* The section title already names the amount; its label stays for screen readers only. */
  .mobile-flow .create-amount .field > label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .mobile-flow .create-message .textarea { min-height:76px; height:76px; }
  .mobile-flow .choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .mobile-flow .choice-body { display:grid; grid-template-columns:26px 1fr; padding:12px 10px; min-height:76px; gap:4px 7px; border-radius:12px; background:#141414; }
  .mobile-flow .choice-body > .icon { grid-row:span 2; align-self:center; }
  .mobile-flow .choice-body strong { font-size:13px; }
  .mobile-flow .choice-body small { font-size:10px; }
  .mobile-flow .choice input:checked + .choice-body { color:#21170d; background:linear-gradient(115deg,#f3d69a,#d7a55c); border-color:#e5bc75; }
  .mobile-flow .choice input:checked + .choice-body .icon,.mobile-flow .choice input:checked + .choice-body small { color:#352413; }
  .mobile-flow .amount-chips { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  .mobile-flow .amount-chip { min-width:0; padding:9px 3px; border-radius:12px; background:#141414; font-size:15px; }
  .mobile-flow .amount-chip.active { background:linear-gradient(115deg,#f3d69a,#d7a55c); color:#21170d; }
  .mobile-flow .create-design { display:flex; flex-direction:column; }
  .mobile-flow .create-design > h2 { order:0; }
  .mobile-flow .create-message { order:1; }
  /* Card screen: each design is a small upright copy of its card, above the colours. */
  .mobile-flow .occasion-picker { display:block; min-width:0; }
  /* The preview card is zoomed to the form, so the form must not take the card's natural width:
     on 320px phones that pushed the whole step 16px off the screen. */
  .mobile-flow .account-main > .create-layout { min-width:0; }
  .mobile-flow .occasion-grid { contain:inline-size; min-width:0; display:flex; gap:12px; overflow-x:auto; padding:6px 6px 4px; scroll-snap-type:x proximity; scrollbar-width:none; }
  .mobile-flow .occasion-grid::-webkit-scrollbar { display:none; }
  .mobile-flow .occasion-option { flex:0 0 92px; min-width:0; display:grid; justify-items:center; align-content:start; gap:8px; padding:0; border:0; border-radius:0; background:none; box-shadow:none; transform:none; scroll-snap-align:start; cursor:pointer; }
  .mobile-flow .occasion-option:hover,.mobile-flow .occasion-option:has(input:checked) { border:0; background:none; box-shadow:none; transform:none; }
  /* Each choice is a quiet cover in its design's colours with the Azeema mark: fixed sizes, no
     scaled copy of the card, so it looks the same on every phone and browser (Safari's zoom does not). */
  .mobile-flow .occasion-swatch { display:none; }
  .mobile-flow .occasion-mini { display:block; width:88px; aspect-ratio:.7; border-radius:12px; border:1px solid rgb(255 255 255 / 18%); outline:2px solid transparent; outline-offset:3px; overflow:hidden; background:#141414; box-shadow:0 10px 20px -14px rgb(0 0 0 / 90%); transition:outline-color .2s, transform .25s cubic-bezier(.2,.7,.2,1); pointer-events:none; }
  .mobile-flow .occasion-option:has(input:checked) .occasion-mini { transform:translateY(-2px); }
  .mobile-flow .occasion-mini .occasion-cover.gift-surface { position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; height:100%; min-height:0; margin:0; padding:0 0 4px; border:0; border-radius:inherit; overflow:hidden; color:var(--gift-accent,var(--gift-text,#e6c98f)); background-color:var(--gift-bg,#141414); box-shadow:inset 0 0 26px rgb(0 0 0 / 38%); }
  /* Soft light from the top, and a hairline inner frame like the printed card. */
  .mobile-flow .occasion-cover::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(130% 75% at 50% 0%, rgb(255 255 255 / 11%), transparent 62%); pointer-events:none; }
  .mobile-flow .occasion-cover::after { content:""; position:absolute; inset:5px; border:1px solid currentColor; border-radius:8px; opacity:.24; pointer-events:none; }
  /* Reference artwork designs keep a hint of their picture: blurred and dimmed behind the mark. */
  .mobile-flow .occasion-mini .occasion-cover.palette-hospitality:is(.artwork-hospitality,.artwork-evening):not(.custom-colors)::before { inset:-10px; background:inherit; filter:blur(3px) brightness(.42) saturate(1.1); }
  .mobile-flow .occasion-cover > :is(.gift-reference-layer,.gift-reference-photo,.gift-upload-layer,.gift-art,svg:not(.brand-mark)) { display:none !important; }
  .mobile-flow .occasion-cover .brand-mark { position:relative; width:30px; height:39px; filter:drop-shadow(0 2px 6px rgb(0 0 0 / 35%)); }
  .mobile-flow .occasion-cover .cover-word { position:relative; font-size:13px; font-weight:600; line-height:1.2; letter-spacing:0; text-shadow:0 1px 6px rgb(0 0 0 / 35%); }
  .mobile-flow .occasion-option:has(input:checked) .occasion-mini { outline-color:#e5bc75; }
  .mobile-flow .occasion-option:has(input:focus-visible) { outline:none; }
  .mobile-flow .occasion-option:has(input:focus-visible) .occasion-mini { outline-color:#fff; }
  .mobile-flow .occasion-name { color:#d9d0c1; font-size:11px; line-height:1.4; text-align:center; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-flow .occasion-option:has(input:checked) .occasion-name { color:#f1d69e; }
  .mobile-flow .create-advanced { display:block; order:3; border:1px solid var(--line); border-radius:12px; padding:12px; }
  .mobile-flow .create-advanced > summary { display:list-item; cursor:pointer; color:#e5c386; font-size:13px; }
  .mobile-flow .create-advanced[open] > summary { margin-bottom:16px; }
  .mobile-flow .create-advanced .field { margin-block:12px; }
  .mobile-flow .create-aside { position:static; width:100%; }
  .mobile-flow .create-aside > .gift-card,.mobile-flow .create-aside > .aside-kicker { display:none; }
  .mobile-flow .btn.primary { background:linear-gradient(110deg,#f1cd89,#dca65c); border-color:#e7bc77; color:#21170d; box-shadow:none; border-radius:999px; min-height:52px; }
  .mobile-flow .btn.outline { border-color:rgb(229 193 125 / 45%); border-radius:999px; color:#eddfc5; }
  .mobile-flow .muted-note { font-size:12px; }
  .mobile-review-card { display:block; width:100%; max-width:360px; margin:auto; }
  .mobile-review-card .gift-card { width:100%; }
  .mobile-flow .pay-layout > .card-section { width:100%; background:#141414; padding:18px; border-radius:16px; box-shadow:none; gap:12px; }
  .mobile-flow .pay-layout .summary-list:first-of-type,.mobile-flow .pay-layout .summary-occasion { display:none; }
  .mobile-flow .pay-layout .summary-list dt { color:#c7beaf; }
  .mobile-flow .pay-layout .total-row { padding-top:14px; }
  .mobile-flow .pay-box { background:transparent!important; padding:0!important; border:0; }
  .mobile-flow .azema-checkout { display:flex; flex-direction:column; gap:16px; }
  .mobile-flow .checkout-summary,.mobile-flow .checkout-payment { padding:18px; width:100%; border-radius:16px; }
  .mobile-paid .account-main { padding-top:36px; }
  .mobile-paid-panel { display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; min-height:calc(100svh - 80px); justify-content:center; padding:30px 0; background:radial-gradient(ellipse at 50% 25%,rgb(211 160 72 / 12%),transparent 55%); }
  .mobile-paid-panel h1 { font-size:26px; line-height:1.5; }
  .mobile-paid-panel p { color:#d2c7b6; line-height:1.9; max-width:32ch; }
  .mobile-paid-seal { display:grid; place-items:center; width:112px; height:112px; border-radius:50%; color:#171008; background:linear-gradient(120deg,#f3d69a,#c98e3b); outline:1px solid #a87a39; outline-offset:12px; margin-bottom:25px; }
  .mobile-paid-seal .icon { width:55px; height:55px; }
  .mobile-paid .account-main > .page-head,.mobile-paid .account-main > .success-panel,.mobile-paid .account-main > .detail-layout { display:none; }
  .mobile-paid.show-paid-details .account-main > .page-head,.mobile-paid.show-paid-details .account-main > .detail-layout { display:grid; }
  .mobile-home .welcome,.mobile-home .bottom-nav,.mobile-home .demo-ribbon { display:none; }
  .mobile-home .app-bar { padding-top:env(safe-area-inset-top); }
  .mobile-home { padding-bottom:env(safe-area-inset-bottom); }
  .mobile-home .account-main { padding-top:0; }
  /* The phone home keeps the send screen only; roles, balances and lists open from the account menu. */
  .mobile-home:not(.mobile-home-details) .account-main > :is(.role-shortcuts,.account-picker,.balance-card,.block,.quick-links) { display:none; }
  .mobile-home-details .mobile-gift-hero,.mobile-home-details .mobile-install { display:none; }
  .mobile-home-details .account-main { padding-top:18px; }
  .mobile-gift-hero { display:flex; flex-direction:column; justify-content:space-between; position:relative; isolation:isolate; min-height:600px; min-height:calc(100svh - 185px); margin-inline:-16px; padding:40px 26px 24px; text-align:center; color:#fff5e1; overflow:hidden; background:#090909; }
  .mobile-gift-hero::before { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(#090909d9,#09090955 50%,#090909 95%),url('../../cards/artwork/evening-front-v1.png') right 52%/auto 170%; }
  .mobile-hero-copy { max-width:340px; margin:0 auto; }
  .mobile-hero-copy .kicker { color:#e8bf78; font-size:25px; }
  .mobile-hero-copy h1 { font-size:30px; line-height:1.55; margin:20px 0 12px; }
  .mobile-hero-copy p { line-height:1.9; margin-bottom:26px; }
  .mobile-hero-copy .btn { border-radius:999px; }
  .mobile-hero-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding-top:80px; }
  .mobile-hero-benefits span { display:grid; justify-items:center; gap:10px; font-size:12px; }
  .mobile-hero-benefits .icon { color:#e1ba73; width:27px; height:27px; }
  .mobile-hero-restaurants { margin-top:30px; }
  .mobile-hero-restaurants h2 { font-size:17px; margin-bottom:14px; }
  .mobile-hero-restaurants > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
  /* Place cards (2026-11-15): the cover fills the card and the name sits on a dark fade at its foot; no city. */
  .mobile-hero-restaurants .hero-place { position:relative; display:flex; align-items:flex-end; aspect-ratio:3 / 4; padding:0 9px 10px; overflow:hidden; border:1px solid rgb(221 178 106 / 28%); border-radius:16px; background:radial-gradient(circle at 50% 32%, rgb(221 178 106 / 16%), transparent 62%), linear-gradient(160deg, #1c1813, #0d0c0a); color:#fff; text-decoration:none; isolation:isolate; box-shadow:0 10px 24px rgb(0 0 0 / 28%); transition:transform .2s ease, border-color .2s ease; }
  .mobile-hero-restaurants .hero-place:active { transform:scale(.97); }
  .mobile-hero-restaurants .hero-place:focus-visible { outline:2px solid #ddb26a; outline-offset:2px; }
  .mobile-hero-restaurants .hero-place img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
  .mobile-hero-restaurants .hero-place::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(to top, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 45%) 38%, transparent 66%); }
  .mobile-hero-restaurants .hero-place-icon { position:absolute; top:30%; left:50%; display:grid; place-items:center; width:46px; height:46px; border:1px solid rgb(221 178 106 / 40%); border-radius:50%; transform:translate(-50%, -50%); background:rgb(221 178 106 / 10%); }
  .mobile-hero-restaurants .hero-place-icon .icon { width:22px; height:22px; color:#ddb26a; }
  .mobile-hero-restaurants .hero-place strong { display:-webkit-box; width:100%; max-height:3em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; font-size:12.5px; font-weight:700; line-height:1.5; text-align:start; overflow-wrap:anywhere; text-shadow:0 1px 8px rgb(0 0 0 / 60%); }
  .mobile-hero-restaurants > .btn { border-radius:999px; }
  .mobile-install[hidden] { display:none; }
  .mobile-install { display:block; border:1px solid rgb(215 178 108 / 24%); padding:12px 14px; border-radius:12px; color:#d4bf98; font-size:12px; }
  .mobile-install summary { cursor:pointer; }
  .mobile-install summary .icon { width:16px; height:16px; vertical-align:middle; margin-inline-end:6px; }
  .mobile-install p { margin-block:12px; line-height:1.9; }
  @media (display-mode:standalone) { .mobile-install { display:none; } }
}
