/* Parla katılımcı uygulaması. Derleme adımı yoktur; dosya doğrudan sunulur. */
/* Yerleşim: masaüstünde solda ekran listesi + ortada telefon çerçevesi; telefonda uygulama tam ekran.
   Uygulama: sabit üst şerit, kayan içerik, başparmak hizasında 5 sekmeli alt menü. */
:root {
  --brand: #0054a4;          /* marka mavisi */
  --brand-strong: #003f7d;
  --brand-soft: #e3effb;
  --ink: #0b1b2e;            /* maviye çalan koyu */
  --ink-2: #4a5d73;
  --ink-3: #7c8da1;
  --bg: #f1f5fa;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --line: #dde5ee;
  --gold: #f5a524;           /* puan */
  --gold-soft: #fff3d6;
  --live: #e5484d;           /* canlı */
  --ok: #12a150;
  --on-brand: #ffffff;
  --shell: #dfe7f1;          /* masaüstü zemin */
  --a: #e5484d; --b: #2f6fed; --c: #f59f0a; --d: #12a150;   /* yarışma şıkları */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px; --r-sm: 14px;
  --tap: 56px;               /* en küçük dokunma yüksekliği */
  --shadow: 0 1px 2px rgb(11 27 46 / .05), 0 10px 24px -16px rgb(11 27 46 / .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4d9bf0; --brand-strong: #7db7f7; --brand-soft: #12304f; --ink: #eef4fb; --ink-2: #a9b9cb; --ink-3: #7f91a6;
    --bg: #07121f; --surface: #0f1e30; --surface-2: #14263b; --line: #20344c; --gold: #f7b955; --gold-soft: #3a2c10;
    --live: #ff6b6f; --ok: #3ccb7f; --on-brand: #04121f; --shell: #030a13; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 28px -18px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4d9bf0; --brand-strong: #7db7f7; --brand-soft: #12304f; --ink: #eef4fb; --ink-2: #a9b9cb; --ink-3: #7f91a6;
  --bg: #07121f; --surface: #0f1e30; --surface-2: #14263b; --line: #20344c; --gold: #f7b955; --gold-soft: #3a2c10;
  --live: #ff6b6f; --ok: #3ccb7f; --on-brand: #04121f; --shell: #030a13; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 28px -18px rgb(0 0 0 / .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--shell); color: var(--ink); font: 400 16px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input, textarea { font: inherit; color: inherit; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- masaüstü kabuk ---------- */
.shell { height: 100%; display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 300px); gap: 32px; justify-content: center; align-items: center;
  padding-block: 20px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.side { align-self: center; display: flex; flex-direction: column; gap: 16px; min-width: 0; max-height: 100%; overflow: auto; }
.side h1 { font: 800 28px/1.05 var(--font-display); letter-spacing: -.03em; }
.side p { color: var(--ink-2); font-size: 14px; }
.side .cap { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump button { padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.jump button[aria-current="true"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.notes { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.notes b { color: var(--ink); display: block; }
.phone { width: 392px; height: min(100%, 820px); border-radius: 44px; padding: 10px; background: #0a0f17; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); }
.app { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }

@media (max-width: 1040px) { .shell { grid-template-columns: minmax(0, 260px) auto; } .side.right { display: none; } }
@media (max-width: 760px) {
  body { background: var(--bg); }
  .shell { display: block; padding: 0; }
  .side { display: none; }
  .phone { width: 100%; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .app { border-radius: 0; }
}

/* ---------- uygulama iskeleti ---------- */
.top { flex: none; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 6px 12px 6px 16px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; }
.top h2 { flex: 1; min-width: 0; font: 700 22px/1.1 var(--font-display); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; margin-left: -8px; }
.icon-btn:active { background: var(--brand-soft); }
.pts { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-weight: 700; }
.pts svg { width: 18px; height: 18px; fill: var(--gold); stroke: none; }
.view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; display: flex; flex-direction: column; }
.scr { display: none; flex-direction: column; gap: 14px; padding: 4px 16px 28px; }
.scr.on { display: flex; flex: 1 0 auto; }
.tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.tab { position: relative; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }
.tab .dot { position: absolute; top: 9px; left: calc(50% + 9px); width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); }
.app.bare .top, .app.bare .tabs { display: none; }

/* ---------- ortak parçalar ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.cap { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); font-size: 14px; }
.t { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.btn { width: 100%; min-height: var(--tap); padding: 0 20px; border-radius: 18px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 16.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.985); background: var(--brand-strong); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.sm { width: auto; min-height: 48px; padding: 0 16px; font-size: 15px; border-radius: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea { min-height: var(--tap); padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 500; width: 100%; }
.field textarea { min-height: 132px; resize: none; line-height: 1.45; }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 15px; color: #fff; background: var(--brand); }
.av.lg { width: 72px; height: 72px; font-size: 22px; }
.av.c1 { background: #7a52d6; } .av.c2 { background: #d6457f; } .av.c3 { background: #0f9d94; } .av.c4 { background: #e2742b; } .av.c5 { background: #2f6fed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.chip.gold { background: var(--gold-soft); box-shadow: none; color: var(--ink); }
.chip.brand { background: var(--brand-soft); box-shadow: none; color: var(--brand); }
.chip.live { background: var(--live); box-shadow: none; color: #fff; }
.list { display: grid; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 16px; text-align: left; width: 100%; }
.item + .item { box-shadow: inset 0 1px 0 var(--line); }
.item:active { background: var(--surface-2); }
.item .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.item .chev { color: var(--ink-3); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 48px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.demo { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; }
.demo .seg button { min-height: 44px; font-size: 13px; }

/* ---------- ana sayfa ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px; color: #fff; min-height: 216px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(22rem 14rem at 105% -10%, rgb(255 255 255 / .22), transparent 60%), linear-gradient(150deg, #1670cf 0%, #0054a4 46%, #062a55 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .22); }
.hero::before { width: 300px; height: 300px; right: -120px; top: -150px; }
.hero::after { width: 190px; height: 190px; right: -66px; top: -96px; background: rgb(255 255 255 / .06); }
.hero > * { position: relative; }
.hero .cap { color: rgb(255 255 255 / .78); }
.hero h3 { font: 800 34px/1 var(--font-display); letter-spacing: -.035em; }
.hero p { color: rgb(255 255 255 / .86); font-size: 14.5px; max-width: 30ch; }
.livebar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--r); background: var(--live); color: #fff; text-align: left; width: 100%; font-weight: 700; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #fff; flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 100% { box-shadow: 0 0 0 12px rgb(255 255 255 / 0); } }
.tablecard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--brand); color: var(--on-brand); text-align: left; width: 100%; min-height: 88px; }
.tableno { width: 64px; height: 64px; border-radius: 18px; background: rgb(255 255 255 / .16); display: grid; place-items: center; text-align: center; flex: none; }
.tableno small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.tableno b { font: 800 26px/1 var(--font-display); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick button { min-height: 96px; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-weight: 700; }
.quick button svg { color: var(--brand); width: 28px; height: 28px; }
.quick button small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.next { display: flex; gap: 14px; align-items: stretch; }
.next .time { font: 700 20px/1 var(--font-display); }

/* ---------- akış ---------- */
.composer textarea { border: 0; background: none; width: 100%; min-height: 64px; resize: none; font-size: 17px; padding: 6px 0; outline: none; }
.post { padding: 0; overflow: hidden; }
.post .head { padding: 14px 16px 10px; }
.post .body { padding: 0 16px 12px; font-size: 16px; }
.photo { aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: end start; padding: 16px; color: #fff; font: 800 24px/1 var(--font-display); letter-spacing: -.03em;
  background: radial-gradient(14rem 10rem at 80% 20%, rgb(255 255 255 / .28), transparent 60%), linear-gradient(160deg, #1670cf, #0054a4 50%, #062a55); }
.acts { display: flex; gap: 8px; padding: 8px; box-shadow: inset 0 1px 0 var(--line); }
.acts button { flex: 1; min-height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.acts button:active { background: var(--surface-2); }
.acts button.liked { color: var(--live); }
.acts button.liked svg { fill: var(--live); }
.comment { display: flex; gap: 10px; padding: 12px 16px; box-shadow: inset 0 1px 0 var(--line); font-size: 14.5px; }
.comment .av { width: 36px; height: 36px; font-size: 12px; }

/* ---------- canlı / yarışma ---------- */
.timer { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--gold) 60%, var(--live)); transform-origin: left; }
.secs { font: 800 30px/1 var(--font-display); letter-spacing: -.03em; }
.q { font: 700 24px/1.15 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { min-height: 104px; padding: 14px; border-radius: 20px; color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: 19px; position: relative; }
.opt b { width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .24); display: grid; place-items: center; font-size: 16px; }
.opt.a { background: var(--a); } .opt.b { background: var(--b); } .opt.c { background: var(--c); } .opt.d { background: var(--d); }
.opt[aria-pressed="true"] { outline: 4px solid var(--ink); outline-offset: 2px; }
.opt[disabled] { cursor: default; }
.opts.locked .opt:not([aria-pressed="true"]) { opacity: .35; }
.state { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 26px 16px; }
.state .big { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.state .big svg { width: 36px; height: 36px; }
.state h3 { font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.wordrow { display: flex; gap: 8px; }
.wordrow input { flex: 1; min-width: 0; min-height: var(--tap); border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 17px; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- liderlik ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.podium > div { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 8px; display: grid; gap: 6px; justify-items: center; text-align: center; font-weight: 700; font-size: 14px; }
.podium .first { padding-block: 22px; background: var(--gold-soft); }
.medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1c1300; background: var(--gold); }
.medal.s { background: #c3cdd8; } .medal.br { background: #d9976a; } .medal.n { background: none; color: var(--ink-3); }
.you { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; border-radius: var(--r); background: var(--brand-soft); font-weight: 700; }
.bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; font-weight: 700; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); border-radius: inherit; }
.bar > * { position: relative; }

/* ---------- ajanda ---------- */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day { min-height: 68px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-content: center; text-align: center; font-weight: 700; }
.day small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-3); }
.day b { font: 800 19px/1.1 var(--font-display); }
.day[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.day[aria-pressed="true"] small { color: inherit; opacity: .85; }
.slot { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.slot .time { padding-top: 14px; text-align: right; font-weight: 700; }
.slot .time small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.slot.now .card { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }

/* ---------- alt sayfa (sheet) ve bildirimler ---------- */
.scrim { position: absolute; inset: 0; z-index: 5; background: rgb(4 12 22 / .55); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 92%; overflow: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; animation: up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ""; width: 44px; height: 5px; border-radius: 9px; background: var(--line); justify-self: center; }
.sheet h3 { font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: absolute; left: 50%; top: 12px; z-index: 6; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: #1c1300; font-weight: 800; box-shadow: var(--shadow); animation: drop .3s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }
.check { display: flex; gap: 14px; align-items: center; min-height: var(--tap); padding: 8px 0; text-align: left; width: 100%; font-weight: 600; }
.box { width: 30px; height: 30px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ink-3); display: grid; place-items: center; flex: none; color: transparent; }
.check[aria-pressed="true"] .box { background: var(--brand); box-shadow: none; color: var(--on-brand); }
.stars { display: flex; gap: 6px; }
.stars button { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--line); flex: 1; }
.stars button svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.stars button.on { color: var(--gold); }
.qr { width: 190px; height: 190px; border-radius: 22px; background: #fff; padding: 14px; justify-self: center; }
.qr svg { width: 100%; height: 100%; }
.login { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 28px 20px 24px; color: #fff;
  background: radial-gradient(24rem 16rem at 100% 0%, rgb(255 255 255 / .2), transparent 60%), linear-gradient(165deg, #1670cf 0%, #0054a4 40%, #041c3a 100%); }
.login h3 { font: 800 40px/1 var(--font-display); letter-spacing: -.04em; }
.login .panel { background: var(--surface); color: var(--ink); border-radius: 26px; padding: 18px; display: grid; gap: 14px; }
/* ---------- tanıtım (intro) ---------- */
.intro { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.slides { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 8px; }
.slide .art { position: relative; overflow: hidden; flex: 1; min-height: 200px; border-radius: 30px; display: grid; place-items: center; color: #fff; margin-bottom: 8px;
  background: radial-gradient(20rem 14rem at 100% 0%, rgb(255 255 255 / .24), transparent 60%), linear-gradient(155deg, #1670cf 0%, #0054a4 48%, #062a55 100%); }
.slide .art::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .22); right: -130px; bottom: -150px; }
.slide .art svg { position: relative; width: 104px; height: 104px; stroke-width: 1.3; }
.slide h3 { font: 800 32px/1.05 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.slide p { color: var(--ink-2); font-size: 16.5px; max-width: 32ch; }
.intro .foot { flex: none; display: grid; gap: 10px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.dots { display: flex; gap: 8px; justify-content: center; padding-bottom: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--line); transition: width .2s, background .2s; }
.dots i.on { width: 28px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= gerçek uygulama: mockup çerçevesi yerine tam ekran ================= */
body { background: var(--shell); }
.app { max-width: 480px; margin: 0 auto; height: 100dvh; border-radius: 0; }
@media (max-width: 520px) { body { background: var(--bg); } }
.top { padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
.app.bare .view { padding-top: env(safe-area-inset-top, 0px); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tab, .item, .btn, .tablecard, .livebar, .quick a { cursor: pointer; }
.quick a { min-height: 96px; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-weight: 700; }
.quick a svg { color: var(--brand); width: 28px; height: 28px; }
.quick a small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.err { padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, var(--live) 14%, var(--surface)); color: var(--live); font-weight: 600; font-size: 14.5px; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before, .hero.has-photo::after { display: none; }
.prose { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.prose > * + * { margin-top: .6em; }
.prose h2, .prose h3 { color: var(--ink); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.slide .art.has-photo { background-size: cover; background-position: center; }
.slide .art.has-photo::before { display: none; }
