/* Pages for players outside the game (privacy policy, contact): same look as the home page */
:root { --sky: #7fd0ff; --sky-2: #c8ecff; --navy: #0b2f55; --ketchup: #e5372b; --mustard: #ffc928; --paper: #ffffff; --soft: #35597d; --line: #c9dcec; --field: #f2f8fd; --ok: #1e7a3c;
  --display: 'Fredoka', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif; --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* elements with their own display (the form is a grid) must still hide */
html { background: var(--sky); }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, var(--sky) 0, var(--sky-2) 520px, var(--sky-2)); color: var(--navy); font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 28px; }
/* the top bar is the home page's: pinned to the top, frosted sky band, same links (they open the home page's sections) */
header.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top, 0px)) 0 12px;
  position: sticky; top: 0; z-index: 5; background: rgba(127,208,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 100vmax rgba(127,208,255,.86), 0 3px 0 rgba(11,47,85,.14); clip-path: inset(0 -100vmax -3px); }
header.top nav { display: flex; gap: clamp(8px, 3vw, 18px); font-size: clamp(13px, 3.7vw, 17px); white-space: nowrap; font-weight: 800; }
header.top nav a { padding: 8px 0; color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; }
header.top nav a:hover { border-color: var(--ketchup); }
.brand { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 4vw, 20px); white-space: nowrap; color: var(--paper); background: var(--ketchup); padding: 6px clamp(9px, 2.6vw, 14px); border-radius: 12px; transform: rotate(-2deg); box-shadow: 0 4px 0 #9f1f17; text-decoration: none; }
main.panel { width: 100%; max-width: 820px; align-self: center; }
footer { width: 100%; max-width: 820px; align-self: center; }
.panel { background: var(--paper); border: 4px solid var(--navy); border-radius: 26px; box-shadow: 10px 10px 0 var(--navy); padding: clamp(20px, 4.5vw, 40px); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 7vw, 52px); line-height: 1.02; margin: 0 0 8px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4.4vw, 27px); line-height: 1.15; margin: 30px 0 6px; }
p, ul { margin: 8px 0; } ul { padding-left: 1.3em; } li { margin: 4px 0; }
.lede { font-size: clamp(18px, 2.6vw, 20px); font-weight: 700; color: var(--soft); }
.note { color: var(--soft); font-size: 15px; }
a { color: var(--navy); font-weight: 800; text-decoration-color: var(--ketchup); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.short { background: var(--field); border: 2px solid var(--line); border-radius: 18px; padding: 14px 20px; margin: 18px 0 4px; }
.short ul { margin: 4px 0; }
code { font-size: .9em; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }   /* minmax(0, …): a wide child (the captcha) must not widen the form */
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea { font: inherit; font-weight: 600; color: var(--navy); background: var(--field); border: 3px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); background: var(--paper); }
textarea { min-height: 170px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.rc { min-height: 78px; min-width: 0; }   /* the reCAPTCHA box is 304 × 78 px; contact.html scales it down to the width available */
.rc > div { transform-origin: 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--paper); background: var(--ketchup); border: 0; padding: 13px 30px; border-radius: 18px; box-shadow: 0 7px 0 #9f1f17; cursor: pointer; justify-self: start; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(3px); box-shadow: 0 4px 0 #9f1f17; } .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.status { font-weight: 800; min-height: 1.6em; margin: 0; } .status.err { color: #b3261e; } .status.ok { color: var(--ok); }
.bad { border-color: #b3261e !important; background: #fdf1f0 !important; }
.rc.bad { outline: 3px solid #b3261e; outline-offset: 3px; border-radius: 4px; background: none !important; }
.thanks { text-align: center; padding: 26px 0 8px; } .thanks b { display: block; font-family: var(--display); font-size: 30px; margin-bottom: 6px; } .thanks i { font-style: normal; font-size: 54px; }
footer { font-weight: 800; font-size: 14px; display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; text-align: center; background: rgba(255,255,255,.7); border-radius: 16px; padding: 14px 18px; }
footer a { font-weight: 800; }
@media (max-width: 760px) { .panel { box-shadow: 6px 6px 0 var(--navy); } }
/* Leaderboards (leaderboards.html): wide boards with big tables */
main.lb { width: 100%; max-width: 1100px; align-self: center; display: flex; flex-direction: column; gap: 40px; }
.lbHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.lbHead h1 { color: var(--navy); } .lbHead .lede { margin: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; background: var(--paper); border: 3px solid var(--navy); border-radius: 999px; padding: 6px 14px; margin: 0; }
.live i { width: 11px; height: 11px; border-radius: 50%; background: #20b455; box-shadow: 0 0 0 0 rgba(32,180,85,.6); animation: pulse 1.8s infinite; }
.live.off i { background: #b3261e; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(32,180,85,0); } 100% { box-shadow: 0 0 0 0 rgba(32,180,85,0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(255,255,255,.75); border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px; font-weight: 700; }
.chip b { font-family: var(--display); font-size: 24px; margin-right: 4px; }
.board { padding: clamp(16px, 3.4vw, 30px); }
.boardHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.boardHead h2 { margin: 0; }
.badge { font-family: var(--display); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 5px 14px; border: 3px solid var(--navy); white-space: nowrap; }
.badge.run { background: #20b455; color: var(--paper); } .badge.wait { background: var(--mustard); } .badge.end { background: var(--navy); color: var(--paper); } .badge.idle { background: var(--field); color: var(--soft); }
.info { margin: 10px 0 0; color: var(--soft); font-weight: 700; } .info b { color: var(--navy); font-size: 1.15em; }
.tw { overflow-x: auto; margin-top: 14px; -webkit-overflow-scrolling: touch; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: clamp(15px, 2.2vw, 19px); }
.board th { text-align: left; font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); padding: 0 12px 2px; white-space: nowrap; }
.board td { background: var(--field); padding: 12px; white-space: nowrap; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.board td:first-child { border-left: 2px solid var(--line); border-radius: 14px 0 0 14px; } .board td:last-child { border-right: 2px solid var(--line); border-radius: 0 14px 14px 0; }
.board .n { text-align: right; } .board td.rk { text-align: center; font-family: var(--display); font-weight: 700; width: 3em; font-size: 1.15em; }
.board td.pl { font-weight: 800; font-size: 1.1em; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.board td.big { font-family: var(--display); font-weight: 700; font-size: 1.3em; }
.board tr.top1 td { background: #fff4c7; border-color: #f2c94c; } .board tr.top2 td { background: #eef2f6; } .board tr.top3 td { background: #fbeadf; }
.board tr.dim td { opacity: .62; }
.stars { color: #c9d6e3; letter-spacing: 1px; } .stars b { color: var(--ketchup); font-weight: 400; } .clean { color: var(--ok); font-weight: 800; letter-spacing: 0; }
.st { display: inline-block; border-radius: 10px; padding: 3px 10px; font-weight: 800; font-size: .9em; background: var(--paper); border: 2px solid var(--line); }
.st-alive { border-color: #20b455; color: #157a3a; } .st-win { background: var(--mustard); border-color: #c99a00; } .st-out { color: #8a3b33; } .st-heist, .st-down { border-color: var(--ketchup); color: #b3261e; } .st-driving { border-color: #4a8fd4; }
.tag { font-size: 12px; font-weight: 800; background: var(--mustard); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.prof { white-space: nowrap; }
.empty { margin: 16px 0 4px; font-weight: 700; color: var(--soft); }
@media (max-width: 640px) { .hide-s { display: none; } .board td { padding: 10px 8px; } .board th { padding: 0 8px 2px; } }
/* boards never get wider than the screen (their tables scroll) */
main.lb, .board, .tw { min-width: 0; max-width: 100%; }
#brs { display: flex; flex-direction: column; gap: 40px; } #brs:empty { display: none; }
.lbHead + .chips { margin-top: -22px; }   /* the count chips stay close to the title; the boards below are 40 px apart */
