
:root {
  --bg: #101c2c;
  --bg-hi: #1b3648;
  --card: #17283b;
  --card-hi: #20384b;
  --line: rgba(97, 219, 196, .38);
  --line-soft: rgba(97, 219, 196, .16);
  --gold: #61dbc4;
  --gold-hi: #a4efe1;
  --gold-lo: #3da891;
  --cream: #f2f7fb;
  --muted: #b5c7d9;
  --burgundy: #874058;
  --sage: #246c60;
  --ink: #102a32;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gold-grad: linear-gradient(180deg, #a4efe1 0%, #77e4ce 45%, #4bc6ad 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.25;
  overflow: hidden;
  background: var(--bg);
}
body {
  background:
    radial-gradient(120% 70% at 50% -10%, var(--bg-hi) 0%, rgba(27, 54, 72, 0) 60%),
    radial-gradient(90% 60% at 50% 120%, #0a1422 0%, rgba(10, 20, 34, 0) 70%),
    var(--bg);
  background-attachment: fixed;
}

main { max-width: 560px; margin: 0 auto; height: 100%; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Symbole ===== */
.i { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }

/* ===== Bildschirm-Gerüst: alles passt auf eine Seite ===== */
.screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 12px 16px 14px;
  gap: 10px;
}
.screen.scroll { height: auto; min-height: 100dvh; }
body.scrollable { overflow: auto; }
.body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.title {
  font-family: var(--sans);
  font-size: clamp(1.45rem, 3.9vh, 1.95rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cream);
}
.sub { font-size: 1rem; color: var(--muted); }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

/* Zierlinie */
.orn { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.orn i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); display: block; }

/* Kopf mit App-Symbol */
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; }
.crest {
  width: clamp(52px, 8.5vh, 74px); height: clamp(52px, 8.5vh, 74px);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  box-shadow: none;
  background: radial-gradient(circle at 50% 35%, #26475b, #152a3c);
  font-size: clamp(26px, 4.4vh, 38px);
}
.brand h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.6vh, 2.8rem);
  line-height: 1;
  letter-spacing: .02em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand .eyebrow { text-align: center; }

.topbar { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.topbar .who { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; line-height: 1.15; }
.topbar .who b { font-family: var(--sans); font-size: 1.15rem; font-weight: 800; }
.topbar .who small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ===== Knöpfe ===== */
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--gold-grad);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.1;
  border: 1px solid #8be7d6;
  box-shadow: none;
}
.btn .i { font-size: 1.25em; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn[disabled] { opacity: .35; }
.btn.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: var(--gold-hi);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.red { background: linear-gradient(180deg, #9a3341, #6e1f2a); color: var(--cream); border-color: #b5505d; box-shadow: none; }
.btn.small { min-height: 54px; font-size: 1.12rem; }

.back {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold-hi);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  min-height: 48px;
}
.back .i { font-size: 1.3em; }

.links { display: flex; justify-content: center; gap: 4px; }
.link { color: var(--muted); font-size: .95rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; padding: 6px 10px; }
.credit { text-align: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(97, 219, 196, .7); }
.credit a { color: var(--gold); text-decoration: none; }

/* ===== Kachel-Raster ===== */
.grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c1 { grid-template-columns: minmax(0, 1fr); }

.card-base, .tile, .ptile, .option, .rank, .title-card, .hint, .weather, .set-row, .diary .row {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.tile {
  min-height: 0;
  overflow: hidden;
  padding: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(2px, .8vh, 8px);
  font-size: clamp(.95rem, 2.6vh, 1.3rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}
.tile .i { font-size: clamp(1.6rem, 5.4vh, 2.9rem); color: var(--gold); }
.tile.on {
  background: var(--gold-grad);
  color: var(--ink);
  border-color: #8be7d6;
  box-shadow: none;
}
.tile.on .i { color: var(--ink); }
.tile.name { font-family: var(--sans); font-size: clamp(1.15rem, 3.1vh, 1.55rem); font-weight: 800; }

/* Persönliche Monogramme */
.mono {
  --m1: #a4efe1; --m2: #4bc6ad;
  width: 2.1em; height: 2.1em;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(1rem, 2.5vh, 1.3rem);
  color: var(--ink);
  background: linear-gradient(160deg, var(--m1), var(--m2));
  box-shadow: none;
  letter-spacing: .02em;
}
.mono.m1 { --m1: #f1f1ee; --m2: #9a9c98; }
.mono.m2 { --m1: #f0bf98; --m2: #a2603a; }
.mono.big { font-size: clamp(1.6rem, 4.4vh, 2.2rem); }
.mono.sm { font-size: .9rem; }

/* Spieler-Kacheln */
.ptile {
  min-height: 0; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  text-align: left;
}
.ptile .tx { min-width: 0; }
.ptile .nm { font-family: var(--sans); font-size: clamp(1.05rem, 2.7vh, 1.35rem); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .st { font-size: clamp(.78rem, 1.9vh, .92rem); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.ptile.done { border-color: var(--gold); }
.ptile.done .st { color: var(--gold-hi); font-weight: 700; }

/* Schmerz-Stufen */
.face {
  min-height: 0; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--cream);
  line-height: 1.05;
}
.face svg { width: clamp(1.7rem, 5.6vh, 2.9rem); height: auto; }
.face .num { font-family: var(--sans); font-weight: 900; font-size: clamp(1.15rem, 3.1vh, 1.65rem); }
.face .lb { font-size: clamp(.75rem, 2vh, 1rem); font-weight: 700; letter-spacing: .02em; }
.face.wide { grid-column: span 3; flex-direction: row; gap: 14px; }
.face.wide .lb { font-size: clamp(.95rem, 2.4vh, 1.2rem); }
.face.on { outline: 3px solid var(--gold-hi); outline-offset: -3px; }

/* Listen-Optionen */
.option {
  min-height: 0; overflow: hidden;
  padding: 4px 18px;
  font-family: var(--sans);
  font-size: clamp(1.15rem, 3.2vh, 1.55rem); font-weight: 800;
  text-align: left;
  display: flex; align-items: center; gap: 16px;
}
.option .i { font-size: clamp(1.6rem, 4.6vh, 2.4rem); color: var(--gold); }
.option.on { background: var(--gold-grad); color: var(--ink); border-color: #8be7d6; }
.option.on .i { color: var(--ink); }

/* Ächz-O-Meter */
.meter-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.meter {
  width: min(62vw, 30vh); height: min(62vw, 30vh);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #26475b, #122434);
  border: 2px solid var(--gold);
  box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  color: var(--gold);
}
.meter .fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--burgundy), #427d94 55%, var(--gold));
  opacity: .9;
  height: 0%;
  transition: height .08s linear;
}
.meter .val { position: relative; font-family: var(--sans); font-size: clamp(2.2rem, 7.5vh, 3.6rem); font-weight: 900; color: var(--cream); }
.meter .val .i { font-size: .9em; color: var(--gold); }
.meter .unit { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.big-text { font-family: var(--sans); font-size: clamp(1.4rem, 3.8vh, 2.1rem); font-weight: 900; text-align: center; min-height: 1.2em; color: var(--gold-hi); }
.lead { font-size: clamp(1rem, 2.5vh, 1.2rem); text-align: center; }

/* Jury */
.jury { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote {
  min-height: 0;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-weight: 800; font-size: clamp(1.1rem, 3vh, 1.45rem);
  color: var(--cream);
  border: 1px solid var(--line);
  box-shadow: none;
}
.vote .i { font-size: clamp(2.4rem, 8vh, 4rem); color: var(--gold-hi); }
.vote .cnt { font-size: clamp(2rem, 5.5vh, 2.8rem); font-weight: 900; }
.vote.yes { background: linear-gradient(180deg, #3b7050, #23472f); }
.vote.no { background: linear-gradient(180deg, #8e2e3b, #5b1a24); }
.vote:active { transform: scale(.97); }

/* Ergebnis */
.res-head { display: flex; align-items: center; gap: 12px; justify-content: center; }
.res-head .nm { font-family: var(--sans); font-size: clamp(1.4rem, 3.6vh, 1.8rem); font-weight: 900; }
.score-box {
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 10px 16px;
  text-align: center;
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--card);
  box-shadow: none;
}
.score-box .pts {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(3rem, 10vh, 4.8rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-box .lbl { font-size: .95rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.score-box .lbl .i { color: var(--gold); }
.menu { margin-top: 6px; display: flex; flex-direction: column; gap: clamp(3px, 1vh, 8px); text-align: left; font-size: clamp(.9rem, 2.3vh, 1.08rem); }
.menu .li { display: flex; align-items: baseline; gap: 8px; }
.menu .li i { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.menu .li b { font-family: var(--sans); font-weight: 800; color: var(--gold-hi); white-space: nowrap; }
.menu .li.total { border-top: 1px solid var(--line); padding-top: 6px; }
.comment { font-family: var(--sans); font-style: normal; font-size: clamp(1.1rem, 2.8vh, 1.35rem); font-weight: 700; text-align: center; color: var(--cream); }

/* Rangliste */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; flex: 0 0 auto; margin-top: 4px; }
.pod { flex: 1; text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pod .nm { font-family: var(--sans); font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pod .bar {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 6px;
  font-family: var(--sans); font-weight: 900; font-size: 1.5rem;
  color: var(--ink);
  box-shadow: none;
}
.pod.p1 .bar { height: clamp(70px, 14vh, 130px); background: var(--gold-grad); }
.pod.p2 .bar { height: clamp(50px, 10vh, 95px); background: linear-gradient(180deg, #f4f4f1, #a7a9a4); }
.pod.p3 .bar { height: clamp(56px, 8vh, 76px); background: linear-gradient(180deg, #f0bf98, #9c5c37); }
.pod .pp { font-family: var(--sans); font-size: .82rem; font-weight: 700; }
.crown { color: var(--gold-hi); font-size: 1.8rem; line-height: 1; }

.rank-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.rank {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  font-size: clamp(.95rem, 2.3vh, 1.1rem);
  width: 100%; text-align: left;
  min-height: 0;
}
.rank .pl { font-family: var(--sans); font-weight: 900; color: var(--gold); width: 1.8em; }
.rank .nm { flex: 1; font-family: var(--sans); font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .sc { font-family: var(--sans); font-weight: 900; color: var(--gold-hi); }

.titles { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.title-card { display: flex; align-items: center; gap: 12px; padding: 7px 12px; }
.title-card .badge {
  width: 2.3em; height: 2.3em; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  color: var(--gold); border: 1px solid var(--gold);
  font-size: clamp(.9rem, 2.2vh, 1.1rem);
}
.title-card .badge .i { font-size: 1.25em; }
.title-card .t { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.title-card .w { font-family: var(--sans); font-size: clamp(1rem, 2.4vh, 1.2rem); font-weight: 800; }
.title-card .why { font-size: .82rem; color: var(--muted); }

.daynav { display: flex; gap: 8px; align-items: center; flex: 1; justify-content: flex-end; }
.daynav .d { font-family: var(--sans); font-weight: 800; }
.daynav .back { padding: 8px 12px; }

.hint { padding: 10px 14px; font-size: 1rem; }
.weather { padding: 8px 12px; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.weather .i { font-size: 1.6rem; color: var(--gold); }
.weather b { color: var(--gold-hi); }

/* Scrollbare Helfer-Seiten */
.list { display: grid; gap: 8px; }
.diary .row { padding: 10px 14px; font-size: 1rem; }
.diary .row b { color: var(--gold-hi); }
.chart { width: 100%; height: 110px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.section-label { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-top: 10px; }
.section-label .i { font-size: 1.3rem; }
input[type=text] {
  font: inherit; font-size: 1.4rem;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  background: #edf6fa;
  color: var(--ink);
  -webkit-user-select: text; user-select: text;
}
input[type=text]:focus { outline: none; box-shadow: none; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.set-row .nm { flex: 1; font-family: var(--sans); font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.set-row button { border: 1px solid var(--line); border-radius: 10px; min-width: 52px; min-height: 52px; font-size: 1.3rem; color: var(--gold); display: grid; place-items: center; }
.note { font-size: .85rem; color: var(--muted); text-align: center; }

/* Dialog */
#modal {
  position: fixed; inset: 0;
  background: rgba(4, 12, 22, .78);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 10;
}
#modal[hidden] { display: none; }
.dialog {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--card);
  border: 1.5px solid var(--gold);
  box-shadow: none;
  border-radius: 20px;
  padding: 22px 18px 18px;
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 12px;
}
.dialog p { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; text-align: center; }

.pulse { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* Feinschliff Startbildschirm */
.ptile { padding: 6px 8px; gap: 8px; }
.ptile .mono { font-size: .95rem; width: 2em; height: 2em; }
.ptile .nm { font-size: clamp(.95rem, 2.4vh, 1.18rem); }
.row2 .btn { font-size: 1.12rem; gap: 8px; padding: 8px 10px; }
.row2 .btn .i { font-size: 1.15em; }

.tile span { overflow-wrap: anywhere; hyphens: auto; }

/* Öffentliche Version: klare Flächen, großzügige Ziele, frei skalierbare Seiten. */
:root { color-scheme: dark; }
html { min-height: 100%; height: auto; overflow: auto; }
body { min-height: 100vh; height: auto; overflow: visible; line-height: 1.4; }
main { max-width: 600px; height: auto; }
.screen { height: auto; min-height: 100vh; min-height: 100dvh; padding: 22px 20px; padding-bottom: max(22px, env(safe-area-inset-bottom)); gap: 16px; }
.screen.scroll { min-height: 100dvh; }
.body { flex: 1 0 auto; gap: 20px; }
.grid { min-height: max-content; gap: 10px; }
.tile, .face, .option { min-height: 76px; padding: 10px 6px; }
.tile { gap: 8px; } .tile .i { font-size: 2rem; } .tile.name { font-size: 1.15rem; }
.face.wide { min-height: 64px; } .option { padding: 16px; }
.title { line-height: 1.2; letter-spacing: -.025em; }
.brand { gap: 12px; padding: 4px 0 10px; }
.brand h1 { color: var(--cream); background: none; font-size: clamp(1.8rem, 6.3vw, 2.5rem); letter-spacing: -.055em; line-height: 1.1; }
.brand .eyebrow { font-size: .64rem; letter-spacing: .1em; line-height: 1.5; }
.app-mark { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: rgba(97, 219, 196, .12); color: var(--gold); font-size: 32px; border: 1px solid var(--line); }
.lead { font-size: 1rem; line-height: 1.6; max-width: 470px; margin: 0 auto; }
.note { line-height: 1.55; font-size: .8rem; }
.note a, .privacy a { color: var(--gold-hi); text-underline-offset: 3px; }
.privacy { font-size: .87rem; line-height: 1.6; color: var(--muted); }
.btn { font-size: 1.12rem; min-height: 60px; border: 1px solid var(--gold); background: var(--gold); border-radius: 14px; line-height: 1.3; }
.btn.alt { background: var(--card); border-color: var(--line); } .btn.red { border-color: #bf7288; }
.btn:active { transform: translateY(1px); } .btn[disabled] { opacity: .5; cursor: default; }
.back { border-radius: 12px; font-size: .95rem; }
.credit { color: var(--muted); font-size: .65rem; letter-spacing: .08em; line-height: 1.6; }
.links { flex-wrap: wrap; gap: 4px 12px; } .link { min-height: 44px; } .orn i { display: none; }
.mono { --m1: #a4efe1; --m2: #55c9b3; border-radius: 13px; font-weight: 750; }
.mono.m1 { --m1: #c3d9f6; --m2: #8aa7cc; } .mono.m2 { --m1: #e2cef5; --m2: #b198d0; }
.ptile { min-height: 76px; } .ptile .st { white-space: normal; }
.meter-wrap { min-height: 240px; gap: 16px; } .meter { width: 220px; height: 220px; }
.meter .val { text-shadow: 0 1px 5px #101c2c; } .meter .unit { letter-spacing: .1em; }
.meter .fill { background: linear-gradient(to top, #28516b, #277566); }
.jury { min-height: 220px; } .vote { padding: 16px 8px; min-height: 220px; }
.vote.yes { background: #215a50; } .vote.no { background: #673344; }
.score-box { overflow: visible; flex: 1 0 auto; padding: 20px 16px; gap: 10px; }
.menu { gap: 8px; font-size: .93rem; }
.rank-list, .titles { flex: 1 0 auto; overflow: visible; gap: 10px; } .rank { min-height: 64px; }
.title-card { min-height: 76px; padding: 12px; } .title-card .t { letter-spacing: .06em; }
.section-label { letter-spacing: .08em; line-height: 1.5; }
input[type=text] { font-size: 1.1rem; background: #edf6fa; } .set-row .nm { overflow-wrap: anywhere; }
.dialog { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; }
.dialog p { font-size: 1.1rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 380px) {
  html, body { font-size: 17px; } .screen { padding: 16px 12px; gap: 14px; }
  .topbar { flex-wrap: wrap; } .row2 { grid-template-columns: 1fr; } .grid { gap: 7px; }
  .tile { font-size: .95rem; } .title-card .t { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
