/* Buddy Balls redesign prototype. Colours are the current app's own values (see COLOURS.md). */
@font-face { font-family: 'Anton'; src: url('assets/fonts/Anton-Regular.ttf') format('truetype'); font-display: block; }
@font-face { font-family: 'Figtree'; src: url('assets/fonts/Figtree-Variable.ttf') format('truetype'); font-weight: 300 900; font-display: block; }

:root {
  --navy: #0E172C;      /* app background, splash, adaptive icon (app.config) */
  --navy-2: #162343;    /* surface */
  --navy-3: #1D2E59;    /* raised surface */
  --navy-4: #243A6F;    /* outline / hover */
  --ink: #00132E;       /* deepest */
  --blue: #004CB8;      /* brand blue */
  --blue-6: #00398A;
  --blue-3: #96BDF5;    /* light blue text/accent */
  --yellow: #E0E24F;    /* brand yellow: CTA + selection (notification colour in app.config) */
  --yellow-2: #ECED91;
  --yellow-7: #929329;
  --yellow-0: #F7F8D4;
  --text: #FDFDF5;
  --soft: #CDD2E0;
  --muted: #98A2B3;
  --ok: #12B76A;
  --err: #FF8A80;       /* error text on navy (AA); #F04438 for fills */
  --err-fill: #F04438;
  --r-xl: 30px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --display: 'Anton', 'Oswald', 'Impact', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #060a14; font-family: var(--body); color: var(--text); display: flex; justify-content: center; align-items: center; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* phone */
.phone { position: relative; width: 390px; height: 844px; overflow: hidden; background: var(--navy); border-radius: 44px;
  box-shadow: 0 0 0 10px #111827, 0 30px 80px #000c; isolation: isolate; }
@media (max-width: 430px) { body { display: block; } .phone { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; } }
body.shot { background: var(--navy); display: block; }
body.shot .phone { border-radius: 0; box-shadow: none; }

/* atmosphere: blue stadium glow + grain */
.phone::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 50% at 50% -10%, #004CB855, transparent 60%), radial-gradient(60% 30% at 80% 105%, #E0E24F12, transparent 70%); }
.grain { position: absolute; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.status { position: absolute; top: 0; left: 0; right: 0; height: 56px; background: linear-gradient(180deg, #0E172C 0, #0E172C 74%, #0E172C00); z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 6px 30px 0; font-size: 14px; font-weight: 700; pointer-events: none; }
.status .island { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 120px; height: 32px; border-radius: 20px; background: #000; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--yellow); }
.status .sig { display: flex; gap: 5px; align-items: center; }
.demo-tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; z-index: 55; cursor: pointer; border-radius: 20px; }

.screen { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; padding: 56px 0 110px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.no-tabs { padding-bottom: 120px; }
.screen.flush { padding-top: 0; }
.pad { padding: 0 20px; }

/* type */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.y { color: var(--yellow); }
.b3 { color: var(--blue-3); }
.err { color: var(--err); }
.ok { color: var(--ok); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.gap-s { gap: 6px; } .gap-l { gap: 16px; }
.mt-s { margin-top: 8px; } .mt { margin-top: 16px; } .mt-l { margin-top: 26px; } .mb { margin-bottom: 16px; } .mb-s { margin-bottom: 8px; }
.center { text-align: center; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* header */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 14px; gap: 12px; }
.topbar .title { font-size: 20px; font-weight: 700; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ffffff10; backdrop-filter: blur(10px); position: relative; flex: none; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--navy); background: var(--yellow); flex: none; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.blue { background: var(--blue); color: var(--text); }
.avatar.n3 { background: var(--navy-3); color: var(--soft); }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-row svg { width: 40px; height: 26px; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }

/* carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 56px 4px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.sport { flex: 0 0 278px; height: 200px; border-radius: var(--r-xl); position: relative; overflow: hidden; scroll-snap-align: center; background: var(--navy-3) center/cover; }
.sport::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0E172C10, #0E172Cb0); }
.sport .word { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-size: 64px; text-shadow: 0 4px 24px #000a; }
.sport.off { filter: grayscale(1) brightness(.6); }
.sport .soon { position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--soft); background: #0E172Ccc; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.sport .live { position: absolute; z-index: 2; top: 14px; left: 16px; font-size: 11px; font-weight: 800; color: var(--navy); background: var(--yellow); padding: 4px 10px; border-radius: 99px; }

/* section heads */
.sec { display: flex; align-items: baseline; justify-content: space-between; padding: 26px 20px 12px; }
.sec h2 { font-size: 20px; }
.sec a, .sec button { font-size: 13px; color: var(--yellow); font-weight: 700; }

/* game cards (image cards like "Grounds near me") */
.gcard { display: block; margin: 0 16px 14px; padding: 10px; border-radius: var(--r-xl); background: var(--navy-2); border: 1px solid #ffffff0a; position: relative; }
.gcard .ph { height: 150px; border-radius: 22px; background: var(--navy-3) center/cover; position: relative; overflow: hidden; }
.gcard .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #0E172C99); }
.gcard .when { position: absolute; z-index: 1; top: 10px; left: 10px; display: flex; gap: 6px; }
.chip-dark { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: #0E172Cd9; color: var(--text); backdrop-filter: blur(6px); }
.chip-dark.y { background: var(--yellow); color: var(--navy); }
.gcard .meta { display: flex; justify-content: space-between; align-items: flex-end; padding: 12px 8px 4px; gap: 10px; }
.gcard .name { font-size: 17px; font-weight: 700; }
.gcard .place { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price { font-family: var(--display); font-size: 30px; line-height: 1; }
.price small { font-size: 16px; margin-right: 1px; }
.spots { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--yellow); }
.spots.full { color: var(--err); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; max-width: 150px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-4); }
.dots i.on { background: var(--blue-3); }
.tap-hint { position: absolute; z-index: 3; right: 22px; top: 22px; }

/* starting soon (compact horizontal) */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 200px; border-radius: var(--r-lg); background: var(--navy-2); padding: 8px; border: 1px solid #ffffff0a; }
.mini .ph { height: 92px; border-radius: 18px; background: center/cover; }
.mini .b { padding: 10px 6px 4px; }

/* book again card */
.again { margin: 22px 16px 0; border-radius: var(--r-xl); padding: 16px; background: linear-gradient(135deg, #004CB8 0%, #1D2E59 70%); position: relative; overflow: hidden; }
.again::after { content: ''; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #E0E24F33, transparent 70%); }
.again .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--yellow-2); }
.again .big { font-family: var(--display); font-size: 28px; margin-top: 6px; line-height: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn-y { background: linear-gradient(100deg, #E0E24F, #ECED91); color: var(--navy); box-shadow: 0 8px 24px #E0E24F33; }
.btn-y:active { transform: scale(.98); }
.btn-ghost { background: #ffffff12; color: var(--text); }
.btn-line { border: 1.5px solid var(--navy-4); color: var(--text); }
.btn-blue { background: var(--blue); color: var(--text); }
.btn-danger { background: var(--err-fill); color: #fff; }
.btn-w { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-black { background: #000; color: #fff; border: 1px solid #ffffff22; }
.btn-white { background: #fff; color: #111; }
.linkbtn { color: var(--yellow); font-weight: 700; font-size: 14px; }

/* detail hero */
.hero { height: 360px; position: relative; background: center/cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0E172C66 0%, transparent 30%, #0E172C 100%); }
.hero .bar { position: absolute; z-index: 2; top: 54px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.hero .txt { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 44px; }
.hero .kind { font-size: 14px; color: var(--soft); }
.hero h1 { font-size: 30px; margin: 2px 0 10px; }
.badge-line { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1.5px solid var(--yellow); color: var(--yellow); border-radius: 99px; font-size: 12px; font-weight: 700; }
.panel { position: relative; z-index: 3; margin-top: -26px; background: var(--navy-2); border-radius: 30px 30px 0 0; padding: 20px 0 10px; min-height: 400px; }
.lbl-ic { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--soft); padding: 0 20px; margin: 20px 0 10px; }
.lbl-ic svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: #ffffff0d; color: var(--yellow-2); border: 1px solid #ffffff10; }
.chip.sel { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.chip.btnchip { cursor: pointer; color: var(--soft); }
.chip.btnchip.sel { color: var(--navy); }

.dates { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: 0 0 76px; height: 92px; border-radius: 20px; background: var(--navy-3); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid transparent; }
.date .n { font-family: var(--display); font-size: 36px; line-height: 1; }
.date .d { font-size: 15px; color: var(--soft); margin-top: 4px; }
.date.sel { border-color: var(--yellow); background: #E0E24F14; }
.date.sel .d { color: var(--yellow); font-weight: 700; }
.date.none { opacity: .4; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }
.slot { height: 58px; border-radius: 14px; background: var(--navy-3); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid transparent; font-size: 15px; font-weight: 600; }
.slot .s { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.slot.sel { border-color: var(--yellow); color: var(--yellow); background: #E0E24F14; }
.slot.sel .s { color: var(--yellow-2); }
.slot.full { opacity: .45; text-decoration: line-through; }

.pitch { margin: 0 20px; border-radius: 22px; background: linear-gradient(180deg, #13305e, #0f2448); border: 1px solid #ffffff12; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.pitch::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 50%; border-left: 1.5px dashed #ffffff22; }
.team h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.team h4 i { width: 10px; height: 10px; border-radius: 3px; }
.pos { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 10px; border-radius: 12px; background: #0E172C99; font-size: 13px; font-weight: 700; margin-bottom: 6px; border: 2px solid transparent; }
.pos .c { font-size: 11px; color: var(--muted); }
.pos.sel { border-color: var(--yellow); color: var(--yellow); }
.pos.sel .c { color: var(--yellow-2); }
.pos.full { opacity: .4; }

.info-list { margin: 0 20px; border-radius: 20px; background: var(--navy-3); }
.info-list .it { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #ffffff0d; font-size: 14px; }
.info-list .it:last-child { border-bottom: 0; }
.info-list svg { width: 20px; height: 20px; color: var(--blue-3); flex: none; }

/* sticky price bar */
.sticky { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 14px 22px 28px; background: linear-gradient(180deg, #162343ee, #162343); backdrop-filter: blur(14px); border-top: 1px solid #ffffff10; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 26px 26px 0 0; }
.sticky .p .l { font-size: 13px; color: var(--soft); }
.sticky .p .price { font-size: 38px; }

/* step counter */
.steps { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--yellow); background: #E0E24F18; border: 1px solid #E0E24F44; padding: 4px 10px; border-radius: 99px; }
.steps b { display: inline-flex; gap: 3px; }
.steps b i { width: 14px; height: 4px; border-radius: 2px; background: #E0E24F44; }
.steps b i.on { background: var(--yellow); }

/* tabs */
.tabs { position: absolute; z-index: 30; left: 14px; right: 14px; bottom: 18px; height: 70px; border-radius: 26px; background: #0b1326ee; backdrop-filter: blur(16px); border: 1px solid #ffffff12; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 12px 40px #0009; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--yellow); }
.tabs a.on::before { content: ''; position: absolute; top: 8px; width: 44px; height: 32px; border-radius: 16px; background: #E0E24F1f; z-index: -1; }
.tabs .badge { position: absolute; top: 9px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-size: 10px; display: grid; place-items: center; padding: 0 4px; }

/* sheets */
.scrim { position: absolute; inset: 0; z-index: 40; background: #000000a6; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--navy-2); border-radius: 30px 30px 0 0; padding: 10px 20px 30px; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); border-top: 1px solid #ffffff14; }
.sheet.on { transform: none; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: #ffffff30; margin: 0 auto 14px; }
.sumcard { display: flex; gap: 12px; padding: 10px; border-radius: 20px; background: var(--navy-3); }
.sumcard .ph { width: 78px; height: 78px; border-radius: 14px; background: center/cover; flex: none; }
.lines { margin: 14px 0; font-size: 14px; }
.lines .l { display: flex; justify-content: space-between; padding: 7px 0; }
.lines .l.t { border-top: 1px solid #ffffff14; margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 16px; }
.toggle { width: 48px; height: 28px; border-radius: 14px; background: var(--navy-4); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); transition: transform .2s; }
.toggle.on { background: var(--yellow); }
.toggle.on::after { transform: translateX(20px); background: var(--navy); }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.testnote { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 7px; }
.input { width: 100%; height: 56px; border-radius: 16px; background: var(--navy-3); border: 1.5px solid #ffffff12; padding: 0 16px; font-size: 16px; outline: none; display: flex; align-items: center; gap: 10px; }
.input:focus, .input:focus-within { border-color: var(--yellow); }
.input input, .input select { background: none; border: 0; outline: none; flex: 1; height: 100%; font-size: 16px; min-width: 0; }
.input select option { background: var(--navy-2); }
.input .pre { font-weight: 700; color: var(--soft); padding-right: 10px; border-right: 1px solid #ffffff22; }
.input.locked { opacity: .65; }
.input.bad { border-color: var(--err); }
.otp { display: flex; gap: 9px; justify-content: center; }
.otp input { width: 48px; height: 60px; border-radius: 14px; background: var(--navy-3); border: 1.5px solid #ffffff14; text-align: center; font-family: var(--display); font-size: 28px; outline: none; }
.otp input:focus { border-color: var(--yellow); }
.otp.bad input { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--soft); }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--navy-4); flex: none; display: grid; place-items: center; }
.check.on i { background: var(--yellow); border-color: var(--yellow); }
.check.on i::after { content: ''; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* lists */
.list { margin: 0 16px; border-radius: 22px; background: var(--navy-2); overflow: hidden; border: 1px solid #ffffff0a; }
.li { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-bottom: 1px solid #ffffff0b; font-size: 15px; }
.li:last-child { border-bottom: 0; }
.li > svg { width: 22px; height: 22px; color: var(--blue-3); flex: none; }
.li .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.li .v { font-size: 14px; color: var(--muted); }
.card { margin: 0 16px; border-radius: 24px; background: var(--navy-2); padding: 16px; border: 1px solid #ffffff0a; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 16px; padding: 4px; border-radius: 99px; background: var(--navy-2); }
.seg button { height: 40px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--yellow); color: var(--navy); }

/* rankings */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 0 16px; }
.pod { text-align: center; }
.pod .blk { border-radius: 18px 18px 6px 6px; margin-top: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 34px; }
.pod .blk.g1 { height: 110px; background: linear-gradient(180deg, #E0E24F, #929329); color: var(--navy); }
.pod .blk.g2 { height: 84px; background: linear-gradient(180deg, #96BDF5, #004CB8); color: var(--navy); }
.pod .blk.g3 { height: 66px; background: linear-gradient(180deg, #1D2E59, #162343); color: var(--soft); }
.rk { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #ffffff0b; }
.rk .n { width: 22px; font-family: var(--display); font-size: 18px; color: var(--muted); text-align: center; }
.rk.me { background: #E0E24F14; }
.rk.me .n { color: var(--yellow); }
.lvl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--blue); color: var(--text); }
.posb { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--navy-3); color: var(--blue-3); letter-spacing: .04em; }
.mybar { position: absolute; z-index: 25; left: 14px; right: 14px; bottom: 98px; border-radius: 20px; padding: 12px 16px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; gap: 12px; font-weight: 700; box-shadow: 0 10px 30px #0008; }

/* profile */
.prog { height: 10px; border-radius: 5px; background: var(--navy-4); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #E0E24F, #ECED91); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.stat { background: var(--navy-2); border-radius: 20px; padding: 14px 10px; text-align: center; border: 1px solid #ffffff0a; }
.stat .v { font-family: var(--display); font-size: 28px; line-height: 1; }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ticket */
.ticket { margin: 8px 20px 0; border-radius: 30px; overflow: hidden; background: var(--navy-2); border: 1px solid #ffffff12; position: relative; }
.ticket .top { height: 170px; background: center/cover; position: relative; }
.ticket .top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0E172C33, #162343); }
.ticket .top .display { position: absolute; z-index: 1; left: 20px; bottom: 12px; font-size: 54px; }
.ticket .cut { height: 0; border-top: 2px dashed #ffffff22; margin: 0 22px; position: relative; }
.ticket .cut::before, .ticket .cut::after { content: ''; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); }
.ticket .cut::before { left: -38px; } .ticket .cut::after { right: -38px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 18px 20px; }
.tgrid .k { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tgrid .v { font-size: 16px; font-weight: 700; margin-top: 3px; }
.qr { width: 96px; height: 96px; background: #fff; border-radius: 14px; padding: 8px; flex: none; }
.success-ring { width: 74px; height: 74px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin: 0 auto; box-shadow: 0 0 0 10px #E0E24F22, 0 0 60px #E0E24F55; }
.success-ring svg { width: 38px; height: 38px; color: var(--navy); }

/* states */
.state { padding: 50px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state svg.ill { width: 150px; height: 120px; }
.skel { background: linear-gradient(90deg, #162343 0%, #1D2E59 40%, #162343 80%); background-size: 300% 100%; animation: sh 1.3s infinite linear; border-radius: 14px; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #E0E24F33; border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { margin: 0 16px 14px; padding: 12px 14px; border-radius: 16px; background: #F0443822; border: 1px solid #F0443855; color: var(--err); font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.banner.info { background: #004CB833; border-color: #96BDF544; color: var(--blue-3); }
.banner svg { width: 18px; height: 18px; flex: none; }

/* misc */
.toast { position: absolute; z-index: 70; left: 20px; right: 20px; bottom: 104px; padding: 14px 16px; border-radius: 16px; background: var(--text); color: var(--navy); font-weight: 700; font-size: 14px; transform: translateY(20px); opacity: 0; transition: .25s; pointer-events: none; box-shadow: 0 10px 30px #0008; }
.toast.on { transform: none; opacity: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.prod { background: var(--navy-2); border-radius: 22px; padding: 8px; border: 1px solid #ffffff0a; }
.prod .ph { height: 140px; border-radius: 16px; background: var(--navy-3); display: grid; place-items: center; }
.prod .ph svg { width: 96px; height: 96px; }
.prod .b { padding: 10px 6px 4px; }
.map { margin: 0 16px; height: 430px; border-radius: 26px; overflow: hidden; position: relative; background: #0b1730; border: 1px solid #ffffff10; }
.pin { position: absolute; transform: translate(-50%, -100%); background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 12px; white-space: nowrap; box-shadow: 0 6px 16px #0009; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--yellow); border-bottom: 0; }
.pin.me { background: var(--blue); color: var(--text); }
.pin.me::after { border-top-color: var(--blue); }
.prose { padding: 0 22px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.prose h3 { color: var(--text); margin: 20px 0 6px; }
.prose p { margin-bottom: 10px; }
.score { display: flex; align-items: center; justify-content: center; gap: 18px; }
.score .n { font-family: var(--display); font-size: 64px; line-height: 1; }
.stars { display: flex; gap: 8px; justify-content: center; }
.stars svg { width: 34px; height: 34px; color: var(--navy-4); }
.stars svg.on { color: var(--yellow); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px; }
.photos div { aspect-ratio: 1; border-radius: 12px; background: center/cover; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; }
.sw { border-radius: 14px; height: 70px; padding: 8px; font-size: 10px; font-weight: 700; display: flex; align-items: flex-end; border: 1px solid #ffffff14; }
.slides { position: absolute; inset: 0; }
.welcome-bg { position: absolute; inset: 0; background: center/cover; }
.welcome-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0E172C55 0%, #0E172C22 30%, #0E172Cee 62%, #0E172C 100%); }
.pager { display: flex; gap: 6px; }
.pager i { width: 8px; height: 8px; border-radius: 4px; background: #ffffff40; }
.pager i.on { width: 26px; background: var(--yellow); }
.tapring { position: absolute; z-index: 80; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--yellow); box-shadow: 0 0 0 8px #E0E24F44, 0 0 30px #E0E24F; pointer-events: none; transform: translate(-50%, -50%); }
.tapring b { position: absolute; top: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 800 14px var(--body); display: grid; place-items: center; }

/* pitch diagram (position picker, line-up, best by position) */
.pitchd { position: relative; margin: 0 20px; height: 500px; border-radius: 24px; overflow: hidden; border: 1px solid #ffffff14;
  background: repeating-linear-gradient(180deg, #123a2a 0 47px, #154532 47px 94px); }
.pitchd.half { height: 250px; background: repeating-linear-gradient(180deg, #123a2a 0 50px, #154532 50px 100px); }
.pitchd::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, #E0E24F14, transparent 60%), linear-gradient(180deg, #0E172C55, transparent 30%, transparent 70%, #0E172C55); pointer-events: none; }
.pitchd svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitchd .tlab { position: absolute; left: 14px; font-size: 10px; font-weight: 800; letter-spacing: .12em; z-index: 1; }
.pitchd .tlab.red { top: 46%; color: #FF8A80; transform: translateY(-100%); }
.pitchd .tlab.blue { top: 52%; color: #84ADFF; }
.spot { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; line-height: 1; transition: transform .15s; }
.spot em { font-style: normal; font-size: 9px; font-weight: 800; opacity: .8; letter-spacing: .04em; margin-top: 2px; }
.spot.free em { display: none; }
.spot.free { border: 2px dashed #E0E24Fcc; background: #0E172C99; color: var(--yellow); }
.spot.free span { font-size: 12px; }
.spot.taken.red { background: #F04438; color: #fff; border: 2px solid #ffffff44; }
.spot.taken.blue { background: #2563c9; color: #fff; border: 2px solid #ffffff44; }
.spot.sel { background: var(--yellow); color: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 5px #E0E24F55, 0 0 24px #E0E24F; transform: translate(-50%, -50%) scale(1.08); }
.spot.me { background: var(--yellow); color: var(--navy); border: 3px solid #fff; }
i.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
i.lg.free { border: 2px dashed var(--yellow); }
i.lg.taken { background: #2563c9; }
i.lg.sel { background: var(--yellow); }
.li .check { flex: none; }
.btn[disabled] { opacity: .5; }

:where(svg:not([width])) { width: 22px; height: 22px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hrow { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; gap: 7px; }
.hrow::-webkit-scrollbar { display: none; }
.pitchd.half { height: 300px; }
.card.row > svg, .li > svg { color: var(--blue-3); }

/* ===== SSQ-8: QoL, stability, safety ===== */
[hidden] { display: none !important; }
.welcome { position: relative; z-index: 2; height: 844px; max-height: 100%; display: flex; flex-direction: column; padding: 70px 24px 40px; }
.logo-s { width: 34px; height: 22px; display: inline-block; }
.legend { padding: 10px 20px 0; gap: 14px; justify-content: center; flex-wrap: wrap; }
.yy { color: var(--yellow-2); }
.okc { background: #12B76A !important; color: #06281a !important; }
.okcard { background: #12B76A22; border-color: #12B76A55; }
.tred { color: #FF8A80; } .tblue { color: #84ADFF; }
.tdot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.tdot.red { background: #FF8A80; } .tdot.blue { background: #84ADFF; }
.scorecard { background: radial-gradient(120% 90% at 50% 0%, #1D2E59, #162343); }
.bluecard { background: linear-gradient(135deg, #004CB8, #1D2E59); }
.kicker { font-weight: 800; letter-spacing: .1em; color: var(--yellow-2); }
.kicker2 { font-weight: 800; letter-spacing: .1em; }
.stats.s4 { grid-template-columns: repeat(4, 1fr); }
.stats.s5 { grid-template-columns: repeat(5, 1fr); } .stats.s5 .stat { padding: 12px 4px; }
.mini-chip { padding: 2px 7px; font-size: 10px; }
.avatar.big1 { width: 58px; height: 58px; margin: 0 auto; }
.pod .avatar { margin: 0 auto; }
.camdot { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.camdot svg { width: 18px; height: 18px; }
.grp { font-weight: 800; letter-spacing: .08em; }
.li.unread { background: #E0E24F0d; }
.iconbtn.nic { background: var(--navy-3); color: var(--blue-3); }
.li.unread .iconbtn.nic { background: var(--yellow); color: var(--navy); }
.newchip { padding: 2px 7px; font-size: 10px; }
.paper { margin: 0 16px; background: #FDFDF5; color: #0E172C; border-radius: 20px; padding: 22px; font-size: 13px; }
.paper .pm { color: #475467; } .paper .pi { color: #0E172C; }
.paper .rule { border-top: 1px solid #CDD2E0; margin: 12px 0 8px; }
.prodhero { margin: 0 16px; height: 270px; border-radius: 30px; background: radial-gradient(circle at 50% 40%, #1D2E59, #0E172C); display: grid; place-items: center; }
.artbox { background: var(--navy-3); display: grid; place-items: center; }
.thumb { width: 58px; height: 58px; border-radius: 14px; background: center/cover; flex: none; }
.dashed { border-style: dashed; }
.offchip { position: absolute; top: 8px; left: 8px; padding: 3px 8px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--navy-4); flex: none; }
.radio.on { border: 7px solid var(--yellow); }
.list.inset { margin: 14px 0 0; background: var(--navy-3); }
.wacard { margin: 14px 0; background: #0b3d2a; border-color: #25D36644; color: #d9fdd3; }
.wabtn { background: #25D366; color: #06281a; }
.btn.wa { background: #25D36622; color: #7CE6A4; }
.li.remind { background: var(--navy-3); border-radius: 18px; }
.quick { gap: 10px; }
.card.guardian { margin: 0 0 14px; border-color: #96BDF555; background: #004CB822; }
.bul { padding-left: 20px; line-height: 1.7; font-size: 14px; }
.danger { color: var(--err) !important; }
.flipy svg { transform: scaleY(-1); }
.iconbtn.yon { background: var(--yellow); color: var(--navy); }
.iconbtn.ron { background: var(--err-fill); color: #fff; }
.policy { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--soft); background: #004CB826; border: 1px solid #96BDF533; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.policy svg { color: var(--blue-3); margin-top: 1px; }
.seg.seg4 button { font-size: 13px; }
.sw.dk { color: #0E172C; } .sw { color: #FDFDF5; }
.input.tall { height: 90px; align-items: flex-start; padding-top: 14px; }
.mini.promo { flex-basis: 220px; background: linear-gradient(135deg, #004CB8, #1D2E59); padding: 14px; }
.iconbtn.big { width: 54px; height: 54px; }
.li { width: 100%; text-align: left; }
button.li { color: inherit; }

/* offline banner */
.offline { position: sticky; top: 0; z-index: 25; margin: 0 12px 10px; padding: 10px 12px; border-radius: 14px; background: #3a2a0a; border: 1px solid #FDB02266; color: #FDE7B0; font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.offline svg { flex: none; color: #FDB022; }
.screen.flush.has-offline .offline { position: absolute; top: 52px; left: 0; right: 0; }

/* pull to refresh */
.ptr { height: 0; overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--yellow); transition: height .15s; }

/* toast / undo snackbar */
.toast { display: flex; align-items: center; gap: 12px; pointer-events: none; }
.toast.on { pointer-events: auto; }
.toast span { flex: 1; }
.snack-btn { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 12px; background: var(--navy); color: var(--yellow); font-weight: 800; }

/* double-tap guard: disabled + spinner */
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #0E172C44; border-top-color: #0E172C; animation: spin .8s linear infinite; }
.btn[disabled], button[disabled] { opacity: .55; cursor: not-allowed; }
.btn.busy[disabled] { opacity: 1; }

/* tap targets: at least 44 x 44 */
.btn-sm { height: 44px; }
.seg button { height: 44px; }
.chip.btnchip { min-height: 44px; padding: 0 14px; }
.linkbtn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.check { min-height: 44px; width: 100%; text-align: left; align-items: center; padding: 4px 0; }
.li .check { width: auto; min-width: 44px; }
.pager button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.pager button i { width: 8px; height: 8px; border-radius: 4px; background: #ffffff40; display: block; }
.pager button.on i { width: 26px; background: var(--yellow); }
.toggle { position: relative; }
.toggle::before { content: ''; position: absolute; inset: -8px -2px; }
.stars button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.tabs a { min-height: 44px; }
.spot { min-width: 50px; min-height: 50px; }

/* visible focus */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 2px; border-radius: 12px; }
.btn-y:focus-visible { outline-color: #FDFDF5 !important; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .skel { background: var(--navy-3); }
  .spinner, .btn.busy::after { border-top-color: var(--yellow); }
}
