
:root {
  color-scheme: dark; --bg: #05060a; --fg: #e6e6e6; --mute: #9a9a9a; --blue: #8cc2ff; --amber: #ffb224;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "Helvetica Neue", Inter, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --prose: rgba(232, 236, 244, 0.74);
}
html { overflow-x: clip; background: var(--bg); }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
main.col { position: relative; width: min(600px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
header img { width: 40px; height: 40px; }
header a { color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
h1 { font: 600 clamp(28px, calc(20px + 2.2vw), 38px)/1.12 var(--sans); letter-spacing: -0.022em; margin: 0 0 28px; color: #fff; }
h2 { font: 600 20px/1.25 var(--sans); margin: 48px 0 12px; color: #fff; }
p, li { margin: 0 0 14px; }
main.col > p { color: var(--prose); font-size: 17px; line-height: 1.6; letter-spacing: -0.003em; }
.title { margin: 0 0 28px; word-spacing: 10px; }
.title h1 { display: inline; margin: 0; word-spacing: normal; }
.title .byline { display: inline-block; margin: 0; word-spacing: normal; white-space: nowrap; color: #7e7e7e; font: 13px/1.4 var(--sans); }
.byline a { color: inherit; text-decoration: none; }
.byline a:hover { color: #fff; }
a { color: #9fd0ff; }
a:hover { color: #fff; }
.muted { color: var(--mute); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid #1e1e1e; font-size: 14px; color: var(--mute); }
footer p { margin: 10px 0 0; }
footer a { text-decoration: none; }

figure.scene { margin: 32px 0 40px; }
figure.scene figcaption { margin-top: 10px; max-width: var(--stage-w, 100%); font: 14px/1.45 var(--sans); color: var(--mute); }
.stage-box { position: relative; width: var(--stage-w, min(100%, 540px)); aspect-ratio: 3 / 2; }
#s-boundary .stage-box { aspect-ratio: 1; }
.stage-box noscript img { display: block; width: 100%; height: auto; }
.stage { position: absolute; z-index: 1; left: 0; top: 0; width: 360px; transform-origin: 0 0; background: var(--bg); font: 11px/1.35 var(--ui); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.stage > .l { position: absolute; left: 0; top: 0; width: 360px; overflow: visible; }
.stage > svg.l { pointer-events: none; }
.stage > .l.sc-dom { height: 0; }
.stage > .l.rt-over { height: 0; pointer-events: none; z-index: 3; }
.stage svg text { font-family: var(--ui); }

.rt-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; pointer-events: none; }
.rt-thread { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
main.col.rt-threaded { width: min(600px, calc(100% - 48px)); }
figure.scene.rt-thru { padding-top: var(--turn, 46px); }

.rt-ghost { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; box-sizing: border-box; background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 16px rgba(255, 255, 255, 0.2); visibility: hidden; }
.rt-ripple { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid rgba(200, 225, 255, 0.85); visibility: hidden; }

.rt-error { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 99; padding: 10px 12px; border-radius: 8px; background: #4a0b0b; border: 1px solid #ff6b6b; color: #fff; font: 12px/1.45 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; }

.k-pill { position: absolute; left: 0; top: 0; height: 22px; box-sizing: border-box; padding: 0 9px 0 19px; border-radius: 11px; font-size: 11px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: #dceaff; background: rgb(13, 28, 54); border: 1px solid rgba(120, 175, 255, 0.46); box-shadow: 0 0 12px rgba(70, 140, 255, 0.26); }
.k-pill::before { content: ""; position: absolute; left: 8px; top: 8px; width: 5px; height: 5px; border-radius: 3px; background: #8cc2ff; box-shadow: 0 0 6px #8cc2ff; }
.k-pill.amber { color: #ffe2b0; background: rgb(46, 32, 10); border-color: rgba(255, 178, 36, 0.65); box-shadow: 0 0 12px rgba(255, 178, 36, 0.28); }
.k-pill.amber::before { background: #ffb224; box-shadow: 0 0 6px #ffb224; }
.k-pill.claim { padding: 0 9px; border-radius: 8px; color: #9aa3b1; background: #141519; border-color: rgba(255, 255, 255, 0.24); box-shadow: none; }
.k-pill.claim::before { left: 11px; top: -4px; width: 6px; height: 6px; border-radius: 0; background: #141519; box-shadow: none; border-left: 1px solid rgba(255, 255, 255, 0.24); border-top: 1px solid rgba(255, 255, 255, 0.24); transform: rotate(45deg); }

.k-bead { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #e4f1ff; box-shadow: 0 0 0 2px rgba(140, 190, 255, 0.22), 0 0 10px 3px rgba(110, 170, 255, 0.7); }
.k-bead.amber { background: #fff0d4; box-shadow: 0 0 0 2px rgba(255, 178, 36, 0.25), 0 0 10px 3px rgba(255, 178, 36, 0.7); }
.k-bead.white { background: #fff; box-shadow: 0 0 0 2px rgba(236, 241, 250, 0.2), 0 0 10px 3px rgba(226, 232, 244, 0.45); }

.k-ticket { position: absolute; left: 0; top: 0; height: 20px; min-width: 52px; box-sizing: border-box; padding: 0 7px; border-radius: 5px; font-size: 11px; line-height: 18px; font-weight: 600; text-align: center; white-space: nowrap; color: #dceaff; background: rgba(13, 28, 54, 0.95); border: 1px solid rgba(120, 175, 255, 0.45); }
.k-ticket.lit { border-color: rgba(170, 210, 255, 0.95); box-shadow: 0 0 14px rgba(90, 160, 255, 0.5); color: #fff; }

.k-seat { position: absolute; left: 0; top: 0; width: 64px; height: 40px; box-sizing: border-box; border-radius: 8px; background: linear-gradient(180deg, #0f121a, #090b10); border: 1px solid rgba(255, 255, 255, 0.1); }
.k-seat i { position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.k-seat b { position: absolute; left: 8px; height: 2px; border-radius: 1px; background: rgba(214, 220, 230, 0.3); }
.k-seat.lit { border-color: rgba(150, 200, 255, 0.85); box-shadow: 0 0 14px rgba(90, 160, 255, 0.45); }
.k-seat.lit b { background: rgba(200, 225, 255, 0.6); }
.k-seat.dashed { border-style: dashed; border-color: rgba(170, 200, 245, 0.5); background: transparent; }
.k-seat-l { position: absolute; left: 50%; top: 100%; margin-top: 4px; transform: translateX(-50%); font-size: 11px; line-height: 14px; color: #9aa3b1; white-space: nowrap; }
.k-seat.lit .k-seat-l { color: #e6eefc; }
.k-seat-l.left { left: auto; right: 100%; top: 50%; margin: 0 6px 0 0; transform: translateY(-50%); text-align: right; }
.k-seat i.amber { background: #ffb224; box-shadow: 0 0 5px rgba(255, 178, 36, 0.8); }
.k-seat.pane { border-color: rgba(255, 255, 255, 0.12); transform-origin: 0 0; }
.k-seat.pane.sel { border-color: rgba(220, 232, 255, 0.45); }
.k-seat-tb { position: absolute; left: 0; right: 0; top: 0; box-sizing: border-box; border-radius: 7px 7px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); }
.k-seat-st { position: absolute; box-sizing: border-box; border-radius: 50%; border: 1px solid rgba(160, 170, 186, 0.8); }
.k-seat.pane.working .k-seat-st { border-color: #fff; background: #fff; box-shadow: 0 0 5px rgba(236, 241, 250, 0.55); }
.k-seat.pane.waiting .k-seat-st { border-color: #ffb224; background: #ffb224; box-shadow: 0 0 6px rgba(255, 178, 36, 0.85); }
.k-seat-bd { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
.k-seat-bd b { top: 0; border-radius: 1.5px; background: rgba(220, 232, 255, 0.55); }

.k-card { position: absolute; left: 0; top: 0; width: 300px; box-sizing: border-box; border-radius: 16px; color: #fff; background: linear-gradient(180deg, rgb(31, 35, 45), rgb(17, 19, 26)); border: 1px solid rgba(255, 255, 255, 0.11); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); transform-origin: 50% 100%; }
.k-card-h { padding: 14px 12px 12px 16px; }
.k-card-t { font-size: 15px; line-height: 20px; font-weight: 650; letter-spacing: -0.015em; white-space: pre-line; }
.k-card-t::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; vertical-align: 2px; border-radius: 4px; background: #ffb224; box-shadow: 0 0 8px rgba(255, 178, 36, 0.9); opacity: var(--dot, 1); }
.k-card-tag { display: inline-block; height: 18px; box-sizing: border-box; margin-left: 3px; padding: 0 5px; border-radius: 5px; vertical-align: 1px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: #dceaff; background: rgba(13, 28, 54, 0.95); border: 1px solid rgba(120, 175, 255, 0.45); }
.k-card-x { margin-top: 5px; font-size: 11px; line-height: 15px; font-weight: 400; color: #9ba4b3; }
.k-card-ev { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; line-height: 16px; font-weight: 500; }
.k-card-ev svg { flex: none; display: block; }
.k-card-v { font-weight: 600; color: #cfe4ff; text-shadow: 0 0 8px rgba(90, 160, 255, 0.35); }
.k-card-l { color: #8fa9c9; }
.k-card-b { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.k-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; min-height: 36px; margin: 0; padding: 0 8px; border: 0; border-radius: 0; font: 600 13px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #e6e9ef; background: transparent; white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; }
.k-btn + .k-btn { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.k-btn:first-child { border-bottom-left-radius: 15px; }
.k-btn:last-child { border-bottom-right-radius: 15px; }
.k-btn small { font-size: 11px; line-height: 14px; font-weight: 500; color: #8b94a3; }
.k-btn.rec { color: #fff; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.065)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
.k-btn.rec small { color: #b3bac6; }
.k-btn.rec + .k-btn { color: #cbd0d9; background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 16px); }
@media (hover: hover) { .k-btn:hover { background-color: rgba(255, 255, 255, 0.06); } }
.k-btn:active, .k-btn.press { background-color: rgba(255, 255, 255, 0.12); }
.k-btn.rec:active, .k-btn.rec.press { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.k-card .k-btn.hit { color: #ffe2b0; background: rgba(255, 178, 36, 0.16); box-shadow: none; }
.k-btn.hit small { color: rgba(255, 226, 176, 0.7); }
.k-btn.off { opacity: 0.38; }

main.col > p .nm { color: #f4f8ff; text-shadow: 0 0 10px rgba(110, 170, 255, 0.28); }

main.col .term { font-style: normal; }
main.col.terms-on .term { cursor: help; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgba(140, 194, 255, 0.6); text-decoration-thickness: 1.5px; text-underline-offset: 5px; -webkit-tap-highlight-color: transparent; transition: color 0.14s ease, text-decoration-color 0.14s ease; }
main.col.terms-on .term:hover, main.col.terms-on .term.open { color: #f4f8ff; text-decoration-color: rgba(160, 206, 255, 1); }
main.col .term:focus { outline: none; }
main.col .term:focus-visible { outline: 1px solid rgba(140, 194, 255, 0.7); outline-offset: 3px; border-radius: 3px; }
.term-tip { position: absolute; z-index: 20; left: 0; top: 0; box-sizing: border-box; width: max-content; max-width: min(320px, 100%); padding: 11px 14px 12px; border-radius: 12px; background: linear-gradient(180deg, rgb(31, 35, 45), rgb(17, 19, 26)); border: 1px solid rgba(255, 255, 255, 0.11); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); font: 14px/1.5 var(--sans); letter-spacing: -0.003em; color: rgba(232, 236, 244, 0.8); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s; }
.term-tip.up { transform: translateY(4px); }
.term-tip::before { content: ""; position: absolute; left: var(--cx, 24px); top: -5px; width: 9px; height: 9px; margin-left: -5px; box-sizing: border-box; border-top-left-radius: 2px; background: rgb(31, 35, 45); border-left: 1px solid rgba(255, 255, 255, 0.11); border-top: 1px solid rgba(255, 255, 255, 0.11); transform: rotate(45deg); }
.term-tip.up::before { top: auto; bottom: -5px; background: rgb(17, 19, 26); transform: rotate(225deg); }
.term-tip.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s; }
.term-tip b { display: block; margin-bottom: 3px; font: 600 13px/1.35 var(--sans); letter-spacing: -0.005em; color: #fff; }
@media (prefers-reduced-motion: reduce) { .term-tip, .term-tip.on, main.col.terms-on .term { transition: none; } }
