:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: #e5eef7;
  background: #08111f;
  --bg: #08111f;
  --panel: #0f1d2d;
  --panel-strong: #132337;
  --line: #22364e;
  --muted: #9fb0c3;
  --text: #e5eef7;
  --mint: #48f0b0;
  --cyan: #5cc8ff;
  --amber: #ffca58;
  --ink: #07101a;
  --body-background:
    radial-gradient(circle at top left, rgba(72, 240, 176, 0.16), transparent 34rem),
    linear-gradient(135deg, #08111f 0%, #101a2a 58%, #12151d 100%);
  --header-background: rgba(8, 17, 31, 0.86);
  --surface-background: rgba(15, 29, 45, 0.62);
  --panel-background: rgba(15, 29, 45, 0.86);
  --soft-background: rgba(255, 255, 255, 0.04);
  --active-background: rgba(92, 200, 255, 0.12);
  --border-soft: rgba(159, 176, 195, 0.18);
  --border-strong: rgba(159, 176, 195, 0.32);
  --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.32);
  --brand-icon: url('/image/favicon.svg');
}

[data-theme="light"] {
  color-scheme: light;
  color: #17202c;
  background: #f6f8fb;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-strong: #eef4fb;
  --line: #cfdae8;
  --muted: #52616f;
  --text: #17202c;
  --mint: #14735d;
  --cyan: #126fb0;
  --amber: #ad6b00;
  --ink: #ffffff;
  --body-background:
    radial-gradient(circle at top left, rgba(15, 159, 115, 0.12), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #eef4fb 58%, #f8fafc 100%);
  --header-background: rgba(255, 255, 255, 0.88);
  --surface-background: rgba(255, 255, 255, 0.78);
  --panel-background: rgba(255, 255, 255, 0.9);
  --soft-background: rgba(18, 111, 176, 0.08);
  --active-background: rgba(18, 111, 176, 0.12);
  --border-soft: rgba(82, 97, 111, 0.2);
  --border-strong: rgba(82, 97, 111, 0.34);
  --shadow-panel: 0 24px 70px rgba(23, 32, 44, 0.12);
  --brand-icon: url('/image/favicon-light.svg');
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--body-background);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}

/* The player's minimum height must not impose an aspect-ratio minimum width. */
.app-shell > * { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-soft);
  background: var(--header-background);
  backdrop-filter: blur(18px);
}

.container {
  min-width: 0;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.site-header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand::before {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--brand-icon) center / contain no-repeat;
  content: "";
}

.preference-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-control { flex-shrink: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.language-control select {
  --language-arrow-space: 24px;
  width: var(--language-select-width, 12rem);
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

.keyboard-control { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.keyboard-control svg { position: absolute; left: 14px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.keyboard-control select { width: 10.5rem; min-height: 46px; padding: 8px 10px 8px 42px; border: 1px solid var(--border-soft); border-radius: 8px; color: var(--text); background: var(--panel); font: inherit; font-size: .875rem; cursor: pointer; }
.keyboard-control select:disabled { opacity: .55; cursor: default; }
.keyboard-control select:focus-visible, .help-button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.help-button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

body:has(#onboarding-dialog[open]) { overflow: hidden; }
#onboarding-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow: auto; padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: var(--shadow-panel); }
#onboarding-dialog::backdrop { background: #000811b5; backdrop-filter: blur(3px); }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onboarding-steps { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; font-size: .75rem; color: var(--muted); }
.onboarding-steps li { display: flex; align-items: center; gap: 5px; }
.onboarding-steps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--panel-strong); }
.onboarding-steps [aria-current="step"] { color: var(--mint); }
.onboarding-steps [aria-current="step"] span { background: var(--mint); color: var(--ink); }
.dialog-close { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 1.5rem; cursor: pointer; }
#onboarding-dialog h2 { margin: 26px 0 10px; font-size: 1.5rem; line-height: 1.5; overflow-wrap: anywhere; }
.onboarding-description { color: var(--muted); font-size: .875rem; line-height: 1.8; margin-bottom: 22px; }
.onboarding-language { display: grid; gap: 8px; font-size: .875rem; color: var(--muted); margin-top: 25px; }
.onboarding-language select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; color: var(--text); background: var(--panel-strong); }
.onboarding-note { margin: 18px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.layout-choices, .intro-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.layout-choice, .intro-modes > div { position: relative; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.layout-choice { cursor: pointer; }
.layout-choice:has(input:checked) { border-color: var(--mint); background: var(--active-background); }
.layout-choice input { position: absolute; right: 14px; top: 18px; width: 16px; height: 16px; margin: 0; accent-color: var(--mint); }
.layout-choice strong { display: block; padding-right: 20px; font-size: 1.125rem; }
.layout-choice small { color: var(--muted); font-size: .75rem; }
.layout-choice p, .intro-modes p { margin-top: 12px; font-size: .8125rem; color: var(--muted); line-height: 1.8; }
.intro-modes .intro-wide { grid-column: 1 / -1; }
.layout-mini { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 27px); gap: 4px; margin-top: 18px; }
.layout-mini span { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--muted); font-size: .6875rem; }
.layout-mini .mini-enter { background: var(--mint); color: var(--ink); border: 0; font-size: 1.125rem; }
.layout-mini-jis .mini-enter { grid-column: 4/6; grid-row: 1/3; clip-path: polygon(0 0,100% 0,100% 100%,39% 100%,39% 47%,0 47%); padding-left: 18%; border-radius: 0; }
.layout-mini-us .mini-backslash { grid-column: 4/6; }
.layout-mini-us .mini-enter { grid-column: 4/6; grid-row: 2/3; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.setup-back { padding: 10px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.onboarding-actions .button { width: auto; min-width: 112px; }
.onboarding-actions .button:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) {
  #onboarding-dialog { padding: 22px 18px; }
  #onboarding-dialog h2 { font-size: 1.25rem; }
  .layout-choices, .intro-modes { grid-template-columns: 1fr; }
  .layout-choice { padding: 12px 14px; }
  .layout-mini { max-width: 210px; margin-top: 12px; }
  .onboarding-steps { gap: 8px; }
}

.language-control select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.preference-storage-notice {
  padding-bottom: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.preference-toggle {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--soft-background);
}

.preference-toggle button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.preference-toggle button:hover {
  color: var(--text);
}

.preference-toggle button[aria-pressed="true"] {
  color: var(--text);
  background: var(--active-background);
}

.preference-toggle button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.preference-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 40px;
}

.hero-copy,
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 8vw, 5.75rem);
  line-height: 0.96;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.lede,
.page p {
  /* max-width: 680px; */
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: var(--mint);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--soft-background);
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel-background);
  box-shadow: var(--shadow-panel);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--soft-background);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.terminal-bar span:nth-child(2) {
  background: var(--mint);
}

.terminal-bar span:nth-child(3) {
  background: var(--cyan);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--border-soft);
}

.status-grid div {
  padding: 18px;
  background: var(--panel);
}

.status-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.status-grid dd {
  margin: 0;
  font-weight: 800;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #cffce8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.feature-card,
.timeline div {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-background);
}

.feature-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.feature-kicker,
.timeline span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 800;
}

.feature-card p,
.timeline p {
  color: var(--muted);
}

.narrow {
  max-width: 820px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.timeline div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.tool-page {
  gap: 28px;
}

.tool-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: end;
}

.tool-options,
.editor-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-background);
}

.tool-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
}

.option-group {
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
}

.tool-options > .option-group,
.tool-options > .toggle-option {
  flex: 1 1 220px;
}

.option-group legend {
  padding: 0;
  font-weight: 800;
}

.option-group label,
.toggle-option {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
}

.option-group label {
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  background: var(--soft-background);
}

.option-group:has(input[name="json-output-mode"][value="line"]:checked) + .option-group {
  opacity: 0.48;
}

.toggle-option {
  position: relative;
  min-height: 38px;
  align-items: center;
  cursor: pointer;
}

.toggle-option span {
  display: block;
}

.toggle-option small {
  position: absolute;
  left: 28px;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(320px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.toggle-option:hover small,
.toggle-option:focus-within small {
  opacity: 1;
  transform: translateY(0);
}

.option-group input,
.toggle-option input {
  accent-color: var(--mint);
}

.json-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  overflow: hidden;
}

.editor-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 800;
}

.editor-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.copy-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  background: var(--soft-background);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
}

.copy-button:hover {
  border-color: var(--mint);
}

.editor-panel textarea,
.json-output {
  min-height: 360px;
  margin: 0;
  padding: 16px;
  border: 0;
  color: var(--text);
  background: var(--panel-background);
  font: 0.9rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.editor-panel textarea {
  width: 100%;
  outline: none;
}

.editor-panel textarea::placeholder {
  color: var(--muted);
}

.json-output {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-status {
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.json-status.is-empty {
  color: var(--muted);
}

.json-status.is-valid {
  color: var(--mint);
}

.json-status.is-invalid {
  color: #ff7a7a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.history-modal {
  width: min(100%, 820px);
  max-height: min(760px, 88svh);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
}

.modal-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-actions {
  display: inline-flex;
  gap: 8px;
}

.modal-heading h2 {
  font-size: 1rem;
}

.history-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.history-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: var(--surface-background);
}

.history-item:hover {
  border-color: var(--mint);
}

.history-item span,
.history-item strong,
.history-empty {
  color: var(--muted);
  font-size: 0.8125rem;
}

.history-item code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
}

.site-footer .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.site-copyright { font-size: 0.75rem; white-space: nowrap; }
.footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }

@media (max-width: 820px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .json-workspace {
    grid-template-columns: 1fr;
  }

  .tool-header {
    grid-template-columns: 1fr;
  }

  .option-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }

  .preference-controls {
    gap: 8px;
    margin-left: auto;
  }

  main {
    padding: 40px 0;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions,
  .site-footer .container {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

main:has(.typing-page) { padding-top: 24px; }
.typing-page { padding-top: 0; row-gap: 8px; }
.typing-home { display: grid; gap: 48px; padding-block: 24px; }
#app:focus { outline: none; }
.typing-home .hero-copy { max-width: 780px; }
.typing-home h1 { white-space: pre-line; font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.25; letter-spacing: -.04em; }
.resume-note { color: var(--muted); font-size: .875rem; }
.practice-section, .typing-hints { display: grid; gap: 20px; }
.practice-section > h2, .typing-hints > h2 { font-size: 1.25rem; }
.practice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.practice-card { display: grid; align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--border-soft); background: var(--panel-background); text-decoration: none; }
.practice-card h3, .hint-grid h3 { margin: 0; font-size: 1rem; }
.practice-card h3 span { color: var(--mint); }
.practice-card p, .hint-grid p { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.practice-card:hover { border-color: var(--mint); background: var(--active-background); }
.hint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hint-grid article { display: grid; align-content: start; gap: 10px; border-top: 2px solid var(--line); padding-top: 16px; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
@media (max-width: 900px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .practice-grid, .hint-grid { grid-template-columns: 1fr; } .typing-home { padding-block: 0; gap: 32px; } }
.typing-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; padding: 0 0 5px; border-bottom: 1px solid #60766e; }
.typing-tabs button { max-width: 100%; padding: 10px 16px; border: 1px solid transparent; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: .9rem; overflow-wrap: anywhere; cursor: pointer; }
.typing-tabs button[aria-selected="true"] { color: var(--ink); background: var(--mint); font-weight: 700; }
.typing-tabs button:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.typing-tabs button:disabled { opacity: .55; cursor: wait; }
.typing-page h1 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 0.25rem; }
.typing-mode-notice { margin: 0 0 0.75rem; }
.typing-keyboard-notice { display: grid; align-content: center; gap: 12px; padding: 48px 24px; min-height: 240px; background: var(--panel-background); border: 1px solid var(--border-soft); border-radius: 12px; }
.typing-keyboard-notice h1 { color: var(--text); }
.typing-keyboard-notice p { max-width: 40em; overflow-wrap: anywhere; }
/* Add room for the bottom controls to the existing 3:2 frame in both modes. */
#typing-panel { min-width: 0; container-type: inline-size; }
.typing-stage { width: 100%; min-width: 0; height: max(492px, calc(min(100cqw, 1120px) * 2 / 3 + 32px)); min-height: 492px; max-width: 1120px; background: var(--bg); border-radius: 0; overflow: hidden; color: var(--text); margin-inline: auto; }
.typing-stage > p { padding: 1.5rem; }
.typing-stage > button { margin: 0 1.5rem 1.5rem; }
.typing-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 700px) {
  .typing-stage { max-width: 1120px; }
}
