/* Would U Rather — website styles.
   Brand cues from the app (red vs. blue choices, the ?/! mark, category gradients) on a web layout:
   sticky header, landing-page sections, wide content, full footer. */

:root {
  --bg: #08080c;
  --surface: #14141b;
  --surface-2: #1d1d26;
  --surface-3: #2a2a35;
  --line: #262631;
  --separator: rgba(120, 120, 140, 0.22);
  --text: #f6f5f2;
  --text-2: #a9a9b8;
  --text-3: #8a8a9c;
  --red: #ff3b5c;
  --blue: #5a9cff;
  --blue-strong: #0a6cff;
  --orange: #ff9f0a;
  --card-a: linear-gradient(135deg, #f5584a 0%, #ff2d6f 100%);
  --card-b: linear-gradient(135deg, #0596ec 0%, #0a6cff 100%);
  --display: "Bricolage Grotesque", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#app { flex: 1 0 auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #8bb9ff; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font: 600 12px/1.6 var(--font); text-align: center; color: var(--text); }

/* ---------- Type ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.03em; }
.h1, .large-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.lede { margin: 14px 0 0; max-width: 560px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--text-2); }
.eyebrow { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.eyebrow svg { color: var(--orange); }
.subtitle { margin: 0; font-size: 17px; color: var(--text-2); }
.section-title { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 16px; font-weight: 600; }
.caps { margin: 0 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-2); text-transform: uppercase; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.hint { margin: 0; font-size: 14px; color: var(--text-2); }
.text-link { font-weight: 650; color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(8, 8, 12, 0.8); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
/* The real app icon, shown in the iOS rounded-square shape */
.app-icon { display: block; flex-shrink: 0; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 10px 10px 0 0; }
.nav-sep { width: 1px; height: 24px; margin: 0 8px; background: var(--line); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; margin-right: 8px; }
.nav-account:hover { color: var(--text); background: var(--surface); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px; background: rgba(12, 12, 18, 0.98); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px; font-size: 17px; }
  .nav-link[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--red); border-radius: 10px; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
  .nav-account { padding: 10px; margin: 0; font-size: 17px; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: #0b0b10; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 820px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin: 14px 0 20px; max-width: 340px; color: var(--text-2); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.foot-col a { color: var(--text-2); font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot-bottom a { color: var(--text-3); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #fff; color: #000; }
.store-badge:hover { color: #000; background: #e9e9ee; }
.store-badge svg { width: 26px; height: 26px; fill: #000; }
.store-badge span { display: flex; flex-direction: column; font-size: 19px; font-weight: 700; line-height: 1.1; }
.store-badge small { font-size: 11px; font-weight: 500; }
.store-badge.small { padding: 7px 14px 7px 10px; }
.store-badge.small svg { width: 20px; height: 20px; }
.store-badge.small span { font-size: 15px; }

/* ---------- Sections ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 680px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 340px at 18% 40%, rgba(255, 59, 92, 0.20), rgba(255, 59, 92, 0) 70%), radial-gradient(520px 340px at 82% 40%, rgba(10, 132, 255, 0.18), rgba(10, 132, 255, 0) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding-top: 40px; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; }
a.meta-pill:hover { color: var(--text); border-color: #3a3a48; }
.band { padding: 56px 0; }
.band.tight { padding-top: 36px; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head { padding: 56px 0 8px; position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -60px 0 auto 0; height: 300px; z-index: -1; pointer-events: none; background: radial-gradient(520px 260px at 12% 30%, rgba(255, 59, 92, 0.13), rgba(255, 59, 92, 0) 70%); }
.page-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Choice cards ---------- */
.duo { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 260px; padding: 26px 28px; border: 0; border-radius: 28px; color: #fff; text-align: left; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42); transition: transform .2s ease, opacity .25s ease, box-shadow .2s ease; }
@media (max-width: 760px) { .choice { min-height: 168px; } }
.choice.a { background: var(--card-a); }
.choice.b { background: var(--card-b); }
button.choice:not([aria-disabled="true"]):hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
.choice[aria-disabled="true"] { cursor: default; }
.choice-tag { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.24); }
.choice .opt { flex-grow: 1; display: flex; align-items: center; font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.choice .tap { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); }
.choice .result { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.choice .pct { font-family: var(--display); font-size: 48px; font-weight: 800; line-height: 1; }
.choice .meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.choice .meter span { display: block; height: 100%; border-radius: 999px; background: #fff; }
.choice.picked { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #fff, 0 16px 36px rgba(0, 0, 0, 0.42); }
.choice.dim { opacity: 0.5; }
.or-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; pointer-events: none; }
textarea.choice { width: 100%; resize: none; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.2; padding: 30px 28px; min-height: 200px; }
textarea.choice::placeholder { color: rgba(255, 255, 255, 0.82); }
textarea.choice:focus { outline: 3px solid rgba(255, 255, 255, 0.9); outline-offset: -6px; }
.under-duo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; min-height: 44px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Game page ---------- */
.game { padding-top: 40px; display: flex; flex-direction: column; gap: 22px; max-width: 1080px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs span:last-child { color: var(--text); font-weight: 600; }
.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd-hint { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
@media (hover: none) { .kbd-hint { display: none; } }
.shared-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; margin-top: 28px; }
.cta-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cta-card .h3 { margin-bottom: 4px; }
.cta-card p { margin: 0 0 16px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.cat-card:hover { color: var(--text); transform: translateY(-4px); border-color: #3a3a48; }
.cat-art { height: 128px; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.cat-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex-grow: 1; }
.cat-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--display); font-size: 21px; font-weight: 700; }
.cat-desc { color: var(--text-2); font-size: 15px; line-height: 1.45; flex-grow: 1; }
.cat-count { color: var(--text-3); font-size: 14px; font-weight: 600; margin-top: 6px; }
.lock-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 214, 10, 0.12); color: #ffd60a; font-family: var(--font); font-size: 12px; font-weight: 700; }
.cat-card.locked .cat-art { filter: saturate(0.55) brightness(0.8); }
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-art { height: 84px; font-size: 40px; }
  .cat-body { padding: 12px 14px 14px; gap: 4px; }
  .cat-name { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 18px; }
  .cat-desc { display: none; }
  .cat-count { margin-top: 0; font-size: 13px; }
}

/* ---------- Features + app band ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .18s ease; }
.feature:hover { color: var(--text); border-color: #3a3a48; }
.feature h3 { margin: 6px 0 0; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); flex-grow: 1; }
.f-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.f-ico svg { width: 24px; height: 24px; fill: #fff; }
.app-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.app-band .store-badge { margin-top: 26px; }
@media (max-width: 860px) { .app-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; } }
.app-art { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 360px; justify-self: center; width: 100%; }
.art-card { display: flex; align-items: center; justify-content: center; min-height: 112px; border-radius: 22px; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.art-card.a { background: var(--card-a); transform: rotate(-2deg); }
.art-card.b { background: var(--card-b); transform: rotate(1.5deg); }
.art-or { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 14px; }

/* ---------- Page layout (Stats, Create, Settings, Sign in) ---------- */
.page { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 0; display: flex; flex-direction: column; gap: 24px; }
.page-top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.page-top:empty { display: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 44px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; color: #fff; background: var(--blue-strong); transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.block { width: 100%; }
.btn.gray { background: var(--surface-2); font-weight: 600; border: 1px solid var(--line); }
.btn.white { background: #fff; color: #000; font-weight: 600; }
.btn.white:hover { color: #000; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.icon-only { padding: 0; width: 44px; }
.glass-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600; }
.glass-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--blue); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- People ---------- */
.avatar { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); border: 2px solid rgba(255, 255, 255, 0.7); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; overflow: hidden; color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; border-width: 1px; }
.avatar.sm svg { width: 18px; height: 18px; }
.who { display: flex; align-items: center; gap: 14px; }
.who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-name { font-size: 21px; font-weight: 700; }
.who-sub { font-size: 15px; color: var(--text-2); }

/* ---------- Tiles (stats) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: 14px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 128px; padding: 18px; border-radius: var(--radius); color: #fff; border: 0; text-align: left; }
.tile .emoji { font-size: 32px; line-height: 1; }
.tile .name { font-size: 20px; font-weight: 700; }
.tile .count { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.tile .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tile.locked { opacity: 0.62; }
.stat-tile { gap: 22px; }
.stat-tile .ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); display: flex; align-items: center; justify-content: center; }
.stat-tile .ico svg { width: 20px; height: 20px; fill: #fff; }
.stat-tile .value { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.stat-tile .label { font-size: 14px; font-weight: 600; }

/* ---------- Streak card ---------- */
.streak { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #c95f00 0%, #d0452f 55%, #c41e55 100%); }
a.streak:hover { color: #fff; }
.streak .flame { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; }
.streak .flame svg { width: 28px; height: 28px; fill: #fff; }
.streak .t1 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.streak .t2 { font-size: 15px; }

/* ---------- Grouped lists ---------- */
.group { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 18px; border: 0; border-top: 1px solid var(--separator); background: transparent; color: var(--text); font-size: 16px; text-align: left; width: 100%; }
.group > .row:first-child { border-top: 0; }
a.row:hover, button.row:hover { background: var(--surface-2); color: var(--text); }
.row .grow { flex-grow: 1; min-width: 0; }
.row .badge-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.row .badge-ico svg { width: 17px; height: 17px; fill: #fff; }
.row .chev { width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 3; }
.row.blue { color: var(--blue); }
.row.danger { color: #ff6961; }
.card-pad { padding: 20px; }

/* ---------- Status badges ---------- */
.status { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.pending { background: rgba(255, 159, 10, 0.16); color: #ffb340; }
.status.approved { background: rgba(48, 209, 88, 0.16); color: #4cdb72; }
.status.rejected { background: rgba(255, 69, 58, 0.16); color: #ff6961; }

/* ---------- Pickers + forms ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; }
.pick-chip[aria-checked="true"] { color: #fff; border-color: transparent; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 16px; width: 100%; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(90, 156, 255, 0.3); }
.input::placeholder { color: var(--text-3); }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.segmented button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 600; color: var(--text-2); }
.segmented button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; background: rgba(255, 69, 58, 0.14); color: #ff8a80; }
.form-msg.ok { background: rgba(48, 209, 88, 0.14); color: #6be38a; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.66); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .modal-back { align-items: center; } }
.modal { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.modal h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; }
.reason { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-size: 16px; }
.reason input { width: 20px; height: 20px; accent-color: var(--blue); }

/* ---------- Toast + misc ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 200; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: #2a2a35; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.16); border-top-color: #fff; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 40px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty .big { font-size: 48px; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: #7d7aff; }
.lean { display: flex; gap: 3px; height: 10px; }
.lean > span:first-child { border-radius: 999px 0 0 999px; background: var(--card-a); }
.lean > span:last-child { border-radius: 0 999px 999px 0; background: var(--card-b); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #fff; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--text-2); }

/* Settings preview cards reuse .choice inside a .duo: keep them compact */
.group .duo { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.group .duo .choice { min-height: 92px; padding: 18px; align-items: center; justify-content: center; text-align: center; margin: 0 !important; }
.group .duo .or-dot { width: 40px; height: 40px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Store */
.store-card .f-ico { width: 52px; height: 52px; }
.store-card p { margin-bottom: 18px; }
