.sand-room {
  --sand-border: #bdc9bf;
  --sand-ink: #2b493e;
  --sand-active: #31594d;
  color: var(--sand-ink);
}
.sand-room [hidden] { display: none !important; }
.sand-room h3 { margin: 1.2rem 0 .3rem; color: #294c3e; }
.sand-room h4 { margin: .2rem 0 .65rem; color: #294c3e; font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
.sand-room p { margin-block: .45rem .85rem; line-height: 1.55; }
.sand-room :is(.sand-switch, .sand-tools, .sand-actions) { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.sand-room button {
  border: 1px solid var(--sand-border);
  background: #fffef9;
  color: var(--sand-ink);
  padding: .57rem .88rem;
  min-height: 44px;
  border-radius: .55rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.sand-room button[aria-pressed="true"], .sand-room #sandNoticeNext {
  color: #fff;
  border-color: var(--sand-active);
  background: var(--sand-active);
}
.sand-room :is(button,canvas,[tabindex="-1"]):focus-visible { outline: 3px solid #975e24; outline-offset: 3px; }
.sand-room button:disabled { opacity: .55; cursor: default; }
.sand-room .sand-switch { margin: 1rem 0; }
.sand-room .sand-tools { margin: .8rem 0; }
.sand-room .sand-frame {
  width: 100%;
  max-width: 55rem;
  background: #c9ad81;
  border: 1px solid #b7a382;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 12px #3d352413;
}
.sand-room .sand-frame:focus-within { outline: 3px solid #975e24; outline-offset: 3px; }
.sand-room #sandSurface {
  display: block;
  background: #dfccaa;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}
.sand-room .sand-hint, .sand-room .sand-live { font-size: .93rem; color: #445d53; }
.sand-room .sand-live:empty { display: none; }
.sand-room .sand-confirm { padding: .7rem 1rem 1rem; border: 1px solid var(--sand-border); border-radius: .7rem; margin: .75rem 0; background: #faf6ed; }
.sand-room .sand-notice-card { max-width: 41rem; padding: clamp(1.1rem, 3vw, 2rem); background: #eff3ec; border: 1px solid var(--sand-border); border-radius: 1rem; }
.sand-room .sand-progress { font-size: .92rem; margin-top: 0; color: #49665a; }
@media(max-width:32rem) {
  .sand-room button { padding-inline: .64rem; }
}
