/* Styles isolated to the game shortcode — Adrian's main website remains unchanged. */
#ahmtr {--ah-bg:#07111e;--ah-deep:#0d1b2b;--ah-card:#11243a;--ah-ink:#f1f6fb;--ah-muted:#9db0c5;--ah-line:#29445b;--ah-gold:#f8c65b;--ah-red:#ef434a;--ah-blue:#398ac0;--ah-green:#58c395;color:var(--ah-ink);background:var(--ah-bg);font-family:Inter,Arial,sans-serif;font-size:15px;line-height:1.5;min-height:480px;overflow:hidden;border-radius:12px}
#ahmtr *{box-sizing:border-box}#ahmtr button,#ahmtr input,#ahmtr select{font:inherit}#ahmtr button{cursor:pointer}#ahmtr button:disabled{opacity:.52;cursor:not-allowed}#ahmtr a{color:var(--ah-gold)}#ahmtr a:hover{text-decoration:underline}#ahmtr h2,#ahmtr h3,#ahmtr p{margin-top:0;color:inherit}#ahmtr h2{font-size:clamp(24px,3vw,34px);font-weight:800}#ahmtr h3{font-size:19px;font-weight:750}#ahmtr .ahmtr-container{max-width:1300px;margin:auto;padding:22px 24px 18px}
#ahmtr .ahmtr-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}#ahmtr .ahmtr-logo{display:flex;gap:12px;align-items:center;letter-spacing:.07em;font-weight:800}#ahmtr .ahmtr-logo strong{display:block;font-size:22px;line-height:1.1}#ahmtr .ahmtr-logo span:not(.ahmtr-emblem){display:block;color:var(--ah-red);font-size:13px;letter-spacing:.12em}#ahmtr .ahmtr-emblem{display:grid;place-items:center;border:3px solid var(--ah-gold);color:var(--ah-gold);width:55px;height:55px;border-radius:50%;font-size:21px;background:radial-gradient(circle,#513817,#17212e)}#ahmtr .ahmtr-wallet{white-space:nowrap}#ahmtr .ahmtr-credits{display:inline-flex;gap:8px;align-items:center;font-weight:800;color:var(--ah-gold)}#ahmtr .ahmtr-credits small{font-size:11px;color:#d2dce5;font-weight:600}#ahmtr .ahmtr-coin{display:inline-grid;place-items:center;border-radius:50%;width:29px;height:29px;border:2px solid #ffdd82;background:linear-gradient(130deg,#f3d56c,#a36a14);color:#3e2604;font-size:9px;letter-spacing:-.06em;box-shadow:0 0 8px #f8c65b33}
#ahmtr .ahmtr-nav{display:flex;gap:5px;flex-wrap:wrap;background:#102136;padding:8px;border:1px solid var(--ah-line);border-radius:10px;margin-bottom:20px}#ahmtr .ahmtr-nav button{border:0;background:transparent;color:#c4d0de;font-weight:700;padding:11px 15px;border-radius:6px;white-space:nowrap}#ahmtr .ahmtr-nav button.active,#ahmtr .ahmtr-nav button:hover{background:var(--ah-red);color:#fff}
#ahmtr .ahmtr-button{display:inline-flex;align-items:center;justify-content:center;border:0;text-decoration:none!important;padding:10px 16px;background:var(--ah-red);color:#fff!important;border-radius:6px;font-weight:800;gap:8px}#ahmtr .ahmtr-button:hover{background:#f55f65;color:#fff}#ahmtr .ahmtr-button.secondary{background:#25435d;border:1px solid #45617d}#ahmtr .ahmtr-button.small{font-size:12px;padding:7px 8px;white-space:nowrap}#ahmtr .ahmtr-eyebrow,#ahmtr .ahmtr-kicker{color:var(--ah-gold);font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase}#ahmtr .ahmtr-muted{color:var(--ah-muted)!important;font-size:13px}#ahmtr .ahmtr-intro{margin-bottom:22px}#ahmtr .ahmtr-intro p{color:var(--ah-muted)}
#ahmtr .ahmtr-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(105deg,#162940 0%,#0b1825 64%,#361721 100%);border:1px solid #35536c;border-radius:12px;padding:30px 32px;min-height:220px}#ahmtr .ahmtr-hero h2{margin:7px 0}#ahmtr .ahmtr-hero p{max-width:600px;color:#d1dae4}#ahmtr .ahmtr-hero-symbol{font-size:110px;filter:drop-shadow(0 10px 20px #070c15)}#ahmtr .ahmtr-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 26px}#ahmtr .ahmtr-summary>div{border:1px solid var(--ah-line);background:var(--ah-deep);padding:14px 17px;border-radius:9px}#ahmtr .ahmtr-summary strong{display:block;color:#fff;font-size:26px}#ahmtr .ahmtr-summary small{color:var(--ah-muted)}#ahmtr .ahmtr-section-heading{margin:24px 0 14px;font-size:22px}
#ahmtr .ahmtr-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:16px}#ahmtr .ahmtr-bike-card,#ahmtr .ahmtr-product,#ahmtr .ahmtr-race-card{background:var(--ah-deep);border:1px solid var(--ah-line);border-radius:10px;overflow:hidden}#ahmtr .ahmtr-bike-visual,#ahmtr .ahmtr-product-art{height:152px;display:grid;place-items:center;background:linear-gradient(135deg,#163a5b,#0b1525 60%,#40202a);font-size:86px}#ahmtr .ahmtr-bike-body,#ahmtr .ahmtr-product-body{padding:16px}#ahmtr .ahmtr-bike-body h3,#ahmtr .ahmtr-product-body h3{margin:5px 0 13px}#ahmtr .ahmtr-product-body p{color:var(--ah-muted);font-size:13px}#ahmtr .ahmtr-product-bottom{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:14px}#ahmtr .ahmtr-product-bottom .ahmtr-credits{font-size:14px}
#ahmtr .ahmtr-stat{display:grid;grid-template-columns:90px 1fr 25px;gap:8px;align-items:center;margin:9px 0;font-size:12px;text-transform:capitalize}#ahmtr .ahmtr-meter{height:7px;background:#314153;border-radius:8px;overflow:hidden}#ahmtr .ahmtr-meter i{display:block;height:100%;background:linear-gradient(90deg,#2a87b6,#66cce6);border-radius:8px}#ahmtr .ahmtr-stat strong{text-align:right}#ahmtr .ahmtr-pill{display:inline-block;background:#273c52;color:var(--ah-gold);font-weight:700;font-size:12px;padding:6px 9px;border-radius:18px}#ahmtr .ahmtr-empty{padding:42px 20px;border:1px dashed var(--ah-line);text-align:center;border-radius:10px;color:var(--ah-muted);background:var(--ah-deep)}#ahmtr .ahmtr-inline-form{display:flex;gap:7px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--ah-line);padding-top:12px;margin-top:12px}#ahmtr label{display:block;color:#d3e0ee;font-weight:700;font-size:13px}#ahmtr input,#ahmtr select{display:block;background:#091828;border:1px solid #51708b;border-radius:5px;min-height:39px;color:#fff;padding:9px 10px;max-width:100%;margin-top:6px}#ahmtr .ahmtr-inline-form input{width:140px}#ahmtr .ahmtr-upgrade-list{border-top:1px solid var(--ah-line);margin-top:16px;padding-top:12px}#ahmtr .ahmtr-upgrade{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:9px 0;border-bottom:1px solid #253b50}#ahmtr .ahmtr-upgrade strong{display:block;font-size:12px}#ahmtr .ahmtr-upgrade small{display:block;color:var(--ah-muted);font-size:10px}#ahmtr .ahmtr-seller{color:var(--ah-muted);font-size:13px;margin:15px 0 0}
#ahmtr .ahmtr-track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}#ahmtr .ahmtr-track-card{background:#112136;border:1px solid var(--ah-line);border-radius:10px;overflow:hidden;padding:0 15px 15px}#ahmtr .ahmtr-track-art{font-size:50px;background:repeating-linear-gradient(130deg,#1e4153 0 10px,#163142 10px 20px);margin:0 -15px 14px;text-align:center;padding:16px}#ahmtr .ahmtr-track-card h3{margin-bottom:5px}#ahmtr .ahmtr-track-card p{color:var(--ah-muted);font-size:12px;margin-bottom:6px}#ahmtr .ahmtr-track-card small{color:var(--ah-gold)}#ahmtr .ahmtr-panel{background:#12243a;border:1px solid var(--ah-line);border-radius:10px;padding:20px;margin-bottom:25px}#ahmtr .ahmtr-race-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}#ahmtr .ahmtr-race-form label{flex:1;min-width:170px}#ahmtr .ahmtr-race-form select{width:100%}#ahmtr .ahmtr-race-list{display:grid;gap:12px}#ahmtr .ahmtr-race-card{padding:18px}#ahmtr .ahmtr-race-top{display:flex;justify-content:space-between;gap:10px}#ahmtr .ahmtr-race-top h3{margin-bottom:6px}#ahmtr .ahmtr-race-card>p{color:var(--ah-muted)}#ahmtr .ahmtr-actions{display:flex;gap:8px}
#ahmtr .ahmtr-track{background:#071728;border:1px solid #1f5268;padding:16px;border-radius:10px}#ahmtr .ahmtr-lane{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:8px;margin:12px 0;font-size:12px}#ahmtr .ahmtr-road{height:39px;background:repeating-linear-gradient(90deg,#1e303f 0 20px,#21384a 20px 40px);border-top:2px dashed #8597a7;border-bottom:2px solid #8597a7;position:relative;overflow:hidden}#ahmtr .ahmtr-runner{display:block;position:absolute;top:-8px;left:0;font-size:32px;transition:left .38s linear;filter:drop-shadow(0 0 4px #fff5)}#ahmtr .ahmtr-race-clock{color:var(--ah-gold);margin:12px 0 0!important;font-weight:700;text-align:center}#ahmtr .ahmtr-result{background:#132d3c;padding:16px;border:1px solid var(--ah-green);border-radius:8px}#ahmtr .ahmtr-result.lose{border-color:#457297}#ahmtr .ahmtr-result>span{display:block;color:var(--ah-gold);font-size:20px;font-weight:800;margin-bottom:12px}#ahmtr .ahmtr-result-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #2a4d5e}#ahmtr .ahmtr-result small{display:block;color:var(--ah-muted);margin-top:12px}
#ahmtr .ahmtr-leaderboard{background:#102238;border:1px solid var(--ah-line);border-radius:10px;overflow:hidden}#ahmtr .ahmtr-leaderhead,#ahmtr .ahmtr-leaderrow{display:grid;grid-template-columns:75px 1fr 80px 90px;gap:10px;padding:14px;border-bottom:1px solid var(--ah-line);align-items:center}#ahmtr .ahmtr-leaderhead{background:#20364b;color:var(--ah-muted);font-size:12px;text-transform:uppercase;font-weight:800}#ahmtr .ahmtr-leaderrow strong:first-child{color:var(--ah-gold)}#ahmtr .ahmtr-leaderrow:nth-child(2n){background:#122b43}#ahmtr .ahmtr-join{text-align:center;max-width:600px;margin:70px auto 80px;padding:20px}#ahmtr .ahmtr-join-icon{font-size:94px}#ahmtr .ahmtr-join p{color:var(--ah-muted)}#ahmtr .ahmtr-join .ahmtr-button{margin:8px}#ahmtr .ahmtr-join-form{max-width:360px;margin:22px auto;text-align:left}#ahmtr .ahmtr-join-form input,#ahmtr .ahmtr-join-form button{width:100%}#ahmtr .ahmtr-join-form button{margin:13px 0}#ahmtr .ahmtr-notice{padding:13px 17px;border-radius:8px;margin:16px 0}#ahmtr .ahmtr-notice[hidden]{display:none}#ahmtr .ahmtr-success{background:#173a2e;color:#b2ecd4}#ahmtr .ahmtr-error{background:#4e1d29;color:#ffcad2}#ahmtr .ahmtr-alert{padding:20px}#ahmtr .ahmtr-beta{text-align:center;font-size:11px;color:var(--ah-muted);margin-top:36px}#ahmtr .ahmtr-footer{text-align:center;padding:18px;background:#030912;border-top:1px solid var(--ah-line);font-size:13px;color:#b2bfd0}#ahmtr .ahmtr-footer a{color:var(--ah-gold);font-weight:800}
@media(max-width:700px){#ahmtr .ahmtr-container{padding:15px}#ahmtr .ahmtr-header{flex-direction:column;align-items:flex-start}#ahmtr .ahmtr-logo strong{font-size:18px}#ahmtr .ahmtr-nav{flex-wrap:nowrap;overflow-x:auto}#ahmtr .ahmtr-nav button{padding:9px 12px;font-size:12px}#ahmtr .ahmtr-hero{padding:22px}#ahmtr .ahmtr-hero-symbol{display:none}#ahmtr .ahmtr-summary{grid-template-columns:repeat(2,1fr)}#ahmtr .ahmtr-track-grid{grid-template-columns:1fr}#ahmtr .ahmtr-leaderhead,#ahmtr .ahmtr-leaderrow{grid-template-columns:50px 1fr 50px 55px;font-size:12px;padding:12px 8px}#ahmtr .ahmtr-lane{grid-template-columns:90px 1fr}#ahmtr .ahmtr-card-grid{grid-template-columns:1fr}}

/* v0.2 – graphics derived from the original A.H. concept images (test artwork). */
#ahmtr .ahmtr-coin-art {width:35px;height:35px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 0 5px #ffdb7255)}
#ahmtr .ahmtr-hero{background:linear-gradient(105deg,rgba(14,25,37,.96),rgba(12,20,29,.82)),url('images/garage.webp') center/cover no-repeat}
#ahmtr .ahmtr-hero-symbol{width:210px;flex:0 0 210px;font-size:0}
#ahmtr .ahmtr-hero-symbol img {display:block;width:100%;height:170px;object-fit:cover;border-radius:10px;border:1px solid #5a3443}
#ahmtr .ahmtr-bike-visual,#ahmtr .ahmtr-product-art{overflow:hidden;font-size:0;position:relative}
#ahmtr .ahmtr-bike-image {display:block;width:100%;height:100%;object-fit:cover;object-position:center 54%;transition:transform .25s ease}
#ahmtr .ahmtr-bike-card:hover .ahmtr-bike-image,#ahmtr .ahmtr-product:hover .ahmtr-bike-image{transform:scale(1.04)}
#ahmtr .ahmtr-model-comet-125{filter:saturate(.75) hue-rotate(185deg)}
#ahmtr .ahmtr-model-falcon-300{filter:hue-rotate(105deg) saturate(1.3)}
#ahmtr .ahmtr-model-vortex-600{filter:hue-rotate(245deg) saturate(1.18)}
#ahmtr .ahmtr-model-thunder-900{filter:contrast(1.1) saturate(.7)}
#ahmtr .ahmtr-track-art{padding:0;height:134px;overflow:hidden;position:relative;background:#091726}
#ahmtr .ahmtr-track-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 38%;filter:brightness(.9)}
#ahmtr .ahmtr-track-live{background:linear-gradient(#061222b3,#061222b3),url('images/race.webp') center/cover}
#ahmtr .ahmtr-join-icon{font-size:0;margin:0 auto 20px;max-width:470px;border-radius:12px;overflow:hidden}
#ahmtr .ahmtr-join-icon img{width:100%;max-height:235px;object-fit:cover;display:block}
@media(max-width:700px){#ahmtr .ahmtr-hero-symbol{display:none}#ahmtr .ahmtr-coin-art{width:29px;height:29px}}

/* A.H. v0.2.0 — straight-line drag strip and original fictional bike artwork */
#ahmtr .ahmtr-bike-image { object-fit:cover;object-position:center; }
#ahmtr .ahmtr-bike-visual, #ahmtr .ahmtr-product-art {background:#111a24;}
#ahmtr .ahmtr-spec {color:#e8c878;font-size:.88rem;font-weight:700;margin:.5rem 0;}
#ahmtr .ahmtr-track-art img {width:100%;height:100%;object-fit:cover;}
#ahmtr .ahmtr-track-live{background:linear-gradient(120deg,#0a131be6,#05131bcc),url('images/drag-strip.webp') center/cover no-repeat;}
#ahmtr .ahmtr-track-card {overflow:hidden;}
#ahmtr .ahmtr-hero {background:linear-gradient(100deg,#090f18ee,#101923aa),url('images/garage.webp') center/cover no-repeat;}
#ahmtr .ahmtr-coin-art {width:35px;height:35px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 0 4px #d6ae54aa)}
@media(max-width:700px){#ahmtr .ahmtr-coin-art{width:27px;height:27px}}

/* A-bucks banknote: preserve the rectangular artwork on desktop and mobile. */
#ahmtr .ahmtr-coin-art{width:70px;height:35px;object-fit:contain}
@media(max-width:700px){#ahmtr .ahmtr-coin-art{width:54px;height:27px}}

.ahmtr-gbp{display:block;font-size:11px!important;opacity:.8;line-height:1.5}.ahmtr-wallet{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px}

/* v0.2.4: shared branding, large wallet, live build diagram and rated meters. */
#ahmtr .ahmtr-header{flex-wrap:wrap}
#ahmtr .ahmtr-logo{width:min(100%,420px)}
#ahmtr .ahmtr-brand-image{width:100%;height:auto;max-height:190px;object-fit:contain}
#ahmtr .ahmtr-wallet{display:flex;flex-wrap:wrap;align-items:center;gap:16px;background:#142031;border:1px solid #ad843d;border-radius:12px;padding:14px 18px;white-space:normal}
#ahmtr .ahmtr-wallet-note img{width:180px;height:auto;display:block;filter:drop-shadow(0 0 12px #f8c65b44)}
#ahmtr .ahmtr-balance{display:flex;flex-direction:column;line-height:1.15;color:var(--ah-gold)}
#ahmtr .ahmtr-balance small{font-size:10px;letter-spacing:.08em;color:#c9d5e0}
#ahmtr .ahmtr-balance strong{font-size:clamp(32px,5vw,46px);margin:6px 0;overflow-wrap:anywhere}
#ahmtr .ahmtr-balance>span{font-size:17px;font-weight:800}
#ahmtr .ahmtr-join{margin-top:26px}
#ahmtr .ahmtr-bike-visual{height:auto;display:block}
#ahmtr .ahmtr-build-photo{position:relative;aspect-ratio:1.3;overflow:hidden}
#ahmtr .ahmtr-build-photo .ahmtr-bike-image{object-fit:contain;background:#12161b}
#ahmtr .ahmtr-build-stage{position:absolute;bottom:10px;left:10px;background:#07111eee;border:1px solid #af853f;color:var(--ah-gold);font-size:12px;font-weight:800;padding:6px 10px;border-radius:6px}
#ahmtr .ahmtr-fitted-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;background:#111f2e}
#ahmtr .ahmtr-part{display:flex;align-items:center;gap:6px;padding:6px;background:#192b3d;border-radius:5px;color:#f4d18a;font-size:10px;line-height:1.2}
#ahmtr .ahmtr-part svg{width:40px;height:36px;flex-shrink:0;fill:#243c52;stroke:#f4d18a;stroke-width:3;stroke-linejoin:round}
#ahmtr .ahmtr-part small{display:block;color:#d2dce5;font-size:10px;margin-top:3px}
#ahmtr .ahmtr-stat{grid-template-columns:90px minmax(0,1fr) 42px}
#ahmtr .ahmtr-meter{height:10px}
#ahmtr .ahmtr-stat strong small{display:block;color:var(--ah-gold);font-size:10px}
@media(max-width:700px){#ahmtr .ahmtr-wallet{width:100%;gap:12px;padding:12px}#ahmtr .ahmtr-wallet-note{flex:0 1 140px}#ahmtr .ahmtr-wallet-note img{width:100%;min-width:105px}#ahmtr .ahmtr-balance{flex:1}#ahmtr .ahmtr-wallet>.ahmtr-button{width:100%}#ahmtr .ahmtr-brand-image{max-height:170px}}

/* v0.2.7: large menu buttons, all destinations visible on a phone. */
#ahmtr .ahmtr-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;background:#091422;border:1px solid #ad843d;overflow:visible}
#ahmtr .ahmtr-nav button{min-height:54px;padding:12px 9px;background:linear-gradient(#28445e,#182d43);border:1px solid #63809a;box-shadow:0 3px 0 #04101b;border-radius:9px;color:#fff;font-size:14px;white-space:normal;line-height:1.25}
#ahmtr .ahmtr-nav button.active{background:linear-gradient(#f0c15a,#c08c2b);border-color:#ffe3a1;color:#17202b;box-shadow:0 3px 0 #775218}
#ahmtr .ahmtr-nav button:hover{border-color:#f8c65b;background:#385d7c;color:#fff}
#ahmtr .ahmtr-nav button:focus-visible{outline:3px solid #f8c65b;outline-offset:3px}
#ahmtr .ahmtr-solo-bests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}
#ahmtr .ahmtr-solo-best{padding:16px;background:#13283e;border:1px solid #3c5c78;border-radius:9px}
#ahmtr .ahmtr-solo-best strong{display:block;color:var(--ah-gold);font-size:26px;margin:8px 0}
#ahmtr .ahmtr-solo-best small{color:var(--ah-muted)}
@media(max-width:700px){#ahmtr .ahmtr-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#ahmtr .ahmtr-nav button{font-size:13px;min-height:52px}#ahmtr .ahmtr-solo-bests{grid-template-columns:1fr}}
/* Original responsive race illustration. */
#ahmtr .ahmtr-cinematic{padding:0;border:1px solid #58708a;background:#07111e;overflow:hidden;border-radius:14px;margin:12px 0 18px;box-shadow:0 14px 32px #0005}
#ahmtr .ahmtr-race-hud{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:linear-gradient(100deg,#192a3e,#0a1522);border-bottom:1px solid #3e5268}
#ahmtr .ahmtr-race-hud h3{font-size:18px;margin:4px 0 0}
#ahmtr .ahmtr-race-controls{display:flex;gap:8px;flex-wrap:wrap}
#ahmtr .ahmtr-race-world{position:relative;height:340px;background:#121d2c;overflow:hidden;isolation:isolate}
#ahmtr .ahmtr-race-sky{position:absolute;inset:0 0 auto;height:118px;background:radial-gradient(ellipse at 80% 20%,#284261 0%,transparent 45%),linear-gradient(#050e1e,#1c2b44)}
#ahmtr .ahmtr-moon{position:absolute;right:16%;top:16px;width:25px;height:25px;border-radius:50%;background:#dce5ed;box-shadow:0 0 27px #a7bcd33a}
#ahmtr .ahmtr-grandstand{position:absolute;bottom:0;left:4%;width:72%;height:68px;background:repeating-linear-gradient(0deg,#15293c 0 8px,#324055 8px 11px);border-top:4px solid #54718e;transform:skewX(-8deg)}
#ahmtr .ahmtr-grandstand b{position:absolute;top:-23px;left:20%;background:#102133;color:#efcd6e;border:1px solid #4b6880;padding:3px 16px;font-size:11px;letter-spacing:.13em}
#ahmtr .ahmtr-grandstand i{display:block;height:100%;background:radial-gradient(circle at 4px 5px,#ceba9640 1px,transparent 2px),radial-gradient(circle at 10px 14px,#a9dbd846 1px,transparent 2px);background-size:17px 19px}
#ahmtr .ahmtr-floodlights{position:absolute;inset:0;display:flex;justify-content:space-around}
#ahmtr .ahmtr-floodlights i{width:3px;height:101px;background:#607589;position:relative;margin-top:12px;box-shadow:0 0 13px #eff7ff15}
#ahmtr .ahmtr-floodlights i:before{content:'';display:block;width:30px;height:7px;background:#c8efff;border-radius:3px;position:absolute;top:0;left:-13px;box-shadow:0 0 20px 10px #b9ddff33}
#ahmtr .ahmtr-floodlights i:after{content:'';position:absolute;top:6px;left:-60px;width:120px;height:120px;background:linear-gradient(#b9e8ff12,transparent);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%)}
#ahmtr .ahmtr-race-banner{position:absolute;top:116px;width:100%;height:27px;display:flex;justify-content:space-around;align-items:center;background:repeating-linear-gradient(135deg,#b18c35 0 15px,#f5d272 15px 30px);border-top:2px solid #fff3;font-size:10px;font-weight:900;letter-spacing:.12em;color:#172131}
#ahmtr .ahmtr-race-asphalt{position:absolute;inset:143px 0 0;background:linear-gradient(#293442,#10161f 50%,#263342);border-bottom:6px solid #bd9b41}
#ahmtr .ahmtr-cinematic-lane{height:50%;position:relative;border-bottom:2px dashed #d9e0e478;background:radial-gradient(ellipse at 70% 20%,#e0ecff10,transparent 60%)}
#ahmtr .ahmtr-cinematic-lane:last-child{border-bottom:0}
#ahmtr .ahmtr-cinematic-lane .ahmtr-road{height:100%;border:0;background:transparent;overflow:visible;position:relative}
#ahmtr .ahmtr-road-marks{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 105px,#b2c1cf0a 105px 107px);background-position:0 0}
#ahmtr .ahmtr-cinematic .ahmtr-runner{top:auto;bottom:2px;width:clamp(92px,19%,150px);height:auto;font-size:0;filter:none;transition:none;z-index:5;left:2%;display:block}
#ahmtr .ahmtr-race-bike{position:relative;display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px #0008)}
#ahmtr .ahmtr-cinematic .ahmtr-wheel{transform-box:fill-box;transform-origin:center;animation:ahmtr-wheel-spin var(--wheel-duration,.28s) linear infinite;animation-play-state:paused}
#ahmtr .is-running .ahmtr-wheel{animation-play-state:running}
#ahmtr .ahmtr-lane-name{position:absolute;top:6px;left:12px;z-index:9;font-size:11px;padding:3px 9px;background:#061120cc;border:1px solid #587187;color:#e1edf9;border-radius:4px;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ahmtr .ahmtr-start-tree{position:absolute;z-index:10;top:66px;left:20px;background:#09111ae8;border:1px solid #687488;padding:6px;border-radius:8px;text-align:center;box-shadow:0 2px 9px #0009}
#ahmtr .ahmtr-start-tree b{font-size:8px;color:#e1d2a0;display:block;letter-spacing:.1em}
#ahmtr .ahmtr-start-tree i{display:block;width:15px;height:15px;border-radius:50%;background:#483c20;margin:4px auto;border:1px solid #101824}
#ahmtr .ahmtr-start-tree .green{background:#163a31}
#ahmtr .ahmtr-start-tree .amber.lit{background:#ffd35e;box-shadow:0 0 12px #ffd35e9c}
#ahmtr .ahmtr-start-tree .green.lit{background:#66f2a4;box-shadow:0 0 16px #66f2a499}
#ahmtr .ahmtr-finish-post{position:absolute;right:7%;top:93px;height:247px;width:14px;z-index:2;background:repeating-conic-gradient(#e6edf3 0% 25%,#121b27 0% 50%) 0 0/14px 14px;box-shadow:0 0 6px #f6d77b33}
#ahmtr .ahmtr-finish-post span{position:absolute;left:-23px;top:-18px;font-size:9px;font-weight:900;background:#f4d378;color:#14212f;padding:4px 10px;letter-spacing:.08em;box-shadow:0 0 12px #ffd66933}
#ahmtr .ahmtr-race-callout{position:absolute;inset:148px 0 auto;text-align:center;pointer-events:none;z-index:12;color:#ffe191;text-shadow:0 3px 0 #674624,0 0 20px #ffd46260;font-size:clamp(30px,6vw,54px);line-height:1;font-weight:900;letter-spacing:.08em}
#ahmtr .is-running .ahmtr-race-callout{color:#91f4bd;text-shadow:0 3px 0 #204b37,0 0 23px #73efa36a}
#ahmtr .ahmtr-speed-trail{position:absolute;right:88%;top:39%;width:55%;height:32%;opacity:0;background:repeating-linear-gradient(0deg,transparent 0 5px,#e3f1ff6b 5px 6px);mask-image:linear-gradient(90deg,transparent,#000);transform:skewX(-10deg)}
#ahmtr .is-running .ahmtr-speed-trail{opacity:.75;animation:ahmtr-trail .18s linear infinite}
#ahmtr .ahmtr-tyre-smoke{position:absolute;left:-15%;bottom:5%;width:65%;height:50%;opacity:0;background:radial-gradient(ellipse,#bfcbd58c,transparent 67%);filter:blur(5px);border-radius:50%}
#ahmtr .is-staging .ahmtr-tyre-smoke{opacity:.55;animation:ahmtr-smoke 1.1s ease-in-out infinite}
#ahmtr .is-running .ahmtr-road-marks{animation:ahmtr-road-scroll .45s linear infinite}
#ahmtr .is-finished .ahmtr-runner{filter:drop-shadow(0 0 4px #edc66155)}
#ahmtr .ahmtr-race-timing{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 16px;background:#0c1825;font-size:12px}
#ahmtr .ahmtr-cinematic .ahmtr-race-clock{margin:0!important;text-align:left;color:#f8d373;font-size:13px}
#ahmtr .ahmtr-race-distance{color:#c9d8e8;white-space:nowrap}
#ahmtr .ahmtr-replay-note{display:block;padding:0 16px 12px;background:#0c1825;color:#91a7bd;font-size:10px}
#ahmtr .ahmtr-race-stage-panel{padding:16px}
#ahmtr .ahmtr-race-stage-panel .ahmtr-race-form{padding:10px 0}
#ahmtr .ahmtr-cinematic.is-expanded{width:100vw;min-height:100vh;display:flex;flex-direction:column;background:#07111e;border-radius:0}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-race-world{height:auto;flex:1;min-height:360px}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-race-sky{height:30%}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-race-banner{top:30%}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-race-asphalt{top:calc(30% + 27px)}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-finish-post{top:30%;bottom:0;height:auto}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-runner{width:20%;max-width:280px}
@keyframes ahmtr-wheel-spin{to{transform:rotate(360deg)}}
@keyframes ahmtr-road-scroll{to{background-position:-107px 0}}
@keyframes ahmtr-trail{50%{transform:skewX(-10deg) scaleX(.85);opacity:.35}}
@keyframes ahmtr-smoke{50%{transform:translateX(-12px) scale(1.25);opacity:.2}}
@media(max-width:700px){#ahmtr .ahmtr-race-hud{padding:12px;flex-wrap:wrap}#ahmtr .ahmtr-race-hud h3{font-size:15px}#ahmtr .ahmtr-race-world{height:300px}#ahmtr .ahmtr-cinematic .ahmtr-runner{width:29%;max-width:120px}#ahmtr .ahmtr-race-stage-panel{padding:10px}#ahmtr .ahmtr-race-timing{flex-wrap:wrap}#ahmtr .ahmtr-start-tree{left:9px}#ahmtr .ahmtr-lane-name{font-size:9px}}
@media(prefers-reduced-motion:reduce){#ahmtr .ahmtr-wheel,#ahmtr .ahmtr-road-marks,#ahmtr .ahmtr-speed-trail,#ahmtr .ahmtr-tyre-smoke{animation:none!important}#ahmtr .ahmtr-speed-trail,#ahmtr .ahmtr-tyre-smoke{display:none}}

#ahmtr .ahmtr-race-asphalt.solo-lane .ahmtr-cinematic-lane{height:100%}

html.ahmtr-race-expanded{overflow:hidden}
#ahmtr .ahmtr-cinematic.is-expanded{position:fixed;inset:0;z-index:1000000;margin:0;height:100dvh;min-height:100dvh;max-height:100dvh;box-sizing:border-box;color:#f1f6fb}

/* Exact garage artwork on the strip, with recorded fitted parts. */
#ahmtr .ahmtr-cinematic .ahmtr-race-world{height:580px}
#ahmtr .ahmtr-cinematic .ahmtr-runner{width:clamp(120px,23%,190px);height:auto;bottom:7px}
#ahmtr .ahmtr-race-build{display:block;position:relative;width:100%;aspect-ratio:1/1}
#ahmtr .ahmtr-race-model-photo{display:block;width:100%;height:100%;object-fit:contain;mask-image:radial-gradient(ellipse at 50% 54%,#000 52%,#000b 67%,transparent 77%);filter:drop-shadow(0 5px 5px #0009)}
#ahmtr .ahmtr-race-model-label{position:absolute;bottom:0;left:8%;right:8%;font-size:10px;text-align:center;color:#f4deb0;background:#07111ed9;border:1px solid #9d814a;border-radius:5px;padding:3px}
#ahmtr .ahmtr-race-builds{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;padding:12px 16px;background:#0c1825;border-top:1px solid #354758}
#ahmtr .ahmtr-race-build-summary{font-size:12px;min-width:0}
#ahmtr .ahmtr-race-build-summary>strong,#ahmtr .ahmtr-race-build-summary>span{display:block;overflow-wrap:anywhere}
#ahmtr .ahmtr-race-build-summary>span{color:#a9bccc;font-size:11px;margin:4px 0 7px}
#ahmtr .ahmtr-race-part{display:inline-block;font-size:10px;padding:4px 7px;margin:3px 4px 0 0;color:#f4deb0;border:1px solid #796742;border-radius:5px;background:#1a2533}
#ahmtr .ahmtr-cinematic .ahmtr-race-asphalt{background:linear-gradient(#333438,#15171b 50%,#28292d)}
#ahmtr .ahmtr-cinematic .ahmtr-finish-post{height:auto;bottom:0}
#ahmtr .ahmtr-cinematic.is-expanded .ahmtr-runner{width:min(23%,210px)}
#ahmtr .ahmtr-race-missing{display:block;font-size:12px;color:#ead6a1}
@media(max-width:700px){#ahmtr .ahmtr-cinematic .ahmtr-race-world{height:490px}#ahmtr .ahmtr-cinematic .ahmtr-runner{width:32%;max-width:145px}#ahmtr .ahmtr-race-model-label{font-size:8px}#ahmtr .ahmtr-race-builds{padding:10px}}

/* Shared sticker positions use the full square model image in every view. */
#ahmtr .ahmtr-build-photo{aspect-ratio:1}
#ahmtr .ahmtr-painted-bike{position:relative;width:100%;height:100%;aspect-ratio:1;overflow:hidden}
#ahmtr .ahmtr-painted-bike .ahmtr-bike-image{width:100%;height:100%;transform:none!important}
#ahmtr .ahmtr-decal{position:absolute;display:block;aspect-ratio:1;height:auto;padding:0;margin:0;border:0;background:transparent;line-height:0;z-index:3;pointer-events:none;filter:drop-shadow(0 1px 1px #000b)}
#ahmtr .ahmtr-decal svg{display:block;width:100%;height:100%;overflow:visible}
#ahmtr .ahmtr-decal-editor{padding:18px;background:#101d2d;border:1px solid #5b6e84;border-radius:14px}
#ahmtr .ahmtr-decal-bike-label{display:flex;align-items:center;gap:14px;margin-bottom:18px;font-size:14px}
#ahmtr .ahmtr-decal-bike-label select{flex:1;min-width:0}
#ahmtr .ahmtr-decal-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:20px;align-items:start}
#ahmtr .ahmtr-decal-stage{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid #3d5369;border-radius:12px;background:#111820;isolation:isolate}
#ahmtr .ahmtr-decal-stage>img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
#ahmtr .ahmtr-decal-layer{position:absolute;inset:0;pointer-events:none;z-index:5}
#ahmtr .ahmtr-decal-layer .ahmtr-decal{pointer-events:auto;cursor:grab;touch-action:none}
#ahmtr .ahmtr-decal-layer .ahmtr-decal:active{cursor:grabbing}
#ahmtr .ahmtr-decal.is-selected{outline:1px dashed #7febde;outline-offset:3px}
#ahmtr .ahmtr-decal:focus-visible{outline:3px solid #fff;outline-offset:3px}
#ahmtr .ahmtr-paint-zone{position:absolute;border:1px dashed #ffffff65;background:#ffffff08;pointer-events:none;z-index:4}
#ahmtr .ahmtr-paint-zone.is-active{border-color:#69e5d4;background:#69e5d418}
#ahmtr .ahmtr-paint-zone>span{position:absolute;top:-19px;left:0;white-space:nowrap;font-size:10px;padding:2px 5px;background:#0a1727e6;color:#a3eee4;border-radius:3px}
#ahmtr .ahmtr-decal-status{font-size:13px;color:#f5d57f;min-height:2em;margin:12px 0 6px}
#ahmtr .ahmtr-decal-area-tabs{display:flex;gap:8px;margin:0 0 12px}
#ahmtr .ahmtr-decal-area-tabs button{flex:1;min-height:44px;border:1px solid #567188;border-radius:8px;background:#172d43;color:#e9f2fb;font-size:13px;cursor:pointer}
#ahmtr .ahmtr-decal-area-tabs button[aria-pressed=true]{border-color:#78e5d4;background:#23463f;color:#bcffed}
#ahmtr .ahmtr-sticker-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#ahmtr .ahmtr-sticker-palette button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:88px;padding:10px 4px;background:linear-gradient(#21384d,#111f30);border:1px solid #4a6078;border-radius:9px;color:#ebd7a8;cursor:grab;touch-action:none}
#ahmtr .ahmtr-sticker-palette svg{width:40px;height:40px;pointer-events:none}
#ahmtr .ahmtr-sticker-palette span{font-size:10px;text-align:center;pointer-events:none}
#ahmtr .ahmtr-sticker-palette button:hover,#ahmtr .ahmtr-sticker-palette button:focus-visible{border-color:#e9cb6e;background:#2c3d4f}
#ahmtr .ahmtr-decal-settings{display:grid;gap:14px;margin:18px 0}
#ahmtr .ahmtr-decal-settings label{display:grid;gap:6px;font-size:12px;color:#c4d3e1}
#ahmtr .ahmtr-decal-settings input[type=range]{width:100%;accent-color:#f4cf73;min-height:30px;cursor:pointer}
#ahmtr .ahmtr-decal-sidebar .ahmtr-actions{margin-top:15px;flex-wrap:wrap}
#ahmtr .ahmtr-decal-sidebar .ahmtr-muted{font-size:11px;line-height:1.6}
#ahmtr .ahmtr-decal-layout>div>.ahmtr-muted{font-size:12px}
#ahmtr [data-customize-bike]{margin-top:14px}
@media(max-width:760px){#ahmtr .ahmtr-decal-layout{grid-template-columns:minmax(0,1fr)}#ahmtr .ahmtr-decal-editor{padding:12px}#ahmtr .ahmtr-decal-bike-label{display:grid;gap:8px}#ahmtr .ahmtr-sticker-palette button{min-height:94px}#ahmtr .ahmtr-decal-stage{max-width:500px;margin:auto}}

/* Transparent redesigned bikes and guides following their painted panel edges. */
#ahmtr .ahmtr-painted-bike,#ahmtr .ahmtr-decal-stage{background:radial-gradient(ellipse at 55% 45%,#253343,#0d1622 75%)}
#ahmtr .ahmtr-race-model-photo.is-profile{mask-image:none;-webkit-mask-image:none}
#ahmtr .ahmtr-paint-guide{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}
#ahmtr .ahmtr-paint-guide polygon{fill:#ffffff08;stroke:#ffffff65;stroke-width:.25;stroke-dasharray:.8 .5;stroke-linejoin:round}
#ahmtr .ahmtr-paint-guide.is-active polygon{fill:#69e5d418;stroke:#69e5d4;stroke-width:.35}
#ahmtr .ahmtr-paint-guide text{font:2.3px sans-serif;fill:#b6f4e9;paint-order:stroke;stroke:#071323;stroke-width:.8;stroke-linejoin:round}

/* Show the complete model rather than cropping a square image into a short strip. */
#ahmtr .ahmtr-product-art{height:auto;aspect-ratio:1;display:block;min-width:0}
#ahmtr .ahmtr-product-art .ahmtr-bike-image{width:100%;height:100%;object-fit:contain;transform:none!important}
#ahmtr .ahmtr-bike-visual{height:auto;display:block}
#ahmtr .ahmtr-build-photo{aspect-ratio:1;height:auto}

/* Live multiplayer connection notices */
.ahmtr-connection{border:1px solid #e7ae45;background:#292315;padding:12px 16px;border-radius:10px;margin:12px 0;color:#fff4d8}
.ahmtr-connection p{margin:4px 0}.ahmtr-connection strong,.ahmtr-ready-clock strong{font-variant-numeric:tabular-nums;white-space:nowrap}.ahmtr-ready-clock{font-size:.9rem;color:#dbbd80}

/* Manual practice controls */
.ahmtr-manual-setup{display:flex;gap:16px;flex-wrap:wrap;align-items:end}.ahmtr-manual-setup label{display:grid;gap:6px;flex:1;min-width:140px}.ahmtr-manual-road{position:relative;height:210px;margin:20px 0;overflow:hidden;border:1px solid #475569;border-radius:16px;background:linear-gradient(#172b45 0 55%,#374151 55% 100%)}.ahmtr-manual-road:after{content:'';position:absolute;top:80%;left:0;width:100%;border-top:4px dashed #f8fafc;opacity:.4}.ahmtr-manual-lights{position:absolute;top:16px;left:10px;right:10px;text-align:center;font-size:22px;font-weight:800;color:#fbbf24}.ahmtr-manual-lights.green{color:#4ade80}.ahmtr-manual-bike{position:absolute;left:3%;bottom:20px;width:140px;z-index:2}.ahmtr-manual-bike img{width:100%;pointer-events:none}.ahmtr-manual-finish{position:absolute;right:10px;bottom:0;height:95px;border-left:12px dashed white;padding-left:8px;color:white;font-size:12px}.ahmtr-manual-dash{display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center;gap:16px;background:#0f172a;padding:15px;border-radius:16px;color:#e2e8f0}.ahmtr-manual-dash>div{text-align:center;display:grid;gap:5px}.ahmtr-manual-dash strong{font-size:24px}.ahmtr-manual-gauge{width:180px}.ahmtr-manual-gauge svg{width:180px;height:112px}.ahmtr-manual-controls{display:flex;gap:12px;flex-wrap:wrap}.ahmtr-manual-controls button{min-height:70px;flex:1;min-width:120px}.ahmtr-manual-controls [data-manual-throttle]{touch-action:none;user-select:none;background:#0284c7}.ahmtr-manual-controls button:disabled{opacity:.5}.ahmtr-wheelspin .ahmtr-manual-bike:before{content:'💨';position:absolute;left:-15px;bottom:8px;font-size:35px}.ahmtr-manual [data-manual-feedback]{min-height:28px;font-weight:700}@media(max-width:540px){.ahmtr-manual-bike{width:95px}.ahmtr-manual-controls button{min-width:110px}.ahmtr-manual-dash strong{font-size:20px}}
