.ro-page { width: var(--page); margin: 0 auto; }
.ro-page [hidden] { display: none !important; }
.ro-page.page-columns, .ro-page .page-columns, #ro-explorer.page-columns { display: block !important; }
.ro-page .page-columns > * { grid-column: auto !important; }
.ro-heading { max-width: 820px; margin: 3rem 0 1.5rem; }
.ro-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.ro-heading h1 { color: var(--paper); font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.ro-heading h1 em { color: var(--gold); }
.ro-heading > p:last-child { color: var(--soft); font-size: 1.05rem; max-width: 64ch; }
.ro-loading { color: var(--soft); }
.ro-page button { font-family: var(--sans); }
.ro-page button:focus-visible, .ro-page input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.ro-panel { position: relative; margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 1.9rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.ro-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.ro-panel .eyebrow { margin-bottom: .3rem; }
.ro-panel h2 { margin: 0 0 .5rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ro-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; }
.ro-transport { display: flex; flex-wrap: wrap; gap: .5rem; }
.ro-play { padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.ro-btn { padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .88rem; cursor: pointer; }
.ro-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ro-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* The deck */
.ro-stage { position: relative; margin-top: 1rem; padding: .8rem; border-radius: 16px; background: radial-gradient(ellipse at 40% 30%, #3b2a4f, #1f1530 75%); }
.ro-deck { display: block; width: 100%; height: auto; --ro-letter: #e3b54a; }
.ro-grab { cursor: grab; touch-action: none; }
.ro-deck.is-hand .ro-grab { cursor: grabbing; }
.ro-label-ring { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; }
.ro-label-big { font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.ro-label-small { font-family: var(--serif); font-size: 9px; font-style: italic; }
.ro-tiny { fill: #f3e2c4; font-family: var(--mono); font-size: 11px; }
#ro-arm-body { transition: transform .25s ease-out; transform: scale(1.04); filter: drop-shadow(10px 14px 6px rgba(0,0,0,.45)); }
.ro-deck.is-down #ro-arm-body { transform: scale(1); filter: drop-shadow(3px 4px 2px rgba(0,0,0,.5)); }
#ro-auto-knob { transition: cx .2s; }
.ro-readout { position: absolute; left: 1.4rem; top: 1.2rem; display: flex; flex-direction: column; gap: .2rem; pointer-events: none; }
.ro-where { padding: .2rem .6rem; border-radius: 999px; background: rgba(20,14,30,.75); color: #ffd76a; font-family: var(--mono); font-size: .75rem; }
.ro-turns { color: #f3e2c4; font-family: var(--mono); font-size: .75rem; padding-left: .6rem; }
/* the dog */
#ro-head, #ro-ear-l, #ro-ear-r, #ro-tail { transform-box: fill-box; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
#ro-head { transform-origin: 50% 90%; }
#ro-ear-l { transform-origin: 80% 10%; transform: rotate(-12deg); }
#ro-ear-r { transform-origin: 20% 10%; transform: rotate(12deg); }
#ro-dog.is-alert #ro-ear-l { transform: rotate(28deg) translateY(-10px); }
#ro-dog.is-alert #ro-ear-r { transform: rotate(-28deg) translateY(-10px); }
#ro-dog.is-alert #ro-head { transform: translateY(-6px); }
#ro-dog.is-puzzled #ro-head { transform: rotate(-14deg); }
.ro-notes, .ro-q { opacity: 0; transition: opacity .2s; fill: #ffd76a; font-family: var(--mono); font-size: 18px; font-weight: 700; }
#ro-dog.is-alert .ro-notes { opacity: 1; }
#ro-dog.is-puzzled .ro-q { opacity: 1; }
#ro-tail { transform-origin: 0% 100%; }
#ro-dog.is-alert #ro-tail { animation: ro-wag .25s ease-in-out infinite alternate; }
@keyframes ro-wag { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }

/* Cross-section */
.ro-section { margin: .8rem 0 0; }
.ro-cut { display: block; width: 100%; height: auto; border-radius: 10px; }
.ro-cut-label { fill: #d8cbe8; font-family: var(--mono); font-size: 14px; }
.ro-section figcaption { margin-top: .3rem; color: var(--muted); font-size: .78rem; }

/* Controls */
.ro-desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: .8rem 1rem; margin-top: 1rem; }
.ro-group { display: grid; gap: .4rem; align-content: start; }
.ro-speeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ro-speeds .ro-group-label { grid-column: 1 / -1; }
.ro-group-label { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.ro-group button { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .8rem; border: 1.5px solid var(--paper-line); border-radius: 12px; background: #fffaf0; color: var(--ink); text-align: left; cursor: pointer; }
.ro-group strong { font-size: .92rem; }
.ro-group span { color: var(--muted); font-size: .76rem; }
.ro-group button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ro-group button[aria-pressed="true"] span { color: var(--gold); }
.ro-play:disabled, .ro-btn:disabled { opacity: .45; cursor: default; }
.ro-scope { margin-top: 1rem; }
.ro-scope-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.ro-small { padding: .35rem .8rem; font-size: .8rem; }
.ro-spec { display: block; width: 100%; height: 110px; border-radius: 10px; }
.ro-test-note { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.ro-status { margin: 1rem 0 0; padding: .55rem .8rem; border-radius: 8px; background: #fdf0cf; font-size: .88rem; }
.ro-fine { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }

/* Story */
.ro-story > p:not(.eyebrow) { max-width: 80ch; }
.ro-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.2rem; }
.ro-step { padding: 1rem 1.1rem; border: 1px solid var(--paper-line); border-radius: 10px; background: #fffaf0; font-size: .9rem; }
.ro-step h3 { margin: .4rem 0 .3rem; color: var(--ink); font-size: 1.15rem; }
.ro-step p { margin: 0; }
.ro-n { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: .72rem; }
.ro-story a { color: var(--pink-ink); }
.ro-method { max-width: 90ch; margin: 1.75rem 0; color: var(--soft); font-size: .82rem; }
.ro-method a { color: var(--gold); }
.ro-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }

@media (max-width: 1000px) { .ro-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ro-desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ro-speeds { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .ro-steps, .ro-desk { grid-template-columns: minmax(0, 1fr); }
  .ro-stage { padding: .4rem; }
  .ro-readout { left: .7rem; top: .6rem; }
  .ro-cut-label { font-size: 26px; }
  .ro-transport { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #ro-arm-body, #ro-head, #ro-ear-l, #ro-ear-r { transition: none; } #ro-dog.is-alert #ro-tail { animation: none; } }
.ro-grab:focus-visible { outline: none; stroke: #ffd76a; stroke-width: 4; stroke-dasharray: 10 8; }
