.trsp-game{--asphalt:#1b1e21;--panel:rgba(22,25,28,.9);--edge:#3a3f45;--paint:#f3efe4;--yellow:#f2c230;--check:#4cc3d4;--bad:#e8573f;--ok:#74c46e;--muted:#9aa1a8;--f-display:Impact,"Arial Narrow","Helvetica Neue",sans-serif;--f-body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--f-mono:ui-monospace,Menlo,Consolas,"Liberation Mono",monospace;position:relative;width:100%;height:min(78vh,820px);min-height:420px;overflow:hidden;background:var(--asphalt);color:var(--paint);font-family:var(--f-body);color-scheme:dark;border-radius:8px;user-select:none;-webkit-user-select:none;line-height:1.3;container-type:inline-size;container-name:trsp}.trsp-game:fullscreen{height:100%;border-radius:0}.trsp-game *{box-sizing:border-box}.trsp-game canvas.view{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}.trsp-game button{font:inherit;color:inherit;margin:0}.trsp-game button:focus-visible,.trsp-game input:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.trsp-game .hud-top{position:absolute;top:12px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand clock" "months clock";gap:10px 16px;pointer-events:none}.trsp-game .brand{grid-area:brand;display:flex;align-items:center;gap:10px}.trsp-game .logo{width:36px;height:36px;border-radius:6px;background:#2a5ea8;border:2px solid var(--paint);display:grid;place-items:center;font-family:var(--f-display);font-size:24px;line-height:1;flex:none}.trsp-game .brand h2{margin:0;font-family:var(--f-display);font-weight:400;font-size:26px;letter-spacing:.04em;text-transform:uppercase;line-height:1;text-shadow:0 2px 6px rgba(0,0,0,.6);color:var(--paint)}.trsp-game .brand p{margin:2px 0 0;font-size:12px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}.trsp-game .months{grid-area:months;display:flex;gap:4px;overflow-x:auto;pointer-events:auto;padding-bottom:2px;scrollbar-width:none;min-width:0}.trsp-game .months::-webkit-scrollbar{display:none}.trsp-game .mo{flex:none;min-width:46px;padding:5px 7px 4px;border:1px solid var(--edge);background:var(--panel);border-radius:4px;cursor:pointer;text-align:left}.trsp-game .mo b{display:block;font-family:var(--f-display);font-weight:400;font-size:15px;letter-spacing:.05em;text-transform:uppercase;line-height:1}.trsp-game .mo small{display:block;font-family:var(--f-mono);font-size:10px;color:var(--muted);margin-top:2px}.trsp-game .mo.on{border-color:var(--yellow);box-shadow:inset 0 -3px 0 var(--yellow)}.trsp-game .mo.locked{opacity:.45;cursor:not-allowed;background:repeating-linear-gradient(-45deg,rgba(242,194,48,.08) 0 6px,transparent 6px 12px),var(--panel)}.trsp-game .mo.final{border-color:var(--yellow);color:var(--yellow)}.trsp-game .mo.live small{color:var(--green,#5bd47a)}.trsp-game .mo.live{border-color:#5bd47a8c}.trsp-game .mo.closed small{color:var(--muted)}.trsp-game .clock{grid-area:clock;justify-self:end;align-self:start;background:var(--panel);border:1px solid var(--edge);border-radius:6px;padding:8px 12px 9px;min-width:190px}.trsp-game .clock .t{font-family:var(--f-mono);font-weight:600;font-size:32px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.trsp-game .clock .t.run{color:var(--yellow)}.trsp-game .clock .tp-row{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.trsp-game .clock .tp-row b{color:var(--paint);font-weight:600;font-family:var(--f-mono)}.trsp-game .clock .pen{color:var(--bad)}.trsp-game .gear{display:inline-block;min-width:16px;text-align:center;font-family:var(--f-mono);font-weight:600;border-radius:3px;padding:0 4px;background:#2b3035;color:var(--paint)}.trsp-game .gear.r{background:var(--bad)}.trsp-game .panel{position:absolute;right:12px;top:118px;width:272px;max-width:calc(100% - 24px);background:var(--panel);border:1px solid var(--edge);border-radius:6px;max-height:calc(100% - 140px);display:flex;flex-direction:column}.trsp-game .panel>button.head{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;padding:10px 12px;cursor:pointer;font-family:var(--f-display);font-size:16px;letter-spacing:.08em;text-transform:uppercase}.trsp-game .panel .chev{transition:transform .2s;color:var(--yellow)}.trsp-game .panel.closed .chev{transform:rotate(-90deg)}.trsp-game .panel.closed .body{display:none}.trsp-game .body{overflow-y:auto;padding:0 12px 12px;display:flex;flex-direction:column;gap:14px}.trsp-game .grp h3{margin:0 0 6px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--yellow);font-weight:600;font-family:var(--f-body)}.trsp-game .sl{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center;margin-bottom:6px;font-size:13px}.trsp-game .sl output{font-family:var(--f-mono);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.trsp-game .sl input{grid-column:1/-1;width:100%;accent-color:var(--yellow);margin:0}.trsp-game .chk{display:flex;align-items:center;gap:8px;font-size:13px;margin:2px 0 6px}.trsp-game .chk input{accent-color:var(--yellow);width:16px;height:16px;margin:0}.trsp-game .tp-btns{display:flex;flex-wrap:wrap;gap:6px}.trsp-game .tp-btn{border:1px solid var(--edge);background:#252a2f;border-radius:4px;padding:5px 9px;font-size:12px;cursor:pointer}.trsp-game .tp-btn:hover{border-color:var(--yellow)}.trsp-game .tp-btn.main{background:var(--yellow);color:#1b1e21;border-color:var(--yellow);font-weight:600}.trsp-game .sw{display:flex;gap:6px;flex-wrap:wrap}.trsp-game .sw button{width:26px;height:26px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}.trsp-game .sw button.on{border-color:var(--paint);box-shadow:0 0 0 2px var(--asphalt) inset}.trsp-game ol.board{list-style:none;margin:0;padding:0;font-size:13px}.trsp-game ol.board li{display:grid;grid-template-columns:20px 1fr auto;gap:6px;padding:4px 0;border-bottom:1px dashed var(--edge);font-variant-numeric:tabular-nums}.trsp-game ol.board li:last-child{border-bottom:0}.trsp-game ol.board .n{color:var(--muted);font-family:var(--f-mono);font-size:12px}.trsp-game ol.board .tt{font-family:var(--f-mono)}.trsp-game ol.board .pr{color:var(--muted);font-size:12px}.trsp-game ol.board li.me .tt{color:var(--yellow)}.trsp-game .empty,.trsp-game .note{font-size:12px;color:var(--muted);margin:0;line-height:1.45}.trsp-game .note b{color:var(--paint);font-weight:600;font-family:var(--f-mono)}.trsp-game .msg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,calc(100% - 32px));background:var(--panel);border:1px solid var(--edge);border-radius:8px;padding:16px 18px;text-align:center}.trsp-game .msg[hidden]{display:none}.trsp-game .msg h3{margin:0 0 4px;font-family:var(--f-display);font-weight:400;font-size:30px;letter-spacing:.04em;text-transform:uppercase;line-height:1.05;text-wrap:balance}.trsp-game .msg.bad h3{color:var(--bad)}.trsp-game .msg.good h3{color:var(--ok)}.trsp-game .msg.info h3{color:var(--yellow)}.trsp-game .msg p{margin:6px 0;font-size:14px;line-height:1.45;color:var(--paint)}.trsp-game .msg .big{font-family:var(--f-mono);font-size:30px;font-weight:600;color:var(--yellow);font-variant-numeric:tabular-nums}.trsp-game .msg .stars{color:var(--yellow);letter-spacing:.15em;font-size:18px}.trsp-game .msg .tp-small{font-size:12px;color:var(--muted)}.trsp-game .msg .tp-btns{justify-content:center;margin-top:10px}.trsp-game .msg.mini{top:auto;bottom:62px;transform:translate(-50%);padding:8px 14px;pointer-events:none}.trsp-game .msg.mini h3{font-size:18px}.trsp-game .msg.mini p{font-size:12px;margin:2px 0 0;color:var(--muted)}.trsp-game .help{position:absolute;left:12px;bottom:12px;font-size:12px;color:var(--muted);background:var(--panel);border:1px solid var(--edge);border-radius:4px;padding:6px 9px;max-width:calc(100% - 330px)}.trsp-game .fs{position:absolute;right:12px;bottom:12px}.trsp-game .rules{display:inline-block;margin-left:8px;color:var(--yellow)}.trsp-game .touch{display:none}.trsp-game.coarse .touch{display:block}.trsp-game.coarse .help{display:none}.trsp-game .pad{position:absolute;bottom:16px;display:flex;gap:10px}.trsp-game .pad.l{left:14px}.trsp-game .pad.r{right:14px;flex-direction:column}.trsp-game .pad button{width:68px;height:68px;border-radius:50%;border:2px solid rgba(243,239,228,.35);background:#16191c99;font-size:26px;touch-action:none}.trsp-game .pad button.on{background:#f2c230d9;color:#1b1e21;border-color:var(--yellow)}.trsp-game .pad.r button{width:76px;height:58px;border-radius:12px;font-family:var(--f-display);font-size:18px;letter-spacing:.06em}.trsp-game.coarse .msg.mini{bottom:170px}.trsp-game.coarse .fs{inset:132px auto auto 12px}@container trsp (max-width:980px){.trsp-game .hud-top{grid-template-areas:"brand clock" "months months"}.trsp-game .panel{top:132px}}@container trsp (max-width:720px){.trsp-game .brand h2{font-size:20px}.trsp-game .brand p{display:none}.trsp-game .logo{width:28px;height:28px;font-size:18px}.trsp-game .clock{min-width:0;padding:6px 10px}.trsp-game .clock .t{font-size:22px}.trsp-game .clock .tp-row{font-size:11px}.trsp-game .panel{top:158px;width:250px}.trsp-game.coarse .fs{top:158px}}@media(prefers-reduced-motion:reduce){.trsp-game .panel .chev{transition:none}}.trsp-game ol.board li{grid-template-columns:24px minmax(0,1fr) auto 26px}.trsp-game ol.board .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trsp-game ol.board .gh{border:0;background:none;cursor:pointer;padding:0;font-size:14px;opacity:.55;line-height:1}.trsp-game ol.board .gh:hover,.trsp-game ol.board li.ghosted .gh{opacity:1}.trsp-game ol.board li.ghosted{background:#4cc3d41f}.trsp-game .msg .server{font-size:13px;margin:8px 0 0;color:var(--muted)}.trsp-game .msg .server.ok{color:var(--ok)}.trsp-game .msg .server.bad{color:var(--bad)}.trsp-game .msg .server a{color:var(--yellow)}.trsp-game .tp-select{grid-column:1/-1;width:100%;background:#252a2f;color:var(--paint);border:1px solid var(--edge);border-radius:4px;padding:4px 6px;font:inherit;font-size:13px}.trsp-game .perf{position:absolute;left:12px;top:50%;background:#000000b3;color:#9fe870;font:12px var(--f-mono);padding:4px 8px;border-radius:4px;pointer-events:none;z-index:5}.trsp-game .rate{display:flex;gap:2px;margin:4px 0 8px}.trsp-game .rate .star{background:none;border:0;cursor:pointer;font-size:22px;line-height:1;color:var(--muted);padding:0 2px}.trsp-game .rate .star.on,.trsp-game .rate:hover .star{color:var(--yellow)}.trsp-game .rate .star:hover~.star{color:var(--muted)}.trsp-game .stars{color:var(--yellow);letter-spacing:.1em}.trsp-game a.tp-btn{text-decoration:none;display:inline-block}.trsp-game .msg form.report{text-align:left}.trsp-game .msg form.report textarea{resize:vertical;margin-top:4px}.trsp-game .sw button.liv{font-size:15px;line-height:1;display:grid;place-items:center;background:conic-gradient(#e5533d,#f2c230,#5bd47a,#4c9fe0,#b05ce0,#e5533d)}.trsp-game .giveup{position:absolute;right:56px;bottom:12px;border-color:#d9452b;color:#ffb3a6}.trsp-game .giveup[hidden]{display:none}.trsp-game .flash{position:absolute;left:50%;top:84px;transform:translate(-50%);background:#14161ae0;color:#fff;padding:8px 14px;border-radius:8px;font-size:14px;opacity:0;transition:opacity .25s;pointer-events:none;max-width:80%;text-align:center}.trsp-game .flash.on{opacity:1}.trsp-game .months .mo.final.on{border-color:#d9452b;background:#d9452b40}.trsp-game .months .mo.final.on small{color:#ff8a75;font-weight:700}.trsp-game .car-models{grid-column:1/-1;display:flex;gap:6px;margin-bottom:6px}.trsp-game .car-models .tp-btn{flex:1}.trsp-game .car-models .tp-btn.on{background:var(--yellow);color:#16181c;border-color:transparent}.trsp-game .sl.plate-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.trsp-game .plate-in{flex:1;min-width:0;background:#f7f7f2;color:#121316;border:2px solid #1b1d22;border-radius:4px;padding:3px 8px;font:700 15px/1.2 TRSP Bebas,TRSP Oswald,sans-serif;letter-spacing:.12em;text-transform:uppercase;text-align:center}
