/* ひとふで灯籠 — 夏祭りの夜（藍×灯り黄×朱） */
:root {
  --night: #0c1630;
  --indigo: #16264d;
  --indigo-2: #213a72;
  --indigo-line: rgba(160, 182, 230, .22);
  --lamp: #ffcf5c;
  --lamp-deep: #f0a830;
  --lamp-soft: #ffe8a8;
  --shu: #e0482c;
  --shu-deep: #b5321b;
  --washi: #f6efdf;
  --text: #f6efe0;
  --text-soft: #c9cfe0;
  --f-brush: 'Yuji Mai', 'M PLUS 2', serif;
  --f-body: 'M PLUS 2', 'Hiragino Sans', sans-serif;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.3, 1.6, .5, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--f-body); font-weight: 500; color: var(--text); background: #070d1e; line-break: strict; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
@media (min-width: 600px) { body { background: #070d1e radial-gradient(circle at 50% 30%, rgba(255, 207, 92, .12), transparent 40%); } }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; font-weight: 800; }

.app {
  position: relative; height: 100dvh; width: 100%; max-width: 430px; margin: 0 auto; overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--indigo) 55%, #1b3060 100%);
}
@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px rgba(255, 207, 92, .25), 0 30px 90px rgba(0, 0, 0, .6); } }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.screen.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; z-index: 2; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- ボタン ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 18px; border: 0; border-radius: var(--r); font-weight: 800; font-size: 16px; text-decoration: none; line-height: 1.3; word-break: keep-all; transition: transform .12s var(--ease), box-shadow .2s, filter .12s; }
.btn:active { transform: scale(.96); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--lamp { background: var(--lamp); color: #2a1a05; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 0 24px rgba(255, 190, 70, .45); }
.btn--lamp:active { box-shadow: 0 0 40px rgba(255, 190, 70, .8); }
.btn--ghost { background: var(--indigo-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--indigo-line); }
.btn--danger { background: var(--shu-deep); color: #fff; }
.btn--l { width: 100%; min-height: 56px; font-size: 17px; }
.btn--xl { width: 100%; min-height: 62px; font-size: 20px; font-family: var(--f-brush); font-weight: 400; letter-spacing: .06em; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(33, 58, 114, .85); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--indigo-line); transition: transform .12s; }
.iconbtn:active { transform: scale(.9); }
.iconbtn svg { width: 22px; height: 22px; }

.bar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 6px; position: relative; z-index: 3; }
.bar__title { flex: 1; margin: 0; text-align: center; font-family: var(--f-brush); font-weight: 400; font-size: 24px; letter-spacing: .08em; color: var(--lamp-soft); }
.bar__sp { width: 46px; flex: none; }
.bar__mid { flex: 1; text-align: center; }
.bar__ch { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--text-soft); }
.bar__mid .bar__title { display: flex; justify-content: center; align-items: baseline; gap: 10px; font-size: 22px; }
.bar__name { font-size: 20px; color: var(--text); }

/* ---------- タイトル ---------- */
.screen--title { background: var(--night) url(/app-development/apps/a030/img/title.webp) center bottom / cover no-repeat; }
.title__top { display: flex; justify-content: flex-end; padding: calc(12px + var(--safe-t)) 14px 0; }
.title__head { text-align: center; padding: 0 20px; }
.title__kicker { margin: 0; display: inline-flex; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--shu-deep); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .12em; }
.title__logo { margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; font-family: var(--f-brush); font-weight: 400; line-height: 1.02; color: var(--lamp); text-shadow: 0 0 18px rgba(255, 190, 70, .7), 0 0 50px rgba(255, 150, 40, .45); }
.title__logo span:first-child { font-size: clamp(44px, 13vw, 56px); letter-spacing: .1em; }
.title__logo span:last-child { font-size: clamp(64px, 20vw, 86px); letter-spacing: .14em; }
.title__lead { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 8px; background: var(--night); color: var(--text); font-size: 15px; font-weight: 700; word-break: keep-all; }
.title__panel { margin-top: auto; display: grid; gap: 12px; padding: 18px 18px calc(22px + var(--safe-b)); background: linear-gradient(rgba(12, 22, 48, 0), rgba(12, 22, 48, .8) 35%); }
.title__stat { justify-self: center; margin: 0; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 16px; border-radius: 999px; background: var(--night); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px var(--indigo-line); }
.title__stat svg { width: 18px; height: 18px; color: var(--lamp); align-self: center; }
.title__stat b { font-size: 22px; color: var(--lamp); }
.title__of { font-weight: 800; }
.title__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 問題一覧（吊り提灯） ---------- */
.screen--list { background: var(--night) url(/app-development/apps/a030/img/list.webp) center top / cover no-repeat; }
.list__scroll { padding: 4px 0 calc(28px + var(--safe-b)); }
.chap { margin: 0 14px 18px; }
.chap__head { position: relative; height: 96px; border-radius: 12px; overflow: hidden; background: center / cover no-repeat; display: flex; align-items: flex-end; justify-content: space-between; box-shadow: 0 0 0 1px var(--indigo-line), 0 8px 20px rgba(0, 0, 0, .4); }
.chap__label { margin: 0 0 8px 8px; padding: 4px 12px 5px; border-radius: 8px; background: var(--night); display: flex; align-items: baseline; gap: 8px; }
.chap__name { font-family: var(--f-brush); font-size: 22px; color: var(--lamp-soft); }
.chap__en { font-size: 12px; font-weight: 700; color: var(--text-soft); letter-spacing: .1em; }
.chap__cnt { margin: 0 8px 10px 0; padding: 3px 10px; border-radius: 999px; background: var(--night); font-size: 13px; font-weight: 800; white-space: nowrap; }
.rope { position: relative; height: 150px; margin-top: 4px; }
.rope svg.rope__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 40px; }
.rope__line path { fill: none; stroke: #8e7a5a; stroke-width: 2.5; }
.lant { position: absolute; top: 14px; width: 56px; margin-left: -28px; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #3a2408; border: 0; background: none; padding: 0; transform-origin: 50% 0; animation: sway 4s ease-in-out infinite alternate; }
.lant:nth-child(2n) { animation-delay: -1.3s; }
.lant:nth-child(3n) { animation-delay: -2.6s; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.lant__cord { width: 2px; height: 14px; background: #8e7a5a; }
.lant__body { position: relative; width: 52px; height: 66px; border-radius: 40% / 30%; display: grid; place-items: center; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 10px), linear-gradient(90deg, #c9c2b0, #efe8d6 50%, #c9c2b0); box-shadow: inset 0 6px 0 #4a3a26, inset 0 -6px 0 #4a3a26; transition: box-shadow .3s; }
.lant__no { font-family: var(--f-brush); font-size: 26px; line-height: 1; color: #2e2410; white-space: nowrap; letter-spacing: -.06em; }
.lant__no.is-2 { font-size: 19px; }
.lant.is-lit .lant__body { background: repeating-linear-gradient(180deg, rgba(160, 60, 0, .12) 0 2px, transparent 2px 10px), linear-gradient(90deg, #ffb84a, #fff3c4 50%, #ffb84a); box-shadow: inset 0 6px 0 #4a3a26, inset 0 -6px 0 #4a3a26, 0 0 22px rgba(255, 190, 70, .85); }
.lant.is-next .lant__body { box-shadow: inset 0 6px 0 #4a3a26, inset 0 -6px 0 #4a3a26, 0 0 0 3px var(--shu); }
.lant.is-locked .lant__body { background: linear-gradient(90deg, #3d4a66, #56637f 50%, #3d4a66); }
.lant.is-locked .lant__no { color: #f2f4f8; }
.lant__rate { display: flex; gap: 1px; margin-top: 5px; padding: 2px 6px; border-radius: 999px; background: var(--night); }
.lant__rate svg { width: 12px; height: 12px; color: #4b5778; }
.lant__rate svg.on { color: var(--lamp); }
.lant__tag { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--shu-deep); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; z-index: 1; }
.lant:active .lant__body { transform: scale(.94); }

/* ---------- プレイ ---------- */
.screen--play { background: radial-gradient(120% 70% at 50% 100%, #24407a 0%, rgba(36, 64, 122, 0) 60%), linear-gradient(180deg, var(--night), var(--indigo)); }
.screen--play::before { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: repeating-linear-gradient(180deg, rgba(160, 190, 255, .06) 0 1px, transparent 1px 14px); pointer-events: none; }
.status { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 2px 16px 0; padding: 6px 14px; border-radius: 12px; background: rgba(12, 22, 48, .9); box-shadow: inset 0 0 0 1px var(--indigo-line); position: relative; z-index: 2; }
.status__left { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 700; }
.status__left b { font-size: 28px; color: var(--lamp); line-height: 1; }
.status__time { margin: 0; font-size: 20px; color: var(--text-soft); }
.no-timer .status__time { visibility: hidden; }
.stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 10px; }
.gboard { width: 100%; height: 100%; max-height: 100%; touch-action: none; overflow: visible; }
.g-e { fill: none; stroke: rgba(230, 220, 190, .38); stroke-width: 1.3; stroke-dasharray: 1.2 2.4; stroke-linecap: round; }
.g-e.is-hint { stroke: var(--lamp); stroke-width: 2.4; stroke-dasharray: 3 3; animation: march .6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -6; } }
.g-lit { fill: none; stroke: var(--lamp); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 1.6px rgba(255, 200, 80, .95)); }
.g-lit.on { stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear; }
.g-dots { fill: none; stroke: #fff6d2; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .01 4.2; opacity: 0; }
.g-dots.on { opacity: 1; transition: opacity .2s .15s; }
.g-rubber { stroke: var(--shu); stroke-width: 1.4; stroke-dasharray: 2 2; stroke-linecap: round; opacity: .9; }
.nd .glow { fill: url(#glow-g); opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .4s var(--pop); }
.nd .body { fill: #b7b2a4; stroke: #2b2216; stroke-width: .8; transition: fill .3s; }
.nd .cap { fill: #2b2216; }
.nd .rib { stroke: rgba(40, 30, 15, .35); stroke-width: .5; }
.nd.is-lit .glow { opacity: 1; transform: scale(1); }
.nd.is-lit .body { fill: url(#paper-g); }
.nd .ring { fill: none; stroke: var(--shu); stroke-width: 1.4; opacity: 0; }
.nd.is-cur .ring { opacity: 1; animation: ringp 1.1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringp { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.nd.is-start .ring { opacity: 1; stroke: var(--lamp); animation: ringp 1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.nd.is-dead .body { animation: flick .25s steps(2) 4; }
@keyframes flick { 50% { fill: #5a5650; } }
.guide { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--shu-deep); color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.guide.is-on { display: flex; animation: bob 1.4s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translate(-50%, -4px); } }
.guide svg { width: 20px; height: 20px; }
.msg { flex: none; min-height: 26px; margin: 0 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-soft); word-break: keep-all; position: relative; z-index: 2; }
.msg.is-bad { color: #ffb4a3; }
.msg.is-good { color: var(--lamp); }
.actions { flex: none; display: grid; grid-template-columns: auto auto 1fr; gap: 10px; padding: 6px 14px calc(14px + var(--safe-b)); position: relative; z-index: 2; }
.btn--sq { flex-direction: column; gap: 2px; width: 72px; min-height: 60px; padding: 6px; font-size: 12px; }
.btn--hint { min-height: 60px; font-size: 18px; }
.hintn { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: #2a1a05; color: var(--lamp); font-size: 14px; }
.screen--play.is-done .gboard { pointer-events: none; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.spark { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.float { position: absolute; width: 22px; height: 26px; margin: -13px -11px; border-radius: 4px; background: linear-gradient(90deg, #ffb84a, #fff3c4 50%, #ffb84a); box-shadow: 0 0 16px rgba(255, 190, 70, .9); animation: floatup 2.4s ease-in forwards; }
@keyframes floatup { to { transform: translate(var(--dx), -360px); opacity: 0; } }

/* ---------- クリア ---------- */
.clear__hero { position: relative; min-height: 300px; padding: calc(30px + var(--safe-t)) 20px 46px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--night) url(/app-development/apps/a030/img/clear.webp) center / cover no-repeat; }
.clear__kicker { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--shu-deep); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.clear__title { margin: 14px 0 0; display: flex; align-items: baseline; gap: 12px; padding: 6px 18px 8px; border-radius: 12px; background: var(--night); font-family: var(--f-brush); font-weight: 400; color: var(--lamp-soft); }
.clear__title span:first-child { font-size: 22px; }
.clear__title span:last-child { font-size: 32px; color: var(--lamp); }
.clear__word { margin: 12px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--night); font-weight: 800; font-size: 15px; }
.rate { margin: 14px 0 0; display: flex; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--night); }
.rate svg { width: 34px; height: 34px; color: #3a4668; }
.rate svg.on { color: var(--lamp); filter: drop-shadow(0 0 8px rgba(255, 190, 70, .9)); animation: lampon .5s var(--pop) both; }
.rate svg.on:nth-child(2) { animation-delay: .3s; }
.rate svg.on:nth-child(3) { animation-delay: .6s; }
@keyframes lampon { from { transform: scale(.2); opacity: 0; } }
.card { position: relative; margin: -24px 14px 0; padding: 16px; border-radius: 16px; background: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo-line), 0 10px 28px rgba(0, 0, 0, .4); }
.cstats { margin: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.cstats div { padding: 8px 6px; border-radius: 10px; background: var(--night); text-align: center; }
.cstats dt { font-size: 12px; font-weight: 700; color: var(--text-soft); white-space: nowrap; }
.cstats dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cstats dd.num, .cstats b { font-size: 26px; color: var(--lamp); }
.clear__note { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.clear__note:empty { display: none; }
.sub-h { margin: 14px 0 8px; font-family: var(--f-brush); font-weight: 400; font-size: 20px; color: var(--lamp-soft); }
.replay { padding: 8px; border-radius: 12px; background: var(--night); }
.replay svg { width: 100%; height: auto; max-height: 300px; }
.replay .r-e { fill: none; stroke: var(--lamp); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 1.5px rgba(255, 200, 80, .9)); animation: draw .35s linear forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.replay .r-n { fill: url(#paper-g); stroke: #2b2216; stroke-width: .8; }
.replay .r-k { font-family: var(--f-body); font-weight: 800; font-size: 5px; fill: #2a1a05; text-anchor: middle; dominant-baseline: central; }
.clear__scroll { padding-bottom: 16px; }
.clear__actions { flex: none; display: grid; gap: 10px; padding: 10px 14px calc(14px + var(--safe-b)); background: linear-gradient(rgba(22, 38, 77, 0), var(--indigo) 30%); }
.clear__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 設定 ---------- */
.settings__scroll { padding-bottom: calc(26px + var(--safe-b)); }
.sec-h { margin: 18px 18px 8px; font-family: var(--f-brush); font-weight: 400; font-size: 21px; color: var(--lamp-soft); }
.howto { list-style: none; margin: 0 14px; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; border-radius: 14px; background: var(--indigo-2); }
.howto img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.howto h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--lamp); word-break: keep-all; }
.howto p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.group { margin: 0 14px; border-radius: 14px; background: var(--indigo-2); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--indigo-line); }
.row:last-child { border-bottom: 0; }
.row__label { flex: 1; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.row__label small { font-weight: 500; font-size: 13px; color: var(--text-soft); }
.row__v { font-size: 26px; color: var(--lamp); }
.row__u { font-weight: 800; color: var(--text-soft); }
.row--btn { width: 100%; border: 0; background: none; color: #ffb4a3; font-weight: 800; font-size: 15px; justify-content: flex-start; }
.row--btn svg { width: 22px; height: 22px; }
.switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px; border: 0; background: #4a5778; transition: background .2s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--pop); }
.switch[aria-checked="true"] { background: var(--lamp-deep); }
.switch[aria-checked="true"] i { transform: translateX(24px); }
.about { padding: 16px 14px; display: grid; gap: 12px; }
.about__head { display: flex; align-items: center; gap: 12px; }
.about__head img { width: 64px; height: 64px; border-radius: 15px; }
.about__name { margin: 0; font-family: var(--f-brush); font-size: 22px; color: var(--lamp-soft); }
.about__ver { margin: 2px 0 0; font-size: 13px; color: var(--text-soft); }
.about__note, .about__p { margin: 0; font-size: 14px; line-height: 1.75; }
.about__p { color: var(--text-soft); }
.about__k { margin: 0; font-weight: 800; font-size: 14px; color: var(--lamp); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border-radius: 999px; background: var(--night); font-size: 13px; font-weight: 700; }

.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(4, 8, 20, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; display: grid; gap: 12px; padding: 12px 18px calc(20px + var(--safe-b)); background: var(--indigo); border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--indigo-line); transform: translateY(105%); transition: transform .34s var(--ease); touch-action: none; }
.sheet.is-on { transform: none; }
.sheet__grab { justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: #4a5778; }
.sheet h2 { margin: 4px 0 0; font-family: var(--f-brush); font-weight: 400; font-size: 24px; line-height: 1.4; color: var(--lamp-soft); word-break: keep-all; }
.sheet p { margin: 0 0 6px; font-size: 15px; line-height: 1.75; color: var(--text); word-break: keep-all; }
.toast { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); z-index: 30; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 12px; background: var(--washi); color: #1a1a1a; font-weight: 800; font-size: 14px; line-height: 1.55; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.splash { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--night); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.splash.is-on { opacity: 1; visibility: visible; transition: none; }
.splash img { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 0 40px rgba(255, 190, 70, .5); }
.splash p { margin: 0; font-family: var(--f-brush); font-size: 28px; color: var(--lamp); }
.noscript { position: absolute; inset: auto 20px 40px; padding: 14px; border-radius: 8px; background: var(--washi); color: #111; font-size: 15px; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
