:root{--bg:#080909;--fg:#f6f7f7;--accent:#c5fb88;--muted:#b9c6b5;--border:#3b4b38;--panel:#161e16;color-scheme:dark;background:var(--bg);color:var(--fg);font-family:Arial,Helvetica,sans-serif}
*,*::before,*::after{box-sizing:border-box}body{margin:0}a{color:var(--accent)}button,input,select{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.skip-link{position:fixed;top:10px;left:10px;z-index:9;transform:translateY(-160%);background:var(--panel);padding:12px}
.skip-link:focus{transform:none}.rv-header,.rv-footer{padding:22px max(5vw,20px);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--border)}
.rv-brand{display:inline-flex;gap:9px;align-items:center;font-weight:800;color:var(--fg)}.rv-header nav,.rv-footer nav{display:flex;flex-wrap:wrap;gap:14px;font-size:.9rem}.rv-header a,.rv-footer a{text-decoration:none}.rv-header a:hover,.rv-footer a:hover{text-decoration:underline}
.rv-footer{border-bottom:0;border-top:1px solid var(--border);color:var(--muted)}.rv-footer p{margin:0}
.rv-main{max-width:1080px;margin:auto;padding:clamp(32px,8vw,95px) 22px 65px}.rv-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(22px,5vw,60px);align-items:center}
.rv-hero img{width:100%;height:auto;border-radius:20px}.rv-main h1{font-size:clamp(2.4rem,7vw,4.5rem);line-height:1.03;letter-spacing:-.05em;margin:0 0 20px}
.rv-main p,.notice-page p,.notice-page li{color:var(--muted);line-height:1.7}.rv-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.rv-primary,.rv-secondary{display:inline-block;padding:12px 17px;border-radius:999px;font-weight:700;text-decoration:none}.rv-primary{background:var(--accent);color:var(--bg)}.rv-secondary{border:1px solid var(--border)}
.rv-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:16px;margin:45px 0}.rv-cards article{border:1px solid var(--border);border-radius:18px;background:var(--panel);padding:18px}
.notice-page{max-width:800px;margin:auto;padding:42px 22px 70px;line-height:1.7}.notice-page h1{font-size:clamp(2rem,6vw,3rem);line-height:1.15}.notice-page h2{margin-top:32px}.notice-page li{margin:8px 0}
@media(max-width:620px){.rv-hero{grid-template-columns:1fr}.rv-header{align-items:flex-start}}
.rv-reading{max-width:760px;margin:54px auto 0}.rv-reading h3{margin-top:34px}.rv-reading h2,.rv-reading h3{line-height:1.2}

.rv-cards.rv-tools { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; }
.rv-cards.rv-tools .rv-beat {
  grid-row: span 2;
  padding: clamp(18px, 3vw, 28px);
  border-color: #4d673f;
  background: #131e16;
}
.rv-beat h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -.035em; }
.rv-beat-copy p { margin: .4rem 0 1rem; }
.rv-beat-sequencer {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  align-items: stretch;
  gap: .55rem;
  padding: .65rem;
  border: 1px solid #3b4b38;
  border-radius: .85rem;
  background: #0b130d;
}
.rv-beat-meter, .rv-beat-grid > span { display: grid; grid-template-rows: repeat(3, 1fr); gap: .23rem; }
.rv-beat-meter { color: var(--muted); align-items: center; font-size: .75rem; }
.rv-beat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; }
.rv-beat-grid > span { min-width: 0; padding: .19rem; border: 1px solid transparent; border-radius: .33rem; }
.rv-beat-grid > span:nth-child(5) { margin-left: .14rem; }
.rv-beat-grid > span.is-playing { border-color: var(--accent); background: #30432c; }
.rv-beat-grid i { min-height: .46rem; border-radius: .17rem; background: #27382b; }
.rv-beat-grid > span:nth-child(odd) i:first-child { background: #a9ed72; }
.rv-beat-grid > span:nth-child(even) i:nth-child(2) { background: #62ca91; }
.rv-beat-grid i:last-child { background: #4e7d62; }
.rv-beat-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .65rem; margin-top: 1rem; }
.rv-beat-actions button, .rv-beat-answer summary { min-height: 44px; cursor: pointer; }
.rv-beat-actions button { border: 0; }
.rv-beat-actions button[hidden] { display: none; }
.rv-beat-answer summary { display: list-item; padding: .68rem .7rem; font-weight: 700; border-radius: .45rem; }
.rv-beat-answer summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-beat-answer p { margin: .25rem .7rem 0; }
.rv-beat-answer strong { color: var(--accent); }
.rv-beat-status:empty { display: none; }
.rv-beat-status { margin: .5rem 0 0; font-size: .9rem; }
.rv-beat-link { display: inline-block; margin-top: .8rem; padding-block: .45rem; font-weight: 700; text-underline-offset: .2em; }
@media(max-width: 730px) {
  .rv-cards.rv-tools { grid-template-columns: minmax(0, 1fr); }
  .rv-cards.rv-tools .rv-beat { grid-row: auto; }
}

.rv-example {
  margin-block: 1.5rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #4d673f;
  border-radius: 1rem;
  background: #131e16;
}
.rv-example h2 { margin: 0 0 .6rem; line-height: 1.25; }
.rv-example p { margin: .65rem 0; overflow-wrap: anywhere; }
.rv-example-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-block: .85rem; }
.rv-example-pair div { padding: .75rem; background: #0b130d; border-radius: .65rem; }
.rv-example-pair dt { color: var(--accent); font-weight: 700; }
.rv-example-pair dd { margin: .25rem 0 0; color: var(--muted); }
.rv-example summary { width: fit-content; min-height: 44px; padding: .55rem .2rem; cursor: pointer; font-weight: 700; }
.rv-example summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rv-example blockquote { margin: .45rem 0 0; padding: .4rem .85rem; border-inline-start: 2px solid var(--accent); color: var(--muted); }
.rv-example-button { min-height: 44px; background: #0b130d; color: var(--accent); cursor: pointer; }
.rv-example-button[hidden], .rv-example [role="status"]:empty { display: none; }
@media(max-width:520px) { .rv-example-pair { grid-template-columns: minmax(0,1fr); } }
