/* v0.9.37 (r19): the competition update. */

/* garage: the shop opens at once; the car rolls out in the studio a moment later */
body.g-load .screen.shop::after { content: "Rolling your car out"; position: fixed; z-index: 3; top: 50%; left: calc(var(--side-w, 40vw) + (100vw - var(--side-w, 40vw)) / 2); transform: translate(-50%, -50%); padding: 54px 22px 16px; border-radius: 16px; background: rgba(10, 13, 19, 0.72); border: 1px solid rgba(255, 204, 0, 0.35); color: #fff; font: 800 14px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
body.g-load .screen.shop::before { content: ""; position: fixed; z-index: 4; top: calc(50% - 22px); left: calc(var(--side-w, 40vw) + (100vw - var(--side-w, 40vw)) / 2); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(255, 204, 0, 0.25); border-top-color: #ffcc00; animation: g19-spin .8s linear infinite; pointer-events: none; }
@keyframes g19-spin { to { transform: rotate(360deg); } }

/* ================= names: style + badge + tap for the driver card ================= */
.nm19 { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; vertical-align: middle; font-weight: 800; }
.nm19 > i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; padding: 0 1px; }
.nm19[data-pf] { cursor: pointer; border-radius: 4px; }
.nm19[data-pf]:hover > i, .nm19[data-pf]:focus-visible > i { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.nm19[data-pf]:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.bd19 { width: 1.05em; height: 1.05em; flex: none; }
.nm19.big { font: 800 clamp(20px, 3vh, 28px)/1.15 var(--f-display); letter-spacing: 0.03em; }
/* common: solid colours */
.ns-ice > i, .tb-name.ns-ice { color: #7dd3fc; }
.ns-ember > i, .tb-name.ns-ember { color: #fb923c; }
.ns-lime > i, .tb-name.ns-lime { color: #a3e635; }
.ns-rose > i, .tb-name.ns-rose { color: #fb7185; }
.ns-pit > i, .tb-name.ns-pit { color: #fcd34d; text-shadow: 0 1px 0 #7c2d12; }
/* rare: gradients; epic and up: moving */
:is(.ns-sunset, .ns-ocean, .ns-toxic, .ns-candy, .ns-neon, .ns-chrome, .ns-inferno, .ns-duel, .ns-gold, .ns-aurora, .ns-galaxy, .ns-ace, .ns-plasma, .ns-prism, .ns-champ) > i,
.tb-name:is(.ns-sunset, .ns-ocean, .ns-toxic, .ns-candy, .ns-neon, .ns-chrome, .ns-inferno, .ns-duel, .ns-gold, .ns-aurora, .ns-galaxy, .ns-ace, .ns-plasma, .ns-prism, .ns-champ) { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; background-size: 220% 100%; }
.ns-sunset > i, .tb-name.ns-sunset { background-image: linear-gradient(90deg, #fb923c, #f43f5e, #ec4899); background-size: 100% 100%; }
.ns-ocean > i, .tb-name.ns-ocean { background-image: linear-gradient(90deg, #22d3ee, #3b82f6, #818cf8); background-size: 100% 100%; }
.ns-toxic > i, .tb-name.ns-toxic { background-image: linear-gradient(90deg, #d9f99d, #84cc16, #22c55e); background-size: 100% 100%; }
.ns-candy > i, .tb-name.ns-candy { background-image: linear-gradient(90deg, #f9a8d4, #c084fc, #93c5fd); background-size: 100% 100%; }
.ns-neon > i, .tb-name.ns-neon { background-image: linear-gradient(90deg, #f0abfc, #ffffff, #67e8f9, #f0abfc); animation: ns19-move 3s linear infinite, ns19-glow 1.6s ease-in-out infinite alternate; }
.ns-chrome > i, .tb-name.ns-chrome { background-image: linear-gradient(100deg, #9ca3af 20%, #ffffff 40%, #6b7280 55%, #e5e7eb 75%, #9ca3af); animation: ns19-move 2.6s linear infinite; }
.ns-inferno > i, .tb-name.ns-inferno { background-image: linear-gradient(90deg, #fde047, #f97316, #dc2626, #f97316, #fde047); filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.6)); animation: ns19-move 2s linear infinite; }
.ns-duel > i, .tb-name.ns-duel { background-image: linear-gradient(90deg, #60a5fa, #ffffff, #f43f5e, #ffffff, #60a5fa); animation: ns19-move 2.4s linear infinite; }
.ns-gold > i, .tb-name.ns-gold { background-image: linear-gradient(100deg, #b45309, #fde68a 30%, #f59e0b 45%, #fffbeb 55%, #d97706 70%, #b45309); filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.55)); animation: ns19-move 2.2s linear infinite; }
.ns-aurora > i, .tb-name.ns-aurora { background-image: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa, #f472b6, #34d399); filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5)); animation: ns19-move 3.4s linear infinite; }
.ns-galaxy > i, .tb-name.ns-galaxy { background-image: linear-gradient(90deg, #818cf8, #ec4899, #22d3ee, #a855f7, #818cf8); filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.6)); animation: ns19-move 4s linear infinite; }
.ns-ace > i, .tb-name.ns-ace { background-image: linear-gradient(100deg, #fbbf24, #fff7cc 35%, #fbbf24 50%, #fffbe6 65%, #f59e0b); filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7)); animation: ns19-move 1.8s linear infinite; }
.ns-plasma > i, .tb-name.ns-plasma { background-image: linear-gradient(90deg, #f0f, #0ff, #ff0, #f0f); animation: ns19-move 1.6s linear infinite, ns19-hue 6s linear infinite; }
.ns-prism > i, .tb-name.ns-prism { background-image: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); animation: ns19-move 2.8s linear infinite; }
.ns-champ > i, .tb-name.ns-champ { background-image: linear-gradient(100deg, #f59e0b, #fff 30%, #ef4444 50%, #fff 70%, #f59e0b); filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.6)); animation: ns19-move 2s linear infinite; }
@keyframes ns19-move { to { background-position: -220% 0; } }
@keyframes ns19-glow { from { filter: drop-shadow(0 0 2px rgba(240, 171, 252, 0.45)); } to { filter: drop-shadow(0 0 7px rgba(103, 232, 249, 0.9)); } }
@keyframes ns19-hue { from { filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.55)) hue-rotate(0deg); } to { filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.55)) hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nm19 > i, .tb-name { animation: none !important; } }
/* names inside chat, boards, clubs */
.gc-meta .nm19, .hc18-list .nm19 { font-size: 12.5px; color: var(--c, #22d3ee); }
.hc18-list li .nm19 { grid-column: 1; min-width: 0; }
.cl-mn .nm19, .cm-h .nm19 { font-size: 13.5px; }
.cl-mn .nm19:not([class*="ns-"]) > i, .cm-h .nm19:not([class*="ns-"]) > i { color: #fff; }

/* ================= card frames (driver card, previews) ================= */
.fr-carbon { background: repeating-linear-gradient(45deg, #15181d 0 6px, #1d2128 6px 12px) !important; }
.fr-pitwall { background: linear-gradient(180deg, rgba(10, 13, 19, 0.35), #0b0e14 70%), repeating-linear-gradient(120deg, #1a1405 0 22px, #a37f00 22px 26px, #1a1405 26px 48px) !important; }
.fr-sunrise { background: linear-gradient(160deg, #7c2d12, #9f1239 45%, #1e1b4b) !important; }
.fr-neon { background: linear-gradient(0deg, rgba(236, 72, 153, 0.18) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(34, 211, 238, 0.18) 1px, transparent 1px) 0 0 / 22px 100%, #090b1a !important; box-shadow: inset 0 0 40px rgba(236, 72, 153, 0.25); }
.fr-gold { background: radial-gradient(120% 90% at 20% 0%, #6b4a0b, #1b1305 60%) !important; box-shadow: inset 0 0 0 2px #f5c518, 0 0 26px rgba(245, 197, 24, 0.35); }
.fr-aurora { background: linear-gradient(120deg, #064e3b, #0e7490, #4c1d95, #064e3b) 0 0 / 300% 300% !important; animation: fr19-shift 9s ease-in-out infinite alternate; }
.fr-void { background: radial-gradient(circle at 75% 25%, rgba(168, 85, 247, 0.5), transparent 25%), radial-gradient(circle at 75% 25%, transparent 27%, rgba(236, 72, 153, 0.35) 28%, transparent 32%), radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 70%, #fff, transparent), radial-gradient(1px 1px at 60% 50%, #fff, transparent), #04030a !important; }
.fr-champ { background: linear-gradient(160deg, #7f1d1d, #1c1007 55%, #78350f) !important; box-shadow: inset 0 0 0 2px #fbbf24, 0 0 30px rgba(239, 68, 68, 0.35); }
@keyframes fr19-shift { to { background-position: 100% 100%; } }

/* ================= driver card popup ================= */
.pc19-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: calc(var(--bar-h, 50px) + 10px) 16px 16px; background: rgba(4, 6, 11, 0.6); animation: gcIn .16s ease-out both; }
.pc19-card { position: relative; width: min(540px, 100%); max-height: 100%; overflow-y: auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0e1219; padding: 22px 22px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: gcUp .2s var(--ease) both; }
.pc19-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 13, 19, 0.6); color: var(--txt); font-size: 20px; line-height: 1; cursor: pointer; z-index: 1; }
.pc19-load { display: grid; gap: 10px; justify-items: start; padding: 10px 40px 10px 0; } .pc19-load small { color: var(--txt-2); line-height: 1.4; }
.pc19-h { display: flex; gap: 16px; align-items: center; padding-right: 36px; }
.pc19-helm { position: relative; flex: none; width: 74px; height: 74px; border-radius: 18px; background: rgba(10, 13, 19, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.pc19-helm svg { width: 54px; height: 54px; }
.pc19-helm em { position: absolute; right: -6px; bottom: -6px; font: 800 15px var(--f-display); font-style: normal; background: #ffcc00; color: #111; border-radius: 8px; padding: 1px 7px; }
.pc19-who { min-width: 0; display: grid; gap: 6px; }
.pc19-who { color: #fff; }
.pc19-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc19-club, .pc19-lg { font: 800 11.5px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.pc19-lg { background: rgba(255, 255, 255, 0.08); color: var(--c); }
.pc19-seen { color: var(--txt-2); font-size: 12px; }
.pc19-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc19-stats div { background: rgba(10, 13, 19, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.pc19-stats b { font: 800 19px var(--f-display); color: #fff; } .pc19-stats small { color: var(--txt-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.pc19-go { margin-top: 16px; width: 100%; }
.pc19-note { margin: 12px 0 0; color: var(--txt-2); font-size: 12.5px; }
@media (max-height: 520px) { .pc19-card { padding: 14px; } .pc19-stats { margin-top: 10px; gap: 5px; } .pc19-stats div { padding: 5px 4px; } .pc19-stats b { font-size: 15px; } .pc19-helm { width: 54px; height: 54px; } .pc19-helm svg { width: 40px; height: 40px; } }

/* toast */
.t19 { position: fixed; z-index: 80; left: 50%; top: calc(var(--bar-h, 50px) + 12px); transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: #111827; border: 1px solid rgba(255, 204, 0, 0.5); color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: opacity .4s; }
.t19.out { opacity: 0; }

/* ================= main menu additions: Shop tile, gifts row, club season card ================= */
.ht18-shop { --c: #c084fc; --t: 192, 132, 252; }
.gf19 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vh, 12px); max-width: clamp(680px, 44vw, 860px); width: 100%; flex: none; }
.gf19 > button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(10, 13, 19, 0.72); backdrop-filter: blur(8px); color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.gf19 > button:hover { border-color: rgba(255, 204, 0, 0.5); }
.gf19 > button > span:last-child { display: grid; min-width: 0; }
.gf19 b { font: 800 13.5px var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf19 small { font-size: 12px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf19-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--dim); }
.gf19-ic svg { width: 19px; height: 19px; }
.gf19 > button.ready { border-color: rgba(255, 204, 0, 0.65); background: linear-gradient(135deg, rgba(255, 204, 0, 0.18), rgba(10, 13, 19, 0.82) 70%); }
.gf19 > button.ready .gf19-ic { background: #ffcc00; color: #111; animation: gf19-bob 1.4s ease-in-out infinite; }
.gf19 > button.ready small { color: #fde68a; font-weight: 700; }
@keyframes gf19-bob { 50% { transform: translateY(-2px) rotate(-6deg); } }
.hub-info.gf19-dlg .hi-card { width: min(680px, calc(100vw - 32px)); max-width: none; }
.hub-info .gf19-cal { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.hub-info .gf19-cal.stay { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-info .gf19-cal li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; min-width: 0; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.gf19-cal li small { color: var(--txt-2); font-size: 11px; } .gf19-cal li b { color: #fff; font-size: 13px; } .gf19-cal li em { font-style: normal; font-size: 10.5px; color: #fde68a; }
.gf19-cal li.got { opacity: 0.5; } .gf19-cal li.now { border-color: #ffcc00; background: rgba(255, 204, 0, 0.12); }
.cb19 { flex: none; display: block; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(52, 211, 153, 0.32); background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(10, 13, 19, 0.85) 60%); backdrop-filter: blur(8px); color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.cb19:hover { border-color: rgba(52, 211, 153, 0.7); }
.cb19 header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.cb19 header b { font: 800 14px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: #6ee7b7; }
.cb19 header span { font-size: 12px; color: var(--txt-2); }
.cb19 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cb19 li { display: grid; grid-template-columns: 18px 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 13px; }
.cb19 li em { font-style: normal; font-weight: 800; color: var(--txt-2); text-align: right; }
.cb19 li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.cb19 li span:last-child { font: 700 12.5px var(--mono, monospace); color: var(--txt-2); }
.cb19 li.me b { color: #ffcc00; } .cb19 li.dim { display: block; color: var(--txt-2); }
.cb19 p { margin: 4px 0 0; font-size: 12px; color: var(--txt-2); }
.cl19-crest { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; } .cl19-crest svg { width: 100%; height: 100%; }
.cl19-crest.sm, .cb19 .cl19-crest { width: 22px; height: 22px; }
.hub18 .hc18 { height: min(100%, max(320px, 46vh), 540px); }
body:is([data-hublv="0"], [data-hublv="1"]) .cb19 { display: none !important; }
.hub18 .hub-soon ~ .cb19 { display: none; }
@media (max-height: 700px) { .cb19 { display: none; } }
@media (max-height: 520px) {
  .gf19 > button { padding: 4px 8px; gap: 6px; border-radius: 9px; } .gf19-ic { width: 22px; height: 22px; border-radius: 7px; } .gf19-ic svg { width: 14px; height: 14px; }
  .gf19 b { font-size: 11px; } .gf19 small { font-size: 10.5px; }
}
/* ================= the Shop ================= */
.m15-shop19 .m15-body { padding-top: 6px; }
.sh19 { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 380px); gap: clamp(14px, 2.2vw, 28px); align-items: start; max-width: 1240px; width: 100%; margin: 0 auto; }
.sh19-main { min-width: 0; display: grid; gap: clamp(10px, 1.8vh, 16px); }
.sh19-lede { margin: 0; color: var(--txt-2); }
.sh19-sec { margin: 4px 0 0; font: 800 13px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-2); }
.sh19-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.sh19-it { --tc: #94a3b8; --tt: 148, 163, 184; display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid rgba(var(--tt), 0.3); background: linear-gradient(160deg, rgba(var(--tt), 0.12), rgba(10, 13, 19, 0.85) 55%); cursor: pointer; transition: border-color .15s, transform .15s; }
.sh19-it:hover { border-color: rgba(var(--tt), 0.75); transform: translateY(-2px); }
.sh19-it.sel { border-color: #ffcc00; box-shadow: 0 0 0 1px #ffcc00 inset; }
.sh19-it.on { border-color: rgba(74, 222, 128, 0.7); }
.t-common { --tc: #94a3b8; --tt: 148, 163, 184; } .t-rare { --tc: #38bdf8; --tt: 56, 189, 248; } .t-epic { --tc: #c084fc; --tt: 192, 132, 252; } .t-legendary { --tc: #fbbf24; --tt: 251, 191, 36; } .t-mythic { --tc: #f472b6; --tt: 244, 114, 182; }
.sh19-pv { height: 64px; border-radius: 10px; background: rgba(4, 6, 11, 0.55); display: grid; place-items: center; overflow: hidden; padding: 0 10px; color: #fff; font: 800 18px var(--f-display); letter-spacing: 0.03em; }
.sh19-pv .nm19 { max-width: 100%; }
.sh19-bd .bd19 { width: 40px; height: 40px; }
.sh19-fr { display: block; width: 100%; height: 100%; border-radius: 10px; }
.sh19-t { display: grid; gap: 2px; min-width: 0; }
.sh19-t b { color: #fff; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh19-t small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--txt-2); font-size: 12px; }
.sh19-t s { color: var(--dim); }
.tier { font-style: normal; font: 800 10.5px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: var(--tc); background: rgba(var(--tt), 0.14); border: 1px solid rgba(var(--tt), 0.35); }
.sh19-act { width: 100%; padding: 8px 10px; font-size: 13px; }
.sh19-how { display: block; font-size: 12px; line-height: 1.35; color: #fde68a; padding: 4px 0; }
.sh19-deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(var(--tt), 0.55); background: linear-gradient(135deg, rgba(var(--tt), 0.22), rgba(10, 13, 19, 0.85) 60%); cursor: pointer; }
.sh19-deal h2 { margin: 4px 0 6px; font: 800 clamp(22px, 3.4vh, 30px) var(--f-display); letter-spacing: 0.03em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #fff; }
.sh19-deal p { margin: 0; color: var(--txt-2); } .sh19-deal p b { color: #ffcc00; } .sh19-deal p s { color: var(--dim); }
.sh19-dealpv .pv19 { min-height: 110px; }
.sh19-car { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(192, 132, 252, 0.4); background: linear-gradient(135deg, rgba(192, 132, 252, 0.16), rgba(10, 13, 19, 0.85) 60%); color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.sh19-car > span { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(192, 132, 252, 0.18); color: #c084fc; } .sh19-car > span svg { width: 30px; height: 30px; }
.sh19-car div { flex: 1; display: grid; gap: 2px; } .sh19-car b { font: 800 17px var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; } .sh19-car small { color: var(--txt-2); }
.sh19-car > svg { width: 20px; height: 20px; color: #c084fc; }
.sh19-car:hover { border-color: rgba(192, 132, 252, 0.8); }
.sh19-side { position: sticky; top: 0; display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, 0.85); }
.pv19 { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 150px; padding: 18px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: #0e1219; text-align: center; color: #fff; }
.pv19-helm svg { width: 46px; height: 46px; }
.pv19 small { color: var(--txt-2); font-size: 11.5px; line-height: 1.35; }
.sh19-msg { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(74, 222, 128, 0.12); color: #bbf7d0; font-size: 13px; } .sh19-msg.bad { background: rgba(239, 68, 68, 0.14); color: #fecaca; }
.m15-shop19 .cred-chip { pointer-events: none; }
@media (max-width: 980px) { .sh19 { grid-template-columns: 1fr; } .sh19-side { position: static; } .sh19-deal { grid-template-columns: 1fr; } }
@media (max-height: 520px) { .sh19-pv { height: 44px; font-size: 14px; } .sh19-it { padding: 8px; gap: 5px; } .sh19-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); } .pv19 { min-height: 90px; padding: 10px; } .sh19-side { padding: 10px; } }

/* ================= leaderboards ================= */
.lb19-tabs button.on { box-shadow: inset 0 -2px 0 var(--c); background: rgba(255, 255, 255, 0.08); }
.lb19-land .lb19-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb19-door { --c: #fff; }
.lb19-lead { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 12.5px; min-width: 0; }
.lb19-lead svg { width: 16px; height: 16px; flex: none; }
.lb19 { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 360px); gap: clamp(14px, 2.2vw, 28px); align-items: start; max-width: 1240px; width: 100%; margin: 0 auto; }
.lb19-main { min-width: 0; display: grid; gap: 12px; }
.lb19-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; padding-left: 12px; border-left: 4px solid var(--c); }
.lb19-h > div:first-child { display: grid; gap: 2px; } .lb19-h b { font: 800 20px var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; } .lb19-h small { color: var(--txt-2); }
.lb19-hr { display: grid; justify-items: end; gap: 2px; } .lb19-hr .hb-cd b { color: #fff; }
.lb19-you { margin: 0; color: var(--txt-2); } .lb19-you b { color: #ffcc00; font-size: 16px; } .lb19-you.dim { font-size: 12.5px; }
.lb19-guest { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 204, 0, 0.35); background: rgba(255, 204, 0, 0.08); }
.lb19-guest span { flex: 1; min-width: 220px; font-size: 13.5px; color: var(--txt); }
.lb19-pod { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.lb19-pod li { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px 10px 12px; border-radius: 16px; border: 1px solid rgba(var(--pt), 0.5); background: linear-gradient(180deg, rgba(var(--pt), 0.24), rgba(10, 13, 19, 0.88) 70%); min-width: 0; }
.lb19-pod .p1 { --pt: 245, 197, 24; order: 2; min-height: 168px; } .lb19-pod .p2 { --pt: 207, 214, 223; order: 1; min-height: 140px; } .lb19-pod .p3 { --pt: 217, 140, 74; order: 3; min-height: 128px; }
.lb19-pod li.me { box-shadow: 0 0 0 2px #ffcc00 inset; }
.lb19-rk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--f-display); color: #111; background: rgb(var(--pt)); }
.lb19-pod .nm19.big { font-size: clamp(16px, 2.4vh, 22px); max-width: 100%; }
.lb19-pod .nm19:not([class*="ns-"]) > i { color: #fff; }
.lb19-sc { font: 800 15px var(--mono, monospace); color: #fff; }
.lb19-pod .gh-btn { padding: 3px 10px; font-size: 12px; }
.lb19-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb19-list li { display: grid; grid-template-columns: 40px minmax(0, max-content) auto 1fr auto; align-items: center; gap: 4px 10px; padding: 7px 12px; border-radius: 10px; background: rgba(10, 13, 19, 0.78); border: 1px solid var(--line); min-width: 0; }
.lb19-list li > em { font: 800 14px var(--f-display); font-style: normal; color: var(--txt-2); text-align: right; }
.lb19-list li .nm19 { font-size: 14.5px; min-width: 0; } .lb19-list li .nm19:not([class*="ns-"]) > i { color: #fff; }
.lb19-list li .ttl { justify-self: start; }
.lb19-list li .lb19-sc { grid-column: 4; justify-self: end; font-size: 13.5px; }
.lb19-list li .lb19-watch { grid-column: 5; padding: 3px 9px; font-size: 12px; }
.lb19-list li .lb19-watch span { margin-left: 4px; }
.lb19-list li.me { border-color: rgba(255, 204, 0, 0.6); background: rgba(255, 204, 0, 0.1); } .lb19-list li.me .nm19 > i { color: #ffcc00; }
.lb19-list li.gap { margin-top: 8px; }
.lb19-list li > .lb19-crest, .lb19-pod .lb19-crest { width: 40px; height: 40px; } .lb19-list li > .lb19-crest.sm { width: 26px; height: 26px; }
.lb19-cn { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb19-pod.clubs li { min-height: 0; }
.lb19-side { position: sticky; top: 0; display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid rgba(var(--t), 0.35); background: linear-gradient(180deg, rgba(var(--t), 0.12), rgba(10, 13, 19, 0.88) 40%); }
.lb19-side h3 { margin: 0; font: 800 16px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.lb19-side p { margin: 0; color: var(--txt-2); font-size: 13px; line-height: 1.4; }
.lb19-rw { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb19-rw li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); }
.lb19-rw li b { color: var(--c, #ffcc00); font-size: 13px; display: flex; align-items: center; gap: 6px; } .lb19-rw li span { color: var(--txt); font-size: 12.5px; line-height: 1.35; }
.lb19-rw.lg li b i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lb19-side .wide { width: 100%; }
@media (max-width: 980px) { .lb19 { grid-template-columns: 1fr; } .lb19-side { position: static; } .lb19-land .lb19-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 520px) { .lb19-pod li { padding: 8px 6px; min-height: 0 !important; gap: 3px; } .lb19-rk { width: 24px; height: 24px; font-size: 13px; } .lb19-list li { padding: 4px 10px; } .lb19-side { padding: 10px; } .lb19-rw li { padding: 4px 8px; } .lb19-land .lb19-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ================= event pages ================= */
.m15-ev[data-evd] { cursor: pointer; }
.m15-ev[data-evd]:hover { border-color: rgba(var(--t), 0.6); }
.ev18-cards .me-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.me-more { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
.ev19-dets { display: contents; }
.ev19-det { display: none; }
.m15-events:not([data-evd=""])[data-evd] .ev18-cat, .m15-events:not([data-evd=""])[data-evd] .ev18-land, .m15-events:not([data-evd=""])[data-evd] .m15-foot { display: none !important; }
.m15-events:not([data-evd=""])[data-evd] .ev19-det.on { display: grid; }
.ev19-det { --t: 56, 189, 248; gap: clamp(10px, 2vh, 18px); max-width: 1240px; width: 100%; margin: 0 auto; }
.ev19-med { display: grid; grid-template-columns: minmax(120px, .7fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev19-mine { display: grid; gap: 4px; align-content: center; justify-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(10, 13, 19, 0.85); border: 1px solid var(--line-2); }
.ev19-mine small { color: var(--txt-2); font-size: 12px; }
.ev19-m { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--mt), 0.35); background: linear-gradient(135deg, rgba(var(--mt), 0.16), rgba(10, 13, 19, 0.86) 65%); min-width: 0; }
.ev19-m.m1 { --mt: 217, 140, 74; } .ev19-m.m2 { --mt: 207, 214, 223; } .ev19-m.m3 { --mt: 245, 197, 24; }
.ev19-m.won { border-color: rgba(var(--mt), 0.9); }
.ev19-mi svg { width: 34px; height: 34px; } .ev19-m:not(.won) .ev19-mi { opacity: .55; }
.ev19-m > div { display: grid; gap: 2px; min-width: 0; } .ev19-m b { font: 800 15px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--mt)); }
.ev19-m span { color: #fff; font-size: 13px; line-height: 1.3; } .ev19-m small { color: var(--txt-2); font-size: 11.5px; }
.ev19-ok { position: absolute; top: 8px; right: 8px; color: #4ade80; } .ev19-ok svg { width: 18px; height: 18px; }
.ev19-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: clamp(12px, 2vw, 22px); align-items: start; }
.ev19-left { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ev19-card { padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, 0.85); display: grid; gap: 10px; min-width: 0; }
.ev19-card h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 800 15px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.ev19-card h3 small { font: 700 12px var(--f-ui, inherit); letter-spacing: 0; text-transform: none; color: #ffcc00; }
.ev19-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ev19-lb li { display: grid; grid-template-columns: 26px minmax(0, max-content) auto 1fr auto; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); font-size: 13.5px; min-width: 0; }
.ev19-lb li > em { font-style: normal; font-weight: 800; color: var(--txt-2); text-align: right; }
.ev19-lb li .nm19:not([class*="ns-"]) > i { color: #fff; }
.ev19-lb li > .ev19-sc { grid-column: 4; justify-self: end; font: 600 12.5px var(--mono, monospace); color: var(--txt-2); }
.ev19-lb li .gh-btn { grid-column: 5; padding: 2px 8px; font-size: 11.5px; }
.ev19-lb li.me { background: rgba(255, 204, 0, 0.1); } .ev19-lb li.me .nm19 > i { color: #ffcc00; } .ev19-lb li.gap { margin-top: 6px; }
.ev19-rw .lb19-rw li { grid-template-columns: 76px minmax(0, 1fr); } .ev19-rw .lb19-rw li b { color: #ffcc00; }
.ev19-info { position: sticky; top: 0; display: grid; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(var(--t), 0.4); background: rgba(10, 13, 19, 0.9); }
.ev19-img { height: clamp(120px, 24vh, 220px); background: #111 center / cover no-repeat; position: relative; }
.ev19-img span .flagchip { position: static; margin: 0; transform: none; }
.ev19-img span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(4, 6, 11, 0.75); color: #fff; font-weight: 800; font-size: 13px; }
.ev19-it { padding: 14px 16px 6px; display: grid; gap: 8px; }
.ev19-it > b { font: 800 22px var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.ev19-it ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ev19-it li { padding: 4px 10px; border-radius: 999px; background: rgba(var(--t), 0.14); color: #fff; font-size: 12.5px; } .ev19-it li .hb-cd b { color: #fff; }
.ev19-it p { margin: 0; color: var(--txt-2); font-size: 13px; line-height: 1.45; }
.ev19-go { padding: 12px 16px 16px; display: grid; gap: 8px; } .ev19-go .primary.big { width: 100%; }
@media (max-width: 1100px) { .ev19-left { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ev19-grid { grid-template-columns: 1fr; } .ev19-info { position: static; } .ev19-med { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 520px) {
  .ev19-m { padding: 6px 8px; gap: 6px; } .ev19-mi svg { width: 22px; height: 22px; } .ev19-m small { display: none; } .ev19-mine { padding: 6px 8px; }
  .ev19-img { height: 70px; } .ev19-it { padding: 8px 10px 2px; gap: 4px; } .ev19-it > b { font-size: 16px; } .ev19-it p { display: none; } .ev19-go { padding: 8px 10px 10px; }
  .ev19-card { padding: 8px; gap: 6px; } .ev19-lb li { padding: 3px 6px; }
}

/* title chips inside the new lists stay small */
:is(.lb19, .ev19-lb, .pc19-tags, .cl19) .ttl { font: 800 10.5px var(--f-display); letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.lb19-pod .ttl { font-size: 11px; }

/* ================= clubs: Duel, Sprint, Season ================= */
.cl-tabs { flex-wrap: wrap; }
.cl19 { display: grid; gap: 12px; }
.cl19-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cl19-h h3 { margin: 0; } .cl19-h > span { color: var(--txt-2); font-size: 12.5px; } .cl19-h .hb-cd b { color: #fff; }
.cl19 > p { margin: 0; color: var(--txt-2); font-size: 13px; line-height: 1.45; }
.cl19-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cl19-vs > em { align-self: center; font: 800 26px var(--f-display); font-style: normal; color: #ffcc00; }
.cl19-side { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, 0.6); min-width: 0; }
.cl19-side.us { border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.08); }
.cl19-side > b { color: #fff; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl19-side strong { font: 800 34px var(--f-display); color: #fff; }
.cl19-side ol { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 3px; }
.cl19-side li { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); min-width: 0; }
.cl19-side li .nm19 { min-width: 0; } .cl19-side li .nm19:not([class*="ns-"]) > i { color: #fff; }
.cl19-side li.dim { justify-content: center; color: var(--txt-2); }
.cl19-st { margin: 0; text-align: center; font: 800 15px var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; } .cl19-st.win { color: #4ade80; } .cl19-st.lose { color: #fca5a5; }
.cl19-wait { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); text-align: center; } .cl19-wait span { color: var(--txt-2); font-size: 13px; }
.cl19-go { display: grid; gap: 6px; justify-items: center; } .cl19-go .primary.big { width: min(460px, 100%); } .cl19-go small { color: var(--txt-2); }
.cl19-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cl19-lb li { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); font-size: 13.5px; }
.cl19-lb li em { font-style: normal; font-weight: 800; color: var(--txt-2); text-align: right; } .cl19-lb li b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cl19-lb li span:last-child { font: 700 13px var(--mono, monospace); color: var(--txt-2); }
.cl19-lb li.me { background: rgba(52, 211, 153, 0.12); } .cl19-lb li.me b { color: #6ee7b7; } .cl19-lb li.dim { display: block; color: var(--txt-2); }
.cl19-prize { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; } .cl19-prize li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); } .cl19-prize em { font-style: normal; color: #ffcc00; font-weight: 800; }
.ug19-pv { display: grid; place-items: center; padding: 16px; margin: 8px 0; border-radius: 14px; background: #0b0e14; color: #fff; }
.ug19-btns { display: flex; gap: 10px; flex-wrap: wrap; } .ug19-btns button { flex: 1; }
@media (max-height: 520px) { .cl19-side strong { font-size: 24px; } .cl19-side { padding: 8px; } .cl19 > p { font-size: 12px; } }

/* ---- Classic / Modern controls (Settings > Driving top, Updates page) ---- */
.ctl19 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.ctl19 button { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, 0.7); color: var(--txt); cursor: pointer; transition: border-color .15s, background .15s; font: inherit; }
.ctl19 button:hover { border-color: rgba(255, 204, 0, 0.6); }
.ctl19 button.on { border-color: #ffcc00; background: linear-gradient(160deg, rgba(255, 204, 0, 0.16), rgba(10, 13, 19, 0.85) 60%); box-shadow: 0 0 0 1px #ffcc00 inset; }
.ctl19 b { font-family: var(--f-display); font-size: 17px; letter-spacing: .02em; }
.ctl19 b em { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #ffcc00; color: #111; vertical-align: 2px; }
.ctl19 span { color: var(--txt-2); font-size: 12.5px; line-height: 1.35; }
.upd-ctl19 { display: grid; gap: 6px; }
.upd-ctl19 > span { color: var(--txt-2); font-size: 13px; }
.ctl19.upd { margin: 4px 0 0; }
@media (max-width: 900px), (max-height: 520px) { .ctl19 span { font-size: 11.5px; } .ctl19 button { padding: 9px 11px; } }
