/* YouPick: warm page, game-show stage. Ad slots reserve their space up front. */
:root {
  --ink: #1b1340;
  --ink-2: #4b4570;
  --muted: #5d5884;     /* ≥ 5.2:1 on every background we use (WCAG AA) */
  --bg: #fff8ee;
  --card: #ffffff;
  --line: #eadfce;
  --gold: #ffb703;
  --gold-d: #e09f00;
  --red: #ef476f;
  --green: #047857;     /* white text on it: 5.5:1 */
  --field: #938872;     /* form-control borders: ≥ 3:1 (WCAG 1.4.11) */
  --stage-1: #2b1d6b;
  --stage-2: #120a3a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(27, 19, 64, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: #5a3fd6; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 3px solid #7b5cff; outline-offset: 2px; }

/* ---------- header / footer ---------- */
.top { background: var(--ink); color: #fff; }
.top__in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { color: #fff; font-weight: 900; font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.logo__wheel { width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 25%, var(--gold) 0 50%, #06d6a0 0 75%, #118ab2 0); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { color: #e9e5ff; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; text-decoration: underline; }
.nav .btn { color: var(--ink); }
.foot { margin-top: 48px; background: #efe5d4; }
.foot__in { max-width: 1180px; margin: 0 auto; padding: 24px 16px 32px; color: var(--ink-2); font-size: .9rem; }
.foot__small { font-size: .8rem; color: var(--muted); max-width: 70ch; }
.foot a { color: var(--ink-2); }
.flashes { max-width: 760px; margin: 12px auto 0; padding: 0 16px; }
.flash { margin: 6px 0; padding: 10px 14px; border-radius: 10px; background: #e8f0ff; }
.flash--ok { background: #dcf7ec; } .flash--error { background: #ffe3e8; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--gold); color: var(--ink); font: inherit; font-weight: 800;
  padding: 12px 20px; border-radius: 12px; box-shadow: 0 3px 0 var(--gold-d); transition: transform .06s;
}
.btn:hover { filter: brightness(1.04); } .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-d); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn--small { padding: 7px 14px; font-size: .9rem; box-shadow: 0 2px 0 var(--gold-d); }
.btn--ghost { background: #fff; border: 2px solid var(--line); box-shadow: none; color: var(--ink); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 3px 0 #035c43; }
.btn--danger { background: var(--red); color: #fff; box-shadow: 0 3px 0 #c22c52; }
.linkbtn { background: none; border: 0; padding: 0; color: #5a3fd6; cursor: pointer; font: inherit; text-decoration: underline; }
.top .linkbtn { color: #e9e5ff; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--field); border-radius: 10px; padding: 10px 12px;
}
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form small { font-weight: 400; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; }
.inline { display: inline; } .inline-form { display: flex; gap: 8px; margin-bottom: 16px; }

/* ---------- layout ---------- */
.layout { max-width: 1180px; margin: 0 auto; padding: 8px 16px 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.page { max-width: 980px; margin: 0 auto; padding: 24px 16px; }
.narrow { max-width: 440px; margin: 32px auto; }
.narrow-form { max-width: 520px; margin: 24px auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2, .card h3 { margin-top: 0; }
.card--warn { background: #fff4d6; border-color: #f1d28a; }
.card--plain { box-shadow: none; }
.two { display: grid; gap: 16px; } @media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 70ch; } .prose h2 { margin-top: 1.4em; }
.hero { text-align: center; margin: 12px 0 14px; }
.hero p { margin: 0; color: var(--ink-2); }

/* ---------- ads: reserved space, no layout shift ---------- */
.ad { position: relative; margin: 12px auto; text-align: center; overflow: hidden; max-width: 100%; }
.ad__label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ad--leader { max-width: 728px; min-height: 100px; }
.ad--rect { width: 300px; min-height: 250px; }
.ad--inline { max-width: 336px; min-height: 280px; }
.ad--tall { width: 300px; min-height: 600px; display: none; }
@media (min-width: 980px) { .ad--tall { display: block; } .ad--leader { min-height: 90px; } .ad--inline { display: none; } }
.ad--preview .ad__box { display: grid; place-items: center; height: calc(100% - 14px); min-height: 80px; border: 2px dashed #cdbfa6; border-radius: 10px; color: var(--muted); background: repeating-linear-gradient(45deg, #fbf3e3, #fbf3e3 10px, #f6ebd6 10px, #f6ebd6 20px); }
.ad--preview.ad--leader .ad__box { min-height: 76px; } .ad--preview.ad--rect .ad__box { min-height: 236px; }
.ad--preview.ad--tall .ad__box { min-height: 586px; } .ad--preview.ad--inline .ad__box { min-height: 266px; }
.sticky { position: sticky; top: 16px; }

/* ---------- location ---------- */
.loc { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.loc input { flex: 1 1 200px; width: auto; }
.loc__status { text-align: center; min-height: 1.5em; margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }

/* ---------- stage + wheel ---------- */
.stage { position: relative; margin: 12px auto 0; padding: 28px 16px 24px; border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, var(--stage-1), var(--stage-2)); box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 255, 255, .06); }
.wheel-wrap { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.pointer { position: absolute; z-index: 2; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; transform-origin: 50% 20%;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 38px solid #fff; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.pointer::after { content: ""; position: absolute; left: -9px; top: -34px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #fff; }
.spin { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; min-width: 70px; border-radius: 50%;
  border: 4px solid var(--gold); background: radial-gradient(circle at 35% 30%, #ff6b8b, var(--red)); color: #fff; font: 900 clamp(.9rem, 3.4vw, 1.3rem)/1 system-ui, sans-serif; letter-spacing: .04em;
  cursor: pointer; box-shadow: 0 5px 0 #a12043, 0 8px 20px rgba(0, 0, 0, .4); }
.spin:hover:not([disabled]) { filter: brightness(1.08); } .spin:active:not([disabled]) { transform: translate(-50%, calc(-50% + 3px)); }
.spin[disabled] { cursor: progress; }
.sound { position: absolute; right: 14px; top: 12px; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.notice { margin: 12px auto 0; max-width: 560px; padding: 12px 16px; border-radius: 12px; background: #ffe3e8; color: #7a1431; font-weight: 600; text-align: center; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ---------- result ---------- */
.result { margin: 16px auto 0; max-width: 560px; text-align: center; background: #fff; border: 3px solid var(--gold); border-radius: 20px; padding: 18px 18px 20px; box-shadow: var(--shadow); }
.result[hidden], .notice[hidden], .spot[hidden] { display: none; }
.result__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); font-weight: 700; }
.result h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: .15em 0 .2em; color: var(--ink); }
.result__meta { margin: 0; color: var(--ink-2); font-weight: 600; } .result__addr { margin: 2px 0 14px; color: var(--muted); }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.result__saved { margin: 12px 0 0; font-weight: 600; color: var(--green); }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #fff0c2; color: #7a5600; border: 1px solid #f1d28a; border-radius: 999px; padding: 1px 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .85rem; color: var(--ink-2); }
.chips .chip--spon { background: #fff0c2; border-color: #f1d28a; color: #7a5600; }

/* ---------- options ---------- */
.options { margin: 18px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; }
.options summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style-position: outside; }
.options summary span { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.options__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.options__grid label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.options__grid .switch { grid-column: 1 / -1; }

/* Toggle switch: big tap target for phones */
.switch { position: relative; display: flex !important; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700 !important; font-size: 1rem !important; }
.switch input { position: absolute; left: 0; top: 50%; width: 56px; height: 32px; margin: 0; transform: translateY(-50%); opacity: 0; cursor: pointer; }
.switch__track { flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px; background: #8a7f69; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(24px); }
.switch input:focus-visible + .switch__track { outline: 3px solid #7b5cff; outline-offset: 2px; }
.switch__state { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 600; }
.skip { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.skip legend { font-weight: 800; padding: 0; margin-bottom: 8px; } .skip legend span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.skip__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; cursor: pointer; user-select: none; border: 2px solid var(--field); border-radius: 999px; padding: 5px 14px; font-size: .9rem; background: #fff; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.pill input:focus-visible + span { outline: 3px solid #7b5cff; outline-offset: 2px; }
.options__foot { margin-top: 14px; }

/* ---------- sidebar ---------- */
.side { display: flex; flex-direction: column; align-items: center; }
.side .card { width: 100%; }
.spot { width: 100%; background: linear-gradient(135deg, #fff7da, #ffe9a8); border: 2px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; }
.spot__tag { margin: 0 0 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #7a5600; }
.spot h3 { margin: 0; font-size: 1.25rem; } .spot__meta { margin: 2px 0; color: var(--ink-2); font-size: .9rem; } .spot__blurb { margin: 4px 0 10px; }
.card ol { padding-left: 1.2em; margin: 0; } .card ol li { margin: 4px 0; }
@media (max-width: 979px) { .side { order: 2; } .side .card--plain { display: none; } }

/* ---------- misc pages ---------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history a { font-weight: 700; }
.tiers { display: grid; gap: 16px; margin: 20px 0; } @media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { text-align: center; } .tier ul { text-align: left; padding-left: 1.1em; }
.tier__price { font-size: 2.4rem; font-weight: 900; margin: 0; } .tier__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.tier--silver { border: 2px solid var(--gold); } .tier--gold { border: 2px solid var(--gold); background: #fffaf0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- back office ---------- */
.adm .page { max-width: 1100px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-size: 1.6rem; } .kpi span { color: var(--muted); font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f6ecda; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table .done { opacity: .5; }
.table input[type=number] { width: 100px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eee; }
.tag--ok { background: #dcf7ec; color: #065f46; } .tag--bad { background: #ffe3e8; color: #7a1431; }
@media (max-width: 760px) { .table { display: block; overflow-x: auto; } }

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

@media (max-width: 520px) {
  .top__in { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 10px; }
  .nav a[href="/advertise"] { display: none; }
  .logo { font-size: 1.15rem; }
}

/* ---------- your own places ---------- */
.mine { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.mine legend { font-weight: 800; padding: 0; margin-bottom: 8px; } .mine legend span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.mine__form { display: flex; gap: 8px; } .mine__form input { flex: 1; }
.mine__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.mine__list li { display: inline-flex; align-items: center; gap: 4px; background: #fff0c2; border: 1px solid #f1d28a; border-radius: 999px; padding: 2px 4px 2px 12px; font-size: .9rem; }
.mine__list button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px 8px; color: #7a5600; border-radius: 999px; }
.mine__list button:hover { background: rgba(0, 0, 0, .08); }
.mine__hint { margin: 8px 0 0; font-size: .85rem; }
.mine .switch { margin-top: 6px; }

/* ---------- friends / group rooms ---------- */
.friends { border: 2px solid var(--gold); background: #fffaf0; border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; }
.friends h3 { margin: 0 0 8px; font-size: 1.1rem; }
.friends p { margin: 6px 0 10px; }
.friends__name { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 8px; max-width: 320px; }
.invite { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.members li { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: .95rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #cfc6b4; flex: none; align-self: center; }
.dot--on { background: var(--green); box-shadow: 0 0 0 3px rgba(6, 167, 125, .18); }
.friends__note { font-size: .82rem; }
.group__skip { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.room-bar { max-width: 560px; margin: 8px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.room-bar[hidden] { display: none; }
.room-bar .linkbtn { color: #ffd966; }
.center { text-align: center; }
.result--share { margin-top: 24px; } .result--share h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: .1em 0 .2em; }

/* ---------- cookie / ad consent ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.consent[hidden] { display: none; }
.consent__in { max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 360px; font-size: .92rem; } .consent a { color: #ffd966; }
.consent__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ads-off .ad { display: none; }
.skip__grid[hidden] { display: none; }
/* Section titles are wrapped in spans (group mode relabels them); keep them bold, only the sub-label muted. */
.skip legend span:first-child, .mine legend span:first-child { font-weight: 800; color: inherit; font-size: inherit; }

/* ---------- thumbs ---------- */
.thumb { font-size: 1.15rem; line-height: 1; padding: 7px 10px; border-radius: 10px; border: 2px solid var(--field); background: #fff; cursor: pointer; filter: grayscale(.6); opacity: .75; }
.thumb:hover { filter: none; opacity: 1; }
.thumb[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--ink); background: #fff7da; }
.thumbs { display: inline-flex; gap: 6px; }
.history__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.ask { max-width: 560px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--gold);
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 600; }
.ask[hidden] { display: none; }
.ask__btns { display: inline-flex; gap: 8px; align-items: center; }
.ask .thumb { filter: none; opacity: 1; }
.rate-big { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.rate-big .btn { font-size: 1.15rem; padding: 14px 22px; }
.rate-again { margin-top: 10px; }
@media (max-width: 560px) {
  .history li { flex-direction: column; gap: 8px; }
  .history__actions { justify-content: space-between; }
}
.form .pill { font-weight: 500; }
.nav__btn { background: none; border: 1px solid rgba(255, 255, 255, .35); color: #e9e5ff; font: inherit; font-size: .9rem; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.nav__btn:hover { color: #fff; border-color: #fff; }
.form .check { align-items: flex-start; } .form .check input { margin-top: 3px; flex: none; }
.form > p { margin: 0; }
/* Sidebar/section titles are h2 for a correct outline but keep the smaller look. */
h2.h3 { font-size: 1.17rem; }
.spot h2.h3 { font-size: 1.25rem; margin: 0; }
.friends h2.h3 { margin: 0 0 8px; font-size: 1.1rem; }
.ad { color: var(--muted); }
