:root { --m: 1; --gold: #f2b21f; --navy: #0e2240; --green: #2fb955; --red: #d8352a; --vh: 1vh;
  /* the logo's own materials: chrome rims, the red SIMULATOR plate, deep blue plates, the cyan of "3D" */
  --chrome: linear-gradient(180deg, #ffffff 0%, #d3dbe4 34%, #8592a3 50%, #e9eef4 66%, #9ba7b6 100%);
  --plate-red: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 46%), linear-gradient(180deg, #ff4a42 0%, #e2151e 48%, #a90a12 100%);
  --plate-blue: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 48%), linear-gradient(180deg, #1a5fd6 0%, #0b358f 52%, #06215f 100%);
  --ink: #020a24; --acc: #3fd0ff; --glow: rgba(31,111,255,.5); font-family: "Avenir Next", "Segoe UI", Roboto, Arial, Helvetica, sans-serif; }
@supports (height: 1dvh) { :root { --vh: 1dvh; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#ui { position: fixed; inset: 0; pointer-events: none; color: #fff; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.hidden { display: none !important; }
.screen { display: none; position: absolute; inset: 0; }
.screen.show { display: flex; align-items: center; justify-content: center; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .4em; text-align: center; border-radius: .25em; background: #fff; color: #0c1d36; font: inherit; font-weight: 800; line-height: 1.5; box-shadow: 0 .12em 0 #93a3b8; }

/* loading + rotate: the logo on deep blue with faint speed lines, a chrome-rimmed red bar under it */
#loading, #rotate { background: radial-gradient(95% 85% at 50% 42%, #0f3d9c 0, #06205e 44%, #020a22 100%); }
#loading::before, #rotate::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, rgba(255,255,255,.035) 0 2px, transparent 2px 24px); pointer-events: none; }
#loading { z-index: 50; pointer-events: auto; }
.ld-box { position: relative; width: min(780px, 86vw); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ld-logo { display: block; width: 100%; height: auto; max-height: 44vh; object-fit: contain; filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.ld-bar { width: min(460px, 72%); height: 14px; margin: 3.4vh 0 10px; border: 2px solid transparent; border-radius: 8px; background: linear-gradient(#061a4a, #061a4a) padding-box, var(--chrome) border-box; box-shadow: 0 0 16px var(--glow); overflow: hidden; }
.ld-bar i { display: block; width: 0; height: 100%; background: linear-gradient(180deg, #ff7066 0%, #e2151e 55%, #a90a12 100%); box-shadow: 0 0 10px rgba(255,60,50,.7); transition: width .25s; }
.ld-msg { font-size: 15px; font-weight: 700; font-style: italic; letter-spacing: .04em; color: #cfe2ff; }
#rotate { z-index: 90; pointer-events: auto; }
#rotate.show { display: flex; align-items: center; justify-content: center; }
.rot-box { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: center; font-size: 18px; font-style: italic; }
.rot-logo { width: min(420px, 70vw); height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.rot-icon { width: 76px; height: 46px; border: 4px solid #e9eef4; border-radius: 9px; box-shadow: 0 0 14px var(--glow); animation: rot 2s infinite ease-in-out; }
@keyframes rot { 0%, 25% { transform: rotate(90deg); } 60%, 100% { transform: rotate(0); } }

/* HUD */
#hud { position: absolute; inset: 0; font-weight: 700; --sa: env(safe-area-inset-left, 0px); }
.h-top { position: absolute; left: max(10px, var(--sa)); right: max(10px, var(--sa)); top: 8px; display: flex; align-items: flex-start; gap: 10px; }
.h-goal { flex: 0 0 auto; max-width: 36%; padding: 6px 12px 7px; background: rgba(7,20,38,.78); border-left: 4px solid var(--gold); border-radius: 4px; text-shadow: 0 1px 2px #000; }
.h-g1 { font-size: 16px; line-height: 1.15; } .h-g2 { font-size: 14px; color: #ffd87a; line-height: 1.25; white-space: nowrap; } .h-g2 .late { color: #ff8a70; }
.h-strip { flex: 1 1 auto; display: none; text-align: center; font-size: 16px; line-height: 1.25; padding: 7px 14px; border-radius: 5px; background: rgba(7,20,38,.82); margin: 0 auto; max-width: 50%; }
.h-strip.on { display: block; } .h-strip.lesson { background: rgba(240,170,30,.96); color: #14233b; } .h-strip.lesson kbd { box-shadow: none; }
.h-strip.info { background: rgba(14,48,92,.92); }
.h-btns { margin-left: auto; flex: 0 0 auto; display: flex; gap: 6px; }
.h-b { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; font-size: 14px; font-weight: 800; background: rgba(7,20,38,.78); border-radius: 5px; }
.h-b i { font-style: normal; } .h-b:hover { background: rgba(30,60,100,.9); }
.tk { min-width: 1.5em; text-align: center; padding: 0 .3em; font-size: 12px; color: #0c1d36; background: #fff; border-radius: 3px; }
body.touch-ui .tk { display: none; }
.h-clu { position: absolute; left: max(10px, var(--sa)); bottom: 10px; display: flex; align-items: stretch; gap: 3px; height: 84px; }
.h-clu > div { background: rgba(7,20,38,.8); padding: 6px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; }
.hc-spd { min-width: 112px; } .hc-spd b { font-size: 44px; line-height: .95; font-variant-numeric: tabular-nums; } .hc-spd span { font-size: 12px; opacity: .8; } .hc-spd.over b { color: #ff6a52; }
.hc-lim { min-width: 96px; } .hc-lim b { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: #111; background: #fff; border: 5px solid #d3211a; border-radius: 50%; font-size: 20px; } .hc-lim span { min-height: 14px; font-size: 12px; margin-top: 3px; white-space: nowrap; color: #ffd87a; }
.hc-sig { min-width: 78px; } .hc-sig b { font-size: 14px; margin-top: 4px; white-space: nowrap; } .hc-sig span { font-size: 11px; opacity: .7; }
.lamp { width: 26px; height: 26px; border-radius: 50%; background: #333; } .lamp.red { background: #ff3324; box-shadow: 0 0 14px #ff3324; } .lamp.yel { background: #ffc61e; box-shadow: 0 0 14px #ffc61e; } .lamp.grn { background: #29e86c; box-shadow: 0 0 14px #29e86c; }
.hc-door { min-width: 76px; } .hc-door b { font-size: 13px; margin-top: 4px; } .hc-door span { font-size: 11px; opacity: .7; } .hc-door.open { background: rgba(120,78,6,.88) !important; } .lamp.blink { animation: blink .6s infinite; }
.h-seq { display: flex; gap: 3px; width: 100%; } .h-seq span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 4px 3px; font-size: 12px; font-weight: 800; white-space: nowrap; background: rgba(7,20,38,.82); color: rgba(255,255,255,.5); border-radius: 3px; } .h-seq i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #39424e; } .h-seq .now { color: #fff; background: rgba(150,98,8,.94); } .h-seq .now i { background: #ffc61e; box-shadow: 0 0 8px #ffc61e; animation: blink .6s infinite; } .h-seq .ok { color: #cdf5da; } .h-seq .ok i { background: #29e86c; }
.hc-lev { flex-direction: row !important; gap: 8px; } .lv { display: flex; flex-direction: column; align-items: center; gap: 2px; } .lv span { font-size: 11px; opacity: .75; }
.bar { position: relative; width: 16px; height: 46px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; } .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; } .bar.g i { background: var(--green); } .bar.r i { background: var(--red); }
.notch { min-width: 92px; font-size: 14px; text-align: center; align-self: center; } .notch.b { color: #ff8a70; } .notch.p { color: #7fe39b; } .notch.e { color: #fff; background: var(--red); padding: 3px 4px; border-radius: 3px; font-size: 13px; }
.h-mid { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: min(620px, 50vw); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h-plan { width: 100%; height: 46px; border-radius: 4px; display: block; }
.h-brake { position: absolute; right: 0; top: 0; height: 46px; display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 900; color: #fff; background: var(--red); border-radius: 0 4px 4px 0; animation: blink .7s infinite; } @keyframes blink { 50% { opacity: .55; } }
.h-side { position: absolute; left: max(10px, var(--sa)); top: 66px; width: 148px; display: flex; flex-direction: column; gap: 4px; }
.h-side .g { padding: 3px 7px 5px; background: rgba(7,20,38,.78); border-radius: 4px; font-size: 12px; } .h-side .g span { display: block; opacity: .85; }
.h-side .g i { display: block; height: 7px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; } .h-side .g u { display: block; height: 100%; background: var(--green); } .h-side .g i.low u { background: var(--red); } .h-side .g i.blue u { background: #4aa3ff; } .h-side .g i.tea u { background: #d99a45; } .h-side .g i.flow u { background: var(--gold); } .h-side .g i.shake { animation: blink .25s infinite; }
.clockb, .paxb { padding: 2px 8px 4px; background: rgba(7,20,38,.78); border-radius: 4px; display: flex; align-items: baseline; gap: 7px; font-size: 12px; } .clockb b, .paxb b { font-size: 20px; font-variant-numeric: tabular-nums; } .clockb .gold { color: var(--gold); } .clockb .silver { color: #d8dde4; } .clockb .bronze { color: #e0a06a; } .clockb .none { color: #ff8a70; }
.h-pops { position: absolute; right: max(10px, var(--sa)); top: 54px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pop { padding: 3px 10px; font-size: 13px; background: rgba(7,20,38,.82); border-radius: 4px; border-right: 3px solid var(--gold); animation: popin 2.4s forwards; } .pop b { color: #ffd87a; font-size: 16px; } @keyframes popin { 0% { transform: translateX(30px); opacity: 0; } 10% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.h-money { display: flex; align-items: center; height: 38px; padding: 0 10px; font-size: 18px; font-weight: 900; color: #ffd87a; font-variant-numeric: tabular-nums; } .h-money:empty { display: none; }
.h-pick { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgba(7,20,38,.86); border-radius: 4px; font-size: 13px; pointer-events: auto; } .h-pick button { padding: 5px 10px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.14); border-radius: 3px; } .h-pick button.on { background: var(--gold); color: #14233b; }
.h-app { display: flex; gap: 3px; width: min(460px, 100%); justify-content: center; } .h-app span { display: flex; align-items: center; gap: 6px; padding: 3px 10px; background: rgba(7,20,38,.82); border-radius: 4px; font-size: 14px; font-weight: 900; white-space: nowrap; }
.h-app i { font-style: normal; font-size: 12px; font-weight: 800; opacity: .75; } .h-app .ap-adv.hi b { color: #ffb12a; } .h-app .ap-est.good b { color: #7fe39b; } .h-app .ap-est.bad b { color: #ff6b5e; }
.h-app .ap-say.warn { background: #b8261b; } .h-app .ap-say.bad { background: #e0281c; animation: blink .6s infinite; } .h-app .ap-say.good { background: #1f7a3c; } .h-app .ap-say.info { background: rgba(31,85,151,.9); }
.h-stop { width: min(420px, 100%); padding: 5px 10px 4px; background: rgba(7,20,38,.8); border-radius: 4px; text-align: center; font-size: 15px; }
.h-stop.good b { color: #7fe39b; }
.hs-line { position: relative; height: 12px; margin-bottom: 2px; background: rgba(255,255,255,.14); border-radius: 2px; }
.hs-zone { position: absolute; top: 0; bottom: 0; background: rgba(47,185,85,.6); } .hs-mark { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #fff; } .hs-train { position: absolute; top: 1px; bottom: 1px; width: 8px; margin-left: -4px; background: var(--gold); border-radius: 2px; }
.h-board { width: min(320px, 100%); padding: 5px 10px 8px; background: rgba(7,20,38,.8); border-radius: 4px; text-align: center; font-size: 14px; }
.hb-bar { height: 7px; margin-top: 4px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; } .hb-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.lamp.off { box-shadow: none; }
.h-keys { position: absolute; right: max(10px, var(--sa)); bottom: 12px; display: grid; grid-template-columns: auto auto; gap: 5px 12px; padding: 5px 10px; font-size: 12px; white-space: nowrap; background: rgba(7,20,38,.62); border-radius: 4px; } .h-keys span { display: inline-flex; gap: 5px; align-items: center; }
.h-stop:not(.hidden) ~ .h-keys, .h-board:not(.hidden) ~ .h-keys { display: none; }
.h-warn { padding: 6px 16px; font-size: 16px; border-radius: 4px; white-space: nowrap; background: rgba(195,36,28,.94); } .h-warn.info { background: rgba(14,48,92,.92); }
#toasts { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .9s; pointer-events: none; } #fade.on { opacity: 1; transition: none; }
.toast { padding: 6px 12px; font-size: 14px; font-weight: 700; background: rgba(14,48,92,.9); border-radius: 4px; line-height: 1.25; } .toast.good { background: rgba(32,132,62,.94); }

/* touch */
#touch { position: absolute; inset: 0; --ins: max(8px, env(safe-area-inset-left, 0px)); }
.t-sl { position: absolute; bottom: 10px; width: 92px; height: min(62vh, 240px); display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto; touch-action: none; font-size: 13px; font-weight: 800; }
.t-sl span { padding: 1px 8px; background: rgba(7,20,38,.75); border-radius: 3px; }
.t-sl.l { left: var(--ins); } .t-sl.p { right: var(--ins); }
.t-tr { position: relative; flex: 1; width: 62px; background: rgba(7,20,38,.62); border: 2px solid rgba(255,255,255,.4); border-radius: 8px; overflow: hidden; }
.t-fl { position: absolute; left: 0; right: 0; bottom: 0; height: 0; } .t-fl.g { background: rgba(47,185,85,.8); } .t-fl.r { background: rgba(216,53,42,.85); }
.t-th { position: absolute; left: 3px; right: 3px; height: 44px; bottom: 0; display: flex; align-items: center; justify-content: center; background: #e9eef4; color: #0c1d36; border-radius: 6px; box-shadow: 0 1px 3px #0008; font-style: normal; } .t-th b { font-size: 14px; }
.t-ped { position: absolute; right: var(--ins); bottom: 10px; display: flex; gap: 22px; pointer-events: none; }
.t-p { width: min(19vw, 150px); height: min(30vh, 170px); min-width: 104px; min-height: 92px; font-size: 19px; font-weight: 900; border-radius: 14px; border: 3px solid rgba(255,255,255,.65); touch-action: none; } .t-p.green { background: rgba(38,170,76,.92); } .t-p.red { background: rgba(214,48,38,.92); } .t-p.down { filter: brightness(1.3); transform: scale(.96); }
.t-left { position: absolute; left: var(--ins); bottom: 10px; display: grid; grid-template-columns: 96px 96px; gap: 7px; } .t-left .hidden { display: none; }
.t-b { height: 46px; padding: 0 3px; font-size: 13px; touch-action: none; font-weight: 800; background: rgba(7,20,38,.8); border: 2px solid rgba(255,255,255,.35); border-radius: 7px; }
.t-b.red { background: var(--red); border-color: #ff9c92; font-size: 12px; }
.pulse { animation: pulse 1s infinite; } .t-b.pulse { background: var(--gold); color: #14233b; border-color: #fff; } .t-b.on { background: var(--green); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,178,31,.9); } 60% { box-shadow: 0 0 0 10px rgba(242,178,31,0); } }

/* menus */
#menus { position: absolute; inset: 0; display: none; }
#menus.on { display: block; }
.menu-wrap { position: absolute; inset: 0; display: flex; pointer-events: none; }
.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-style: italic; font-size: max(calc(17px * var(--m)), 13px); letter-spacing: .02em; padding: calc(8px * var(--m)) calc(14px * var(--m)); color: #fff; border: max(1.5px, calc(2px * var(--m))) solid transparent; border-radius: calc(9px * var(--m)); background: var(--plate-blue) padding-box, var(--chrome) border-box; box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 3px 10px rgba(0,0,0,.4); text-shadow: 0 1px 0 #021446, 0 0 6px rgba(0,16,70,.55); transition: filter .12s, box-shadow .12s; }
@media (hover: hover) { .btn:hover { filter: brightness(1.14); box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 0 16px rgba(63,208,255,.55); } } .btn:active { filter: brightness(.88); }
/* the main action of a screen is the logo's red SIMULATOR plate */
.btn.gold { background: var(--plate-red) padding-box, var(--chrome) border-box; text-shadow: 0 2px 0 #64000a, 0 0 8px rgba(70,0,0,.5); box-shadow: 0 0 0 1px rgba(40,0,6,.9), 0 0 18px var(--glow), 0 3px 10px rgba(0,0,0,.4); }
.btn.green { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 48%) padding-box, linear-gradient(180deg, #3ad46b, #1c9a44 55%, #127534) padding-box, var(--chrome) border-box; flex-direction: row; gap: 8px; text-shadow: 0 1px 0 #064018; }
.btn.dim { background: linear-gradient(180deg, rgba(60,92,150,.9), rgba(18,38,84,.95)) padding-box, linear-gradient(180deg, #b5c2d3, #5b6a80) border-box; }
.btn small { font-size: max(calc(13px * var(--m)), 12px); font-weight: 700; opacity: .8; }
/* the rewarded-ad mark is a video camera (CrazyGames: a screen with a play triangle is mistaken for the Play button) */
.vcam { position: relative; display: inline-block; width: .95em; height: .72em; margin-right: .42em; background: #fff; border-radius: .14em; flex: none; } .vcam::after { content: ''; position: absolute; left: 100%; top: 50%; margin: -.27em 0 0 .06em; border-right: .4em solid #fff; border-top: .27em solid transparent; border-bottom: .27em solid transparent; }
.home, .pause { pointer-events: auto; width: calc(372px * var(--m)); min-width: 280px; height: 100%; padding: max(10px, calc(26px * var(--m))) calc(20px * var(--m)) max(8px, calc(16px * var(--m))) calc(max(16px, env(safe-area-inset-left, 0px)) + calc(10px * var(--m))); display: flex; flex-direction: column; gap: calc(9px * var(--m)); justify-content: center; background: linear-gradient(90deg, rgba(2,10,36,.95) 0, rgba(4,22,70,.86) 70%, rgba(4,22,70,0) 100%); }
/* the owner's logo, about a fifth of the screen high; pause menus carry none */
.logo { display: block; width: 100%; height: auto; max-height: 22vh; object-fit: contain; object-position: left center; margin: 0 0 calc(4px * var(--m)) calc(-6px * var(--m)); filter: drop-shadow(0 5px 12px rgba(0,0,0,.5)); flex: none; }
.who { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; font-size: max(calc(14px * var(--m)), 12px); }
.who div:first-child { display: flex; gap: 8px; align-items: baseline; } .who div:first-child span { opacity: .7; font-size: 12px; }
.who .xp { grid-column: 1 / 3; grid-row: 2; height: 5px; background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; } .who .xp u { display: block; height: 100%; background: linear-gradient(90deg, #1f6fff, var(--acc)); box-shadow: 0 0 6px var(--acc); }
.purse { color: #ffd87a; font-weight: 800; }
.btn.main { font-size: max(calc(25px * var(--m)), 16px); padding: calc(12px * var(--m)) calc(16px * var(--m)); font-style: italic; font-weight: 900; letter-spacing: .03em; border-width: max(2px, calc(3px * var(--m))); border-radius: calc(12px * var(--m)); }
.m-list { display: grid; grid-template-columns: 1fr 1fr; gap: calc(7px * var(--m)); } .m-list .btn { min-height: calc(46px * var(--m)); }
.foot { margin-top: calc(4px * var(--m)); font-size: 12px; color: #8fb2ea; opacity: .75; }
.pause h2 { margin: 0; font-size: max(calc(36px * var(--m)), 24px); font-style: italic; font-weight: 900; }
.pause h2, .card h2, .side-p h2 { background: linear-gradient(180deg, #ffffff 0%, #eef2f7 44%, #a6b2c2 52%, #f3f6fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #08245e) drop-shadow(0 0 7px rgba(31,111,255,.45)); padding-right: .12em; } .p-sub { opacity: .75; font-size: max(calc(15px * var(--m)), 13px); margin-bottom: 6px; }
.card { pointer-events: auto; position: relative; margin: auto; width: min(calc(860px * var(--m)), calc(100vw - 2 * max(16px, env(safe-area-inset-left, 0px)))); max-height: calc(100 * var(--vh) - 12px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(7,26,74,.97), rgba(2,10,34,.97)); border: 1px solid rgba(110,170,255,.38); border-radius: calc(12px * var(--m)); box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 26px rgba(31,111,255,.25); padding: calc(15px * var(--m)) calc(18px * var(--m)) calc(13px * var(--m)); }
.card::before { content: ''; position: absolute; left: calc(16px * var(--m)); right: calc(16px * var(--m)); top: -1px; height: max(4px, calc(6px * var(--m))); border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #ff2f2f 0 54%, #2a7dff 54% 100%); box-shadow: 0 0 12px rgba(255,40,40,.45); pointer-events: none; }
.card h2 { margin: 0; font-size: max(calc(26px * var(--m)), 18px); font-style: italic; font-weight: 900; }
.p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: calc(9px * var(--m)); } .back { min-width: calc(92px * var(--m)); }
.p-body { flex: 1 1 auto; min-height: 0; } .p-foot { display: flex; justify-content: flex-end; margin-top: calc(10px * var(--m)); } .p-foot .btn { min-width: calc(190px * var(--m)); }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: calc(14px * var(--m)); }
.rows { display: flex; flex-direction: column; gap: calc(5px * var(--m)); } .rows.two { display: grid; grid-template-columns: 1fr 1fr; }
.rows.two { align-content: start; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: calc(7px * var(--m)) calc(11px * var(--m)); background: rgba(40,96,200,.16); border-left: 4px solid transparent; border-radius: calc(6px * var(--m)); font-size: max(calc(16px * var(--m)), 13px); min-height: calc(48px * var(--m)); }
@media (hover: hover) { .row:hover { background: rgba(60,130,255,.26); border-left-color: var(--acc); } } .row.off { opacity: .55; cursor: default; } .row.hl { background: rgba(63,208,255,.18); }
.row-t { display: flex; flex-direction: column; min-width: 0; } .row-t span { font-size: max(calc(13px * var(--m)), 12px); opacity: .75; font-weight: 500; line-height: 1.2; }
.stars { color: var(--gold); letter-spacing: .04em; white-space: nowrap; font-size: max(calc(16px * var(--m)), 13px); } .stars i { font-style: normal; color: rgba(255,255,255,.2); }
.lockd, .newm { font-style: normal; font-size: 12px; font-weight: 800; } .newm { color: #fff; background: linear-gradient(180deg, #ff4a42, #c50f18); padding: 1px 6px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6px * var(--m)); align-content: start; } .stats div { padding: calc(7px * var(--m)); background: rgba(255,255,255,.06); display: flex; flex-direction: column; font-size: max(calc(15px * var(--m)), 13px); } .stats div:first-child { grid-column: 1 / 3; } .stats span { font-size: 12px; opacity: .7; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6px * var(--m)); } .how-c { padding: calc(8px * var(--m)); background: rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 3px; font-size: max(calc(15px * var(--m)), 12px); } .how-c span { font-size: max(calc(13px * var(--m)), 12px); opacity: .8; line-height: 1.2; }
.rules p { margin: 0 0 calc(7px * var(--m)); font-size: max(calc(14px * var(--m)), 12px); line-height: 1.3; }
.sets { display: flex; flex-direction: column; gap: calc(12px * var(--m)); max-width: calc(560px * var(--m)); } .set { display: grid; grid-template-columns: calc(130px * var(--m)) 1fr; align-items: center; font-size: max(calc(16px * var(--m)), 13px); gap: 10px; }
.seg { display: flex; gap: 4px; } .seg button { flex: 1; padding: calc(9px * var(--m)) 6px; background: rgba(255,255,255,.1); font-weight: 800; font-size: max(calc(14px * var(--m)), 12px); } .seg button { border-radius: 6px; } .seg button.on { background: var(--plate-red); color: #fff; box-shadow: 0 0 10px var(--glow); }
input[type=range] { pointer-events: auto; width: 100%; accent-color: #ff3b3b; height: 28px; }
.result { width: min(calc(820px * var(--m)), calc(100vw - 2 * max(16px, env(safe-area-inset-left, 0px)))); }
.r-head { display: flex; justify-content: space-between; align-items: center; } .r-head p { margin: 0; font-size: max(calc(15px * var(--m)), 13px); opacity: .8; }
.r-score { display: flex; align-items: center; gap: 10px; } .r-score b { font-size: max(calc(40px * var(--m)), 26px); font-weight: 900; font-style: italic; } .r-score .stars { font-size: max(calc(24px * var(--m)), 16px); }
.r-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: calc(16px * var(--m)); margin: calc(7px * var(--m)) 0; min-height: 0; }
.r-col { display: flex; flex-direction: column; gap: calc(3px * var(--m)); justify-content: center; }
.r-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; font-size: max(calc(14px * var(--m)), 12px); } .r-row b { min-width: 2em; text-align: right; }
.r-bar { height: 6px; background: rgba(255,255,255,.14); } .r-bar u { display: block; height: 100%; background: var(--acc); }
.r-gain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; } .r-gain div { padding: calc(5px * var(--m)); background: rgba(255,255,255,.07); text-align: center; display: flex; flex-direction: column; } .r-gain span { font-size: 12px; opacity: .7; } .r-gain b { font-size: max(calc(18px * var(--m)), 14px); }
.r-news { padding: 3px 8px; background: rgba(47,185,85,.32); font-size: max(calc(14px * var(--m)), 12px); font-weight: 800; }
.r-notes { margin: 3px 0 0; padding: 0 0 0 1em; font-size: max(calc(13px * var(--m)), 12px); line-height: 1.22; } .r-notes .bad { color: #ffa08e; }
.r-body.scroll { flex: 1 1 auto; } .r-row span em { font-style: normal; opacity: .6; font-size: max(.82em, 12px); margin-left: 6px; }
.r-bar.g u { background: #3fcf6c; } .r-bar.y u { background: var(--gold); } .r-bar.r u { background: #e8543f; }
.r-grade { font-style: normal; font-weight: 900; font-size: max(calc(34px * var(--m)), 22px); padding: 0 .3em; border-radius: 6px; background: rgba(255,255,255,.1); } .r-grade.g { color: #6fe39a; } .r-grade.y { color: var(--gold); } .r-grade.r { color: #ff7b66; }
.r-sec { margin-top: calc(6px * var(--m)); font-size: max(calc(12px * var(--m)), 12px); font-weight: 900; letter-spacing: .08em; opacity: .65; }
.r-stop { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; align-items: center; font-size: max(calc(13px * var(--m)), 12px); } .r-stop i { font-style: normal; font-weight: 900; font-size: .85em; } .r-stop i.good { color: #6fe39a; } .r-stop i.info { color: #9fc8ff; } .r-stop em { font-style: normal; opacity: .7; font-size: .9em; }
.r-cap { padding: 2px 8px; background: rgba(224,56,42,.3); font-size: max(calc(12px * var(--m)), 12px); font-weight: 800; } .r-best { font-size: max(calc(13px * var(--m)), 12px); font-weight: 800; color: #9fe8b8; }
.r-bonus { display: flex; justify-content: space-between; padding: 2px 8px; background: rgba(224,170,30,.22); font-size: max(calc(13px * var(--m)), 12px); font-weight: 800; }
.r-pax { font-size: max(calc(12px * var(--m)), 12px); opacity: .8; } .r-notes small { opacity: .6; } .r-tip { margin-top: 4px; padding: 3px 8px; border-left: 3px solid var(--acc); font-size: max(calc(13px * var(--m)), 12px); opacity: .9; }
.paxb { flex-wrap: wrap; row-gap: 0; } .paxb em { flex: 1 0 100%; font-style: normal; font-size: 12px; opacity: .85; white-space: nowrap; }
.r-btns { display: flex; justify-content: flex-end; gap: calc(7px * var(--m)); } .r-btns .btn { min-width: calc(110px * var(--m)); } #rNext { min-width: calc(220px * var(--m)); }
.fail { width: min(calc(520px * var(--m)), calc(100vw - 32px)); } .fail p { margin: calc(8px * var(--m)) 0 calc(14px * var(--m)); font-size: max(calc(18px * var(--m)), 14px); }
.m-list .btn:has(em) { flex-direction: row; gap: 6px; } .m-list .btn em { font-style: normal; min-width: 1.5em; font-size: 12px; text-align: center; color: #fff; background: linear-gradient(180deg, #ff4a42, #c50f18); border-radius: 8px; text-shadow: none; }
.p-right { display: flex; align-items: center; gap: calc(12px * var(--m)); } .page { max-height: min(calc(100 * var(--vh) - 12px), calc(600px * var(--m))); } .page .p-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
/* lists scroll with a drawn bar (ui/scrollbar.js); the native one is hidden so there are never two */
.scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: none; touch-action: pan-y; pointer-events: auto; min-height: 0; flex: 1 1 auto; scrollbar-width: none; } .scroll::-webkit-scrollbar { display: none; width: 0; }
.scroll.has-bar { padding-right: 14px; }
.sbar { position: absolute; z-index: 5; width: 8px; border-radius: 4px; background: rgba(150,190,255,.16); pointer-events: auto; touch-action: none; cursor: pointer; } .sbar i { display: block; width: 100%; border-radius: 4px; background: linear-gradient(180deg, #9be6ff, var(--acc)); box-shadow: 0 0 6px rgba(63,208,255,.6); cursor: grab; }
.chs { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(5px * var(--m)); flex: 0 0 auto; } .chs.three { grid-template-columns: repeat(3, 1fr); }
.ch { position: relative; height: calc(84px * var(--m)); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: calc(5px * var(--m)) calc(7px * var(--m)); text-align: left; background-size: cover; background-position: center; background-color: #17335c; border: 3px solid transparent; text-shadow: 0 1px 3px #000, 0 0 6px #000; overflow: hidden; } .ch::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,12,24,.82) 0, rgba(4,12,24,0) 66%); } .ch > * { position: relative; }
.ch b { font-size: max(calc(15px * var(--m)), 12px); line-height: 1.1; } .ch span { font-size: max(calc(12px * var(--m)), 12px); font-weight: 600; opacity: .9; line-height: 1.15; } .ch { border-radius: calc(6px * var(--m)); } .ch.on { border-color: var(--acc); box-shadow: 0 0 12px rgba(63,208,255,.5); } .ch.off { filter: grayscale(.8) brightness(.7); } .ch.big { height: calc(150px * var(--m)); }
.ch-note { flex: 0 0 auto; padding: calc(6px * var(--m)) 2px; font-size: max(calc(14px * var(--m)), 12px); opacity: .85; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6px * var(--m)); align-content: start; }
.job { position: relative; height: calc(112px * var(--m)); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: calc(7px * var(--m)) calc(10px * var(--m)); text-align: left; background-size: cover; background-position: center; border-left: 4px solid transparent; text-shadow: 0 1px 3px #000; overflow: hidden; } .job::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,12,24,.88) 0, rgba(4,12,24,.1) 80%); } .job > * { position: relative; } .job { border-radius: calc(6px * var(--m)); } @media (hover: hover) { .job:hover { border-left-color: var(--acc); } }
.j-t { display: flex; flex-direction: column; min-width: 0; } .j-t b { font-size: max(calc(16px * var(--m)), 13px); } .j-t span { font-size: max(calc(13px * var(--m)), 12px); font-weight: 600; } .j-p { color: #ffd87a; font-weight: 900; font-size: max(calc(18px * var(--m)), 14px); }
.sets.scroll { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(28px * var(--m)); row-gap: calc(10px * var(--m)); max-width: none; align-content: start; } .sets.scroll .set { grid-template-columns: calc(118px * var(--m)) 1fr; } .set.note { grid-column: 1 / -1; font-size: max(calc(13px * var(--m)), 12px); opacity: .8; display: block; }
@media (max-width: 800px) { .sets.scroll { grid-template-columns: 1fr; } }
.sets.wide { max-width: none; margin-top: calc(12px * var(--m)); gap: calc(8px * var(--m)); }
.side-p { pointer-events: auto; width: max(calc(470px * var(--m)), 46vw); max-width: 62vw; height: 100%; display: flex; flex-direction: column; gap: calc(6px * var(--m)); padding: max(8px, calc(14px * var(--m))) calc(24px * var(--m)) max(8px, calc(12px * var(--m))) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(90deg, rgba(2,10,36,.96) 0, rgba(4,22,70,.9) 82%, rgba(4,22,70,0) 100%); } .side-p h2 { margin: 0; font-style: italic; font-weight: 900; font-size: max(calc(26px * var(--m)), 18px); } .side-p .p-head { margin: 0; flex: 0 0 auto; }
.row.sel { background: rgba(63,208,255,.2); border-left-color: var(--acc); } .side-p .lockd { font-size: max(calc(14px * var(--m)), 12px); color: #ffd87a; }
.d-info { flex: 0 0 auto; display: flex; flex-direction: column; gap: calc(4px * var(--m)); } .d-spec { display: flex; gap: calc(16px * var(--m)); font-size: max(calc(13px * var(--m)), 12px); } .d-spec b { font-size: max(calc(19px * var(--m)), 14px); }
.up { display: grid; grid-template-columns: 1fr auto calc(96px * var(--m)); align-items: center; gap: 8px; font-size: max(calc(14px * var(--m)), 12px); } .up em { font-style: normal; text-align: center; color: var(--acc); font-weight: 800; } .up .btn { padding: calc(5px * var(--m)) 4px; font-size: max(calc(14px * var(--m)), 12px); } .btn.off { opacity: .5; cursor: default; }
.pips { display: flex; gap: 3px; } .pips u { width: 13px; height: 7px; background: rgba(255,255,255,.2); } .pips u.on { background: var(--acc); box-shadow: 0 0 5px var(--acc); } .buy p { margin: 0 0 4px; font-size: max(calc(14px * var(--m)), 12px); color: #ffd87a; }
.task { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: calc(9px * var(--m)) calc(12px * var(--m)); background: rgba(40,96,200,.16); border-radius: calc(6px * var(--m)); font-size: max(calc(16px * var(--m)), 13px); } .task.on { background: rgba(47,185,85,.26); } .task .r-bar { display: block; margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(5px * var(--m)); flex: 0 0 auto; margin-bottom: calc(7px * var(--m)); } .stats-row div { padding: calc(5px * var(--m)); background: rgba(255,255,255,.06); display: flex; flex-direction: column; font-size: max(calc(14px * var(--m)), 12px); min-width: 0; } .stats-row span { font-size: 12px; opacity: .7; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(5px * var(--m)); align-content: start; } .badge { padding: calc(6px * var(--m)) calc(9px * var(--m)); background: rgba(255,255,255,.05); opacity: .55; display: flex; flex-direction: column; font-size: max(calc(14px * var(--m)), 12px); } .badge span { font-size: 12px; font-weight: 500; line-height: 1.2; } .badge.on { opacity: 1; background: rgba(63,208,255,.18); border-left: 3px solid var(--acc); }
body.waiting .btn { pointer-events: none; opacity: .6; }

body.touch-ui .h-clu { left: calc(max(8px, env(safe-area-inset-left, 0px)) + 208px); } body.touch-ui .h-keys { display: none; }
.t-sl.l { right: calc(var(--ins) + 108px); left: auto; }
/* phones held sideways, CG frames on Chromebooks */
@media (max-height: 460px) {
  .h-top { top: 4px; } .h-goal { padding: 3px 8px 4px; } .h-g1 { font-size: 14px; } .h-g2 { font-size: 12px; } .h-strip { font-size: 13px; padding: 5px 9px; }
  .h-b { height: 32px; padding: 0 8px; font-size: 12px; }
  .h-clu { height: 58px; bottom: 4px; gap: 2px; } .h-clu > div { padding: 2px 7px; }
  .hc-spd { min-width: 70px; } .hc-spd b { font-size: 30px; } .hc-spd span { display: none; }
  .hc-lim { min-width: 62px; } .hc-lim b { width: 36px; height: 36px; font-size: 14px; border-width: 4px; } .hc-lim span { font-size: 12px; margin-top: 1px; min-height: 0; }
  .hc-sig { min-width: 56px; } .hc-sig span { display: none; } .hc-sig b { font-size: 12px; } .lamp { width: 20px; height: 20px; }
  .hc-lev .lv { display: none; } .notch { min-width: 74px; font-size: 12px; }
  .h-mid { top: 40px; width: min(470px, 52vw); gap: 2px; } .h-seq span { padding: 2px 1px; gap: 3px; font-size: 12px; letter-spacing: -.02em; } .h-seq i { width: 7px; height: 7px; } .hc-door { min-width: 58px; } .hc-door span { display: none; } .hc-door b { font-size: 12px; margin-top: 2px; } .h-plan { height: 34px; } .h-brake { height: 34px; font-size: 13px; padding: 0 9px; }
  .h-stop, .h-board { padding: 1px 8px; font-size: 13px; } .h-app span { padding: 1px 7px; font-size: 13px; gap: 4px; } .h-app i { font-size: 12px; } .hs-line { height: 8px; } .h-warn { font-size: 13px; padding: 3px 10px; } .h-keys { display: none; } #toasts { bottom: 66px; } .toast { font-size: 12px; padding: 3px 8px; }
  .h-side { top: 48px; width: 118px; gap: 2px; } .h-side .g { padding: 1px 5px 3px; } .h-pops { top: 40px; } .pop { font-size: 12px; padding: 1px 7px; } .pop b { font-size: 13px; } .h-money { height: 32px; font-size: 14px; padding: 0 6px; }
  .t-sl { height: calc(100 * var(--vh) - 56px); max-height: 250px; bottom: 6px; width: 78px; } .t-tr { width: 56px; } .t-b { height: 40px; font-size: 12px; } .t-left { bottom: 6px; grid-template-columns: 84px 84px; gap: 5px; } .t-b.red { font-size: 12px; } .t-ped { bottom: 6px; gap: 18px; }
  .t-sl.l { right: calc(var(--ins) + 92px); left: auto; }
  .side-p .rows { display: grid; grid-template-columns: 1fr 1fr; align-content: start; } .side-p .row { min-height: 0; padding: 3px 7px; } .side-p .row-t span { display: none; } .ch { height: calc(62px * var(--m)); } .ch.big { height: calc(96px * var(--m)); } .job { height: calc(76px * var(--m)); } .stats-row { grid-template-columns: repeat(4, 1fr); } .stats-row div:first-child { grid-column: 1 / 3; } .badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-height: 460px) { body.touch-ui .hc-lev { display: none; } body.touch-ui .h-clu { left: calc(max(8px, env(safe-area-inset-left, 0px)) + 182px); } }
@media (max-height: 460px) { .logo { max-height: 20vh; } }
@media (max-height: 340px) { .logo { max-height: 17vh; } }
@media (max-height: 340px) { .home, .pause { gap: 4px; padding-top: 6px; padding-bottom: 4px; } .foot, .who .xp { display: none; } .m-list { grid-template-columns: 1fr 1fr 1fr; } .home { width: 370px; } .m-list .btn { min-height: 30px; padding: 3px 6px; font-size: 12px; } .btn.main { padding: 4px 10px; } .chs:not(.three) .ch { height: 34px; } .chs:not(.three) .ch span { display: none; } }
@media (max-width: 720px) { .hc-door { display: none !important; } }

/* v0.3.7 display banner (ui/banner.js): menus only, in the top row. The box is outside every menu layer and has no background,
   border or label. On a page card the header becomes BACK + title + extras on the left and a slot for the banner on the right,
   and the card is anchored to the top so the slot is in the same place on every page and over the main menu and the depot. */
.ad-box { position: fixed; z-index: 45; pointer-events: auto; overflow: hidden; background: none; }
body.top-slot .card.page { width: var(--cardw); margin: 6px auto auto; }
body.top-slot .card.page .p-head { justify-content: flex-start; gap: calc(12px * var(--m)); min-height: var(--banh); padding-right: calc(var(--banw) + 16px); align-items: center; }
body.top-slot .card.page .p-right { display: contents; }
body.top-slot .card.page .p-head #mBack { order: -1; }
body.top-slot .card.page .p-head h2 { white-space: nowrap; }

/* v0.3.7 report and stop cards: one row of equal buttons, one red (the way on); a rewarded offer is dark like MENU with the
   video camera mark and pulses three times, then stays still */
.r-btns.eq { justify-content: stretch; } .r-btns.eq .btn { flex: 1 1 0; min-width: 0; } .r-btns.eq #rNext { min-width: 0; }
.r-btns.eq .btn small { font-size: max(calc(12px * var(--m)), 12px); }
.btn > span .vcam { margin-right: .7em; } .btn > span { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn.offer { animation: offerPulse 1.2s ease-in-out 3; }
@keyframes offerPulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 3px 10px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 0 18px 4px rgba(63,208,255,.75); } }
.btn:disabled { opacity: .6; cursor: default; }
.brk { width: min(calc(520px * var(--m)), calc(100vw - 32px)); }
.brk .b-sub { margin: calc(2px * var(--m)) 0 calc(8px * var(--m)); font-size: max(calc(18px * var(--m)), 14px); font-weight: 800; }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6px * var(--m)); }
.b-grid div { padding: calc(6px * var(--m)) calc(9px * var(--m)); background: rgba(255,255,255,.07); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.b-grid span { font-size: 12px; opacity: .7; } .b-grid b { font-size: max(calc(16px * var(--m)), 13px); } .b-grid b.good { color: #6fe39a; } .b-grid b.info { color: #9fc8ff; } .b-grid b.bad { color: #ff9a86; }
.b-next { margin: calc(8px * var(--m)) 0 calc(10px * var(--m)); font-size: max(calc(15px * var(--m)), 13px); opacity: .85; min-height: 1em; }
.d-cash { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: max(calc(14px * var(--m)), 12px); }
.d-cash .btn { padding-top: calc(5px * var(--m)); padding-bottom: calc(5px * var(--m)); }
.p-foot { align-items: center; gap: calc(12px * var(--m)); } .f-note { font-size: max(calc(14px * var(--m)), 12px); opacity: .85; }
.seg button.try { color: #cfe6ff; } .seg button.try .vcam { width: .85em; height: .62em; margin-right: .8em; }
/* v0.3.7 audit fixes: 12 px floor for HUD labels on touch screens; rows in a scrolling list never squashed into each other
   (a height-limited grid or flex list shrinks rows with min-height 0); depot list + info scroll as one on short frames */
body.touch-ui .hc-sig span, body.touch-ui .hc-door span, body.touch-ui .lv span { font-size: 12px; }
.scroll > * { flex-shrink: 0; } .side-p .rows { grid-auto-rows: max-content; } .rows.two, .jobs, .badges { grid-auto-rows: max-content; }
.d-body { display: flex; flex-direction: column; gap: calc(6px * var(--m)); }
.d-body .d-info { margin-top: auto; }
.f-body { display: flex; flex-direction: column; } .cols.scroll { align-content: start; }
@media (max-width: 960px) and (min-height: 461px) { .h-keys { bottom: 104px; } #toasts { bottom: 150px; } }

/* v0.3.8 rewarded offers in one look (owner 14.11: "reward ads daha gorunur olmali"): dark green with a green rim, the video
   camera in white, the reward in gold, three green pulses, the same size and font as the buttons next to them */
.btn.offer, .btn.offer-row { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 50%) padding-box, linear-gradient(180deg, #187a44, #0d5130 58%, #083a21) padding-box, linear-gradient(180deg, #8dffbc, #24b55c) border-box; text-shadow: 0 1px 0 #03230f; }
.btn.offer b, .btn.offer-row b { color: #ffd87a; margin-left: .35em; }
.btn.offer, .btn.offer-row.offer { animation: offerPulseG 1.2s ease-in-out 3; }
@keyframes offerPulseG { 0%, 100% { box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 3px 10px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 0 18px 4px rgba(60,230,130,.7); } }
/* the main menu's FREE CASH row: right under the main button; while its 3 minutes run it stays dimmed with the time left */
.btn.offer-row { flex-direction: row; gap: calc(10px * var(--m)); min-height: calc(46px * var(--m)); flex: none; }
.btn.offer-row small { font-size: max(calc(14px * var(--m)), 12px); opacity: .9; }
.btn.offer-row.wait { filter: saturate(.35) brightness(.78); cursor: default; }
.btn.blocked { filter: saturate(.3) brightness(.72); cursor: default; pointer-events: none; animation: none; }      /* v0.3.13: a rewarded offer an ad blocker stops, with its notice */
@media (hover: hover) { .btn.offer-row.wait:hover { filter: saturate(.35) brightness(.78); box-shadow: 0 0 0 1px rgba(2,10,36,.9), 0 3px 10px rgba(0,0,0,.4); } }
@media (max-height: 340px) { .btn.offer-row { min-height: 0; padding-top: 4px; padding-bottom: 4px; } }
/* v0.3.8 the studio's community: four small round icons in the bottom-right corner of the main menu (CrazyGames only) */
.comm { position: absolute; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; pointer-events: auto; z-index: 3; }
.comm a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(2,10,36,.72); border: 1px solid rgba(181,194,211,.5); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: background .12s, transform .1s; }
.comm svg { width: 56%; height: 56%; fill: currentColor; display: block; }
body.touch-ui .comm a { width: 40px; height: 40px; }
@media (hover: hover) { .comm a:hover { background: rgba(26,95,214,.92); } } .comm a:active { transform: scale(.94); }
/* v0.3.9 tutorial (CrazyGames 18.11: "Which one does this refer to?", "Which one is the orange line?", "When does the tutorial end?"):
   the step number on every lesson line, the words that name a mark on the strip drawn like the strip (dark, in the mark's colour),
   a bouncing arrow and a pulsing ring on the mark itself, and a green line when the tutorial is over */
.h-strip .l-n { display: inline-block; margin-right: 9px; padding: 1px 8px; border-radius: 10px; background: #14233b; color: #ffd24a; font-size: .82em; font-weight: 900; vertical-align: 1px; letter-spacing: .02em; }
.h-strip .l-chip { display: inline-block; padding: 0 6px; border-radius: 4px; background: #14233b; line-height: 1.35; }
.h-strip .l-blue { color: #8fcaff; } .h-strip .l-orange { color: #ffb31f; } .h-strip .l-white { color: #fff; }
.h-strip.done { background: rgba(31,122,60,.96); color: #fff; }
.h-point { position: absolute; left: 0; top: 0; z-index: 8; width: 0; height: 0; pointer-events: none; transition: transform .12s linear; }
.h-point i { position: absolute; left: -10px; top: -24px; width: 20px; height: 24px; animation: hpBob .7s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.h-point svg { display: block; width: 100%; height: 100%; } .h-point path { fill: #fff; stroke: #14233b; stroke-width: 2; stroke-linejoin: round; }
@keyframes hpBob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(0); } }
.h-ring { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; border: 2px solid #fff; border-radius: 7px; box-shadow: 0 0 0 2px rgba(20,35,59,.85), 0 0 14px 3px rgba(255,210,74,.7); animation: hrPulse 1s ease-in-out infinite; transition: transform .12s linear, width .12s linear, height .12s linear; }
@keyframes hrPulse { 50% { box-shadow: 0 0 0 2px rgba(20,35,59,.85), 0 0 4px 1px rgba(255,210,74,.35); } }
@media (max-width: 1100px) and (min-height: 461px) { .h-strip { font-size: 14px; padding: 6px 11px; } }
@media (max-height: 460px) { .h-point i { left: -8px; top: -19px; width: 16px; height: 19px; } .h-strip .l-n { margin-right: 6px; padding: 0 6px; } }
/* v0.3.9: when the 3D view cannot draw (a lost or broken WebGL context) the menus stand on a picture, never on black */
body.no3d #ui { background: linear-gradient(rgba(2,10,34,.25), rgba(2,10,34,.25)), url(../assets/cards/c1-ru.png) center / cover no-repeat, #06205e; }
