/* 555-GLAM - the switchboard cabinet beside G.L.A.M. SLAM! at Quarter Castle. Its own marquee, the card after a game and
   the TAKE THIS SHIFT card; the rest is cabinet.css. */
.sb .logo{font-size:60px;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}
.sb .qca{letter-spacing:.24em}
/* a red desk phone where the home's marquee has Holly, its handset jumping on the bell */
.phone{position:relative;flex:none;width:58px;height:46px;display:flex;align-items:center;justify-content:center}
.ph{display:block;width:48px;height:40px;filter:drop-shadow(0 0 6px rgba(228,0,43,.55))}
.ph-base{fill:#c8102e;stroke:var(--deep);stroke-width:1.5}
.ph-hs{fill:#e4002b;stroke:var(--deep);stroke-width:1.5}
.rg{position:absolute;top:4px;width:8px;height:14px;border:2px solid var(--deep);border-left:0;border-top-color:transparent;border-bottom-color:transparent;border-radius:0 50% 50% 0}
.rg1{right:-4px}
.rg2{left:-4px;transform:scaleX(-1)}
@media (prefers-reduced-motion:no-preference){
  .ph-hs{animation:phJump 1.6s steps(1,end) infinite;transform-origin:24px 9px}
  @keyframes phJump{0%,40%{transform:translateY(0)}5%,15%,25%,35%{transform:translateY(-2px) rotate(-3deg)}10%,20%,30%{transform:translateY(-2px) rotate(3deg)}}
  .rg{animation:rgBlink 1.6s steps(1,end) infinite}
  @keyframes rgBlink{0%,40%{opacity:1}41%,100%{opacity:0}}
}
.sb .new{width:66px}
@media (min-width:721px) and (max-height:940px){.sb .logo{font-size:48px}.phone{width:48px;height:40px}.ph{width:40px;height:34px}}
@media (max-width:720px){
  .sb .logo{font-size:38px}
  .phone{width:36px;height:30px}.ph{width:32px;height:27px}
  .rg{top:1px;width:6px;height:10px}
  .sb .new{display:none}
}
@media (max-width:360px){
  .sb .logo{font-size:30px}
  .phone{width:28px;height:24px}.ph{width:26px;height:22px}
  .rg{display:none}
}
.cab.k1 .phone{width:36px;height:30px}
.cab.k1 .ph{width:32px;height:27px}
.sb .cab.k1 .logo{font-size:38px}

/* HANG UP reads inside C at every width: two short lines */
.sb .bt.bc span{width:min-content;line-height:1;text-align:center}
@media (max-width:720px){.sb .bt.ba span{font-size:7px;letter-spacing:.02em}}
@media (max-width:360px){.sb .bt.ba span,.sb .bt.bc span{font-size:6.5px;letter-spacing:0}}

/* the card after a game: the lady you put through fastest, her doors, SHARE IT and AGAIN; under the cabinet (beside it
   from 1220 px). Never on the game screen */
.sbpass{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,#fff4f7,#ffd9e4);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)}
.sbpass[hidden]{display:none}
.sbpass::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)}
.sb-h{width:calc(100% + 32px);margin:0 -16px 4px;padding:4px 0;background:#c8102e;color:#fff;font-family:var(--bg);font-weight:400;font-size:15px;letter-spacing:.12em;word-spacing:.3em}
.sb-word{margin:0;font-family:var(--lg);font-size:28px;line-height:1.05;letter-spacing:.03em;color:var(--pink-dk);transform:rotate(-3deg)}
.sb-who{display:flex;align-items:center;gap:12px;width:100%;margin-top:4px;text-align:left}
.sb-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)}
.sb-face[hidden]{display:none}
.sb-txt{margin:0;display:flex;flex-direction:column;gap:3px;min-width:0}
.sb-name{font-family:var(--lg);font-size:19px;line-height:1.05;letter-spacing:.02em;overflow-wrap:break-word}
.sb-secs{font-family:var(--bg);font-size:11px;letter-spacing:.08em;color:#c8102e}
.sb-said{font:700 13px/1.3 var(--ar);color:#3a3440}
.sbpass.none .sb-who{justify-content:center;text-align:center}
.sb-tally{margin:2px 0 0;font-family:var(--bg);font-size:12px;letter-spacing:.1em}
.sb-tally b{font-family:var(--lg);font-weight:400;font-size:20px;color:var(--deep)}
.sb-go{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:8px}
.sb-go a,.sb-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)}
.sb-go a[hidden],.sb-go button[hidden]{display:none}
.sb-go a:hover,.sb-go button:hover{background:#151a66;color:#fff}
.sb-go .sb-hear{border-color:var(--cyan);color:#fff}
.sb-go .sb-share{border-color:var(--yellow)}
.sb-go .sb-again{border-color:var(--yellow);background:var(--yellow);color:var(--deep);box-shadow:0 0 10px rgba(255,212,0,.45)}
.sbpass.none .sb-again{grid-column:1 / -1}
.sb-say{margin:0;min-height:1.3em;font-size:12px;font-weight:700;color:var(--deep)}
.sb-call{margin:0;font:400 12px/1.35 var(--ar);color:#4a4a58}
.sb-call a{font-weight:900;color:#c8102e;text-underline-offset:2px}
.sb-call a:hover{color:var(--deep)}
@media (prefers-reduced-motion:no-preference){
  .sbpass.stamping .sb-word{animation:sbStamp .35s cubic-bezier(.2,1.4,.5,1) both}
  @keyframes sbStamp{0%{transform:rotate(-3deg) scale(2.2);opacity:0}100%{transform:rotate(-3deg) scale(1);opacity:1}}
}
@media (min-width:1220px){
  .sbpass{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) .sbpass{left:calc(50% + 224px);width:min(240px,calc(50% - 240px))}
  .sb-h{width:calc(100% + 24px);margin:0 -12px 4px;font-size:13px}
  .sb-word{font-size:23px}
  .sb-who{flex-direction:column;text-align:center}
  .sb-name{font-size:16px}
  .sb-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)}

/* TAKE THIS SHIFT: a shared shift's card (the counter's card, as SHE'S WAITING is): the date and the target, and what
   the friend who shared it did */
.sb .tonight.waiting .tn-a{font-size:18px;line-height:22px}
.sb .tonight.waiting .tn-b{display:block;font:700 12.5px/22px var(--ar);letter-spacing:.02em;color:#c8102e}
.sb .tn-faces[hidden],.sb .tn-face[hidden]{display:none}
@media (min-width:1220px){.sb .tonight.waiting .tn-a{font-size:17px;line-height:22px}.sb .tonight.waiting .tn-b{line-height:17px;margin-top:3px}}

/* the high scores on this machine */
#sbboard{margin:0;padding:0;list-style:none;counter-reset:rk}
#sbboard 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)}
#sbboard li::before{content:counter(rk) ".";width:2.2em;flex:none;text-align:right;color:#9aa2c0;font-size:13px}
#sbboard li:nth-child(n+4){color:var(--cyan)}
.sbb-ini{width:3.2em;flex:none}
.sbb-n{flex:1;min-width:0;font-size:12px;color:#fff;letter-spacing:.06em}
.sbb-st{font-size:11px;color:#c8cce0;letter-spacing:.1em;white-space:nowrap}
.sbb-sc{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.sbb-fast{margin:10px 0 0;color:#c8cce0;font-size:14px}
.sbb-fast b{color:var(--yellow);font-family:var(--bg);font-weight:400;letter-spacing:.04em}
@media (max-width:560px){
  #sbboard li{flex-wrap:wrap;gap:2px 8px;font-size:13px}
  .sbb-st{order:3;flex:1 0 100%;padding-left:calc(2.2em + 10px)}
}
