/* OFF THE ROPES! - the paddle cabinet beside G.L.A.M. SLAM! at Quarter Castle. Its own marquee and the card after the bell; the rest is cabinet.css. */
.rp .logo{font-size:44px;letter-spacing:.02em;color:var(--pink);text-shadow:3px 3px 0 var(--deep),-1px -1px 0 #fff,0 0 14px rgba(255,255,255,.8);white-space:nowrap}
.rp .qca{letter-spacing:.24em}
/* the Golden Token, spinning in the marquee where the home's has Holly */
.tok{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px}
.tk{display:block;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fffbe0,#ffe86a 22%,var(--yellow) 52%,#d89a00 78%,#a86a00);
  box-shadow:0 0 0 2px var(--deep),inset 0 0 0 4px rgba(168,106,0,.55),inset 0 0 0 6px rgba(255,246,160,.6),0 0 14px rgba(255,212,0,.85)}
@media (prefers-reduced-motion:no-preference){
  .tk{animation:tokSpin 1.6s linear infinite}
  @keyframes tokSpin{0%{transform:scaleX(1)}25%{transform:scaleX(.08)}50%{transform:scaleX(1)}75%{transform:scaleX(.08)}100%{transform:scaleX(1)}}
}
.rp .new{width:66px}
@media (min-width:721px) and (max-height:940px){.rp .logo{font-size:36px}.tok{width:38px;height:38px}.tk{width:32px;height:32px}}
@media (max-width:720px){
  .rp .logo{font-size:27px}
  .tok{width:28px;height:28px}.tk{width:24px;height:24px}
  .rp .new{display:none}
}
@media (max-width:360px){
  .rp .logo{font-size:22px}
  .tok{width:20px;height:20px}.tk{width:17px;height:17px}
}
.cab.k1 .tok{width:26px;height:26px}
.cab.k1 .tk{width:22px;height:22px}
.rp .cab.k1 .logo{font-size:27px}

/* the card after the bell: under the cabinet (beside it from 1220 px). Never on the game screen */
.rpass{flex:1 0 100%;position:relative;overflow-x:clip;display:grid;grid-template-columns:1fr;justify-items:center;gap:4px;max-width:420px;margin:2px auto 4px;padding:30px 16px 14px;
  border-radius:12px;background:linear-gradient(180deg,#fffdf4,var(--paper));color:var(--deep);text-align:center;
  box-shadow:0 0 0 3px var(--cyan),0 0 0 6px var(--deep),0 0 22px rgba(0,194,224,.45),5px 7px 0 6px rgba(0,0,0,.35)}
.rpass[hidden]{display:none}
.rpass::before{content:"";position:absolute;left:50%;top:9px;width:38px;height:8px;margin-left:-19px;border-radius:4px;background:var(--ink);box-shadow:inset 0 1px 2px rgba(0,0,0,.8)}
.rp-h{width:calc(100% + 32px);margin:0 -16px 4px;padding:4px 0;background:var(--deep);color:var(--yellow);font-family:var(--bg);font-weight:400;font-size:15px;letter-spacing:.12em;word-spacing:.3em}
/* the floor fixes: whose card it is: the headline (YOU BEAT HER! or SHE BEAT YOU), your lady and hers with the falls between */
.rp-two{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:8px;width:100%;margin-top:4px}
.rp-side{margin:0;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.rp-me,.rp-name{font-family:var(--lg);font-size:18px;line-height:1.05;letter-spacing:.02em;text-align:center;overflow-wrap:break-word}
.rp-tag{font-family:var(--bg);font-size:10px;letter-spacing:.16em;color:#4a4a58}
.rp-lv{font-family:var(--bg);font-size:12px;letter-spacing:.12em;color:var(--pink-dk)}
.rp-face{flex:none;width:60px;height:72px;border-radius:3px;background:#000 url(/portraits2.png) no-repeat;background-size:480px 360px;image-rendering:pixelated;box-shadow:0 0 0 3px var(--cyan),0 0 0 5px var(--deep)}
.rp-face.rp-fy{box-shadow:0 0 0 3px var(--pink),0 0 0 5px var(--deep)}
.rp-res{margin:20px 0 0;display:flex;flex-direction:column;align-items:center;font-family:var(--bg);font-size:14px;letter-spacing:.08em}
.rp-fl{font-size:10px;letter-spacing:.16em;color:#4a4a58}
.rp-falls{font-family:var(--lg);font-weight:400;font-size:36px;letter-spacing:.04em;color:#c8102e}
.rp-word{margin:0;font-family:var(--lg);font-size:30px;line-height:1.05;letter-spacing:.03em;color:var(--pink-dk);transform:rotate(-4deg)}
.rpass.lost .rp-word{color:var(--deep)}
.rp-rally{margin:0;font-family:var(--bg);font-size:12px;letter-spacing:.1em}
.rp-rally b{font-family:var(--lg);font-weight:400;font-size:20px;color:var(--deep)}
.rp-go{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:8px}
.rp-go a,.rp-go button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:5px 8px;border-radius:10px;border:2px solid var(--pink);background:#0a0c3a;color:var(--yellow);
  font-family:var(--bg);font-size:12px;line-height:1.15;letter-spacing:.04em;word-spacing:.15em;text-decoration:none;cursor:pointer;box-shadow:0 0 10px rgba(255,46,147,.35)}
.rp-go a:hover,.rp-go button:hover{background:#151a66;color:#fff}
.rp-go .rp-hear{border-color:var(--cyan);color:#fff}
.rp-go .rp-share{border-color:var(--yellow)}
.rp-go .rp-again{border-color:var(--yellow);background:var(--yellow);color:var(--deep);box-shadow:0 0 10px rgba(255,212,0,.45)}
.rp-go .rp-again[hidden]{display:none}
.rp-say{margin:0;min-height:1.3em;font-size:12px;font-weight:700;color:var(--deep)}
@media (prefers-reduced-motion:no-preference){
  .rpass.stamping .rp-word{animation:stampIn .35s cubic-bezier(.2,1.4,.5,1) both}
  @keyframes stampIn{0%{transform:rotate(-4deg) scale(2.2);opacity:0}100%{transform:rotate(-4deg) scale(1);opacity:1}}
}
@media (min-width:1220px){
  .rpass{position:absolute;top:var(--cabtop,40px);left:calc(50% + 414px);width:min(240px,calc(50% - 430px));max-width:none;margin:0;padding:28px 12px 12px}
  body:has(.cab.k1) .rpass{left:calc(50% + 224px);width:min(240px,calc(50% - 240px))}
  .rp-h{width:calc(100% + 24px);margin:0 -12px 4px;font-size:13px}
  .rp-word{font-size:25px}
  /* beside the cabinet the card is narrow: the two ladies side by side, the falls under them */
  .rp-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"me her" "res res";gap:4px 6px}
  .rp-two>.rp-side:first-child{grid-area:me}
  .rp-two>.rp-side:last-child{grid-area:her}
  .rp-me,.rp-name{font-size:14px}
  .rp-res{grid-area:res;margin-top:2px}
  .rp-falls{font-size:30px}
  .rp-go{grid-template-columns:1fr}
}
.gdoors .gd-home{border-color:var(--yellow);color:#fff;box-shadow:0 0 12px rgba(255,212,0,.4)}
.gdoors .gd-en{border-color:var(--cyan);color:#fff;box-shadow:0 0 12px rgba(0,194,224,.4)}

/* the high scores on this machine */
#rpboard{margin:0;padding:0;list-style:none;counter-reset:rk}
#rpboard li{counter-increment:rk;display:flex;align-items:baseline;gap:10px;padding:3px 0;font-family:var(--bg);font-size:15px;letter-spacing:.04em;color:var(--yellow)}
#rpboard li::before{content:counter(rk) ".";width:2.2em;flex:none;text-align:right;color:#9aa2c0;font-size:13px}
#rpboard li:nth-child(n+4){color:var(--cyan)}
.rpb-ini{width:3.2em;flex:none}
.rpb-who{flex:1;min-width:0}
.rpb-st{font-size:11px;color:#c8cce0;letter-spacing:.1em;white-space:nowrap}
.rpb-sc{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.rpb-none{margin:4px 0 0;color:#c8cce0;font-size:14px}
.rpb-none[hidden]{display:none}
.rpb-rally{margin:10px 0 0;color:#c8cce0;font-size:14px}
.rpb-rally b{color:var(--yellow);font-family:var(--bg);font-weight:400;letter-spacing:.04em}
@media (max-width:560px){
  #rpboard li{flex-wrap:wrap;gap:2px 8px;font-size:13px}
  .rpb-st{order:3;flex:1 0 100%;padding-left:calc(2.2em + 10px)}
}

/* ---------- the floor fixes (Nov 27) ----------
   TOP ROPE reads inside B at every width: two short lines. */
.rp .bt.bb span{width:min-content;line-height:1;text-align:center}
@media (max-width:720px){.rp .bt.bc span{width:min-content;line-height:1;text-align:center;font-size:8px;letter-spacing:.02em}.rp .bt b{font-size:19px}}
@media (max-width:360px){.rp .bt.bc span{font-size:6.5px}}
/* The SLIDE strip (it was DRAG until round 7), beside the stick on phones (ropes.js): a thumb there slides her along her end without covering the ring.
   Its top is the far ropes and its bottom the near ones; the knob shows where she is. Dragging on the screen still works.
   The stick and the buttons give it a little room. Not on wider screens, where the screen itself is big enough to drag on. */
.drag{display:none}
@media (max-width:720px){
  .rp .panel,.rp .cab.k1 .panel{grid-template-columns:auto auto 1fr;grid-template-areas:"drag sys sys" "drag pad abc"}
  .rp .drag{grid-area:drag;align-self:stretch;position:relative;display:block;width:32px;min-height:120px;border-radius:16px;touch-action:none;cursor:ns-resize;
    background:linear-gradient(90deg,#0a0c3a,#1c2070 50%,#0a0c3a);box-shadow:inset 0 0 0 2px #3a40a0,inset 0 3px 8px #000,0 0 0 3px #0a0c3a}
  .rp .drag::before{content:"";position:absolute;left:50%;top:12px;bottom:12px;width:2px;margin-left:-1px;border-radius:1px;background:rgba(200,204,239,.3)}
  .drag-lab{position:absolute;left:50%;top:80%;transform:translate(-50%,-50%) rotate(-90deg);font-family:var(--bg);font-size:9px;letter-spacing:.32em;color:rgba(200,204,239,.55);pointer-events:none;white-space:nowrap}
  .drag-knob{position:absolute;left:50%;top:calc(12px + var(--ky,.5) * (100% - 24px));width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;pointer-events:none;
    background:radial-gradient(circle at 35% 30%,#ff9ccf,var(--pink) 50%,#8a0050);box-shadow:0 3px 6px rgba(0,0,0,.6),0 0 0 2px #12155a}
  .rp .drag.on{box-shadow:inset 0 0 0 2px var(--yellow),inset 0 3px 8px #000,0 0 0 3px #0a0c3a,0 0 12px rgba(255,212,0,.55)}
  .rp .drag.on .drag-knob{box-shadow:0 3px 6px rgba(0,0,0,.6),0 0 0 2px #fff}
  /* fixes round 7: up and down arrows at its ends, and a pulse for the first three serves of Road 1 (steady, reduced) */
  .drag-up,.drag-dn{position:absolute;left:50%;width:0;height:0;margin-left:-6px;border-left:6px solid transparent;border-right:6px solid transparent;pointer-events:none}
  .drag-up{top:-1px;border-bottom:8px solid var(--yellow)}
  .drag-dn{bottom:-1px;border-top:8px solid var(--yellow)}
  .rp .drag.pulse{box-shadow:inset 0 0 0 2px var(--yellow),inset 0 3px 8px #000,0 0 0 3px #0a0c3a,0 0 14px rgba(255,212,0,.7)}
  .rp .drag.pulse .drag-lab{color:var(--yellow)}
  .rp .dpad{width:112px;height:112px}
  .rp .dp{width:37px;height:37px}
  .rp .dp.up,.rp .dp.dn{left:37.5px}.rp .dp.lt,.rp .dp.rt{top:37.5px}
  .rp .stick{width:36px;height:36px;margin:-18px 0 0 -18px}
  .rp .abc{gap:6px}
  .rp .bt{width:54px;height:54px}
}
@media (max-width:720px) and (prefers-reduced-motion:no-preference){
  .rp .drag.pulse{animation:slidePulse 1s ease-in-out infinite}
  @keyframes slidePulse{50%{box-shadow:inset 0 0 0 2px #fff,inset 0 3px 8px #000,0 0 0 3px #0a0c3a,0 0 22px rgba(255,212,0,.95)}}
}
@media (max-width:360px){
  .rp .drag{width:28px}
  .rp .dpad{width:100px;height:100px}
  .rp .dp{width:33px;height:33px}
  .rp .dp.up,.rp .dp.dn{left:33.5px}.rp .dp.lt,.rp .dp.rt{top:33.5px}
  .rp .stick{width:32px;height:32px;margin:-16px 0 0 -16px}
  .rp .bt{width:46px;height:46px}
  .rp .abc{gap:4px}
}
