/* らくがき帳 — 紙白×黒×原色 */
:root {
  --paper: #fbfaf6;
  --desk: #e9e6df;
  --desk-2: #dcd8cf;
  --ink: #121212;
  --graphite: #4f4f4f;
  --line: #d3cfc6;
  --red: #e2382b;
  --yellow: #f4c20d;
  --blue: #1d5fd1;
  --red-d: #b8261b;
  --blue-d: #1648a6;
  --f-hand: "Klee One", "IBM Plex Sans JP", sans-serif;
  --f-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-num: "DM Mono", ui-monospace, monospace;
  --r-island: 22px;
  --r-panel: 16px;
  --sh: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 30px -12px rgba(0, 0, 0, .28);
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #cfcbc2; color: var(--ink); font: 400 15px/1.7 var(--f-body); line-break: strict; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.nowrap { white-space: nowrap; }
.kw { word-break: keep-all; }
.num { font-family: var(--f-num); }
.app { position: fixed; inset: 0; max-width: 430px; margin: 0 auto; overflow: hidden; background-color: var(--desk); }
@media (min-width: 600px) {
  body { background: #cfcbc2 radial-gradient(circle at 30% 20%, #e6e2d9, #c4bfb5 70%); }
  .app { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 30px 80px rgba(0, 0, 0, .3); }
}
.screens { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background-color: var(--desk); overflow: hidden; }
.screen.is-in { animation: rise 260ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px calc(var(--safe-b) + 32px); }

/* ---------- 共通の部品 ---------- */
.ib {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: transparent; display: grid; place-items: center;
  color: var(--ink); text-decoration: none; transition: transform .1s, background .15s;
}
.ib:active { transform: scale(.88); background: rgba(0, 0, 0, .06); }
.ib[disabled] { opacity: .3; pointer-events: none; }
.ib svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 8px) 10px 8px; min-height: calc(var(--safe-t) + 60px); }
.topbar h1 { flex: 1; min-width: 0; font: 600 19px/1.3 var(--f-hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 16px;
  font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .1s; word-break: keep-all;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn--ink { background-color: var(--ink); color: #fff; }
.btn--paper { background-color: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--red { background-color: var(--red-d); color: #fff; }
.btn + .btn { margin-top: 10px; }
.seg { display: flex; padding: 3px; border-radius: 14px; background-color: var(--desk-2); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; background: transparent; font-size: 14px; font-weight: 700; color: var(--graphite); white-space: nowrap; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background-color: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.field { margin-top: 18px; }
.field__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; font: 600 15px/1.4 var(--f-hand); }
.field__h .num { font-size: 15px; }
input[type=range] { width: 100%; height: 36px; accent-color: var(--ink); }
.switch { position: relative; flex: none; width: 54px; height: 32px; border-radius: 16px; border: 0; background: #b9b4aa; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .22s var(--spring); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }

/* ---------- キャンバス ---------- */
.screen--canvas { background-color: var(--desk); }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.stage.is-pan { cursor: grab; }
.doc { position: absolute; left: 0; top: 0; width: 1200px; height: 1600px; transform-origin: 0 0; }
.paper { position: absolute; inset: 0; background-color: var(--paper); background-image: url(/app-development/apps/a094/img/paper.webp); background-size: 100% 100%; box-shadow: 0 3px 4px rgba(0, 0, 0, .1), 0 30px 60px -20px rgba(0, 0, 0, .35); border-radius: 0 0 10px 10px; }
.paper::before { /* リング綴じ */
  content: ""; position: absolute; left: 40px; right: 40px; top: -26px; height: 60px;
  background: radial-gradient(circle at 50% 70%, var(--desk) 0 9px, transparent 10px) 0 0 / 50px 60px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 18px, #2b2b2b 18px 32px, transparent 32px 50px);
  -webkit-mask: linear-gradient(#000 0 34px, transparent 34px); mask: linear-gradient(#000 0 34px, transparent 34px);
  border-radius: 8px;
}
.lyr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.island {
  position: absolute; left: 10px; right: 10px; top: calc(var(--safe-t) + 8px); z-index: 5; display: flex; align-items: center; gap: 0; padding: 4px;
  background-color: var(--paper); border-radius: var(--r-island); box-shadow: var(--sh);
}
.island__t { flex: 1; min-width: 0; padding: 0 4px; }
.island__t b { display: block; font: 600 15px/1.25 var(--f-hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island__t span { display: block; font-size: 11px; color: var(--graphite); line-height: 1.3; white-space: nowrap; }
.lbtn { position: relative; }
.lbtn i { position: absolute; right: 3px; top: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ink); color: #fff; font: 500 11px/17px var(--f-num); font-style: normal; text-align: center; }
.chip-zoom {
  position: absolute; left: 50%; top: calc(var(--safe-t) + 72px); z-index: 4; transform: translateX(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px;
  background-color: var(--ink); color: #fff; font: 500 13px/36px var(--f-num); box-shadow: var(--sh); transition: opacity .2s;
}
.chip-zoom[hidden] { display: none; }
.lhint { position: absolute; left: 14px; bottom: calc(var(--safe-b) + 106px); z-index: 4; padding: 4px 12px; border-radius: 12px; background-color: var(--paper); font-size: 12px; font-weight: 700; color: var(--graphite); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); pointer-events: none; }
.lhint b { color: var(--ink); }

/* 筆箱 */
.case {
  position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); z-index: 5; height: 86px; display: flex; align-items: flex-end; gap: 2px; padding: 0 10px 8px;
  background-color: var(--ink); border-radius: 26px; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .55);
}
.tool {
  position: relative; flex: none; width: 54px; height: 96px; margin-top: -26px; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  color: #f2f0eb; transition: transform 180ms var(--spring);
}
.tool svg { width: 30px; height: 70px; transform: translateY(14px); transition: transform 180ms var(--spring); }
.tool span { position: relative; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 1.2; color: #d9d6cf; background-color: var(--ink); padding: 2px 4px 0; border-radius: 4px; }
.tool[aria-pressed="true"] svg { transform: translateY(-6px); }
.tool[aria-pressed="true"] span { color: #fff; }
.tool[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -5px; width: 18px; height: 3px; border-radius: 2px; background: var(--yellow); }
.case__sep { flex: none; width: 1px; height: 46px; margin: 0 6px 6px; background: #3a3a3a; }
.swatch {
  flex: none; width: 52px; height: 72px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; color: #d9d6cf; font-size: 11px; font-weight: 700;
}
.swatch i { width: 38px; height: 38px; border-radius: 50%; background: var(--c, #121212); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px #fff; transition: transform .12s; }
.swatch:active i { transform: scale(.9); }
.sizebtn { flex: none; width: 56px; height: 72px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; color: #d9d6cf; font-size: 11px; font-weight: 700; }
.sizebtn .dotbox { width: 40px; height: 40px; border-radius: 12px; background: #262626; display: grid; place-items: center; }
.sizebtn .dot { border-radius: 50%; background: #fff; }
.sizebtn .num { color: #fff; font-size: 12px; }
.case .ib { color: #fff; margin-left: auto; margin-bottom: 14px; }
.pop {
  position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 106px); z-index: 6; padding: 14px 16px 10px; border-radius: 20px; background-color: var(--paper); box-shadow: var(--sh);
  animation: popin 220ms var(--spring) both; transform-origin: 70% 100%;
}
.pop[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.pop .field { margin-top: 4px; }
.pop .field + .field { margin-top: 8px; }

/* ---------- シート（レイヤー・色） ---------- */
.layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(18, 18, 18, .35); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(var(--safe-b) + 18px);
  background-color: var(--paper); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); animation: up 300ms var(--spring) both;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { font: 600 20px/1.4 var(--f-hand); text-align: center; margin-bottom: 4px; word-break: keep-all; }
.sheet__lead { text-align: center; font-size: 13px; color: var(--graphite); margin-bottom: 12px; }
.sheet input[type=text] { width: 100%; height: 50px; padding: 0 14px; margin: 6px 0 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: #fff; font-size: 16px; }
.lrows { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background-color: #f1efe9; box-shadow: inset 0 0 0 1.5px transparent; }
.lrow.is-active { background-color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.lrow__thumb { flex: none; width: 54px; height: 72px; border-radius: 6px; background-color: #fff; background-image: linear-gradient(45deg, #ececec 25%, transparent 25%, transparent 75%, #ececec 75%), linear-gradient(45deg, #ececec 25%, transparent 25%, transparent 75%, #ececec 75%); background-size: 10px 10px; background-position: 0 0, 5px 5px; box-shadow: 0 0 0 1px var(--line); border: 0; padding: 0; }
.lrow__thumb canvas { width: 100%; height: 100%; display: block; border-radius: 6px; }
.lrow__b { flex: 1; min-width: 0; }
.lrow__n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 15px/1.3 var(--f-hand); }
.lrow__n .num { font-size: 12px; color: var(--graphite); }
.lrow__b input[type=range] { height: 30px; }
.lacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.lacts button { min-height: 48px; border: 0; border-radius: 14px; background-color: #f1efe9; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.lacts button:active { background-color: var(--desk-2); }
.lacts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lacts .danger { color: var(--red-d); }
.palette-strip { height: 64px; margin: 0 -16px 12px; overflow: hidden; }
.palette-strip img { width: 100%; height: 100%; object-fit: cover; }
.sw-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.sw-grid button { aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); min-height: 34px; transition: transform .1s; }
.sw-grid button:active { transform: scale(.88); }
.sw-grid button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.sw-sub { margin: 14px 0 6px; font: 600 14px/1.4 var(--f-hand); color: var(--graphite); }
.hue { -webkit-appearance: none; appearance: none; height: 28px !important; border-radius: 14px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.hue::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #fff); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.lightness { -webkit-appearance: none; appearance: none; height: 28px !important; border-radius: 14px; background: linear-gradient(90deg, #000, var(--h, #f00), #fff); }
.lightness::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #fff); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.cur-color { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 700; }
.cur-color i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cur-color .num { font-size: 14px; color: var(--graphite); }

/* ---------- ギャラリー ---------- */
.g-hero { position: relative; margin: 0 -16px; height: 200px; overflow: hidden; }
.g-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.g-hero__plate { position: absolute; left: 16px; bottom: 16px; padding: 8px 16px 10px; background-color: var(--paper); border-radius: 14px; box-shadow: var(--sh); }
.g-hero__plate p { font-size: 12px; color: var(--graphite); font-weight: 700; }
.g-hero__plate h1 { font: 600 27px/1.25 var(--f-hand); }
.g-top { position: absolute; right: 10px; top: calc(var(--safe-t) + 10px); z-index: 2; display: flex; gap: 6px; }
.g-top .ib { background-color: var(--paper); box-shadow: var(--sh); border-radius: 50%; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 16px; }
.page { position: relative; display: block; text-decoration: none; }
.page__sheet { position: relative; aspect-ratio: 3 / 4; border-radius: 4px 4px 8px 8px; background-color: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 20px -10px rgba(0, 0, 0, .35); transition: transform .15s; }
.page__sheet img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px 4px 8px 8px; }
.page__sheet::before { content: ""; position: absolute; left: 8px; right: 8px; top: -7px; height: 14px; background: radial-gradient(circle at 50% 50%, #2b2b2b 0 3px, transparent 3.5px) 0 0 / 14px 14px repeat-x; }
.page:active .page__sheet { transform: rotate(-1deg) scale(.98); }
.page__m { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; }
.page__t { flex: 1; min-width: 0; }
.page__t b { display: block; font: 600 16px/1.35 var(--f-hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page__t span { display: block; font: 400 12px/1.4 var(--f-num); color: var(--graphite); }
.page .ib { width: 44px; height: 44px; margin: -6px -8px 0 0; }
.page--new .page__sheet { display: grid; place-items: center; align-content: center; gap: 6px; background-color: transparent; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 8px; color: var(--ink); font: 600 16px/1.4 var(--f-hand); }
.page--new .page__sheet::before { display: none; }
.page--new svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.empty { text-align: center; padding: 18px 8px; }
.empty img { width: 70%; margin: 0 auto 14px; border-radius: 16px; }
.empty h2 { font: 600 20px/1.4 var(--f-hand); }
.empty p { font-size: 14px; color: var(--graphite); margin: 6px 0 16px; }
.storage-note { margin-top: 22px; font-size: 13px; color: var(--graphite); text-align: center; }

/* ---------- ブラシ設定 ---------- */
.try { position: relative; height: 210px; border-radius: 18px; background-color: var(--paper); box-shadow: var(--sh); overflow: hidden; touch-action: none; }
.try canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.try__cap { position: absolute; left: 12px; top: 10px; padding: 2px 10px; border-radius: 10px; background-color: var(--desk); font-size: 12px; font-weight: 700; color: var(--graphite); pointer-events: none; }
.try__clr { position: absolute; right: 8px; top: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background-color: var(--desk); font-size: 13px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.row__l { flex: 1; min-width: 0; font: 600 15px/1.4 var(--f-hand); }
.row__l small { display: block; font: 400 12px/1.5 var(--f-body); color: var(--graphite); }
.tip-card { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 10px; border-radius: 18px; background-color: var(--paper); box-shadow: var(--sh); }
.tip-card img { flex: none; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }
.tip-card p { font-size: 13px; line-height: 1.7; }
.tip-card b { display: block; font: 600 15px/1.4 var(--f-hand); }

/* ---------- 書き出し ---------- */
.ex-wall { position: relative; margin: 0 -16px; padding: 22px 0 26px; background-color: #f1efea; display: grid; place-items: center; }
.ex-frame { width: 62%; padding: 10px; background-color: #fff; box-shadow: 0 0 0 4px var(--ink), 0 20px 40px -12px rgba(0, 0, 0, .45); }
.ex-frame.is-clear { background-image: linear-gradient(45deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%), linear-gradient(45deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.ex-frame canvas { display: block; width: 100%; height: auto; }
.ex-cap { margin-top: 14px; font: 600 16px/1.4 var(--f-hand); text-align: center; }
.ex-cap .num { font-size: 12px; color: var(--graphite); display: block; }
.ex-banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px; border-radius: 18px; background-color: var(--paper); box-shadow: var(--sh); }
.ex-banner img { flex: none; width: 110px; height: 74px; object-fit: cover; border-radius: 12px; }
.ex-banner p { font-size: 13px; line-height: 1.65; }

/* ---------- 設定・アプリについて ---------- */
.about-hero { text-align: center; padding: 6px 0 4px; }
.about-hero img { width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 22px; box-shadow: var(--sh); }
.about-hero h2 { font: 600 26px/1.3 var(--f-hand); }
.about-hero p { font-size: 13px; color: var(--graphite); }
.box { margin-top: 14px; padding: 16px; border-radius: var(--r-panel); background-color: var(--paper); box-shadow: var(--sh); font-size: 14px; line-height: 1.75; }
.box h3 { font: 600 17px/1.4 var(--f-hand); margin-bottom: 4px; }
.box ul { margin: 0; padding-left: 1.2em; }
.box a { color: var(--blue-d); font-weight: 700; }

/* ---------- トースト・初回 ---------- */
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 74px); z-index: 60; transform: translate(-50%, -10px); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 9px 9px 9px 16px; border-radius: 14px; background-color: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--sh); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--spring); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background-color: #333; color: var(--yellow); font-weight: 700; }
.toast span { word-break: keep-all; }
.splash { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px; background-color: var(--paper); animation: fade .2s both; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--sh); }
.splash p { font: 600 28px/1.2 var(--f-hand); letter-spacing: .1em; }
.splash.is-out { animation: out .3s both; }
@keyframes out { to { opacity: 0; } }
.onb { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--paper) url(/app-development/apps/a094/img/onboard.webp) center top / cover; }
.onb__skip { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background-color: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.onb__p { margin-top: auto; padding: 22px 22px calc(var(--safe-b) + 22px); background-color: var(--paper); border-radius: 26px 26px 0 0; }
.onb__dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.onb__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.onb__dots i.on { width: 24px; border-radius: 4px; background: var(--ink); }
.onb h2 { font: 600 26px/1.4 var(--f-hand); text-align: center; word-break: keep-all; }
.onb p { margin: 8px 0 18px; text-align: center; font-size: 15px; color: var(--graphite); }
.boot { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; }
.boot__title { font: 600 26px var(--f-hand); }
.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--graphite); font: 600 15px var(--f-hand); pointer-events: none; }
.loading i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 12px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .loading i { animation: none; }
}
