@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; }

:root {
  --bg: #07080d;
  --panel: rgba(12, 13, 22, 0.82);
  --panel2: rgba(22, 24, 38, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef0f6;
  --muted: #8d93a8;
  --hot: #ff2d55;
  --cyan: #38e1ff;
  --lime: #3dff9a;
  --gold: #ffcc33;
  --violet: #9b6bff;
  --gl: max(14px, env(safe-area-inset-left));
  --gr: max(14px, env(safe-area-inset-right));
  --gt: max(10px, env(safe-area-inset-top));
  --gb: max(10px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: 'Rajdhani', system-ui, "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", sans-serif; font-weight: 600;
  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; }
input, select, textarea { font: inherit; color: inherit; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#app { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#app > * { pointer-events: auto; }

/* ---------- yükleme ---------- */
#loading { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: radial-gradient(ellipse at 50% 60%, #1a1030 0%, #07080d 70%); transition: opacity .5s; }
#loading.hide { opacity: 0; pointer-events: none; }
.lg { font-size: clamp(44px, 9vw, 92px); font-weight: 700; letter-spacing: .06em; font-style: italic; line-height: 1; }
.lg span { color: #fff; } .lg em { color: var(--hot); text-shadow: 0 0 30px rgba(255, 45, 85, .6); }
#loading .bar { width: min(340px, 70vw); height: 4px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
#loading .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--cyan)); transition: width .25s; }
#loadmsg { color: var(--muted); font-size: 15px; letter-spacing: .08em; }

/* ---------- yatay ekran uyarısı ---------- */
#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; } }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 6; pointer-events: none; font-variant-numeric: tabular-nums; }
#hud .hTop { position: absolute; top: var(--gt); left: var(--gl); right: var(--gr); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hMode { display: grid; line-height: 1.05; text-shadow: 0 2px 6px #000; }
.hMode b { font-size: 18px; letter-spacing: .08em; }
.hMode .hSub { color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.hTotal { position: absolute; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; line-height: 1; text-shadow: 0 2px 10px #000; }
.hTotal small { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.hTotal b { font-size: 34px; font-style: italic; }
.hRight { display: flex; align-items: center; gap: 8px; }
.hTime { font-size: 18px; padding: 3px 10px; background: rgba(0, 0, 0, .45); border-radius: 8px; }
.hPause { pointer-events: auto; width: 38px; height: 34px; border-radius: 8px; background: rgba(0, 0, 0, .5); font-size: 13px; letter-spacing: -2px; }
.hProg { position: absolute; top: calc(var(--gt) + 50px); left: 50%; transform: translateX(-50%); width: min(420px, 50vw); height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; }
.hProg i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hot), var(--gold)); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.hProg .tick { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255, 255, 255, .55); border-radius: 1px; }
.hSector { position: absolute; top: calc(var(--gt) + 120px); left: 0; padding: 8px 22px 8px 18px; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); border-left: 4px solid var(--sc, var(--hot)); transform: translateX(-110%); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; }
.hSector.show { transform: none; opacity: 1; }
.hSector small { display: block; font-size: 12px; letter-spacing: 3px; color: var(--sc, var(--hot)); font-weight: 700; }
.hSector b { display: block; font-size: 30px; font-style: italic; letter-spacing: 1px; text-shadow: 0 2px 10px #000; }
.hSector em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.hSector em i { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 5px; border-radius: 5px; text-align: center; font-style: italic; font-weight: 800; color: #111; background: #aaa; }
.hSector em i.gS { background: linear-gradient(135deg, #ffe066, #ff9f1c); box-shadow: 0 0 12px #ffb300; } .hSector em i.gA { background: #3dff9a; } .hSector em i.gB { background: #38e1ff; } .hSector em i.gC { background: #b0b6c0; }
.hProg .ghostMark { position: absolute; top: -4px; width: 4px; height: 12px; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 8px var(--cyan); }
.hChain { position: absolute; top: calc(var(--gt) + 66px); left: 50%; transform: translateX(-50%) scale(.9); display: grid; justify-items: center; gap: 4px; opacity: 0; transition: opacity .2s, transform .2s; }
.hChain.on { opacity: 1; transform: translateX(-50%) scale(1); }
.cVal { display: flex; align-items: baseline; gap: 8px; font-style: italic; }
.cVal .chain { font-size: 44px; color: #fff; text-shadow: 0 0 18px rgba(255, 45, 85, .7), 0 3px 8px #000; }
.cVal .combo { font-size: 26px; color: var(--gold); text-shadow: 0 0 12px rgba(255, 204, 51, .6); }
.combo.pop { animation: pop .3s; }
@keyframes pop { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
.cBadges { display: flex; gap: 6px; }
.cBadges span { font-size: 13px; padding: 2px 8px; border-radius: 6px; letter-spacing: .08em; font-style: italic; }
.bZone { background: rgba(56, 225, 255, .2); color: var(--cyan); border: 1px solid var(--cyan); }
.bWall { background: rgba(255, 45, 85, .2); color: var(--hot); border: 1px solid var(--hot); animation: blink .3s infinite alternate; }
@keyframes blink { to { opacity: .55; } }
.cBank { width: 140px; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.cBank i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.hTimer { position: absolute; top: calc(var(--gt) + 42px); right: var(--gr); display: grid; justify-items: end; line-height: 1; }
.hTimer small { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.hTimer b { font-size: 40px; font-style: italic; color: var(--lime); text-shadow: 0 0 14px rgba(61, 255, 154, .5); }
.hTimer.low b { color: var(--hot); animation: blink .25s infinite alternate; }
.hTandem { position: absolute; top: calc(var(--gt) + 150px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; }
.tdBar { width: 160px; height: 8px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; }
.tdBar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); transition: background .2s; }
.hEvents { position: absolute; right: var(--gr); top: 38%; display: grid; justify-items: end; gap: 4px; }
.ev { font-size: 20px; font-style: italic; letter-spacing: .06em; padding: 2px 10px; border-radius: 6px; background: rgba(0, 0, 0, .45); animation: evIn .25s ease-out, evOut .4s 1.4s forwards; text-shadow: 0 2px 6px #000; }
.ev.big { font-size: 28px; }
.ev.bank { color: var(--lime); } .ev.lost { color: var(--hot); } .ev.trans { color: var(--gold); } .ev.outer { color: #ff6b8a; } .ev.inner { color: var(--cyan); } .ev.wall { color: #ff8a5b; } .ev.tap { color: var(--lime); }
@keyframes evIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes evOut { to { transform: translateX(20px); opacity: 0; } }
.hAngle { position: absolute; left: var(--gl); bottom: var(--gb); width: 130px; display: grid; justify-items: center; line-height: 1; }
.hAngle svg { width: 120px; height: 70px; }
.hAngle path { fill: none; stroke-width: 9; stroke-linecap: round; }
.hAngle .arcBg { stroke: rgba(255, 255, 255, .12); }
.hAngle .arcFg { stroke: var(--lime); transition: stroke .2s; }
.hAngle b { font-size: 30px; margin-top: -36px; font-style: italic; }
.hAngle small { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.hSpeed { position: absolute; right: var(--gr); bottom: var(--gb); display: grid; justify-items: end; line-height: 1; min-width: 150px; }
.hSpeed .rpm { width: 150px; height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.hSpeed .rpm i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold) 70%, var(--hot)); transform-origin: left; }
.hSpeed .rpm i.red { animation: blink .08s infinite alternate; }
.hSpeed .spd { font-size: 54px; font-style: italic; text-shadow: 0 3px 10px #000; }
.hSpeed small { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.hSpeed .gear { position: absolute; left: -12px; bottom: 6px; font-size: 26px; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .4); }
.hCenter { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) scale(.7); font-size: 84px; font-style: italic; opacity: 0; transition: opacity .15s, transform .25s; text-shadow: 0 0 30px rgba(255, 45, 85, .7), 0 4px 14px #000; white-space: nowrap; }
.hCenter.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hCenter.go { color: var(--lime); text-shadow: 0 0 30px rgba(61, 255, 154, .7), 0 4px 14px #000; }
.hCenter.small { font-size: 28px; }
.hHint { position: absolute; bottom: calc(var(--gb) + 90px); left: 50%; transform: translateX(-50%); max-width: 80vw; text-align: center; padding: 8px 16px; border-radius: 10px; background: rgba(0, 0, 0, .6); font-size: 17px; border: 1px solid var(--line); }
#hud.replayMode .hAngle, #hud.replayMode .hPause { display: none; }
#hud.replayMode::after { content: 'TEKRAR'; position: absolute; top: calc(var(--gt) + 60px); left: var(--gl); color: var(--hot); font-size: 20px; letter-spacing: .3em; animation: blink .6s infinite alternate; }

/* ---------- dokunmatik ---------- */
#touchpad { position: fixed; inset: 0; z-index: 7; pointer-events: none; touch-action: none; }
#touchpad button, #touchpad .tpSlide { pointer-events: auto; touch-action: none; }
.tpSteer { position: absolute; left: var(--gl); bottom: calc(var(--gb) + 70px); display: flex; gap: 12px; }
.tpSteer button { width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .2); font-size: 30px; backdrop-filter: blur(4px); }
.tpSteer button.on { background: rgba(56, 225, 255, .35); border-color: var(--cyan); }
.tpSlide { display: none; width: 220px; height: 80px; border-radius: 40px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .18); position: relative; }
.tpSlide i { position: absolute; left: calc(50% - 32px); top: 6px; width: 64px; height: 64px; border-radius: 50%; background: rgba(56, 225, 255, .4); border: 2px solid var(--cyan); }
.tpTilt { display: none; padding: 10px 16px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.mode-slider .tpSteer button, .mode-tilt .tpSteer button { display: none; }
.mode-slider .tpSlide { display: block; }
.mode-tilt .tpTilt { display: block; }
.tpPedals { position: absolute; right: var(--gr); bottom: calc(var(--gb) + 70px); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 10px; align-items: end; }
.tpPedals button { border-radius: 16px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .2); font-size: 14px; letter-spacing: .08em; line-height: 1.05; }
.tpPedals button.on { transform: scale(.96); }
.tpGas { width: 88px; height: 130px; grid-column: 2; grid-row: 1 / span 2; background: rgba(61, 255, 154, .12) !important; border-color: rgba(61, 255, 154, .5) !important; }
.tpGas.on { background: rgba(61, 255, 154, .4) !important; }
.tpHb { width: 96px; height: 76px; grid-column: 1; grid-row: 1; background: rgba(255, 45, 85, .14) !important; border-color: rgba(255, 45, 85, .55) !important; }
.tpHb.on { background: rgba(255, 45, 85, .45) !important; }
.tpBrake { width: 96px; height: 46px; grid-column: 1; grid-row: 2; }
.tpBrake.on { background: rgba(255, 204, 51, .35) !important; }
.tpClutch { position: absolute; right: 0; top: -44px; width: 88px; height: 34px; font-size: 11px !important; }
.tpClutch.on { background: rgba(155, 107, 255, .45) !important; }
.tpTop { position: absolute; top: calc(var(--gt) + 44px); right: var(--gr); display: flex; gap: 8px; }
.tpTop button { width: 40px; height: 36px; border-radius: 8px; background: rgba(0, 0, 0, .45); font-size: 15px; }
#touchpad.lefty .tpSteer { left: auto; right: var(--gr); }
#touchpad.lefty .tpPedals { right: auto; left: var(--gl); }
body:has(#touchpad) .hAngle { display: none; }
body:has(#touchpad) .hSpeed { right: auto; left: var(--gl); bottom: auto; top: calc(var(--gt) + 40px); transform: scale(.62); transform-origin: left top; justify-items: start; }
body:has(#touchpad) .hSpeed .gear { left: auto; right: -46px; }
body:has(#touchpad) .hPause { display: none; }
body:has(#touchpad) .hHint { bottom: var(--gb); max-width: min(46vw, calc(100vw - 500px)); min-width: 220px; font-size: 14px; padding: 6px 10px; }
body:has(#touchpad) .hEvents { top: 30%; right: calc(var(--gr) + 200px); }
body:has(#touchpad) .hTimer { top: calc(var(--gt) + 88px); }

/* ================= ARAYÜZ ================= */
.ic { display: inline-grid; width: 1.2em; height: 1.2em; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.btn { color: inherit; text-decoration: none; }
a:not(.btn) { color: var(--cyan); text-underline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-weight: 700; letter-spacing: .08em; font-size: 15px; text-transform: uppercase; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .15); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.hot { background: linear-gradient(135deg, #ff2d55, #c2185b); border-color: transparent; box-shadow: 0 6px 20px rgba(255, 45, 85, .35); }
.btn.hot:hover { filter: brightness(1.1); }
.btn.cyan { background: linear-gradient(135deg, #1fb6e0, #3f51b5); border-color: transparent; }
.btn.lime { background: linear-gradient(135deg, #2bd47d, #0e9f6e); border-color: transparent; color: #04140c; }
.btn.gold { background: linear-gradient(135deg, #ffcc33, #f08c00); border-color: transparent; color: #1a1100; }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 28px; font-size: 19px; border-radius: 12px; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.cash b { color: var(--gold); }
.coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe38a, #d99a0b); box-shadow: 0 0 6px rgba(255, 204, 51, .5); display: inline-block; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.scroll { overflow-y: auto; scrollbar-width: thin; }
.lbl { font-size: 12px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
input.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); outline: none; font-size: 16px; }
input.inp:focus, select.inp:focus, textarea.inp:focus { border-color: var(--cyan); }
select.inp option { background: #151620; }

/* bildirimler */
#toasts { position: fixed; top: calc(var(--gt) + 56px); left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 10px; background: rgba(14, 15, 24, .94); border: 1px solid var(--line); font-size: 15px; max-width: 86vw; text-align: center; animation: tIn .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.toast.error { border-color: var(--hot); } .toast.ok { border-color: var(--lime); } .toast.gold { border-color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .4s; }
@keyframes tIn { from { opacity: 0; transform: translateY(-10px); } }

/* pencereler */
.ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(3, 3, 8, .62); backdrop-filter: blur(3px); animation: fIn .15s; padding: var(--gt) var(--gr) var(--gb) var(--gl); }
.ov.out { opacity: 0; transition: .18s; }
@keyframes fIn { from { opacity: 0; } }
.dlg { width: min(460px, 94vw); max-height: min(92vh, 720px); display: flex; flex-direction: column; background: #10111b; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; animation: dIn .2s cubic-bezier(.2, .9, .3, 1.2); }
.dlg.wide { width: min(860px, 96vw); }
@keyframes dIn { from { transform: scale(.94); opacity: 0; } }
.dlg header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dlg header b { font-size: 18px; letter-spacing: .1em; font-style: italic; text-transform: uppercase; }
.dlg header .x { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.dlg .body { padding: 14px 16px; overflow-y: auto; font-weight: 500; line-height: 1.4; }
.dlg .body p { margin: 0 0 10px; }
.dlg footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- ekran iskeleti ---------- */
.scr { position: fixed; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
.scr > * { pointer-events: auto; }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(var(--gt) - 2px) var(--gr) 6px var(--gl); background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); min-height: 50px; }
.brand { font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: .06em; line-height: 1; margin-right: auto; }
.brand em { color: var(--hot); }
.pchip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); }
.pchip .fl { font-size: 18px; }
.pchip b { font-size: 15px; }
.lvl { display: grid; font-size: 11px; color: var(--muted); line-height: 1; gap: 2px; }
.lvl i { display: block; width: 56px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lvl i i { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.tbtn { width: 40px; height: 36px; border-radius: 10px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); display: grid; place-items: center; position: relative; font-size: 18px; }
.tbtn .ic { width: 20px; height: 20px; }
.tbtn .badge, .tile .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); font-size: 11px; display: grid; place-items: center; }
.league { display: inline-flex; align-items: center; gap: 6px; }
.league .gem { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 8px currentColor; background: currentColor; }

/* ---------- ana menü ---------- */
.menu .main { flex: 1; display: grid; grid-template-columns: minmax(300px, 46%) 1fr; gap: 12px; padding: 4px var(--gr) var(--gb) var(--gl); min-height: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; align-content: center; max-height: 100%; }
.tile { position: relative; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: grid; align-content: end; gap: 2px; min-height: 76px; transition: transform .12s, border-color .15s; backdrop-filter: blur(8px); }
.tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .25); }
.tile::before { content: ''; position: absolute; inset: 0; background: var(--g, linear-gradient(135deg, rgba(255, 45, 85, .25), transparent 60%)); pointer-events: none; }
.tile .ic { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; opacity: .85; color: var(--c, #fff); }
.tile b { font-size: 20px; font-style: italic; letter-spacing: .05em; position: relative; }
.tile small { color: #c6cad8; font-size: 13px; font-weight: 500; position: relative; line-height: 1.15; }
.tile .tag { position: absolute; left: 12px; top: 10px; font-size: 11px; letter-spacing: .15em; color: var(--c, var(--hot)); }
.tile.big { grid-column: span 2; min-height: 104px; --g: linear-gradient(120deg, rgba(255, 45, 85, .55), rgba(123, 44, 255, .25) 60%, transparent); }
.tile.big b { font-size: 30px; }
.tile.locked { opacity: .55; }
.carbox { align-self: end; justify-self: end; display: grid; justify-items: end; gap: 6px; text-align: right; }
.carbox .cls { font-size: 13px; letter-spacing: .3em; color: var(--cyan); }
.carbox h2 { margin: 0; font-size: 34px; font-style: italic; line-height: 1; }
.carbox .row { justify-content: flex-end; }
.ticker { position: fixed; left: 50%; transform: translateX(-38%); bottom: var(--gb); max-width: 30vw; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 6; }

/* ---------- başlangıç / hesap ---------- */
.start { display: grid; place-items: center; }
.start .card { width: min(420px, 92vw); padding: 22px; display: grid; gap: 12px; }
.start .lg { font-size: 54px; text-align: center; }
.start .tabs { display: flex; gap: 6px; }
.start .tabs button { flex: 1; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-weight: 700; letter-spacing: .1em; }
.start .tabs button.on { background: rgba(255, 45, 85, .25); color: #fff; }
.start .err { color: var(--hot); min-height: 18px; font-size: 14px; }

/* ---------- garaj ---------- */
.gar .main { flex: 1; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 12px; padding: 0 var(--gr) var(--gb) var(--gl); min-height: 0; }
.gar .side { display: flex; flex-direction: column; min-height: 0; }
.gtabs { display: flex; gap: 4px; padding: 6px; }
.gtabs button { flex: 1; padding: 8px 4px; border-radius: 8px; font-weight: 700; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.gtabs button.on { background: rgba(255, 255, 255, .1); color: #fff; }
.gbody { flex: 1; overflow-y: auto; padding: 4px 12px 12px; min-height: 0; }
.carlist { display: grid; gap: 6px; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; text-align: left; }
.citem.on { border-color: var(--hot); background: rgba(255, 45, 85, .12); }
.citem b { font-size: 17px; font-style: italic; }
.citem small { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.citem .st { grid-row: span 2; align-self: center; font-size: 13px; }
.stat { display: grid; grid-template-columns: 84px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.stat .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.stat .bar i.plus { background: var(--gold); }
.upg { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.upg .pips { display: flex; gap: 4px; }
.upg .pips i { width: 16px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.upg .pips i.on { background: var(--lime); }
.upg .pips.ten { gap: 2px; } .upg .pips.ten i { width: 9px; } .upg .pips i.hi { background: rgba(255, 204, 51, .14); } .upg .pips i.hi.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.upg.risky { border-color: rgba(255, 204, 51, .25); }
.upg small { color: var(--muted); font-size: 12px; }
.sw { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.sw button { width: 30px; height: 30px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .15); position: relative; }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--hot); }
.sw button .ic { position: absolute; inset: 6px; width: auto; height: auto; color: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.opts button { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.opts button.on { background: rgba(255, 45, 85, .25); border-color: var(--hot); }
.opts button.lock { opacity: .5; }
.slider { width: 100%; accent-color: var(--hot); }
.gfoot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }

/* ---------- mod ekranları ---------- */
.modebox { width: min(760px, 96vw); max-height: 94vh; display: flex; flex-direction: column; }
.modebox .head { padding: 14px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.modebox .head h2 { margin: 0; font-size: 26px; font-style: italic; letter-spacing: .05em; }
.modebox .content { padding: 14px 18px; overflow-y: auto; display: grid; gap: 12px; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.trk { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: left; display: grid; gap: 2px; position: relative; overflow: hidden; }
.trk::after { content: ''; position: absolute; inset: 0; background: var(--tg); opacity: .35; pointer-events: none; }
.trk b { font-size: 16px; font-style: italic; position: relative; z-index: 1; }
.trk small { color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
.trk .stars { color: var(--gold); letter-spacing: 2px; position: relative; z-index: 1; }
.trk.on { border-color: var(--hot); }
.th-touge { --tg: linear-gradient(135deg, #3a2a4a, #0d1222); } .th-harbor { --tg: linear-gradient(135deg, #c0584a, #23304f); } .th-city { --tg: linear-gradient(135deg, #ff2d95, #1c0b33); } .th-snow { --tg: linear-gradient(135deg, #cfe4f7, #5f8fc8); }
.th-touge_day { --tg: linear-gradient(135deg, #6ea6e3, #3f7536); } .th-coast { --tg: linear-gradient(135deg, #5fa0e6, #1d6aa0); } .th-canyon { --tg: linear-gradient(135deg, #f4c58a, #b25c3a); } .th-harbor_day { --tg: linear-gradient(135deg, #6ea8e4, #c0392b); } .th-harbor_sunset { --tg: linear-gradient(135deg, #ffc987, #3a5a9a); }
.lb { display: grid; gap: 3px; }
.lb .r { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 15px; }
.lb .r.me { background: rgba(255, 45, 85, .16); }
.lb .r .n { color: var(--muted); font-style: italic; }
.lb .r:nth-child(1) .n { color: var(--gold); } .lb .r:nth-child(2) .n { color: #cfd6df; } .lb .r:nth-child(3) .n { color: #d08a5a; }
.bigstat { display: grid; justify-items: center; gap: 0; }
.bigstat b { font-size: 34px; font-style: italic; line-height: 1; }
.bigstat small { color: var(--muted); letter-spacing: .2em; font-size: 11px; }
.stats3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.stats3 > div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }

/* düello: karşılaşma kartları */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 10px 0; }
.pcard { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; text-align: center; }
.pcard .fl { font-size: 34px; line-height: 1; }
.pcard b { font-size: 22px; font-style: italic; }
.pcard small { color: var(--muted); }
.vs .x { font-size: 44px; font-weight: 700; font-style: italic; color: var(--hot); text-shadow: 0 0 20px rgba(255, 45, 85, .6); }
.judge { width: 100%; border-collapse: collapse; font-size: 15px; }
.judge th, .judge td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.judge th:first-child, .judge td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.judge tr.tot td { font-size: 20px; font-style: italic; color: #fff; border-bottom: 0; }
.judge td.win, .judge tr.tot td.win { color: var(--lime); }
.banner { text-align: center; font-size: 48px; font-style: italic; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.banner.win { color: var(--lime); text-shadow: 0 0 30px rgba(61, 255, 154, .5); }
.banner.lose { color: var(--hot); text-shadow: 0 0 30px rgba(255, 45, 85, .5); }
.rewards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rewards .chip { font-size: 16px; padding: 6px 14px; }
.jbar { display: grid; grid-template-columns: 90px 1fr 56px; gap: 8px; align-items: center; font-size: 14px; }
.jbar .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jbar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--gold)); transform-origin: left; animation: grow .8s ease-out; }
@keyframes grow { from { transform: scaleX(0); } }

/* canlı sıralama (Bölge Savaşı) */
#liveBoard { position: fixed; left: var(--gl); top: calc(var(--gt) + 56px); z-index: 7; display: grid; gap: 3px; min-width: 190px; pointer-events: none; }
#liveBoard .lr { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .5); font-size: 13px; font-variant-numeric: tabular-nums; }
#liveBoard .lr.me { background: rgba(255, 45, 85, .4); }

/* sosyal panel */
#social { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 55; background: #0e0f18; border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s cubic-bezier(.2, .9, .3, 1); padding-top: var(--gt); padding-right: env(safe-area-inset-right); }
#social.open { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); }
#social header { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
#social header nav { display: flex; gap: 2px; flex: 1; }
#social header nav button { flex: 1; padding: 8px 2px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); position: relative; }
#social header nav button.on { background: rgba(255, 255, 255, .08); color: #fff; }
#social header nav .dot { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
#social .sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chans { display: flex; gap: 4px; padding: 6px 8px; overflow-x: auto; scrollbar-width: none; }
.chans button { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; white-space: nowrap; font-weight: 700; }
.chans button.on { background: var(--hot); }
.msgs { flex: 1; overflow-y: auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 14px; }
.msg { line-height: 1.3; word-break: break-word; }
.msg .who { font-weight: 700; cursor: pointer; }
.msg .who.me { color: var(--cyan); }
.msg .t { color: var(--muted); font-size: 11px; margin-right: 4px; }
.msg .ctag { color: var(--gold); font-style: normal; font-size: 12px; }
.chatin { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chatin input { flex: 1; }
.quick { display: flex; gap: 4px; padding: 0 8px 6px; flex-wrap: wrap; }
.quick button { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: 12px; }
.plist { display: grid; gap: 4px; padding: 8px; overflow-y: auto; }
.pl { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.pl .st { width: 8px; height: 8px; border-radius: 50%; background: #555; flex: none; }
.pl .st.online { background: var(--lime); } .pl .st.battle { background: var(--gold); }
.pl b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* telefon (alçak yatay ekran) */
@media (max-height: 460px) {
  .topbar { min-height: 42px; padding-top: max(4px, env(safe-area-inset-top)); }
  .brand { font-size: 19px; }
  .tile { min-height: 56px; padding: 8px 10px; }
  .tile b { font-size: 16px; } .tile small { font-size: 11px; } .tile .ic { width: 24px; height: 24px; }
  .tile.big { min-height: 74px; } .tile.big b { font-size: 22px; }
  .tiles { gap: 7px; }
  .carbox h2 { font-size: 24px; }
  .btn.big { padding: 10px 20px; font-size: 16px; }
  .banner { font-size: 34px; }
  .dlg header { padding: 8px 12px; } .dlg .body { padding: 10px 12px; } .dlg footer { padding: 8px 12px; }
  .modebox .head { padding: 8px 14px; } .modebox .head h2 { font-size: 20px; } .modebox .content { padding: 10px 14px; gap: 8px; }
  .pchip .lvl i { width: 40px; }
  .chip { font-size: 13px; padding: 3px 8px; }
  .tbtn { width: 34px; height: 32px; }
}
@media (max-width: 700px) {
  .ticker { display: none; }
  .menu .main { grid-template-columns: 1fr; }
  /* dar telefon: araç kutusu alt eylem çubuğuna dönüşür (görev/sezon/pazar/davet + okul/garaj her zaman erişilebilir) */
  .menu .main { padding-bottom: 50px; }
  .menu .carbox { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom));
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; z-index: 5; }
  .menu .carbox .cls, .menu .carbox h2 { display: none; }
  .menu .carbox .metabar { margin: 0; gap: 5px; justify-content: flex-start; }
  .menu .carbox .metabar .btn { padding: 7px 9px; font-size: 11px; }
  .menu .carbox .row { gap: 6px; }
  .menu .carbox .row .btn { padding: 7px 10px; font-size: 12px; }
  .menu .carbox .row .btn.big { padding: 8px 14px; font-size: 14px; }
  .menu .main { grid-template-rows: minmax(0, 1fr); }
  .menu .tiles { grid-auto-rows: minmax(0, 1fr); }
  .gar .main { grid-template-columns: 1fr; }
  .pchip .lvl { display: none; }
}
.start { overflow-y: auto; padding: var(--gt) var(--gr) var(--gb) var(--gl); }
@media (max-height: 460px) {
  .start .card { padding: 12px 16px; gap: 8px; }
  .start .lg { font-size: 34px; }
  .start .card small.muted { display: none; }
  .start .btn.big { padding: 9px 18px; }
}

/* ---- meta: giriş serisi, görevler, sezon ---- */
.chip.gem b { color: #7fd8ff; }
.metabar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.metabar .btn { position: relative; padding: 8px 14px; font-size: 13px; }
.metabar .btn .badge { position: absolute; top: -6px; right: -6px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sday { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; background: rgba(255, 255, 255, .03); display: grid; gap: 4px; }
.sday small { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.sday b { font-size: 11px; line-height: 1.3; }
.sday.got { opacity: .45; } .sday.got small::after { content: ' ✓'; color: var(--lime); }
.sday.today { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 204, 51, .3); opacity: 1; }
.quest { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.quest.done { border-color: var(--gold); } .quest.claimed { opacity: .5; }
.qbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.qbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 4px; opacity: .55; }
.tier.on { opacity: 1; border-color: rgba(61, 255, 154, .35); }
.tier > b { font-size: 12px; color: var(--muted); }
.trw { position: relative; border-radius: 6px; padding: 5px 4px; font-size: 11px; text-align: center; background: rgba(255, 255, 255, .05); min-height: 30px; display: grid; place-items: center; }
.trw.prem { background: rgba(255, 204, 51, .08); }
.trw small { font-size: 9px; display: block; }
/* pazar */
.market .gtabs { padding: 0 0 10px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.mrow .inp { width: 120px; font-size: 15px; padding: 6px 10px; }
.mswatch { display: inline-block; width: 30px; height: 30px; border-radius: 8px; flex: none; border: 1px solid rgba(255, 255, 255, .15); }
.chip .mswatch { width: 14px; height: 14px; border-radius: 4px; }
.mprice { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mhist { display: flex; flex-wrap: wrap; gap: 6px; }
.mhist .chip { font-size: 12px; font-weight: 500; }
.book { display: grid; gap: 2px; font-variant-numeric: tabular-nums; max-width: 420px; }
.book > div { display: grid; grid-template-columns: 1.4fr 1fr .6fr; padding: 4px 10px; border-radius: 6px; background: rgba(255, 204, 51, .05); }
.book .bh { background: none; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.market .row .inp { font-size: 15px; padding: 6px 10px; }
@media (max-width: 560px) { .mrow { flex-wrap: wrap; } .mrow .grow { min-width: 60%; } }
/* dar + alçak (yatay telefon): kutular alt çubuğa yer bıraksın */
@media (max-width: 700px) and (max-height: 460px) { .menu .tile { min-height: 46px; padding: 6px 10px; } .menu .tile.big { min-height: 56px; } .menu .tile.big b { font-size: 19px; } .menu .tiles { gap: 6px; } }
/* çok küçük telefon (4 inç yatay): kutu alt yazıları ve üst çubuktaki lig/Gem rozetleri gizlenir */
@media (max-width: 700px) and (max-height: 340px) { .menu .tile small { display: none; } .menu .tile { min-height: 38px; } .menu .tile.big { min-height: 46px; } }
@media (max-width: 600px) { .topbar .chip.league, .topbar .chip.gem { display: none; } }
@media (max-width: 600px) { .menu .carbox .metabar .btn .t { display: none; } .menu .carbox .metabar .btn { padding: 7px 10px; font-size: 15px; } }
.trw i { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: 10px; }
.trw.ready { outline: 1px solid var(--gold); box-shadow: 0 0 8px rgba(255, 204, 51, .35); }
.trw.got { opacity: .45; }
/* bağlantı yok */
.nlbox { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 6px 4px; }
.nlbox b { font-size: 20px; letter-spacing: .02em; }
.nlbox p { margin: 0; max-width: 34ch; }
.nlbox .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--hot); animation: ddspin .9s linear infinite; }
@keyframes ddspin { to { transform: rotate(360deg); } }
.ov.netlost { z-index: 9999; }
/* yarış yükleniyor */
#raceLoad { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(ellipse at 50% 60%, #1a1030 0%, #07080d 70%); }
#raceLoad b { letter-spacing: .2em; font-size: 15px; color: var(--muted); }
#raceLoad .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--hot); animation: ddspin .9s linear infinite; }
/* arkadaşını çağır */
.icode { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px; border-radius: 12px; border: 1px dashed rgba(255, 200, 61, .55); background: rgba(255, 200, 61, .06); }
.icode > b { font-size: 30px; letter-spacing: .18em; color: #ffc83d; user-select: text; -webkit-user-select: text; }
.icode.locked > b { font-size: 24px; color: var(--muted); letter-spacing: 0; }
.istep { display: flex; gap: 10px; align-items: center; }
.istep > i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-style: normal; font-weight: 700; }
.istep small { display: block; }
.itiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.itier { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.itier b { font-size: 18px; } .itier small { font-size: 11px; color: var(--muted); }
.itier.ready { border-color: #ffc83d; } .itier.got { border-color: #3dff9a; } .itier.got small { color: #3dff9a; }
.itier > i { position: absolute; top: 4px; right: 6px; font-style: normal; color: #3dff9a; }
.ifriend { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.ifriend.bad { opacity: .75; }
.isteps { display: flex; gap: 4px; }
.isteps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.isteps i.on { background: rgba(61, 255, 154, .2); color: #3dff9a; }
@media (max-width: 560px) { .itiers { grid-template-columns: repeat(2, 1fr); } }
/* logodaki alan adı eki */
.lg i { font-size: .36em; color: var(--muted); font-style: italic; margin-left: .05em; letter-spacing: .02em; }

/* ---- çok dilli arayüz (www/js/i18n.js) ---- */
/* yarış göstergesi ve dokunmatik kontroller Arapçada da soldan sağa kalır (direksiyon solda, pedallar sağda; sayılar LTR) */
#hud, #touchpad, #liveBoard, #raceLoad { direction: ltr; }
#hud .hHint, #hud .ev, #hud .hCenter, #hud .hSector b, #hud .hSector em, #hud .hMode { unicode-bidi: plaintext; }
[dir="rtl"] .tile { text-align: right; }
.langsel { width: auto; max-width: 100%; font-size: 15px; padding: 6px 10px; }

/* dar pencere (≤480 px): üst çubuk taşmasın; uzun takma ad kısalır */
@media (max-width: 480px) {
  .topbar { gap: 5px; }
  .topbar .tbtn { width: 34px; flex: none; }
  .topbar .chip { flex: none; }
  .pchip { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .pchip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pchip .lvl { display: none; }
  .brand { font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* uzun kelimeli dillerde (ru, uk, de, hu…) kutu ve düğme yazıları kutusundan taşmasın */
.tile b { overflow-wrap: anywhere; hyphens: auto; }
.carbox { max-width: 100%; min-width: 0; }
.metabar { max-width: 100%; min-width: 0; }
.metabar.compact .btn .t { display: none; }   /* etiketler sığmazsa yalnız simge (menu.js ölçer) */
.gtabs button { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) {
  .menu .carbox .row .btn .ic { display: none; }
  .menu .carbox .row .btn, .menu .carbox .row .btn.big { padding: 7px 9px; letter-spacing: .04em; }
  .menu .carbox .metabar .btn { padding: 7px 8px; }
}
/* yatay telefon: uzun alt yazılar kutuyu büyütüp alt çubuğu ekran dışına itmesin */
@media (max-height: 460px) {
  .menu .main { grid-template-rows: minmax(0, 1fr); }
  .menu .tiles { grid-auto-rows: minmax(0, 1fr); }
  .menu .tile small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
