@font-face{font-family:Bungee;src:url('assets/bungee.ttf') format('truetype');font-display:swap}@font-face{font-family:Manrope;src:url('assets/manrope-medium.ttf') format('truetype');font-weight:400 500;font-display:swap}@font-face{font-family:Manrope;src:url('assets/manrope-bold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{--ink:#152f49;--yellow:#ffd94c;--orange:#ff783f;--blue:#277cd1;--paper:#fffcf2}*{box-sizing:border-box}body{margin:0;overflow:hidden;color:var(--ink);background:#b7e8ff;font:14px/1.6 Manrope,Arial,sans-serif;height:100dvh}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ff5c3b;outline-offset:4px}button{border:0}button:hover{filter:brightness(1.05)}a{color:var(--blue)}#world{position:fixed;inset:0}#world canvas{display:block;width:100%;height:100%}.screen-vignette{position:fixed;inset:0;background:linear-gradient(90deg,#ccefffed 0,#ccefffbb 25%,#b7e8ff00 57%);pointer-events:none;transition:opacity .5s}.playing .screen-vignette{opacity:0}.topbar{position:absolute;top:25px;left:40px;right:40px;display:flex;align-items:center;gap:24px;z-index:10}.brand{display:flex;align-items:center;gap:9px;text-align:left;background:none;font-family:Bungee;line-height:1;font-size:13px;transform:rotate(-4deg);padding:0}.brand b{font-size:21px;font-weight:400}.flag-icon{background:var(--yellow);border:2px solid var(--ink);border-radius:10px;box-shadow:3px 3px 0 var(--ink);font:35px/1.25 Bungee;padding:0 7px;transform:rotate(-8deg)}.topbar nav{margin-left:auto;display:flex;background:var(--paper);border:2px solid var(--ink);border-radius:100px;padding:5px;box-shadow:0 4px 0 #152f4925;gap:3px}.topbar nav button{background:transparent;font-weight:700;font-size:11px;border-radius:30px;padding:10px 18px;white-space:nowrap}.topbar nav button:hover{background:#e5f3ff}.topbar nav button span{font-size:8px;background:#dbeeff;padding:3px 5px;border-radius:4px;margin-left:4px}.topbar nav .contact-nav{background:var(--yellow)}.icon-button{background:var(--paper);border:2px solid var(--ink);border-radius:50%;width:42px;height:42px;font-size:23px;position:relative}.sound-slash{position:absolute;left:13px;top:5px;font-size:24px}.intro{position:absolute;z-index:3;top:24%;left:6.5%;max-width:510px}.intro-pill{display:inline-flex;align-items:center;gap:9px;border:1.5px solid var(--ink);border-radius:20px;padding:5px 10px;background:#fff9;font-size:8px;font-weight:800;letter-spacing:1.1px}.intro-pill span{width:6px;height:6px;border-radius:50%;background:#25a98c}.intro h1{font-family:Bungee;line-height:.98;font-weight:400;font-size:clamp(70px,7.5vw,115px);letter-spacing:-5px;color:var(--paper);-webkit-text-stroke:2px var(--ink);text-shadow:0 6px 0 var(--ink),5px 9px 0 #1e4d6070;transform:rotate(-5deg);margin:25px 0 27px;position:relative}.intro h1>span{color:var(--yellow);font-size:1.15em}.intro h1 i{position:absolute;font-style:normal;font-size:38px;transform:rotate(14deg);left:3.9em;top:.2em;-webkit-text-stroke:1.5px var(--ink);color:var(--orange)}.intro h2{font-size:20px;letter-spacing:-.6px;margin:0 0 8px;font-weight:800}.intro>p{font-size:12px;margin:0;color:#34556d;line-height:1.85}.start-buttons{display:flex;flex-direction:column;align-items:start;gap:14px;margin-top:25px}.primary,.secondary{border:2px solid var(--ink);border-radius:12px;background:var(--yellow);padding:14px 22px;font:13px Bungee;box-shadow:0 5px 0 var(--ink);display:flex;align-items:center;gap:34px;transition:transform .15s,box-shadow .15s}.primary:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--ink)}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}.secondary{background:var(--paper);font:700 11px Manrope;box-shadow:0 3px 0 #152f4940;padding:10px 20px;gap:39px}.intro .intro-tip{margin-top:24px;font-size:9px}.key{display:inline-flex;align-items:center;justify-content:center;border:1px solid #49728c;border-radius:4px;min-width:19px;height:20px;font:10px Manrope;background:#fff9;margin-right:3px;box-shadow:0 2px 0 #49728c3b;vertical-align:middle}.key.wide{padding:0 6px;font-size:8px}.tip-line{font-size:9px;display:inline-block;margin-top:9px;color:#466982}.world-label{position:absolute;right:7%;bottom:13%;display:flex;flex-direction:column;align-items:start;transform:rotate(-3deg);background:var(--paper);padding:17px 23px;border:2px solid var(--ink);border-radius:12px;box-shadow:5px 6px 0 #152f4926;z-index:3}.tiny{font-size:7px;letter-spacing:2px;font-weight:800}.world-label strong{font:19px Bungee;line-height:1.6}.world-label>span:last-of-type{font-size:9px}.course-rating{font-size:15px;color:#d28205;border-top:1px dashed #b9b9a3;margin-top:9px;padding-top:7px;width:100%;letter-spacing:4px}.course-rating small{font-size:6px;letter-spacing:1px;color:#6c705c;margin-left:10px}.intro-bottom{position:absolute;bottom:25px;left:40px;right:40px;display:flex;justify-content:space-between;gap:25px;font-size:8px;font-weight:800;letter-spacing:.6px;align-items:center}.intro-bottom b{margin:0 5px}.green-light{display:inline-block;width:7px;height:7px;border-radius:50%;background:#12a27b;margin-right:8px;box-shadow:0 0 0 3px #b6e4bb}.intro-bottom button{background:none;font-size:9px;font-weight:800}.intro-bottom button b{display:inline-grid;place-items:center;border:1px solid var(--ink);border-radius:50%;width:21px;height:21px;font-size:12px}.race-hud{position:absolute;top:110px;left:35px;right:35px;display:flex;justify-content:space-between;pointer-events:none}.left-hud,.right-hud{display:flex;gap:18px;align-items:start}.left-hud{align-items:center}.position{position:relative;display:flex;align-items:start;color:#fff;font-family:Bungee;text-shadow:3px 4px 0 var(--ink);-webkit-text-stroke:1px var(--ink)}.position>b{font-size:69px;line-height:1}.position>span{font-size:22px;margin-top:7px}.position small{position:absolute;bottom:-20px;left:0;font:8px Bungee;letter-spacing:.5px;white-space:nowrap;background:var(--ink);color:white;-webkit-text-stroke:0;text-shadow:none;padding:4px 8px;border-radius:5px}.lap-counter{background:#fffdf3ee;border:2px solid var(--ink);border-radius:10px;padding:9px 17px;display:grid;grid-template-columns:auto auto;gap:0 12px;box-shadow:0 3px 0 #152f4933}.lap-counter span{font:9px Bungee}.lap-counter b{font:14px Bungee}.lap-counter i{grid-column:1/-1;font:17px Bungee;letter-spacing:1px;font-style:normal}.right-hud{flex-direction:column;align-items:end;gap:8px}.right-hud>button{pointer-events:auto;font:8px Bungee;background:#fffdf3ed;border:1.5px solid var(--ink);padding:7px 10px;border-radius:7px}.right-hud>button b{color:#de4e35;margin-left:5px}.right-hud>button[aria-pressed=true] b{color:#008b69}.coin-counter{display:flex;align-items:center;gap:10px;background:var(--ink);border:2px solid var(--ink);color:#fff;border-radius:12px;padding:7px 14px;box-shadow:0 3px 0 #152f4933}.coin-counter>span{color:var(--yellow);font-size:22px;text-shadow:1px 2px #bd7d00}.coin-counter>b{font:24px Bungee}.coin-counter>small{font:7px Bungee}.drive-ui{position:absolute;inset:0;pointer-events:none}.driving-help{position:absolute;bottom:30px;left:35px;display:flex;flex-direction:column;gap:5px;font-size:9px;background:#fff9;padding:12px 17px;border-radius:8px;backdrop-filter:blur(3px)}.driving-help b{font-size:8px;margin-right:10px}.driving-help button{pointer-events:auto;position:absolute;right:-16px;bottom:0;width:25px;height:25px;background:var(--yellow);border:1.5px solid var(--ink);border-radius:50%;font-weight:bold}.speedometer{position:absolute;left:50%;transform:translateX(-50%);bottom:35px;color:white;text-shadow:2px 2px 0 var(--ink);text-align:center;width:180px}.speedometer>span{display:flex;align-items:baseline;justify-content:center;gap:8px}.speedometer b{font:56px/1 Bungee;-webkit-text-stroke:1px var(--ink)}.speedometer small{font:9px Bungee}.boost-meter{height:13px;border:2px solid var(--ink);border-radius:6px;background:#23485b;overflow:hidden;margin-top:8px;box-shadow:0 2px 0 #0003}.boost-meter i{display:block;height:100%;width:100%;background:var(--yellow);transition:width .1s}.speedometer label{font:7px Bungee;letter-spacing:1px}.minimap{position:absolute;bottom:25px;right:35px;border:2px solid var(--ink);background:#fffdf3d9;border-radius:15px;backdrop-filter:blur(5px);padding:5px 5px 11px;text-align:center;box-shadow:0 4px 0 #152f4922}.minimap canvas{width:180px;height:135px;display:block}.minimap>span{font:7px Bungee;letter-spacing:1px}.checkpoint-prompt{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);background:#fffdf3;border:2px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 var(--ink);text-align:center;padding:11px 17px;z-index:8;min-width:270px}.checkpoint-prompt>span{display:block;font:10px Bungee;margin-bottom:4px}.checkpoint-prompt button{font-size:9px;font-weight:800;background:none}.toast{position:absolute;top:105px;left:50%;transform:translateX(-50%);background:var(--yellow);border:2px solid var(--ink);padding:11px 21px;border-radius:9px;box-shadow:0 4px 0 #152f4922;font:10px Bungee;text-align:center;z-index:15;max-width:90%}.countdown{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%) rotate(-8deg);color:var(--yellow);font:120px Bungee;-webkit-text-stroke:3px var(--ink);text-shadow:6px 8px var(--ink);z-index:12}.loading{position:absolute;inset:0;background:#b7e8ff;z-index:40;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}.loading b{font:16px Bungee}.loading small{font-size:11px}.loading-wheel{height:45px;width:45px;border:8px solid var(--ink);border-right-color:var(--yellow);border-radius:50%;animation:spin 1s linear infinite}.webgl-error{position:absolute;right:5%;top:35%;width:380px;background:var(--paper);border:2px solid var(--ink);border-radius:15px;padding:30px;z-index:20}.webgl-error h2{font-family:Bungee;font-size:20px}.webgl-error p{font-size:12px}.webgl-error .primary{font-size:10px}.touch-controls{display:none;position:absolute;bottom:20px;left:20px;right:20px;justify-content:space-between;align-items:end;z-index:12;pointer-events:none}.touch-controls>div{display:flex;gap:9px}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:54px;height:54px;background:#fffdf3dd;border:2px solid var(--ink);border-radius:14px;box-shadow:0 4px 0 #152f4966;font-size:21px}.touch-controls button.pressed{background:var(--yellow);transform:translateY(3px);box-shadow:none}.touch-controls .touch-boost{background:var(--yellow);border-radius:50%;width:50px;height:50px}.no-script{position:absolute;inset:0;z-index:50;padding:15vh 10%;background:var(--paper)}dialog{width:min(800px,calc(100% - 36px));max-height:85dvh;padding:0;border:3px solid var(--ink);border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:8px 10px 0 #152f4944;overflow:auto}dialog::backdrop{background:#17365088;backdrop-filter:blur(7px)}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:14px 25px;background:var(--yellow);border-bottom:2px solid var(--ink);position:sticky;top:0;z-index:2}.panel-header>span{font:10px Bungee;letter-spacing:.8px}.panel-header button{background:var(--paper);border:2px solid var(--ink);width:32px;height:32px;border-radius:8px;font:23px/1 Manrope;display:grid;place-items:center}.panel-inner{padding:30px 35px}.panel-inner>h2{font:30px/1.2 Bungee;margin:0 0 22px;letter-spacing:-1px}.panel-inner h3{font-size:16px;margin:25px 0 9px}.panel-inner p,.panel-inner li{font-size:13px;line-height:1.9;color:#496071}.panel-inner .fine{font-size:10px}.panel-inner ul{padding-left:20px}.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px dashed #aab6b5;padding:16px 25px;font-size:8px;font-weight:bold;background:#f1f0e4}.panel-footer b{color:#b9a00c;margin:0 7px}.panel-footer button{background:none;font:9px Bungee}.project-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.project-card{padding:20px;background:white;border:2px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 #152f4922;text-align:left;position:relative}.project-card:nth-child(1){background:#e4d8fa}.project-card:nth-child(2){background:#ffe0c3}.project-card:nth-child(3){background:#cfedff}.project-card:nth-child(4){background:#e4f3bf}.project-card .project-icon{font:27px Bungee;margin-bottom:15px;display:block}.project-card .eyebrow{font-size:8px;letter-spacing:1px}.project-card h3{font:16px Bungee;line-height:1.3;margin:5px 0 8px}.project-card p{font-size:11px;line-height:1.7;margin:0}.project-card .metric{margin-top:17px;border-top:1px dashed #152f4966;padding-top:12px;font-size:10px;font-weight:800}.project-card .arrow{position:absolute;right:18px;top:18px;font-size:23px}.driver-card{display:flex;gap:25px;align-items:center;background:#dcedff;border:2px solid var(--ink);border-radius:13px;padding:20px}.driver-card img{width:100px;height:100px;object-fit:cover;border:3px solid var(--ink);border-radius:15px;transform:rotate(-4deg)}.driver-card h3{font:20px Bungee;margin:0 0 5px}.driver-card p{font-size:11px;margin:0}.driver-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.driver-badges span,.skill-tag{font-size:9px;font-weight:800;padding:5px 9px;border:1px solid #728ca0;border-radius:5px;background:var(--paper)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:23px 0}.stat-grid>div{background:#edf1e5;padding:14px;border-radius:9px;text-align:center}.stat-grid b{font:21px Bungee;display:block}.stat-grid span{font-size:8px;font-weight:800}.story-row{border-top:1px dashed #aab6b5;padding:15px 0}.story-row h3{margin:0 0 4px}.story-row>span{font-size:9px;font-weight:bold;color:#789}.story-row p{margin:5px 0 0;font-size:12px}.research-card{background:#dceff3;border-radius:10px;padding:20px;margin-top:20px}.research-card h3{margin:5px 0 10px;font-family:Bungee;font-size:15px}.research-card p{font-size:11px}.skill-group{padding:17px 0;border-top:1px dashed #aab6b5}.skill-group h3{margin:0 0 12px;font:15px Bungee}.skill-group>div{display:flex;flex-wrap:wrap;gap:8px}.skill-group:nth-child(odd) .skill-tag{background:#e7def8}.skill-group:nth-child(even) .skill-tag{background:#dcefc9}.contact-card{background:var(--yellow);border:2px solid var(--ink);border-radius:15px;padding:24px;margin-top:20px}.contact-card>a{font-size:clamp(16px,3vw,25px);font-weight:800;color:var(--ink);text-decoration:none;word-break:break-word}.contact-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.contact-links a,.contact-links button,.button{font-size:11px;font-weight:800;display:inline-flex;padding:10px 17px;background:var(--paper);border:2px solid var(--ink);border-radius:8px;text-decoration:none;color:var(--ink);box-shadow:0 3px 0 #152f4930}.contact-links a:hover,.contact-links button:hover,.button:hover{background:var(--yellow)}.help-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.help-list>div{border:1px solid #b1c2c5;padding:15px;border-radius:8px;background:#e9f2ec}.help-list b{display:block;font-size:12px}.help-list span{font-size:11px;color:#496071}.race-result{text-align:center}.trophy{font-size:65px;line-height:1.2}.race-result h3{font:24px Bungee}.race-result .primary{margin:25px auto 0}.resume-actions{display:flex;gap:15px;flex-wrap:wrap}.resume-actions button{font-size:12px}.no-motion *{animation:none!important}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-height:860px) and (min-width:761px){.intro{top:20%}.intro h1{font-size:76px;margin:18px 0 22px}.intro h2{font-size:17px}.start-buttons{margin-top:18px;gap:11px}.intro .intro-tip{margin-top:16px}.world-label{bottom:12%}.intro>p{font-size:11px}}
@media(max-width:1000px){.topbar{left:25px;right:25px;gap:15px}.topbar nav button{padding:9px 12px;font-size:10px}.intro{left:5%;top:24%}.intro h1{font-size:77px}.intro h2{font-size:18px}.world-label{right:4%;bottom:15%}.world-label strong{font-size:16px}.intro-bottom{left:25px;right:25px}.intro-bottom>span:nth-child(2){font-size:7px}.topbar nav button span{display:none}}
@media(max-width:760px){.topbar{top:17px;left:18px;right:18px;gap:12px;align-items:start}.brand{font-size:10px;gap:7px}.brand b{font-size:16px}.flag-icon{font-size:27px;padding:0 5px}.topbar nav{position:fixed;left:16px;right:16px;top:72px;justify-content:center;padding:4px;gap:0}.topbar nav button{font-size:9px;padding:9px 11px;flex:1}.icon-button{margin-left:auto;width:35px;height:35px;font-size:20px}.sound-slash{font-size:20px;left:10px;top:4px}.intro{top:20%;left:7%;right:7%;max-width:none;pointer-events:none}.intro>*{pointer-events:auto}.intro-pill{font-size:7px;padding:4px 8px;letter-spacing:.5px}.intro h1{font-size:clamp(60px,15vw,85px);letter-spacing:-3px;margin:18px 0 20px;width:240px;-webkit-text-stroke:1.5px var(--ink);text-shadow:0 4px 0 var(--ink),4px 6px 0 #1e4d6070}.intro h1 i{font-size:26px;left:4em}.intro h2{font-size:16px;margin-bottom:6px}.intro>p{font-size:10px;line-height:1.8}.start-buttons{margin-top:20px;gap:12px}.primary{font-size:11px;padding:12px 17px;gap:25px;border-radius:9px}.secondary{font-size:10px;padding:9px 15px;gap:23px}.intro .intro-tip{display:none}.screen-vignette{background:linear-gradient(90deg,#ccefffcf 0,#ccefff66 70%,transparent)}.world-label{right:6%;bottom:8%;padding:10px 15px;border-radius:9px}.world-label strong{font-size:12px}.world-label>span:last-of-type{font-size:7px}.world-label .tiny{font-size:6px}.course-rating{display:none}.intro-bottom{left:20px;right:20px;bottom:16px;font-size:6px;gap:15px}.intro-bottom>span:nth-child(2){display:none}.intro-bottom button{font-size:7px}.intro-bottom button b{width:17px;height:17px;font-size:10px}.green-light{width:5px;height:5px}.race-hud{top:129px;left:18px;right:18px}.left-hud{gap:9px}.position>b{font-size:45px}.position>span{font-size:14px}.position small{font-size:6px;bottom:-18px;padding:3px 6px}.lap-counter{padding:6px 9px;gap:0 8px}.lap-counter span{font-size:7px}.lap-counter b{font-size:10px}.lap-counter i{font-size:12px}.coin-counter{padding:3px 7px;gap:6px;border-radius:8px}.coin-counter>span{font-size:17px}.coin-counter>b{font-size:18px}.coin-counter>small{font-size:5px}.right-hud{gap:6px}.right-hud>button{font-size:6px;padding:5px 7px}.driving-help{display:none}.speedometer{bottom:103px;width:130px;left:25px;transform:none;text-align:left}.speedometer>span{justify-content:start}.speedometer b{font-size:39px}.speedometer small{font-size:7px}.speedometer label{font-size:6px;letter-spacing:.3px}.minimap{right:20px;bottom:102px;border-radius:9px;padding:1px 3px 6px}.minimap canvas{width:110px;height:85px}.minimap>span{font-size:5px}.touch-controls{display:flex}.checkpoint-prompt{bottom:231px;padding:9px 14px;min-width:230px;max-width:90%}.checkpoint-prompt>span{font-size:9px}.checkpoint-prompt button{font-size:8px}.toast{top:242px;font-size:8px;padding:9px 14px;width:max-content;max-width:90%}.countdown{font-size:85px;top:45%}.panel-header{padding:11px 17px}.panel-header>span{font-size:8px}.panel-inner{padding:23px 20px}.panel-inner>h2{font-size:24px}.project-cards{grid-template-columns:1fr;gap:15px}.project-card{padding:17px}.project-card .project-icon{font-size:23px;margin-bottom:10px}.project-card h3{font-size:16px}.panel-footer{padding:14px 17px;gap:15px}.panel-footer>span{font-size:6px}.panel-footer button{font-size:7px}.driver-card{padding:15px;gap:15px}.driver-card img{width:75px;height:75px}.driver-card h3{font-size:15px}.driver-card p{font-size:9px}.driver-badges span{font-size:7px;padding:4px 6px}.stat-grid b{font-size:17px}.stat-grid span{font-size:7px}.stat-grid>div{padding:10px 5px}.help-list{grid-template-columns:1fr}.webgl-error{left:5%;right:5%;width:auto;top:24%;padding:25px}.webgl-error h2{font-size:18px}.contact-card{padding:17px}.loading b{font-size:12px}}
@media(max-width:760px) and (max-height:700px){.intro{top:22%}.intro h1{font-size:54px;margin:13px 0 17px}.intro-pill{display:none}.intro h2{font-size:14px}.start-buttons{gap:10px;margin-top:16px}.world-label{display:none}.intro>p{font-size:9px}.race-hud{top:123px}}
@media(pointer:coarse){.touch-controls:not([hidden]){display:flex}.driving-help{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Expanded two-lap Grand Prix */
.audio-controls{display:flex;gap:9px;align-items:center}.volume-control{display:flex;flex-direction:column;align-items:center;font:6px Bungee;gap:3px}.volume-control input{width:65px;accent-color:#ee9450;height:10px}.music-caption{font:6px/1.6 Bungee;letter-spacing:.3px;color:#5b7888;display:inline-block;margin-top:9px}.home-board{position:absolute;right:5.5%;top:20%;width:290px;background:#fffdf2eb;border:2px solid var(--ink);border-radius:15px;padding:19px 20px 13px;z-index:3;box-shadow:5px 6px 0 #152f4928;backdrop-filter:blur(9px)}.board-header .tiny{font-size:6px}.board-header h2{font:17px Bungee;margin:3px 0 12px}.board-tabs{display:flex;gap:6px;border-bottom:1px dashed #b0b7a4;padding-bottom:12px}.board-tabs button{background:#e6ecdd;border:1px solid #98a897;border-radius:5px;padding:5px 8px;font:7px Bungee;flex:1}.board-tabs button[aria-pressed=true]{background:var(--yellow);border-color:var(--ink)}#leaderboard{font-size:10px;min-height:90px}.board-empty{font-size:10px;line-height:1.8;text-align:center;padding:20px 0;color:#6c7f80}.board-row{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:9px;border-bottom:1px solid #d9dece;padding:8px 0;font-size:10px}.board-row>b{font:17px Bungee;color:#b49328}.board-row>span{font-weight:800;overflow-wrap:anywhere}.board-row small{display:block;font:6px Bungee;color:#91a087;margin-top:2px}.board-row time{font:11px Bungee;letter-spacing:-.4px}.home-board>button{font:7px Bungee;background:none;margin-top:9px;padding:3px 0;text-decoration:underline;text-underline-offset:3px}.item-slot{position:absolute;left:35px;top:230px;z-index:8}.item-slot button{display:grid;grid-template-columns:45px 1fr;gap:2px 12px;text-align:left;border:2px solid var(--ink);border-radius:12px;background:#fffbe9ee;padding:11px 15px;box-shadow:0 4px 0 #152f4930}.item-slot button:disabled{opacity:.7;cursor:default}.item-slot span{font:35px/1 Bungee;color:#9368b6;grid-row:1/3;align-self:center}.item-slot b{font:10px Bungee}.item-slot small{font:7px Bungee;color:#7b8b78}.intro-profile-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:15px;margin:22px 0}.intro-profile-grid article{border:1px solid #b6c6c6;border-radius:10px;background:#edf3e5;padding:15px}.intro-profile-grid article>span{font:8px Bungee;color:#6b897c}.intro-profile-grid h3{margin:10px 0!important;font:14px Bungee}.intro-profile-grid p{font-size:11px;margin:0}.race-brief{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.race-brief span{font:7px Bungee;border:1px solid #9ab0b6;border-radius:5px;padding:5px 7px;background:#f2f2de}#intro-go{margin-top:24px}#record-dialog{width:min(730px,calc(100% - 32px))}#record-dialog h2{font:25px Bungee;line-height:1.3}.record-actions{display:flex;gap:13px;justify-content:center;align-items:center;flex-wrap:wrap}#record-form{border-top:1px dashed #b9c3b0;padding-top:24px;margin-top:22px}#record-form label{font-size:12px;display:block;font-weight:bold}#record-name{font:16px Manrope;width:min(100%,420px);border:2px solid #759397;border-radius:9px;background:white;padding:12px 15px;display:block;margin:12px auto 20px;color:var(--ink)}#record-name:focus-visible{outline:3px solid var(--orange);outline-offset:3px}#record-status{font-size:10px!important;min-height:22px}#record-form .primary,#record-form .secondary{font-size:10px;gap:10px}#record-form .primary{margin:0}.touch-controls .touch-drift{width:48px;font:8px Bungee;background:#d9c4ed}.playing .home-board{display:none}.playing .intro-bottom{display:none}.world-label{bottom:11%;right:5.5%}
@media(min-width:1500px){.home-board{right:6%;width:320px;top:21%}.board-header h2{font-size:20px}.board-row{padding:10px 0}}
@media(max-width:1100px) and (min-width:761px){.home-board{width:248px;right:3%;padding:15px}.board-header h2{font-size:15px}.board-row{font-size:9px;gap:6px}.board-row time{font-size:10px}.intro{max-width:440px}.volume-control{display:none}.topbar nav button{padding-inline:10px}.world-label{right:3%;bottom:10%}}
@media(max-height:760px) and (min-width:761px){.home-board{top:22%;width:250px;padding:14px}.board-header h2{font-size:15px}.board-row{padding:5px 0}.world-label{display:none}.intro{top:19%}.intro h1{font-size:67px}.intro .intro-tip{font-size:8px;margin-top:15px}}
@media(max-width:760px){body:not(.playing){overflow-y:auto;height:auto;min-height:1080px}.intro{top:160px}.home-board{top:665px;left:7%;right:7%;width:auto;bottom:auto;padding:18px}.home-board .board-row{padding:6px 0;font-size:10px}.home-board #leaderboard{min-height:90px}.world-label{display:none}.intro-bottom{top:1030px;bottom:auto}.audio-controls{margin-left:auto;gap:7px}.volume-control input{width:44px}.volume-control{font-size:5px}.item-slot{left:18px;top:225px}.item-slot button{padding:7px 9px;grid-template-columns:30px 1fr;gap:2px 7px;border-radius:9px}.item-slot span{font-size:27px}.item-slot b{font-size:8px}.item-slot small{font-size:6px}.toast{top:305px}.intro-profile-grid{grid-template-columns:1fr}.intro-profile-grid h3{font-size:13px}.intro-profile-grid p{font-size:11px}.touch-controls{left:12px;right:12px;gap:8px}.touch-controls>div{gap:6px}.touch-controls button{width:46px;height:50px}.touch-controls .touch-boost{width:43px;height:43px}.touch-controls .touch-drift{width:43px;height:43px;font-size:7px}#record-dialog h2{font-size:21px}.race-result .stat-grid{gap:5px}.race-result .stat-grid b{font-size:15px}.record-actions{gap:10px}#record-form .primary,#record-form .secondary{font-size:9px;padding:10px 13px}#record-form label{font-size:11px}.coin-counter>b{font-size:16px}.coin-counter>small{font-size:5px}.coin-counter>span{font-size:14px}}
@media(max-width:760px) and (max-height:700px){.intro{top:145px}.intro h1{font-size:61px}.home-board{top:600px}.intro-bottom{top:985px}body:not(.playing){min-height:1040px}}
/* Comfortable reading and large input targets, on desktop and touch screens. */
.topbar nav button{font-size:14px;min-height:46px;padding:10px 18px}.topbar nav button span{font-size:10px}.brand{font-size:13px}.brand b{font-size:23px}.intro h2{font-size:24px}.intro>p{font-size:16px;line-height:1.7}.intro-pill{font-size:10px}.primary{font-size:16px;padding:16px 25px;min-height:54px}.secondary{font-size:14px;padding:13px 22px;min-height:48px}.intro .intro-tip{font-size:12px}.key{font-size:12px;min-width:24px;height:25px}.key.wide{font-size:10px}.tip-line{font-size:12px}.music-caption{font-size:9px}.intro-bottom{font-size:10px}.intro-bottom button{font-size:11px;min-height:44px}.world-label strong{font-size:21px}.world-label>span:last-of-type{font-size:12px}.world-label .tiny{font-size:9px}.home-board{width:340px;padding:22px}.board-header .tiny{font-size:9px}.board-header h2{font-size:21px}.board-tabs button{font-size:10px;min-height:40px}.board-empty{font-size:14px}.board-row{font-size:14px;padding:10px 0}.board-row>b{font-size:20px}.board-row small{font-size:9px}.board-row time{font-size:14px}.home-board>button{font-size:10px;min-height:36px}.lap-counter span{font-size:12px}.lap-counter b{font-size:18px}.lap-counter i{font-size:22px}.coin-counter>b{font-size:27px}.coin-counter>small{font-size:9px}.right-hud>button{font-size:11px;min-height:40px;padding:9px 14px}.item-slot b{font-size:12px}.item-slot small{font-size:9px}.item-slot button{min-height:70px}.driving-help{font-size:12px}.driving-help b{font-size:11px}.speedometer label{font-size:10px}.speedometer small{font-size:12px}.toast{font-size:13px;padding:13px 23px}.panel-inner p,.panel-inner li{font-size:16px;line-height:1.8}.panel-inner .fine{font-size:12px}.panel-header>span{font-size:12px}.panel-header button{width:42px;height:42px;font-size:28px}.panel-footer{font-size:11px}.panel-footer button{font-size:12px;min-height:44px}.project-card .eyebrow{font-size:10px}.project-card h3{font-size:20px}.project-card p{font-size:14px}.project-card .metric{font-size:13px}.driver-card p{font-size:14px}.driver-badges span,.skill-tag{font-size:12px;padding:7px 10px}.stat-grid b{font-size:26px}.stat-grid span{font-size:11px}.story-row>span{font-size:11px}.story-row p{font-size:15px}.research-card p,.research-card li{font-size:14px}.research-card .tiny{font-size:10px}.contact-links a,.contact-links button,.button{font-size:14px;min-height:44px}.help-list b{font-size:15px}.help-list span{font-size:14px}.intro-profile-grid article>span{font-size:10px}.intro-profile-grid h3{font-size:18px}.intro-profile-grid p{font-size:14px}.race-brief span{font-size:10px;padding:7px 10px}#record-form label{font-size:15px}#record-form .primary,#record-form .secondary{font-size:13px;min-height:48px}#record-status{font-size:13px!important}
@media(min-width:1101px){.intro{top:20%}.intro h1{font-size:90px;margin:22px 0 26px}.home-board{top:20%;right:4%}.world-label{bottom:9%;right:4%}.start-buttons{margin-top:22px}.intro .intro-tip{margin-top:20px}}
@media(max-height:820px) and (min-width:761px){.intro{top:18%}.intro h1{font-size:70px;margin:18px 0 22px}.intro h2{font-size:21px}.intro>p{font-size:14px}.primary{padding:13px 21px;font-size:14px;min-height:48px}.secondary{padding:11px 18px;font-size:13px;min-height:44px}.intro .intro-tip{margin-top:16px;font-size:10px}.music-caption,.tip-line{font-size:10px}.home-board{top:20%;width:310px;padding:18px}.board-row{padding:7px 0}.world-label{display:none}}
@media(max-width:1100px) and (min-width:761px){.topbar nav button{font-size:12px;padding-inline:12px}.home-board{width:285px;right:3%}.board-header h2{font-size:18px}.board-tabs button{font-size:9px}.intro{max-width:440px}.intro h1{font-size:73px}.intro h2{font-size:21px}.intro>p{font-size:14px}.world-label{display:none}}
@media(max-width:760px){body:not(.playing){min-height:1270px}.topbar{top:15px}.brand{font-size:11px}.brand b{font-size:19px}.topbar nav{top:73px;left:12px;right:12px}.topbar nav button{font-size:11px;padding:10px 6px;min-height:44px}.topbar nav button span{display:none}.icon-button{width:42px;height:42px;font-size:24px}.sound-slash{left:13px;top:7px}.volume-control{font-size:7px}.volume-control input{width:50px;height:15px}.intro{top:150px;left:7%;right:7%}.intro-pill{font-size:8px;display:inline-flex}.intro h1{font-size:67px;margin:20px 0 25px}.intro h2{font-size:20px}.intro>p{font-size:14px;line-height:1.7}.start-buttons{gap:14px;margin-top:22px}.primary{font-size:13px;padding:14px 17px;min-height:50px}.secondary{font-size:13px;padding:12px 16px;min-height:46px}.home-board{top:665px;left:7%;right:7%;width:auto;padding:19px}.board-header .tiny{font-size:8px}.board-header h2{font-size:20px}.board-tabs button{font-size:10px;min-height:40px}.board-empty{font-size:13px}.home-board .board-row{font-size:13px;padding:9px 0}.board-row small{font-size:8px}.board-row time{font-size:13px}.home-board>button{font-size:10px;min-height:40px}.intro-bottom{top:1200px;bottom:auto;font-size:8px;flex-wrap:wrap}.intro-bottom button{font-size:10px}.race-hud{top:132px;left:12px;right:12px}.left-hud{gap:7px}.position>b{font-size:43px}.position>span{font-size:14px}.lap-counter{padding:8px;gap:2px 7px}.lap-counter span{font-size:9px}.lap-counter b{font-size:12px}.lap-counter i{font-size:15px}.coin-counter{padding:4px 7px;gap:5px}.coin-counter>b{font-size:18px}.coin-counter>small{font-size:7px}.right-hud>button{font-size:8px;padding:8px;min-height:35px}.item-slot{top:255px;left:12px}.item-slot b{font-size:10px}.item-slot small{font-size:8px}.item-slot button{min-height:62px;padding:9px;max-width:192px}.item-slot span{font-size:30px}.toast{top:335px;font-size:11px;padding:10px 15px}.speedometer{bottom:112px;left:18px;width:140px}.speedometer small{font-size:10px}.speedometer label{font-size:8px}.minimap{right:15px;bottom:112px}.minimap canvas{width:110px;height:85px}.minimap>span{font-size:7px}.touch-controls{left:10px;right:10px;bottom:max(22px,env(safe-area-inset-bottom));gap:6px}.touch-controls button{width:47px;height:54px;font-size:22px}.touch-controls .touch-boost,.touch-controls .touch-drift{width:45px;height:48px}.touch-controls .touch-drift{font-size:9px}.panel-inner{padding:22px 20px}.panel-inner>h2{font-size:25px}.panel-inner p,.panel-inner li{font-size:15px}.panel-header{padding:11px 15px}.panel-header>span{font-size:9px;max-width:calc(100% - 55px)}.panel-footer{padding:12px 15px;flex-wrap:wrap;gap:8px}.panel-footer>span{font-size:8px}.panel-footer button{font-size:11px;min-height:44px}.driver-card{padding:14px;gap:13px}.driver-card h3{font-size:17px}.driver-card p{font-size:12px}.driver-badges span,.skill-tag{font-size:11px}.project-card h3{font-size:19px}.project-card p{font-size:14px}.project-card .metric{font-size:12px}.intro-profile-grid p{font-size:14px}.intro-profile-grid h3{font-size:16px}.research-card p,.research-card li{font-size:14px}.race-brief span{font-size:9px;padding:7px}.race-result .stat-grid b{font-size:16px}.stat-grid span{font-size:9px}.help-list b{font-size:14px}.help-list span{font-size:13px}.resume-actions .primary,.resume-actions .secondary{font-size:12px}#record-form label{font-size:14px}#record-form .primary,#record-form .secondary{font-size:11px;padding:13px;min-height:48px}#record-status{font-size:12px!important}}
@media(max-height:550px) and (orientation:landscape){.playing .topbar{top:8px;left:12px;right:12px}.playing .brand{font-size:8px}.playing .brand b{font-size:13px}.playing .topbar nav{position:static;margin-left:auto;padding:0;flex:none}.playing .topbar nav button{font-size:9px;padding:7px;min-height:32px}.playing .audio-controls .volume-control{display:none}.playing .icon-button{width:32px;height:32px;font-size:19px}.playing .sound-slash{left:10px;top:3px}.playing .race-hud{top:65px;left:12px;right:12px}.playing .right-hud{flex-direction:row;align-items:start}.playing .right-hud>button{font-size:7px;padding:6px;min-height:30px}.playing .coin-counter>b{font-size:16px}.playing .lap-counter i{font-size:14px}.playing .position>b{font-size:36px}.playing .item-slot{left:12px;top:145px}.playing .item-slot button{min-height:48px;padding:6px;max-width:172px}.playing .item-slot b{font-size:8px}.playing .item-slot small{font-size:7px}.playing .item-slot span{font-size:24px}.playing .touch-controls{bottom:12px;left:12px;right:12px}.playing .touch-controls>div:first-child{margin-right:auto}.playing .touch-controls>div:last-child{margin-left:auto}.playing .speedometer{left:50%;transform:translateX(-50%);bottom:70px;width:130px}.playing .speedometer b{font-size:30px}.playing .minimap{right:12px;bottom:80px}.playing .minimap canvas{width:90px;height:65px}.playing .toast{top:120px;font-size:9px;max-width:45%}.playing .driving-help{display:none}.playing .position small{font-size:5px}dialog{max-height:94dvh}.panel-inner>h2{font-size:23px}}
/* Large-format interface requested for comfortable reading. */
@media(min-width:761px){.topbar nav button{font-size:18px;min-height:56px;padding:12px 20px}.brand{font-size:15px}.brand b{font-size:27px}.intro{max-width:590px}.intro h2{font-size:29px}.intro>p{font-size:21px;line-height:1.6}.intro-pill{font-size:12px;padding:8px 14px}.primary{font-size:20px;padding:18px 30px;min-height:66px}.secondary{font-size:18px;padding:15px 26px;min-height:58px}.intro .intro-tip{font-size:15px}.key{font-size:15px;min-width:29px;height:30px}.key.wide{font-size:12px}.tip-line{font-size:14px}.music-caption{font-size:11px}.home-board{width:410px;right:4%;padding:27px;border-radius:19px}.board-header .tiny{font-size:11px}.board-header h2{font-size:27px;margin-bottom:20px}#leaderboard{min-height:170px}.board-empty{font-size:18px;padding:25px 0;line-height:1.7}.board-row{font-size:18px;padding:13px 0;gap:12px;grid-template-columns:26px 1fr auto}.board-row>b{font-size:24px}.board-row small{font-size:10px}.board-row time{font-size:17px}.home-board>button{font-size:13px;min-height:44px;margin-right:16px}.world-label{padding:24px 28px;min-width:370px;border-radius:17px}.world-label strong{font-size:27px}.world-label>span:last-of-type{font-size:16px}.world-label .tiny{font-size:11px}.intro-bottom{font-size:12px}.intro-bottom button{font-size:14px}.lap-counter{padding:12px 20px}.lap-counter span{font-size:14px}.lap-counter b{font-size:23px}.lap-counter i{font-size:27px}.right-hud>button{font-size:14px;min-height:48px;padding:11px 18px}.coin-counter{padding:12px 18px}.coin-counter>b{font-size:31px}.coin-counter>small{font-size:11px}.item-slot{top:260px}.item-slot button{padding:15px 20px;min-height:84px}.item-slot b{font-size:15px}.item-slot small{font-size:11px}.item-slot span{font-size:43px}.driving-help{font-size:15px;padding:16px 20px}.driving-help b{font-size:13px}.toast{font-size:16px;padding:16px 26px}.speedometer{width:210px}.speedometer b{font-size:66px}.speedometer small{font-size:14px}.speedometer label{font-size:12px}.minimap{padding:9px}.minimap canvas{width:210px;height:160px}.minimap>span{font-size:10px}dialog{width:min(1000px,calc(100% - 60px));border-radius:24px}.panel-inner{padding:36px 44px}.panel-inner>h2{font-size:38px}.panel-inner h3{font-size:23px}.panel-inner p,.panel-inner li{font-size:19px;line-height:1.8}.panel-inner .fine{font-size:15px}.panel-header{padding:19px 28px}.panel-header>span{font-size:15px}.panel-header button{width:48px;height:48px}.panel-footer{font-size:13px;padding:20px 28px}.panel-footer button{font-size:15px;min-height:50px}.driver-card{padding:25px}.driver-card img{width:125px;height:125px}.driver-card h3{font-size:25px}.driver-card p{font-size:17px}.intro-profile-grid article{padding:21px}.intro-profile-grid article>span{font-size:12px}.intro-profile-grid h3{font-size:20px}.intro-profile-grid p{font-size:17px}.research-card{padding:25px}.research-card p,.research-card li{font-size:17px}.project-card{padding:26px}.project-card h3{font-size:24px}.project-card p{font-size:17px}.project-card .metric{font-size:15px}.project-card .eyebrow{font-size:12px}.skill-tag{font-size:15px;padding:10px 14px}.contact-links a,.contact-links button,.button{font-size:17px;padding:13px 20px}.help-list b{font-size:18px}.help-list span{font-size:17px}.stat-grid b{font-size:32px}.stat-grid span{font-size:13px}#record-dialog{width:850px}#record-dialog h2{font-size:33px}#record-form label{font-size:18px}#record-form .primary,#record-form .secondary{font-size:16px;padding:16px 23px;min-height:60px}#record-name{font-size:21px;padding:16px 20px}#record-status{font-size:16px!important}}
.course-rating{letter-spacing:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.course-rating button{background:none;color:#cf8300;font-size:28px;line-height:1;padding:5px;min-width:40px;min-height:40px}.course-rating button:hover{transform:translateY(-3px);color:#f3a420}.course-rating small{display:block;width:100%;font-size:10px;letter-spacing:.06em;margin:7px 0 0}.review-stars{display:flex;gap:9px;margin-top:20px}.review-stars button{background:#e7ebdf;color:#a3ab9d;border:2px solid #adb99f;border-radius:10px;font-size:39px;min-width:60px;min-height:60px}.review-stars button[aria-pressed=true]{color:#bb7900;background:#ffed9d;border-color:#c39a40}#review-form label{display:block;font-size:17px;font-weight:bold;margin:20px 0 10px}#review-comment{width:100%;border:2px solid #8ba1a0;border-radius:10px;padding:15px;font:17px/1.6 Manrope;color:var(--ink);resize:vertical}#review-comment:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
@media(min-width:761px) and (max-height:900px){.intro{top:18%}.intro h1{font-size:78px;margin:20px 0 24px}.intro h2{font-size:26px}.intro>p{font-size:18px}.start-buttons{margin-top:20px;gap:14px}.intro .intro-tip{margin-top:17px;font-size:13px}.intro .primary{font-size:18px;min-height:61px;padding:16px 26px}.intro .secondary{font-size:17px;min-height:55px}.intro .key{font-size:13px;min-width:25px;height:26px}.intro .tip-line{font-size:12px}.intro .music-caption{font-size:10px}.home-board{top:18%;padding:22px;width:370px}.board-header h2{font-size:24px}.world-label{min-width:330px;padding:18px 23px;bottom:8%}.world-label strong{font-size:23px}.world-label>span:last-of-type{font-size:14px}.course-rating button{font-size:24px;min-width:35px;min-height:35px}}
@media(min-width:761px) and (max-width:1100px){.topbar nav button{font-size:14px;padding:10px 13px;min-height:49px}.intro{max-width:470px}.intro h1{font-size:72px}.intro h2{font-size:24px}.intro>p{font-size:17px}.home-board{width:310px;right:3%;padding:19px}.board-header h2{font-size:21px}.board-empty{font-size:16px}.board-row{font-size:15px}.board-row time{font-size:14px}.world-label{display:none}}
@media(max-width:760px){.topbar nav button{font-size:13px;min-height:52px;padding:10px 7px;line-height:1.3}.topbar nav{top:75px}.intro{top:160px}.intro h2{font-size:23px}.intro>p{font-size:16px;line-height:1.7}.intro .primary{font-size:16px;min-height:60px;padding:16px 20px;gap:20px}.intro .secondary{font-size:16px;min-height:55px;padding:14px 19px;gap:18px}.start-buttons{gap:16px;margin-top:24px}.intro h1{font-size:70px}.home-board{top:735px;padding:23px}.board-header h2{font-size:24px}.board-header .tiny{font-size:10px}.board-empty{font-size:16px}.home-board .board-row{font-size:16px;padding:12px 0;gap:8px}.board-row small{font-size:9px}.board-row time{font-size:15px}.home-board>button{font-size:12px;min-height:46px;margin-right:14px}#leaderboard{min-height:140px}body:not(.playing){min-height:1350px}.intro-bottom{top:1280px;font-size:10px}.intro-bottom button{font-size:12px}.panel-inner p,.panel-inner li{font-size:17px}.panel-inner>h2{font-size:28px}.panel-inner .fine{font-size:13px}.panel-footer button{font-size:13px;min-height:48px}.panel-footer>span{font-size:9px}.project-card{padding:22px}.project-card h3{font-size:22px}.project-card p{font-size:16px}.project-card .metric{font-size:14px}.intro-profile-grid article{padding:18px}.intro-profile-grid p{font-size:16px}.intro-profile-grid h3{font-size:18px}.research-card p,.research-card li{font-size:16px}.driver-card p{font-size:14px}.driver-badges span,.skill-tag{font-size:13px;padding:8px 10px}.contact-links a,.contact-links button{font-size:15px;padding:12px 16px}.help-list b{font-size:16px}.help-list span{font-size:15px}#record-form label{font-size:16px}#record-form .primary,#record-form .secondary{font-size:13px;min-height:54px;padding:13px 15px}#record-name{font-size:18px;padding:14px}#record-status{font-size:14px!important}.review-stars{gap:6px}.review-stars button{min-width:45px;min-height:50px;font-size:30px}#review-form label{font-size:16px}#review-comment{font-size:16px;padding:12px}.review-stars+p{font-size:16px}}

/* Keep checkpoint actions visible while the large case study scrolls. */
#panel[open]{display:flex;flex-direction:column;overflow:hidden}#panel .panel-header,#panel .panel-footer{flex-shrink:0}#panel .panel-inner{overflow-y:auto;overscroll-behavior:contain;min-height:0}#leaderboard{font-size:17px}.board-row>span{min-width:0;overflow-wrap:anywhere}

.board-rating{font-size:13px;margin:8px 0 0;color:#476476}.course-rating button{min-width:44px;min-height:44px}
@media(max-width:760px){.race-hud{top:154px}.item-slot{top:278px}.toast{top:360px}.board-rating{font-size:13px}}

/* Five readable results fit the card even when the board fills up. */
#leaderboard{max-height:230px;overflow-y:auto}.home-board .board-row{padding:8px 0;min-height:44px}.board-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Larger text throughout the panels, actions and homepage footer. */
@media(min-width:761px){.panel-inner p,.panel-inner li{font-size:22px;line-height:1.75}.panel-inner>h2{font-size:44px}.panel-inner h3{font-size:28px}.panel-inner .fine{font-size:18px}.panel-header>span{font-size:18px}.panel-footer{font-size:16px}.panel-footer button{font-size:19px;min-height:60px;padding:13px 20px}.panel-inner .resume-actions .primary,.panel-inner .resume-actions .secondary{font-size:21px;min-height:68px;padding:19px 27px}.intro-bottom{font-size:16px;letter-spacing:.4px}.intro-bottom button{font-size:18px;min-height:48px}.intro-bottom button b{font-size:17px;width:30px;height:30px}.driver-card p,.intro-profile-grid p,.research-card p,.research-card li{font-size:21px}.skill-tag{font-size:18px}.contact-links a,.contact-links button,.panel-inner .button{font-size:20px;min-height:54px}.help-list b{font-size:21px}.help-list span{font-size:20px}}
@media(max-width:760px){.panel-inner p,.panel-inner li{font-size:19px;line-height:1.75}.panel-inner .fine{font-size:16px}.panel-inner>h2{font-size:31px}.panel-inner h3{font-size:23px}.panel-header>span{font-size:12px}.panel-footer{justify-content:center}.panel-footer>span{font-size:12px;text-align:center}.panel-footer button{font-size:17px;min-height:54px;width:100%}.panel-inner .resume-actions .primary,.panel-inner .resume-actions .secondary{font-size:17px;min-height:58px;padding:15px 20px}.intro-bottom{font-size:13px;gap:15px}.intro-bottom button{font-size:15px;min-height:44px}.intro-profile-grid p,.research-card p,.research-card li,.driver-card p{font-size:18px}}
@media(max-height:550px) and (orientation:landscape){#panel .panel-header{padding:10px 20px}#panel .panel-footer{padding:10px 20px}#panel .panel-footer>span{font-size:12px}#panel .panel-footer button{font-size:16px;min-height:44px;width:auto}#panel .panel-inner>h2{font-size:30px}.intro-bottom{font-size:13px}}

.project-photo{margin:26px 0;background:#ecebdc;border:2px solid #afbab4;border-radius:14px;padding:12px}.project-photo img{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;border-radius:8px}.project-photo figcaption{font-size:17px;text-align:center;margin-top:10px}

/* The persistent race action is a primary button, including the intro. */
#panel .panel-footer #resume{background:var(--yellow);border:2px solid var(--ink);border-radius:12px;box-shadow:0 5px 0 var(--ink);padding:14px 22px;display:inline-flex;align-items:center;justify-content:center}
#panel .panel-footer #resume:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--ink)}
#panel .panel-footer #resume:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}

/* Readable volume label without changing the slider layout. */
.volume-control>span{font-size:16px;line-height:1.2;letter-spacing:.5px}
@media(max-width:760px){.volume-control>span{font-size:14px}}

/* Geometric controls render consistently on phones without emoji substitution. */
.touch-controls .control-triangle{display:block;width:22px;height:22px;margin:auto;background:var(--ink);clip-path:polygon(50% 0,100% 100%,0 100%);pointer-events:none}
.touch-controls [data-control="left"] .control-triangle{transform:rotate(-90deg)}
.touch-controls [data-control="right"] .control-triangle{transform:rotate(90deg)}
.touch-controls [data-control="brake"] .control-triangle{transform:rotate(180deg)}

/* Keep the mute strike centred at every music-button size. */
#sound{display:grid;place-items:center;padding:0;line-height:1}
#sound .sound-slash{position:absolute;left:50%;top:50%;width:calc(100% + 2px);height:2px;background:var(--ink);transform:translate(-50%,-50%) rotate(-45deg);border-radius:2px;pointer-events:none}

/* Illustrated project marks stay within the existing card-icon row. */
.project-card .project-icon{height:44px;width:56px;line-height:1}
.project-icon img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.project-card .project-icon{width:50px;height:40px}}

/* A larger, distinctive racing-helmet identity for Rudra Rally. */
.brand{font-size:19px;gap:13px;flex-shrink:0}
.brand b{font-size:34px;line-height:1.12}
.brand .flag-icon{display:grid;place-items:center;width:60px;height:60px;padding:5px;border-radius:14px;flex-shrink:0}
.flag-icon img{display:block;width:100%;height:100%}
@media(max-width:760px){.brand{font-size:15px;gap:10px}.brand b{font-size:26px}.brand .flag-icon{width:48px;height:48px;padding:4px;border-radius:11px}}
@media(max-height:550px) and (orientation:landscape){.playing .brand{font-size:9px;gap:8px}.playing .brand b{font-size:16px}.playing .brand .flag-icon{width:34px;height:34px;padding:2px;border-radius:8px}}
