:root{font-family:Segoe UI,Arial,sans-serif;color:#e8edf6;background:#10151e;color-scheme:dark}*{box-sizing:border-box}body{margin:0}main{max-width:1100px;margin:auto;padding:32px}header{display:flex;gap:20px;justify-content:space-between;font-size:13px;color:#abb8cd}.tag{letter-spacing:2px;color:#73e7b6}h1{font-size:clamp(38px,5vw,62px);line-height:1.06;font-weight:650;letter-spacing:-2px;margin:36px 0}em{font-style:normal;color:#73e7b6}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}article{border:1px solid #2b3748;border-radius:20px;padding:26px;background:#17202d}.pair img{display:block;width:240px;max-width:100%;border-radius:12px;background:white}.pair img[hidden]{display:none}h2{font-size:19px}ol{padding-left:22px;line-height:1.8;color:#b7c3d5}a{color:#73e7b6}.live{display:flex;flex-direction:column;align-items:center;justify-content:center}canvas{width:100%;max-width:430px}#angle,#phoneAngle{font-size:56px;font-variant-numeric:tabular-nums;font-weight:600}#sensorState{color:#b7c3d5;text-align:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}.stats div{padding:20px;background:#17202d;border-radius:14px}.stats span{display:block;font-size:12px;color:#b7c3d5}.stats strong{display:block;font-size:29px;margin-top:10px;font-variant-numeric:tabular-nums}.note{font-size:13px;line-height:1.6;color:#93a4bd}button{background:#73e7b6;color:#09261b;border:0;border-radius:12px;padding:15px 22px;font:600 16px Segoe UI;cursor:pointer}.secondary{background:#263446;color:#e8edf6}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:4px}#phone{max-width:650px}#phone p{line-height:1.6}#phone button{margin:8px 8px 8px 0}#phoneAngle{margin:22px 0}input{accent-color:#73e7b6;width:18px;height:18px;vertical-align:middle}#motionState{color:#73e7b6}@media(max-width:760px){main{padding:22px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}header{flex-direction:column;gap:8px}h1{margin:25px 0}.pair img{margin:auto}}[hidden]{display:none!important}

.share{margin-top:28px;padding:24px;border:1px solid #2b3748;border-radius:16px}.share p{line-height:1.6;color:#b7c3d5}.share a{display:inline-block;margin:12px}

/* Road game */
main{max-width:1200px;padding-top:24px}h1{font-size:44px;margin:22px 0}.grid{grid-template-columns:310px minmax(0,1fr);align-items:start}.pair{padding:22px}.pair img{width:240px}.live{padding:20px}.live #wheel{display:none}.live #angle{font-size:20px}.live #sensorState{font-size:12px;margin:5px 0}.live #road{width:100%;max-width:480px;border-radius:14px;background:#1a2530;touch-action:none}.gameHud{display:flex;width:100%;max-width:480px;justify-content:space-between;margin-bottom:14px}.gameHud span{font-size:10px;letter-spacing:2px;color:#a5b5ca}.gameHud strong{display:block;font-size:25px;font-variant-numeric:tabular-nums}.gameControls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.gameControls label{display:flex;align-items:center;gap:8px;font-size:12px}.gameControls select{padding:10px;border:1px solid #516078;border-radius:8px;background:#17202d;color:white}#gameStatus{text-align:center;min-height:24px;color:#73e7b6;font-size:14px}.live>.note{max-width:480px;text-align:center}.stats{margin-top:18px}.pair ol{font-size:14px}.gameControls button{font-size:14px;padding:12px 16px}@media(max-width:850px){.grid{grid-template-columns:1fr}.pair{display:flex;flex-direction:column;align-items:center}.pair ol{max-width:440px}.live{padding:14px}h1{font-size:36px}}

.racePanel{width:100%;max-width:480px;margin-bottom:20px;padding:16px;background:#202e40;border:1px solid #415976;border-radius:12px}.racePanel p{font-size:13px;line-height:1.6}.racePanel a{display:block;overflow-wrap:anywhere;font-size:12px;margin-top:12px}.racePanel button{font-size:13px;padding:11px 14px}

.mobilePlayer main{max-width:960px;padding:8px}.mobilePlayer header,.mobilePlayer #desktop>h1,.mobilePlayer .pair,.mobilePlayer .racePanel,.mobilePlayer .stats,.mobilePlayer #desktop>.note,.mobilePlayer #reset,.mobilePlayer .share,.mobilePlayer .gameControls label,.mobilePlayer #angle,.mobilePlayer #sensorState{display:none}.mobilePlayer .grid{display:block}.mobilePlayer .live{padding:10px;display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,1.4fr);column-gap:12px;align-items:start}.mobilePlayer #phone{grid-column:1;grid-row:1 / span 3;max-width:none}.mobilePlayer #phone>h1,.mobilePlayer #phone>p.note,.mobilePlayer #phone>p:first-of-type,.mobilePlayer #phoneAngle,.mobilePlayer #phone>label{display:none}.mobilePlayer #phone button{width:100%;margin:4px 0;padding:11px 8px;font-size:13px}.mobilePlayer #phone #motionState{font-size:12px}.mobilePlayer .gameHud{grid-column:2;grid-row:1;margin-bottom:6px}.mobilePlayer .gameHud strong{font-size:18px}.mobilePlayer #road{grid-column:2;grid-row:2 / span 4;width:auto;max-width:100%;height:calc(100dvh - 62px);max-height:650px;justify-self:center}.mobilePlayer #gameStatus{grid-column:1;font-size:12px}.mobilePlayer .gameControls{grid-column:1}.mobilePlayer .live>.note{grid-column:1;font-size:11px}.mobilePlayer .gameControls button{width:100%}@media(orientation:portrait){.mobilePlayer .live{display:flex;flex-direction:column;align-items:center}.mobilePlayer #phone{width:100%}.mobilePlayer #road{height:auto;width:100%;max-height:none}.mobilePlayer #phone::before{content:'Telefonu yatay çevirerek oyna.';display:block;color:#73e7b6;font-size:13px;margin:5px 0}.mobilePlayer .gameHud{margin-top:10px}}

@media(orientation:landscape){.mobilePlayer #road{height:calc(100dvh - 100px)}.mobilePlayer .live>.note{display:none}.mobilePlayer .live{min-height:calc(100dvh - 16px)}}


.pedals{display:flex;gap:14px;margin:16px 0;touch-action:none}.pedals button{flex:1;min-height:100px;font-size:26px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pedals button small{font-size:12px;font-weight:400}.pedals #brake{background:#e76761;color:#210b10}.pedals #gas{background:#73e7b6}.pedals .pressed{filter:brightness(1.3);box-shadow:inset 0 0 0 4px white;transform:scale(.97)}.pedalHelp{font-size:12px;color:#abb8cd}.mobilePlayer #phone .pedals{display:flex;gap:10px;margin:8px 0}.mobilePlayer #phone .pedals button{min-height:75px;font-size:22px;flex:1}.mobilePlayer #phone .pedalHelp{display:none}.mobilePlayer #phone #motionState{font-size:10px;margin:3px 0}.mobilePlayer #phone #center{padding:6px;font-size:11px}.mobilePlayer .gameHud strong{font-size:15px}.mobilePlayer .gameHud span{letter-spacing:.5px}.gameHud strong{font-size:20px}@media(orientation:landscape){body:not(.mobilePlayer) #phone{max-width:900px}body:not(.mobilePlayer) #phone h1{font-size:28px;margin:12px 0}body:not(.mobilePlayer) #phoneAngle{font-size:24px;margin:4px 0}body:not(.mobilePlayer) #phone .pedals{margin:8px 0}body:not(.mobilePlayer) #phone .pedals button{min-height:90px}}

.racers{white-space:pre-line;align-self:stretch;font-size:12px;line-height:1.7;color:#bed1e8;margin:8px 0;padding:0 8px}.racers:empty{display:none}.mobilePlayer .racers{grid-column:1;font-size:10px;max-height:80px;overflow:auto}.mobilePlayer .gameControls{gap:4px}

.coinPanel{width:100%;max-width:480px;padding:10px 14px;background:#233344;border-radius:10px}.coinPanel strong{color:#ffd85f;font-size:22px}.coinPanel>span{float:right;color:#bed1e8;font-size:13px}.coinLegend{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px;font-size:12px}.coinPanel p{font-size:11px;color:#adbed2;margin:7px 0 0}.mobilePlayer .coinPanel{grid-column:1;padding:6px}.mobilePlayer .coinPanel strong{font-size:16px}.mobilePlayer .coinLegend{font-size:9px;gap:6px}.mobilePlayer .coinPanel p{display:none}
.soundPanel{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;font-size:12px}.soundPanel label{display:flex;align-items:center;gap:8px}.soundPanel input{width:90px}.soundPanel span{color:#ffd0a1}.soundPanel button{padding:8px 12px;font-size:12px}.mobilePlayer .soundPanel{grid-column:1;font-size:10px;gap:5px}.mobilePlayer .soundPanel span{display:none}.mobilePlayer .soundPanel input{width:65px}
.readyPanel{width:100%;max-width:480px;padding:14px;margin-bottom:14px;border:1px solid #73e7b6;border-radius:12px;background:#1c3533}.readyPanel button{width:100%;font-size:20px;min-height:50px}.readyPanel p{font-size:13px;line-height:1.5;margin:10px 0 0;color:#d1e3dc}.readyPanel.needsInput{border-color:#f1bd70}.mobilePlayer .readyPanel{grid-column:1;grid-row:4;padding:8px;margin:4px 0}.mobilePlayer .readyPanel button{font-size:16px;min-height:42px}.mobilePlayer .readyPanel p{font-size:10px}.mobilePlayer .gameControls{grid-column:1}

.tableLink{display:inline-block;padding:12px;background:#73e7b6;color:#102030;border-radius:8px;font-weight:bold;margin-bottom:12px}
body.tableSeat{margin:0;padding:0;overflow:hidden}.tableSeat main,.tableSeat #desktop,.tableSeat .grid,.tableSeat article.live{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;height:100dvh!important;border:0!important;background:#132232!important;display:block!important}.tableSeat main>header,.tableSeat main>footer,.tableSeat #desktop>h1,.tableSeat #desktop>.stats,.tableSeat #desktop>.note,.tableSeat #desktop>.share,.tableSeat #reset,.tableSeat .pair,.tableSeat .live>*{display:none!important}.tableSeat .live>#road{display:block!important;height:calc(100dvh - 40px)!important;width:auto!important;max-width:100%!important;margin:auto!important;border-radius:0!important}.tableSeat .live>#gameStatus{display:block!important;height:32px;margin:3px!important;font-size:11px!important;text-align:center}

.carPicker{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px;background:#233344;border-radius:10px}.carPicker small{font-size:11px;color:#bdcfdd}.carPicker select{font-size:17px;padding:8px;border-radius:8px;background:#132232;color:#fff;border:1px solid #73e7b6}

.phoneController main{max-width:1000px;padding:12px;margin:auto}.phoneController header{justify-content:flex-end;margin:0 0 8px;font-size:12px}.phoneController header .tag{display:none}.phoneController #phone{max-width:none}.phoneSetup{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.phoneSetup>button{flex:1}.phoneSetup .carPicker{margin:0;flex:1;padding:6px 10px;flex-wrap:nowrap}.phoneSetup select{width:100%;min-width:110px}.phoneController #motionState{margin:10px 0;font-size:14px}.phoneController #phone .pedals{gap:20px;margin:10px 0}.phoneController #phone .pedals button{min-height:130px;height:45dvh;font-size:36px}.phoneSettings{font-size:12px;color:#b8c8d9;margin:8px 0}.phoneSettings summary{cursor:pointer;padding:8px}.phoneSettings[open]{padding-bottom:10px}.phoneSettings button{padding:8px;font-size:13px;margin:6px}.phoneSettings #phoneAngle{font-size:14px;margin:4px}.mobilePlayer .phoneSetup{gap:6px}.mobilePlayer .phoneSetup>button{padding:8px;font-size:13px}.mobilePlayer .phoneSetup select{font-size:13px;padding:5px}.mobilePlayer .phoneSetup .carPicker{font-size:12px}

.phoneSetup .carPicker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:2;min-width:250px;background:transparent;padding:0}.carOption{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px!important;min-height:72px;border:2px solid #35485e;border-radius:10px;background:#17283b;color:#d8e6f5;font-size:11px!important;touch-action:manipulation}.carOption svg{width:35px;height:49px;display:block}.carOption[aria-pressed="true"]{border-color:#73e7b6;background:#214d3f;color:#fff}.carOption:focus-visible{outline:3px solid white;outline-offset:2px}.mobilePlayer .phoneSetup .carPicker{min-width:220px}.mobilePlayer .carOption{min-height:59px}.mobilePlayer .carOption svg{height:36px;width:26px}

.phoneSetup #phoneFullscreen{flex:0 0 auto;padding:10px 12px;font-size:13px}.phoneController:fullscreen{background:#10151e}.phoneController main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}

#fullscreenHelp{font-size:13px;padding:10px;border:1px solid #73e7b6;border-radius:8px;color:#d9f8eb;background:#1b342b}#fullscreenHelp[hidden]{display:none}
