/* CARRITO RAMPAGE (coco.html only, after style.css): the Playas del Coco look over the shared styles. Sunset coral,
   sea teal and sand instead of E-Bike Rampage's red and night. The shared colour variables (--red, --yellow, --paper)
   are re-pointed here, so the HUD, the banners and the menus follow without copies of their rules. */
:root{--red:#ef4f36;--yellow:#ffd23f;--paper:#fff5e1;--teal:#13a39a;--sand:#f7dfae;--sea:#0b3440;--maple:#d52b1e}
html,body{background:#0b2730}
.screen{background:linear-gradient(180deg,rgba(8,36,46,.86) 0%,rgba(12,30,40,.84) 55%,rgba(48,18,30,.84) 100%)}

/* title: CARRITO in sand on a teal shadow, RAMPAGE in yellow on coral, the town as a sand sticker under it */
#title h1{color:var(--sand);text-shadow:10px 10px 0 var(--teal)}
#title h1 span{color:var(--yellow);text-shadow:10px 10px 0 var(--red)}
#title .subtitle{margin:16px 0 0;padding:5px 18px 7px;font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:28px;line-height:1.1;color:var(--sea);background:var(--sand);border:3px solid #000;box-shadow:5px 5px 0 var(--red);transform:rotate(-2deg);letter-spacing:.3px}
#title .tag{margin:18px 0 20px}
@media (min-height:521px) and (max-height:900px) and (min-width:421px){
  #title h1{font-size:min(14vw,13.5vh,130px)}
  #title .subtitle{font-size:21px;margin:8px 0 0;padding:3px 14px 5px}
  #title .tag{margin:10px 0 8px}
}
@media (max-height:520px){
  #title h1{text-shadow:6px 6px 0 var(--teal)}
  #title h1 span{text-shadow:6px 6px 0 var(--red)}
  #title .subtitle{font-size:15px;margin:6px 0 0;padding:2px 10px 3px;border-width:2px;box-shadow:3px 3px 0 var(--red)}
  #title .tag{margin:8px 0 4px}
}
@media (orientation:portrait) and (max-width:420px){
  #title h1{text-shadow:7px 7px 0 var(--teal)}
  #title h1 span{text-shadow:7px 7px 0 var(--red)}
  #title .subtitle{font-size:21px;margin:12px 0 0}
  #title .tag{margin:12px 0}
}
@media (orientation:portrait) and (max-width:359px){
  #title .subtitle{font-size:18px;margin:10px 0 0;padding:3px 12px 5px}
  #title .tag{margin:10px 0}
}
/* a short phone (320 x 568): the radio's RADIO / DJ toggles add a row, so the title tightens up to fit */
@media (orientation:portrait) and (max-width:420px) and (max-height:600px){
  #title{padding-top:8px;padding-bottom:8px}
  #title .presents{margin:0 0 4px}
  #title .presents img{width:42px}
  #title .subtitle{margin:6px 0 0}
  #title .tag{margin:6px 0}
  #title .btns{margin:6px 0}
  #title .best{margin:4px 0}
}

/* buttons and toggles */
button.toggle.dense{background:#0d6d67;color:var(--yellow)}
#loadbar .lb-track{background:#0d3a40}
#loadbar .lb-fill::after{background:repeating-linear-gradient(-45deg,transparent 0 9px,rgba(239,79,54,.55) 9px 18px)}

/* data credits: the short line, one tap opens the full attribution (PLAN.md 2.2) */
#title .credit{max-width:min(680px,92vw)}
#title details.credit summary{cursor:pointer;list-style:none}
#title details.credit summary::-webkit-details-marker{display:none}
#title details.credit .credit-more{color:var(--sand);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
#title details.credit[open] .credit-more{display:none}
#title details.credit p{margin:6px auto 0;font-size:11px;line-height:1.45;color:#ccc;text-align:left;max-width:640px;background:rgba(0,0,0,.35);border:2px solid #000;padding:8px 10px}
@media (max-height:520px){#title details.credit p{font-size:10px}}

/* garage and game over; on small phones the game-over screen scrolls rather than clips (its stats can run to six
   lines at 320 px), with a one-line TIME'S UP */
.item{background:#10282e}
.item.owned{border-color:#7CFC00}
#over{justify-content:safe center;overflow-y:auto}
@media (orientation:portrait) and (max-width:420px){#over h2{font-size:48px;margin:0 0 8px}}
@media (orientation:portrait) and (max-height:640px){#over h2{font-size:42px;margin:0 0 6px}#over-stats{font-size:17px;line-height:1.5}#over .btns{margin:8px 0;gap:10px}}

/* the CANADIANS' jackpot: maple red and white instead of the BUTT SISTER's pink */
#banner.jackpot{color:#fff;text-shadow:6px 6px 0 var(--maple)}
#banner.jackpot .sub{color:#fff;text-shadow:3px 3px 0 var(--maple)}
.popup.jackpot{text-shadow:4px 4px 0 var(--maple)}
.popup.jackpot b{color:#fff}
/* while the callout holds, the Canadians' points popup sits centred under its subhead (at the kill, just ahead of the
   chase camera, it rose into the subhead and hid the user's line: phase 2 review). The popup's own per-frame
   position is inline (scoring.js), so this pin needs !important; from the banner's centre (top 32 %, or 27 % on a
   short touch screen) past its lower half */
#banner.jackpot.show ~ #popups .popup.jackpot{translate:50vw calc(32vh + 96px)!important;transform:translate(-50%,0)}
body.touch #banner.jackpot.show ~ #popups .popup.jackpot{translate:50vw calc(32vh + 72px)!important}
@media (max-height:500px){body.touch #banner.jackpot.show ~ #popups .popup.jackpot{translate:50vw calc(27vh + 50px)!important;font-size:28px}body.touch #banner.jackpot.show ~ #popups .popup.jackpot small{font-size:13px}}   /* (smaller: it ends above the weapon row) */
@media (max-height:340px){body.touch #banner.jackpot.show ~ #popups .popup.jackpot{visibility:hidden}}   /* (568 x 320: no room above the weapon row; the points are in the score) */
