/* The drivers' page of a series (S60). Dark, large type, little text: a driver sees it once and must get through alone. */
:root { --ground: #0B0E12; --deep: #11161D; --raised: #1A2028; --line: #2A323D; --text: #F2F4F6; --muted: #9AA3AD; --green: #00FF18; --yellow: #FFD21A; --red: #FF4D4D; --serie: #00FF18; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.45 "Segoe UI", system-ui, sans-serif; }
main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
h1 { font-size: 30px; margin: 0; line-height: 1.15; }
/* every caption is the same line: a heading over tiles and the caption of a field, so the rows of two columns stand in line */
h2, .cap { font-size: 13px; line-height: 18px; letter-spacing: 1.6px; color: var(--muted); margin: 24px 0 10px; font-weight: 600; text-transform: uppercase; }
/* the hint stands right behind its caption, at the field it belongs to */
.cap { display: flex; justify-content: flex-start; align-items: baseline; gap: 10px; }
.cap label { margin: 0; font: inherit; color: inherit; }
.cap .muted, .cap button.link { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.head .bar { width: 6px; align-self: stretch; min-height: 44px; border-radius: 3px; background: var(--serie); }
.head .who { margin-left: auto; text-align: right; font-size: 14px; color: var(--muted); }
.head .who b { color: var(--text); display: block; font-size: 16px; }
button { font: inherit; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; cursor: pointer; }
button:hover { border-color: var(--muted); }
button:disabled { opacity: .45; cursor: default; }
button.main { background: var(--text); color: var(--ground); border-color: var(--text); font-weight: 700; font-size: 19px; padding: 14px 26px; }
button.discord { background: #5865F2; border-color: #5865F2; color: #fff; font-weight: 700; font-size: 19px; padding: 14px 26px; }
button.link { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 14px; }
button.danger { color: var(--red); }
.centre { text-align: center; padding: 30px 0; }
.count { font-size: 64px; font-weight: 700; letter-spacing: 2px; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 0; } h1 { font-size: 24px; } .count { font-size: 44px; } }
input[type=text], input[type=number] { width: 100%; height: 48px; font: inherit; font-size: 19px; color: var(--text); background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; display: block; }
input:focus { outline: none; border-color: var(--text); }
/* what is missing is red where it is: the field's frame, its caption, the line of the tick */
input.wrong, input.wrong:focus { border-color: var(--red); }
.cap.wrong label, h2.wrong, .check.wrong { color: var(--red); }
.check.wrong input { outline: 2px solid var(--red); outline-offset: 1px; }
.cap .bad { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; white-space: nowrap; }
input::placeholder { color: var(--muted); opacity: .55; letter-spacing: inherit; font-weight: 400; }
input.short { width: 190px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
input.number { width: 130px; font-weight: 700; }
.row { align-items: flex-end; }
.row.mid { align-items: center; }
.says { height: 48px; display: flex; align-items: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 150px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
/* a tile is as high as a field (48 px): name at the left, what is free at the right, on one line */
.tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; text-align: left; padding: 0 14px; border-radius: 8px; background: var(--deep); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.tile.class::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--muted)); }
.tile.class { padding-left: 18px; }
.tile.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--raised); }
.good { color: var(--green); }
.warn { color: var(--yellow); }
.bad { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 6px; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.foot { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.card { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.pass { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.plate { min-width: 86px; padding: 8px 14px; border-radius: 8px; background: var(--serie); color: #0B0E12; font-size: 40px; font-weight: 800; text-align: center; }
.pass .name { font-size: 26px; font-weight: 700; line-height: 1.2; }
.state { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.photo { width: 150px; height: 150px; border-radius: 10px; background: var(--raised); border: 1px dashed var(--line); object-fit: cover; display: block; }
.races { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 18px; font-size: 16px; }
.hint { background: var(--raised); border-radius: 8px; padding: 10px 14px; font-size: 15px; margin-top: 8px; }
.hide { display: none; }
