@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url(vendor/fonts/rajdhani-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url(vendor/fonts/rajdhani-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url(vendor/fonts/rajdhani-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url(vendor/fonts/rajdhani-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url(vendor/fonts/rajdhani-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url(vendor/fonts/rajdhani-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Russo One'; font-display: swap; src: url(vendor/fonts/russo-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Russo One'; font-display: swap; src: url(vendor/fonts/russo-one-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Russo One'; font-display: swap; src: url(vendor/fonts/russo-one-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #070a16; --bg2: #0d1326;
  --panel: rgba(12, 17, 34, 0.78); --panel2: rgba(22, 30, 56, 0.9); --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1); --line2: rgba(255, 255, 255, 0.18);
  --text: #f2f5fb; --muted: #93a0bd;
  --blue: #1f8bff; --blue2: #6cc0ff; --orange: #ff7a1a; --orange2: #ffb070;
  --gold: #ffd23f; --lime: #3dff9a; --pink: #ff3df0; --red: #ff4a5a; --cyan: #39c6ff;
  --hot: linear-gradient(135deg, #ff9a2a 0%, #ff5a1a 55%, #ff2d6a 100%);
  --cool: linear-gradient(135deg, #39c6ff 0%, #1f8bff 55%, #5a4bff 100%);
  --r: 14px;
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
  --gt: max(12px, env(safe-area-inset-top)); --gb: max(12px, env(safe-area-inset-bottom));
  --disp: 'Russo One', 'Rajdhani', system-ui, "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
  --body: 'Rajdhani', system-ui, "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 600; font-size: 16px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#app { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#app > * { pointer-events: auto; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .12em; font-family: var(--disp); font-style: italic; letter-spacing: .02em; line-height: 1; }
.logo .l1 { color: #fff; text-shadow: 0 0 24px rgba(57, 198, 255, .45); }
.logo .l2 { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255, 110, 40, .5)); }

/* ---------- yükleme ---------- */
#loading { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: radial-gradient(ellipse at 50% 55%, #16244a 0%, #070a16 70%); transition: opacity .5s; }
#loading .logo { font-size: clamp(46px, 9vw, 96px); animation: logoIn .9s cubic-bezier(.2, .9, .3, 1.3) both; }
#loading.hide { opacity: 0; pointer-events: none; }
#loading .bar { width: min(360px, 70vw); height: 5px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
#loading .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange)); transition: width .25s; box-shadow: 0 0 12px var(--cyan); }
#loadmsg { color: var(--muted); font-size: 15px; letter-spacing: .1em; }
@keyframes logoIn { from { transform: scale(.6) skewX(-8deg); opacity: 0; } }

#rotate { display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); place-content: center; justify-items: center; gap: 10px; text-align: center; }
#rotate .phone { width: 46px; height: 76px; border: 3px solid var(--text); border-radius: 9px; animation: rot 2s ease-in-out infinite; margin-bottom: 14px; }
#rotate b { font-size: 22px; } #rotate span { color: var(--muted); }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: grid; } }

/* ---------- butonlar ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 12px; font-family: var(--disp); font-size: 16px; letter-spacing: .04em; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--line2); transition: transform .12s, filter .12s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: scale(.96); }
.btn.hot { background: var(--hot); border-color: transparent; box-shadow: 0 6px 24px rgba(255, 90, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.btn.cool { background: var(--cool); border-color: transparent; box-shadow: 0 6px 24px rgba(31, 139, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-size: 13px; }

/* ---------- ana menü ---------- */
.home { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: var(--gt) var(--gr) var(--gb) var(--gl); pointer-events: none; }
.home > * { pointer-events: auto; }
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .logo { font-size: 30px; margin-right: auto; }
.topbar .logo small { font-family: var(--body); font-style: normal; font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-left: 8px; align-self: center; }
.pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pill .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.pill.coins .ic { background: radial-gradient(circle at 35% 35%, #fff3a0, #ffc21a 60%, #c07a00); color: #6a3d00; font-family: var(--disp); font-size: 13px; }
.pill b { font-family: var(--disp); font-size: 15px; letter-spacing: .03em; }
.lvl { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 4px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.lvl .badge { width: 34px; height: 34px; border-radius: 50%; background: var(--cool); display: grid; place-items: center; font-family: var(--disp); font-size: 15px; box-shadow: 0 0 14px rgba(31, 139, 255, .5); }
.lvl .xp { display: grid; gap: 3px; min-width: 110px; }
.lvl .xp span { font-size: 13px; line-height: 1; } .lvl .xp small { font-size: 11px; color: var(--muted); line-height: 1; }
.lvl .xp i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lvl .xp i u { display: block; height: 100%; background: var(--cool); }
.iconBtn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); transition: transform .12s, background .15s; }
.iconBtn:hover { background: var(--panel2); } .iconBtn:active { transform: scale(.94); }
.iconBtn svg { width: 22px; height: 22px; }

.homeMain { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; align-items: center; gap: 20px; min-height: 0; }
.playCol { display: grid; gap: 12px; align-content: center; animation: slideIn .5s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes slideIn { from { transform: translateX(-40px); opacity: 0; } }
.bigPlay { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 18px 22px; border-radius: 20px; background: var(--hot); box-shadow: 0 14px 40px rgba(255, 90, 30, .4), inset 0 2px 0 rgba(255, 255, 255, .35); overflow: hidden; text-align: left; transition: transform .15s; }
.bigPlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bigPlay:hover { transform: translateY(-2px) scale(1.01); } .bigPlay:active { transform: scale(.98); }
.bigPlay b { display: block; font-family: var(--disp); font-size: 44px; font-style: italic; line-height: .95; letter-spacing: .02em; text-shadow: 0 3px 10px rgba(120, 20, 0, .45); }
.bigPlay small { display: block; font-size: 15px; letter-spacing: .08em; opacity: .95; margin-top: 4px; }
.bigPlay .arrow { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 26px; }
.modeGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: left; backdrop-filter: blur(10px); transition: transform .15s, border-color .15s, background .15s; overflow: hidden; }
.tile:hover { transform: translateY(-2px); border-color: var(--line2); background: var(--panel2); }
.tile:active { transform: scale(.97); }
.tile .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tc, var(--cool)); box-shadow: 0 4px 14px color-mix(in srgb, var(--tcs, #1f8bff) 45%, transparent); }
.tile .ti svg { width: 22px; height: 22px; }
.tile b { display: block; font-family: var(--disp); font-size: 15px; letter-spacing: .02em; line-height: 1.1; }
.tile small { display: block; color: var(--muted); font-size: 12px; line-height: 1.15; margin-top: 2px; }
.tile .lock { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; background: rgba(5, 8, 18, .78); font-size: 13px; color: var(--muted); gap: 4px; backdrop-filter: blur(2px); }
.tile .lock svg { width: 20px; height: 20px; }
.tile.wide { grid-column: span 2; }
.tile .tag { position: absolute; top: 6px; right: 6px; font-size: 10px; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #3a2a00; font-weight: 700; }
.tile:has(> .tag) > span:nth-child(2) { padding-right: 40px; }   /* başlık etiketin altında kalmasın */
.friends { display: flex; gap: 10px; }
.friends .btn { flex: 1; }
.sideNav { display: grid; gap: 10px; justify-self: end; align-self: center; animation: slideInR .5s .1s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes slideInR { from { transform: translateX(40px); opacity: 0; } }
.navBtn { display: grid; justify-items: center; gap: 3px; width: 78px; padding: 10px 4px 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .15s, background .15s; position: relative; }
.navBtn:hover { background: var(--panel2); transform: translateX(-3px); }
.navBtn svg { width: 26px; height: 26px; }
.navBtn span { font-size: 12px; letter-spacing: .04em; }
.navBtn .dot { position: absolute; top: 7px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.homeFoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.carName { text-align: center; justify-self: center; }
.carName b { font-family: var(--disp); font-size: 22px; color: #fff; letter-spacing: .04em; }
.carName small { display: block; letter-spacing: .2em; font-size: 11px; }

/* ---------- panel (mod seçimi, garaj vb.) ---------- */
.sheet { position: fixed; top: 0; bottom: 0; left: 0; width: min(460px, 92vw); padding: var(--gt) 20px var(--gb) var(--gl); background: linear-gradient(90deg, rgba(8, 12, 26, .96) 70%, rgba(8, 12, 26, .0)); display: grid; grid-template-rows: auto 1fr auto; gap: 14px; animation: slideIn .35s cubic-bezier(.2, .9, .3, 1) both; z-index: 8; }
.sheet .sHead { display: flex; align-items: center; gap: 12px; }
.sheet .sHead b { font-family: var(--disp); font-size: 26px; font-style: italic; letter-spacing: .02em; }
.sheet .sBody { overflow-y: auto; display: grid; gap: 16px; align-content: start; padding-right: 6px; scrollbar-width: thin; }
.sheet .sFoot { display: flex; gap: 10px; }
.sheet .sFoot .btn { flex: 1; min-height: 54px; font-size: 20px; }
.back { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); font-size: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.seg { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { flex: 1; min-height: 40px; min-width: 60px; padding: 0 10px; border-radius: 10px; font-family: var(--disp); font-size: 15px; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--cool); color: #fff; box-shadow: 0 4px 14px rgba(31, 139, 255, .35); }
.seg button[disabled] { opacity: .35; }
.arenaPick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.arenaPick button { position: relative; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; text-align: left; padding: 8px; display: flex; align-items: flex-end; font-size: 13px; text-shadow: 0 1px 4px #000; background: var(--sw); }
.arenaPick button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(57, 198, 255, .4); }
.note { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* ---------- pencere ---------- */
.modalBack { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 12, .62); backdrop-filter: blur(6px); animation: fade .18s both; }
.modalBack.out { animation: fadeOut .18s both; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; background: linear-gradient(180deg, #141c36, #0c1224); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; animation: pop .25s cubic-bezier(.2, .9, .3, 1.3) both; }
.modal.wide { width: min(820px, 100%); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.mHead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.mHead b { font-family: var(--disp); font-size: 22px; font-style: italic; letter-spacing: .03em; }
.mHead .x { width: 34px; height: 34px; border-radius: 10px; background: var(--glass); font-size: 15px; }
.mBody { padding: 8px 18px 14px; overflow-y: auto; display: grid; gap: 12px; }
.mBtns { display: flex; gap: 10px; padding: 12px 18px 18px; justify-content: flex-end; flex-wrap: wrap; }
.mBtns .btn { min-width: 120px; }
.row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.row > span small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.row .val { min-width: 38px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.row select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; grid-column: span 2; }
.row input[type=range] { width: min(180px, 36vw); accent-color: var(--cyan); }
.row.tog { cursor: pointer; } .row.tog input { display: none; }
.row.tog .sw { grid-column: span 2; justify-self: end; width: 46px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .15); position: relative; transition: background .2s; }
.row.tog .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.row.tog input:checked + .sw { background: var(--blue); } .row.tog input:checked + .sw::after { transform: translateX(20px); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tabs button.on { background: var(--glass); color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); }
.keys { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }

/* ---------- bildirim ---------- */
#toasts { position: fixed; top: calc(var(--gt) + 56px); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: pop .25s both; max-width: 90vw; text-align: center; }
.toast.ok { border-color: var(--lime); } .toast.error { border-color: var(--red); } .toast.gold { border-color: var(--gold); }
.toast.out { animation: fadeOut .4s both; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 6; pointer-events: none; font-variant-numeric: tabular-nums; }
#hud button { pointer-events: auto; }
.hScore { position: absolute; top: var(--gt); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); pointer-events: auto; cursor: pointer; }
.hTeam { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; }
.hTeam.t0 { background: linear-gradient(90deg, rgba(10, 40, 100, .75), var(--blue)); border-radius: 14px 0 0 14px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
.hTeam.t1 { background: linear-gradient(270deg, rgba(110, 40, 0, .75), var(--orange)); border-radius: 0 14px 14px 0; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.hTeam .tn { font-size: 11px; letter-spacing: .2em; opacity: .85; }
.hTeam .sc { font-family: var(--disp); font-size: 34px; min-width: 30px; text-align: center; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.sc.pop { animation: scPop .6s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes scPop { 40% { transform: scale(1.6); } }
.hMid { display: grid; place-items: center; min-width: 96px; padding: 0 12px; background: rgba(8, 12, 26, .88); position: relative; }
.hMid .tm { font-family: var(--disp); font-size: 26px; letter-spacing: .02em; }
.hMid .tm.low { color: var(--gold); } .hMid .tm.zero { color: var(--red); animation: blink .6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hMid .ot { position: absolute; bottom: -18px; font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold); opacity: 0; }
.hMid .ot.on { opacity: 1; }
.hBoost { position: absolute; right: calc(var(--gr) + 6px); bottom: calc(var(--gb) + 6px); width: 128px; height: 128px; display: grid; place-items: center; }
.bArc { position: absolute; inset: 0; }
.bArc svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bArc circle { fill: none; stroke-width: 10; }
.bArc .bg { stroke: rgba(0, 0, 0, .45); }
.bArc .fg { stroke: url(#none); stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .12s; filter: drop-shadow(0 0 6px rgba(255, 190, 40, .7)); }
.hBoost.full .fg { stroke: #fff4a8; } .hBoost.on .fg { stroke: #ff9a2a; }
.bIn { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(30, 36, 60, .92), rgba(8, 10, 20, .92)); line-height: 1; }
.bIn b { font-family: var(--disp); font-size: 34px; }
.bIn small { font-size: 10px; letter-spacing: .25em; color: var(--muted); margin-top: -14px; }
.hBoost.on .bIn b { color: #ffb14a; }
.hArrow { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .15s; }
.hArrow.on { opacity: 1; }
.hArrow i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 14px rgba(57, 198, 255, .9); }
.hArrow i::after { content: ''; position: absolute; left: 30px; top: 8px; border: 8px solid transparent; border-left: 12px solid #fff; }
.hTag { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 3px; font-size: 13px; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; }
.hTag .bb { display: block; width: 44px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.hTag .bb i { display: block; height: 100%; background: var(--gold); }
.hTag.t0 span { color: var(--blue2); } .hTag.t1 span { color: var(--orange2); }
.hTopR { position: absolute; top: var(--gt); right: var(--gr); display: flex; gap: 8px; }
.hPing { align-self: center; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(8, 12, 26, .7); letter-spacing: .05em; }
.hPing.good { color: var(--lime); } .hPing.mid { color: var(--gold); } .hPing.bad { color: var(--red); }
.hBtn { width: 44px; height: 40px; border-radius: 10px; background: rgba(8, 12, 26, .7); font-size: 13px; letter-spacing: -2px; border: 1px solid var(--line); }
.hFeed { position: absolute; top: calc(var(--gt) + 52px); right: var(--gr); display: grid; gap: 6px; justify-items: end; }
.fi { padding: 6px 12px; border-radius: 10px; background: rgba(8, 12, 26, .75); font-size: 14px; animation: slideInR .3s both; }
.fi.out { animation: fadeOut .4s both; }
b.t0 { color: var(--blue2); } b.t1 { color: var(--orange2); }
.hNote { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; }
.nt { font-family: var(--disp); font-size: 26px; font-style: italic; padding: 6px 20px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(8, 12, 26, .8), transparent); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: ntIn .45s cubic-bezier(.2, .9, .3, 1.5) both; }
.nt.save { color: var(--cyan); } .nt.warn { color: var(--gold); font-size: 20px; }
.nt.out { animation: fadeOut .4s both; }
@keyframes ntIn { from { transform: scale(.4); opacity: 0; } }
.hCenter { position: absolute; inset: 0; display: grid; place-items: center; }
.count { font-family: var(--disp); font-size: min(26vh, 200px); font-style: italic; color: #fff; -webkit-text-stroke: 3px rgba(8, 16, 40, .55); paint-order: stroke fill; text-shadow: 0 0 6px rgba(6, 12, 32, .75), 0 0 40px rgba(57, 198, 255, .8), 0 8px 30px rgba(0, 0, 0, .5); animation: countIn .9s cubic-bezier(.2, .9, .3, 1.3) both; }
.count.go { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 30px rgba(255, 110, 40, .7)); animation: goIn .7s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes countIn { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
@keyframes goIn { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.big { font-family: var(--disp); font-size: min(16vh, 120px); font-style: italic; text-shadow: 0 0 40px rgba(255, 255, 255, .4), 0 8px 30px rgba(0, 0, 0, .6); animation: countIn 2.2s both; }
.big.win { color: var(--gold); } .big.lose { color: #c9d3ea; } .big.ot { color: var(--gold); }
.hBanner { position: absolute; left: 0; right: 0; top: 30%; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.hBanner.show { animation: banner 2.6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes banner { 0% { opacity: 0; transform: scaleX(.2); } 12% { opacity: 1; transform: scaleX(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.gb { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 14px 0 16px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tc) 75%, transparent) 25%, color-mix(in srgb, var(--tc) 85%, transparent) 50%, color-mix(in srgb, var(--tc) 75%, transparent) 75%, transparent); }
.gb .gt { font-family: var(--disp); font-size: min(15vh, 110px); font-style: italic; line-height: 1; letter-spacing: .04em; text-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.gb .gs { font-size: 22px; letter-spacing: .06em; } .gb .gk { font-size: 15px; opacity: .9; letter-spacing: .12em; }
.hCam { position: absolute; bottom: calc(var(--gb) + 8px); left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: .15em; padding: 5px 12px; border-radius: 99px; background: rgba(8, 12, 26, .7); opacity: 0; }
.hCam.show { animation: fadeOut 1.8s .6s both; opacity: 1; }
.hChat { position: absolute; left: var(--gl); bottom: 40%; display: grid; gap: 4px; }
.cm { padding: 5px 10px; border-radius: 8px; background: rgba(8, 12, 26, .7); font-size: 14px; animation: slideIn .25s both; }
.cm.out { animation: fadeOut .4s both; }
.hReplay { position: absolute; top: calc(var(--gt) + 64px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; border-radius: 12px; background: rgba(8, 12, 26, .8); pointer-events: auto; }
.hReplay b { color: var(--red); letter-spacing: .2em; font-size: 14px; animation: blink 1s infinite; }
#hud.replaying .hBoost, #hud.replaying .hArrow { opacity: 0; }
#hud.replaying::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 4px rgba(255, 74, 90, .5); pointer-events: none; }
#hud.touch .hBoost { display: none; }
#hud.touch .hTopR { right: calc(50% + 150px); left: auto; right: auto; left: var(--gl); }

/* skor tablosu */
.sTables { display: grid; gap: 12px; }
.sTable { width: 100%; border-collapse: collapse; font-size: 14px; }
.sTable th { text-align: right; font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 6px 8px; }
.sTable th:first-child { text-align: left; font-family: var(--disp); font-size: 14px; letter-spacing: .06em; }
.sTable.t0 th:first-child { color: var(--blue2); } .sTable.t1 th:first-child { color: var(--orange2); }
.sTable td { text-align: right; padding: 7px 8px; border-top: 1px solid var(--line); }
.sTable td:first-child { text-align: left; }
.sTable tr.me td { background: rgba(255, 255, 255, .06); }

/* ---------- dokunmatik ---------- */
#touch { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
#touch .tStickZone { position: absolute; left: 0; top: 18%; bottom: 0; width: 50%; pointer-events: auto; touch-action: none; }
#touch.lefty .tStickZone { left: auto; right: 0; }
#touch .tStick { position: absolute; width: calc(124px * var(--ts)); height: calc(124px * var(--ts)); margin: calc(-62px * var(--ts)) 0 0 calc(-62px * var(--ts)); border-radius: 50%; border: 2px solid rgba(255, 255, 255, calc(var(--ta) * .6)); background: rgba(255, 255, 255, calc(var(--ta) * .12)); pointer-events: none; }
#touch .tStick i { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; background: rgba(255, 255, 255, calc(var(--ta) + .2)); box-shadow: 0 0 20px rgba(57, 198, 255, .6); }
#touch .tBtn { position: absolute; width: calc(min(96px, 24vh) * var(--bs, 1)); height: calc(min(96px, 24vh) * var(--bs, 1)); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: auto; touch-action: none; display: grid; place-items: center; font-family: var(--disp); font-size: calc(14px * var(--bs, 1)); letter-spacing: .04em; color: #fff; opacity: calc(var(--ta) + .3); border: 2px solid rgba(255, 255, 255, .35); background: rgba(10, 16, 34, .45); backdrop-filter: blur(3px); transition: transform .06s; }
#touch .tBtn.on { transform: translate(-50%, -50%) scale(.9); opacity: 1; }
#touch .tJump { background: radial-gradient(circle at 40% 35%, rgba(90, 170, 255, .75), rgba(20, 70, 180, .6)); border-color: rgba(140, 200, 255, .7); }
#touch .tJump.hint { animation: hint .5s ease-in-out infinite alternate; }
@keyframes hint { to { box-shadow: 0 0 0 10px rgba(57, 198, 255, .35), 0 0 30px rgba(57, 198, 255, .9); } }
#touch .tBoost { background: radial-gradient(circle at 40% 35%, rgba(255, 170, 60, .8), rgba(200, 70, 10, .6)); border-color: rgba(255, 190, 110, .7); }
#touch .tBoost svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
#touch .tBoost circle { fill: none; stroke: var(--gold); stroke-width: 5; stroke-dasharray: 289; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--gold)); transition: stroke-dashoffset .1s; }
#touch .tDrift, #touch .tRoll { font-size: calc(11px * var(--bs, 1)); }
#touch .tCam { position: absolute; left: 30%; right: 30%; top: 0; height: 18%; pointer-events: auto; }

/* ---------- sonuç ekranı ---------- */
body:has(.results) #hud, body:has(.results) #touch { display: none; }
.results { position: fixed; inset: 0; z-index: 20; display: grid; place-items: start center; padding: var(--gt) var(--gr) var(--gb) var(--gl); background: radial-gradient(ellipse at 50% 30%, rgba(20, 30, 70, .82), rgba(5, 7, 16, .95)); animation: fade .4s both; overflow-y: auto; }
.resBox { width: min(900px, 100%); display: grid; gap: 16px; margin: auto 0; }   /* sığınca ortada, taşınca üstten */
.resHead { display: grid; justify-items: center; gap: 4px; }
.resHead .rt { font-family: var(--disp); font-size: clamp(40px, 9vh, 80px); font-style: italic; line-height: 1; animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.resHead .rt.win { background: linear-gradient(180deg, #fff6c0, var(--gold) 60%, #ff9a2a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(255, 200, 60, .5)); }
.resHead .rt.lose { color: #b9c4dd; }
.resHead .rs { font-family: var(--disp); font-size: 28px; }
.resHead .rs .s0 { color: var(--blue2); } .resHead .rs .s1 { color: var(--orange2); }
.resGrid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.mvp { padding: 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 210, 63, .22), rgba(255, 122, 26, .12) 60%, rgba(10, 14, 30, .6)); border: 1px solid rgba(255, 210, 63, .45); display: grid; gap: 6px; justify-items: center; text-align: center; animation: pop .5s .2s both; }
.mvp .star { font-size: 38px; filter: drop-shadow(0 0 12px var(--gold)); }
.mvp small { letter-spacing: .25em; color: var(--gold); font-size: 12px; }
.mvp b { font-family: var(--disp); font-size: 22px; }
.mvp .ms { display: flex; gap: 12px; color: var(--muted); font-size: 13px; }
.rewards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reward { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); font-family: var(--disp); animation: pop .4s both; }
.reward.xp { color: var(--cyan); } .reward.coin { color: var(--gold); } .reward.rank { color: var(--lime); } .reward.rank.neg { color: var(--red); } .reward.lvl { color: #fff; background: var(--cool); }
.xpbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--cool); transition: width 1.2s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 0 10px var(--cyan); }
.resBtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 2; padding: 12px 0 4px; background: linear-gradient(rgba(5, 7, 16, 0), rgba(5, 7, 16, .9) 35%); }   /* küçük ekranda "Tekrar oyna" hep görünür */
.resBtns .btn { min-width: 150px; min-height: 50px; }

/* ---------- garaj ---------- */
.garage { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; padding: var(--gt) var(--gr) var(--gb) var(--gl); gap: 16px; pointer-events: none; }
.garage > * { pointer-events: auto; }
.gPanel { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 0; padding: 14px; border-radius: 20px; background: rgba(8, 12, 26, .82); border: 1px solid var(--line); backdrop-filter: blur(10px); animation: slideIn .35s both; }
.gItems { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; overflow-y: auto; align-content: start; scrollbar-width: thin; padding: 2px; }
.gItem { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 2px solid transparent; font-size: 12px; text-align: center; transition: transform .12s, border-color .12s; }
.gItem:hover { transform: translateY(-2px); }
.gItem.on { border-color: var(--cyan); background: rgba(57, 198, 255, .1); }
.gItem.eq::before { content: '✓'; position: absolute; top: 4px; right: 6px; color: var(--lime); font-size: 14px; }
.gItem .sw { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--swc, rgba(255, 255, 255, .1)); }
.gItem.locked { opacity: .55; }
.gItem .lk { font-size: 10px; color: var(--gold); }
.gInfo { display: grid; gap: 4px; }
.gInfo b { font-family: var(--disp); font-size: 24px; }
.gInfo small { color: var(--muted); }
.gTitle { font-family: var(--disp); font-size: 26px; font-style: italic; }
.gItem .gl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gItems.wide { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
.gItems.wide .gItem { padding: 6px 6px 8px; }
/* 3D küçük resim (garaj, mağaza): yüklenirken hafif nabız */
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 240 / 150; border-radius: 10px; background: radial-gradient(ellipse at 50% 72%, rgba(57, 198, 255, .18), rgba(255, 255, 255, .03) 70%); }
.thumb:not(.ok) { animation: thumbPulse 1.1s ease-in-out infinite; }
@keyframes thumbPulse { 50% { opacity: .5; } }
.shopGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.shopCard { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.shopCard .shopThumb, .shopIco { width: 100%; aspect-ratio: 240 / 150; border-radius: 12px; }
.shopIco { display: grid; place-items: center; font-size: 46px; background: radial-gradient(ellipse at 50% 60%, rgba(155, 107, 255, .22), rgba(255, 255, 255, .03) 70%); }
.shopInfo b { display: block; font-family: var(--disp); font-size: 16px; } .shopInfo small { color: var(--muted); font-size: 12px; }
.shopBtns { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.shopBtns .btn.hot { min-width: 92px; }
.passTrack { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.passCol { display: grid; gap: 4px; justify-items: center; } .passCol > small { color: var(--muted); }
.passCell { display: grid; gap: 4px; justify-items: center; min-width: 78px; padding: 8px 6px; border-radius: 10px; text-align: center; font-size: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.passCell .pi { font-size: 18px; } .passCell.prem { border-color: rgba(255, 210, 63, .4); opacity: .6; }
.passCell.got { background: rgba(61, 255, 154, .12); } .passCell.ready { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 210, 63, .25); }
.passCell .btn.small { min-height: 26px; padding: 0 10px; font-size: 12px; }
.dayRow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dayCell { position: relative; display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; text-align: center; }
.dayCell small { color: var(--muted); font-size: 10px; } .dayCell b { font-family: var(--disp); font-size: 13px; }
.dayCell.past { opacity: .55; } .dayCell.past i { position: absolute; top: 2px; right: 5px; color: var(--lime); font-style: normal; }
.dayCell.now { border-color: var(--gold); background: linear-gradient(160deg, rgba(255, 210, 63, .25), rgba(255, 122, 26, .12)); box-shadow: 0 0 16px rgba(255, 210, 63, .3); animation: pop .5s both; }

/* ---------- eşleşme ---------- */
.mm { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(4, 6, 14, .7); backdrop-filter: blur(6px); animation: fade .3s both; }
.mmBox { display: grid; justify-items: center; gap: 14px; text-align: center; }
.mmRings { position: relative; width: 140px; height: 140px; }
.mmRings i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--cyan); animation: ring 1.8s ease-out infinite; opacity: 0; }
.mmRings i:nth-child(2) { animation-delay: .6s; border-color: var(--orange); } .mmRings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.mmRings b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--disp); font-size: 30px; }

/* ---------- antrenman ---------- */
.drills { display: grid; gap: 8px; }
.drill { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.drill .di { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cool); font-size: 20px; }
.drill b { font-family: var(--disp); font-size: 16px; } .drill small { display: block; color: var(--muted); font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.stars .off { color: rgba(255, 255, 255, .2); }
.tutBox { position: fixed; top: calc(var(--gt) + 60px); left: 50%; transform: translateX(-50%); z-index: 9; display: grid; justify-items: center; gap: 6px; padding: 12px 22px; border-radius: 16px; background: rgba(8, 12, 26, .85); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); text-align: center; pointer-events: auto; }
.tutBox small { letter-spacing: .25em; font-size: 11px; color: var(--cyan); }
.tutBox b { font-family: var(--disp); font-size: 24px; font-style: italic; }
.tutBox .prog { display: flex; gap: 6px; }
.tutBox .prog i { width: 24px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.tutBox .prog i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tutBox button { font-size: 12px; color: var(--muted); text-decoration: underline; }

@media (max-height: 520px) {
  .topbar .logo { font-size: 22px; } .topbar .logo small { display: none; }
  .bigPlay { padding: 12px 16px; } .bigPlay b { font-size: 32px; } .bigPlay .arrow { width: 42px; height: 42px; }
  .tile { padding: 8px; } .tile .ti { width: 32px; height: 32px; } .tile small { display: none; }
  .navBtn { width: 64px; padding: 7px 2px; } .navBtn svg { width: 22px; height: 22px; }
  .hTeam { height: 42px; } .hTeam .sc { font-size: 28px; } .hMid .tm { font-size: 22px; }
  .hBoost { width: 100px; height: 100px; } .bIn { width: 72px; height: 72px; } .bIn b { font-size: 26px; }
  .count { font-size: 30vh; }
  .homeMain { grid-template-columns: minmax(260px, 340px) 1fr; }
  .resGrid { grid-template-columns: 200px 1fr; }
  .homeMain > * { min-height: 0; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
  .playCol { gap: 8px; } .modeGrid { gap: 8px; }
  .sideNav { grid-template-columns: repeat(2, auto); gap: 6px; align-content: center; }
  .navBtn { width: 62px; padding: 6px 2px; gap: 1px; } .navBtn span { font-size: 11px; }
  .tile .lock { grid-auto-flow: column; gap: 6px; }
  .homeFoot { font-size: 12px; } .carName b { font-size: 18px; }
  .resHead .rt { font-size: clamp(30px, 9vh, 56px); } .resBox { gap: 10px; } .mvp { padding: 10px; gap: 4px; } .mvp .star { font-size: 28px; }
  .resGrid .rewards { order: -2; } .resGrid .xpbar { order: -1; }   /* kazanılan XP/coin tablonun üstünde: kaydırmadan görünsün */
  .shopGrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-height: 420px) {
  .home { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .topbar .logo { font-size: 18px; } .lvl, .pill { height: 34px; } .lvl .badge { width: 28px; height: 28px; } .iconBtn { width: 34px; height: 34px; }
  .bigPlay { padding: 8px 14px; border-radius: 16px; } .bigPlay b { font-size: 26px; } .bigPlay small { font-size: 12px; margin-top: 2px; } .bigPlay .arrow { width: 34px; height: 34px; }
  .tile { padding: 6px 8px; gap: 8px; border-radius: 12px; } .tile .ti { width: 28px; height: 28px; border-radius: 9px; } .tile .ti svg { width: 16px; height: 16px; } .tile b { font-size: 13px; }
  .navBtn { width: 56px; padding: 5px 2px; border-radius: 12px; } .navBtn svg { width: 18px; height: 18px; } .navBtn span { font-size: 10px; }
  .carName small { display: none; }
  .mvp .ms { display: none; } .resBtns .btn { min-height: 44px; min-width: 130px; }
  .gPanel { padding: 10px; gap: 8px; } .gInfo b { font-size: 18px; } .gInfo small { display: none; }
  .gTitle { font-size: 20px; } .gPanel .back { width: 34px; height: 34px; } .gPanel > .btn, .gPanel .btn.hot { min-height: 38px; }
  .tabs button { padding: 6px 10px; font-size: 13px; }
  .gItems.wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (max-width: 720px) and (min-height: 521px) {
  .homeMain { grid-template-columns: 1fr; } .sideNav { display: flex; justify-self: center; }
  .garage { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .resGrid { grid-template-columns: 1fr; }
}

/* ---------- davet ---------- */
.invite { display: grid; gap: 12px; }
.icode { display: grid; justify-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 210, 63, .16), rgba(25, 214, 184, .1)); border: 1px solid rgba(255, 210, 63, .4); text-align: center; }
.icode > b { font-family: var(--disp); font-size: 38px; letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 20px rgba(255, 210, 63, .4); }
.icode > small:first-child { letter-spacing: .25em; font-size: 11px; color: var(--muted); }
.icode.locked > b { color: var(--muted); text-shadow: none; }
.ibtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.ilbl { font-size: 12px; letter-spacing: .18em; color: var(--muted); margin-top: 4px; }
.istep { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.istep > i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--disp); background: var(--cool); }
.istep b { display: block; font-size: 15px; } .istep small { display: block; }
.ibar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ibar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #19d6b8); box-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.itiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.itier { position: relative; display: grid; gap: 4px; justify-items: center; padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; font-size: 12px; }
.itier > b { font-family: var(--disp); font-size: 20px; }
.itier.ready { border-color: var(--gold); } .itier.got { border-color: #19d6b8; background: rgba(25, 214, 184, .1); }
.itier > em { position: absolute; top: 4px; right: 8px; font-style: normal; color: #19d6b8; }
.ifriend { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.ifriend.bad { opacity: .7; } .ifriend small.bad { color: var(--red); }
.isteps { display: flex; gap: 4px; } .isteps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .08); }
.isteps i.on { background: #19d6b8; color: #04201b; }
.iinp { padding: 9px 12px; border-radius: 10px; background: #0d1326; border: 1px solid var(--line2); font-size: 18px; letter-spacing: .15em; text-transform: uppercase; width: 170px; }
.iwelcome { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(25, 214, 184, .1); border: 1px solid rgba(25, 214, 184, .4); }
.ifair { line-height: 1.4; }
.navBtn.gift { border-color: rgba(255, 210, 63, .5); box-shadow: 0 0 18px rgba(255, 210, 63, .15); }
/* RTL (ar): menüler aynalanır; oyun içi HUD, logo ve skor düzeni soldan sağa kalır (saha aynalanmıyor) */
[dir=rtl] #hud, [dir=rtl] .logo { direction: ltr; }
[dir=rtl] .lvl .xp small { direction: ltr; text-align: right; }

/* --- mağaza uygulaması: satın alma, engelle/şikâyet, ilk açılış, hesap silme --- */
.btn.danger { background: rgba(255, 74, 90, .16); border-color: rgba(255, 74, 90, .55); color: #ffb3bb; justify-self: start; }
.pAct { margin-inline-start: 6px; min-width: 26px; min-height: 22px; padding: 0 6px; border-radius: 7px; font-size: 14px; line-height: 1; color: var(--muted); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); pointer-events: auto; }
.pAct:hover { color: #fff; }
.packGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.packCard { display: grid; gap: 4px; justify-items: center; padding: 10px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.packCard .packIco { font-size: 18px; letter-spacing: -4px; min-height: 24px; }
.packCard b { font-family: var(--disp); font-size: 18px; } .packCard small { font-size: 12px; min-height: 15px; }
.packCard .bonus { color: var(--lime); font-weight: 700; }
.drill.iapHot { border-color: rgba(255, 210, 63, .5); }
.drill.iapHot.feat { box-shadow: 0 0 18px rgba(255, 210, 63, .28); background: linear-gradient(90deg, rgba(255, 210, 63, .14), var(--panel)); }
.passCell.prem.open { opacity: 1; }
.rankRewards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.modalBack.gateM { z-index: 150; }
.gateM .seg button { flex: 1; }
.gateM a { color: var(--cyan); }
