/* ドミノ倒しラボ — 白い実験台と原色（バウハウスの線と面） */
:root {
  --paper: #fbfbf8;
  --paper-2: #f0f0ec;
  --ink: #111318;
  --gray: #50565f;
  --line: #d9dbe0;
  --red: #dc2b24;
  --red-t: #c41f1a;
  --yellow: #f6c21c;
  --blue: #1d5bd8;
  --f-en: "Archivo", "IBM Plex Sans JP", sans-serif;
  --f-jp: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  --f-mono: "IBM Plex Mono", "IBM Plex Sans JP", monospace;
  --bw: 3px;
  --r: 4px;
  --hard: 0 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --snap: cubic-bezier(.2, 1.3, .4, 1);
  --t-fast: 80ms;
  --t-mid: 240ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-jp); font-weight: 500; font-size: 15px; line-height: 1.65;
  line-break: strict;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.app { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
@media (min-width: 600px) {
  body {
    background:
      linear-gradient(90deg, transparent 0 calc(50% - 260px), var(--ink) calc(50% - 260px) calc(50% - 254px), transparent 0),
      linear-gradient(0deg, transparent 0 30%, var(--ink) 30% calc(30% + 6px), transparent 0),
      linear-gradient(90deg, var(--red) 0 calc(50% - 260px), transparent 0),
      var(--paper);
  }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); border-left: var(--bw) solid var(--ink); border-right: var(--bw) solid var(--ink); }
}

/* ---------- 共通 ---------- */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden; background: var(--paper); }
.screen.is-active { display: flex; }
html:not([data-ready]) .screen--title { display: flex; }
.screen.is-enter { animation: enter var(--t-mid) var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper);
  box-shadow: var(--hard);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.icon-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.icon-btn:disabled { color: #8a8f97; border-color: #b8bcc3; box-shadow: 0 3px 0 #b8bcc3; }
.icon-btn--spacer { visibility: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: var(--r);
  font-weight: 700; font-size: 16px; word-break: keep-all;
  box-shadow: var(--hard);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn--l { width: 100%; min-height: 54px; font-size: 17px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red span { text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--danger { background: #fff; color: var(--red-t); border-color: var(--red-t); box-shadow: 0 3px 0 var(--red-t); }
.btn--text { border: 0; box-shadow: none; min-height: 44px; color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.btn--text:active { transform: none; }
.bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 12px 10px;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--paper);
}
.bar__title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-weight: 700; font-size: 17px; }
.bar__en { font-family: var(--f-en); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--red-t); }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-weight: 700; font-size: 18px; }
.sec-h__n { font-family: var(--f-en); font-weight: 900; font-stretch: 75%; font-size: 15px; background: var(--ink); color: #fff; padding: 0 8px; border-radius: 2px; }

/* ---------- タイトル ---------- */
.screen--title { background: url("/app-development/apps/a024/img/title.webp") center 70% / cover no-repeat, var(--paper); }
.title__top { display: flex; justify-content: flex-end; padding: calc(10px + var(--safe-t)) 14px 0; }
.title__logo { padding: 1vh 22px 0; }
.title__en { display: inline-block; font-family: var(--f-en); font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; background: var(--ink); color: #fff; padding: 0 10px; }
.logo { margin-top: 8px; display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; font-feature-settings: "palt"; }
.logo__a { font-size: 50px; color: var(--ink); }
.logo__b { font-size: 50px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.logo__b::before { content: ""; width: 34px; height: 34px; background: var(--red); border: 3px solid var(--ink); }
.logo__b::after { content: ""; width: 18px; height: 34px; background: var(--yellow); border: 3px solid var(--ink); transform: rotate(14deg); }
.title__lead { margin-top: 12px; display: inline-block; background: var(--paper); font-weight: 700; font-size: 16px; padding: 2px 8px; border-left: 6px solid var(--blue); word-break: keep-all; }
.mondrian {
  margin-top: auto;
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 100px 82px;
  border-top: var(--bw) solid var(--ink);
  background: var(--ink); gap: var(--bw);
  padding-bottom: var(--safe-b);
}
.mo {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 14px 12px;
  transition: filter var(--t-fast), transform var(--t-fast);
  overflow: hidden;
}
.mo:active { filter: brightness(.92); }
.mo__en { font-family: var(--f-en); font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; position: absolute; top: 8px; left: 14px; }
.mo__k { font-weight: 700; font-size: 18px; line-height: 1.3; word-break: keep-all; }
.mo__sub { font-size: 13px; margin-top: 2px; }
.mo svg { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; }
.mo--red { background: var(--red); color: #fff; grid-row: 1 / 3; }
.mo--red .mo__k { font-size: 24px; }
.mo--red .mo__k, .mo--red .mo__en { text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.mo--blue { background: var(--blue); color: #fff; }
.mo--yellow { background: var(--yellow); color: var(--ink); grid-column: 2; }
.mo--white { background: var(--paper); color: var(--ink); display: none; }
.title__nav2 { display: none; }
.screen--title .mondrian { grid-template-rows: 92px 84px 64px; grid-template-columns: 1.35fr 1fr; }
.screen--title .mo--red { grid-row: 1 / 3; }
.screen--title .mo--white { display: flex; grid-column: 1 / 3; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; }
.screen--title .mo--white .mo__en { position: static; }

/* ---------- 実験台 ---------- */
.screen--stage { background: var(--paper); }
.sbar { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 12px 8px; border-bottom: var(--bw) solid var(--ink); }
.sbar__t { flex: 1; min-width: 0; line-height: 1.2; }
.sbar__en { font-family: var(--f-en); font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--red-t); }
.sbar__title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meters { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--bw) solid var(--ink); background: var(--ink); gap: var(--bw); }
.meter { background: var(--paper); display: flex; align-items: baseline; gap: 4px; padding: 4px 10px; white-space: nowrap; }
.meter:nth-child(1) { box-shadow: inset 6px 0 0 var(--yellow); padding-left: 14px; }
.meter__k { font-size: 11px; font-weight: 700; color: var(--gray); }
.meter b { font-size: 19px; font-weight: 600; }
.meter__u { font-size: 11px; font-weight: 700; color: var(--gray); }
.canvaswrap { position: relative; flex: 1; min-height: 0; }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.stage[data-tool="pan"] { cursor: grab; }
.stage[data-tool="draw"] { cursor: crosshair; }
.goal {
  position: absolute; left: 10px; right: 10px; top: 10px;
  padding: 6px 12px; background: var(--paper); border: 2px solid var(--ink);
  font-weight: 700; font-size: 14px; pointer-events: none;
  border-left: 8px solid var(--blue);
}
.goal:empty { display: none; }
.coach {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px);
  display: none; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; pointer-events: none;
}
.coach.is-on { display: flex; }
.coach svg { color: var(--yellow); }
.coach span { word-break: keep-all; }
@media (prefers-reduced-motion: no-preference) { .coach.is-on { animation: bob 2.2s ease-in-out infinite; } }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.tools {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr) 1.45fr;
  gap: var(--bw); background: var(--ink);
  border-top: var(--bw) solid var(--ink);
  padding-bottom: var(--safe-b);
}
.tool {
  min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--paper); font-size: 12px; font-weight: 700;
  transition: background var(--t-fast);
}
.tool:active { background: var(--paper-2); }
.tool[aria-pressed="true"] { background: var(--yellow); }
.tool[aria-pressed="true"] svg { transform: scale(1.1); }
.go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--red); color: #fff; font-size: 17px; font-weight: 700; transition: filter var(--t-fast), background var(--t-mid); }
.go span { text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.go:active { filter: brightness(.9); }
.go.is-rewind { background: var(--blue); }
.go svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) { .go.is-nudge { animation: nudge .5s; } }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.rcard {
  position: absolute; left: 10px; right: 10px; bottom: calc(72px + var(--safe-b)); z-index: 5;
  padding: 14px 14px 6px;
  background: var(--paper); border: var(--bw) solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(30px); opacity: 0; visibility: hidden;
  transition: transform 300ms var(--snap), opacity 200ms, visibility 0s 300ms;
}
.rcard.is-on { transform: none; opacity: 1; visibility: visible; transition: transform 300ms var(--snap), opacity 200ms; }
.rcard[data-state="clear"] { border-top: 10px solid var(--blue); }
.rcard[data-state="fail"] { border-top: 10px solid var(--red); }
.rcard__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rcard__en { font-family: var(--f-en); font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; width: 100%; color: var(--red-t); line-height: 1; }
.rcard[data-state="clear"] .rcard__en { color: var(--blue); }
.rcard__title { font-size: 24px; font-weight: 700; line-height: 1.3; flex: 1; }
.rcard__stars { display: flex; gap: 4px; }
.rcard__stars i { width: 22px; height: 22px; border: 2px solid var(--ink); background: var(--paper); transform: rotate(45deg) scale(.8); }
.rcard__stars i.is-on { background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .rcard.is-on .rcard__stars i.is-on { animation: pop 380ms var(--snap) both; }
  .rcard.is-on .rcard__stars i:nth-child(2) { animation-delay: 120ms; }
  .rcard.is-on .rcard__stars i:nth-child(3) { animation-delay: 240ms; }
}
@keyframes pop { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(.8); } }
.rcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 0; border: 2px solid var(--ink); }
.rcard__stats div { padding: 4px 8px; }
.rcard__stats div + div { border-left: 2px solid var(--ink); }
.rcard__stats dt { font-size: 11px; font-weight: 700; color: var(--gray); }
.rcard__stats dd { margin: 0; font-size: 16px; font-weight: 600; }
.rcard__note { margin-top: 8px; font-size: 14px; }
.rcard__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 10px; }
.rcard__row .btn { padding: 0 10px; font-size: 15px; }
.rcard .btn--text { width: 100%; }

/* ---------- 課題一覧 ---------- */
.pz__scroll { padding: 0 0 calc(24px + var(--safe-b)); }
.pzhero { min-height: 200px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; background: url("/app-development/apps/a024/img/puzzles.webp") 15% center / cover no-repeat; border-bottom: var(--bw) solid var(--ink); }
.pzhero__t { width: 52%; padding: 10px 12px; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.pzhero__k { font-weight: 700; font-size: 14px; word-break: keep-all; }
.pzhero__n { display: flex; align-items: baseline; gap: 6px; line-height: 1.1; }
.pzhero__n b { font-size: 40px; font-weight: 600; color: var(--blue); }
.pzhero__n span { font-size: 15px; color: var(--gray); }
.pzhero__s { font-size: 12px; font-weight: 700; color: var(--gray); word-break: keep-all; }
.pzlist { list-style: none; margin: 0; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.pz {
  position: relative;
  display: flex; align-items: stretch;
  border: var(--bw) solid var(--ink); background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pz:active:not([aria-disabled="true"]) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.pz__no { flex: none; width: 64px; display: grid; place-items: center; font-family: var(--f-en); font-weight: 900; font-stretch: 70%; font-size: 30px; border-right: var(--bw) solid var(--ink); }
.pz--red .pz__no { background: var(--red); color: #fff; }
.pz--blue .pz__no { background: var(--blue); color: #fff; }
.pz--yellow .pz__no { background: var(--yellow); color: var(--ink); }
.pz__t { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 12px; line-height: 1.45; }
.pz__title { font-weight: 700; font-size: 17px; }
.pz__goal { font-size: 13px; color: var(--gray); font-weight: 500; }
.pz__meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--gray); }
.pz__stars { display: flex; gap: 4px; }
.pz__stars i { width: 13px; height: 13px; border: 2px solid var(--ink); transform: rotate(45deg) scale(.85); }
.pz__stars i.is-on { background: var(--yellow); }
.pz[aria-disabled="true"] { background: var(--paper-2); box-shadow: 0 4px 0 #9da2aa; border-color: #9da2aa; cursor: default; }
.pz[aria-disabled="true"] .pz__no { background: #c9ccd2; color: var(--ink); border-color: #9da2aa; }
.pz__lock { position: absolute; right: 10px; top: 10px; color: var(--gray); }

/* ---------- 作品 ---------- */
.wk__scroll { padding: 0 14px calc(24px + var(--safe-b)); }
.wk__lead { margin: 14px 0 10px; font-size: 14px; font-weight: 700; }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work { position: relative; }
.work__open { width: 100%; display: flex; flex-direction: column; text-align: left; border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: 0 4px 0 var(--ink); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.work__open:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.work canvas { width: 100%; height: auto; aspect-ratio: 5 / 4; border-bottom: 2px solid var(--ink); display: block; }
.work__name { padding: 6px 10px 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__meta { padding: 0 10px 8px; font-size: 12px; color: var(--gray); }
.work__del { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); }
.work__del svg { width: 20px; height: 20px; color: var(--red-t); }
.empty { text-align: center; padding: 10px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty img { width: 220px; height: 220px; object-fit: cover; border: var(--bw) solid var(--ink); }
.empty__t { font-weight: 700; font-size: 18px; margin-top: 8px; }
.empty__p { font-size: 14px; color: var(--gray); margin-bottom: 10px; }

/* ---------- 設定 ---------- */
.set__scroll { padding: 0 14px calc(28px + var(--safe-b)); }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.howto__c { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; border: 2px solid var(--ink); padding: 8px; background: var(--paper); }
.howto__c img { width: 104px; height: 104px; object-fit: cover; border: 2px solid var(--ink); }
.howto__c h3 { font-size: 16px; font-weight: 700; word-break: keep-all; }
.howto__c p { font-size: 14px; }
.group { border: var(--bw) solid var(--ink); background: var(--paper); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; }
.row + .row { border-top: 2px solid var(--ink); }
.row--stack { flex-direction: column; align-items: stretch; gap: 8px; }
.row__label { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.45; }
.row__label small { font-size: 12px; color: var(--gray); font-weight: 700; }
.row__note { font-size: 13px; color: var(--gray); }
.row--btn { width: 100%; justify-content: flex-start; gap: 12px; font-weight: 700; text-align: left; }
.row--btn:active { background: var(--paper-2); }
.row--danger { color: var(--red-t); }
.row__grow { flex: 1; }
.row__chev { width: 18px; height: 18px; }
.seg { display: flex; border: 2px solid var(--ink); }
.seg button { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; background: var(--paper); word-break: keep-all; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.sw { width: 16px; height: 16px; border: 2px solid currentColor; flex: none; }
.sw--primary { background: linear-gradient(90deg, var(--red) 0 33%, var(--yellow) 0 66%, var(--blue) 0); }
.sw--gradient { background: linear-gradient(90deg, #dc2b24, #f6c21c, #39a85b, #1d5bd8, #6b3fc4); }
.sw--blue { background: var(--blue); }
.sw--mono { background: var(--red); }
.switch { position: relative; flex: none; width: 56px; height: 32px; border: 2px solid var(--ink); background: var(--paper-2); transition: background var(--t-mid); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--ink); transition: transform var(--t-mid) var(--snap); }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] i { transform: translateX(24px); background: #fff; }
.about__head { display: flex; align-items: center; gap: 16px; margin: 22px 0 16px; }
.about__head img { width: 76px; height: 76px; border: var(--bw) solid var(--ink); }
.about__name { font-weight: 700; font-size: 22px; }
.about__ver { font-size: 14px; color: var(--gray); font-weight: 700; }
.about__box { padding: 12px 14px; font-size: 14px; }
.about__k { margin: 18px 0 8px; font-weight: 700; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 2px 10px; border: 2px solid var(--ink); font-size: 13px; font-weight: 700; }
.about__p { margin: 16px 0 20px; font-size: 14px; }

/* ---------- シート・トースト ---------- */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(17, 19, 24, .45); opacity: 0; pointer-events: none; transition: opacity var(--t-mid); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  padding: 16px 16px calc(14px + var(--safe-b));
  background: var(--paper); border-top: 6px solid var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transform: translateY(105%); visibility: hidden;
  transition: transform 300ms var(--snap), visibility 0s 300ms;
}
.sheet.is-on { transform: none; visibility: visible; transition: transform 300ms var(--snap); }
.sheet h2 { font-size: 20px; font-weight: 700; word-break: keep-all; }
.sheet p { font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field__k { font-size: 13px; font-weight: 700; color: var(--gray); }
.field input { min-height: 50px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; font-size: 17px; font-weight: 700; }
.field input:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.field__err { color: var(--red-t); font-weight: 700; font-size: 14px; min-height: 0; }
.field__err:empty { display: none; }
.toast {
  position: absolute; left: 12px; right: 12px; top: calc(118px + var(--safe-t)); z-index: 30;
  padding: 10px 14px; background: var(--ink); color: #fff;
  border-left: 8px solid var(--yellow);
  font-weight: 700; font-size: 14px;
  transform: translateX(-110%); visibility: hidden;
  transition: transform 260ms var(--snap), visibility 0s 260ms;
  pointer-events: none;
}
.toast.is-on { transform: none; visibility: visible; transition: transform 260ms var(--snap); }
.splash { position: absolute; inset: 0; z-index: 40; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--paper); }
.splash.is-on { display: flex; }
.splash.is-out { opacity: 0; transition: opacity 320ms; }
.splash img { width: 120px; height: 120px; border: var(--bw) solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.splash p { font-weight: 700; font-size: 24px; }
.noscript, .jsfail { position: absolute; left: 16px; right: 16px; top: 40%; z-index: 50; padding: 16px; border: var(--bw) solid var(--ink); background: var(--paper); text-align: center; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; animation-delay: 0ms !important; }
}
@media (max-height: 700px) {
  .logo__a, .logo__b { font-size: 40px; }
  .screen--title .mondrian { grid-template-rows: 80px 72px 56px; }
  .tool { min-height: 56px; }
}
