:root {
  color-scheme: dark;
  --background: #000;
  --text: #e8edf0;
  --muted: #929da8;
  --blue: #81c9ed;
  --line: #242d33;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
::selection { color: #000; background: var(--blue); }
.page { width: min(1280px, 100%); padding: 0 48px; margin: 0 auto; }
.header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wordmark > span:first-child { margin-right: 12px; font-size: 18px; color: var(--blue); font-weight: 400; }
.period { color: var(--blue); }
.header-note { font-size: 12px; color: var(--muted); text-align: right; }
.experience { padding-top: 52px; text-align: center; }
h1 { font-size: clamp(20px, 2.6vw, 32px); font-weight: 400; letter-spacing: -1.1px; line-height: 1.4; margin: 0 0 14px; }
.instruction { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.touch-instruction { display: none; }
.stage { position: relative; width: 100%; margin: 9px auto 0; }
canvas { display: block; width: 100%; aspect-ratio: 2.08; }
.stage-corner { color: #3b4c58; font-size: 15px; position: absolute; user-select: none; }
.corner-top { left: 0; top: 32%; }
.corner-bottom { right: 0; bottom: 32%; }
.controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button { border: 1px solid var(--line); padding: 13px 20px; border-radius: 6px; cursor: pointer; font-size: 12px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.primary { background: #d4e8f2; color: #10232d; border-color: #d4e8f2; min-width: 140px; }
.secondary { background: #000; color: #c1cdd6; }
.button:hover:not(:disabled) { border-color: var(--blue); background: #11202a; color: var(--text); }
.button:disabled { opacity: 0.5; cursor: default; }
.status { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 20px; margin: 20px 0 48px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.status-light { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.status[data-static="true"] .status-light { background: #79828a; }
.notice { font-size: 13px; line-height: 1.7; color: var(--text); }
.about { max-width: 650px; margin: 0 auto 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; padding: 20px 0; font-size: 12px; color: #bcc7d0; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 19px; color: var(--muted); }
details[open] summary > span { transform: rotate(45deg); }
.about-content { padding: 0 0 10px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.about-content p { margin: 0 0 16px; }
code { font: inherit; color: var(--blue); white-space: nowrap; }
footer { padding: 24px 0 28px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; color: var(--muted); }

@media (pointer: coarse) {
  .mouse-instruction { display: none; }
  .touch-instruction { display: inline; }
}
@media (max-width: 600px) {
  .page { padding: 0 20px; }
  .header { min-height: 82px; gap: 10px; }
  .wordmark { font-size: 20px; }
  .wordmark > span:first-child { font-size: 14px; margin-right: 5px; }
  .header-note { font-size: 10px; max-width: 105px; line-height: 1.7; }
  .experience { padding-top: 54px; }
  h1 { max-width: 280px; margin: 0 auto 18px; letter-spacing: -0.7px; }
  .instruction { font-size: 11px; }
  .stage { width: calc(100% + 24px); margin: 32px -12px 28px; }
  canvas { aspect-ratio: 1.75; }
  .stage-corner { display: none; }
  .button { padding: 13px 15px; font-size: 11px; gap: 8px; }
  .primary { min-width: 120px; }
  .status { font-size: 10px; margin-bottom: 48px; }
  .about { margin-bottom: 28px; }
  footer { font-size: 9px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
