@font-face{font-family:Barlow;src:url('assets/barlow-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Barlow;src:url('assets/barlow-900.woff2') format('woff2');font-weight:900;font-display:swap}

:root {
  color-scheme: dark;
  --background: #130c1d;
  --surface: #20152e;
  --line: #3f2d52;
  --ink: #fff5ff;
  --muted: #c2afce;
  --pink: #ff4eaa;
  --lime: #d9ff57;
  --gold: #ffce6b;
  --display: Barlow, 'Arial Narrow', Impact, sans-serif;
  font-family: 'Hiragino Sans', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 4%, #251436 0, transparent 60%), var(--background);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }
.page-width { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #33253f; background: #140e1ce0; }
.header-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font: 900 29px/.9 var(--display); letter-spacing: .015em; }
.brand-accent { color: var(--pink); margin-left: 3px; }
.brand-icon { width: 31px; height: 31px; transform: rotate(-8deg); display: grid; place-items: center; color: #2c1029; background: var(--pink); border-radius: 8px; box-shadow: 0 3px #92235e; }
.bolt { display: inline-block; width: 1em; height: 1em; background: currentColor; clip-path: polygon(55% 0, 100% 0, 66% 39%, 93% 39%, 26% 100%, 44% 55%, 11% 55%); }
.sound { display: inline-flex; align-items: center; gap: 10px; min-height: 37px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: #261b34; color: #f0e1f7; font-weight: 700; font-size: 11px; }
.sound:hover, .stop:hover { background: #362345; }
.speaker { position: relative; width: 17px; height: 15px; color: var(--pink); }
.speaker::before { content: ''; position: absolute; inset: 1px 6px 1px 0; background: currentColor; clip-path: polygon(0 34%, 34% 34%, 92% 0, 92% 100%, 34% 66%, 0 66%); }
.speaker::after { content: ''; position: absolute; inset: 3px 0 3px 9px; border-right: 2px solid; border-radius: 50%; }
.sound[aria-pressed="false"] .speaker { color: var(--muted); }
.sound[aria-pressed="false"] .speaker::after { inset: 6px 0 7px 9px; border: 0; border-top: 2px solid; border-radius: 0; transform: rotate(-45deg); }
main { padding-block: 26px 42px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 232px;
  display: flex;
  align-items: center;
  border: 1px solid #673c8e;
  border-radius: 23px;
  background: linear-gradient(102deg, #271439 12%, #422369 69%, #582787);
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(#b677dd54 1px, transparent 1px) 0 0 / 10px 10px; mask-image: linear-gradient(120deg, #000 0%, transparent 57%); }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background: url('assets/rush-hero.webp') center 48% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 32%);
}
.hero-content { padding: 24px 40px 28px; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--lime); background: #22192c; border: 1px solid #96a7488c; padding: 6px 10px; border-radius: 5px; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .06em; }
.hero-tag .bolt { font-size: 13px; }
h1 { margin: 0 0 14px -3px; font: 900 clamp(64px, 8.2vw, 116px)/.91 var(--display); letter-spacing: -.013em; transform: skewX(-8deg); transform-origin: left bottom; text-shadow: 3px 5px #120c20, 4px 7px #803078; white-space: nowrap; }
h1 em { color: var(--pink); font-style: normal; }
.hero-copy { margin: 0; color: #f3dcff; font-size: 14px; line-height: 1.6; font-weight: 700; text-shadow: 0 2px 4px #150e24; }
.arcade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); gap: 20px; margin-top: 22px; }
.machine { --glow: var(--pink); overflow: hidden; background: #221630; border-radius: 20px; border: 1px solid #664085; box-shadow: 0 5px 0 #100b18; }
.machine.fever { --glow: var(--lime); border-color: #b1cf53; }
.dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 15px 0 13px; background: #1a1125; }
.readout { display: grid; gap: 2px; text-align: center; border-right: 1px solid #39284b; }
.readout:last-child { border: 0; }
.readout > span, .best-wrap > span { color: var(--muted); font: 700 14px/1 var(--display); letter-spacing: .13em; }
.readout strong { font: 900 43px/.93 var(--display); letter-spacing: .035em; font-variant-numeric: tabular-nums; }
.readout.time strong { color: var(--gold); }
.readout.time small { font-size: 21px; margin-left: 3px; }
.readout.combo strong { color: var(--pink); }
.fever .readout.combo strong { color: var(--lime); }
.meter { height: 4px; background: #3a294a; }
.meter > div { height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--time-ratio, 1)); background: linear-gradient(90deg, #ad55f3, var(--glow)); }
.deck { padding: 14px 19px 17px; }
.deck-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 25px; margin-bottom: 10px; }
.status { font: 700 15px/1 var(--display); letter-spacing: .12em; display: inline-flex; align-items: center; gap: 7px; color: #e8d6f4; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.key-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
kbd { font: 700 12px/1 var(--display); padding: 1px 5px 2px; border: 1px solid #5d436e; border-radius: 3px; background: #2b1c3a; color: #efe3fa; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pad {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 69px;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid #59406e;
  border-bottom: 4px solid #170f22;
  background: linear-gradient(#362549, #2c1d3d);
  user-select: none;
}
.pad::before { content: ''; position: absolute; inset: 3px; border-radius: 7px; border: 1px solid #fff1ff0d; pointer-events: none; }
.pad-key { position: absolute; top: 6px; left: 10px; font: 700 13px/1 var(--display); color: #c7b6d8; }
.pad .bolt { color: #af8dc63b; font-size: 26px; }
.pad:disabled { cursor: default; }
.pad:hover:where(:not(.target, .preview, :disabled)) { background: linear-gradient(#402d54, #332244); }
.pad.target, .pad.preview { color: #3b1237; border-color: #ffa9da; border-bottom-color: #a51c6a; background: linear-gradient(165deg, #ff8dcc, #ff46a4 70%); box-shadow: 0 0 20px #ff53a858, inset 0 1px 0 #fff6; }
.pad.target .bolt, .pad.preview .bolt { color: currentColor; font-size: 32px; }
.pad.target .pad-key, .pad.preview .pad-key { color: #591d48; }
.pad.target::before, .pad.preview::before { border-color: #fff4; }
.fever .pad.target { color: #304014; border-color: #f2ffbc; border-bottom-color: #8da322; background: linear-gradient(165deg,#eeffad,#cbf84a 75%); box-shadow: 0 0 20px #d9ff5770; }
.fever .pad.target .pad-key { color: #344213; }
.pad:active { transform: translateY(2px); }
.pad.hit { animation: hit .19s ease-out; }
.pad.miss { animation: miss .24s ease-out; }
@keyframes hit { 38% { box-shadow: inset 0 0 0 2px #f3ffb2, 0 0 20px #d9ff578c; transform: scale(.98); } }
@keyframes miss { 25% { box-shadow: inset 0 0 0 2px #ff6f81; } }
.pop { position: absolute; z-index: 3; font: 900 25px/1 var(--display); color: var(--lime); text-shadow: 0 1px 4px #191222, 0 1px 5px #191222; pointer-events: none; animation: pop .55s ease-out both; }
@keyframes pop { from { transform: translateY(5px) scale(.8); } 55% { opacity: 1; } to { transform: translateY(-24px) scale(1.05); opacity: 0; } }
.controls { margin-top: 14px; }
.start, .stop { min-height: 46px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; font-size: 14px; font-weight: 800; }
.start { background: var(--lime); border: 1px solid #edffa5; border-bottom: 4px solid #95ad3a; color: #222615; }
.start:hover { background: #e8ff8e; }
.start:active { transform: translateY(2px); }
.play-icon { width: 11px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stop { background: #2c203a; border: 1px solid #5b416f; color: #eeddf7; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.side-card { border: 1px solid var(--line); padding: 16px 17px; border-radius: 16px; background: var(--surface); }
.record { background: radial-gradient(ellipse at 100% 0, #492753, transparent 76%), var(--surface); border-color: #62406f; }
.section-top { display: flex; align-items: center; gap: 9px; }
.section-top h2 { margin: 0; font-size: 14px; line-height: 1.3; }
.side-icon, .step-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 900 17px/1 var(--display); }
.star { background: #513949; color: var(--gold); }
.question { background: #433151; color: #e1b9ff; }
.best-wrap { margin: 5px 0 11px; display: flex; align-items: baseline; gap: 7px; }
.best-wrap strong { color: var(--gold); font: 900 58px/.95 var(--display); letter-spacing: .03em; }
.record-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #533b60; padding-top: 8px; font-size: 11px; color: var(--muted); }
.record-footer strong { font: 900 22px/1 var(--display); color: var(--ink); }
.guide ol { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 12px; }
.guide li { display: flex; align-items: center; gap: 10px; }
.guide li strong { display: block; font-size: 12px; line-height: 1.3; }
.guide li p { margin: 4px 0 0; font-size: 11px; line-height: 1.35; color: var(--muted); }
.step-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.step-tap { color: #ff85c9; background: #4f274e; }
.step-combo { color: #cd9dff; background: #402d56; font-size: 24px; }
.step-fever { color: var(--lime); background: #394033; }
.result { width: min(420px, calc(100% - 36px)); max-height: calc(100% - 32px); padding: 0; color: var(--ink); background: #261734; border: 1px solid #935fb5; border-radius: 21px; box-shadow: 0 18px 80px #0d0614; }
.result::backdrop { background: #10081ac7; backdrop-filter: blur(5px); }
.result-interior { text-align: center; padding: 23px; background: radial-gradient(ellipse at 60% 0, #5f285d, transparent 64%); }
.result-tag { color: var(--lime); font: 700 17px/1 var(--display); letter-spacing: .12em; }
.result h2 { font-size: 25px; margin: 10px 0 4px; }
.result-score strong { color: var(--gold); font: 900 80px/1 var(--display); }
.result-score span { color: var(--muted); font: 700 18px/1 var(--display); margin-left: 6px; }
.result-stats { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; background: #1b1126; border: 1px solid #553969; border-radius: 10px; }
.result-stats div { display: grid; gap: 4px; padding: 9px; font-size: 12px; color: var(--muted); }
.result-stats div + div { border-left: 1px solid #553969; }
.result-stats strong { color: var(--ink); font: 900 29px/1 var(--display); }
.result .stop { margin-top: 8px; }
@media (max-width: 840px) {
  .page-width { width: calc(100% - 36px); }
  .arcade { grid-template-columns: minmax(0, 1fr) 235px; gap: 13px; }
  .hero-content { padding-left: 25px; }
  .hero-art { inset-inline-start: 28%; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 26px); }
  .header-inner { min-height: 54px; }
  .brand { font-size: 25px; gap: 8px; }
  .brand-icon { width: 27px; height: 27px; }
  main { padding-block: 12px 22px; }
  .hero { min-height: 171px; border-radius: 15px; align-items: end; }
  .hero-content { padding: 16px; }
  .hero-tag { font-size: 9px; margin-bottom: 8px; padding: 4px 6px; }
  .hero-tag .bolt { font-size: 11px; }
  h1 { font-size: clamp(51px, 12vw, 75px); margin-bottom: 9px; }
  .hero-copy { font-size: clamp(10px, 2.8vw, 13px); }
  .hero-art { inset-inline-start: 23%; background-position: 58% 43%; mask-image: linear-gradient(to right, transparent, #000 45%); }
  .arcade { grid-template-columns: minmax(0,1fr); margin-top: 13px; }
  .dashboard { padding-block: 12px 10px; }
  .readout strong { font-size: 37px; }
  .readout > span { font-size: 12px; }
  .deck { padding: 9px 12px 12px; }
  .deck-heading { margin-bottom: 7px; }
  .board { gap: 7px; }
  .pad { min-height: clamp(54px, 14vw, 67px); }
  .controls { margin-top: 10px; }
  .sidebar { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; }
}
