/* ナンプレ日和 — 生成りの紙、濃紺の罫線と活字、青いインクの手書き、金の印 */
:root {
  --paper: #f5efe2;
  --paper2: #ece3d0;
  --card: #fbf8f1;
  --navy: #1d2c4c;
  --navy2: #3a4b70;
  --ink: #2850a0;
  --gold: #a87e22;
  --gold-text: #7a5a10;
  --gold-hi: #c9a14a;
  --gold-soft: #ecdcae;
  --same: #f1e5c2;
  --peer: #ebe5d6;
  --graphite: #5b5b62;
  --err: #b23a28;
  --err-soft: #f6dcd4;
  --line: #cfc3a4;
  --muted: #5e6475;
  --f-ui: 'Murecho', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-print: 'DM Serif Display', 'Murecho', serif;
  --f-hand: 'Caveat', 'Murecho', cursive;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .55, 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; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--navy); font-family: var(--f-ui); font-size: 15px; line-height: 1.65; line-break: strict; overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .sheet__h { font-feature-settings: "palt"; word-break: keep-all; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.app { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
@media (min-width: 600px) {
  body { background: #e6dcc6; }
  .app { left: 50%; width: 430px; transform: translateX(-50%); box-shadow: 0 0 0 1px #cfc3a4, 0 30px 70px #1d2c4c33; }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; visibility: hidden; opacity: 0; pointer-events: none; background: var(--paper); }
.screen.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.screen.is-enter { animation: slidein .35s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 24px; }

/* ===== 共通部品 ===== */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.3; transition: transform .15s var(--spring), background .15s; word-break: keep-all; text-align: center; }
.pill svg { font-size: 18px; }
.pill:active { transform: scale(.96); }
.pill--navy { background: var(--navy); color: #fbf8f1; box-shadow: 0 4px 0 #0e1830; }
.pill--navy:active { box-shadow: 0 1px 0 #0e1830; transform: translateY(3px); }
.pill--line { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.pill--danger { background: var(--err); color: #fff; }
.pill--wide { display: flex; width: 100%; }
.ibtn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: var(--navy); transition: transform .15s var(--spring), background .15s; }
.ibtn:active { background: var(--paper2); transform: scale(.92); }
.ibtn:disabled { opacity: .35; }
.ibtn--ghost { visibility: hidden; }
.sec-h { font-weight: 700; font-size: 16px; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--navy2); }
.dots i.is-on { background: var(--navy); box-shadow: none; }

/* ===== タブバー ===== */
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 6px 12px calc(6px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); }
.tab { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.tab svg { font-size: 22px; width: 56px; height: 30px; padding: 4px 0; border-radius: 15px; transition: background .2s; }
.tab.is-on { color: var(--navy); }
.tab.is-on svg { background: var(--gold-soft); }

/* ===== 今日の問題 ===== */
.screen--today .scroll { padding-top: 0; }
.today-hero { margin: 0 -16px; }
.today-hero__img { aspect-ratio: 3 / 2; max-height: 34vh; width: 100%; background: var(--paper2) url(/app-development/apps/a025/img/hero.webp) 70% 50% / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.today-hero__text { padding: 0 20px; margin-top: -18px; position: relative; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--navy2); }
.brand__mark { width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 3px; background: linear-gradient(var(--navy), var(--navy)) 33.3% 0 / 1px 100% no-repeat, linear-gradient(var(--navy), var(--navy)) 66.6% 0 / 1px 100% no-repeat, linear-gradient(var(--navy), var(--navy)) 0 33.3% / 100% 1px no-repeat, linear-gradient(var(--navy), var(--navy)) 0 66.6% / 100% 1px no-repeat; }
.today-date { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; font-weight: 700; font-size: 18px; color: var(--navy); }
.today-date .num { font-family: var(--f-print); font-size: 46px; line-height: 1; font-weight: 400; }
.today-date__w { margin-left: 10px; font-size: 15px; color: var(--muted); }
.today-h { font-size: 15px; font-weight: 700; color: var(--gold-text); letter-spacing: .2em; margin-top: 2px; }
.daily { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 24px #1d2c4c14; display: flex; flex-direction: column; gap: 12px; }
.daily__head { display: flex; align-items: center; gap: 10px; }
.daily__lv { font-weight: 700; font-size: 20px; }
.daily__est { margin-left: auto; font-size: 14px; color: var(--muted); }
.daily__est b { font-family: var(--f-print); font-size: 20px; color: var(--navy); font-weight: 400; }
.daily__lead { font-size: 14.5px; color: var(--navy2); }
.daily__streak { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.daily__streak svg { color: var(--gold); font-size: 18px; }
.daily__streak b { font-family: var(--f-print); font-size: 20px; color: var(--navy); font-weight: 400; }
.daily__done { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f6edd2; }
.seal { width: 44px; height: 44px; color: var(--gold-hi); filter: drop-shadow(0 2px 0 #8a6a1f55); }
.daily__done-t { font-weight: 700; font-size: 16px; }
.daily__done-s { font-size: 14px; color: var(--navy2); }
.daily__prog { display: flex; flex-direction: column; gap: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--paper2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.daily__prog-t { font-size: 14px; color: var(--navy2); }
.daily__prog-t b { font-family: var(--f-print); font-size: 18px; color: var(--navy); font-weight: 400; }
.resume__i { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; min-height: 52px; }
.resume__lv { font-weight: 700; }
.resume__s { font-size: 14px; color: var(--muted); }
.resume__s b { color: var(--navy); }
.resume__go { font-weight: 700; color: var(--ink); }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lvcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 12px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; text-align: left; transition: transform .15s var(--spring); }
.lvcard:active { transform: scale(.97); }
.lvcard__img { width: 100%; aspect-ratio: 16 / 10; background: var(--paper2) center / cover no-repeat; }
.lvcard__name { font-weight: 700; font-size: 16px; padding: 4px 12px 0; }
.lvcard .dots { padding: 0 12px; }
.lvcard__meta { font-size: 13px; color: var(--muted); padding: 0 12px; }
.lvcard__meta b { font-family: var(--f-print); font-size: 16px; color: var(--navy); font-weight: 400; }
.foot-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.7; }

/* ===== プレイ ===== */
.pbar { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--safe-t)) 8px 4px; }
.pbar__mid { flex: 1; text-align: center; min-width: 0; }
.pbar__k { font-size: 12px; font-weight: 700; color: var(--gold-text); letter-spacing: .14em; line-height: 1.3; }
.pbar__lv { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 17px; line-height: 1.4; }
.timer { display: inline-flex; align-items: center; gap: 4px; min-width: 76px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-family: var(--f-print); font-size: 18px; color: var(--navy); justify-content: center; }
.timer svg { font-size: 15px; }
.pinfo { flex: none; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); padding: 0 0 4px; }
.pinfo b { font-family: var(--f-print); font-size: 17px; color: var(--navy); font-weight: 400; }
.boardwrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.board { --cs: 38px; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); background: var(--card); box-shadow: 0 0 0 2.5px var(--navy), 0 14px 30px #1d2c4c22; border-radius: 3px; transition: filter .3s; }
.board.is-hidden { filter: blur(14px); }
.cell { position: relative; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); padding: 0; overflow: hidden; transition: background .12s; }
.cell.c8 { border-right: 0; } .cell.r8 { border-bottom: 0; }
.cell.c2, .cell.c5 { border-right: 2px solid var(--navy); }
.cell.r2, .cell.r5 { border-bottom: 2px solid var(--navy); }
.cell.is-peer { background: var(--peer); }
.cell.is-same { background: var(--same); }
.cell.is-hunit { background: #e2e8f3; }
.cell.is-sel { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.cell.is-hint { box-shadow: inset 0 0 0 2.5px var(--ink); }
.cell__v { grid-area: 1 / 1; line-height: 1; }
.cell.is-given .cell__v { font-family: var(--f-print); font-size: calc(var(--cs) * .64); color: var(--navy); }
.cell.is-user .cell__v { font-family: var(--f-hand); font-weight: 700; font-size: calc(var(--cs) * .84); color: var(--ink); transform: rotate(-3deg) translateY(1px); }
.cell.is-err .cell__v { color: var(--err); }
.cell.is-err { background: var(--err-soft); }
.cell.is-err.is-sel { background: #f1cfc4; }
.cell__n { grid-area: 1 / 1; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 1px; }
.cell__n i { font-style: normal; display: grid; place-items: center; font-size: max(11px, calc(var(--cs) * .28)); line-height: 1; color: var(--graphite); font-weight: 500; }
.cell__n i.is-same { color: var(--navy); font-weight: 700; }
.cell.is-ink .cell__v { animation: ink .32s var(--ease); }
@keyframes ink { 0% { opacity: 0; filter: blur(3px); transform: rotate(-3deg) scale(1.4); } }
.cell.is-pencil .cell__n { animation: pen .25s ease-out; }
@keyframes pen { 0% { opacity: .2; } }
.cell.is-bump { animation: bump .32s; }
@keyframes bump { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.cell.is-glint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, #f6e2a6cc 50%, transparent 70%); animation: glint .6s var(--d, 0ms) ease-out backwards; pointer-events: none; opacity: 0; }
@keyframes glint { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(100%); } }
.cell.is-wave { animation: wave .7s var(--d, 0ms) var(--ease) both; }
@keyframes wave { 0% { background: var(--card); } 40% { background: var(--gold-soft); transform: scale(1.06); } 100% { background: var(--card); } }
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cover__t { font-weight: 700; font-size: 22px; background: var(--paper); padding: 0 12px; border-radius: 6px; }
.cover__s { font-size: 14px; color: var(--muted); background: var(--paper); padding: 0 10px; border-radius: 6px; margin-bottom: 8px; }
.hintbar { position: absolute; left: 12px; right: 12px; bottom: 6px; z-index: 5; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 4px 0 0 var(--ink), 0 0 0 1px var(--line), 0 14px 30px #1d2c4c33; animation: up .3s var(--spring); }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.hintbar__k { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .14em; }
.hintbar__t { font-size: 15px; line-height: 1.7; margin: 2px 0 10px; word-break: normal; }
.hintbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hintbar__btns .pill { min-height: 44px; font-size: 15px; padding: 8px 16px; }
.controls { flex: none; display: grid; grid-template-columns: 1fr 112px; gap: 10px; padding: 8px 12px calc(10px + var(--safe-b)); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 3px 0 #d8ccad; transition: transform .1s, box-shadow .1s, opacity .2s; line-height: 1; }
.key:active { transform: translateY(2px); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #d8ccad; }
.key__d { font-family: var(--f-print); font-size: 28px; color: var(--navy); }
.key__left { font-size: 11px; color: var(--muted); margin-top: 2px; min-height: 11px; }
.key.is-same { box-shadow: 0 0 0 2px var(--gold), 0 3px 0 #d8ccad; }
.key.is-done { opacity: .38; }
.pad.is-memo .key { background: #f1f0ec; }
.pad.is-memo .key__d { font-family: var(--f-ui); font-weight: 500; font-size: 20px; color: var(--graphite); }
.tools { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; font-size: 11.5px; font-weight: 700; color: var(--navy); background: var(--paper2); transition: transform .12s var(--spring), background .15s; }
.tool svg { font-size: 22px; }
.tool:active { transform: scale(.94); }
.tool:disabled { color: #5f5f66; }
.tool:disabled svg { opacity: .4; }
.tool.is-on { background: var(--navy); color: #fbf8f1; }
.tool__badge { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 4px; background: var(--card); color: var(--navy); }
.tool.is-on .tool__badge { background: var(--gold-hi); color: var(--navy); }
.clear { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: #1d2c4c66; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.clear__card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; padding: 0 18px 18px; border-radius: 18px; background: var(--card); box-shadow: 0 30px 60px #1d2c4c55; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.clear__card.is-fresh { animation: rise .5s var(--spring); }
@keyframes rise { from { transform: translateY(30px) scale(.94); opacity: 0; } }
.clear__img { margin: 0 -18px; aspect-ratio: 16 / 9; background: var(--paper2) url(/app-development/apps/a025/img/done.webp) center 45% / cover no-repeat; }
.clear__k { font-size: 13px; font-weight: 700; color: var(--gold-text); letter-spacing: .12em; margin-top: 6px; }
.clear__h { font-size: 28px; font-weight: 700; }
.clear__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.clear__stats div { display: flex; flex-direction: column; gap: 2px; }
.clear__stats span { font-size: 12px; color: var(--muted); }
.clear__stats b { font-family: var(--f-print); font-weight: 400; font-size: 26px; line-height: 1.1; }
.clear__best { font-weight: 700; color: var(--ink); font-size: 14px; }
.clear__seal { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--navy2); }
.clear__seal svg { width: 26px; height: 26px; color: var(--gold-hi); animation: stamp .5s .3s var(--spring) backwards; }
@keyframes stamp { from { transform: scale(2.4) rotate(-20deg); opacity: 0; } }
.clear__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* ===== カレンダー ===== */
.cal-top { margin: 0 -16px; position: relative; }
.cal-top__img { aspect-ratio: 3 / 1.25; max-height: 24vh; width: 100%; background: var(--paper2) url(/app-development/apps/a025/img/calendar.webp) center 60% / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.cal-h { font-size: 22px; font-weight: 700; padding: 0 20px; margin-top: -10px; position: relative; }
.streak { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.st { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.st svg { color: var(--gold); font-size: 18px; }
.st b { font-family: var(--f-print); font-size: 28px; line-height: 1.1; font-weight: 400; }
.st span { font-size: 12px; color: var(--muted); }
.cal { margin-top: 14px; padding: 10px 10px 12px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__m { font-weight: 700; font-size: 17px; }
.cal__m .num { font-family: var(--f-print); font-weight: 400; font-size: 22px; margin: 0 2px; }
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 4px 0; }
.cal__week span:first-child { color: var(--err); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calday { position: relative; aspect-ratio: .88; border-radius: 8px; display: flex; flex-direction: column; align-items: center; padding-top: 3px; background: var(--paper); }
.calday--pad { background: transparent; }
.calday__d { font-family: var(--f-print); font-size: 15px; line-height: 1.2; position: relative; z-index: 1; }
.calday.is-today { box-shadow: inset 0 0 0 2px var(--navy); }
.calday.is-future { opacity: .45; }
.calday__seal { position: absolute; left: 50%; top: 52%; width: 72%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-8deg); color: var(--gold-hi); opacity: .9; }
.calday.is-solved .calday__d { color: var(--navy); }
.calday__t { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 11px; font-weight: 700; color: var(--navy); text-align: center; z-index: 1; }
.calday__dots { position: absolute; top: 5px; right: 4px; display: flex; gap: 2px; }
.calday__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.cal__legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal__legend svg { color: var(--gold-hi); font-size: 16px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }
.lvt { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.lvt th, .lvt td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--paper2); }
.lvt thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.lvt tbody th { text-align: left; font-weight: 700; padding-left: 14px; }
.lvt td { font-family: var(--f-print); font-size: 17px; }
.lvt tr:last-child th, .lvt tr:last-child td { border-bottom: 0; }

/* ===== 設定 ===== */
.page-h { font-size: 24px; font-weight: 700; padding: calc(18px + var(--safe-t)) 4px 0; }
.rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--paper2); }
.row:last-child { border-bottom: 0; }
.row__t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row__l { font-weight: 700; font-size: 15.5px; }
.row__l--danger { color: var(--err); }
.row__d { font-size: 13px; color: var(--muted); line-height: 1.55; }
.row--link svg { font-size: 22px; color: var(--navy2); }
.row--link:active { background: var(--paper2); }
.switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: #d6ceba; transition: background .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--spring); }
.switch.is-on { background: var(--navy); }
.switch.is-on i { transform: translateX(20px); }
.rule { padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.8; }
.rule p + p { margin-top: 8px; }
.note { font-size: 14px; line-height: 1.75; padding: 12px 14px; border-radius: 12px; background: var(--paper2); }
.note--s { margin-top: 18px; font-size: 13.5px; }
.pbar--plain { background: var(--paper); }
.about { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; }
.about__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 10px 24px #1d2c4c22; }
.about__name { font-size: 22px; font-weight: 700; }
.about__ver { font-size: 13px; color: var(--muted); }
.box { width: 100%; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.box__h { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tech-list { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }

/* ===== シート・トースト・スプラッシュ ===== */
.sheet { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.sheet__scrim { position: absolute; inset: 0; background: #1d2c4c66; opacity: 0; transition: opacity .25s; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84%; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px calc(18px + var(--safe-b)); background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px #1d2c4c33; transform: translateY(105%); transition: transform .32s var(--ease); }
.sheet.is-on { pointer-events: auto; }
.sheet.is-on .sheet__scrim { opacity: 1; }
.sheet.is-on .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet__body { display: flex; flex-direction: column; gap: 12px; }
.sheet__h { font-size: 20px; font-weight: 700; }
.sheet__p { font-size: 14.5px; line-height: 1.75; word-break: normal; }
.sheet__btns { display: flex; flex-direction: column; gap: 10px; }
.daylist { list-style: none; margin: 0; padding: 0; }
.daylist li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--paper2); }
.daylist__k { font-weight: 700; font-size: 14.5px; }
.daylist .num { font-family: var(--f-print); font-size: 20px; grid-row: span 2; align-self: center; }
.daylist__s { font-size: 13px; color: var(--muted); }
.toast { position: absolute; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 95; transform: translate(-50%, 16px); opacity: 0; width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fbf8f1; font-size: 14.5px; font-weight: 700; box-shadow: 0 10px 26px #1d2c4c44; pointer-events: none; transition: opacity .2s, transform .25s var(--spring); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.app[data-route="play"] .toast { bottom: auto; top: calc(96px + var(--safe-t)); }
.splash { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--paper); transition: opacity .4s; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px #1d2c4c22; animation: rise .6s var(--spring); }
.splash__name { font-size: 22px; font-weight: 700; letter-spacing: .1em; }
.splash.is-out { opacity: 0; }
.noscript { padding: 40px 20px; text-align: center; }

@media (max-height: 700px) {
  .key { min-height: 46px; }
  .key__d { font-size: 24px; }
  .today-date .num { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

.hintbar.is-top { bottom: auto; top: 6px; }
