/* HAIR RAISER! - Hairspray Hannah's cabinet at Quarter Castle. Its own marquee (a pink salon sign with a little tower of
   teased hair), the salon card after every hairdo and the board; the rest is cabinet.css. */
.hr .marquee{background:
    radial-gradient(circle at 7px 5px,#fff0f8 0 1.4px,#ff7ab8 2px,rgba(255,122,184,0) 3.2px) 0 0/14px 10px repeat-x,
    radial-gradient(circle at 7px 5px,#fff0f8 0 1.4px,#ff7ab8 2px,rgba(255,122,184,0) 3.2px) 7px 100%/14px 10px repeat-x,
    radial-gradient(ellipse 80% 130% at 50% 35%,#6a1d7a 0%,#3a1458 48%,#160a2e 100%);
  box-shadow:0 0 0 3px var(--yellow),0 0 0 5px var(--deep),0 0 24px rgba(255,46,147,.6),inset 0 0 18px rgba(255,156,207,.35)}
@media (prefers-reduced-motion:no-preference){
  .hr .marquee{animation:hrChase 1.4s steps(2,end) infinite}
  @keyframes hrChase{from{background-position:0 0,7px 100%,0 0}to{background-position:14px 0,-7px 100%,0 0}}
}
.hr .logo{font-size:52px;letter-spacing:.04em;color:#fff3a8;white-space:nowrap;text-shadow:3px 3px 0 var(--pink-dk),-1px -1px 0 #fff,0 0 16px rgba(255,156,207,.9)}
.hr .qca{letter-spacing:.24em;color:#ffc8e6}
/* the marquee's line, under the name: two short lines, each on one line */
.hr .plan{margin:3px 0 0;font-family:var(--bg);font-size:10px;line-height:1.3;letter-spacing:.06em;word-spacing:.16em;color:#ffd400;text-transform:uppercase}
.hr .plan span{display:block;white-space:nowrap}
/* a little tower of teased hair, where the home's marquee has Holly */
.hrbcn{flex:none;display:flex;align-items:flex-end;justify-content:center;width:46px;height:46px}
.hrtower{position:relative;display:block;width:30px;height:44px}
.hrtower i{position:absolute;left:50%;display:block;height:8px;border-radius:50%;background:radial-gradient(ellipse at 36% 30%,#fffbe8 0 22%,#efe3b8 55%,#c9b98a 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.35)}
.hrtower i:nth-child(1){bottom:0;width:30px;margin-left:-15px}
.hrtower i:nth-child(2){bottom:7px;width:27px;margin-left:-13px}
.hrtower i:nth-child(3){bottom:14px;width:25px;margin-left:-12px}
.hrtower i:nth-child(4){bottom:21px;width:22px;margin-left:-10px}
.hrtower i:nth-child(5){bottom:28px;width:19px;margin-left:-9px}
.hrtower i:nth-child(6){bottom:35px;width:15px;margin-left:-7px;box-shadow:0 1px 0 rgba(0,0,0,.35),0 0 8px rgba(255,156,207,.9)}
@media (prefers-reduced-motion:no-preference){
  .hrtower{transform-origin:50% 100%;animation:hrSway 3.2s ease-in-out infinite}
  @keyframes hrSway{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}
}
.hr .new{width:58px}
@media (min-width:721px) and (max-height:940px){.hr .logo{font-size:40px}.hr .plan{font-size:9px}.hrbcn{width:40px;height:40px}.hrtower{scale:.84}}
@media (max-width:720px){
  .hr .logo{font-size:31px}
  .hr .plan{font-size:7.5px;letter-spacing:.03em;word-spacing:.08em}
  .hrbcn{width:28px;height:32px}.hrtower{width:30px;height:44px;margin-bottom:-6px;scale:.68}
  .hr .new{display:none}
}
@media (max-width:360px){
  .hr .logo{font-size:25px}
  .hr .plan{font-size:6.5px;letter-spacing:.01em;word-spacing:0}
  .hrbcn{width:20px;height:26px}.hrtower{scale:.5;margin-bottom:-11px}
}
.cab.k1 .hrbcn{width:26px;height:30px}
.cab.k1 .hrtower{scale:.62;margin-bottom:-8px}
.hr .cab.k1 .logo{font-size:29px}

/* Salon Fabrizio's card after every hairdo: under the cabinet (beside it from 1220 px). Never on the game screen; the card
   clips its stamp, so a phone's page never slides sideways */
.hrpass{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:14px 16px 14px;
  border-radius:12px;background:linear-gradient(180deg,#fff7fb,#fbe8f2);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)}
.hrpass[hidden]{display:none}
.hr-h{width:calc(100% + 32px);margin:-14px -16px 4px;padding:5px 0 4px;border-radius:12px 12px 0 0;background:#3a1458;color:#ff9ccf;font-family:var(--bg);font-weight:400;font-size:15px;letter-spacing:.12em;word-spacing:.3em}
.hr-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}
.hrpass.lost .hr-word{color:var(--deep);border-color:var(--deep)}
.hr-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;margin-top:4px;text-align:left}
.hr-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)}
.hr-who{margin:0;display:flex;flex-direction:column;gap:3px;min-width:0}
.hr-me{font-family:var(--lg);font-size:19px;line-height:1.05;letter-spacing:.02em;overflow-wrap:break-word}
.hr-tag{font-family:var(--bg);font-size:11px;letter-spacing:.1em;color:var(--pink-dk)}
.hr-togo{font-family:var(--bg);font-size:11px;letter-spacing:.06em;color:var(--deep)}
.hr-togo[hidden]{display:none}
.hr-res{margin:0;display:flex;flex-direction:column;align-items:center}
.hr-n{font-family:var(--lg);font-weight:400;font-size:40px;line-height:1;color:#c8102e}
.hr-nl{font-family:var(--bg);font-size:10px;letter-spacing:.14em;color:#4a4a58}
.hr-clip{width:100%;margin:4px 0 0;padding:0;list-style:none;text-align:left;font-size:13px}
.hr-clip li{display:flex;align-items:center;gap:6px;padding:3px 2px;border-bottom:1px solid #e8c8d8}
.hr-clip li span{flex:1;min-width:0}
.hr-clip b{font-family:var(--bg);font-weight:400;font-size:13px;letter-spacing:.04em;color:var(--deep);white-space:nowrap}
.hr-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}
.hr-quote{margin:2px 0 0;font:italic 700 14px/1.3 var(--ar);color:#3a1458}
.hr-sig{margin:0;font-size:12px;color:#4a4a58}
.hr-go{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:8px}
.hr-go a,.hr-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)}
.hr-go a:hover,.hr-go button:hover{background:#151a66;color:#fff}
.hr-go .hr-hear{border-color:var(--cyan);color:#fff}
.hr-go .hr-share{border-color:var(--yellow)}
.hr-go .hr-again{border-color:var(--yellow);background:var(--yellow);color:var(--deep);box-shadow:0 0 10px rgba(255,212,0,.45)}
.hr-go .hr-again[hidden]{display:none}
.hr-said{margin:0;min-height:1.3em;font-size:12px;font-weight:700;color:var(--deep)}
@media (prefers-reduced-motion:no-preference){
  .hrpass.stamping .hr-word{animation:hrStamp .35s cubic-bezier(.2,1.4,.5,1) backwards}
  @keyframes hrStamp{0%{transform:rotate(-3deg) scale(2.2);opacity:0}100%{transform:rotate(-3deg) scale(1);opacity:1}}
}
@media (min-width:1220px){
  .hrpass{position:absolute;top:var(--cabtop,40px);left:calc(50% + 414px);width:min(250px,calc(50% - 430px));max-width:none;margin:0;padding:12px 12px 12px}
  body:has(.cab.k1) .hrpass{left:calc(50% + 224px);width:min(250px,calc(50% - 240px))}
  .hr-h{width:calc(100% + 24px);margin:-12px -12px 4px;font-size:13px}
  .hr-word{font-size:22px}
  .hr-top{grid-template-columns:auto minmax(0,1fr);gap:4px 8px}
  .hr-res{grid-column:1 / -1;flex-direction:row;gap:8px;align-items:baseline;justify-content:center}
  .hr-n{font-size:30px}
  .hr-me{font-size:15px}
  .hr-clip{font-size:12px}
  .hr-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 */
#hrboard{margin:0;padding:0;list-style:none;counter-reset:rk}
#hrboard 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)}
#hrboard li::before{content:counter(rk) ".";width:2.2em;flex:none;text-align:right;color:#9aa2c0;font-size:13px}
#hrboard li:nth-child(n+4){color:var(--cyan)}
.hrb-ini{width:3.2em;flex:none}
.hrb-st{flex:1;min-width:0;font-size:12px;color:#c8cce0;letter-spacing:.1em;white-space:nowrap}
.hrb-sc{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.hrb-most{margin:10px 0 0;color:#c8cce0;font-size:14px}
.hrb-most b{color:var(--yellow);font-family:var(--bg);font-weight:400;letter-spacing:.04em}
.hrb-how{margin:8px 0 0;color:#9aa2c0;font-size:13px;line-height:1.4}
@media (max-width:560px){#hrboard li{flex-wrap:wrap;gap:2px 8px;font-size:13px}}
