/* ASCEND – Oberfläche im Stil klassischer japanischer Rollenspiele (eigenes Design). */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --page: #eef1f8;
  --ink: #141a33;
  --muted: #5d6680;
  --win1: #24308a;
  --win2: #111a52;
  --win-edge: #c9d4ff;
  --win-text: #f4f6ff;
  --win-dim: #b6bfe8;
  --gold: #f6c453;
  --gold2: #ffdf8a;
  --hp1: #ff7a59;
  --hp2: #e8364f;
  --exp1: #7dd3fc;
  --exp2: #6366f1;
  --limit1: #fde047;
  --limit2: #f97316;
  --good: #10b981;
  --bad: #ef4444;
  --common: #cbd5e1;
  --rare: #60a5fa;
  --epic: #c084fc;
  --legendary: #fbbf24;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.fantasy { font-family: "Cinzel", Georgia, serif; letter-spacing: .04em; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- JRPG-Fenster ---------- */
.win {
  position: relative; color: var(--win-text);
  background: linear-gradient(180deg, var(--win1), var(--win2));
  border: 2px solid var(--win-edge); border-radius: 12px;
  box-shadow: inset 0 0 0 2px #0b1140, inset 0 2px 12px #ffffff22, 0 6px 18px #141a3333;
  padding: 12px 14px; margin-bottom: 12px;
}
.win h3 { margin: 0 0 8px; font-family: "Cinzel", Georgia, serif; font-size: 15px; letter-spacing: .08em; color: var(--gold2); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.win .muted { color: var(--win-dim); }
.win hr { border: 0; border-top: 1px solid #ffffff22; margin: 10px 0; }
.win.light { background: #fff; color: var(--ink); border-color: #d8def0; box-shadow: 0 2px 10px #141a330f; }
.win.light h3 { color: var(--win1); }
.win.light .muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border: 2px solid var(--win-edge); background: linear-gradient(180deg, #3443a8, #1b2468); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2400; border-color: #fff3c4; }
.btn.light { background: #fff; color: var(--win1); border-color: #c8d0ea; }
.btn.danger { background: linear-gradient(180deg, #ef4444, #b91c1c); border-color: #fecaca; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; }
.btn:active:not(:disabled) { transform: scale(.97); }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: inherit; opacity: .85; }
input[type=text], input[type=password], input[type=number], select { width: 100%; background: #fff; color: var(--ink); border: 2px solid #c8d0ea; padding: 12px; border-radius: 10px; font-size: 17px; }
input[type=number] { font-variant-numeric: tabular-nums; font-weight: 700; }
input:focus, select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px #6366f133; }

/* ---------- Titel / Login ---------- */
.title-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 20%, #fff 0%, #dfe6ff 40%, #b8c4f5 100%); }
.title-card { width: min(420px, 100%); text-align: center; }
.logo { font-family: "Cinzel", Georgia, serif; font-weight: 900; font-size: 48px; letter-spacing: .18em; margin: 0; background: linear-gradient(180deg, #2b3aa5, #0e1648); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #fff); }
.tagline { font-family: "Cinzel", Georgia, serif; color: #3a4380; margin: 4px 0 22px; letter-spacing: .06em; }
.crest { font-size: 54px; filter: drop-shadow(0 6px 10px #2b3aa555); animation: float 4s ease-in-out infinite; }

/* ---------- Gerüst ---------- */
.views { padding: calc(10px + var(--safe-t)) 12px calc(var(--nav-h) + var(--safe-b) + 22px); max-width: 640px; margin: 0 auto; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 20; background: linear-gradient(180deg, var(--win1), var(--win2)); border-top: 2px solid var(--win-edge); }
.nav button { background: none; border: 0; color: var(--win-dim); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: "Cinzel", Georgia, serif; letter-spacing: .05em; }
.nav button .ic { font-size: 21px; }
.nav button[aria-current="page"] { color: var(--gold2); }
.nav button[aria-current="page"]::before { content: "▶"; position: absolute; transform: translate(-26px, -2px); font-size: 10px; color: var(--gold); }
.nav button { position: relative; }
.nav .cmd span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin-top: -24px; background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 60%, #b7791f); border: 3px solid #fff3c4; box-shadow: 0 6px 18px #b7791f66; }
.nav .cmd::before { display: none; }

/* ---------- Kopfzeile ---------- */
.topbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.topbar .win { margin: 0; padding: 8px 12px; flex: 1; display: flex; align-items: center; gap: 8px; font-family: "Cinzel", Georgia, serif; font-size: 13px; letter-spacing: .05em; }
.topbar .gold { flex: none; color: var(--gold2); font-weight: 800; }

/* ---------- Kampfszene ---------- */
.scene { position: relative; border-radius: 16px; overflow: hidden; border: 2px solid var(--win-edge); box-shadow: 0 8px 24px #141a3333; min-height: 360px; margin-bottom: 12px; }
.scene .sky { position: absolute; inset: 0; }
.scene .ground { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 120px; border-radius: 50%; }
.r-dawnwood .sky { background: linear-gradient(180deg, #ffe7c2 0%, #cdeccf 55%, #8cc59a 100%); } .r-dawnwood .ground { background: #4f8a5b; }
.r-embersteppe .sky { background: linear-gradient(180deg, #ffd4a3 0%, #f8a46b 55%, #c9693a 100%); } .r-embersteppe .ground { background: #8a4b2a; }
.r-frostridge .sky { background: linear-gradient(180deg, #eaf6ff 0%, #bfe0ff 55%, #8db8e8 100%); } .r-frostridge .ground { background: #e9f3ff; }
.r-stormcoast .sky { background: linear-gradient(180deg, #c7d2fe 0%, #7c8fd6 55%, #3b4a8f 100%); } .r-stormcoast .ground { background: #2c4d7a; }
.r-skycitadel .sky { background: linear-gradient(180deg, #fff8e1 0%, #ffe9b0 50%, #c4b5fd 100%); } .r-skycitadel .ground { background: #f3e8ff; }
.r-summit .sky { background: linear-gradient(180deg, #1e1b4b 0%, #6d28d9 55%, #f59e0b 100%); } .r-summit .ground { background: #2e1065; }
.guardian .sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #ffffff00 30%, #4c0519aa 100%); }
.nameplate { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; margin: 0; padding: 8px 12px; }
.nameplate .bn { font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 17px; letter-spacing: .03em; }
.nameplate .bt { font-size: 11px; color: var(--gold2); letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; border: 1px solid #ffffff44; }
.badge.weak { background: #16a34a; color: #fff; }
.badge.res { background: #64748b; color: #fff; }
.badge.guard { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2400; }
.sprite { position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); font-size: 96px; line-height: 1; z-index: 1; filter: drop-shadow(0 14px 10px #0006); animation: float 3.2s ease-in-out infinite; }
.guardian .sprite { font-size: 120px; }
.sprite.hit { animation: hit .45s ease; }
.sprite.dead { animation: dissolve 1.2s forwards; }
.defeated .sprite { opacity: .25; filter: grayscale(1) blur(1px); animation: none; }
@keyframes float { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
.crest, .title-card .crest { animation-name: floaty; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@keyframes hit { 0%,100% { transform: translate(-50%, -50%); filter: none; } 20% { transform: translate(-58%, -50%); filter: brightness(2.2); } 40% { transform: translate(-42%, -50%); } 60% { transform: translate(-54%, -50%); filter: brightness(1.6); } }
@keyframes dissolve { to { opacity: 0; transform: translate(-50%, -70%) scale(.6); filter: blur(6px) brightness(3); } }
.victory-banner { position: absolute; left: 0; right: 0; top: 66%; text-align: center; z-index: 3; font-family: "Cinzel", Georgia, serif; font-weight: 900; font-size: 34px; letter-spacing: .25em; color: #fff; text-shadow: 0 3px 0 #b7791f, 0 0 18px #fde68a; }
.dmg { position: absolute; left: 50%; top: 58%; z-index: 4; font-family: "Cinzel", Georgia, serif; font-weight: 900; font-size: 34px; color: #fff; -webkit-text-stroke: 1.5px #7f1d1d; text-shadow: 0 3px 0 #7f1d1d; pointer-events: none; animation: dmg 1.3s ease-out forwards; }
.dmg.crit { color: #fde047; font-size: 40px; -webkit-text-stroke-color: #9a3412; }
.dmg.heal { color: #86efac; -webkit-text-stroke-color: #14532d; text-shadow: 0 3px 0 #14532d; }
@keyframes dmg { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.flash { position: absolute; inset: 0; z-index: 3; background: #fff; animation: flash .35s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }

/* ---------- Balken ---------- */
.bar { height: 10px; border-radius: 6px; background: #0b1140; border: 1px solid #ffffff33; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.bar.hp { height: 12px; } .bar.hp > i { background: linear-gradient(90deg, var(--hp1), var(--hp2)); }
.bar.exp > i { background: linear-gradient(90deg, var(--exp1), var(--exp2)); }
.bar.limit > i { background: linear-gradient(90deg, var(--limit1), var(--limit2)); }
.bar.limit.ready { box-shadow: 0 0 0 2px #fde047, 0 0 14px #fde047; animation: pulse 1s infinite; }
.bar.q > i { background: linear-gradient(90deg, #34d399, #10b981); }
.bar.light { background: #e7ebf5; border-color: #d8def0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px #fde047, 0 0 24px #f97316; } }
.bar-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .05em; margin: 6px 0 3px; color: var(--win-dim); }

/* ---------- Party-Zeile ---------- */
.party { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.party .portrait { width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--win-edge); background: radial-gradient(circle at 40% 30%, #3b4bc4, #0e1648); display: grid; place-items: center; font-size: 30px; }
.party .hn { font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 15px; }
.party .hj { font-size: 12px; color: var(--win-dim); }
.limit-btn { margin-top: 10px; }

/* ---------- Befehlsmenü ---------- */
.commands { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.cmd-item { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--win-text); text-align: left; padding: 9px 4px; border-radius: 8px; font-weight: 700; font-size: 14px; min-width: 0; white-space: nowrap; }
.cmd-item:active, .cmd-item:focus-visible { background: #ffffff1a; outline: none; }
.cmd-item::before { content: "▶"; color: transparent; font-size: 10px; width: 10px; }
.cmd-item:hover::before, .cmd-item:focus-visible::before { color: var(--gold); }
.cmd-item .el { font-size: 18px; }
.cmd-item .mod { margin-left: auto; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; }
.mod.x2 { background: #16a34a; color: #fff; }
.mod.half { background: #64748b; color: #fff; }
.cmd-item.scan { grid-column: 1 / -1; background: linear-gradient(90deg, #ffffff14, #ffffff00); }

/* ---------- Kampflog ---------- */
.log { font-size: 14px; line-height: 1.55; }
.log-line { display: flex; gap: 8px; padding: 4px 0; border-top: 1px dashed #ffffff1f; }
.log-line:first-child { border-top: 0; }
.log-line .t { color: var(--win-dim); font-size: 11px; min-width: 38px; padding-top: 2px; }
.log-line .x { margin-left: auto; background: none; border: 0; color: var(--win-dim); font-size: 14px; padding: 0 4px; }
.hl { color: var(--gold2); font-weight: 800; }
.weak-t { color: #86efac; font-weight: 800; }
.res-t { color: #cbd5e1; font-weight: 700; }
.heal-t { color: #fda4af; font-weight: 800; }

/* ---------- Missionen ---------- */
.quest { padding: 8px 0; border-top: 1px dashed #ffffff1f; }
.quest:first-of-type { border-top: 0; }
.quest .ql { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.quest .ck { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--win-edge); display: grid; place-items: center; font-size: 13px; flex: none; }
.quest.done .ck { background: var(--good); border-color: #a7f3d0; }
.quest.done .qt { color: var(--win-dim); text-decoration: line-through; }
.quest .qn { font-size: 11px; color: var(--win-dim); margin-left: auto; white-space: nowrap; }
.tag { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: var(--gold); color: #3a2400; }

/* ---------- Dialog ---------- */
.dialog { display: flex; gap: 10px; align-items: flex-start; }
.dialog .who { font-size: 28px; }
.dialog .say { font-size: 14px; line-height: 1.5; }
.dialog .say b { color: var(--gold2); }

/* ---------- Status ---------- */
.status-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.status-head .portrait { width: 84px; height: 84px; border-radius: 16px; border: 2px solid var(--win-edge); background: radial-gradient(circle at 40% 30%, #3b4bc4, #0e1648); display: grid; place-items: center; font-size: 48px; }
.status-head .hn { font-family: "Cinzel", Georgia, serif; font-size: 22px; font-weight: 900; }
.stats-table { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; }
.stats-table div { display: flex; justify-content: space-between; border-bottom: 1px dashed #ffffff1f; padding: 4px 0; }
.stats-table b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.equip-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed #ffffff1f; font-size: 14px; }
.equip-row:first-child { border-top: 0; }
.equip-row .slot { color: var(--win-dim); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.equip-row .bonus { font-size: 11px; color: var(--win-dim); }
.t-common { color: var(--common); } .t-rare { color: var(--rare); } .t-epic { color: var(--epic); } .t-legendary { color: var(--legendary); text-shadow: 0 0 8px #fbbf2466; }
.inv { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed #ffffff1f; }
.inv:first-child { border-top: 0; }
.inv .ii { flex: 1; min-width: 0; font-size: 14px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skill { border: 1px solid #ffffff33; border-radius: 10px; padding: 8px; font-size: 12px; }
.skill.off { opacity: .4; }
.skill b { display: block; font-size: 13px; color: var(--gold2); }
.jobs { display: grid; gap: 10px; }
.job { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 2px solid #ffffff33; background: #ffffff0d; color: var(--win-text); }
.job.on { border-color: var(--gold); background: #f6c45322; }
.job .ji { font-size: 34px; }
.job b { font-family: "Cinzel", Georgia, serif; font-size: 16px; }
.job small { display: block; color: var(--win-dim); font-size: 12px; line-height: 1.4; margin-top: 2px; }

/* ---------- Welt ---------- */
.map { position: relative; padding: 6px 0; }
.region { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; position: relative; }
.region::before { content: ""; position: absolute; left: 27px; top: -10px; height: 20px; border-left: 3px dotted #ffffff44; }
.region:first-child::before { display: none; }
.region .node { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #0b1140; border: 2px solid #ffffff33; }
.region.unlocked .node { border-color: var(--win-edge); background: radial-gradient(circle at 40% 30%, #3b4bc4, #0e1648); }
.region.current .node { border-color: var(--gold); box-shadow: 0 0 0 4px #f6c45344, 0 0 18px #f6c45366; }
.region.locked { opacity: .5; }
.region .rn { font-family: "Cinzel", Georgia, serif; font-weight: 800; }
.region .rl { font-size: 12px; color: var(--win-dim); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #0b1140; color: var(--win-dim); border: 1px solid #ffffff1f; }
.cal.won { background: linear-gradient(180deg, #34d399, #059669); color: #fff; }
.cal.lost { background: #7f1d1d; color: #fecaca; }
.cal.shield { background: #3730a3; color: #e0e7ff; }
.cal.today { outline: 2px solid var(--gold); }
.day-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed #ffffff1f; font-size: 13px; }
.day-row:first-child { border-top: 0; }
.day-row .de { font-size: 24px; }
.res { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; }
.res.won { background: var(--good); } .res.lost { background: #b91c1c; } .res.shield { background: #4338ca; }

/* ---------- Bottom-Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: #0b1140aa; z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 640px; margin: 0 auto; max-height: 88vh; overflow-y: auto; padding: 14px 16px calc(20px + var(--safe-b)); border-radius: 18px 18px 0 0; border: 2px solid var(--win-edge); border-bottom: 0; background: linear-gradient(180deg, var(--win1), var(--win2)); color: var(--win-text); animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet h2 { margin: 0 0 6px; font-family: "Cinzel", Georgia, serif; font-size: 20px; letter-spacing: .05em; color: var(--gold2); }
.sheet .muted { color: var(--win-dim); }
.sheet label { color: var(--win-text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.quick button { border: 1px solid #ffffff44; background: #ffffff12; color: #fff; border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 13px; }
.quick button.on { border-color: var(--gold); color: var(--gold2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #0b1140; border-radius: 10px; padding: 4px; margin: 6px 0; }
.seg button { border: 0; background: none; color: var(--win-dim); padding: 8px; border-radius: 8px; font-weight: 800; }
.seg button.on { background: #ffffff1f; color: var(--gold2); }
.preview { margin-top: 10px; padding: 10px 12px; background: #0b1140; border: 1px solid #ffffff22; border-radius: 10px; font-size: 13px; color: var(--win-dim); }
.preview b { color: var(--gold2); }
.calc > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-top: 1px dashed #ffffff1f; }
.calc > div:first-child { border-top: 0; }
.calc .total { border-top: 1px solid #ffffff55; font-weight: 800; }
.good { color: #86efac; } .bad { color: #fca5a5; }
.pick { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px dashed #ffffff1f; margin: 0; font-size: 14px; font-weight: 600; opacity: 1; }
.pick:first-child { border-top: 0; }
.pick input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.pick .pm { flex: 1; }
.pick .x { background: none; border: 0; color: var(--win-dim); }

/* ---------- Sieg / Level-Up ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: #070b2bd9; display: grid; place-items: center; padding: 20px; animation: fade .3s; }
.result { width: min(400px, 100%); }
.result .big { font-family: "Cinzel", Georgia, serif; font-weight: 900; text-align: center; font-size: 34px; letter-spacing: .25em; color: var(--gold2); text-shadow: 0 0 18px #f6c45399; margin: 6px 0 10px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.result .line { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; border-top: 1px dashed #ffffff1f; }
.result .line:first-of-type { border-top: 0; }
.result .icon { text-align: center; font-size: 64px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sparkle { position: fixed; z-index: 61; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: sparkle linear forwards; }
@keyframes sparkle { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 70; max-width: calc(100% - 28px); background: linear-gradient(180deg, var(--win1), var(--win2)); color: #fff; border: 2px solid var(--win-edge); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; animation: up .2s; }
.notice { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
.notice.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.empty { text-align: center; color: var(--win-dim); padding: 14px 6px; font-size: 14px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.switch input { width: 22px; height: 22px; accent-color: var(--gold); }
