:root {
  color-scheme: light;
  --ink: #0b1c1d;
  --deep: #0d2628;
  --paper: #f3f0e7;
  --cream: #fffdf7;
  --line: rgba(11, 28, 29, 0.22);
  --mint: #baf1dc;
  --mint-strong: #76ddb9;
  --coral: #ff654f;
  --amber: #ffb84c;
  --shadow: 0 24px 70px rgba(6, 26, 27, 0.13);
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(118, 221, 185, 0.18), transparent 26rem),
    linear-gradient(135deg, #f7f4eb 0%, #efeee7 100%);
  overflow-x: hidden;
}

button, textarea { font: inherit; }
button { color: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(11, 28, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 29, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.brand:hover .brand-name { color: #138269; }
.brand-name { font-size: 0.98rem; font-weight: 800; letter-spacing: 0.14em; }
.brand-mark {
  width: 27px;
  aspect-ratio: 1;
  padding: 3px;
  background: var(--deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  transform: rotate(-3deg);
}
.brand-mark i { background: var(--mint); }
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4),
.brand-mark i:nth-child(8) { background: transparent; }

.header-tags { display: flex; align-items: center; gap: 7px; }
.header-tags span {
  padding: 6px 9px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 0.58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
}

.game-screen { padding: 28px 0 72px; }
.game-heading-row {
  min-height: 82px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-kicker,
.panel-label {
  display: block;
  margin: 0 0 8px;
  color: #557071;
  font: 750 0.62rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.14em;
}
.game-heading-row h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 4.9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.game-heading-row h1 em { color: #138269; font-style: normal; }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.text-button,
.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 780;
  white-space: nowrap;
}
.text-button:hover,
.secondary-button:hover { border-color: var(--ink); background: white; }
.text-button:disabled,
.secondary-button:disabled { cursor: not-allowed; opacity: 0.38; }

.primary-button {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.primary-button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--mint-strong); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; }
.button-arrow { font-size: 1.25rem; font-weight: 400; }

.play-hud {
  position: sticky;
  top: 8px;
  z-index: 20;
  height: 112px;
  min-height: 108px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 231, 0.94);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) minmax(170px, 0.78fr) minmax(300px, 1.35fr);
}
.play-hud > * { min-width: 0; overflow: hidden; padding: 16px 18px; border-right: 1px solid var(--line); }
.play-hud > *:last-child { border-right: 0; }

.score-card > div { display: flex; align-items: baseline; gap: 7px; }
.score-card strong {
  font: 900 clamp(2.7rem, 5.5vw, 4rem)/0.9 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.1em;
}
.score-card small { color: #557071; font: 700 0.58rem/1 monospace; letter-spacing: 0.1em; }

.message-card { display: flex; flex-direction: column; justify-content: center; }
.message-card p {
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.status-card { display: flex; flex-direction: column; justify-content: center; }
.phase-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-meta .panel-label { margin-bottom: 0; }
.phase-state {
  padding: 5px 7px 4px;
  border: 1px solid currentColor;
  color: #557071;
  font: 750 0.52rem/1 monospace;
  letter-spacing: 0.12em;
}
.status-card h2 {
  margin: 8px 0 2px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.status-card h2 span,
.status-card h2 em { font-style: normal; }
.status-card h2 em { margin-left: 0.28em; color: #138269; }
.status-card p {
  margin: 5px 0 0;
  color: #4c6263;
  font-size: 0.72rem;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.status-card[data-state="failed"] h2 em,
.status-card[data-state="failed"] .phase-state { color: var(--coral); }
.status-card[data-state="readable"] h2 em,
.status-card[data-state="readable"] .phase-state { color: #138269; }
.status-card[data-state="transition"] h2 em,
.status-card[data-state="transition"] .phase-state { color: #718181; }

.control-strip {
  height: 74px;
  min-height: 70px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.history-actions { min-width: max-content; display: flex; align-items: center; gap: 8px; }
.shared-badge {
  padding: 7px 9px 6px;
  border: 1px solid #78ad9e;
  background: rgba(184, 239, 222, 0.42);
  color: #256052;
  font: 750 0.58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.view-button {
  min-width: 132px;
  min-height: 42px;
  margin: 0;
  border-color: var(--deep);
  background: var(--deep);
  color: white;
}
.view-button:hover { background: #17393b; color: white; }
.game-screen[data-phase="failed"] .view-button { border-color: var(--coral); background: var(--coral); }
.game-screen[data-phase="failed"] .view-button:hover { background: #e64e3b; color: white; }
.reset-button { color: #74534f; }

.game-layout { display: block; }
.board-column { width: min(100%, 760px); margin-inline: auto; }
.board-frame {
  --frame-accent: var(--deep);
  position: relative;
  padding: clamp(12px, 2.2vw, 22px);
  border: 1px solid rgba(11, 28, 29, 0.14);
  border-top: 6px solid var(--frame-accent);
  background: var(--cream);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.board-frame[data-mode="failed"] { --frame-accent: var(--coral); }
.board-frame[data-mode="readable"] { --frame-accent: #138269; box-shadow: 0 24px 70px rgba(19, 130, 105, 0.14); }
.board-frame[data-mode="transition"] { --frame-accent: #a8b3b3; box-shadow: 0 24px 70px rgba(6, 26, 27, 0.08); }
.board-corners i {
  position: absolute;
  z-index: 15;
  width: 16px;
  height: 16px;
  border-color: var(--frame-accent);
  border-style: solid;
  pointer-events: none;
}
.board-corners i:nth-child(1) { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.board-corners i:nth-child(2) { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.board-corners i:nth-child(3) { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.board-corners i:nth-child(4) { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }

.board-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.qr-board,
.clean-qr-layer {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.qr-board {
  --size: 21;
  padding: 12.1212%;
  display: grid;
  grid-template-columns: repeat(var(--size), 1fr);
  grid-template-rows: repeat(var(--size), 1fr);
  background: white;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}
.qr-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: white;
  appearance: none;
}
button.qr-cell { cursor: crosshair; touch-action: manipulation; }
.qr-cell.is-dark { background: #050505; }
.qr-cell.is-structural.is-dark { background: #27655f; }
.qr-cell.is-structural:not(.is-dark) { background: #cde9df; }
button.qr-cell:not(.is-edited):hover { z-index: 2; outline: max(2px, 0.11vw) solid var(--coral); outline-offset: -1px; }
.qr-cell.is-edited::after {
  content: "";
  position: absolute;
  inset: max(1px, 7%);
  z-index: 3;
  border: max(2px, 0.11vw) solid var(--amber);
  pointer-events: none;
}
.qr-cell.is-edited { cursor: not-allowed; }
.qr-cell.is-gesture {
  z-index: 4;
  box-shadow: inset 0 0 0 max(2px, 16%) var(--amber);
  animation: gesture-mark 180ms ease-out;
}
.qr-cell.is-failed-move {
  z-index: 5;
  box-shadow: inset 0 0 0 max(2px, 16%) var(--coral);
}
.qr-cell.is-last-cell {
  z-index: 7;
  outline: max(2px, 0.16vw) solid var(--coral);
  outline-offset: -1px;
  animation: last-cell-pulse 760ms ease both;
}
.qr-cell.is-last-cell::before,
.qr-cell.is-last-cell::after {
  content: "";
  position: absolute;
  left: 43%;
  top: -12%;
  width: max(2px, 14%);
  height: 124%;
  z-index: 8;
  background: var(--coral);
  box-shadow: 0 0 0 1px white;
  transform: rotate(45deg);
  pointer-events: none;
}
.qr-cell.is-last-cell::after { transform: rotate(-45deg); }
@keyframes last-cell-pulse {
  0% { transform: scale(0.65); }
  55% { transform: scale(1.7); }
  100% { transform: scale(1); }
}
@keyframes gesture-mark {
  from { filter: brightness(1.8); }
  to { filter: brightness(1); }
}
@keyframes clean-board-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.clean-qr-layer[data-state="failed"] .scan-qr { animation: clean-board-in 260ms ease-out both; }

.clean-qr-layer { background: #fff; }
.clean-qr-layer[data-state="preview"] { opacity: 0.34; }
.scan-qr { display: block; width: 100%; height: 100%; background: #fff; }
.scan-transition {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 11px;
  padding: 28px;
  text-align: center;
}
.scan-transition::before {
  content: "";
  width: 62px;
  height: 4px;
  margin: 0 auto 12px;
  background: var(--deep);
  animation: rewind-line 720ms ease-in-out infinite alternate;
}
.scan-transition span { color: #718181; font: 750 0.6rem/1 monospace; letter-spacing: 0.16em; }
.scan-transition strong { font-size: clamp(1rem, 2vw, 1.35rem); }
@keyframes rewind-line { from { transform: translateX(-26px); } to { transform: translateX(26px); } }

.setup-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(243, 240, 231, 0.78);
  backdrop-filter: blur(4px);
}
.setup-card {
  width: min(500px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(11, 28, 29, 0.14);
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 18px 54px rgba(6, 26, 27, 0.16);
}
.setup-card h2 { margin: 0 0 20px; font-size: clamp(1.12rem, 2.4vw, 1.45rem); }
.message-field { position: relative; display: block; }
.message-field textarea {
  display: block;
  width: 100%;
  resize: none;
  padding: 15px 17px;
  border: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.45;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.message-field textarea:focus { border-color: #277f6e; box-shadow: 5px 5px 0 var(--mint); }
.message-field textarea[aria-invalid="true"] { border-color: var(--coral); }
.field-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, transparent 50%, var(--ink) 51%);
  pointer-events: none;
}
.field-meta {
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #647677;
  font: 650 0.61rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.05em;
}
.field-meta strong { color: var(--ink); }
.field-meta .over-limit,
.field-meta .over-limit strong { color: #d43e30; }
.input-error { min-height: 1.2em; margin: 7px 0 0; color: #c73529; font-size: 0.72rem; font-weight: 700; }
.samples { margin: 10px 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.samples > span { margin-right: 2px; color: #697b7c; font: 700 0.58rem/1 monospace; }
.samples button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}
.samples button:hover { background: var(--mint); }
.setup-card .primary-button { width: 100%; }

.board-footer { min-height: 74px; padding: 12px 3px 0; }
.board-caption { display: flex; justify-content: space-between; gap: 16px; color: #607273; font-size: 0.65rem; line-height: 1.5; }
.board-caption span:first-child { flex: 0 0 auto; color: var(--frame-accent, #557071); font: 750 0.58rem/1.4 monospace; letter-spacing: 0.12em; }
.legend { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: #526768; font-size: 0.64rem; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; background: white; border: 1px solid var(--line); }
.legend .legend-edited { box-shadow: inset 0 0 0 2px var(--amber); }
.legend .legend-locked { background: #8dcbb8; }
.legend .legend-failed-move { box-shadow: inset 0 0 0 2px var(--coral); }
.legend .legend-last-cell {
  border: 0;
  background:
    linear-gradient(45deg, transparent 42%, var(--coral) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--coral) 43% 57%, transparent 58%);
}

.info-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: min(760px, calc(100dvh - 30px));
  margin: auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(11, 28, 29, 0.2);
  border-top: 6px solid var(--deep);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(6, 26, 27, 0.26);
}
.info-dialog::backdrop { background: rgba(6, 26, 27, 0.46); backdrop-filter: blur(5px); }
.info-dialog h2 { margin: 0 0 26px; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}
.dialog-close:hover { border-color: var(--ink); background: var(--mint); }
.how-to { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.how-to li { min-height: 76px; padding: 16px 0; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.how-to b { color: #4e6b6c; font: 700 0.63rem/1 monospace; }
.how-to span { font-size: 0.9rem; font-weight: 750; line-height: 1.55; }
.dialog-note { margin: 20px 0 0; color: #526768; font-size: 0.76rem; line-height: 1.7; }
.confirm-dialog { width: min(520px, calc(100% - 30px)); }
.confirm-dialog h2 { margin-bottom: 14px; }
.confirm-dialog .dialog-note { margin-top: 0; }
.failure-dialog { border-top-color: var(--coral); }
.share-dialog { width: min(720px, calc(100% - 30px)); }
.share-url-field { margin-top: 22px; display: grid; gap: 8px; }
.share-url-field > span { color: #617576; font: 750 0.6rem/1 monospace; letter-spacing: 0.1em; }
.share-url-field textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px 13px;
  border: 1px solid #9babab;
  border-radius: 0;
  background: white;
  color: #183536;
  resize: vertical;
  font: 600 0.67rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.share-url-field textarea:focus { outline: 2px solid #138269; outline-offset: 2px; }
.share-url-meta {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #697b7c;
  font-size: 0.62rem;
}
.share-options {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}
.share-option {
  min-width: 0;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid var(--deep);
  border-radius: 0;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--deep);
  background: white;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.share-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--mint-strong);
}
.share-option:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.share-option-icon { font: 850 0.88rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.native-share-option { background: #138269; border-color: #138269; color: white; }
.x-share-option { background: #050505; border-color: #050505; color: white; }
.copy-share-option { background: var(--mint); }
.share-status { min-height: 1.4em; margin: 12px 0 0; color: #13715c; font-size: 0.72rem; font-weight: 750; }
.choice-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(184, 239, 222, 0.38);
  color: #355354;
  font-size: 0.72rem;
  line-height: 1.65;
}
.dialog-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.dialog-actions .primary-button { width: auto; min-height: 46px; }
.change-message-button { border-color: #789293; }
.danger-button { background: var(--coral); }
.danger-button:hover:not(:disabled) { background: #e64e3b; box-shadow: 5px 5px 0 #ffc0b7; }
.failure-dialog .primary-button { background: var(--coral); }
.failure-dialog .primary-button:hover:not(:disabled) { background: #e64e3b; box-shadow: 5px 5px 0 #ffc0b7; }
.qr-meta { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qr-meta div { padding: 14px 2px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.qr-meta dt { color: #667879; font: 650 0.62rem/1.2 monospace; letter-spacing: 0.1em; }
.qr-meta dd { margin: 0; font: 800 0.72rem/1.2 monospace; }

footer {
  min-height: 62px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #607273;
  font: 600 0.54rem/1.5 monospace;
  letter-spacing: 0.08em;
}
.noscript { margin: 20px; padding: 15px; background: #fee; color: #900; text-align: center; }

@media (max-width: 720px) {
  .game-heading-row { min-height: 72px; }
  .game-heading-row h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .play-hud { grid-template-columns: minmax(90px, 0.45fr) minmax(150px, 0.78fr) minmax(250px, 1.35fr); }
  .play-hud > * { padding: 14px; }
  .status-card p { font-size: 0.68rem; }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1040px); }
  .site-header { min-height: 68px; }
  .header-tags span:last-child { display: none; }
  .game-screen { padding-top: 22px; }
  .game-heading-row { align-items: flex-start; margin-bottom: 16px; }
  .game-heading-row .section-kicker { display: none; }
  .game-heading-row h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  .game-actions { gap: 5px; }
  .game-actions .text-button { min-height: 38px; padding-inline: 10px; }
  .play-hud {
    top: 0;
    height: 166px;
    min-height: 166px;
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-areas: "score message" "status status";
    grid-template-rows: 74px 92px;
  }
  .score-card { grid-area: score; }
  .message-card { grid-area: message; border-right: 0; }
  .status-card { grid-area: status; border-top: 1px solid var(--line); border-right: 0; }
  .score-card strong { font-size: 2.7rem; }
  .status-card { min-height: 86px; }
  .status-card h2 { margin-top: 6px; }
  .control-strip { min-height: 66px; margin-inline: -3px; }
  .view-button { min-width: 124px; }
  .board-frame { margin-inline: -4px; padding: 10px; }
  .board-stage { min-height: 360px; }
  .setup-screen { padding: 10px; }
  .setup-card { padding: 18px; }
  .setup-card h2 { margin-bottom: 14px; }
  .message-field textarea { padding: 12px 13px; }
  .samples { margin-bottom: 12px; }
  .share-url-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .share-options { flex-direction: column; }
  .share-option { flex-basis: 52px; }
  .board-caption { align-items: flex-start; flex-direction: column; gap: 5px; }
  footer { padding: 17px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
