/* TOW-NOW! - Repo Rita's tow truck cabinet at Quarter Castle. Its own marquee, Rita's clipboard after every day and the
   board; the rest is cabinet.css. */
.tw .logo{font-size:52px;letter-spacing:.03em;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}
.tw .qca{letter-spacing:.24em}
/* the plan, under the name: Rita's own line */
.plan{margin:3px 0 0;font-family:var(--bg);font-size:10px;letter-spacing:.08em;word-spacing:.18em;color:var(--pink-dk);text-transform:uppercase;white-space:nowrap}
/* the amber light on the cab roof, turning in the marquee */
.bcn{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px}
.bk{position:relative;display:block;width:36px;height:30px;border-radius:18px 18px 6px 6px;background:radial-gradient(circle at 50% 70%,#fff6c0,#ffd400 40%,#ff9a00 75%,#c86a00);
  box-shadow:0 0 0 2px var(--deep),0 0 14px rgba(255,180,0,.9),inset 0 -6px 0 #b8005c}
.bk::after{content:"";position:absolute;left:4px;top:6px;width:9px;height:12px;border-radius:50%;background:rgba(255,255,255,.75)}
@media (prefers-reduced-motion:no-preference){
  .bk::after{animation:bcnTurn 1.1s linear infinite}
  @keyframes bcnTurn{0%{left:4px;opacity:.9}45%{left:23px;opacity:.9}50%{left:23px;opacity:0}95%{left:4px;opacity:0}100%{left:4px;opacity:.9}}
}
.tw .new{width:66px}
@media (min-width:721px) and (max-height:940px){.tw .logo{font-size:40px}.bcn{width:38px;height:38px}.bk{width:30px;height:25px}.bk::after{width:7px;height:10px}}
@media (max-width:720px){
  .tw .logo{font-size:32px}
  .plan{font-size:7.5px;letter-spacing:.04em;word-spacing:.1em}
  .bcn{width:28px;height:28px}.bk{width:24px;height:20px;border-radius:12px 12px 4px 4px;box-shadow:0 0 0 2px var(--deep),0 0 10px rgba(255,180,0,.9),inset 0 -4px 0 #b8005c}.bk::after{top:4px;width:6px;height:8px}
  .tw .new{display:none}
}
@media (max-width:360px){
  .tw .logo{font-size:26px}
  .plan{font-size:6.5px;letter-spacing:.02em;word-spacing:0}
  .bcn{width:20px;height:20px}.bk{width:18px;height:15px}.bk::after{width:5px;height:6px;top:3px}
}
.cab.k1 .bcn{width:26px;height:26px}
.cab.k1 .bk{width:22px;height:18px}
.tw .cab.k1 .logo{font-size:30px}

/* Rita's clipboard after every day: under the cabinet (beside it from 1220 px). Never on the game screen */
/* the floor fixes, round 3: the stamp lands from 2.2x; the card clips it, so a phone's page never slides sideways */
.twpass{flex:1 0 100%;position:relative;overflow-x:clip;display:grid;grid-template-columns:1fr;justify-items:center;gap:5px;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(--pink),0 0 0 6px var(--deep),0 0 22px rgba(255,46,147,.45),5px 7px 0 6px rgba(0,0,0,.35)}
.twpass[hidden]{display:none}
/* the clip at the top of the board */
.twpass::before{content:"";position:absolute;left:50%;top:7px;width:60px;height:12px;margin-left:-30px;border-radius:4px 4px 8px 8px;background:linear-gradient(180deg,#e8e8f0,#9aa0aa);box-shadow:0 1px 2px rgba(0,0,0,.5),inset 0 -2px 0 #6a7080}
.tw-h{width:calc(100% + 32px);margin:0 -16px 4px;padding:4px 0;background:var(--deep);color:var(--pink);font-family:var(--bg);font-weight:400;font-size:15px;letter-spacing:.12em;word-spacing:.3em}
.tw-word{margin:0;font-family:var(--lg);font-size:30px;line-height:1.05;letter-spacing:.03em;color:var(--pink-dk);transform:rotate(-3deg);border:3px solid var(--pink-dk);border-radius:8px;padding:0 10px}
.twpass.lost .tw-word{color:var(--deep);border-color:var(--deep)}
/* whose clipboard it is: her face, YOU, the date, and the cars she towed */
.tw-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;margin-top:4px;text-align:left}
.tw-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(--pink),0 0 0 5px var(--deep)}
.tw-who{margin:0;display:flex;flex-direction:column;gap:3px;min-width:0}
.tw-me{font-family:var(--lg);font-size:19px;line-height:1.05;letter-spacing:.02em;overflow-wrap:break-word}
.tw-tag{font-family:var(--bg);font-size:10px;letter-spacing:.16em;color:#4a4a58}
.tw-lv{font-family:var(--bg);font-size:11px;letter-spacing:.1em;color:var(--pink-dk)}
.tw-res{margin:0;display:flex;flex-direction:column;align-items:center}
.tw-n{font-family:var(--lg);font-weight:400;font-size:40px;line-height:1;color:#c8102e}
.tw-nl{font-family:var(--bg);font-size:10px;letter-spacing:.14em;color:#4a4a58}
/* the clipboard's lines, ruled like the paper */
.tw-clip{width:100%;margin:4px 0 0;padding:0;list-style:none;text-align:left;font-size:13px}
.tw-clip li{display:flex;align-items:center;gap:6px;padding:3px 2px;border-bottom:1px solid #c8cce0}
.tw-clip li span:not(.tw-mdface){flex:1;min-width:0}
.tw-clip b{font-family:var(--bg);font-weight:400;font-size:13px;letter-spacing:.04em;color:var(--deep);white-space:nowrap}
.tw-mdface{flex:none;width:20px;height:24px;border-radius:2px;background:#1a1f71 url(/portraits.png) no-repeat;background-size:160px 120px;image-rendering:pixelated;box-shadow:0 0 0 1px var(--deep)}
.tw-next{margin:2px 0 0;padding:4px 8px;border-radius:6px;background:var(--deep);color:var(--yellow);font-family:var(--bg);font-size:11px;line-height:1.3;letter-spacing:.05em}
.tw-good{margin:0;padding:3px 8px;border-radius:6px;border:2px solid var(--deep);background:var(--yellow);color:var(--deep);font-family:var(--bg);font-size:11px;line-height:1.3;letter-spacing:.05em}
.tw-good[hidden]{display:none}
.tw-card{width:100%;margin:4px 0 0}
.tw-oh{margin:0 0 3px;font-family:var(--bg);font-weight:400;font-size:12px;letter-spacing:.14em;color:var(--pink-dk);cursor:pointer;list-style:none}
.tw-oh::-webkit-details-marker{display:none}
.tw-oh::after{content:" \25BE";letter-spacing:0}
.tw-card:not([open]) .tw-oh::after{content:" \25B8"}
.tw-oh:focus-visible{outline:2px solid var(--deep);outline-offset:2px;border-radius:3px}
.tw-list{width:100%;margin:0;padding:0;list-style:none;text-align:left;font-size:11.5px;line-height:1.3}
.tw-list li{padding:2px 3px;border-radius:3px}
.tw-list li:nth-child(odd){background:rgba(255,46,147,.1)}
.tw-car{font-weight:700}
.tw-how{color:#4a4a58}
.tw-go{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:8px}
.tw-go a,.tw-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)}
.tw-go a:hover,.tw-go button:hover{background:#151a66;color:#fff}
.tw-go .tw-hear{border-color:var(--cyan);color:#fff}
.tw-go .tw-share{border-color:var(--yellow)}
.tw-go .tw-again{border-color:var(--yellow);background:var(--yellow);color:var(--deep);box-shadow:0 0 10px rgba(255,212,0,.45)}
.tw-go .tw-again[hidden]{display:none}
.tw-say{margin:0;min-height:1.3em;font-size:12px;font-weight:700;color:var(--deep)}
.tw-map{margin:0;font-size:12px}
.tw-map a{color:var(--pink-dk);font-weight:700;text-decoration:underline;text-underline-offset:2px;display:inline-block;padding:6px 4px}
@media (prefers-reduced-motion:no-preference){
  .twpass.stamping .tw-word{animation:twStamp .35s cubic-bezier(.2,1.4,.5,1) backwards}
  @keyframes twStamp{0%{transform:rotate(-3deg) scale(2.2);opacity:0}100%{transform:rotate(-3deg) scale(1);opacity:1}}
}
@media (min-width:1220px){
  .twpass{position:absolute;top:var(--cabtop,40px);left:calc(50% + 414px);width:min(250px,calc(50% - 430px));max-width:none;margin:0;padding:28px 12px 12px}
  body:has(.cab.k1) .twpass{left:calc(50% + 224px);width:min(250px,calc(50% - 240px))}
  .tw-h{width:calc(100% + 24px);margin:0 -12px 4px;font-size:13px}
  .tw-word{font-size:22px}
  .tw-top{grid-template-columns:auto minmax(0,1fr);gap:4px 8px}
  .tw-res{grid-column:1 / -1;flex-direction:row;gap:8px;align-items:baseline;justify-content:center}
  .tw-n{font-size:30px}
  .tw-me{font-size:15px}
  .tw-clip{font-size:12px}
  .tw-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-more{border-color:var(--cyan);color:#fff;box-shadow:0 0 12px rgba(0,194,224,.4)}
#floor{scroll-margin-top:12px}

/* the high scores on this machine */
#twboard{margin:0;padding:0;list-style:none;counter-reset:rk}
#twboard 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)}
#twboard li::before{content:counter(rk) ".";width:2.2em;flex:none;text-align:right;color:#9aa2c0;font-size:13px}
#twboard li:nth-child(n+4){color:var(--cyan)}
.twb-ini{width:3.2em;flex:none}
.twb-st{flex:1;min-width:0;font-size:12px;color:#c8cce0;letter-spacing:.1em;white-space:nowrap}
.twb-n{font-size:11px;color:#c8cce0;letter-spacing:.08em;white-space:nowrap}
.twb-sc{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.twb-most{margin:10px 0 0;color:#c8cce0;font-size:14px}
.twb-most b{color:var(--yellow);font-family:var(--bg);font-weight:400;letter-spacing:.04em}
.twb-how{margin:8px 0 0;color:#9aa2c0;font-size:13px;line-height:1.4}
@media (max-width:560px){
  #twboard li{flex-wrap:wrap;gap:2px 8px;font-size:13px}
  .twb-n{order:3;flex:1 0 100%;padding-left:calc(2.2em + 10px)}
}
/* the floor fixes, round 4: the panel's A button glows pink while A does something right now (on Rita's pad with a car on
   the chain, or lined up with a pink one); it pulses, or holds a steady glow with reduced motion */
.tw .bt.ba.cue{box-shadow:0 5px 0 rgba(0,0,0,.55),inset 0 -4px 0 rgba(0,0,0,.25),inset 0 3px 0 rgba(255,255,255,.4),0 0 0 3px #ff2e93,0 0 16px 4px rgba(255,46,147,.75)}
@media (prefers-reduced-motion:no-preference){
  .tw .bt.ba.cue{animation:twCue .5s ease-in-out infinite alternate}
  @keyframes twCue{
    from{box-shadow:0 5px 0 rgba(0,0,0,.55),inset 0 -4px 0 rgba(0,0,0,.25),inset 0 3px 0 rgba(255,255,255,.4),0 0 0 1px rgba(255,46,147,.45),0 0 2px 0 rgba(255,46,147,.2)}
    to{box-shadow:0 5px 0 rgba(0,0,0,.55),inset 0 -4px 0 rgba(0,0,0,.25),inset 0 3px 0 rgba(255,255,255,.4),0 0 0 4px #ff2e93,0 0 18px 6px rgba(255,46,147,.8)}
  }
}
