
:root{--bg:#f6f7f9;--card:#fff;--ink:#0f1218;--muted:#6b7280;--line:#e3e6ea;--accent:#e2001a;--accent-l:#fff5f6;--ok:#0f9d58;--gold:#f4b400;--purple:#7c3aed;--paypal:#0070ba;--radius:16px;--grad:linear-gradient(135deg,#e2001a 0%,#ff5c33 100%);--grad-dark:linear-gradient(135deg,#0f1218 0%,#2b3140 100%);}




*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}img{max-width:100%;display:block}
.banner{background:var(--grad-dark);color:#fff;padding:8px 16px;text-align:center;font-size:12.5px;font-weight:600;position:sticky;top:0;z-index:70}
.banner b{background:rgba(255,255,255,.15);padding:2px 8px;border-radius:20px;margin-left:6px}
header{position:sticky;top:32px;z-index:60;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.head-inner{max-width:1320px;margin:0 auto;padding:10px 14px;display:flex;align-items:center;gap:10px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.logo .mark{width:40px;height:40px;border-radius:11px;background:var(--grad);display:grid;place-items:center;font-size:20px;flex-shrink:0}
.search{flex:1 1 auto;min-width:120px;max-width:440px;position:relative}
.search input{width:100%;padding:11px 14px 11px 40px;border:1.5px solid var(--line);border-radius:12px;background:#f7f8fa;outline:none;font-size:14px}
.search::before{content:"🔍";position:absolute;left:14px;top:50%;transform:translateY(-50%);opacity:.5}
.header-user{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border-radius:30px;cursor:pointer;background:#f7f8fa;border:1.5px solid var(--line);white-space:nowrap;flex-shrink:0}
.header-user:hover{background:var(--accent-l);border-color:var(--accent)}
.header-user-avatar{width:38px;height:38px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;flex-shrink:0;overflow:hidden}
.header-user-info{line-height:1.15;max-width:130px;overflow:hidden}
.header-user-name{font-weight:800;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-user-sub{font-size:10.5px;color:var(--muted);font-weight:600}
@media(max-width:720px){.header-user-info{display:none}.header-user{padding:3px;border-width:2px}.head-inner{gap:6px;padding:8px 10px}.search{min-width:80px;max-width:none}}
@media(max-width:480px){.logo-text{display:none}.logo .mark{width:36px;height:36px;font-size:18px}}
.btn{border:none;border-radius:11px;padding:11px 16px;font-weight:600;background:#eceef2;font-size:14px;display:inline-flex;align-items:center;gap:7px;justify-content:center;transition:.15s;white-space:nowrap}
.btn-primary{background:var(--grad);color:#fff}
.btn-ghost{background:transparent;border:1.5px solid var(--line)}
.btn-ok{background:var(--ok);color:#fff}
.btn-paypal{background:var(--paypal);color:#fff}
.btn-danger{background:#fee2e2;color:#b91c1c}
.btn-sm{padding:8px 12px;font-size:13px;border-radius:9px}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
nav{background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);position:sticky;top:96px;z-index:55}
.nav-inner{max-width:1320px;margin:0 auto;padding:0 16px;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.nav-inner::-webkit-scrollbar{display:none}
.tab{background:none;border:none;padding:14px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;position:relative}
.tab.active{color:var(--ink);border-bottom-color:var(--accent)}
.tab .badge-dot{background:var(--accent);color:#fff;font-size:10px;font-weight:800;border-radius:20px;padding:1px 6px;margin-left:4px}
.wrap{max-width:1320px;margin:0 auto;padding:20px 16px;display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
@media(max-width:900px){.wrap{grid-template-columns:1fr}}
.filters{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.filters h2{margin:0 0 12px;font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;font-weight:800}
.filters h2 button{background:none;border:none;color:var(--accent);font-size:12px;font-weight:600}
.cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cat-btn{padding:12px 8px;border:2px solid var(--line);border-radius:13px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:5px;font-weight:600;font-size:12.5px;color:#3b4250}
.cat-btn .ic{font-size:24px}
.cat-btn.active{border-color:var(--accent);background:var(--accent-l);color:var(--accent)}
.cat-btn.wide{grid-column:1/-1;flex-direction:row;justify-content:center;padding:10px;font-size:13px}
.filter-sub{margin-top:12px;padding-top:14px;border-top:1px dashed var(--line)}
.filter-group{display:none}.filter-group.show{display:block}
.field{margin-bottom:10px}
.field label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:5px}
.field select,.field input{width:100%;padding:10px 11px;border:1.5px solid var(--line);border-radius:10px;background:#fafbfc;outline:none;font-size:13.5px}
.range{display:flex;gap:8px;align-items:center}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.count{font-size:14px;color:var(--muted)}.count b{color:var(--ink);font-weight:800}
.toolbar select{padding:9px 14px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:13.5px;font-weight:600}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
@media(max-width:600px){.grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:.2s;display:flex;flex-direction:column;position:relative}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(16,24,40,.14)}
.card.featured{border-color:var(--gold)}
.card.featured::before{content:"⭐ TOP";position:absolute;top:9px;right:9px;background:var(--gold);color:#000;font-size:10px;font-weight:900;padding:3px 8px;border-radius:20px;z-index:2}
.card.sold{opacity:.7}
.card.sold::after{content:"VERKAUFT";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-15deg);background:rgba(15,157,88,.9);color:#fff;font-size:14px;font-weight:900;padding:6px 16px;border-radius:8px;z-index:3}
.thumb{aspect-ratio:4/3;background:#eef0f4;position:relative;display:grid;place-items:center;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .ph{font-size:48px;opacity:.3}
.badges{position:absolute;top:9px;left:9px;display:flex;gap:5px;flex-wrap:wrap;max-width:75%;z-index:4}
.badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;background:rgba(255,255,255,.95);text-transform:uppercase}
.badge.lim{background:#fff3cd;color:#8a6100}.badge.new{background:#e3f6ea;color:#0b7a44}.badge.cat{background:var(--grad-dark);color:#fff}.badge.sold-badge{background:#0f9d58;color:#fff}.badge.3d-badge{background:var(--grad);color:#fff}
.card-body{padding:12px 14px;display:flex;flex-direction:column;flex:1}
.card-title{font-size:14px;font-weight:700;margin:0 0 6px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta{font-size:12px;color:var(--muted);margin-bottom:8px}
.price-row{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.price{font-size:19px;font-weight:850}
.ort{font-size:11px;color:var(--muted);text-align:right;line-height:1.4}
.empty{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--muted);background:#fff;border:2px dashed var(--line);border-radius:var(--radius)}
.empty .big{font-size:48px;display:block;margin-bottom:12px;opacity:.4}
.overlay{position:fixed;inset:0;background:rgba(15,18,24,.6);display:none;z-index:100;overflow-y:auto;padding:20px 12px}
.overlay.open{display:block}
.modal{background:#fff;border-radius:20px;max-width:800px;margin:0 auto;box-shadow:0 24px 80px rgba(0,0,0,.35);overflow:hidden}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}
.modal-head h3{margin:0;font-size:17px;font-weight:800}
.x{background:#f0f1f4;border:none;width:36px;height:36px;border-radius:10px;font-size:17px;display:grid;place-items:center}
.modal-body{padding:20px;max-height:calc(100vh - 160px);overflow-y:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}}
.full{grid-column:1/-1}
.fg label{display:block;font-size:12.5px;font-weight:700;margin-bottom:5px}
.fg input,.fg select,.fg textarea{width:100%;padding:11px 12px;border:1.5px solid var(--line);border-radius:11px;background:#fafbfc;outline:none;font-size:14px}
.fg textarea{resize:vertical;min-height:80px}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:#fafbfc;flex-wrap:wrap}
.info-box{background:#f7f8fa;border:1px solid var(--line);border-radius:13px;padding:14px 16px;font-size:13.5px;line-height:1.7}
.detail-ph{width:100%;aspect-ratio:16/10;background:#eef0f4;display:grid;place-items:center;font-size:80px;opacity:.3}
.detail-body{padding:20px}
.detail-body h2{margin:0 0 8px;font-size:22px}
.detail-price{font-size:32px;font-weight:850;margin:12px 0 4px}
.specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:13px;overflow:hidden;margin:18px 0}
.spec{background:#fff;padding:12px 14px}
.spec .k{font-size:10.5px;text-transform:uppercase;color:var(--muted);font-weight:800}
.spec .v{font-size:14px;font-weight:700;margin-top:3px}
.desc{white-space:pre-wrap;font-size:14.5px;color:#3b4250;margin:0 0 16px;line-height:1.7}
.seller{background:#f7f8fa;border:1px solid var(--line);border-radius:13px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.seller .n{font-weight:800;font-size:15px;cursor:pointer}
.seller .l{font-size:13px;color:var(--muted);margin-top:3px}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.tag{font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;background:#eef0f4;color:#3b4250}
.tag.cat{background:var(--grad-dark);color:#fff}.tag.lim{background:#fff3cd;color:#8a6100}.tag.gold{background:#fff5cc;color:#8a6100}.tag.paypal{background:#e6f2fa;color:var(--paypal)}.tag.sold-tag{background:#0f9d58;color:#fff}
.status{display:inline-flex;font-size:11px;font-weight:800;padding:5px 12px;border-radius:20px;text-transform:uppercase}
.status.aktiv{background:#e0ecff;color:#1d4ed8}.status.verkauft{background:#e3f6ea;color:#0b7a44}.status.featured{background:#fff5cc;color:#8a6100}
.chat-wrap{max-width:1200px;margin:0 auto;padding:20px 16px;display:grid;grid-template-columns:320px 1fr;gap:16px;height:calc(100vh - 260px);min-height:520px}
@media(max-width:820px){.chat-wrap{grid-template-columns:1fr;height:auto}}
.chat-list{background:#fff;border:1px solid var(--line);border-radius:16px;overflow-y:auto}
.chat-view{background:#fff;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;min-height:400px;overflow:hidden}
.chat-empty{display:grid;place-items:center;height:100%;color:var(--muted);text-align:center;padding:30px;font-size:14px;min-height:300px}
.chat-item{padding:14px 16px;border-bottom:1px solid var(--line);cursor:pointer}
.chat-item.active{background:var(--accent-l);border-left:3px solid var(--accent)}
.chat-item .partner{font-weight:800;font-size:14px}
.chat-item .listing{font-size:11.5px;color:var(--accent);font-weight:600;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-item .preview{font-size:12.5px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-head{padding:14px 18px;border-bottom:1px solid var(--line);background:#fff}
.chat-head .partner{font-weight:800;font-size:15px}
.chat-head .listing{font-size:12px;color:var(--accent);font-weight:600}
.chat-messages{flex:1;overflow-y:auto;padding:18px;background:#f9fafb;min-height:200px}
.chat-row{margin-bottom:12px;display:flex}
.chat-row.mine{justify-content:flex-end}
.chat-bubble{display:inline-block;padding:9px 13px;border-radius:14px;max-width:80%;word-wrap:break-word;font-size:14px;white-space:pre-wrap}
.chat-bubble.mine{background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.chat-bubble.theirs{background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.chat-meta{font-size:10.5px;color:var(--muted);margin-top:3px}
.chat-input-row{padding:12px;border-top:1px solid var(--line);display:flex;gap:8px;background:#fff}
.chat-input-row input{flex:1;padding:11px 14px;border:1.5px solid var(--line);border-radius:11px;outline:none;font-size:14px;background:#fafbfc}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(80px);background:var(--grad-dark);color:#fff;padding:13px 22px;border-radius:13px;font-size:14px;font-weight:600;opacity:0;transition:.25s;z-index:9999;pointer-events:none;max-width:90vw}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.auth-tabs{display:flex;gap:4px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.auth-tab{background:none;border:none;padding:12px 16px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;font-size:14px}
.auth-tab.active{color:var(--ink);border-bottom-color:var(--accent)}
.profile-tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.profile-tabs::-webkit-scrollbar{display:none}
.profile-tab{background:none;border:none;padding:10px 12px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;font-size:13.5px;white-space:nowrap;cursor:pointer}
.profile-tab.active{color:var(--ink);border-bottom-color:var(--accent)}
.profile-header-new{text-align:center;padding:16px 10px 18px;border-bottom:1px solid var(--line);margin-bottom:16px}
.profile-avatar-lg{width:88px;height:88px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:32px;font-weight:800;margin:0 auto 10px;border:4px solid #fff;box-shadow:0 6px 20px rgba(226,0,26,.18)}
.profile-name-lg{font-size:22px;font-weight:850;margin:0 0 4px}
.profile-email-lg{color:var(--muted);font-size:12.5px;margin:0 0 4px}
.profile-quick-stats{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.pqs-item{background:#f7f8fa;border:1px solid var(--line);border-radius:12px;padding:8px 14px;min-width:70px}
.pqs-num{font-size:18px;font-weight:850;color:var(--accent);line-height:1.1}
.pqs-lbl{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800;margin-top:2px}
.profile-info-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#f7f8fa;border:1px solid var(--line);border-radius:12px}
.profile-info-row .icon{font-size:22px;flex-shrink:0}
.profile-info-row .lbl{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800}
.profile-info-row .val{font-size:14.5px;font-weight:700;margin-top:2px}
.mini-card{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:13px;margin-bottom:10px;cursor:pointer;background:#fff}
.mini-card:hover{background:#f7f8fa}
.mini-thumb{width:56px;height:56px;border-radius:11px;background:#eef0f4;display:grid;place-items:center;font-size:24px;overflow:hidden;flex-shrink:0;position:relative}
.mini-thumb img{width:100%;height:100%;object-fit:cover}
.mini-body{min-width:0;flex:1}
.mini-title{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-meta{font-size:12px;color:var(--muted);margin-top:2px}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:44px!important}
.pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:18px;cursor:pointer;opacity:.55;padding:4px}
.auc-wrap{max-width:1100px;margin:0 auto;padding:20px 16px 60px}
.auc-hero{background:var(--grad-dark);color:#fff;border-radius:20px;padding:30px 26px;text-align:center;margin-bottom:24px}
.auc-hero h2{margin:0 0 8px;font-size:26px}
.auc-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:20px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.auc-filters select{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fafbfc;font-size:13.5px;outline:none;width:100%;font-weight:600}
.auc-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.auc-card-mini{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;cursor:pointer}
.auc-mini-thumb{aspect-ratio:4/3;background:#eef0f4;display:grid;place-items:center;font-size:48px;position:relative}
.auc-mini-thumb img{width:100%;height:100%;object-fit:cover}
.auc-mini-body{padding:14px}
.auc-mini-title{font-weight:700;font-size:15px;margin:0 0 6px}
.auc-mini-price{font-size:20px;font-weight:850;color:var(--accent)}
.auc-mini-meta{font-size:12px;color:var(--muted);margin-top:6px}
.auc-price-box{background:linear-gradient(135deg,#fff5f6 0%,#fff 100%);border:1px solid #fecaca;border-radius:14px;padding:18px;text-align:center;margin-bottom:16px}
.auc-price-value{font-size:38px;font-weight:850;color:var(--accent);margin:6px 0}
.auc-bid-row{display:flex;gap:10px;margin-top:14px}
.auc-bid-row input{flex:1;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;font-size:15px;outline:none;background:#fafbfc}
.auc-bid-btn{padding:12px 20px;border:none;border-radius:12px;background:var(--grad);color:#fff;font-weight:700;font-size:15px}
.auc-bid-item{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:14px}
.auc-bid-item:first-child{border-top:1px solid var(--line)}
.auc-bid-item.top{background:linear-gradient(90deg,#fef3c7 0%,#fff 100%);font-weight:700}
.auc-bid-item .amount{font-weight:850;color:var(--accent);font-size:16px}
.auc-bid-item .time{font-size:11.5px;color:var(--muted);margin-left:8px}
.auc-empty{background:#fff;border:2px dashed var(--line);border-radius:18px;padding:60px 24px;text-align:center;color:var(--muted)}
.auc-empty .big{font-size:64px;display:block;margin-bottom:14px;opacity:.4}
.auc-status{display:inline-flex;font-size:11.5px;font-weight:800;padding:5px 12px;border-radius:20px;text-transform:uppercase;position:absolute;top:10px;right:10px}
.auc-status.running{background:#dcfce7;color:#166534}.auc-status.ended{background:#fef3c7;color:#92400e}.auc-status.accepted{background:#dbeafe;color:#1e40af}.auc-status.rejected{background:#fee2e2;color:#991b1b}
.auc-listing-pick{border:2px solid var(--line);border-radius:13px;padding:12px;margin-bottom:10px;cursor:pointer;display:flex;gap:12px;align-items:center;background:#fff}
.auc-listing-pick.selected{border-color:var(--accent);background:var(--accent-l)}
footer{background:var(--grad-dark);color:#fff;margin-top:50px;padding:36px 20px 22px}
.footer-inner{max-width:1320px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px;margin-bottom:28px}
@media(max-width:820px){.footer-grid{grid-template-columns:1fr 1fr;gap:20px}}
@media(max-width:500px){.footer-grid{grid-template-columns:1fr}}
.footer-col h4{margin:0 0 12px;font-size:13px;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,.6);font-weight:800}
.footer-col p{font-size:13.5px;line-height:1.7;color:rgba(255,255,255,.75);margin:0}
.footer-col button{color:rgba(255,255,255,.75);font-size:13.5px;background:none;border:none;padding:5px 0;cursor:pointer;display:block;text-align:left}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12.5px;color:rgba(255,255,255,.6)}
.hidden{display:none!important}
.admin-wrap{max-width:1320px;margin:0 auto;padding:20px 16px 60px}
.admin-hero{background:var(--grad-dark);color:#fff;border-radius:20px;padding:26px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.admin-hero h2{margin:0 0 4px;font-size:24px}
.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:20px}
.admin-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;text-align:center}
.admin-stat .num{font-size:24px;font-weight:850;color:var(--accent);line-height:1.1}
.admin-stat .lbl{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:700;margin-top:4px}
.admin-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto;background:#fff;border-radius:14px 14px 0 0;padding:0 8px;scrollbar-width:none}
.admin-tabs::-webkit-scrollbar{display:none}
.admin-tab{background:none;border:none;padding:14px;font-weight:700;color:var(--muted);border-bottom:3px solid transparent;font-size:13.5px;white-space:nowrap;cursor:pointer}
.admin-tab.active{color:var(--ink);border-bottom-color:var(--accent)}
.admin-panel{background:#fff;border:1px solid var(--line);border-radius:0 0 14px 14px;padding:20px}
.admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;margin-bottom:8px;flex-wrap:wrap;background:#fafbfc}
.admin-row-info{flex:1;min-width:200px}
.admin-row-title{font-weight:700;font-size:14px}
.admin-row-meta{font-size:12px;color:var(--muted);margin-top:2px}
.admin-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.admin-empty{padding:40px 20px;text-align:center;color:var(--muted);font-size:13.5px}
.admin-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.admin-set-card{background:#f7f8fa;border:1px solid var(--line);border-radius:12px;padding:14px}
.admin-set-card h4{margin:0 0 8px;font-size:14px}
.badge-tag{display:inline-block;font-size:10px;font-weight:800;padding:3px 8px;border-radius:20px;text-transform:uppercase}
.badge-tag.gold{background:#fff5cc;color:#8a6100}.badge-tag.red{background:#fee2e2;color:#b91c1c}.badge-tag.green{background:#dcfce7;color:#166534}.badge-tag.blue{background:#dbeafe;color:#1e40af}.badge-tag.purple{background:#ede9fe;color:#6d28d9}
.photo-slots{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:6px}
.photo-slot{aspect-ratio:1;border:2px dashed var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;background:#fafbfc;position:relative;overflow:hidden;transition:.15s}
.photo-slot:hover{border-color:var(--accent);background:var(--accent-l)}
.photo-slot.filled{border-style:solid;border-color:var(--ok);background:#fff}
.photo-slot.extra{border-color:#c4b5fd;background:#f5f3ff}
.photo-slot img{width:100%;height:100%;object-fit:cover}
.photo-slot .label{font-size:9.5px;font-weight:700;color:var(--muted);margin-top:3px;text-align:center;line-height:1.1}
.photo-slot .icon{font-size:20px;opacity:.55}
.photo-slot .remove{position:absolute;top:3px;right:3px;background:rgba(15,18,24,.75);color:#fff;border:none;border-radius:50%;width:20px;height:20px;font-size:11px;display:grid;place-items:center;cursor:pointer;z-index:2}
.photo-slot.main::after{content:"★ HAUPT";position:absolute;bottom:0;left:0;right:0;background:var(--grad);color:#fff;font-size:8px;font-weight:900;text-align:center;padding:2px}
.photo-slot .adjust{position:absolute;bottom:3px;right:3px;background:rgba(226,0,26,.9);color:#fff;border:none;border-radius:50%;width:22px;height:22px;font-size:11px;display:grid;place-items:center;cursor:pointer;z-index:3;padding:0}
.photo-slot .ai-btn{position:absolute;top:3px;left:3px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;border:none;border-radius:50%;width:24px;height:24px;font-size:13px;display:grid;place-items:center;cursor:pointer;z-index:4;padding:0;box-shadow:0 2px 8px rgba(124,58,237,.5)}
@media(max-width:600px){.photo-slots{grid-template-columns:repeat(4,1fr);gap:5px}.photo-slot .label{font-size:8px}.photo-slot .icon{font-size:16px}.photo-slot .adjust{width:18px;height:18px;font-size:9px}}
.mini-cube-stage{position:absolute;inset:0;perspective:600px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 60%,#3a4250 0%,#1a1f28 65%,#0a0d12 100%)}
.mini-cube{position:relative;transform-style:preserve-3d;width:90px;height:70px;animation:miniCubeSpin 14s linear infinite}
.mini-cube .mc-face{position:absolute;top:50%;left:50%;overflow:hidden;backface-visibility:hidden;background:#f4f6f9;box-shadow:inset 0 0 0 1.5px rgba(30,35,42,.85)}
.mini-cube .mc-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mini-cube .mc-front{width:90px;height:70px;margin-left:-45px;margin-top:-35px;transform:rotateY(0deg) translateZ(96px)}
.mini-cube .mc-back{width:90px;height:70px;margin-left:-45px;margin-top:-35px;transform:rotateY(180deg) translateZ(96px)}
.mini-cube .mc-left{width:192px;height:70px;margin-left:-96px;margin-top:-35px;transform:rotateY(90deg) translateZ(45px)}
.mini-cube .mc-right{width:192px;height:70px;margin-left:-96px;margin-top:-35px;transform:rotateY(-90deg) translateZ(45px)}
.mini-cube .mc-top{width:90px;height:192px;margin-left:-45px;margin-top:-96px;transform:rotateX(90deg) rotateZ(180deg) translateZ(35px)}
.mini-cube .mc-bottom{width:90px;height:192px;margin-left:-45px;margin-top:-96px;transform:rotateX(-90deg) translateZ(35px);background:#000;border:1px solid #000}
.mini-cube.sm{width:55px;height:42px}
.mini-cube.sm .mc-front,.mini-cube.sm .mc-back{width:55px;height:42px;margin-left:-27.5px;margin-top:-21px}
.mini-cube.sm .mc-front{transform:rotateY(0deg) translateZ(58px)}
.mini-cube.sm .mc-back{transform:rotateY(180deg) translateZ(58px)}
.mini-cube.sm .mc-left,.mini-cube.sm .mc-right{width:116px;height:42px;margin-left:-58px;margin-top:-21px}
.mini-cube.sm .mc-left{transform:rotateY(90deg) translateZ(27.5px)}
.mini-cube.sm .mc-right{transform:rotateY(-90deg) translateZ(27.5px)}
.mini-cube.sm .mc-top,.mini-cube.sm .mc-bottom{width:55px;height:116px;margin-left:-27.5px;margin-top:-58px}
.mini-cube.sm .mc-top{transform:rotateX(90deg) rotateZ(180deg) translateZ(21px)}
.mini-cube.sm .mc-bottom{transform:rotateX(-90deg) translateZ(21px)}
@keyframes miniCubeSpin{from{transform:rotateX(-18deg) rotateY(0deg)}to{transform:rotateX(-18deg) rotateY(360deg)}}
.gallery-main{position:relative;background:#0a0d12;overflow:hidden;display:grid;place-items:center;min-height:240px;max-height:82vh;cursor:zoom-in}
.gallery-main img{max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;pointer-events:none}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(15,18,24,.65);color:#fff;border:none;width:38px;height:38px;border-radius:50%;font-size:18px;display:grid;place-items:center;cursor:pointer;z-index:2}
.gallery-nav.prev{left:10px}.gallery-nav.next{right:10px}
.gallery-thumbs{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:10px;background:#fafbfc}
.gallery-thumb{aspect-ratio:1;border:2px solid var(--line);border-radius:8px;overflow:hidden;cursor:pointer;background:#fff;padding:0}
.gallery-thumb.active{border-color:var(--accent)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-counter{position:absolute;bottom:10px;right:10px;background:rgba(15,18,24,.7);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px;z-index:3}
.gallery-zoom-hint{position:absolute;bottom:10px;left:10px;background:rgba(15,18,24,.7);color:#fff;font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:20px;z-index:3}
#gallery3DStage{position:absolute;inset:0;background:radial-gradient(circle at 50% 55%,#3a4250 0%,#1a1f28 60%,#0a0d12 100%);display:none}
.gallery-cube-stage{width:100%;height:100%;perspective:1400px;display:grid;place-items:center;cursor:grab;touch-action:none;position:relative;min-height:280px}
.gallery-cube{position:relative;transform-style:preserve-3d;width:130px;height:100px}
.gallery-cube .cube3d-face{position:absolute;top:50%;left:50%;overflow:hidden;backface-visibility:hidden;background:#f4f6f9}
.gallery-cube .cube3d-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gallery-cube .cube3d-face.front{width:130px;height:100px;margin-left:-65px;margin-top:-50px;transform:rotateY(0deg) translateZ(140px)}
.gallery-cube .cube3d-face.back{width:130px;height:100px;margin-left:-65px;margin-top:-50px;transform:rotateY(180deg) translateZ(140px)}
.gallery-cube .cube3d-face.left{width:280px;height:100px;margin-left:-140px;margin-top:-50px;transform:rotateY(-90deg) translateZ(65px)}
.gallery-cube .cube3d-face.right{width:280px;height:100px;margin-left:-140px;margin-top:-50px;transform:rotateY(90deg) translateZ(65px)}
.gallery-cube .cube3d-face.top{width:130px;height:280px;margin-left:-65px;margin-top:-140px;transform:rotateX(90deg) rotateZ(180deg) translateZ(50px)}
.gallery-cube .cube3d-face.bottom{width:130px;height:280px;margin-left:-65px;margin-top:-140px;transform:rotateX(-90deg) translateZ(50px);background:#000}
.gallery-thumb-3d{background:var(--grad);border-color:#e2001a;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}
.photo-fullscreen-overlay{position:fixed;inset:0;background:rgba(0,0,0,.96);z-index:300;display:none;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.photo-fullscreen-overlay.open{display:flex}
.photo-fullscreen-overlay img{max-width:100%;max-height:100%;object-fit:contain}
.photo-fullscreen-close{position:absolute;top:20px;right:20px;background:rgba(255,255,255,.15);color:#fff;border:none;width:44px;height:44px;border-radius:12px;font-size:20px;cursor:pointer}
.race-wrap{max-width:1100px;margin:0 auto;padding:20px 16px 60px}
.race-hero{background:linear-gradient(135deg,#1a1f2e 0%,#e2001a 100%);color:#fff;border-radius:24px;padding:34px 26px;margin-bottom:20px;text-align:center;box-shadow:0 20px 60px rgba(226,0,26,.25)}
.race-hero h2{margin:0 0 8px;font-size:32px;font-weight:900;letter-spacing:-1px}
.race-hero p{margin:0;opacity:.92;font-size:14px;font-weight:600}
.race-difficulty{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.race-diff-btn{background:rgba(0,0,0,.35);border:2px solid rgba(255,255,255,.35);color:#fff;padding:9px 18px;border-radius:11px;font-size:13px;font-weight:800;cursor:pointer}
.race-diff-btn.active{background:#fff;color:#e2001a;border-color:#fff}
.garage-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.garage-header h3{margin:0;font-size:20px;font-weight:900;display:flex;align-items:center;gap:8px}
.garage-header h3 .badge{background:var(--grad);color:#fff;font-size:12px;padding:3px 10px;border-radius:20px;font-weight:900}
.race-garage{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-bottom:20px}
.race-car-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;transition:.2s;display:flex;flex-direction:column;position:relative}
.race-car-card:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(16,24,40,.15);border-color:var(--accent)}
.race-car-thumb{aspect-ratio:16/10;background:linear-gradient(180deg,#e8ecf2 0%,#cfd6e0 100%);position:relative;display:grid;place-items:center;overflow:hidden}
.race-car-thumb img{max-width:90%;max-height:90%;object-fit:contain;filter:drop-shadow(0 12px 20px rgba(0,0,0,.35));z-index:2}
.race-stars{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.7);color:#ffd54f;font-size:13px;font-weight:900;padding:4px 10px;border-radius:20px;z-index:3}
.race-best{position:absolute;bottom:10px;right:10px;background:linear-gradient(135deg,#f4b400 0%,#ffd54f 100%);color:#4a2f00;font-size:11.5px;font-weight:900;padding:5px 10px;border-radius:10px;font-family:ui-monospace,monospace;z-index:3}
.race-car-body{padding:12px 14px 4px}
.race-car-title{font-size:14px;font-weight:900;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.race-xp-row{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);font-weight:800;margin:6px 0 4px;text-transform:uppercase}
.race-xp-bar{height:7px;background:#eceef2;border-radius:8px;overflow:hidden}
.race-xp-fill{height:100%;background:linear-gradient(90deg,#a855f7 0%,#e2001a 100%);border-radius:8px;transition:width .4s}
.race-car-actions{display:flex;gap:6px;padding:10px 12px 12px;flex-wrap:wrap}
.race-car-actions button{flex:1;min-width:70px;padding:9px 6px;font-size:12px}
.race-lb-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:16px}
.race-lb-panel h3{margin:0 0 12px;font-size:16px;font-weight:900}
.race-lb-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line);font-size:13px}
.race-lb-rank{width:28px;height:28px;border-radius:50%;background:#f0f1f4;display:grid;place-items:center;font-weight:900;font-size:12px}
.race-lb-rank.gold{background:linear-gradient(135deg,#f4b400,#ffd54f);color:#4a2f00}
.race-lb-rank.silver{background:linear-gradient(135deg,#b0b0b0,#e0e0e0);color:#333}
.race-lb-rank.bronze{background:linear-gradient(135deg,#cd7f32,#e8a86a);color:#fff}
.race-lb-info{flex:1;min-width:0}
.race-lb-name{font-weight:800}
.race-lb-car{font-size:11px;color:var(--muted);margin-top:1px}
.race-lb-time{font-family:ui-monospace,monospace;font-weight:900;color:var(--accent);font-size:13.5px}
.race-lb-empty{padding:30px 20px;text-align:center;color:var(--muted);font-size:13px}
.race-overlay{position:fixed;inset:0;background:#000;z-index:300;display:none;overflow:hidden}
.race-overlay.open{display:block}
.race-canvas-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
#raceCanvas{max-width:100%;max-height:100%;width:auto;height:auto;pointer-events:none}
.race-hud{position:absolute;inset:0;pointer-events:none;z-index:5;padding:14px;display:flex;flex-direction:column;justify-content:space-between}
.race-hud-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.race-hud-box{background:rgba(0,0,0,.78);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:10px 16px;color:#fff;font-weight:900;text-align:center}
.race-speed-num{font-size:38px;line-height:1;font-family:ui-monospace,monospace;text-shadow:0 0 20px rgba(255,92,51,.8)}
.race-speed-unit{font-size:10px;opacity:.75;letter-spacing:1.5px;text-transform:uppercase}
.race-timer-num{font-size:24px;font-family:ui-monospace,monospace;color:#22c55e}
.race-gear-num{font-size:38px;line-height:1;color:#ff5c33;font-weight:900}
.race-gear-num.pop{animation:gearPop .35s}
@keyframes gearPop{0%{transform:scale(1)}40%{transform:scale(1.5);color:#22c55e}100%{transform:scale(1)}}
.race-combo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);z-index:12;text-align:center;opacity:0;transition:opacity .3s;pointer-events:none}
.race-combo.show{opacity:1;animation:comboPunch .6s ease-out}
@keyframes comboPunch{0%{transform:translate(-50%,-50%) scale(.3) rotate(-15deg);opacity:0}30%{transform:translate(-50%,-50%) scale(1.3) rotate(5deg);opacity:1}100%{transform:translate(-50%,-50%) scale(1) rotate(0);opacity:1}}
.race-combo-num{font-size:96px;font-weight:900;line-height:1;background:linear-gradient(135deg,#ffd54f,#ff5c33,#e2001a);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.race-combo-label{font-size:22px;font-weight:900;color:#fff;letter-spacing:3px;text-transform:uppercase;margin-top:4px}
.race-hud-middle{display:flex;flex-direction:column;align-items:center;padding:0 12px}
.race-rpm-bar{position:relative;width:100%;max-width:680px;height:32px;background:rgba(0,0,0,.9);border:1px solid rgba(255,255,255,.18);border-radius:16px;overflow:hidden}
.race-rpm-bar.danger{animation:dangerPulse .3s infinite}
@keyframes dangerPulse{0%,100%{box-shadow:0 0 0 rgba(239,68,68,0)}50%{box-shadow:0 0 40px rgba(239,68,68,.8)}}
.rpm-fill{position:absolute;left:0;top:0;bottom:0;width:0%;background:linear-gradient(90deg,#16a34a,#84cc16,#eab308,#f97316,#dc2626,#7f1d1d);border-radius:16px}
.rpm-perfect-zone{position:absolute;top:0;bottom:0;left:85%;width:8.75%;background:linear-gradient(90deg,rgba(34,197,94,.2),rgba(34,197,94,.7));border-left:3px solid #22c55e;border-right:3px solid #22c55e;z-index:2}
.rpm-perfect-zone::before{content:"PERFEKT";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:9px;font-weight:900;color:#fff;letter-spacing:1px;text-shadow:0 0 10px #22c55e}
.race-shift-msg{position:absolute;top:-10px;left:50%;transform:translate(-50%,-100%);font-size:28px;font-weight:900;text-transform:uppercase;letter-spacing:3px;color:#22c55e;opacity:0;white-space:nowrap;text-shadow:0 0 40px rgba(34,197,94,1),0 0 8px #000;transition:opacity .15s}
.race-shift-msg.show{opacity:1}
.race-shift-msg.perfect{color:#22c55e}.race-shift-msg.good{color:#84cc16}.race-shift-msg.early{color:#eab308}.race-shift-msg.bad{color:#ef4444}
.race-hud-bottom{display:flex;justify-content:center}
.race-pos-box{background:rgba(0,0,0,.78);border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:8px 20px;color:#fff;font-weight:900;font-size:14px}
.race-controls{
  position:absolute;left:0;right:0;
  top:230px;
  padding:0 22px;z-index:220;
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;pointer-events:none;
}
@media(max-width:720px){.race-controls{top:180px;padding:0 12px;gap:10px}}
@media(max-width:480px){.race-controls{top:150px;padding:0 8px;gap:6px}}

.race-btn{
  border:none;border-radius:22px;color:#fff;font-weight:900;font-size:18px;
  padding:18px 34px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,rgba(20,25,35,.95),rgba(10,15,25,.95));
  border:2.5px solid rgba(255,255,255,.4);
  backdrop-filter:blur(14px);
  user-select:none;cursor:pointer;pointer-events:auto;
  touch-action:none;letter-spacing:1.2px;text-transform:uppercase;
  transition:transform .1s cubic-bezier(.34,1.56,.64,1),box-shadow .15s,filter .15s;
  box-shadow:0 8px 32px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.25);
  animation:raceBtnFloat 2.4s ease-in-out infinite;
}
.race-btn::after{
  content:"";position:absolute;top:-50%;left:-100%;
  width:60%;height:200%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent);
  transform:rotate(25deg);
  animation:raceBtnShine 3s ease-in-out infinite;
}
@keyframes raceBtnFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes raceBtnShine{0%,100%{left:-100%}50%{left:150%}}
.race-btn:active,.race-btn.hit{transform:scale(.93) translateY(2px);animation-play-state:paused}
.race-btn:active::after,.race-btn.hit::after{animation-play-state:paused}

.race-btn-shift-up{
  background:linear-gradient(135deg,#22c55e 0%,#15803d 100%);
  border-color:#86efac;min-width:220px;font-size:21px;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
  box-shadow:0 0 50px rgba(34,197,94,.9),0 8px 32px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.35);
  animation:raceBtnFloat 2.4s ease-in-out infinite,raceBtnPulseGreen 1.6s ease-in-out infinite;
}
@keyframes raceBtnPulseGreen{
  0%,100%{box-shadow:0 0 50px rgba(34,197,94,.7),0 8px 32px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.35)}
  50%{box-shadow:0 0 85px rgba(34,197,94,1),0 8px 32px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.35)}
}
.race-btn-shift-up:active,.race-btn-shift-up.hit{box-shadow:0 0 120px rgba(34,197,94,1),0 4px 16px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.35)}

.race-btn-shift-down{
  background:linear-gradient(135deg,#dc2626 0%,#7f1d1d 100%);
  border-color:#fca5a5;min-width:120px;font-size:16px;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
  box-shadow:0 0 40px rgba(220,38,38,.75),0 8px 32px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.3);
}
.race-btn-shift-down:active,.race-btn-shift-down.hit{box-shadow:0 0 80px rgba(220,38,38,.95),0 4px 16px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.3)}
@media(max-width:600px){
  .race-btn{padding:14px 20px;font-size:14px;border-radius:16px;letter-spacing:.8px}
  .race-btn-shift-up{min-width:160px;font-size:16px}
  .race-btn-shift-down{min-width:95px;font-size:14px}
}

.race-exit{position:absolute;top:12px;right:12px;z-index:230;background:rgba(0,0,0,.8);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:10px 14px;font-size:16px;font-weight:900;cursor:pointer}
.race-tree{position:absolute;top:100px;left:50%;transform:translateX(-50%);z-index:8;display:flex;gap:10px;padding:14px 18px;background:rgba(0,0,0,.88);border-radius:16px;border:1px solid rgba(255,255,255,.2);opacity:0;transition:opacity .2s}
.race-tree.show{opacity:1}
.race-tree-light{width:26px;height:26px;border-radius:50%;background:#1a1f28;border:2px solid #000}
.race-tree-light.yellow.on{background:radial-gradient(circle at 30% 30%,#fde68a,#fbbf24);box-shadow:0 0 30px #fbbf24}
.race-tree-light.green.on{background:radial-gradient(circle at 30% 30%,#86efac,#22c55e);box-shadow:0 0 40px #22c55e}
.race-tree-light.red.on{background:radial-gradient(circle at 30% 30%,#fca5a5,#ef4444);box-shadow:0 0 30px #ef4444}
.race-countdown{position:absolute;inset:0;z-index:30;background:rgba(0,0,0,.75);display:grid;place-items:center;color:#fff;text-align:center;pointer-events:none;backdrop-filter:blur(6px)}
.race-countdown .num{font-size:180px;font-weight:900;color:#ff5c33;line-height:1}
.race-countdown .sub{font-size:20px;opacity:.85;margin-top:20px;letter-spacing:5px;text-transform:uppercase;font-weight:900}
.race-result{position:absolute;inset:0;z-index:240;background:rgba(0,0,0,.94);display:grid;place-items:center;padding:20px;overflow-y:auto}
.race-result-box{background:#fff;border-radius:24px;padding:36px 30px;max-width:500px;width:100%;text-align:center}
.race-result-box .icon{font-size:80px;margin-bottom:8px}
.race-result-box h2{margin:0 0 6px;font-size:32px;font-weight:900;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.race-result-box .time{font-size:48px;font-weight:900;color:#22c55e;margin:14px 0 4px;font-family:ui-monospace,monospace}
.race-result-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:20px 0 8px}
.race-result-stat{background:#f7f8fa;border-radius:12px;padding:12px 8px}
.race-result-stat .v{font-size:24px;font-weight:900}
.race-result-stat .v.perfect{color:#22c55e}.race-result-stat .v.early{color:#eab308}.race-result-stat .v.bad{color:#ef4444}
.race-result-stat .l{font-size:10px;color:var(--muted);text-transform:uppercase;margin-top:3px;font-weight:800}
.race-xp-gain{background:linear-gradient(135deg,#f3e8ff,#ede9fe);border:1px solid #d8b4fe;border-radius:12px;padding:12px 16px;margin-top:14px;font-size:14px;font-weight:900;color:#7c3aed}
.race-xp-gain.big{background:linear-gradient(135deg,#fff9e6,#fff5cc);border-color:#ffe082;color:#8a6100;font-size:17px;animation:pb 1s infinite}
@keyframes pb{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.race-result-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap;justify-content:center}
.race-result-actions .btn{flex:1;min-width:140px;justify-content:center;padding:15px;font-size:15px}

.veh-preview{aspect-ratio:16/10;background:repeating-linear-gradient(45deg,#f0f2f5 0 10px,#e8eaef 10px 20px);border:1px solid var(--line);border-radius:14px;display:grid;place-items:center;overflow:hidden;margin-bottom:10px;padding:12px;position:relative}
.veh-preview img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 12px 20px rgba(0,0,0,.25))}
.veh-preview .ph{color:var(--muted);font-size:13px;text-align:center;padding:20px}
.ai-load{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(135deg,#f3e8ff,#fae8ff);border:1px solid #d8b4fe;border-radius:12px;margin-bottom:10px;font-size:13px;font-weight:800;color:#7c3aed}
.ai-spin{width:18px;height:18px;border:2.5px solid #d8b4fe;border-top-color:#7c3aed;border-radius:50%;animation:sp .8s linear infinite;flex-shrink:0}
@keyframes sp{to{transform:rotate(360deg)}}
.wheel-canvas-wrap{background:#1a1f28;border-radius:14px;padding:10px;margin-bottom:12px;position:relative;overflow:hidden;display:grid;place-items:center;min-height:240px}
#wheelCanvas{max-width:100%;max-height:70vh;touch-action:none;cursor:crosshair;display:block}
.win-car-section{background:linear-gradient(135deg,#f4b400 0%,#fbbf24 100%);color:#4a2f00;border-radius:18px;padding:18px;margin-bottom:16px;position:relative;overflow:hidden}
.win-car-section::before{content:"🏆";position:absolute;top:-20px;right:-10px;font-size:120px;opacity:.12;transform:rotate(-15deg)}
.win-car-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:1px;margin-bottom:10px}
.win-car-body{display:flex;gap:14px;align-items:center;position:relative;z-index:1}
.win-car-thumb{width:100px;height:100px;background:#fff;border-radius:14px;overflow:hidden;flex-shrink:0;display:grid;place-items:center}
.win-car-thumb img{max-width:95%;max-height:95%;object-fit:contain}
.win-car-info{flex:1;min-width:0}
.win-car-info .name{font-size:17px;font-weight:900;margin-bottom:4px}
.win-car-info .stats{font-size:12.5px;font-weight:700;opacity:.85}
.showcase-block{background:linear-gradient(135deg,#1a1f28 0%,#2b3140 100%);border-radius:18px;padding:18px;margin-bottom:16px;color:#fff;text-align:center}
.showcase-head-label{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:2px;color:#f4b400;margin-bottom:6px}
.showcase-thumb-lg{width:100%;aspect-ratio:16/10;background:#0a0d12;border-radius:14px;overflow:hidden;margin-bottom:12px;position:relative;display:grid;place-items:center}
.showcase-thumb-lg img{max-width:100%;max-height:100%;object-fit:contain}
.showcase-name{font-size:16px;font-weight:800;margin-bottom:6px}

.vitrine-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
@media(max-width:520px){.vitrine-grid{gap:5px}}
.vitrine-col{display:flex;flex-direction:column;min-width:0}
.vitrine-cat-header{text-align:center;font-size:10px;font-weight:800;text-transform:uppercase;color:#4a5a68;background:linear-gradient(135deg,rgba(210,230,240,.55),rgba(180,205,220,.35));padding:4px;border-radius:6px 6px 0 0;border:1px solid rgba(150,180,200,.4);border-bottom:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.glass-vitrine{position:relative;border-radius:0 0 4px 4px;box-shadow:0 6px 20px rgba(20,40,60,.15);overflow:hidden;flex:1;display:flex;flex-direction:column;background:linear-gradient(180deg,rgba(235,245,250,.35),rgba(200,220,235,.20) 50%,rgba(220,235,245,.30));border-left:1.5px solid rgba(200,220,235,.55);border-right:1.5px solid rgba(200,220,235,.55);border-bottom:2px solid rgba(160,185,205,.5)}
.vitrine-glass-body{padding:4px 3px;background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.05) 8%,rgba(200,225,240,.10) 50%,rgba(255,255,255,.05) 92%,rgba(255,255,255,.15));flex:1;backdrop-filter:blur(3px)}
.vitrine-slot-row{display:flex;flex-direction:column;gap:3px}
.glass-slot{aspect-ratio:1;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;border-radius:4px;background:radial-gradient(ellipse at center bottom,rgba(255,255,255,.10),transparent 75%);border:1px dashed rgba(180,210,225,.35);overflow:hidden}
.glass-slot.filled{border-style:solid;border-color:rgba(200,220,235,.5);background:#fff}
.glass-slot img{width:100%;height:100%;object-fit:contain;padding:2px}
.glass-slot .plus{color:rgba(120,150,170,.55);font-size:15px}
.glass-slot .rm-btn{position:absolute;top:1px;right:1px;background:rgba(0,0,0,.75);color:#fff;border:none;width:15px;height:15px;border-radius:50%;font-size:9px;cursor:pointer;z-index:6;opacity:0}
.glass-slot:hover .rm-btn{opacity:1}
.glass-slot .lbl{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);background:rgba(20,40,60,.78);color:#fff;font-size:7px;font-weight:800;padding:1px 5px;border-radius:8px;max-width:96%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.comm-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}
.comm-card h3{margin:0 0 12px;font-size:16px;display:flex;align-items:center;gap:6px}
.top-model-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line);cursor:pointer}
.top-model-row:first-of-type{border-top:none}
.top-model-row .rank{font-size:16px;font-weight:900;width:24px;text-align:center;flex-shrink:0}
.top-model-row .rank.gold{color:#f4b400}
.top-model-row .rank.silver{color:#94a3b8}
.top-model-row .rank.bronze{color:#b45309}
.top-model-row .mini-img{width:48px;height:48px;border-radius:9px;background:#1a1f28;overflow:hidden;flex-shrink:0;display:grid;place-items:center;font-size:20px;position:relative}
.top-model-row .mini-img img{width:100%;height:100%;object-fit:contain;padding:2px}
.top-model-row .info{flex:1;min-width:0}
.top-model-row .info .name{font-size:13.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-model-row .info .owner{font-size:11.5px;color:var(--muted);margin-top:2px}
.top-model-row .score{font-size:13px;font-weight:850;color:#f4b400;flex-shrink:0}
.race-leaderboard-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#f7f8fa;margin-bottom:8px}
.race-leaderboard-row.top1{background:linear-gradient(135deg,#fff9e6,#fff5cc);border:1px solid #ffe082}
.race-leaderboard-row.top2{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border:1px solid #cbd5e1}
.race-leaderboard-row.top3{background:linear-gradient(135deg,#fef3e7,#fddfc4);border:1px solid #fbbf24}
.race-leaderboard-rank{font-size:22px;font-weight:900;width:36px;text-align:center}
.race-leaderboard-photo{width:56px;height:56px;border-radius:10px;background:#1a1f28;overflow:hidden;flex-shrink:0}
.race-leaderboard-photo img{width:100%;height:100%;object-fit:contain;padding:2px}
.race-leaderboard-info{flex:1;min-width:0}
.race-leaderboard-name{font-weight:800;font-size:14px}
.race-leaderboard-car{font-size:12px;color:var(--muted);margin-top:2px}
.race-leaderboard-time{font-family:ui-monospace,monospace;font-weight:900;color:var(--accent);font-size:16px}
.model-score{display:inline-flex;align-items:center;gap:3px;background:linear-gradient(135deg,#fff9e6,#fff5cc);border:1px solid #ffe082;border-radius:12px;padding:2px 8px;font-size:11px;font-weight:800;color:#8a6100}
.seller-score{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#fff9e6,#fff5cc);border:1px solid #ffe082;border-radius:14px;padding:2px 9px;font-size:11px;font-weight:800;color:#8a6100;margin-left:6px}
.seller-score.no{background:#f7f8fa;border-color:var(--line);color:var(--muted)}
.star-row{display:inline-flex;gap:2px}
.star-btn{font-size:28px;line-height:1;color:#d1d5db;background:none;border:none;padding:2px;cursor:pointer}
.star-btn.on{color:#f4b400}
.star-btn.small{font-size:20px}
.star-btn:disabled{cursor:default}
.sil-canvas-wrap{background:#f0f2f5;border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:14px}
#silCanvas{width:100%;display:block;border-radius:8px;touch-action:none;cursor:grab}
.vis-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#f7f8fa;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
.vis-toggle-info{flex:1}
.vis-toggle-label{font-weight:800;font-size:14px}
.vis-toggle-sub{font-size:11.5px;color:var(--muted)}
.vis-toggle-btn{padding:10px 18px;border-radius:10px;font-weight:900;font-size:12.5px;border:2px solid;letter-spacing:.5px;text-transform:uppercase;white-space:nowrap}
.vis-toggle-btn.on{background:#dcfce7;color:#166534;border-color:#86efac}
.vis-toggle-btn.off{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
.vis-info-box{background:#f0f9ff;border:1px solid #bae6fd;border-radius:12px;padding:12px 14px;font-size:12.5px;color:#075985;margin-bottom:16px;line-height:1.5}

.motorsport-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 12px;background:#132536;max-width:1400px;margin:auto}.motorsport-nav .tab{white-space:normal;border-radius:10px;color:#fff;background:#233d52;padding:12px 3px;font-size:14px}.motorsport-nav .tab.active{background:#176f98;color:white}#topVitrines{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}#topVitrines .top-model-row{display:grid;grid-template-columns:40px 1fr auto;gap:10px;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--card);overflow:hidden}#topVitrines .mini-img{grid-column:1/-1;width:100%;height:auto;aspect-ratio:4/3;order:-1;position:relative;border-radius:12px;overflow:hidden;background:var(--bg)}#topVitrines .mini-img>img{width:100%;height:100%;object-fit:cover;padding:0}#topVitrines .mini-img .mini-cube-stage{width:100%;height:100%}#topVitrines .info{min-width:0}#topVitrines .name{white-space:normal}.build-stamp{font-size:12px;opacity:.7;margin-top:12px}@media(max-width:600px){.motorsport-nav .tab{font-size:12px}#topVitrines{grid-template-columns:1fr}}
#viewRacingHub{position:sticky;top:var(--race-tabs-top,148px);z-index:54;background:#fff;box-shadow:0 5px 15px #10243b12}#viewRacingHub>div{margin:0 auto!important;padding:8px 12px!important}#viewRacingHub h2{display:none}.motorsport-nav{border-radius:12px;padding:6px}.photo-slot .ai-btn{width:auto;height:auto;max-width:calc(100% - 8px);border-radius:8px;font-size:11px;left:4px;top:auto;bottom:4px;padding:5px 7px;display:flex}.photo-slot .view-label{position:absolute;left:4px;top:4px;background:#ffffffda;padding:3px 6px;border-radius:6px;font-size:11px;pointer-events:none}.race-mode-switch{position:absolute;top:185px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:20}.race-mode-switch button{color:white;background:#20374c;border:1px solid #ffffff50;border-radius:9px;padding:8px 14px;font-weight:800}.race-mode-switch button.btn-primary{background:#e53935}
#raceOverlay .race-controls{top:auto!important;bottom:max(28px,env(safe-area-inset-bottom))!important;padding:0 18px!important}#raceOverlay .race-controls .race-btn{min-width:0!important;width:68px!important;height:126px!important;font-size:45px!important;display:flex;flex-direction:column;justify-content:center;gap:8px}#raceOverlay .race-btn small{font-size:9px!important;letter-spacing:.5px}#raceOverlay .race-hud-middle{position:absolute;top:164px;left:0;right:0;padding:0 20px}#raceOverlay .race-rpm-bar{height:28px}#raceOverlay .race-mode-switch{top:244px}#raceOverlay .race-shift-msg{top:36px;transform:translateX(-50%);font-size:20px}@media(max-height:500px){#raceOverlay .race-tree{top:70px;padding:8px 14px}#raceOverlay .race-hud-middle{top:126px}#raceOverlay .race-mode-switch{top:200px}#raceOverlay .race-controls .race-btn{height:90px!important;width:56px!important}#raceOverlay .race-controls{bottom:12px!important}}
.race-pos-box{max-width:92vw;white-space:normal;font-size:clamp(11px,3vw,16px)}#admin18Rows .admin-row{flex-wrap:wrap;gap:10px}#admin18Rows .admin-row-info{min-width:180px}#admin18Rows input[type=checkbox]{width:22px;height:22px;flex:0 0 22px}#admin18Rows .admin-row-actions{flex-wrap:wrap}#admin18Rows select{max-width:150px}#wheelControls details{margin:8px 0}#wheelControls p{margin:4px 0}#wheelControls summary{cursor:pointer;font-size:12px}

.mc-plinth18{--pw:100px;--pl:202px;--ph:14px;--py:35px;position:absolute;left:50%;top:50%;transform-style:preserve-3d;transform:translateY(var(--py))}.mini-cube.sm .mc-plinth18{--pw:63px;--pl:124px;--ph:9px;--py:21px}.mc-plinth18 i{position:absolute;display:block;background:repeating-linear-gradient(3deg,#583b27 0px,#745034 3px,#815d3c 5px,#65462e 7px);border:1px solid #382619;backface-visibility:hidden;box-sizing:border-box}.plinth-front18,.plinth-back18{width:var(--pw);height:var(--ph);margin-left:calc(var(--pw) / -2)}.plinth-front18{transform:translateZ(calc(var(--pl) / 2))}.plinth-back18{transform:rotateY(180deg) translateZ(calc(var(--pl) / 2))}.plinth-left18,.plinth-right18{width:var(--pl);height:var(--ph);margin-left:calc(var(--pl) / -2)}.plinth-left18{transform:rotateY(90deg) translateZ(calc(var(--pw) / 2))}.plinth-right18{transform:rotateY(-90deg) translateZ(calc(var(--pw) / 2))}.plinth-top18{width:var(--pw);height:var(--pl);margin-left:calc(var(--pw) / -2);margin-top:calc(var(--pl) / -2);transform:rotateX(90deg)}


#labSetup{display:none!important}.mini-cube-stage{background:transparent!important}.mini-cube .mc-face{background:transparent!important;box-shadow:inset 0 0 0 1px #bed3df70!important}.mini-cube .mc-face:not(.mc-bottom)::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,#e3f7ff18,transparent 35%,transparent 70%,#d2e9f61a);border:1px solid #bfd3de55}.mini-cube .mc-bottom{background:#141414!important}.mc-plinth18 i{background:repeating-linear-gradient(3deg,#0b0c0d 0px,#222426 3px,#151718 5px,#292b2d 7px)!important;border-color:#060708!important}.mini-cube-stage::before,.mini-cube-stage::after,#myListings .mini-cube-stage::before{content:none!important}.batch-cards19{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.batch-card19 img{width:100%;height:125px;object-fit:contain;background:#edf0f3;border-radius:10px}.batch-card19 select{width:100%;padding:10px;margin-top:6px}.garage-advanced details{padding:10px 0}#batchPhotos19{z-index:900}.mc-plinth18{--ph:18px}.mini-cube.sm .mc-plinth18{--ph:12px}

[class~="3d-badge"]{display:none!important}
#batchFiles19{display:block!important;width:100%;min-height:60px;padding:14px;background:#edf3fa;border:2px dashed #7089a1;border-radius:12px}#batchPhotos19 .modal-body{max-height:70vh;overflow:auto}.menu20{z-index:1200}.raceSharedActions20{display:grid;gap:8px}.levels20{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.levels20 button{min-width:45px}.progress20{position:fixed;bottom:12px;left:12px;right:12px;z-index:950;background:#172b40;color:white;padding:12px;border-radius:12px;box-shadow:0 4px 20px #0005}#raceMenu20{position:absolute;top:12px;right:55px;z-index:100}.mini-card{flex-wrap:wrap}

.mini-cube .mc-face img,.gallery-cube .cube3d-face img,.top-model-row .mini-img .mc-face img,.glass-slot .mc-face img,.showcase-thumb-lg .mc-face img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;padding:0}
.mini-cube.sm{animation:miniCubeSmallSpin 18s linear infinite}@keyframes miniCubeSmallSpin{from{transform:scale(.32) rotateX(-18deg) rotateY(0)}to{transform:scale(.32) rotateX(-18deg) rotateY(360deg)}}
.top-model-row .mini-img{width:64px;height:64px}.gallery-cube .cube3d-face img{display:block}
:focus-visible{outline:3px solid #9f7afa;outline-offset:3px}button{touch-action:manipulation}.lab-wrap{max-width:1240px;margin:auto;padding:22px 16px 60px}.lab-hero{padding:30px;border-radius:24px;background:radial-gradient(ellipse at top right,#554369,transparent),linear-gradient(120deg,#0b1520,#172a39);color:#fff;margin-bottom:20px}.lab-pill{font-size:11px;letter-spacing:2px;color:#d6c7ff;font-weight:800}.lab-hero h1{font-size:clamp(30px,5vw,50px);line-height:1.05;letter-spacing:-2px;margin:15px 0}.lab-hero p{max-width:680px;color:#bdc7d8}.lab-layout{display:grid;grid-template-columns:350px 1fr;gap:20px}.lab-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;min-width:0}.lab-panel h2{margin:0 0 14px;font-size:18px}.lab-panel label{display:block;font-size:12px;font-weight:750;margin:12px 0 5px}.lab-panel input:not([type=range]),.lab-panel select{width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8f9fb;min-width:0}.lab-panel input[type=range]{width:100%;accent-color:#e2001a}.lab-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lab-files{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lab-upload{border:1px dashed #a7b1c2;border-radius:12px;padding:10px;min-width:0;background:#f8f9fb}.lab-upload input[type=file]{padding:0;border:none;font-size:10px}.lab-upload img{height:62px;width:100%;object-fit:cover;border-radius:6px;margin:8px 0}.lab-upload .lab-crop{display:none}.lab-upload.has-photo .lab-crop{display:block}.lab-note{color:#647084;font-size:12px;line-height:1.65}.lab-stage{scroll-margin-top:170px;height:380px;background:#142131;border-radius:16px;position:relative;overflow:hidden;touch-action:none}.lab-stage canvas{display:block;width:100%;height:100%;touch-action:none}.lab-caption{position:absolute;bottom:12px;left:14px;color:#cdd7e5;font-size:11px;pointer-events:none}.lab-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.lab-actions .btn{flex:1}.lab-status{min-height:24px;font-size:13px;margin:12px 0;color:#17623c}.lab-status.error{color:#b91c1c}.lab-online{margin-top:20px;border:1px solid #d4d9e7;background:#f7f8fc;border-radius:14px;padding:16px}.lab-online h3{font-size:16px;margin:0 0 8px}.lab-players{margin:12px 0}.lab-player{display:flex;justify-content:space-between;border-top:1px solid #dde2ea;padding:10px 0;font-size:13px}.lab-badge{background:#e8f3ed;color:#1b6540;border-radius:8px;padding:3px 8px;font-size:11px}.lab-code{font-family:monospace;font-size:25px;letter-spacing:3px;font-weight:900}.lab-setup{margin-top:20px;border:1px solid #dce1ea;border-radius:16px;padding:18px;background:#fff}.lab-setup summary{font-weight:800;cursor:pointer}.lab-setup textarea{width:100%;height:180px;font:11px monospace;border:1px solid #ccd3df;border-radius:8px;padding:12px}.lab-game{position:fixed;inset:0;z-index:500;background:#0b1220;display:none;color:white;overflow:hidden;touch-action:none}.lab-game.open{display:block}.lab-game>canvas{display:block;width:100%;height:100%}.lab-hud{position:absolute;inset:max(14px,env(safe-area-inset-top)) 16px auto;display:flex;justify-content:space-between;gap:8px;pointer-events:none}.lab-hud>div{background:#101e30bd;padding:10px 14px;border:1px solid #ffffff20;border-radius:14px;backdrop-filter:blur(12px);font-weight:800;box-shadow:0 10px 30px #0002}.lab-hud small{font-size:11px;color:#c0cada}.lab-hud button{pointer-events:auto}.lab-speed{font-size:34px;font-variant-numeric:tabular-nums;line-height:1}.lab-controls{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:18px;right:18px;display:flex;justify-content:space-between;gap:12px}.lab-controls>div{display:flex;gap:8px}.lab-controls button{width:62px;height:60px;border-radius:16px;border:1px solid #c7d4eb60;background:#172a42c9;color:#fff;font-size:12px;font-weight:900;touch-action:none;user-select:none;backdrop-filter:blur(10px)}.lab-controls button:active,.lab-paddle:active{background:#e2001a!important}.lab-paddle{position:absolute;bottom:105px;width:65px;height:112px;background:linear-gradient(120deg,#546174dd,#17212fdd);border:1px solid #b3c0d48a;box-shadow:inset 0 1px #ffffff50,0 12px 30px #0006;color:white;font-size:44px;font-weight:300;touch-action:none;user-select:none;z-index:2}.lab-paddle.left{left:18px;border-radius:30px 10px 10px 30px}.lab-paddle.right{right:18px;border-radius:10px 30px 30px 10px}.lab-paddle small{display:block;font-size:9px;letter-spacing:1px}.lab-tacho{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:210px;text-align:center;background:#07111ece;border:1px solid #ffffff25;border-radius:24px;padding:12px 18px;backdrop-filter:blur(12px);pointer-events:none}.lab-gear{font-size:32px;font-weight:900;line-height:1}.lab-rpm{font-size:10px;color:#b7c4d8;letter-spacing:1px}.lab-rpmbar{height:5px;margin:8px 0;background:#34445e;border-radius:4px;overflow:hidden}.lab-rpmbar i{display:block;height:100%;background:linear-gradient(90deg,#31d6b1,#f6cf66,#fd485a);width:0}.lab-message{position:absolute;top:27%;left:10%;right:10%;text-align:center;font-size:clamp(25px,8vw,80px);font-weight:900;text-shadow:0 3px 20px #0007;pointer-events:none}.lab-end{position:absolute;inset:0;background:#08121edb;display:grid;place-items:center;padding:20px;z-index:10}.lab-end[hidden]{display:none}.lab-end>div{max-width:450px;width:100%;background:#fff;color:#111b29;padding:30px;border-radius:24px;text-align:center}.lab-end h2{font-size:30px}.lab-progress{position:absolute;top:0;left:0;right:0;height:4px;background:#1c2c42}.lab-progress i{display:block;height:100%;background:#ff5c42;width:0}.lab-error{color:#ffe5de;background:#492b32e8;padding:20px;position:absolute;inset:20px;border-radius:14px;display:none}.lab-game .lab-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 130px #00102055}
.race-controls{top:auto!important;bottom:max(18px,env(safe-area-inset-bottom))!important;justify-content:space-between!important;pointer-events:none;padding:0 24px!important}.race-controls .race-btn{min-width:65px!important;width:65px;height:120px;padding:8px!important;animation:none!important;letter-spacing:0;font-size:40px;background:linear-gradient(120deg,#627087dd,#14212fdd)!important;border:1px solid #c1cce0!important;box-shadow:0 8px 25px #0008!important;pointer-events:auto}.race-btn::after{display:none!important}.race-btn-shift-down{border-radius:35px 10px 10px 35px!important}.race-btn-shift-up{border-radius:10px 35px 35px 10px!important}.race-btn small{display:block;font-size:9px}
@media(max-width:850px){.lab-layout{grid-template-columns:1fr}.lab-hero{padding:24px}.lab-stage{height:310px}.lab-layout>.lab-panel:first-child{order:0}}@media(max-width:500px){.lab-wrap{padding:14px 10px 40px}.lab-panel{padding:16px}.lab-hud{inset:12px 10px auto}.lab-hud>div{padding:8px 10px}.lab-hud .btn{padding:8px;font-size:12px}.lab-speed{font-size:28px}.lab-tacho{width:128px;bottom:24px;padding:10px}.lab-controls{left:10px;right:10px;gap:4px}.lab-controls button{width:48px;height:58px;font-size:10px}.lab-controls>div{gap:5px}.lab-paddle.left{left:10px}.lab-paddle.right{right:10px}.lab-paddle{width:52px;height:100px}.lab-stage{height:280px}}@media(prefers-reduced-motion:reduce){.mini-cube{animation:none!important}}


.mini-cube-stage:not(.cube-visible16) .mini-cube{animation-play-state:paused!important}.mini-cube-stage.cube-visible16 .mini-cube{animation-play-state:running!important}html[data-page-hidden16] .mini-cube-stage .mini-cube{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.mini-cube-stage.cube-visible16 .mini-cube{animation-play-state:paused!important}}

.mini-cube{animation:fitCubeSpin 18s linear infinite!important}.mini-cube-stage{--cube-fit:.68}.mini-cube.sm{animation:fitCubeSpin 18s linear infinite!important}
@keyframes fitCubeSpin{from{transform:scale(var(--cube-fit,.68)) rotateX(-18deg) rotateY(0)}to{transform:scale(var(--cube-fit,.68)) rotateX(-18deg) rotateY(360deg)}}
#myListings .mini-cube-stage{border-radius:14px}#myListings .mini-cube-stage:before{content:'3D';position:absolute;bottom:4px;right:7px;font-size:10px;color:#ccd9eb}
.gallery-cube .cube3d-face.left{transform:rotateY(90deg) translateZ(65px)}.gallery-cube .cube3d-face.right{transform:rotateY(-90deg) translateZ(65px)}
#profileOverlay .modal{max-width:920px}#profileBody{padding:20px}.profile-header-new{background:radial-gradient(ellipse at top right,#355773,transparent),linear-gradient(120deg,#111c2a,#213448);color:white;border-radius:22px;padding:28px 18px;margin-bottom:20px}.profile-avatar-lg{width:92px;height:92px;border:4px solid #ffffffb0;box-shadow:0 8px 24px #0004}.profile-name-lg{font-size:27px;letter-spacing:-.6px}.profile-email-lg{color:#d1ddec!important;overflow-wrap:anywhere}.profile-quick-stats{gap:10px}.pqs-item{background:#ffffff12;border:1px solid #ffffff28;flex:1;max-width:150px}.pqs-num{color:white}.pqs-lbl{color:#dbe5f2}.profile-tabs{gap:6px;padding:8px;background:#edf1f7;border:0;border-radius:14px;margin-bottom:18px}.profile-tab{border:0;border-radius:9px;padding:11px 14px}.profile-tab.active{background:white;color:#b61732;box-shadow:0 3px 12px #23314615}.profile-info-row{background:#fff;padding:16px}.profile-header-new+.profile-tabs{position:sticky;top:58px;z-index:4}
.community15,.auto15{max-width:1100px;margin:20px auto;padding:0 16px}.forum-head{padding:26px;border-radius:22px;background:linear-gradient(120deg,#122439,#315875);color:white}.forum-head h1{margin:0 0 6px}.forum-head p{margin:0;color:#d9e4f1}.forum-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.forum-tabs button[aria-selected=true]{background:#19364e;color:white}.forum-card{background:white;border:1px solid #dde5ee;border-radius:15px;padding:18px;margin:12px 0}.forum-card h3{margin:0 0 8px}.forum-card p{white-space:pre-wrap;overflow-wrap:anywhere}.forum-card small{color:#67758a}.forum15-form{display:grid;gap:10px}.forum15-form input,.forum15-form textarea{padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;width:100%}.forum15-form textarea{min-height:100px}.auto15{padding:18px;background:white;border:1px solid #dce3ec;border-radius:18px}.auto15 h3{margin:0 0 6px}.auto15-list{max-height:260px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.auto15-item{display:flex;gap:12px;align-items:center;border:1px solid #e0e6ed;border-radius:13px;padding:12px}.auto15-item img{width:72px;height:52px;object-fit:contain}.auto15-item div{flex:1;min-width:0}.auto15-item small{display:block;color:#65758a;margin:5px 0}.auto15-item button{font-size:12px;padding:7px 10px}.presentation-note{padding:10px;background:#edf3fa;border-radius:10px;color:#314458;font-size:12px}
@media(max-width:520px){#profileBody{padding:12px}.profile-tabs{flex-wrap:wrap}.profile-tab{flex:1;font-size:12px;padding:10px 7px}.forum-head{padding:20px}.forum-tabs .btn{flex:1;font-size:12px}.auto15{margin:14px 10px}.auto15-item{align-items:flex-start}}


.mini-cube-stage{background:linear-gradient(#dce0e3,#b8bfc5)!important}.mini-cube .mc-face{background:#c7cdd2!important}.mini-cube .mc-face::after{background:linear-gradient(120deg,#ffffff12,transparent 50%)!important}.detail-vitrine21{padding:18px 22px;background:#f3f5f6}.detail-vitrine21 h3{margin:0 0 10px;font-size:16px}.vitrine-stage21{height:280px;position:relative;border-radius:14px;overflow:hidden}.race-rpm-bar,.lab-rpmbar{position:relative!important;background:linear-gradient(90deg,#142939,#174557 50%,#194d37 80%,#681c2a)!important;border:1px solid #ffffff55!important;border-radius:14px!important;box-shadow:inset 0 2px 8px #0009,0 3px 15px #0004;overflow:visible!important}.race-rpm-bar{height:38px!important}.lab-rpmbar{height:32px!important;min-width:130px}.race-rpm-bar .rpm-fill,.lab-rpmbar>i:first-child{height:100%;border-radius:12px;background:linear-gradient(90deg,#27b2df88,#29df8faa)!important;transition:width .07s linear}.rpm-perfect-zone{display:none!important}.shift-zone21{position:absolute;top:2px;bottom:2px;display:block;border-left:2px solid #75ffb0;border-right:2px solid #75ffb0;background:#4ffb9e20;pointer-events:none}.shift-marker21{position:absolute;top:-4px;bottom:-4px;width:4px;border-radius:4px;background:white;box-shadow:0 0 12px #b8faff;transform:translateX(-50%);transition:left .07s linear;z-index:3}.shift-label21{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;font-weight:900;letter-spacing:.7px;color:#fff;text-shadow:0 1px 3px #000;pointer-events:none}.perfect21{box-shadow:0 0 20px #39e78d99!important;border-color:#71ffb1!important}.over21{border-color:#ff6d77!important}.perfect21 .shift-label21{color:#baffd3}.over21 .shift-label21{color:#ffc3c8}


.mini-cube-stage,.gallery-cube-stage{background:linear-gradient(145deg,#d9e4eb,#b6c6d1)!important}.mini-cube .mc-face:not(.mc-bottom),.gallery-cube .cube3d-face:not(.bottom){background:rgba(173,194,208,.62)!important;box-shadow:inset 0 0 0 1px rgba(235,248,255,.75)!important}.mini-cube .mc-face:not(.mc-bottom)::after,.gallery-cube .cube3d-face:not(.bottom)::after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #e4f4ff88;background:linear-gradient(125deg,#f0fbff30,transparent 36%,transparent 70%,#8baabf18)!important}.gallery-cube .mc-plinth18{--pw:144px;--pl:294px;--ph:20px;--py:50px}.detail-vitrine21 .vitrine-stage21{height:300px;min-height:260px;padding-bottom:18px;box-sizing:border-box}.detail-vitrine21 .mini-cube-stage{inset:10px 12px 18px}.mc-plinth18{transform-style:preserve-3d}.mc-plinth18 i{opacity:1!important}.detail-vitrine21 .mc-plinth18{--ph:20px}

.photo-primary23{display:grid;place-items:center;min-height:86px;width:100%;font-size:19px;font-weight:900;margin:0 0 16px;border-radius:16px}.cover-choice23{display:flex;align-items:center;gap:10px;padding:12px;background:#eef3f7;border-radius:12px}.cover-choice23 input{width:20px;height:20px}.mini-cube-stage,.gallery-cube-stage{background:linear-gradient(#dce0e3,#b8bfc5)!important}.mini-cube .mc-face:not(.mc-bottom),.gallery-cube .cube3d-face:not(.bottom){background:rgba(173,194,208,.62)!important}

.photo-primary23{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:112px;border:2px dashed #8b9aaa!important;background:#f4f7fa!important;background-image:none!important;color:#35495e!important;box-shadow:none!important;font-size:14px}.photo-primary23:hover{background:#e8eff5!important;border-color:#425e7b!important}.photo-primary23 svg{flex-shrink:0}.progress20{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.progress20[hidden]{display:none!important}.progress20>span{flex:1;min-width:180px}
.mini-cube-stage,.gallery-cube-stage{background:radial-gradient(ellipse at 50% 42%,#303743 0%,#1c222d 55%,#0c1119 100%)!important}
.mini-cube .mc-face:not(.mc-bottom),.gallery-cube .cube3d-face:not(.bottom){background:rgba(59,79,94,.72)!important;box-shadow:inset 0 0 0 1px #a4b8c844!important}
.mini-cube .mc-face:not(.mc-bottom)::after,.gallery-cube .cube3d-face:not(.bottom)::after{border:1px solid #9cb4c044!important;background:linear-gradient(125deg,#e5f3ff16,transparent 36%,transparent 70%,#8baabf0c)!important}
.detail-vitrine21 .vitrine-stage21{height:320px}.detail-vitrine21 .mini-cube-stage{inset:0}

#batchPhotos19 .modal-foot{flex-wrap:wrap}#batchPhotos19 .modal-foot .btn{flex:1;min-width:160px}.batch-card19 small{overflow-wrap:anywhere}.photo-state26{margin:6px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.batch-card19 select{width:100%}
#batchFiles19{display:none!important}#batchPhotos19 .modal{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}#batchPhotos19 .modal-body{min-height:0;overflow-y:auto}#batchPhotos19 .modal-head,#batchPhotos19 .modal-foot{flex-shrink:0}.batch-card19 img{object-fit:contain}
#batchPicker26{position:relative;cursor:pointer;overflow:hidden}#batchPicker26 #batchFiles19{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0!important;cursor:pointer;z-index:2}#batchPicker26:focus-within{outline:3px solid #3679b8;outline-offset:3px}

.driveDial28{width:154px;height:154px;position:relative;filter:drop-shadow(0 4px 10px #0008);color:white;font-variant-numeric:tabular-nums}.driveDial28 svg{width:100%;height:100%;display:block}.dialNeedle28{transform-origin:100px 100px;transition:transform .08s linear}.dialReadout28{position:absolute;left:0;right:0;top:58%;text-align:center;font-size:28px;font-weight:850;line-height:1}.dialReadout28 #raceSpeed{font-size:28px;line-height:1}.dialUnit28{position:absolute;top:77%;left:0;right:0;text-align:center;font-size:9px;color:#93abbd;letter-spacing:1px}.dialHost28{padding:0!important;background:none!important;border:0!important;backdrop-filter:none!important}.lab-hud{align-items:flex-start!important}.lab-hud>div:first-child{background:none!important;border:0!important;padding:0!important}.lab-hud #labPlace{display:block;padding:6px 8px;background:#122338d9;border:1px solid #ffffff28;border-radius:10px;font-size:10px;max-width:166px}.lab-controls{bottom:max(20px,env(safe-area-inset-bottom))!important;left:16px!important;right:16px!important;align-items:flex-end!important;pointer-events:none}.lab-controls>div{pointer-events:auto}.lab-controls .steeringWheel28{width:148px!important;height:148px!important;background:none!important;border:0!important;padding:0!important;position:relative;touch-action:none;box-shadow:none!important}.steeringWheel28 svg{width:100%;height:100%;filter:drop-shadow(0 6px 6px #0008);transition:transform .06s linear}.steeringWheel28>span{position:absolute;left:0;right:0;bottom:-8px;text-align:center;font-size:10px;color:#d9e8f5;letter-spacing:1px}.lab-controls .drivePedal28{width:63px!important;height:122px!important;padding:0!important;background:none!important;border:0!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;touch-action:none;color:white}.pedalFace28{width:47px;height:100px;border:3px solid #798999;border-radius:13px 13px 17px 17px;background:linear-gradient(110deg,#bdc7d0,#465361 38%,#80909f 65%,#34404c);display:flex;flex-direction:column;justify-content:space-evenly;padding:8px;box-shadow:inset 0 2px 4px #eaf7ff88,4px 6px 0 #09111cbb;transform:perspective(180px) rotateX(-12deg);transition:transform .1s,filter .1s}.drivePedal28.brake .pedalFace28{width:62px;height:73px;border-radius:12px}.pedalFace28 b{height:5px;background:#172531;border-radius:4px;box-shadow:0 1px 1px #e5efff66}.drivePedal28 span{font-size:10px;font-weight:850;text-shadow:0 1px 4px #000}.drivePedal28[data-pressed=true] .pedalFace28{transform:perspective(180px) rotateX(22deg) translateY(5px);filter:brightness(1.2)}.lab-controls>div:last-child{gap:12px!important}.lab-tacho{bottom:184px!important;width:172px!important;background:linear-gradient(140deg,#182a3be8,#07111fe8)!important;border:1px solid #8aa6bf55!important;box-shadow:0 5px 20px #0005;border-radius:17px!important}.lab-gear[data-automatic=true]::after{content:' AUTO';font-size:10px;color:#93bad5}.lab-paddle{bottom:190px!important;height:78px!important;width:52px!important;border-radius:18px!important;background:linear-gradient(110deg,#45586ebf,#182737df)!important;border:1px solid #afc9df88!important}.lab-paddle.left{left:20px!important}.lab-paddle.right{right:20px!important}
@media(max-width:500px){.driveDial28{width:125px;height:125px}.dialReadout28,.dialReadout28 #raceSpeed{font-size:24px}.lab-hud{gap:6px!important}.lab-hud>div:nth-child(2){font-size:13px;max-width:130px}.lab-controls .steeringWheel28{width:132px!important;height:132px!important}.lab-controls .drivePedal28{width:54px!important;height:108px!important}.pedalFace28{height:90px;width:41px}.drivePedal28.brake .pedalFace28{width:52px;height:65px}.lab-tacho{bottom:164px!important;width:155px!important}.lab-paddle{bottom:170px!important}}
@media(max-height:500px){.driveDial28{width:105px;height:105px}.lab-controls .steeringWheel28{width:110px!important;height:110px!important}.lab-controls .drivePedal28{height:90px!important}.pedalFace28{height:72px}.lab-tacho{bottom:24px!important}.lab-paddle{bottom:136px!important}}

.lab-tacho{bottom:max(24px,env(safe-area-inset-bottom))!important;width:100px!important;padding:9px!important}.lab-tacho .lab-gear{font-size:31px;line-height:1.1}.lab-tacho .lab-rpmbar{min-width:0!important;height:19px!important}.lab-tacho .lab-rpm{font-size:9px}.lab-tacho .shift-label21{font-size:7px;letter-spacing:0}.lab-tacho .lab-gear[data-automatic=true]::after{font-size:8px}.lab-tacho .shift-marker21{width:3px}
#raceOverlay #raceTree{top:178px!important}#raceOverlay .race-hud-middle{top:240px!important}#raceOverlay .race-mode-switch{top:294px!important}#raceOverlay #raceMenu20{top:294px!important;right:12px!important;padding:8px 10px!important;font-size:11px!important;color:#fff!important;background:#142436d9!important}#raceOverlay .race-exit{top:96px!important}@media(max-width:500px){#raceOverlay #raceTree{top:144px!important}#raceOverlay .race-hud-middle{top:208px!important}#raceOverlay .race-mode-switch,#raceOverlay #raceMenu20{top:260px!important}}@media(max-height:500px){#raceOverlay #raceTree{top:80px!important}#raceOverlay .race-hud-middle{top:142px!important}#raceOverlay .race-mode-switch,#raceOverlay #raceMenu20{top:196px!important}}

.lab-tacho.dialCenter29{width:132px!important;height:151px!important;bottom:18px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.dialCenter29 .driveDial28{width:132px;height:132px}.dialCenter29 .dialReadout28{top:55%;font-size:24px}.dialCenter29 .dialUnit28{top:70%;font-size:8px}.dialCenter29 #labGear{position:absolute;top:80%;left:0;right:0;text-align:center;font-size:19px;line-height:1}.dialCenter29 #labRPM{display:none}.dialCenter29 #gearMode29{position:absolute;top:96%;left:0;right:0;text-align:center;color:#aac1d3;font-size:8px;letter-spacing:1px}.lab-hud .driveInfo29{padding:0!important}.driveInfo29 #labPlace{max-width:105px!important}.shiftDots29{position:absolute;left:18%;right:18%;top:15%;display:flex;gap:3px;justify-content:center}.shiftDots29 i{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#273442;border:1px solid #b8c9d02b}.shiftDots29 i[data-lit=true][data-tone=white]{background:#cdeaff;box-shadow:0 0 4px #9ac9ff}.shiftDots29 i[data-lit=true][data-tone=amber]{background:#ffc851;box-shadow:0 0 5px #f7a63f}.shiftDots29 i[data-lit=true][data-tone=green]{background:#4aff98;box-shadow:0 0 7px #33f989}.shiftDots29 i[data-lit=true][data-tone=red]{background:#ff4c61;box-shadow:0 0 6px #ff4355}.shiftWord29{position:absolute;left:0;right:0;top:26%;font-size:7px;font-weight:900;text-align:center;color:#91aabd}.shiftPerfect29 .shiftWord29{color:#5dffab}.shiftOver29 .shiftWord29{color:#ff7180}.shiftPerfect29{filter:drop-shadow(0 0 8px #35f39055)}.speedFX29{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;overflow:hidden;transition:opacity .2s}.speedFX29>i{position:absolute;top:-20%;bottom:-20%;width:18%;background:repeating-linear-gradient(168deg,transparent 0px,transparent 86px,#d4e7fa55 88px,#d4e7fa00 93px,transparent 165px);background-size:100% 330px;animation:speedFlow29 var(--flow29,1s) linear infinite;mask-image:linear-gradient(transparent,#0008 35%,#000 80%)}.speedFX29>i:first-child{left:-6%;transform:skewX(-13deg)}.speedFX29>i:last-child{right:-6%;transform:skewX(13deg) scaleX(-1)}@keyframes speedFlow29{to{background-position-y:330px}}
@media(max-width:500px){.lab-controls .steeringWheel28{width:112px!important;height:112px!important}.lab-controls{left:9px!important;right:9px!important}.lab-controls .drivePedal28{width:43px!important}.lab-controls>div:last-child{gap:8px!important}.drivePedal28.brake .pedalFace28{width:43px}.drivePedal28.gas .pedalFace28{width:36px}.lab-tacho.dialCenter29{width:124px!important}.dialCenter29 .driveDial28{width:124px;height:124px}.driveInfo29 #labPlace{font-size:9px}.lab-hud{gap:7px!important}.lab-hud>div:nth-child(2){max-width:150px!important}}@media(max-height:500px){.lab-tacho.dialCenter29{height:115px!important;bottom:10px!important}.dialCenter29 .driveDial28{width:106px;height:106px}.lab-tacho.dialCenter29{width:106px!important}}

.grantRow29{display:flex;gap:10px;align-items:center;padding:11px;border-bottom:1px solid #dfe5ed}.grantRow29 input{width:20px;height:20px;flex-shrink:0}.grantRow29 span{overflow-wrap:anywhere;font-size:13px}#adminContent>select,#adminContent>input{margin:8px 0;width:100%;padding:11px;border:1px solid #bac9d7;border-radius:9px}#adminContent>[role=status]{white-space:normal;overflow-wrap:anywhere}
#dragDialCenter29{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:132px;height:151px;z-index:8;pointer-events:none}#dragDialCenter29 .driveDial28{width:132px;height:132px}#dragDialCenter29 .dialReadout28{top:55%;font-size:24px}#dragDialCenter29 .dialUnit28{top:70%}.dragGear29{position:absolute;top:80%;left:0;right:0;text-align:center;font-size:19px;font-weight:900}.dragGearLabel29{position:absolute;top:98%;left:0;right:0;text-align:center;font-size:8px;color:#acc5d7}#raceOverlay .race-hud-bottom{position:absolute;bottom:180px;left:0;right:0}#raceOverlay #raceTree{top:90px!important}#raceOverlay .race-hud-middle{top:154px!important}#raceOverlay .race-mode-switch,#raceOverlay #raceMenu20{top:206px!important}@media(max-height:500px){#dragDialCenter29{width:108px;height:124px;bottom:10px}#dragDialCenter29 .driveDial28{width:108px;height:108px}#raceOverlay .race-hud-bottom{bottom:142px}#raceOverlay #raceTree{top:78px!important}#raceOverlay .race-hud-middle{top:140px!important}#raceOverlay .race-mode-switch,#raceOverlay #raceMenu20{top:192px!important}}


.seller-rating31{margin-top:14px;padding:16px;border:1px solid #b5dacf;border-radius:14px;background:#f0faf5}.seller-rating31 p{margin:8px 0}.seller-rating31 small{display:block;line-height:1.5;color:#41615a}.adv-entry31{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(110deg,#183b40,#32645a);color:white;padding:24px;border-radius:20px;margin:18px auto;max-width:1100px}.adv-entry31 small{color:#bde2c6;letter-spacing:2px;font-size:10px}.adv-entry31 h3{margin:6px 0}.adv-entry31 p{margin:6px 0;font-size:13px}.adventure31{padding:0;width:min(1100px,96vw);max-height:94dvh;border:0;border-radius:24px;background:#f6f7f2;color:#203c3c;box-shadow:0 24px 80px #0006}.adventure31::backdrop{background:#10262ddd}.adv-shell31{padding:24px}.adv-shell31 header{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #d6e1d8;padding-bottom:16px}.adv-shell31 header small{font-size:10px;letter-spacing:2px;color:#5f7a6c}.adv-shell31 h2{margin:7px 0;font-size:clamp(22px,4vw,32px)}.adv-kinds31{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.adv-settings31{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.adv-settings31 label{font-size:13px;font-weight:700}.adv-settings31 select,.adv-settings31 input{width:100%;margin-top:7px;padding:12px;border:1px solid #cbdacf;background:white;border-radius:12px;color:#203c3c}.adv-photo31{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.adv-photo31 img{width:100px;height:65px;object-fit:contain;background:repeating-conic-gradient(#ddd 0 25%,white 0 50%) 0/16px 16px;border-radius:10px}.adv-note31{font-size:12px;line-height:1.6;color:#61756c}.adv-hud31{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0;font-size:13px;flex-wrap:wrap}#advCanvas31{width:100%;aspect-ratio:8/5;background:#bfd5be;border-radius:14px;display:block}#advInstruction31{min-height:42px;font-weight:600;font-size:14px}.adv-controls31{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.adv-controls31 button{touch-action:none;user-select:none;min-height:54px;padding:10px;background:#234a45;color:white;border:0;border-radius:12px;font-weight:700}.adv-controls31 button:active{background:#d29036}.adv-badges31{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.adv-badge31{border:1px solid #dce4da;border-radius:16px;background:#edf0eb;padding:18px;color:#6e7c73}.adv-badge31.earned{background:#e8f4dc;border-color:#87bb64;color:#274331}.adv-badge31>span{font-size:28px;display:block;margin-bottom:10px}.adv-badge31 b{font-size:14px}.adv-badge31 p{font-size:12px;line-height:1.5}.adv-badge31 small{font-size:11px}#advResult31{padding:20px;border:1px solid #adc891;background:#eef7df;border-radius:14px;margin-top:16px}.adventure31 [hidden]{display:none!important}@media(max-width:600px){.adv-shell31{padding:15px}.adventure31{width:98vw;max-height:97dvh;border-radius:16px}.adv-kinds31{grid-template-columns:repeat(2,1fr)}.adv-settings31{grid-template-columns:1fr}.adv-badges31{grid-template-columns:repeat(2,1fr)}.adv-controls31{grid-template-columns:repeat(2,1fr)}.adv-controls31 button:last-child{grid-column:span 2}.adv-entry31{margin:12px;display:block;padding:18px}.adv-entry31 button{margin-top:12px}.adv-hud31 .btn{padding:7px 10px}}



.admin-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;padding:14px;background:#f2f5f8;border-radius:14px}.admin-tab{white-space:normal;min-height:46px}.admin-content{max-width:1100px;margin:auto}
.admin-tabs fieldset{min-width:0;border:1px solid #dae1e9;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:7px}.admin-tabs legend{font-size:12px;font-weight:800;color:#526176;padding:0 5px}.admin-tabs fieldset button{width:100%;text-align:left}.admin-tabs .admin-tab.active{background:#172b3a;color:#fff}


.modellino-help h4{margin:0 0 8px;font-size:16px}.modellino-help p{margin:0;color:var(--muted);line-height:1.7}.modellino-help section{padding:16px 0;border-bottom:1px solid var(--line)}.modellino-help .btn{margin-top:20px}#profilePrivateContent>div>div{padding:16px 0!important}.profile-tabs{flex-wrap:wrap;gap:6px}

.modelgames{max-width:1220px;margin:0 auto;padding:20px}.mg-header{display:flex;justify-content:space-between;align-items:center;padding:26px 6px 18px;gap:20px}.mg-header h1{font-size:clamp(32px,6vw,48px);margin:8px 0;color:#203f45;letter-spacing:-1.5px}.mg-header p{margin:6px 0;color:#60766c}.mg-eyebrow{font-size:10px;font-weight:800;letter-spacing:2.3px;color:#647f74}.mg-categories{display:flex;position:static;gap:8px;padding:8px;margin:0 0 22px;background:#edf2ee;border-radius:16px;overflow:auto;border:1px solid #d7e3da;box-shadow:none}.mg-categories button{flex:1;white-space:nowrap;border:0;background:transparent;color:#46615d;font-size:14px;font-weight:800;padding:14px 16px;border-radius:11px;cursor:pointer}.mg-categories button.active{background:#244c47;color:white;box-shadow:0 3px 10px #193b3a20}.mg-category-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;padding:30px;background:linear-gradient(125deg,#1e4147,#38675a);border-radius:22px;color:#f5f4e7}.mg-category-hero .mg-eyebrow{color:#b5d6ba}.mg-category-hero h2{font-size:34px;margin:12px 0}.mg-category-hero p{line-height:1.7;font-size:15px;max-width:600px}.mg-features{padding-top:15px;font-size:12px;color:#cee2c9}.mg-art{display:grid;place-items:center;font-size:100px;border:1px solid #cee3d52b;background:radial-gradient(ellipse at 50% 70%,#98b88150,transparent 70%);border-radius:18px;min-height:200px;transform:perspective(500px) rotateY(-8deg);filter:drop-shadow(0 18px 12px #0c242966)}.mg-settings{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:22px 0}.mg-settings label{font-weight:700;font-size:13px}.mg-settings select,.mg-settings input{display:block;width:100%;padding:13px;border-radius:12px;border:1px solid #d2dfd6;margin-top:8px;background:#fff;color:#304c49}.mg-photo{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mg-photo img{width:100px;height:66px;object-fit:contain;background:repeating-conic-gradient(#e4e7df 0 25%,white 0 50%) 0/16px 16px;border-radius:10px}.mg-note{font-size:12px;line-height:1.6;color:#61756e}.mg-start{padding:16px 24px;margin-top:8px}.mg-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.mg-badge{background:#eff2ec;border:1px solid #dbe3d5;border-radius:16px;padding:20px}.mg-badge.earned{background:#eaf4df;border-color:#8eb36d}.mg-badge span{font-size:30px;display:block;margin-bottom:12px}.mg-badge p{font-size:12px;line-height:1.5}.mg-badge small{font-size:11px}.mg-play{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:0;margin:0;background:#bcd2cc;color:white;overflow:hidden}.mg-play::backdrop{background:#102c35}.mg-stage{position:relative;width:100%;height:100%}#mgCanvas{display:block;width:100%;height:100%;touch-action:none}.mg-top{position:absolute;left:16px;right:16px;top:max(16px,env(safe-area-inset-top));display:flex;gap:12px;align-items:start;pointer-events:none}.mg-instrument,.mg-readout{padding:12px 18px;border:1px solid #ffffff24;background:#143540d9;backdrop-filter:blur(10px);border-radius:15px}.mg-instrument span{font-size:38px;line-height:1;font-weight:900}.mg-instrument small{display:block;font-size:10px;letter-spacing:2px;margin-top:5px}.mg-readout{flex:1}.mg-readout b,.mg-readout small{display:block}.mg-readout small{margin-top:8px;font-size:12px;color:#d3e4da}.mg-top-buttons{display:flex;gap:6px;pointer-events:auto}.mg-top-buttons button{padding:12px;background:#153c48df;border:1px solid #ffffff3b;color:white;border-radius:12px;font-weight:700}.mg-status{position:absolute;top:110px;left:50%;transform:translateX(-50%);width:min(600px,90vw);text-align:center;pointer-events:none;background:#18363acf;padding:10px 16px;border-radius:12px;font-size:12px;line-height:1.5}.mg-meter{height:4px;border-radius:4px;background:#ffffff30;margin-top:8px;overflow:hidden}.mg-meter i{display:block;height:100%;width:0;background:#edc775;transition:width .3s}.mg-instruments{position:absolute;right:16px;bottom:124px;display:flex;flex-direction:column;gap:10px;align-items:end}.mg-instruments label{padding:12px;background:#173a42dd;border-radius:12px;width:200px;font-size:12px}.mg-instruments input{display:block;width:100%;accent-color:#e8bf65;margin:6px 0}.mg-instruments output{font-size:11px;color:#dce8d2}#mgMiniMap{border:1px solid #ffffff50;border-radius:12px;opacity:.9}.mg-controls{position:absolute;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.mg-controls button{min-height:58px;min-width:95px;background:#153a43e8;color:white;border:1px solid #ffffff3f;border-radius:14px;padding:12px 16px;font-size:13px;font-weight:800;touch-action:none;user-select:none;box-shadow:0 5px 15px #123c3933}.mg-controls button:active{background:#b57b35}#mgAction{background:#c59243}.mg-pause-layer,.mg-result{position:absolute;inset:0;background:#12323fe8;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;text-align:center;padding:30px}.mg-result h2,.mg-pause-layer h2{font-size:40px}.mg-result p{max-width:550px;line-height:1.8;color:#dce9db}.mg-play [hidden],.modelgames [hidden]{display:none!important}#mgCarPane .race-hero{border-radius:20px}#mgCarPane .race-wrap,#mgCarPane .lab-wrap{padding-left:0;padding-right:0}.race-tree{width:62px!important;background:linear-gradient(90deg,#17222b,#33424a,#14232c)!important;border:3px solid #6c7d83!important;border-radius:18px!important;gap:10px!important;padding:12px 9px!important;box-shadow:0 12px 22px #0007!important;top:24%!important;left:50%!important;transform:translateX(-50%)!important}.race-tree-light{width:38px!important;height:38px!important;border:3px solid #0e1b23!important;box-shadow:inset 0 5px 8px #000a!important;position:relative}.race-tree-light:before{content:'';position:absolute;left:-3px;right:-3px;top:-5px;height:10px;border-radius:12px 12px 0 0;background:#101f27;box-shadow:0 2px 3px #0007}.race-tree-light.red{background:#462121!important}.race-tree-light.yellow{background:#433719!important}.race-tree-light.green{background:#17352b!important}.race-tree-light.red.on{background:#ff3f34!important;box-shadow:0 0 18px #ff4435,inset 0 0 8px #ffd1bd!important}.race-tree-light.yellow.on{background:#ffc645!important;box-shadow:0 0 18px #ffc645,inset 0 0 8px #fff0ae!important}.race-tree-light.green.on{background:#3aef86!important;box-shadow:0 0 20px #3aef86,inset 0 0 8px #d1ffe0!important}@media(max-width:700px){.modelgames{padding:12px}.mg-header{padding:16px 2px}.mg-header .btn{font-size:12px;padding:8px}.mg-categories button{padding:12px;font-size:12px}.mg-category-hero{grid-template-columns:1fr;padding:22px}.mg-art{display:none}.mg-settings{grid-template-columns:1fr}.mg-badges{grid-template-columns:repeat(2,1fr)}.mg-top{left:8px;right:8px;gap:6px}.mg-instrument{padding:10px}.mg-instrument span{font-size:30px}.mg-readout{padding:9px;font-size:11px}.mg-readout small{font-size:10px}.mg-top-buttons{flex-direction:column;gap:4px}.mg-top-buttons button{padding:7px;font-size:10px}.mg-status{top:116px;font-size:11px}.mg-controls{left:8px;right:8px;gap:5px}.mg-controls button{min-width:65px;min-height:45px;font-size:10px;padding:8px 10px;flex:1}.mg-instruments{right:8px;bottom:125px}.mg-instruments label{width:140px;padding:8px}#mgMiniMap{width:140px;height:90px}.mg-result h2{font-size:30px}.race-tree{top:24%!important}}@media(max-height:500px){.mg-status{top:90px;max-width:450px}.mg-instruments{bottom:75px}#mgMiniMap{width:140px;height:90px}.mg-top{top:8px}.mg-controls button{min-height:42px}}

.mg-workshop{margin:24px 0;padding:24px;background:linear-gradient(130deg,#f5f7f0,#e4eeea);border:1px solid #d1dfd6;border-radius:22px}.mg-workshop-heading{display:flex;justify-content:space-between;gap:18px;align-items:center}.mg-workshop h3{font-size:24px;margin:8px 0;color:#264a49}.mg-workshop p{font-size:13px;color:#536e68;line-height:1.7}.mg-workshop-heading>label{font-size:12px;max-width:200px}.mg-workshop-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.mg-faces{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mg-face{min-height:120px;padding:12px;border:1px dashed #9eb6ac;border-radius:14px;background:#ffffffbd;display:flex;flex-direction:column;gap:8px;overflow:hidden;font-size:12px;font-weight:700}.mg-face img{width:100%;height:65px;object-fit:contain;background:repeating-conic-gradient(#edf0e8 0% 25%,white 0% 50%) 0/12px 12px}.mg-face input{font-size:10px;width:100%}.mg-face small{font-size:10px;font-weight:400;color:#657d73}.mg-model-preview{display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 50%,#e9f1ee,#c2d7d3);border-radius:18px;border:1px solid #b8ccc5;min-height:330px;overflow:hidden}.mg-model-preview canvas{width:100%;height:310px;touch-action:none;cursor:grab}.mg-model-preview small{padding:12px;text-align:center;font-size:11px;color:#365c5c}.mg-proportions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.mg-proportions label{font-size:12px;font-weight:700}.mg-proportions input{width:100%;accent-color:#346258}.mg-stage{background:linear-gradient(#a9cedc,#a0b69c)}.mg-top-buttons button:hover,.mg-controls button:hover{border-color:#ecd19d}.mg-top-buttons button:focus-visible,.mg-controls button:focus-visible{outline:3px solid #f8d277;outline-offset:2px}.mg-readout{box-shadow:0 8px 30px #16333d22}.mg-instrument{border-top:3px solid #e4bf76}.mg-meter i{background:linear-gradient(90deg,#e3a653,#f5dd99)}@media(max-width:760px){.mg-workshop{padding:16px}.mg-workshop-heading{display:block}.mg-workshop-heading>label{display:block;max-width:none;margin:14px 0}.mg-workshop-layout{grid-template-columns:1fr}.mg-model-preview{order:-1;min-height:240px}.mg-model-preview canvas{height:230px}.mg-faces{grid-template-columns:repeat(2,1fr)}}

.mg-library-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:15px 0}.mg-library-row label{font-size:12px;font-weight:700}.mg-library-row input,.mg-library-row select{display:block;width:100%;padding:11px;border:1px solid #abc2b8;border-radius:10px;margin-top:6px;background:#fff}.mg-bulk-label{position:relative;display:inline-flex;cursor:pointer;margin:8px 0}.mg-bulk-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.mg-assignments{padding:16px;border-radius:14px;background:#fff;margin:12px 0}.mg-assignments label{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:8px 0}.mg-assignments span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.mg-assignments select{padding:8px;border-radius:8px;border:1px solid #acbfb6}.mg-ai-option{display:block;font-size:12px;line-height:1.7;margin:18px 0}.mg-background-status{position:fixed;bottom:16px;left:16px;max-width:min(380px,90vw);padding:14px 18px;border:1px solid #648a7e;border-radius:14px;background:#183d37ed;color:#fff;z-index:150;font-size:12px;box-shadow:0 8px 24px #132e3a40}.mg-faces{grid-template-columns:repeat(3,1fr)}@media(max-width:700px){.mg-library-row{grid-template-columns:1fr}.mg-faces{grid-template-columns:repeat(2,1fr)}}

.mg-train-parts{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;background:#dce9e5;border-radius:15px;margin:14px 0}.mg-train-parts button{border:1px solid #9eb7af;border-radius:10px;padding:12px 16px;background:#f7f8ef;color:#2f524b;font-weight:800;cursor:pointer}.mg-train-parts button.active{background:#27554c;color:#fff}.mg-train-parts label{margin-left:auto;font-size:12px;font-weight:700}.mg-train-parts select{padding:10px;margin-left:8px;border-radius:8px;border:1px solid #adc0b7}#mgTrainModels{padding:12px 16px;background:#eef5e5;border-left:3px solid #68967c;font-size:12px;color:#2c5047;border-radius:8px}#mgTrainModelBadge{font-size:10px;color:#edcc83}.mg-face small{overflow-wrap:anywhere}#mgApplyTrainModels{font-size:11px}@media(max-width:700px){.mg-train-parts button{flex:1;padding:10px;font-size:11px}.mg-train-parts label{width:100%;margin-left:0}}
.photo-steps{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 20px;color:#536273;font-size:13px}.photo-steps span{display:flex;align-items:center;gap:7px}.photo-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#183c49;color:white}.model-view-icon{display:block;width:100px;height:64px;margin:auto;color:#507d8e}.mg-face{position:relative;min-width:0;padding:14px!important;border:1px dashed #aabdc6!important;background:#f7fafb!important;border-radius:14px!important;cursor:pointer}.mg-face.has-photo{border-style:solid!important;border-color:#469776!important;background:#f3faf6!important}.mg-face.has-photo>.model-view-icon{display:none}.mg-face>span{font-size:15px;font-weight:800}.mg-face img{height:130px!important;width:100%;object-fit:contain;background:repeating-conic-gradient(#edf1f3 0% 25%,white 0% 50%) 0/14px 14px;border-radius:8px}.mg-face-guide{display:block;font-size:11px;line-height:1.5;min-height:34px;color:#526774}.mg-face input[type=file]{max-width:100%;font-size:11px}.mg-assignments{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;background:#edf4f7;padding:18px;border-radius:16px}.mg-assignments[hidden]{display:none!important}.mg-assignments>p,.mg-assignments>button{grid-column:1/-1}.mg-assignment-card{min-width:0;padding:12px;background:white;border-radius:12px;border:1px solid #d9e3e8}.mg-assignment-card>img{width:100%;height:150px;object-fit:contain;background:#f5f7fa;border-radius:8px}.mg-assignment-card>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0;color:#637588}.mg-assignment-card select{width:100%;min-height:44px}.photo-assignment-hint{font-size:11px;line-height:1.5;color:#526774;text-align:center;min-height:100px}.photo-assignment-hint .model-view-icon{height:54px}.photo-completion{font-weight:750;color:#286d55;padding:10px 14px;background:#edf8f1;border-radius:10px}.model-advanced{margin:14px 0;padding:12px;background:#f6f8fa;border-radius:10px}.model-advanced summary{cursor:pointer;font-weight:650}.game-setting{display:flex;align-items:center;gap:14px;padding:14px;margin-bottom:8px;border:1px solid var(--line);border-radius:12px}.game-setting input{width:20px;height:20px;accent-color:var(--accent)}.batch-card19>img{width:100%;height:160px;object-fit:contain!important}.batch-card19 .photo-assignment-hint{min-height:80px}.photo-error{border-color:#cc5656!important}.mg-faces{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}@media(max-width:600px){.mg-faces{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mg-assignments{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}.mg-assignment-card{padding:8px}.mg-assignment-card>img{height:115px}.photo-steps{gap:8px;font-size:11px}}
.modelgames>.mg-header{position:static;top:auto;flex-wrap:wrap;gap:12px;z-index:auto}.modelgames>.mg-header>div{flex:1 1 270px}.modelgames>.mg-header h1{font-size:clamp(28px,6vw,44px)}.modelgames>.mg-header p{font-size:16px;margin:6px 0;max-width:480px}.mg-header>.btn{white-space:nowrap;font-size:13px;padding:10px 12px}.address-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.address-grid label{display:flex;flex-direction:column;gap:6px}.address-fields small{display:block;margin-top:8px;color:var(--muted)}.development-note{max-width:1100px;margin:24px auto;padding:16px 20px;border:1px solid #cdbf9a;border-radius:14px;background:linear-gradient(120deg,#fffaf0,#f5f7f7);font-size:13px;color:#31454d}.development-note strong{display:block;margin-bottom:5px}.development-note a{color:#9b2536;font-weight:700}.profile-showroom{margin-top:24px;border-top:1px solid #d9d3c6;padding-top:20px}.showroom-settings{margin-top:18px;border:1px solid #ddd6c6;background:#fcfaf5;border-radius:14px;padding:14px}.showroom-settings summary{cursor:pointer;font-weight:700}.mini-cube-stage,.gallery-cube-stage,.vitrine-stage21{background:radial-gradient(ellipse at 50% 25%,#65717a 0%,#293840 48%,#101a23 100%)!important;box-shadow:inset 0 0 0 1px #ddcc9c66,inset 0 -25px 55px #060b1299}.mini-cube-stage:before,.gallery-cube-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,#ffffff12 21%,transparent 24%,transparent 70%,#ffffff0a 71%,transparent 73%);pointer-events:none}.mini-cube .mc-face,.gallery-cube .cube3d-face{background:linear-gradient(135deg,#edf0ee,#c6cfcb)!important;box-shadow:inset 0 0 0 1px #e9d9ac80}.mini-cube .mc-face img,.gallery-cube .cube3d-face img{object-fit:contain!important}.glass-vitrine{border-color:#c8b783!important;background:linear-gradient(150deg,#fbf9efaa,#bac8cf44 50%,#d6d0bb88)!important;box-shadow:inset 0 0 24px #fff8,0 12px 28px #10223022!important}.mg-instrument{background:linear-gradient(145deg,#203943e8,#0a1722e8);border:1px solid #d8bd7899;box-shadow:0 8px 25px #0005,inset 0 1px #fff2;border-radius:20px}.mg-instrument span{font-variant-numeric:tabular-nums;text-shadow:0 0 14px #a2d9e633}.mg-top,.mg-status{backdrop-filter:blur(8px)}#mgTrainLeverBox input{accent-color:#ddae50;cursor:ew-resize;height:32px}#mgTrainDirectionBox select{background:#183743;color:#fff;padding:8px;border:1px solid #c8ab67;border-radius:8px}.mg-controls button{min-height:50px;touch-action:none;user-select:none;box-shadow:inset 0 1px #fff3,0 4px 10px #0003}.mg-controls button:active{transform:translateY(2px);background:#b39245}.cutout-repair{width:min(920px,94vw);max-height:94vh;overflow:auto;border:1px solid #c4b181;border-radius:18px;padding:20px;background:#f8faf8}.cutout-repair::backdrop{background:#07131dcc;backdrop-filter:blur(5px)}.repair-head{display:flex;justify-content:space-between;align-items:center}.repair-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.repair-canvas-wrap{background:repeating-conic-gradient(#e5e9ea 0% 25%,#fff 0% 50%) 0/20px 20px;border-radius:12px;overflow:hidden}.repair-canvas-wrap canvas{display:block;width:100%;max-height:58vh;object-fit:contain;touch-action:none;cursor:crosshair}.mg-repair-face{font-size:11px;padding:6px 9px}.race-speed{font-variant-numeric:tabular-nums}
@media(max-width:600px){.modelgames>.mg-header{padding:18px 16px}.modelgames>.mg-header>div{flex-basis:100%}.mg-top{gap:6px}.mg-readout{font-size:11px}.mg-top-buttons button{font-size:11px;padding:7px}.mg-instruments{max-width:calc(100% - 24px);gap:8px;flex-wrap:wrap}.mg-instruments label{font-size:11px}.address-grid{grid-template-columns:1fr 1fr}.address-grid label:last-child{grid-column:1/-1}}

[hidden]{display:none!important}.repair-canvas-wrap{max-height:58vh;overflow:auto}.repair-canvas-wrap canvas{max-height:none;object-fit:initial}
.catalog-select{display:grid;gap:7px;min-width:0}.catalog-select input[type=search]{font-size:14px;margin:0;padding:10px 12px}.catalog-select select{width:100%;min-width:0}.catalog-count{font-size:12px;color:var(--muted,#60756e)}.catalog-proposal{border:1px solid #cedbd6;border-radius:14px;padding:14px;background:#f4f8f6}.catalog-proposal summary{cursor:pointer;font-weight:700;line-height:1.5}.catalog-proposal p{font-size:14px;line-height:1.6}.catalog-proposal .address-grid{margin:12px 0}.catalog-review{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;padding:16px;margin:12px 0;border:1px solid #d8e3df;border-radius:14px}.catalog-review strong{width:100%}.catalog-review a{margin-right:auto;overflow-wrap:anywhere}.catalog-proposal .btn{white-space:normal}
.train-driver-console{position:relative!important;min-width:178px;max-width:210px;padding:12px 14px!important;border:1px solid #56636d!important;border-radius:16px!important;background:linear-gradient(145deg,#394650,#17232d 58%,#111b24)!important;box-shadow:inset 0 1px 0 #73818c,0 7px 20px #06121a55;color:#e7edf0!important;letter-spacing:.03em}.train-lever-housing{height:155px;position:relative;margin:8px 0;background:linear-gradient(100deg,#16212b,#2f3b44,#131d26);border:1px solid #111c25;border-radius:10px;box-shadow:inset 0 2px 10px #0008}.train-lever-labels{position:absolute;left:9px;top:13px;bottom:13px;display:flex;flex-direction:column;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:.08em;color:#b8c8d3}.train-lever-labels span:first-child{color:#a7d9bb}.train-lever-labels span:last-child{color:#efb8ad}.train-lever-gate{position:absolute;right:25px;top:10px;bottom:10px;width:14px;border-radius:20px;background:linear-gradient(90deg,#080f16,#05080e,#55616c);border:1px solid #0b1118;box-shadow:0 0 0 6px #25323c,0 0 0 7px #5a6771}.train-lever-stem{position:absolute;left:0;bottom:0;width:12px;height:84px;transform:rotate(var(--lever-turn,0deg));transform-origin:center bottom;background:linear-gradient(90deg,#71818b,#e1e7e9 45%,#566570);border-radius:8px}.train-lever-grip{position:absolute;left:-23px;top:var(--lever-position,50%);width:58px;height:31px;transform:translateY(-50%);border-radius:10px 10px 8px 8px;background:linear-gradient(#586671,#19232c 45%,#080e15);border:1px solid #81909a;box-shadow:0 4px 6px #0009,inset 0 2px 1px #9da7aa;pointer-events:none}.train-lever-grip:after{content:'';position:absolute;left:13px;right:13px;top:9px;height:10px;background:repeating-linear-gradient(0deg,#a0a9ad55 0 1px,transparent 1px 3px);border-radius:2px}.train-lever-housing #mgTrainLever{position:absolute;right:-18px;top:50%;width:143px!important;height:68px!important;margin:0!important;transform:translateY(-50%) rotate(-90deg);opacity:.001;touch-action:none;cursor:grab}.train-lever-housing:focus-within{outline:2px solid #b1d9e9;outline-offset:2px}.train-neutral-button{min-height:32px;margin-top:6px;border:1px solid #73848e;border-radius:8px;background:#324550;color:#e9eff2;font-size:12px;width:100%}.train-driver-console output{display:block;text-align:center!important;font-size:12px;min-height:18px;color:#edf0de}.mg-controls .train-door-button{border:2px solid #3ea584;background:linear-gradient(145deg,#eaf6ed,#d2e6dd);color:#123c32;font-weight:800;min-height:56px}.mg-controls .train-door-button.doors-open{border-color:#efb85a;background:linear-gradient(145deg,#fff0c7,#f0d9ab);color:#614317}.mg-instruments{align-items:flex-end}.game-quick-guide{padding:14px 16px;margin:12px 0;border-radius:14px;border:1px solid #c8d8d2;background:#f1f6f3;font-size:14px;line-height:1.6}.game-quick-guide strong{display:block;color:#213f3e;margin-bottom:4px}.game-quick-guide details{margin-top:8px}.game-quick-guide summary{cursor:pointer;font-weight:700}.game-quick-guide kbd{display:inline-block;padding:1px 5px;border:1px solid #bdcbc6;border-bottom-width:2px;border-radius:5px;font:inherit;background:white}.mg-instrument{background:linear-gradient(140deg,#122d37e6,#071923ed);border:1px solid #68808a;box-shadow:0 8px 28px #00101844,inset 0 1px 0 #aec6c344;border-radius:16px;padding:12px 18px}.mg-instrument span{font-variant-numeric:tabular-nums;font-weight:800;letter-spacing:-.04em}.mg-status{background:linear-gradient(120deg,#102632e8,#193743d9);border:1px solid #77908a55;border-radius:12px;padding:12px}.mg-controls button{box-shadow:0 4px 0 #14293222;font-weight:700;transition:background .12s,transform .12s}.mg-controls button:active{transform:translateY(2px);box-shadow:0 2px 0 #14293222}.mg-readout small{font-variant-numeric:tabular-nums}.mg-top-buttons button{min-height:42px}
@media(max-width:600px){.train-driver-console{min-width:148px;max-width:160px;padding:8px 10px!important}.train-lever-housing{height:130px}.train-lever-housing #mgTrainLever{width:121px!important;right:-24px}.train-lever-labels{font-size:8px;left:5px}.train-lever-gate{right:22px}.mg-instruments:has(.train-driver-console:not([hidden])){display:grid;grid-template-columns:160px 1fr;align-items:end;gap:8px}.mg-instruments:has(.train-driver-console:not([hidden])) #mgMiniMap{grid-column:2;grid-row:1;width:150px;height:97px}.mg-instruments:has(.train-driver-console:not([hidden])) #mgTrainDirectionBox{grid-column:2;grid-row:2;min-width:0}.mg-instruments:has(.train-driver-console:not([hidden])) .train-driver-console{grid-row:1/3;grid-column:1}.mg-stage:has(.train-driver-console:not([hidden])) .mg-status{max-width:100%;font-size:12px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-top{gap:6px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-readout{max-width:calc(100% - 90px)}.mg-stage:has(.train-driver-console:not([hidden])) .mg-readout small{font-size:10px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-top-buttons{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.mg-controls button{transition:none}}
@media(max-height:540px) and (orientation:landscape){.train-driver-console{min-width:160px;max-width:170px;padding:6px 10px!important}.train-lever-housing{height:84px;margin:4px 0}.train-lever-gate{top:7px;bottom:7px}.train-lever-stem{height:52px}.train-lever-grip{height:24px}.train-lever-housing #mgTrainLever{width:76px!important;right:15px;height:62px!important}.train-lever-labels{font-size:8px;top:7px;bottom:7px}.train-neutral-button{min-height:25px;margin-top:2px}.train-driver-console output{font-size:10px;min-height:12px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-status{font-size:11px;max-width:55%;padding:7px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-instrument{padding:6px 12px}.mg-stage:has(.train-driver-console:not([hidden])) .mg-readout small{font-size:10px}}
.mg-play .mg-map-panel{position:absolute;right:16px;top:86px;z-index:3;display:grid;gap:5px;background:#142933dc;border:1px solid #b3d2dc45;border-radius:14px;padding:7px;backdrop-filter:blur(12px)}
.mg-map-panel button{border:0;background:none;color:#ecf5f6;text-align:left;font-size:12px;font-weight:700;cursor:pointer}.mg-play .mg-map-panel #mgMiniMap{width:170px;height:110px;border:0;border-radius:8px}.mg-play .mg-status{left:18px;top:92px;transform:none;max-width:calc(100% - 228px);width:460px;text-align:left;background:#142933cb;border:1px solid #b3d2dc35;border-radius:12px;padding:10px 13px;font-size:13px;backdrop-filter:blur(10px)}.mg-play .mg-instruments{bottom:100px;right:18px;display:flex;gap:8px}.mg-play[data-kind=train] .mg-instruments{left:18px;right:auto;bottom:18px;display:grid;grid-template-columns:150px 150px;align-items:end}.mg-play .train-driver-console{width:150px;padding:10px;box-sizing:border-box;border-radius:18px;background:linear-gradient(145deg,#324853,#14262e);box-shadow:0 8px 25px #0006,inset 0 1px #d2e4e966;color:#f2f5f2}.mg-play .train-lever-housing{height:108px;margin:8px 0}.mg-play .train-lever-grip{background:repeating-linear-gradient(90deg,#10191f 0 4px,#31444d 4px 7px);border:2px solid #7b969f;border-radius:12px;box-shadow:0 5px 6px #0008,inset 0 2px 1px #cedde655;width:44px;height:23px}.mg-play .train-neutral-button{border-radius:50%;width:52px;height:38px;margin:0 auto;background:radial-gradient(circle at 35% 25%,#e9f0ed,#849b9b);color:#122d35;border:3px solid #48616a;font-size:11px;box-shadow:0 3px #091c24}.train-lever-steps{display:flex;justify-content:space-between;margin-top:-37px;pointer-events:none}.train-lever-steps button{pointer-events:auto;border-radius:50%;width:32px;height:32px;border:2px solid #809ba6;background:#1c343f;color:white;font-size:22px;touch-action:manipulation}.mg-play #mgTrainDirectionBox{width:150px;box-sizing:border-box;padding:12px;background:linear-gradient(145deg,#324853,#14262e);border-radius:16px;font-size:12px}.train-native-direction{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.train-reverser-switch{display:grid;gap:4px;margin-top:8px;background:#0c2029;border:3px solid #627e87;border-radius:10px;padding:4px}.train-reverser-switch button{border:0;border-radius:7px;padding:10px 6px;color:#92aab2;background:#152c36;font-size:12px}.train-reverser-switch button[aria-pressed=true]{background:linear-gradient(#c1d0cc,#718c8f);color:#092631;box-shadow:0 2px 3px #0007;font-weight:800}.mg-play[data-kind=train] .mg-controls{left:auto;right:18px;bottom:18px;max-width:150px}.mg-play .train-door-button{width:100%;min-height:70px;border-radius:18px;border:3px solid #badbce;background:radial-gradient(circle at 40% 15%,#76c8aa,#216c5b 75%);box-shadow:0 4px 0 #143e36,0 7px 20px #0005;font-size:14px}.mg-play .train-door-button.doors-open{background:radial-gradient(circle at 40% 15%,#ffe19d,#ae7026 75%);border-color:#ffe5ae}.mg-model-tools{position:relative;color:white;font-size:12px}.mg-model-tools summary{padding:9px;cursor:pointer}.mg-model-tools[open]{background:#19303e;border-radius:12px;padding:7px}.mg-model-tools small{display:block;max-width:180px}.mg-play [hidden]{display:none!important}.mg-play .mg-controls button:active,.train-lever-steps button:active{filter:brightness(1.25);transform:translateY(2px)}.mg-play .mg-top .mg-readout small{font-size:12px}.mg-play .mg-top-buttons button{min-height:38px}.mg-play .mg-instruments label:not(.train-driver-console){border:1px solid #8cadb344}.mg-play .mg-instrument{background:linear-gradient(145deg,#203d49ee,#112733ee);border:1px solid #9ac9d15c;box-shadow:inset 0 1px #defbff33,0 4px 15px #0003}
@media(max-width:700px){.mg-play .mg-top{left:10px;right:10px;top:10px;gap:8px}.mg-play .mg-top-buttons{gap:4px}.mg-play .mg-top-buttons button{padding:7px;font-size:11px}.mg-play .mg-readout b{font-size:12px}.mg-play .mg-readout small{font-size:10px}.mg-play .mg-map-panel{top:80px;right:10px;padding:5px}.mg-play .mg-map-panel #mgMiniMap{width:115px;height:75px}.mg-play .mg-status{top:80px;left:10px;max-width:calc(100% - 160px);font-size:11px;padding:8px;width:330px}.mg-play[data-kind=train] .mg-instruments{left:10px;bottom:12px;grid-template-columns:130px 115px;gap:7px}.mg-play .train-driver-console{width:130px;font-size:12px}.mg-play #mgTrainDirectionBox{width:115px}.mg-play[data-kind=train] .mg-controls{right:10px;bottom:12px;width:100px}.mg-play .train-door-button{font-size:12px;min-height:70px;padding:8px}.mg-play .mg-instruments{bottom:120px;right:10px}.mg-model-tools{font-size:10px}}
@media(max-height:540px){.mg-play .train-lever-housing{height:72px}.mg-play .train-driver-console{padding:7px}.mg-play .mg-status{top:72px}.mg-play .mg-map-panel{top:72px}.mg-play .mg-map-panel #mgMiniMap{width:115px;height:75px}.mg-play[data-kind=train] .mg-instruments{bottom:10px}.mg-play .mg-status{width:300px;max-width:calc(100% - 165px)}}
.auc-filters{display:grid!important;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr));gap:12px!important;align-items:end}.auc-filters .field{display:grid;gap:6px}.auc-filters label{font-weight:700;font-size:12px;color:var(--muted)}.auc-filters select,.auc-filters input{width:100%;box-sizing:border-box;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:13px}.auc-card-mini{padding:0;text-align:left;font:inherit;color:inherit;background:white;border:1px solid var(--line);cursor:pointer}.auc-card-mini:focus-visible{outline:3px solid #4b8d92;outline-offset:3px}.auc-mini-body small{display:block;color:var(--muted);font-size:12px}.auc-time{display:block;margin:12px 0 4px;color:#316466;font-size:13px}.auc-result-count{font-size:13px;color:var(--muted)}.auc-listing-options{max-height:300px;overflow:auto;display:grid;gap:8px;margin-bottom:16px}.auc-listing-pick{width:100%;text-align:left;font:inherit;border:1px solid var(--line);background:white;border-radius:12px;padding:10px}.auc-listing-pick img{width:64px;height:64px;object-fit:contain;border-radius:8px}.auc-listing-pick span{display:grid;gap:5px}.auc-listing-pick.selected{border:2px solid #467e77;background:#eff7f3}.auc-detail-body{padding:22px}.auc-detail-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.auc-detail-image{width:100%;height:260px;object-fit:contain;background:#edf3ef;border-radius:16px}.auc-detail-summary .auc-status{position:static;display:inline-block}.auc-detail-summary h2{margin:12px 0;line-height:1.3}.auc-bid-form{margin:20px 0;padding:16px;background:#eff5f2;border:1px solid #d3e1d9;border-radius:14px}.auc-bid-form label{display:block;font-weight:700;font-size:13px;margin-bottom:9px}.auc-bid-form small{display:block;margin-top:10px;color:var(--muted);line-height:1.5}.auc-notice{padding:14px;background:#f1f3f0;border-radius:12px}.auc-bid-history{margin-top:22px}.auc-bid-history summary{font-weight:800;cursor:pointer;padding-bottom:12px}.auc-bid-item .time{display:block}.auc-bid-row input{min-width:0}.auc-bid-btn:disabled,.btn:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){.auc-filters{grid-template-columns:1fr 1fr}.auc-detail-summary{grid-template-columns:1fr}.auc-detail-image{height:220px}.auc-detail-body{padding:16px}.auc-bid-row{flex-wrap:wrap}.auc-bid-row input{flex:1;min-width:120px}}
.admin-listing-delete{margin:16px 22px}.auc-seller-decision{margin:20px 0;padding:16px;border:1px solid #cfddd3;border-radius:14px;background:#f0f5ef}
@media(max-width:380px){.mg-play[data-kind=train] .mg-instruments{left:8px;grid-template-columns:112px 95px;gap:6px}.mg-play .train-driver-console{width:112px;padding:7px}.mg-play #mgTrainDirectionBox{width:95px;padding:8px}.mg-play[data-kind=train] .mg-controls{right:8px;width:82px}.mg-play .train-door-button{font-size:11px}.mg-play .train-lever-labels{font-size:8px}.mg-play .mg-readout b{font-size:11px}.mg-play .mg-instrument{min-width:48px;padding:7px}.mg-play .mg-model-tools summary{padding:5px}}
.mg-play .train-lever-housing:focus-within{outline:2px solid #8bdae2;outline-offset:3px}.train-reverser-switch button:focus-visible,.mg-controls button:focus-visible{outline:3px solid #9ddeea;outline-offset:3px}
.game-orbit-reset{position:absolute;z-index:9;right:18px;top:226px;max-width:175px;border:1px solid #a6ccd955;border-radius:20px;background:#142d3bd9;backdrop-filter:blur(8px);color:#edfaff;padding:9px 13px;font:600 12px system-ui;cursor:pointer;pointer-events:auto}.game-orbit-reset[hidden],.game-orbit-hint[hidden]{display:none!important}.game-orbit-hint{position:absolute;z-index:4;left:50%;bottom:178px;transform:translateX(-50%);border:1px solid #c9e3ef30;border-radius:20px;padding:7px 13px;background:#112936bf;color:#e9f5f9;font:11px system-ui;pointer-events:none;text-align:center;width:max-content;max-width:80%;backdrop-filter:blur(6px)}.mg-play[data-kind=train] .game-orbit-hint{bottom:258px}#labGame .game-orbit-reset{top:110px}#raceOverlay .game-orbit-reset{top:110px;right:90px}#labRace{touch-action:none;pointer-events:auto!important}.train-direction-dial{display:grid;justify-items:center;gap:3px;padding-top:5px}.train-direction-labels{display:flex;justify-content:space-between;width:100%;align-items:center}.train-direction-labels button{border:0;border-radius:50%;width:28px;height:28px;color:#98afb6;background:transparent;font:700 12px system-ui;padding:0}.train-direction-labels button[aria-checked=true]{color:#182d35;background:#e7dcad;box-shadow:0 0 10px #fae49b55}.train-direction-labels button:nth-child(2){transform:translateY(-4px)}.train-direction-knob{position:relative;width:68px;height:68px;border-radius:50%;border:4px solid #526f78;background:conic-gradient(from 40deg,#e0e5db,#7c9699,#c2cfc9,#4c6973,#e0e5db);box-shadow:0 4px 0 #0a1b23,0 5px 12px #0007,inset 0 0 0 2px #a8c0c1;cursor:pointer}.train-direction-key{position:absolute;left:22px;top:5px;width:15px;height:49px;border-radius:5px 5px 9px 9px;background:linear-gradient(90deg,#15262f,#4b5a60 48%,#15262f);box-shadow:3px 2px 3px #0007;transform:rotate(var(--direction-angle));transform-origin:50% 26px;transition:transform .15s}.train-direction-key:before{content:'';position:absolute;top:3px;left:5px;width:5px;height:8px;background:#ffdb81;border-radius:2px;box-shadow:0 0 4px #e8bf63}.train-direction-name{font:600 11px system-ui;color:#e4f0ed;margin-top:5px}.train-direction-dial>small{font-size:9px;color:#a2b8bd;white-space:nowrap}.mg-play #mgTrainDirectionBox{background:linear-gradient(125deg,#354d58,#132a35);border:1px solid #abc6cc55;text-align:center}.mg-play .train-door-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:transparent!important;border:0;box-shadow:none!important;padding:5px;min-height:110px}.train-door-face{display:flex;align-items:center;justify-content:center;gap:4px;position:relative;width:76px;height:76px;border-radius:50%;border:7px solid #718a8b;box-shadow:0 0 0 3px #142b35,0 0 0 5px #9db0af,0 7px 7px #0008,inset 0 3px 10px #fff3;background:radial-gradient(circle at 35% 25%,#506b6b,#1b393b);box-sizing:border-box}.train-door-face i{height:28px;width:14px;border:2px solid #d8e5de;border-radius:2px}.train-door-face i:after{content:'';display:block;width:6px;height:10px;margin:3px auto;background:#b4d5c9;border-radius:1px}.train-door-face b{position:absolute;bottom:1px;color:#e9f1dc;font-size:23px}.train-door-button[data-ready=true] .train-door-face{border-color:#8ce4a8;box-shadow:0 0 0 3px #142b35,0 0 0 5px #9db0af,0 0 18px #45eaa665,0 7px 7px #0008;background:radial-gradient(circle at 35% 25%,#60ba8b,#1a624a)}.train-door-button.doors-open .train-door-face{border-color:#ffdd8e;box-shadow:0 0 0 3px #142b35,0 0 0 5px #9db0af,0 0 18px #ffcd7455,0 7px 7px #0008;background:radial-gradient(circle at 35% 25%,#c7953d,#7a4c20)}.train-door-button.doors-open .train-door-face i:first-child{transform:translateX(-3px)}.train-door-button.doors-open .train-door-face i:nth-child(2){transform:translateX(3px)}.train-door-caption{color:#edf4eb;font:700 11px system-ui;line-height:1.3;text-shadow:0 1px 4px #000}.mg-play .train-door-button:active .train-door-face{transform:translateY(3px);box-shadow:0 0 0 3px #142b35,0 0 0 5px #9db0af,0 2px 3px #0008}.train-direction-knob:focus-visible,.train-direction-labels button:focus-visible{outline:3px solid #80dbea;outline-offset:3px}
@media(max-height:540px){.game-orbit-reset{top:174px;padding:7px;font-size:11px}.game-orbit-hint{bottom:128px;font-size:10px}.mg-play[data-kind=train] .game-orbit-hint{bottom:auto;top:130px;left:18px;transform:none;max-width:50%;padding:5px}.train-direction-knob{width:52px;height:52px}.train-direction-key{left:15px;top:2px;height:38px;transform-origin:50% 20px}.train-direction-dial>small{display:none}.train-direction-labels button{height:22px}.train-door-face{width:66px;height:66px}.mg-play .train-door-button{min-height:86px}.train-door-face i{height:22px}.train-door-face b{font-size:18px}}
@media(max-width:480px){.game-orbit-reset{right:10px;top:185px;max-width:125px;font-size:10px}.game-orbit-hint{font-size:10px;padding:6px 10px}.mg-play[data-kind=train] .game-orbit-hint{bottom:250px}#raceOverlay .game-orbit-reset{top:110px;right:10px}.train-direction-knob{width:60px;height:60px}.train-direction-key{left:18px;top:3px;height:43px;transform-origin:50% 23px}.train-door-face{width:66px;height:66px}.train-door-face i{width:12px;height:23px}.train-door-face b{font-size:18px}}
.play-journey{margin:18px 0 24px;padding:20px 24px;border:1px solid #cadbd2;border-radius:20px;background:linear-gradient(120deg,#f0f6ef,#e4eee8);color:#254746}.journey-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.journey-heading strong{font-size:18px}.journey-heading span,.play-journey small{font-size:12px;color:#536e67}.play-journey progress{display:block;width:100%;height:7px;margin:13px 0;accent-color:#367967}.play-journey details{margin-top:14px}.play-journey summary{font-weight:700;cursor:pointer;font-size:13px}.journey-goals{display:grid;gap:8px;margin-top:12px;font-size:12px}.traffic-panel{position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 0,#3d6767 0,transparent 60%),#102d38!important;color:#f0f5ea}.traffic-panel p{color:#cbddd9;max-width:620px;line-height:1.7}.traffic-panel .mg-eyebrow{color:#d6c293}.traffic-panel small{display:block;color:#a9c5c4;line-height:1.6;margin-top:12px;max-width:650px}.traffic-lanes{display:flex;gap:38px;padding:18px 28px;margin:14px 0;max-width:240px;background:#203d47;border-block:1px solid #789396;transform:skewX(-8deg)}.traffic-lanes i{font:normal 34px system-ui;color:#e4c879;flex:1;text-align:center;border-right:2px dashed #b6c7c7;padding-right:20px}.traffic-lanes i:last-child{border:0}.car-graphics-setting{display:flex;gap:12px;align-items:center;font-size:12px;margin-top:12px;flex-wrap:wrap}.car-graphics-setting select{padding:8px 12px;border:1px solid #bacfc6;border-radius:9px;background:white;font:inherit}.vehicle-condition{position:absolute;z-index:5;right:16px;top:160px;width:180px;padding:10px 13px;color:#ecf3f3;background:#132e3be8;border:1px solid #9bbfc34d;border-radius:13px;pointer-events:none}.vehicle-condition span{font:600 10px system-ui;letter-spacing:1px;display:flex;justify-content:space-between}.vehicle-condition b{font:800 17px system-ui;letter-spacing:0}.vehicle-condition progress{width:100%;height:5px;display:block;margin:7px 0;accent-color:#87d7b0}.vehicle-condition small{font:11px/1.5 system-ui;color:#c4d9d8;display:block}.vehicle-condition[data-danger=true]{border-color:#ff997780}.vehicle-condition[data-danger=true] progress{accent-color:#ef806a}#labGame:after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;box-shadow:inset 0 0 80px #e36739;opacity:calc(var(--impact,0)*.7)}.mg-play .mg-top{z-index:7}.mg-play .mg-map-panel{z-index:4}.mg-play .mg-status{z-index:4;pointer-events:none}.mg-play .mg-top-buttons{flex-wrap:wrap;max-width:170px}.mg-play .mg-pause-layer,.mg-play .mg-result{z-index:20}.mg-header{flex-wrap:wrap;align-items:center!important;gap:12px!important}.mg-header>div{min-width:0;flex:1 1 260px}.mg-header h1{font-size:clamp(32px,5vw,52px);line-height:1.1}.mg-header p{font-size:clamp(15px,2.4vw,20px);line-height:1.5;margin:12px 0}.mg-header>.btn{flex:0 0 auto}.mg-categories{position:static!important;overflow-x:auto;scrollbar-width:thin;max-width:100%}.mg-categories button{white-space:nowrap}.game-quick-guide details p{max-width:780px}
@media(max-width:700px){.play-journey{padding:16px}.journey-heading{align-items:start;gap:6px;flex-direction:column}.journey-heading strong{font-size:16px}.mg-header>div{flex-basis:100%}.mg-header>.btn{font-size:12px}.mg-play .mg-top-buttons{max-width:100px}.vehicle-condition{width:130px;top:175px;right:10px;padding:8px;font-size:10px}.vehicle-condition small{font-size:10px}.traffic-panel{padding:20px!important}.mg-play .mg-status{max-width:calc(100% - 150px)}.mg-play .mg-map-panel{right:10px}.mg-play .mg-instrument span{font-size:28px}}
@media(max-height:540px){.vehicle-condition{top:95px;right:12px;width:150px}.mg-play .mg-top-buttons{flex-direction:row;max-width:270px}.mg-play .mg-status{max-width:60%}.mg-play .mg-map-panel #mgMiniMap{height:65px;width:105px}.mg-play .mg-map-panel{padding:3px}}

.intl-region-button{min-width:68px;white-space:nowrap}.intl-dialog{width:min(440px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid #dbe6e3;border-radius:22px;padding:24px;color:#203e41;background:#fff;box-shadow:0 24px 80px #102a3640}.intl-dialog::backdrop{background:#0f222d99;backdrop-filter:blur(4px)}.intl-dialog label{display:grid;gap:7px;margin:16px 0;font-weight:650}.intl-dialog input,.intl-dialog select,.intl-listing select,.intl-market-filter select{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid #ccd9d5;background:white;color:#17373b;font:inherit}.intl-dialog-head{display:flex;gap:16px;align-items:center;justify-content:space-between}.intl-dialog-head h2{font-size:22px;margin:0}.intl-check{display:flex!important;align-items:center;gap:9px!important;font-size:14px;line-height:1.5}.intl-check input{width:18px!important;height:18px;min-height:18px;flex:0 0 18px;accent-color:#236859}.intl-listing{padding:16px;border:1px solid #c9ded5;border-radius:16px;background:#f2f8f5}.intl-listing details{margin-top:12px}.intl-listing summary{cursor:pointer;font-weight:700;min-height:40px;padding-top:8px}.intl-country-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:240px;overflow:auto;padding:12px 2px}.intl-hint,.intl-source{font-size:12px;line-height:1.55;color:#52696a;display:block;margin:12px 0 0}.intl-estimate{display:block;font-size:12px;font-weight:500;color:#52696a;margin-top:3px;white-space:nowrap}.intl-market-filter{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:14px 0}.intl-market-filter>label:first-child{display:grid;gap:5px;max-width:240px;flex:1}.intl-translation-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:6px 0}.intl-translation-tools small{font-size:11px;color:#5f7075;max-width:38ch}.intl-translate-button{border:0;background:transparent;color:#236859;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;padding:6px 0;min-height:32px}.intl-translate-button:disabled{opacity:.5}.intl-shipping-summary{padding:14px 0;border-top:1px solid #e1e9e6;margin-top:16px;font-size:14px}.intl-shipping-summary p{margin:6px 0}.intl-shipping-summary small{display:block;margin-top:8px;color:#62716f}.intl-chat-actions{display:flex;gap:16px;justify-content:space-between;padding:6px 12px}.intl-offer{background:#f3f8f5;border:1px solid #c3d8cd;border-radius:14px;padding:14px;color:#173d37;max-width:360px}.intl-offer dl{display:grid;grid-template-columns:1fr auto;gap:8px 18px;font-size:13px;margin:12px 0}.intl-offer dd{margin:0;text-align:right}.intl-offer small{font-size:11px}.chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere}#chatSendStatus{color:#aa3434;padding:4px 12px}.address-grid [hidden]{display:none!important}.intl-country-grid span{overflow-wrap:anywhere}.head-inner{flex-wrap:wrap}.head-inner .search{min-width:120px}.intl-dialog button:focus-visible,.intl-region-button:focus-visible,.intl-translate-button:focus-visible{outline:3px solid #d0a952;outline-offset:3px}@media(max-width:600px){.intl-country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intl-region-button{padding:8px;min-width:58px}.intl-dialog{padding:18px}.head-inner{gap:7px}.head-inner .search{order:5;flex-basis:100%}.intl-offer dl{gap:6px 10px}.intl-market-filter{align-items:center}}
.exchange-fields{padding:18px;background:#eff5f1;border:1px solid #d3e2d7;border-radius:14px}.exchange-fields>label,.exchange-fields #tradeWantedField>label{display:block;font-weight:650;margin-bottom:8px}.exchange-fields select,.exchange-fields textarea{width:100%}.exchange-fields #tradeWantedField{margin-top:16px}.exchange-fields small{display:block;line-height:1.6;margin-top:8px;color:#576d63}.exchange-summary{background:#eff5f1;border:1px solid #d2e2d7;border-radius:12px;padding:16px;margin:16px 0}.exchange-summary p{white-space:pre-wrap;margin:8px 0 0}.trade-tag{background:#e8f2ed;color:#285945}.price .trade-price{font-size:16px}.price .trade-allowed{display:block;font-size:11px;color:#416859;margin-top:3px}[hidden]{display:none!important}

#mgPlay.quiet-game .mg-top{display:flex;align-items:center;gap:12px;left:12px;right:12px;top:max(10px,env(safe-area-inset-top));padding:8px 12px;border-radius:14px;background:#142933d9;backdrop-filter:blur(10px);min-height:58px}#mgPlay.quiet-game .mg-instrument{min-width:64px;padding:0;border:0;background:transparent}#mgPlay.quiet-game #mgSpeed{font-size:30px;line-height:1}#mgPlay.quiet-game .mg-readout{flex:1;min-width:0}#mgPlay.quiet-game #mgMission{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}#mgNextObjective{display:block;font-size:11px;color:#dfebeb;margin-top:4px}#mgPlay.quiet-game .mg-top-buttons{display:flex;gap:5px;align-items:center}#mgPlay.quiet-game .mg-top-buttons button,#mgPlay.quiet-game #mgMapToggle{font-size:11px;padding:7px;min-height:34px}#mgPlay.quiet-game .mg-map-panel{position:relative!important;inset:auto!important;order:3;z-index:20;border:0;background:transparent;padding:0}#mgPlay.quiet-game #mgMiniMap{position:absolute;right:0;top:44px;width:180px;height:117px;max-width:60vw;box-shadow:0 8px 20px #0005;border-radius:12px}.quiet-hud-details{position:relative;color:#e9f4f3;font-size:12px}.quiet-hud-details>summary{cursor:pointer;list-style:none;border:1px solid #c4dde340;padding:8px 10px;border-radius:9px;min-height:34px;background:#ffffff0c;box-sizing:border-box}.quiet-hud-details>summary::-webkit-details-marker{display:none}.quiet-hud-drawer{position:absolute;right:0;top:calc(100% + 8px);width:min(320px,75vw);padding:16px;background:#132e3cf5;border:1px solid #b7d4df40;border-radius:14px;box-shadow:0 14px 35px #0004;z-index:25;display:grid;gap:12px}.quiet-hud-drawer .mg-status,.quiet-hud-drawer .vehicle-condition{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;background:none!important;border:0!important;padding:0!important}.quiet-hud-drawer #mgHint{font-size:12px;line-height:1.6}.quiet-hud-drawer #mgStats{display:block;font-size:12px;line-height:1.6}.quiet-hud-toolbar{position:absolute;top:88px;left:12px;right:12px;display:flex;gap:8px;justify-content:flex-end;align-items:start;pointer-events:none;z-index:12}.quiet-hud-toolbar>*{pointer-events:auto}#mgPlay.quiet-game .mg-instruments{position:static;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:72%;background:none;padding:0}#mgPlay.quiet-game .mg-instruments>label{background:#142d3bd9;border:1px solid #b7d4df40;border-radius:12px;padding:8px 12px;font-size:11px;min-width:110px;max-width:180px}#mgPlay.quiet-game #mgTrainLeverBox{height:154px;min-height:154px;width:120px;min-width:120px;max-width:120px;padding:7px 10px}#mgPlay.quiet-game #mgTrainLever{height:94px;min-height:94px;width:50px}#mgPlay.quiet-game #mgTrainDirectionBox{min-width:102px;max-width:110px}#mgPlay.quiet-game .train-direction-knob{width:42px;height:42px}#mgPlay.quiet-game .train-direction-name{font-size:11px}#mgPlay.quiet-game #mgAction{position:static;max-width:130px;min-height:42px;border-radius:12px;align-self:flex-start;background:#183b46e8;color:#eef9f4;font-size:12px;border:1px solid #aac3b866;padding:9px}#mgPlay.quiet-game #mgAction.train-door-button{min-width:82px;max-width:94px;min-height:91px}#mgPlay.quiet-game .train-door-face{width:44px;height:38px;margin:auto}#mgPlay.quiet-game .train-door-caption{font-size:10px}#mgPlay.quiet-game .mg-controls{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));gap:7px;background:none;justify-content:center}#mgPlay.quiet-game .mg-controls button{min-width:52px;min-height:48px;padding:10px;font-size:12px;background:#132c39b8}#mgPlay.quiet-game[data-kind=train] .mg-controls{display:none}#mgPlay.quiet-game .game-orbit-hint{display:none!important}#mgPlay.quiet-game .game-orbit-reset{top:auto;bottom:82px;font-size:11px;right:12px;padding:7px 9px}#labGame.quiet-game .lab-hud{top:max(10px,env(safe-area-inset-top));left:12px;right:12px;padding:9px 14px;display:flex;align-items:center;gap:16px;background:#142d3bd9;border:1px solid #b7d4df33;border-radius:14px;backdrop-filter:blur(10px)}#labGame.quiet-game .lab-hud>div:last-child{margin-left:auto}#labGame.quiet-game .lab-speed{font-size:30px}#labGame.quiet-game .lab-tacho{position:static!important;transform:none!important;min-width:60px;width:85px;background:none!important;border:0!important;padding:0!important;text-align:center}#labGame.quiet-game .lab-gear{font-size:25px;line-height:1.1}#labGame.quiet-game .lab-rpm{font-size:10px}#labGame.quiet-game .lab-paddle{top:auto;bottom:90px;width:52px;height:52px;opacity:.85}#labGame.quiet-game .lab-message{top:95px;bottom:auto;left:50%;transform:translateX(-50%);font-size:16px;max-width:70vw}#labGame.quiet-game .game-orbit-reset{top:94px;font-size:11px}#labGame.quiet-game .game-orbit-hint{display:none!important}#labGame.quiet-game .lab-controls{background:none;bottom:max(12px,env(safe-area-inset-bottom))}#labGame.quiet-game .lab-controls button{height:52px;min-height:52px;font-size:12px}#raceOverlay.quiet-game .race-bottom{background:linear-gradient(transparent,#07172380)}@media(max-width:600px){#mgPlay.quiet-game .mg-top{gap:6px;padding:7px;flex-wrap:wrap}#mgPlay.quiet-game .mg-readout{max-width:calc(100% - 90px)}#mgPlay.quiet-game .mg-top-buttons{margin-left:auto;order:2}#mgPlay.quiet-game .mg-map-panel{order:2}.quiet-hud-toolbar{top:116px;gap:5px;left:8px;right:8px}#mgPlay.quiet-game .mg-instruments{gap:5px;max-width:calc(100% - 88px)}#mgPlay.quiet-game #mgTrainLeverBox{width:104px;min-width:104px;height:146px;min-height:146px}#mgPlay.quiet-game #mgTrainDirectionBox{width:98px;min-width:98px}#mgPlay.quiet-game #mgAction.train-door-button{max-width:78px;min-width:70px}#labGame.quiet-game .lab-hud{gap:9px;padding:8px}#labGame.quiet-game .lab-hud button{padding:7px;font-size:11px}#labGame.quiet-game .lab-speed{font-size:27px}#labGame.quiet-game .lab-tacho{width:56px;min-width:45px}#labGame.quiet-game .quiet-hud-drawer{right:-50px}.quiet-hud-details>summary{padding:7px;font-size:11px}}
#labGame.quiet-game .lab-tacho.dialCenter29{width:80px!important;height:64px!important;min-width:80px}#labGame.quiet-game .lab-tacho.dialCenter29 .driveDial28{width:78px;height:78px;margin-top:-8px}#labGame.quiet-game .lab-tacho.dialCenter29 .dialReadout28{font-size:19px}#labGame.quiet-game .lab-tacho.dialCenter29 .dialGear29{right:-9px;top:0;font-size:15px}#labGame.quiet-game .lab-tacho.dialCenter29 .lab-rpm{display:none}#raceOverlay.quiet-game .race-hud{top:max(8px,env(safe-area-inset-top));left:12px;right:12px;bottom:auto;pointer-events:none}#raceOverlay.quiet-game .race-hud-top{padding:8px 10px;gap:12px;justify-content:flex-start;align-items:center;background:#142d3bd9;border:1px solid #b7d4df33;border-radius:14px;pointer-events:auto;padding-right:44px}#raceOverlay.quiet-game .race-hud-box{padding:0;background:none;border:0;box-shadow:none;min-width:45px}#raceOverlay.quiet-game .race-timer-num{font-size:23px}#raceOverlay.quiet-game .race-speed-unit{font-size:10px}#raceOverlay.quiet-game #dragDialCenter29{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;width:85px!important;height:63px!important;flex:none}#raceOverlay.quiet-game #dragDialCenter29 .driveDial28{width:80px;height:80px;margin-top:-8px}#raceOverlay.quiet-game #dragDialCenter29 .dialReadout28{font-size:20px}#raceOverlay.quiet-game .quiet-hud-details{margin-left:auto}#raceOverlay.quiet-game .race-hud-bottom{position:static;transform:none;text-align:left;background:none;padding:0}#raceOverlay.quiet-game .race-hud-middle{position:static!important;top:auto!important;transform:none!important;margin:8px auto 0;width:min(320px,58vw)}#raceOverlay.quiet-game #raceTree{top:128px!important}#raceOverlay.quiet-game #raceMenu20{top:auto!important;bottom:14px!important;right:calc(50% - 32px)!important;left:auto!important;font-size:11px!important}#raceOverlay.quiet-game .race-exit{top:max(20px,env(safe-area-inset-top))!important;right:20px;font-size:19px;z-index:20}#raceOverlay.quiet-game .race-controls{bottom:max(10px,env(safe-area-inset-bottom))}#raceOverlay.quiet-game .race-btn{height:64px;min-height:60px;width:85px}#raceOverlay.quiet-game .race-shift-msg{font-size:14px}
@media(orientation:landscape) and (max-height:550px){#labGame.quiet-game .lab-tacho.dialCenter29{height:52px!important;width:67px!important;min-width:67px}#labGame.quiet-game .lab-tacho.dialCenter29 .driveDial28{width:67px;height:67px}#raceOverlay.quiet-game .race-hud-top{padding-top:4px;padding-bottom:4px;gap:10px}#raceOverlay.quiet-game #dragDialCenter29{height:48px!important;width:70px!important}#raceOverlay.quiet-game #dragDialCenter29 .driveDial28{width:66px;height:66px}#raceOverlay.quiet-game .race-btn{height:52px;min-height:48px;width:70px}#raceOverlay.quiet-game .race-hud-middle{width:230px;margin-top:5px}#raceOverlay.quiet-game #raceTree{top:98px!important}}

#mgStage:fullscreen,#labGame:fullscreen,#raceOverlay:fullscreen,#mgStage:-webkit-full-screen,#labGame:-webkit-full-screen,#raceOverlay:-webkit-full-screen{width:100vw!important;height:100dvh!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;background:#12282f}#mgStage:fullscreen{position:relative!important}#mgStage:fullscreen canvas,#mgStage:-webkit-full-screen canvas{width:100%;height:100%}.game-fullscreen-button{color:#eef6f5!important;white-space:nowrap;min-height:36px;touch-action:manipulation}.game-fullscreen-actions{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:50}.game-fullscreen-hint{position:absolute;z-index:100;top:25%;left:50%;transform:translateX(-50%);width:max-content;max-width:80%;border-radius:12px;background:#102631ed;color:#fff;padding:12px 18px;font:500 14px/1.5 system-ui;text-align:center;pointer-events:none}
@media(orientation:landscape) and (max-height:550px){#mgPlay.quiet-game .mg-top{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:max(6px,env(safe-area-inset-top));min-height:44px;flex-wrap:nowrap;gap:7px;padding:5px 8px}#mgPlay.quiet-game #mgSpeed{font-size:25px}#mgPlay.quiet-game .mg-instrument{min-width:46px}#mgPlay.quiet-game .mg-readout{max-width:none}#mgPlay.quiet-game .mg-top-buttons button,#mgPlay.quiet-game #mgMapToggle{font-size:10px;padding:6px;min-height:32px}#mgPlay.quiet-game .quiet-hud-toolbar{top:65px;right:max(10px,env(safe-area-inset-right))}#mgPlay.quiet-game .mg-instruments{max-width:75%;gap:5px}#mgPlay.quiet-game #mgTrainLeverBox{height:129px;min-height:129px;width:100px;min-width:100px;padding:5px}#mgPlay.quiet-game #mgTrainLever{height:76px;min-height:76px}#mgPlay.quiet-game #mgTrainDirectionBox{min-width:90px;width:90px;padding:5px}#mgPlay.quiet-game #mgAction.train-door-button{min-height:80px;min-width:72px;max-width:76px}#mgPlay.quiet-game .mg-controls{bottom:max(6px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}#mgPlay.quiet-game .mg-controls button{min-height:43px;min-width:48px;padding:7px}#mgPlay.quiet-game .mg-instruments>label{min-width:100px;font-size:10px;padding:6px 8px}#mgPlay.quiet-game .game-orbit-reset{bottom:60px}#labGame.quiet-game .lab-hud{top:6px;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));padding:6px 10px;gap:8px}#labGame.quiet-game .lab-speed{font-size:24px}#labGame.quiet-game .lab-hud button{padding:6px;font-size:10px}#labGame.quiet-game .lab-controls{bottom:6px}#labGame.quiet-game .lab-controls button{min-height:43px;height:43px;padding:6px}#labGame.quiet-game .lab-message{top:72px;font-size:14px}#labGame.quiet-game .game-orbit-reset{top:72px}#labGame.quiet-game .lab-paddle{bottom:65px;width:42px;height:42px}.quiet-hud-drawer{max-height:calc(100dvh - 100px);overflow:auto}#mgPlay.quiet-game #mgMiniMap{width:160px;height:104px}.game-fullscreen-hint{top:30%}}

.game-audio-settings{display:grid;gap:.55rem;margin-top:.65rem;padding-top:.7rem;border-top:1px solid #ffffff24}.game-audio-settings label{display:flex;align-items:center;justify-content:space-between;gap:.7rem;font-size:.85rem}.game-audio-settings input{width:8rem;max-width:55%;accent-color:#e1c28b}.game-audio-settings button{min-height:40px;color:inherit}.car-graphics-setting select,#mgQuality{max-width:100%}

#mgPlay.clear-game .mg-top{top:max(6px,env(safe-area-inset-top));left:8px;right:8px;min-height:44px;padding:4px 8px;gap:7px;flex-wrap:nowrap;border-radius:10px;background:#0e202aeb}
#mgPlay.clear-game .mg-readout{max-width:none;flex:1;overflow:hidden}#mgPlay.clear-game #mgMission{font-size:10px;line-height:1.3}#mgPlay.clear-game #mgNextObjective{font-size:11px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mgPlay.clear-game .mg-top-buttons{flex:none;gap:4px;margin:0;order:0}#mgPlay.clear-game .mg-top-buttons>button,#mgPlay.clear-game .quiet-hud-details>summary{min-height:36px;padding:6px 8px;font-size:11px;border-radius:7px}#mgPlay.clear-game #mgExit{width:36px;font-size:17px;padding:5px}
#mgPlay.clear-game .mg-top>.mg-instrument{min-width:44px}#mgPlay.clear-game .mg-top #mgSpeed{font-size:24px}#mgPlay.clear-game .mg-instrument small{font-size:9px}
#mgPlay.clear-game .quiet-hud-toolbar,#mgPlay.clear-game #mgControls{display:none}#mgPlay.clear-game .mg-map-panel{display:block;width:100%;order:0}#mgPlay.clear-game #mgMiniMap{position:static;width:100%;height:auto;max-width:none;box-shadow:none;margin-top:8px}
#mgPlay.clear-game .quiet-hud-drawer{max-height:calc(100dvh - 85px);overflow:auto;padding:12px;width:min(300px,82vw)}
.game-driver-deck{position:absolute;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:116px minmax(68px,1fr) 140px;align-items:end;gap:8px;pointer-events:none;z-index:14}
.game-driver-left,.game-driver-center,.game-driver-right{display:flex;flex-direction:column;gap:7px;align-items:stretch;min-width:0;pointer-events:none}.game-driver-center{align-items:center}.game-driver-deck button,.game-driver-deck input,.game-driver-deck select,.game-driver-deck label{pointer-events:auto}
#mgPlay.clear-game #mgTrainDirectionBox,#mgPlay.clear-game #mgTrainLeverBox,#mgPlay.clear-game #mgThrottleBox,#mgPlay.clear-game #mgAltitudeBox{box-sizing:border-box;min-width:0;max-width:none;width:100%;height:auto;min-height:0;border:1px solid #7b919866;border-radius:13px;background:linear-gradient(125deg,#31434c,#10242ceF);box-shadow:0 4px 16px #0005;padding:9px;font-size:10px;color:#deebed}
#mgPlay.clear-game #mgTrainDirectionBox .train-direction-knob,#mgPlay.clear-game #mgTrainDirectionBox .train-direction-name{display:none}#mgPlay.clear-game #mgTrainDirectionBox .train-direction-labels{display:flex;flex-direction:column;gap:5px;position:static;width:auto;transform:none;margin:7px 0}#mgPlay.clear-game #mgTrainDirectionBox [data-direction]{width:100%;height:38px;border-radius:7px;text-align:left;padding:7px 8px;font-size:11px;background:#0e222c;color:#dce7e9;border:1px solid #788e9766}#mgPlay.clear-game #mgTrainDirectionBox [aria-checked=true]{background:linear-gradient(#547765,#31513f);color:#ecfff1;border-color:#a6d0a9;box-shadow:inset 0 1px 3px #c8f9cb50}#mgPlay.clear-game .train-direction-dial>small{font-size:9px;display:block;text-align:center}
#mgPlay.clear-game #mgTrainLeverBox{position:relative;padding:7px 9px 8px}#mgPlay.clear-game .digital-train-speed{display:flex;align-items:baseline;justify-content:center;gap:7px;background:#071918;border:1px solid #57766a;border-radius:6px;padding:5px 9px;margin-bottom:5px;box-shadow:inset 0 2px 5px #0008;color:#bdeed1}
#mgPlay.clear-game .digital-train-speed #mgSpeed{font:600 32px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.025em;font-variant-numeric:tabular-nums}#mgPlay.clear-game .digital-train-speed #mgSpeedUnit{font-size:10px;color:#9abbab}
#mgPlay.clear-game .train-lever-housing{height:92px;margin:5px 0 3px;border-radius:8px}#mgPlay.clear-game .train-lever-labels{font-size:8px;left:5px;top:9px;bottom:9px}#mgPlay.clear-game .train-lever-gate{right:25px;top:9px;bottom:9px}#mgPlay.clear-game .train-lever-stem{height:50px}#mgPlay.clear-game .train-lever-grip{left:-17px;width:44px;height:25px}
#mgPlay.clear-game .train-lever-housing #mgTrainLever{position:absolute;right:0!important;top:0!important;left:0;width:100%!important;height:100%!important;min-height:0!important;transform:none!important;margin:0!important;writing-mode:vertical-lr;direction:rtl;appearance:auto;opacity:.001;touch-action:none}
#mgPlay.clear-game #mgTrainLeverValue{font-size:10px;display:block;text-align:center;line-height:1.4;min-height:14px}#mgPlay.clear-game .train-lever-steps{margin:5px 0 0;gap:4px;pointer-events:auto;display:flex}#mgPlay.clear-game .train-lever-steps button{width:32px;height:32px;min-height:32px;padding:0;border:1px solid #769299;border-radius:7px;font-size:20px;background:linear-gradient(#38505a,#18343c)}#mgPlay.clear-game .train-lever-steps .train-neutral-button{flex:1;width:auto;font-size:10px;margin:0;color:#e0eeec}
#mgPlay.clear-game #mgAction{position:static!important;align-self:center;border:1px solid #859b9366;background:linear-gradient(#31524a,#132c28);box-shadow:0 3px 12px #0005;color:#e7f0ea;max-width:100%;min-width:0;min-height:46px;border-radius:12px;padding:9px 6px;font-size:11px;white-space:normal}
#mgPlay.clear-game #mgAction.train-door-button{min-width:76px;width:92px;max-width:100%;height:90px;min-height:90px;border:2px solid #799588;border-radius:15px}#mgPlay.clear-game .train-door-face{height:34px;width:39px;margin:0 auto 5px}#mgPlay.clear-game .train-door-caption{font-size:10px}#mgPlay.clear-game #mgAction[data-ready=true]{border-color:#9dddab;box-shadow:0 0 14px #58c28840}#mgPlay.clear-game #mgAction.doors-open{background:linear-gradient(#497e5a,#234c34)}
.game-steering-cluster,.game-motion-cluster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;pointer-events:none}.game-driver-deck [data-mg-key]{min-width:0;min-height:48px;padding:7px 4px;border:1px solid #9cb9c24d;border-radius:10px;background:#122c3be8;color:#eef6f8;font-size:10px;touch-action:none}.game-driver-deck [data-mg-key]:active{background:#426776}.game-driver-deck [data-mg-key=drift]{grid-column:1/-1;min-height:34px}.game-driver-deck [hidden]{display:none!important}
#mgPlay.clear-game #mgThrottleBox input,#mgPlay.clear-game #mgAltitudeBox input{display:block;width:100%;min-height:34px;accent-color:#b7d4bd}#mgPlay.clear-game #mgThrottleBox output,#mgPlay.clear-game #mgAltitudeBox output{font:600 15px ui-monospace,monospace;color:#d5eac4}
.game-gear-button{font-size:10px!important;padding:8px 5px!important;max-width:112px;min-height:40px;white-space:normal;color:#e5f0f6;background:#163140;border:1px solid #87a3af70;border-radius:9px}
.game-camera-panel{position:absolute;z-index:30;top:60px;right:10px;width:min(280px,80vw);max-height:calc(100dvh - 85px);overflow:auto;padding:15px;background:#102936f5;border:1px solid #90b6c370;border-radius:14px;box-shadow:0 12px 35px #0006;color:#e4edf1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-camera-panel[hidden]{display:none}.game-camera-panel label,.game-camera-panel small{grid-column:1/-1;display:grid;gap:6px;font-size:11px}.game-camera-panel input,.game-camera-panel select{width:100%;min-height:34px;accent-color:#b4d5cc}.game-camera-panel select{background:#253f4a;color:#fff;border:1px solid #71878e;border-radius:6px;padding:6px}.game-camera-panel button{background:#315461;border:1px solid #a0bbc05c;color:#fff;border-radius:7px;font-size:11px;padding:8px}.game-camera-panel small{line-height:1.5;color:#b4c8ce}
#mgPlay.clear-game .mg-pause-layer,#mgPlay.clear-game .mg-result{z-index:50}
#mgPlay.clear-game .game-orbit-reset{top:60px;bottom:auto;right:10px;font-size:10px;padding:6px 9px;background:#152f3cab;opacity:.85}#mgPlay.clear-game:has(.game-camera-panel:not([hidden])) .game-orbit-reset{display:none}
.modelgames .mg-header{padding:18px 18px 12px;gap:10px;align-items:center}.modelgames .mg-header h1{font-size:clamp(25px,4vw,38px);margin:4px 0}.modelgames .mg-header p{font-size:14px;line-height:1.45;margin:0}.modelgames .mg-header .mg-eyebrow{font-size:10px;letter-spacing:.13em}.modelgames .mg-category-hero{min-height:0;padding:16px;grid-template-columns:1fr}.modelgames .mg-category-hero h2{font-size:24px}.modelgames .mg-category-hero p{font-size:14px;line-height:1.55;max-width:760px}.modelgames .mg-art{display:none}.modelgames .mg-start{margin:14px 0;width:100%;min-height:50px}
.game-workshop-fold,.game-preferences-fold{margin:10px 0;border:1px solid #b8cdc4;border-radius:13px;background:#f7faf8}.game-workshop-fold>summary,.game-preferences-fold>summary{padding:15px;cursor:pointer;font-weight:650;font-size:14px;color:#21443c}.game-workshop-fold .mg-workshop{margin:0;border:0;border-radius:0;padding:15px}.game-preferences-fold .mg-settings{padding:0 15px 15px}.aircraft-equipment{padding:14px;margin:12px 0;border:1px solid #bdd0cc;border-radius:12px;background:#eef5f2}.aircraft-equipment h4{margin:0 0 8px}.aircraft-equipment .mg-settings{margin:0}.aircraft-equipment p{font-size:12px;line-height:1.5;margin-bottom:0}
#labGame.quiet-game .lab-hud{min-height:42px;padding:4px 8px;gap:8px;top:6px;left:8px;right:8px}#labGame.quiet-game .lab-hud button{font-size:10px;padding:6px;min-height:32px}#labGame.quiet-game .lab-tacho.dialCenter29{height:43px!important;width:63px!important;min-width:63px}#labGame.quiet-game .lab-tacho.dialCenter29 .driveDial28{width:62px;height:62px}#labGame.quiet-game .lab-tacho.dialCenter29 .dialReadout28{font-size:16px}#labGame.quiet-game .lab-tacho.dialCenter29 .dialGear29{font-size:12px}#labGame.quiet-game .lab-message{top:66px;font-size:13px}#labGame.quiet-game .game-orbit-reset{top:66px}
#raceOverlay.quiet-game .race-hud-top{padding:4px 8px;padding-right:35px;gap:8px;min-height:42px}#raceOverlay.quiet-game .race-timer-num{font-size:20px}#raceOverlay.quiet-game #dragDialCenter29{height:42px!important;width:65px!important}#raceOverlay.quiet-game #dragDialCenter29 .driveDial28{width:62px;height:62px}#raceOverlay.quiet-game #dragDialCenter29 .dialReadout28{font-size:16px}#raceOverlay.quiet-game .race-hud-middle{margin-top:4px}#raceOverlay.quiet-game .race-exit{top:16px!important}
@media(max-width:420px){.game-driver-deck{grid-template-columns:105px minmax(64px,1fr) 125px;gap:6px;left:7px;right:7px}#mgPlay.clear-game .mg-top{gap:4px;padding:4px 6px}#mgPlay.clear-game .mg-top-buttons>button,#mgPlay.clear-game .quiet-hud-details>summary{padding:6px;font-size:10px}#mgPlay.clear-game .train-lever-labels{font-size:7px}.modelgames .mg-header{flex-wrap:wrap}}
@media(orientation:landscape) and (max-height:550px){.game-driver-deck{grid-template-columns:112px minmax(80px,1fr) 148px;bottom:max(6px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}#mgPlay.clear-game #mgTrainLeverBox{display:grid;grid-template-columns:1fr;gap:0;padding:5px 8px}#mgPlay.clear-game .digital-train-speed{padding:2px 6px;margin-bottom:2px}#mgPlay.clear-game .digital-train-speed #mgSpeed{font-size:25px}#mgPlay.clear-game .train-lever-housing{height:65px;margin:2px 0}#mgPlay.clear-game .train-lever-stem{height:35px}#mgPlay.clear-game .train-lever-steps{margin-top:3px}#mgPlay.clear-game .train-lever-steps button{height:28px;min-height:28px}#mgPlay.clear-game #mgTrainDirectionBox{padding:6px}#mgPlay.clear-game #mgTrainDirectionBox [data-direction]{height:34px}#mgPlay.clear-game #mgAction.train-door-button{height:78px;min-height:78px}.game-driver-deck [data-mg-key]{min-height:40px}.game-camera-panel{top:54px}.game-camera-panel label{gap:2px}.game-camera-panel{gap:6px;padding:10px}}

.compact-game .game-menu{position:relative;margin-left:auto;flex:none;pointer-events:auto;color:#eaf4f6;font-size:12px}
.compact-game .game-menu-toggle{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;box-sizing:border-box;min-width:78px;height:36px;padding:6px 12px;border:1px solid #b4cbd43b;border-radius:8px;background:#ffffff0a;font-weight:600;white-space:nowrap}
.compact-game .game-menu-toggle::-webkit-details-marker{display:none}
.compact-game .game-menu-body{position:absolute;top:calc(100% + 6px);right:0;z-index:35;width:min(270px,calc(100vw - 32px));max-height:calc(100dvh - 80px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:8px;display:grid;gap:5px;background:#102632fa;border:1px solid #91afbd70;border-radius:12px;box-shadow:0 12px 32px #0007;pointer-events:auto;touch-action:pan-y}
.compact-game .game-menu:not([open])>.game-menu-body{display:none}
.compact-game .game-menu .game-menu-body>button,.compact-game .game-menu .quiet-hud-details>summary{position:static!important;inset:auto!important;transform:none!important;display:block;width:100%!important;min-height:42px!important;height:auto!important;padding:10px 12px!important;margin:0!important;font-family:inherit;font-weight:600;font-size:12px;line-height:1.4;text-align:left;border:1px solid #8daab333;border-radius:7px;background:#ffffff07;color:#ecf5f5;box-sizing:border-box}
.compact-game .game-menu .game-menu-body>button[hidden]{display:none!important}
.compact-game .game-menu .quiet-hud-details{margin:0}
.compact-game .game-menu .quiet-hud-drawer{position:static!important;inset:auto!important;transform:none;width:100%!important;max-height:none!important;max-width:none;padding:10px!important;box-sizing:border-box;border:0;box-shadow:none;border-radius:8px;background:#071b2380;gap:10px}
.compact-game .game-menu .quiet-hud-details:not([open])>.quiet-hud-drawer{display:none}
.compact-game .game-menu .game-audio-settings{padding:9px 4px;border-top:1px solid #87a3b133;font-size:11px}
#mgPlay.compact-game .mg-top,#labGame.compact-game .lab-hud,#raceOverlay.compact-game .race-hud-top{min-height:40px;height:40px;box-sizing:border-box;padding:2px 4px 2px 10px;gap:8px;border-radius:10px;background:#102632c9;backdrop-filter:blur(8px);flex-wrap:nowrap;align-items:center;box-shadow:none}
#mgPlay.compact-game .mg-top{z-index:32}
#mgPlay.compact-game #mgNextObjective{margin:0;font-size:12px;line-height:1.3}
#mgPlay.compact-game .mg-readout{max-width:none;white-space:nowrap}
#mgPlay.compact-game .mg-top-buttons{margin-left:auto}
#mgPlay.compact-game .mg-top>.mg-instrument #mgSpeed{font-size:22px}
#mgPlay.compact-game .mg-top>.mg-instrument{min-width:35px;display:flex;gap:3px;align-items:baseline}
#mgPlay.compact-game .game-camera-panel{z-index:34;top:52px}
#mgPlay.compact-game .game-orbit-reset,#labGame.compact-game .game-orbit-reset{display:none}
#labGame.compact-game .lab-hud{z-index:32;justify-content:space-between}
#labGame.compact-game .lab-hud>.driveInfo29{margin:0;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;min-width:0}
#labGame.compact-game .lab-hud .driveInfo29 small{font-size:12px}
#labGame.compact-game .lab-controls{display:grid;grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);align-items:end;gap:8px;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));pointer-events:none}
#labGame.compact-game .lab-controls>div:first-child{justify-content:flex-start}
#labGame.compact-game .lab-controls>div:last-child{justify-content:flex-end;gap:6px}
#labGame.compact-game .lab-controls button{pointer-events:auto}
#labGame.compact-game .lab-controls .lab-tacho.dialCenter29{position:relative!important;inset:auto!important;transform:none!important;width:112px!important;height:112px!important;min-width:0;display:block;pointer-events:none;margin:0;padding:0!important;align-self:end}
#labGame.compact-game .lab-tacho.dialCenter29 .driveDial28{width:112px;height:112px;margin:0}
#labGame.compact-game .lab-tacho.dialCenter29 .dialReadout28{font-size:23px}
#labGame.compact-game .lab-tacho.dialCenter29 #labGear{font-size:16px}
#labGame.compact-game .lab-controls .steeringWheel28{width:124px!important;height:124px!important}
#labGame.compact-game .lab-controls .drivePedal28{width:58px!important;height:88px!important;min-height:0}
#labGame.compact-game .lab-paddle{bottom:160px;width:46px;height:42px;z-index:15}
#labGame.compact-game .lab-message{top:58px;font-size:14px;line-height:1.4;margin:0;width:70%;min-height:0;z-index:16}
#labGame.compact-game .lab-end{z-index:50}
#raceOverlay.compact-game .race-hud{z-index:32}
#raceOverlay.compact-game .race-hud-top{padding-right:4px}
#raceOverlay.compact-game .race-timer-num{font-size:17px;display:inline}
#raceOverlay.compact-game .race-hud-top>.race-hud-box:not(.dialHost28){display:flex;align-items:baseline;gap:5px}
#raceOverlay.compact-game .race-hud-top .race-speed-unit{font-size:10px}
#raceOverlay.compact-game .race-controls{display:grid;grid-template-columns:76px 112px 76px;gap:18px;justify-content:center;align-items:end;left:50%;right:auto;transform:translateX(-50%);width:auto;bottom:max(14px,env(safe-area-inset-bottom));z-index:15;pointer-events:none}
#raceOverlay.compact-game .race-controls>button{pointer-events:auto;width:76px;height:60px}
#raceOverlay.compact-game #dragDialCenter29{position:relative!important;inset:auto!important;transform:none!important;width:112px!important;height:112px!important;pointer-events:none}
#raceOverlay.compact-game #dragDialCenter29 .driveDial28{width:112px;height:112px;margin:0}
#raceOverlay.compact-game #dragDialCenter29 .dialReadout28{font-size:23px}
#raceOverlay.compact-game .race-hud-middle{position:absolute!important;left:50%;transform:translateX(-50%)!important;top:-22px!important;bottom:auto;width:112px;margin:0}
#raceOverlay.compact-game #raceTree{top:62px!important}
#raceOverlay.compact-game .race-shift-msg{font-size:11px}
#raceOverlay.compact-game .race-menu-overlay{z-index:50}
.modelgames .mg-header{padding:12px 14px 8px;gap:8px;flex-wrap:wrap}
.modelgames .mg-header h1{font-size:26px;letter-spacing:-.8px;margin:0}
.modelgames .mg-header .mg-eyebrow,.modelgames .mg-header>div>p{display:none}
.modelgames .mg-header>div{flex:1;min-width:150px}
.modelgames .mg-header>button{font-size:12px;min-height:38px;padding:8px 10px}
.modelgames .mg-categories{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px 12px;scrollbar-width:thin}
.modelgames .mg-categories>button{flex:none;white-space:nowrap;padding:8px 12px;font-size:12px;min-height:38px}
.modelgames .mg-category-hero{padding:12px 14px;margin-bottom:8px}
.modelgames .mg-category-hero h2{font-size:22px;margin:0}
.modelgames .mg-category-hero .mg-eyebrow{display:none}
.modelgames #mgCategoryPane>.mg-settings{gap:10px;margin:10px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.modelgames #mgCategoryPane>.mg-settings label{font-size:12px;min-width:0}
.modelgames #mgCategoryPane>.mg-settings select{min-height:42px;padding:8px;font-size:13px}
.modelgames .mg-start{min-height:44px;margin:10px 0;font-size:14px}
.game-help-fold,.game-preferences-fold,.game-workshop-fold{margin:7px 0;border-radius:10px;border:1px solid #c7d7d1;background:#f8fbf9}
.game-help-fold>summary,.game-preferences-fold>summary,.game-workshop-fold>summary{padding:12px 14px;cursor:pointer;font-size:13px;font-weight:650;color:#21443c}
.game-help-fold>p,.game-help-fold>.mg-features{margin:0;padding:0 14px 12px;font-size:13px;line-height:1.55}
.game-help-fold>.game-quick-guide{margin:0;border:0;background:none;padding:14px}
.modelgames #mgAchievementPane .play-journey{margin:12px 0}
.modelgames #mgCarPane .lab-hero{padding:16px;margin-bottom:12px}
.modelgames #mgCarPane .lab-hero h1{font-size:26px;margin:8px 0}
@media(max-width:420px){#labGame.compact-game .lab-controls{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);gap:4px;left:8px;right:8px}#labGame.compact-game .lab-controls .lab-tacho.dialCenter29{width:92px!important;height:92px!important}#labGame.compact-game .lab-tacho.dialCenter29 .driveDial28{width:92px;height:92px}#labGame.compact-game .lab-tacho.dialCenter29 .dialReadout28{font-size:20px}#labGame.compact-game .lab-controls .steeringWheel28{width:88px!important;height:88px!important}#labGame.compact-game .lab-controls .drivePedal28{width:42px!important;height:72px!important}#labGame.compact-game .lab-paddle{bottom:126px}#raceOverlay.compact-game .race-controls{grid-template-columns:64px 96px 64px;gap:12px}#raceOverlay.compact-game #dragDialCenter29{width:96px!important;height:96px!important}#raceOverlay.compact-game #dragDialCenter29 .driveDial28{width:96px;height:96px}#raceOverlay.compact-game .race-controls>button{width:64px}#raceOverlay.compact-game .race-hud-middle{width:96px}.modelgames #mgCategoryPane>.mg-settings{grid-template-columns:1fr 1fr}.modelgames #mgCategoryPane>.mg-settings>label:nth-child(3){grid-column:1/-1}}
@media(orientation:landscape) and (max-height:550px){#labGame.compact-game .lab-controls{grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);bottom:max(10px,env(safe-area-inset-bottom))}#labGame.compact-game .lab-controls .lab-tacho.dialCenter29{width:96px!important;height:96px!important}#labGame.compact-game .lab-tacho.dialCenter29 .driveDial28{width:96px;height:96px}#labGame.compact-game .lab-controls .steeringWheel28{width:100px!important;height:100px!important}#labGame.compact-game .lab-controls .drivePedal28{height:70px!important}#labGame.compact-game .lab-paddle{bottom:120px}#raceOverlay.compact-game #dragDialCenter29{width:90px!important;height:90px!important}#raceOverlay.compact-game #dragDialCenter29 .driveDial28{width:90px;height:90px}#raceOverlay.compact-game .race-controls{grid-template-columns:64px 90px 64px;gap:16px}#raceOverlay.compact-game .race-controls>button{height:50px;width:64px}#raceOverlay.compact-game .race-hud-middle{width:90px}}

.modelgames #mgCarPane .race-wrap{padding:10px 0 24px}
.modelgames #mgCarPane .race-hero{padding:14px;border-radius:14px;margin-bottom:10px}
.modelgames #mgCarPane .race-hero>h2{font-size:22px;letter-spacing:-.5px;margin:0 0 10px}
.modelgames #mgCarPane .race-hero>.lab-actions{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start!important;gap:6px;margin:0 0 10px!important;padding-bottom:4px;scrollbar-width:thin}
.modelgames #mgCarPane .race-hero>.lab-actions>button{flex:none;min-height:38px;padding:8px 11px;font-size:12px;white-space:nowrap}
.modelgames #mgCarPane .shared-car{display:grid;align-items:center;padding:10px;margin:8px 0;gap:10px;grid-template-columns:70px minmax(0,1fr) auto}
.modelgames #mgCarPane #raceSharedPhoto{width:70px;height:54px;object-fit:contain;border-radius:8px}
.modelgames #mgCarPane #raceSharedName{font-size:15px}
.modelgames #mgCarPane #raceSharedInfo{font-size:11px;line-height:1.4}
.modelgames #mgCarPane .raceSharedActions20 .btn{font-size:12px;padding:8px 10px;min-height:38px}
.modelgames #mgCarPane #raceModeDescription{font-size:12px;line-height:1.4;margin:8px 0}
.modelgames #mgCarPane .race-hero .game-help-fold{background:#0b2032b0;border-color:#7e98ad55;color:#e5f0f7}
.modelgames #mgCarPane .race-hero .game-help-fold>summary{color:#e5f0f7}
.modelgames #mgCarPane .race-hero .game-help-fold>div{padding:0 12px 12px}
.modelgames #mgCarPane .lab-panel{padding:14px;border-radius:13px}
.modelgames #mgCarPane .lab-panel h2,.modelgames #mgCarPane .lab-panel h3{font-size:18px;margin:0 0 8px}
.modelgames #mgCarPane .lab-panel>p{font-size:13px;line-height:1.5;margin:8px 0}
.modelgames #mgCarPane .game-help-fold .auto15,.modelgames #mgCarPane .game-help-fold .race-lb-panel{margin:0;padding:12px;border:0;background:none}
.modelgames #mgCarPane .game-help-fold>#race3dCars,.modelgames #mgCarPane .game-help-fold>h3{padding:0 12px 12px}
.modelgames #mgCarPane .traffic-lanes{display:none}
@media(max-width:480px){.modelgames #mgCarPane .shared-car{grid-template-columns:58px minmax(0,1fr)}.modelgames #mgCarPane #raceSharedPhoto{width:58px;height:48px}.modelgames #mgCarPane .raceSharedActions20{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}}

.expedition-info{padding:10px;border-top:1px solid #91afbd55;font-size:11px;line-height:1.5;color:#cfdee2}.expedition-info p{margin:8px 0}.expedition-info button{width:100%;padding:9px;color:#e3eee9;background:#345449;border:1px solid #819f93;border-radius:7px}.expedition-info button:disabled{opacity:.55}#mgTourResult{font-size:12px;line-height:1.45;margin:10px 0;padding:10px;border-radius:10px;background:#ffffff10;max-height:28dvh;overflow:auto}#mgTourResult p{margin:5px 0}#mgTourResult summary{cursor:pointer;padding:8px}.game-preferences-fold>summary{font-size:13px}

#mgPlay[data-kind=plane] .game-driver-deck{grid-template-columns:132px minmax(128px,1fr) 104px;gap:12px}
.flight-stick-module{pointer-events:auto;text-align:center;color:#dce9ed;user-select:none}.flight-label{display:block;font-size:10px;letter-spacing:.09em;text-transform:uppercase;text-shadow:0 1px 4px #000;margin-bottom:5px}.flight-stick-module small{font-size:10px;text-shadow:0 1px 5px #000}
#mgPlay .flight-stick{position:relative;display:block;width:118px;height:118px;margin:0 auto 5px;border:1px solid #90a7ae80;border-radius:50%;padding:0;background:radial-gradient(circle,#121e26 27%,#25383f 28%,#15232e 54%,#789298 55%,#1a303c 57%,#1d303cf0 70%);box-shadow:inset 0 2px 8px #a5c9d332,0 5px 20px #0005;touch-action:none;overflow:hidden;cursor:grab}
.flight-stick:focus-visible{outline:3px solid #91dbc1;outline-offset:4px}.flight-stick.engaged{cursor:grabbing}.flight-stick-ring{position:absolute;inset:22%;border:1px dashed #9ac0c54f;border-radius:50%}.flight-stick-cross:before,.flight-stick-cross:after{content:'';position:absolute;background:#a5c1c349}.flight-stick-cross:before{height:1px;left:13%;right:13%;top:50%}.flight-stick-cross:after{width:1px;top:13%;bottom:13%;left:50%}
.flight-stick-knob{position:absolute;left:50%;top:50%;width:36px;height:50px;border-radius:14px 14px 20px 20px;transform:translate(-50%,-50%);background:linear-gradient(100deg,#91a5a9,#3b4c51 18%,#1a252b 62%,#486067);border:1px solid #b4cbd060;box-shadow:3px 7px 6px #0009,inset 1px 1px 3px #d7e6e850;pointer-events:none}.flight-stick-knob:after{content:'';position:absolute;inset:25px 7px 7px;background:repeating-linear-gradient(0deg,#0c181b 0 2px,#405358 2px 4px);border-radius:5px}.flight-stick-knob i{position:absolute;left:10px;top:6px;width:12px;height:12px;border-radius:50%;border:1px solid #faa781;background:radial-gradient(circle at 30% 20%,#eab081,#b64822 65%)}
#flightInstruments{width:196px;max-width:100%;box-sizing:border-box;border:1px solid #768d9866;background:linear-gradient(125deg,#223842ef,#101e29ed);border-radius:13px;padding:7px;box-shadow:0 5px 18px #0005;color:#e8f2f5;pointer-events:none}
.flight-primary{display:flex;justify-content:center;align-items:center;gap:8px}.flight-attitude{position:relative;flex:none;width:68px;height:68px;border:4px solid #0c1923;border-radius:50%;outline:1px solid #81979a7d;overflow:hidden;background:#264761;box-shadow:inset 0 0 10px #0008}#flightHorizon{position:absolute;inset:-100%;background:linear-gradient(#335978 0%,#78b3d2 49.5%,#f5edcb 49.5% 50.5%,#9d7151 50.5%,#684a36 100%)}#flightHorizon i{position:absolute;width:32px;height:52px;left:calc(50% - 16px);top:calc(50% - 26px);background:repeating-linear-gradient(0deg,transparent 0 11px,#fff9 11px 12px)}.flight-aircraft-symbol{position:absolute;left:16%;right:16%;top:50%;height:3px;background:#ffc55d;box-shadow:0 1px 1px #0008}.flight-aircraft-symbol:after{content:'';position:absolute;width:8px;height:8px;border:2px solid #ffc55d;border-radius:50%;left:calc(50% - 5px);top:-4px;background:#273948}.flight-bank-mark{position:absolute;left:calc(50% - 4px);top:3px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid #fff}
#mgPlay.clear-game .flight-speed{color:#e0f4e9;text-align:center;min-width:54px}#mgPlay.clear-game .flight-speed #mgSpeed{font:600 25px/1.1 ui-monospace,monospace}#mgPlay.clear-game .flight-speed small{display:block;font-size:9px;color:#b4c9cd}
.flight-readouts{display:flex;justify-content:space-around;gap:5px;margin-top:6px}.flight-readouts span{display:flex;flex-direction:column;text-align:center;min-width:0}.flight-readouts small{font-size:8px;color:#a7bec7}.flight-readouts b{font:500 11px/1.5 ui-monospace,monospace;white-space:nowrap}#flightWarning{font-size:9px;line-height:1.25;text-align:center;color:#b8e5ca;min-height:11px;margin-top:3px}#flightWarning[data-alert=true]{color:#ffcb79}
.flight-switches{display:none;gap:5px;justify-content:center;max-width:196px;width:100%}#mgPlay[data-kind=plane] .flight-switches{display:flex}#mgPlay[data-kind=plane] .flight-switches .game-gear-button{flex:1;min-height:34px;padding:5px!important;font-size:9px!important;max-width:none}#mgPlay:not([data-kind=plane]) .flight-controls-help{display:none}
#mgPlay.clear-game .flight-throttle{display:flex;flex-direction:column;align-items:center;gap:4px}#mgPlay.clear-game .flight-throttle[hidden]{display:none!important}.flight-throttle-housing{height:115px;width:100%;position:relative;background:linear-gradient(100deg,#172630,#0b171f);border-radius:8px;box-shadow:inset 0 1px 7px #0008}.flight-throttle-labels{position:absolute;left:6px;top:9%;bottom:9%;display:flex;flex-direction:column;justify-content:space-between;font:9px ui-monospace,monospace;color:#91a9b2}.flight-throttle-labels b{font-weight:400}.flight-throttle-gate{position:absolute;left:62%;top:7%;bottom:7%;width:7px;background:#030c13;border-radius:8px;box-shadow:1px 0 1px #617f89}.flight-throttle-grip{position:absolute;left:-15px;width:36px;height:25px;bottom:52%;border-radius:6px;background:linear-gradient(#d6dad6,#7b918f 30%,#344849 36%,#1c3036 90%);border:1px solid #b5c7c86b;box-shadow:1px 4px 7px #000b;pointer-events:none}#mgPlay.clear-game .flight-throttle-housing #mgThrottle{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;writing-mode:vertical-lr;direction:rtl;appearance:auto;opacity:.001;touch-action:none}.flight-throttle-housing:focus-within{outline:2px solid #98d5ca;outline-offset:2px}
#mgPlay[data-kind=plane] .game-steering-cluster,#mgPlay[data-kind=plane] .game-motion-cluster{display:none}.flight-controls-help{font-size:11px;line-height:1.6;color:#ccdbdf;margin:0}
#mgPlay .game-driver-deck #mgAction{background-image:linear-gradient(to right,#66877666 var(--action-progress,0%),transparent var(--action-progress,0%)),linear-gradient(#31524a,#132c28)}
.train-cab-status{display:flex;justify-content:space-between;font:9px/1.4 ui-monospace,monospace;color:#b4cdd0;margin:3px 0}.train-cab-status [data-alert=true]{color:#ffd18b}
@media(max-width:480px){#mgPlay[data-kind=plane] .game-driver-deck{grid-template-columns:96px minmax(0,1fr) 78px;gap:7px}#mgPlay .flight-stick{width:92px;height:92px}.flight-stick-knob{width:32px;height:44px}.flight-stick-module small,.flight-label{font-size:9px}#flightInstruments{padding:5px}.flight-primary{gap:3px;flex-wrap:wrap}.flight-attitude{width:54px;height:54px;border-width:3px}#mgPlay.clear-game .flight-speed{display:flex;gap:4px;align-items:baseline;justify-content:center}#mgPlay.clear-game .flight-speed #mgSpeed{font-size:20px}.flight-readouts{gap:2px;flex-wrap:wrap}.flight-readouts b{font-size:10px}.flight-readouts span:last-child{display:none}.flight-throttle-housing{height:100px}#mgPlay.clear-game .flight-throttle{padding:7px 5px}.flight-throttle-grip{width:32px;left:-13px}.flight-throttle-labels{font-size:8px}.flight-switches{flex-wrap:wrap}#mgPlay[data-kind=plane] .flight-switches .game-gear-button{min-height:30px}}
@media(orientation:landscape) and (max-height:550px){#mgPlay[data-kind=plane] .game-driver-deck{grid-template-columns:106px minmax(128px,1fr) 88px;gap:10px}#mgPlay .flight-stick{width:94px;height:94px}.flight-throttle-housing{height:85px}#flightInstruments{width:194px;padding:5px}.flight-attitude{width:52px;height:52px}.flight-readouts{margin-top:4px}#flightWarning{min-height:10px}.flight-label,.flight-stick-module small{font-size:9px}#mgPlay[data-kind=plane] .game-driver-center{gap:4px}#mgPlay[data-kind=plane] #mgAction{min-height:32px;padding:5px;font-size:10px}.flight-switches{flex-wrap:nowrap}}

:root{--site-chrome-height:110px}html{scroll-padding-top:calc(var(--site-chrome-height) + 12px)}
#siteChrome{position:sticky;top:0;z-index:100;background:#fafcfb;box-shadow:0 4px 18px #1733290c;border-bottom:1px solid #dce6e1}
#siteChrome>.banner{position:static;padding:4px 14px;font-size:11px;line-height:1.4;letter-spacing:.025em;background:#173c36;color:#e4eeea;min-height:0}
#siteChrome.site-scrolled>.banner{display:none}
#siteChrome>header{position:static;top:auto;background:transparent;border:0;box-shadow:none;padding:0}
#siteChrome .head-inner{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto;align-items:center;gap:18px;max-width:1280px;margin:auto;padding:10px 20px;flex-wrap:nowrap}
#siteChrome .logo{font-size:25px;white-space:nowrap;gap:7px;cursor:pointer;line-height:1.2}
#siteChrome .logo .mark{font-size:23px}
#siteChrome .search{order:0;width:100%;max-width:540px;min-width:0;margin:auto}
#siteChrome .search input{width:100%;height:40px;border:1px solid #d4e0da;border-radius:12px;background:#f0f5f2;padding:8px 14px;font-size:14px;box-sizing:border-box}
#siteChrome .site-create{min-height:40px;white-space:nowrap;border-radius:10px;padding:9px 14px;font-size:13px}
#siteChrome #headerUser{display:flex;min-width:40px;max-width:180px;padding:5px 8px;border-radius:10px;gap:8px;background:#f0f5f2;border:1px solid #d9e4de;cursor:pointer}
#siteChrome .header-user-avatar{width:30px;height:30px;font-size:17px;flex:none}
#siteChrome .header-user-info{display:block;min-width:0}#siteChrome .header-user-name{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#siteChrome .header-user-sub{display:none}
#siteChrome>nav{position:static;top:auto;z-index:auto;background:transparent;border:0;box-shadow:none;padding:0}
#siteChrome .nav-inner{display:flex;align-items:center;max-width:1280px;margin:auto;padding:0 20px 8px;gap:5px;overflow:visible;white-space:nowrap}
#siteChrome .nav-inner>.tab{flex:none;min-height:36px;border:0;border-radius:9px;font-size:13px;padding:8px 14px;color:#52685f;background:transparent;box-shadow:none;line-height:1.25}
#siteChrome .nav-inner>.tab.active{color:#184c3e;background:#e0eee5;box-shadow:inset 0 -2px #6c9d82}
#siteChrome .badge-dot{position:static;display:inline-flex;margin-left:4px;min-width:16px;height:16px;font-size:10px}






#siteChrome .site-search-toggle{display:none}#siteChrome :focus-visible{outline:3px solid #779d80;outline-offset:3px}
@media(max-width:680px){#siteChrome>.banner{display:none}#siteChrome .head-inner{grid-template-columns:minmax(96px,1fr) 36px auto 36px;gap:7px;padding:9px 12px}#siteChrome .logo{font-size:22px;gap:0}#siteChrome .logo .mark{display:none}#siteChrome .site-search-toggle{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d8e3dd;background:#f2f6f3;border-radius:9px;padding:8px;color:#244b3d}#siteChrome .site-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}#siteChrome .search{display:none;grid-column:1/-1;grid-row:2;max-width:none}#siteChrome.search-open .search{display:block}#siteChrome .search input{height:38px}#siteChrome .site-create{grid-column:3;grid-row:1;min-height:36px;padding:7px 9px;font-size:12px}#siteChrome .site-create .btn-text{display:inline}#siteChrome #headerUser{grid-column:4;grid-row:1;min-width:0;width:36px;height:36px;padding:2px;justify-content:center;box-sizing:border-box}#siteChrome .header-user-info{display:none}#siteChrome .nav-inner{padding:0 8px 7px;gap:3px}#siteChrome .nav-inner>.tab{flex:1;min-width:0;font-size:10px;padding:8px 4px;min-height:35px;white-space:nowrap;letter-spacing:-.15px}#siteChrome .badge-dot{font-size:9px;min-width:13px;height:13px;margin-left:1px}}
@media(prefers-reduced-motion:no-preference){#siteChrome .tab,#siteChrome button{transition:background-color .15s,color .15s}}

#siteChrome .nav-inner>.tab{display:flex;align-items:center;justify-content:center;gap:6px;position:relative}
#siteChrome .site-tab-icon{display:inline-flex;flex:none}#siteChrome .site-tab-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#siteChrome .site-tab-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:680px){#siteChrome .nav-inner>.tab{flex-direction:column;gap:3px;padding:5px 2px;min-height:42px}#siteChrome .site-tab-icon svg{width:16px;height:16px}#siteChrome .site-tab-label{max-width:100%;line-height:1.2}#siteChrome #chatBadge{position:absolute;top:0;right:5px;margin:0;min-width:13px;font-size:9px}#siteChrome .nav-inner{align-items:stretch}}

#siteChrome .logo-text{display:inline!important}#siteChrome .logo .mark{display:grid!important;width:34px;height:34px;font-size:20px}#siteChrome .logo{gap:7px!important}@media(max-width:380px){#siteChrome .logo{font-size:18px}#siteChrome .logo .mark{width:28px;height:28px;font-size:17px}#siteChrome .head-inner{grid-template-columns:minmax(105px,1fr) 32px auto 32px;gap:4px;padding-inline:8px}}

#siteChrome .nav-inner{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;white-space:nowrap;scrollbar-width:thin;overscroll-behavior-x:contain;touch-action:pan-x;gap:5px}
#siteChrome .nav-inner>.tab,#siteChrome .nav-inner>.site-nav-action{flex:0 0 auto;min-width:82px;min-height:44px;white-space:nowrap}
#siteChrome .nav-inner>.site-nav-action{margin:0;border:0;border-radius:9px;padding:8px 12px;background:transparent;color:#52685f;font:inherit;font-size:13px;cursor:pointer}
#siteChrome .nav-inner>.hidden{display:none!important}
@media(max-width:680px){#siteChrome .nav-inner{padding:0 10px 6px;gap:4px}#siteChrome .nav-inner>.tab{flex:0 0 auto;min-width:78px;padding:6px 10px;font-size:11px;min-height:44px}#siteChrome .nav-inner>.site-nav-action{min-width:78px;font-size:12px}#siteChrome .nav-inner>.tab:not(:has(.site-tab-icon)){font-size:12px;display:flex;align-items:center;justify-content:center}}

#mgCategoryPane .mg-category-hero{min-height:0;padding:12px 0;background:none;border:0}#mgCategoryPane .mg-art,#mgCategoryPane .mg-category-hero .mg-eyebrow{display:none}#mgCategoryPane .mg-category-hero h2{font-size:23px;margin:0}
.category-preview{width:100%;height:clamp(230px,38vw,420px)!important;max-height:420px;position:relative;overflow:hidden;border:1px solid #a8b8b1;border-radius:18px;background:linear-gradient(#c5dce3,#e4ece4);margin:0 0 14px;display:block!important}.category-preview canvas{width:100%!important;height:calc(100% - 30px)!important;display:block}.category-preview small{height:30px;display:block;text-align:center;padding:4px;font-size:12px;color:#345657}.mg-workshop-layout{grid-template-columns:1fr!important}
#mgOpenGame{width:100%;margin-bottom:12px}#mgCarPane>.btn-primary{width:100%;margin-bottom:12px}.game-setup{border-bottom:1px solid #638078;padding-bottom:16px;margin-bottom:12px}.game-setup h3{margin:0 0 6px}.game-setup>p,.game-setup .game-help-fold p{font-size:13px;line-height:1.5}.game-setup .mg-settings,.car-setup .mg-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-setup .mg-settings label,.car-setup label{display:flex;flex-direction:column;gap:5px;font-size:13px}.game-setup select,.car-setup select{width:100%;min-width:0;padding:10px;border-radius:8px}.game-setup .mg-start{width:100%;font-size:15px;margin:15px 0}.game-setup .game-quick-guide{margin:0}.game-menu-body .game-help-fold{color:inherit;background:transparent}
#mgPlay.is-lobby #mgCanvas,#mgPlay.is-lobby #mgDriverDeck,#mgPlay.is-lobby .mg-instrument,#mgPlay.is-lobby .mg-readout,#mgPlay.is-lobby .mg-result,#mgPlay.is-lobby #mgPause,#mgPlay.is-lobby #mgCamera{visibility:hidden}#mgPlay.is-lobby #mgStage{background:radial-gradient(ellipse at top,#315e65,#122830)}#mgPlay.is-lobby .mg-top{justify-content:flex-end}#mgPlay.is-lobby .game-menu-body{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 65px);box-shadow:0 12px 50px #0005}#mgPlay.is-lobby .game-menu-body>.quiet-hud-details,#mgPlay.is-lobby .expedition-info{display:none}
#mgStage,#labStage{position:relative}.render-status{position:absolute;inset:0;z-index:140;background:radial-gradient(ellipse at top,#234651,#0e1c29);color:#edf5f5;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;padding:30px;min-height:180px}.render-status[hidden]{display:none}.render-status strong{font-size:22px}.render-status p{max-width:480px;color:#c4dce1;line-height:1.6}.render-status>div{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.render-status button{background:#dcf4eb;color:#153c39;border:0;border-radius:10px;padding:12px;font-weight:700}.render-status:not(.render-failed):before{content:'';width:24px;height:24px;border:3px solid #a1cdbe44;border-top-color:#bcf3dc;border-radius:50%;animation:render-spin 1s linear infinite}@keyframes render-spin{to{transform:rotate(360deg)}}
.car-setup{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;border:1px solid #799d96;border-radius:18px;background:#edf4f0;color:#193b3c;padding:22px}.car-setup::backdrop{background:#071923c9}.car-setup header{display:flex;align-items:center;justify-content:space-between}.car-setup header h2{font-size:22px}.car-setup header button{border:0;background:transparent;font-size:24px}.car-setup .mg-settings{margin:12px 0}.car-setup .game-help-fold{margin:18px 0}.car-setup #carSetupStart{width:100%}
.country-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:18px 0}.country-admin-grid label{padding:12px;border:1px solid var(--border,#ddd);border-radius:9px;display:flex;gap:10px}.country-admin-grid label[hidden]{display:none}
@media(max-width:480px){.game-setup .mg-settings,.car-setup .mg-settings{grid-template-columns:1fr 1fr}#mgPlay .game-menu-body{max-width:calc(100vw - 24px)}.category-preview{height:250px!important}}
.forum-tools{display:grid;grid-template-columns:2fr 1fr auto auto;align-items:end;gap:12px;margin:22px 0 8px}.forum-tools label{display:flex;flex-direction:column;gap:6px;font-size:13px}.forum-tools input,.forum-tools select{border:1px solid #baccc4;border-radius:9px;padding:11px;min-width:0}.forum-tools .forum-saved{flex-direction:row;align-items:center;padding:11px 0}.forum-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.forum-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.forum-excerpt.is-expanded{display:block}.forum-card .forum-replies{border-left:3px solid #55887b;margin-top:18px;padding-left:16px}.forum-card button[aria-pressed=true]{background:#d9eee4;color:#235847}.forum-tabs{overflow:auto;flex-wrap:nowrap!important;padding-bottom:8px}.forum-tabs button{white-space:nowrap}.forum-tabs button[aria-selected=true]{background:#215b50;color:white}#forum15More{display:block;margin:20px auto}#forum15More[hidden]{display:none}@media(max-width:650px){.forum-tools{grid-template-columns:1fr 1fr}.forum-tools>label:first-child{grid-column:1/-1}}
#mgPlay.compact-game .mg-top{z-index:65}
.car-setup [hidden]{display:none!important}

.game-section-tabs{padding:4px 0 9px;border-bottom:1px solid #95ada73b;margin-bottom:15px}.game-section-tabs>button{border:1px solid #9abcb45c;border-radius:8px;background:transparent;color:inherit;padding:10px 14px;font-family:inherit;font-size:13px;font-weight:600;flex:none;min-height:42px;white-space:nowrap}.game-section-tabs>button[aria-selected=true]{background:#245f53;color:white;border-color:#245f53}.game-settings-page{display:grid;grid-template-columns:1fr;gap:16px;padding:2px 0 14px}.game-settings-page>label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:650}.game-settings-page>.game-help-fold{margin:0}.car-setup .game-section-tabs{order:0}.car-setup{width:min(740px,calc(100vw - 20px))}.car-setup header{margin-bottom:12px}.car-setup .game-section-tabs{margin-top:0}.car-setup #carSetupStart{position:sticky;bottom:0;min-height:46px}.game-native-choice{display:none!important}.game-choice-field{width:100%;min-width:0}.game-choice-field>input[type=search]{box-sizing:border-box;width:100%;padding:9px 12px;margin:0 0 7px;border:1px solid #91ada4;border-radius:8px}.game-choice-row{display:flex;gap:6px;flex-wrap:wrap;align-items:stretch}.game-choice-row>button{min-height:42px;padding:9px 12px;border:1px solid #8aa99f66;border-radius:8px;background:#dce9e655;color:inherit;font-family:inherit;font-size:13px;font-weight:500;line-height:1.35;text-align:left;cursor:pointer}.game-choice-row>button[aria-checked=true]{background:#245f53;border-color:#245f53;color:#fff;box-shadow:inset 0 0 0 1px #e3fff52b}.game-choice-row>button:disabled{opacity:.5;cursor:not-allowed}.game-choice-row>button:focus-visible,.game-toolbar-row>button:focus-visible,.game-section-tabs>button:focus-visible{outline:3px solid #e1b963;outline-offset:2px}.game-toolbar-panel .game-choice-row>button,.game-camera-panel .game-choice-row>button{background:#729a9b22;color:#eef7f4}.game-toolbar-panel .game-choice-row>button[aria-checked=true],.game-camera-panel .game-choice-row>button[aria-checked=true]{background:#4b7868;border-color:#aacdb8}.game-toolbar-panel .game-options-button{color:inherit}
.game-workshop{border:1px solid #b8cec4;background:#f6faf7;border-radius:16px;margin:0 0 14px;overflow:hidden}.game-workshop>header{padding:16px 18px;border-bottom:1px solid #c7d8d0;background:linear-gradient(110deg,#e4efe7,#f4f8f1)}.game-workshop>header h3{font-size:18px;margin:0 0 4px;color:#203f3a}.game-workshop>header p{font-size:13px;color:#526d64;margin:0}.game-workshop .mg-workshop{padding:16px;margin:0;border:0;background:transparent}.game-workshop .mg-workshop>.photo-workflow{margin-top:0}.game-workshop .mg-library-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}.game-workshop .mg-library-row label{min-width:0}.game-workshop .mg-library-row input{box-sizing:border-box;width:100%}.game-workshop .mg-faces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.game-workshop .mg-face{padding:10px;min-width:0}.game-workshop .mg-face img{height:125px;width:100%;object-fit:contain}.game-workshop .mg-face .model-view-icon{max-height:100px}.game-workshop .mg-face-guide{font-size:11px;line-height:1.4;min-height:34px}.game-workshop .mg-face input{max-width:100%;font-size:10px}.game-workshop .mg-repair-face{padding:7px 5px;font-size:10px;white-space:normal}.game-workshop .mg-note{font-size:12px;line-height:1.5}.game-workshop .mg-workshop-layout{display:block}.game-options-section{border:1px solid #9cb6ac60;border-radius:9px;margin:10px 0;overflow:hidden}.game-options-button{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;padding:12px 14px;cursor:pointer}.game-options-button[aria-expanded=true]{border-bottom:1px solid #9cb6ac50;background:#9cb6ac18}.game-options-section>div{padding:12px}.game-options-section .game-help-fold{background:transparent;color:inherit;border:0}.modelgames #mgCategoryPane>.mg-category-hero{display:none}.game-workshop #viewStudio{padding:14px}.game-workshop #viewStudio .lab-hero{display:none}.game-workshop #viewStudio .lab-layout{display:block}.game-workshop #viewStudio .lab-editor{width:100%;max-width:none;margin:0}.game-workshop #viewStudio .lab-note{font-size:12px}.game-workshop #viewStudio .lab-grid{gap:10px}.game-workshop #viewStudio .lab-stage{display:none}.game-workshop #viewStudio .garage-step{font-size:16px}
@media(max-width:700px){.game-workshop .mg-faces{grid-template-columns:repeat(2,minmax(0,1fr))}.game-workshop .mg-face img{height:145px}.game-workshop .mg-library-row{grid-template-columns:1fr}.game-workshop .mg-library-row>button{justify-self:start}.game-workshop .mg-workshop{padding:12px}.game-choice-row>button{font-size:12px;padding:8px 10px}.game-toolbar-row>button{padding:6px 9px!important}#mgPlay.toolbar-game .mg-readout,#labGame.toolbar-game .lab-hud>.driveInfo29{display:none}#raceOverlay.toolbar-game .race-hud-top>.race-hud-box{max-width:85px}.toolbar-game .game-toolbar-panel{padding:12px!important}.game-section-tabs>button{padding:9px 11px}.game-workshop #viewStudio{padding:10px}.game-workshop .mg-assignments{grid-template-columns:1fr 1fr}.game-workshop .mg-assignment-card .game-choice-row>button{font-size:11px;padding:7px}}
@media(orientation:landscape) and (max-height:550px){.toolbar-game .game-toolbar-panel{max-height:calc(100dvh - 66px)!important}.game-toolbar-panel .game-section-tabs{position:sticky;top:-12px;background:#132f38;z-index:2;padding-top:8px}.game-workshop .mg-faces{grid-template-columns:repeat(5,minmax(0,1fr))}.game-workshop .mg-face img{height:95px}}

.game-section-tabs[hidden]{display:none!important}.game-toolbar-panel .game-setup>h3{font-size:18px}.modelgames #mgCarPane>#viewRacingHub{display:none}

:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-toolbar{position:static;flex:none;margin-left:auto;pointer-events:auto;color:#f4fbf9;min-width:100px}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-menu-trigger{position:static!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:100px!important;min-height:40px!important;height:40px!important;margin:0!important;padding:8px 14px!important;border:1px solid #86aba6!important;border-radius:9px;background:#183e47!important;color:#fff!important;-webkit-text-fill-color:#fff;font:700 14px/1.2 system-ui,sans-serif;opacity:1!important;visibility:visible!important;text-shadow:none;box-shadow:0 2px 8px #00131d40;cursor:pointer}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-menu-trigger[aria-expanded=true]{background:#d5eee2!important;color:#123b32!important;-webkit-text-fill-color:#123b32}
.toolbar-game .game-menu-content{position:absolute;inset:calc(100% + 6px) 0 auto auto;z-index:80;width:min(330px,calc(100vw - 24px));max-height:calc(100dvh - 80px - env(safe-area-inset-top));overflow:auto;box-sizing:border-box;padding:10px;border:1px solid #789f9a;border-radius:13px;background:#102d37;color:#f4fbf9;box-shadow:0 12px 35px #00121d66;touch-action:pan-y;overscroll-behavior:contain}
.toolbar-game .game-menu-content.game-menu-settings{width:min(680px,calc(100vw - 24px))}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-toolbar-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:static!important;inset:auto!important;gap:6px;height:auto;width:100%;overflow:visible;box-sizing:border-box;margin:0;padding:0;box-shadow:none!important;border:0;background:transparent!important;backdrop-filter:none;color:#f4fbf9}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-toolbar-row>button{position:static!important;inset:auto!important;transform:none!important;display:block;width:100%!important;min-width:0;min-height:42px!important;height:auto!important;padding:10px!important;margin:0!important;border:1px solid #66878b!important;border-radius:8px;background:#284851!important;color:#f4fbf9!important;-webkit-text-fill-color:#f4fbf9;opacity:1!important;font:600 13px/1.25 system-ui,sans-serif;text-align:left;white-space:normal;cursor:pointer;text-shadow:none}
.toolbar-game .game-toolbar-panel{position:static!important;inset:auto!important;z-index:auto;width:100%!important;max-width:none!important;max-height:none!important;box-sizing:border-box;overflow:visible;padding:4px!important;margin:0!important;border:0;border-radius:0;background:transparent;color:#edf6f4;box-shadow:none;transform:none!important}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-menu-content[hidden],:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-toolbar-row[hidden],.toolbar-game .game-toolbar-panel[hidden],.toolbar-game .game-toolbar-row>button[hidden],.game-settings-page[hidden],.game-options-section>[hidden],.game-choice-field[hidden],.game-choice-row>button[hidden]{display:none!important}
.toolbar-game .game-menu-panel-heading{position:static;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 12px;margin:0 0 12px;background:transparent;border:0;border-bottom:1px solid #8ea9a64d;color:#f4fbf9;font-size:14px;box-shadow:none}
:is(#mgPlay,#labGame,#raceOverlay).toolbar-game .game-menu-back{position:static!important;margin:0!important;padding:9px 12px!important;min-height:40px;border:1px solid #6b8d8a;border-radius:8px;background:#284851;color:#fff!important;font:600 13px system-ui,sans-serif;cursor:pointer}
.toolbar-game .game-toolbar-panel #mgMiniMap{position:static!important;display:block;width:100%;height:auto;max-height:320px;object-fit:contain;margin:0}
.toolbar-game .game-toolbar-panel .quiet-hud-drawer,.toolbar-game .game-toolbar-panel .mg-map-panel{position:static!important;width:100%;background:transparent}
#mgPlay.toolbar-game .mg-top,#labGame.toolbar-game .lab-hud,#raceOverlay.toolbar-game .race-hud-top{background:#142e38!important;border:1px solid #6f9296;box-shadow:0 3px 12px #00121d38;backdrop-filter:none;box-sizing:border-box;min-height:46px;height:46px;padding:2px 3px 2px 9px;overflow:visible;gap:10px;width:fit-content;max-width:calc(100vw - 16px)}
#mgPlay.toolbar-game .mg-top,#labGame.toolbar-game .lab-hud{left:auto;right:8px;z-index:65}#raceOverlay.toolbar-game .race-hud-top{margin-left:auto}#raceOverlay.toolbar-game .race-hud{z-index:65}
#mgPlay.toolbar-game .mg-top-buttons{flex:none;width:auto!important;min-width:100px;margin:0;display:flex}#mgPlay.toolbar-game .mg-readout{flex:0 1 200px;min-width:0}#labGame.toolbar-game .lab-hud>.driveInfo29{flex:0 1 220px}#mgPlay.toolbar-game .game-camera-panel{z-index:66}
#mgPlay.is-lobby .mg-readout,#mgPlay.is-lobby .mg-instrument,#mgPlay.is-lobby .game-toolbar-row>#mgPause,#mgPlay.is-lobby .game-toolbar-row>#mgCamera{display:none!important}
.toolbar-game .game-setup{border:0;margin:0;padding:0}.toolbar-game .game-menu-trigger:focus-visible,.toolbar-game .game-menu-back:focus-visible{outline:3px solid #f0c66d;outline-offset:3px}
.game-section-tabs{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;max-width:100%;position:static!important;inset:auto!important;background:transparent!important;box-shadow:none!important}.car-setup .game-section-tabs{color:#193b3c}.game-toolbar-panel .game-section-tabs{color:#edf6f4}
@media(orientation:landscape) and (max-height:550px){.toolbar-game .game-menu-content{max-height:calc(100dvh - 68px - env(safe-area-inset-top))}.toolbar-game .game-toolbar-panel{max-height:none!important}}

