.hero--showcase.has-board-demo { margin-top: 0; }
.hero--showcase.has-board-demo .hero-grid {
  grid-template-columns: minmax(275px, 0.42fr) minmax(730px, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.has-board-demo .app-preview { display: none; }
#board-demo { color: #172e2d; }
#board-demo h2 { margin: 0; font-size: 1.5rem; color: inherit; }
#board-demo .board-demo-hint,
#board-demo .board-demo-footer { margin: 5px 0 12px; font-size: 0.95rem; }
#board-demo .board-demo-footer { margin: 10px 0 0; }
.board-demo-tablet {
  display: grid;
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  min-height: 600px;
  padding: 12px;
  border: 1px solid #4a514f;
  border-radius: 28px;
  background: #242a29;
  box-shadow: 0 14px 34px #15363829, inset 0 0 0 2px #ffffff12;
}
.board-demo-tablet::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #899693;
}
.board-demo-board {
  display: grid;
  grid-template-rows: 102px 38px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #f4f6f8;
  border-radius: 16px;
  padding: 10px;
}
.board-demo-sentence {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #86a09e;
  padding-bottom: 8px;
}
.board-demo-tokens {
  background: #fff;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}
#board-demo button.board-demo-token {
  display: grid;
  justify-items: center;
  flex: 0 0 auto;
  min-width: 38px;
  padding: 3px 5px;
  background: #f3f7f6;
  border: 1px solid #e0e8e6;
  color: #172e2d;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.1;
  font-weight: 500;
}
#board-demo button.board-demo-token[draggable="true"] { cursor: grab; }
#board-demo button.board-demo-token:disabled { opacity: 1; }
#board-demo button.board-demo-token.is-drop-target,
#board-demo button.board-demo-token[aria-pressed="true"] {
  background: #ceede7;
  border-color: #17616a;
}
.board-demo-token .board-demo-symbol { width: 30px; height: 30px; }
.board-demo-controls, .board-demo-toolbar, .board-demo-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-demo-toolbar, .board-demo-pages { justify-content: space-between; }
.board-demo-toolbar, .board-demo-pages { min-width: 0; }
#board-demo .board-demo-toolbar h3 { margin: 0; text-align: center; color: inherit; font-size: 1rem; }
#board-demo button {
  background: #fff;
  color: #163d3f;
  border: 1px solid #a8bcba;
  border-radius: 8px;
  min-height: 40px;
  padding: 5px 9px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}
#board-demo button:disabled { opacity: 0.52; cursor: default; }
#board-demo button:not(:disabled):hover { border-color: #1a5b61; background: #e9f4f2; }
#board-demo button:focus-visible { outline: 3px solid #17616a; outline-offset: 2px; }
#board-demo .board-demo-speak {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  box-shadow: 0 2px 4px #00000014;
}
#board-demo .board-demo-speak:not(:disabled):hover { background: #3e9642; }
#board-demo .board-demo-speak[aria-disabled="true"] { cursor: default; }
.board-demo-speak svg { width: 32px; height: 32px; }
.board-demo-speech { display: grid; justify-items: center; gap: 4px; }
.board-demo-mode { display: flex; gap: 2px; border-radius: 9px; padding: 2px; background: #dce8e5; }
#board-demo .board-demo-mode button { min-height: 26px; padding: 2px 6px; border: 0; background: transparent; }
#board-demo .board-demo-mode button[aria-pressed="true"] { background: #fff; }
.board-demo-spinner {
  width: 23px;
  height: 23px;
  border: 3px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  animation: board-demo-spin 0.8s linear infinite;
}
@keyframes board-demo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .board-demo-spinner { animation: none; } }
#board-demo .board-demo-output {
  margin: 0;
  padding: 3px 2px;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.15;
}
.board-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.board-demo-top, .board-demo-rail { background: #dce8e5; border-radius: 10px; padding: 5px; }
.board-demo-top {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}
.board-demo-workspace {
  grid-area: 2 / 1;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 40px;
  gap: 5px;
  height: 100%;
  min-height: 0;
  padding: 0 3px;
}
.board-demo-rail {
  grid-area: 1 / 2 / span 2;
  display: grid;
  gap: 5px;
  max-height: 100%;
  overflow-y: auto;
}
.board-demo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(72px, 1fr));
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding: 3px;
}
#board-demo .board-demo-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.15;
  min-height: 0;
  padding: 3px 2px;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  box-shadow: 0 1px 2px #12353226;
}
#board-demo .board-demo-top .board-demo-tile,
#board-demo .board-demo-rail .board-demo-tile { min-height: 58px; }
#board-demo .board-demo-tile[aria-pressed="true"] { background: #ceede7; border-color: #17616a; }
.board-demo-symbol { width: 46px; height: 46px; object-fit: contain; font-size: 1.9rem; }
.board-demo-grid .board-demo-symbol { width: 40px; height: 40px; flex-shrink: 1; min-height: 18px; }
.board-demo-top .board-demo-symbol, .board-demo-rail .board-demo-symbol { width: 35px; height: 35px; }
.board-demo-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.board-demo-dialog { border: 1px solid #a8bcba; border-radius: 12px; padding: 20px; }
.board-demo-dialog::backdrop { background: #0b252766; }
.board-demo-dialog label { display: grid; gap: 6px; margin-bottom: 12px; }
.board-demo-dialog input { font: inherit; padding: 8px; }
.board-demo-dialog button { margin-right: 6px; }
