:root {
  --red: #e10600; --gold: #ffd400; --ink: #15151e; --panel: rgba(16, 16, 24, .82); --line: rgba(255,255,255,.12);
  font-family: "Titillium Web", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; transform-origin: 0 0; overflow: hidden; background: #8fb3d6; }
#scene { position: absolute; inset: 0; width: 1080px; height: 1920px; display: block; }
#hud { position: absolute; inset: 0; color: #fff; pointer-events: none; }
.hidden { display: none !important; }

/* ---------- üst bar ---------- */
#top { position: absolute; left: 0; right: 0; top: 0; height: 190px; padding: 26px 28px 0; display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,0)); }
.logo { display: flex; flex-direction: column; line-height: 1; min-width: 230px; }
.logo .l1 { background: var(--red); color: #fff; font-weight: 900; font-size: 30px; padding: 6px 12px 4px; align-self: flex-start; letter-spacing: 2px; transform: skewX(-12deg); }
.logo .l2 { font-weight: 900; font-size: 38px; font-style: italic; margin-top: 6px; letter-spacing: 1px; text-shadow: 0 2px 6px #000; }
.logo .l3 { font-size: 22px; font-weight: 700; color: #cfe3ff; margin-top: 6px; text-shadow: 0 2px 4px #000; }
.phase { flex: 1; text-align: center; padding-top: 4px; }
#phase { font-size: 54px; font-weight: 900; font-style: italic; text-shadow: 0 3px 10px rgba(0,0,0,.8); line-height: 1.05; }
#sub { font-size: 28px; font-weight: 700; color: var(--gold); text-shadow: 0 2px 6px #000; margin-top: 6px; }
.live { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; padding: 6px 12px; border-radius: 6px; background: rgba(0,0,0,.5); }
.live i { width: 14px; height: 14px; border-radius: 50%; background: #2bd14a; animation: pulse 1.2s infinite; }
.live.off i { background: #e10600; animation: none; } .live.off { color: #ff8b8b; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- sıralama kulesi ---------- */
#tower { position: absolute; left: 22px; top: 200px; width: 400px; }
#towerHead { display: flex; justify-content: space-between; align-items: center; background: var(--red); padding: 6px 14px; font-weight: 900; font-size: 26px; font-style: italic;
  border-radius: 10px 10px 0 0; }
#towerLap { font-style: normal; }
#rows { position: relative; background: var(--panel); backdrop-filter: blur(4px); border-radius: 0 0 10px 10px; overflow: hidden; transition: height .4s; }
.row { position: absolute; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding-right: 10px; font-size: 22px; font-weight: 700;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s; border-bottom: 1px solid rgba(255,255,255,.05); }
.row .pos { width: 40px; height: 100%; display: grid; place-items: center; font-weight: 900; color: #fff; }
.row.first .pos { background: var(--gold); color: #000; }
.row .bar { width: 5px; height: 26px; border-radius: 2px; }
.row .av { width: 28px; height: 28px; border-radius: 50%; background: #333 center/cover; flex: none; border: 2px solid rgba(255,255,255,.3); }
.row .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .gap { font-variant-numeric: tabular-nums; color: #cfd3dc; font-size: 20px; min-width: 70px; text-align: right; }
.row .fire { width: 22px; text-align: center; font-size: 18px; }
.row.focus { background: rgba(255,255,255,.14); }
.row.up { animation: up .9s; } @keyframes up { 0% { background: rgba(43,209,74,.55); } }
#towerMore { font-size: 18px; color: #cfd3dc; padding: 4px 12px; text-shadow: 0 1px 3px #000; }

/* ---------- akış ---------- */
#feed { position: absolute; right: 22px; top: 210px; width: 600px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fi { background: rgba(10,10,16,.78); border-left: 5px solid var(--c, #fff); padding: 6px 14px; font-size: 23px; font-weight: 700; border-radius: 6px;
  max-width: 600px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fin .35s ease-out; transition: opacity .6s; }
.fi.out { opacity: 0; }
@keyframes fin { from { transform: translateX(60px); opacity: 0; } }
#camTag { position: absolute; right: 22px; top: 1528px; font-size: 18px; font-weight: 900; letter-spacing: 2px; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 4px; color: #ddd; }

/* ---------- start ışıkları ---------- */
#lights { position: absolute; left: 50%; top: 1010px; transform: translateX(-50%); display: flex; gap: 18px; padding: 18px 26px; background: #0c0c0f; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.pod { display: flex; flex-direction: column; gap: 12px; background: #1d1e22; padding: 10px; border-radius: 12px; }
.pod i { width: 62px; height: 62px; border-radius: 50%; background: #2a0505; box-shadow: inset 0 0 12px #000; }
.pod.on i { background: radial-gradient(circle at 40% 35%, #ff8a80, #ff1a1a 45%, #a00000); box-shadow: 0 0 30px #ff0000, 0 0 60px rgba(255,0,0,.5); }
#go, #flag { position: absolute; left: 0; right: 0; top: 1020px; text-align: center; font-size: 150px; font-weight: 900; font-style: italic; color: #2bd14a;
  text-shadow: 0 6px 30px rgba(0,0,0,.8); animation: pop .5s; }
#flag { font-size: 90px; color: #fff; top: 1040px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- süper nitro ---------- */
#banner { position: absolute; left: 60px; right: 60px; top: 760px; height: 200px; display: flex; align-items: center; gap: 26px; padding: 0 30px;
  background: linear-gradient(90deg, #ff8a00, #e10600); border: 6px solid #fff; border-radius: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .35s; }
.bAv { width: 130px; height: 130px; border-radius: 50%; background: #222 center/cover; border: 6px solid #fff; flex: none; }
.bText { flex: 1; text-align: center; }
.bTitle { font-size: 52px; font-weight: 900; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.bName { font-size: 44px; font-weight: 900; color: #ffe066; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; margin: 0 auto; }
.bGift { font-size: 32px; font-weight: 700; }
.bImg { width: 110px; height: 110px; object-fit: contain; }

/* ---------- takip edilen pilot ---------- */
#driver { position: absolute; left: 22px; right: 22px; top: 1572px; height: 92px; display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 12px; overflow: hidden; }
.dPos { width: 80px; height: 100%; display: grid; place-items: center; background: #fff; color: #000; font-weight: 900; font-size: 48px; font-style: italic; }
.dBar { width: 8px; height: 60px; border-radius: 3px; }
.dAv { width: 64px; height: 64px; border-radius: 50%; background: #333 center/cover; border: 3px solid #fff; flex: none; }
.dInfo { flex: 1; min-width: 0; }
.dName { font-size: 34px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dStats { font-size: 22px; color: #cfd3dc; }
.dSpeed { text-align: right; padding-right: 6px; } .dSpeed b { font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; } .dSpeed span { font-size: 18px; margin-left: 4px; color: #aaa; }
.dNitro { width: 150px; height: 100%; position: relative; background: #222; display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.dNitroFill { position: absolute; left: 0; bottom: 0; top: 0; width: 0; background: linear-gradient(90deg, #ff3d00, #ffd400); transition: width .3s; }
.dNitro span { position: relative; text-shadow: 0 1px 3px #000; }

/* ---------- lobi ---------- */
#lobby { position: absolute; left: 40px; right: 40px; top: 1080px; padding: 26px 30px; background: var(--panel); border-radius: 22px; border: 2px solid rgba(255,212,0,.45); text-align: center; }
.lTitle { font-size: 46px; font-weight: 900; } .lTitle b { color: var(--gold); font-size: 56px; }
.lCount { margin-top: 4px; } #lNum { font-size: 96px; font-weight: 900; font-style: italic; color: var(--gold); } .lMax { font-size: 36px; font-weight: 900; margin-left: 8px; }
.lBar { position: relative; height: 22px; background: #2b2c33; border-radius: 11px; overflow: hidden; margin: 6px 0 14px; }
#lFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .5s; }
#lMin { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; }
#lInfo { font-size: 30px; font-weight: 700; color: #e9ecf2; line-height: 1.35; }
#lInfo b { color: var(--gold); }
#lAvatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
#lAvatars i { width: 52px; height: 52px; border-radius: 50%; background: #333 center/cover; border: 3px solid var(--c); animation: pop .4s; }

/* ---------- podyum ---------- */
#podium { position: absolute; left: 30px; right: 30px; top: 560px; padding: 24px; background: rgba(10,10,16,.86); border-radius: 26px; border: 3px solid var(--gold); text-align: center; }
.pTitle { font-size: 54px; font-weight: 900; color: var(--gold); font-style: italic; }
.pCols { display: flex; align-items: flex-end; justify-content: center; gap: 20px; margin-top: 30px; }
.pCol { width: 290px; display: flex; flex-direction: column; align-items: center; }
.pCrown { font-size: 70px; line-height: 1; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pAv { width: 150px; height: 150px; border-radius: 50%; background: #333 center/cover; border: 7px solid var(--c, #fff); }
.p1 .pAv { width: 190px; height: 190px; }
.pName { font-size: 32px; font-weight: 900; margin-top: 10px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pStat { font-size: 24px; color: #cfd3dc; }
.pStep { width: 100%; margin-top: 12px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 90px; font-weight: 900; color: #000; }
.p1 .pStep { height: 240px; background: linear-gradient(#ffe766, #e6b800); }
.p2 .pStep { height: 170px; background: linear-gradient(#f2f2f2, #b9b9b9); }
.p3 .pStep { height: 120px; background: linear-gradient(#e7a66b, #a8662c); }
#pNext { font-size: 30px; font-weight: 700; margin-top: 18px; }

/* ---------- alt ---------- */
#bottom { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; }
.rules { display: flex; justify-content: space-around; background: var(--panel); border-radius: 40px; padding: 12px 20px; font-size: 30px; font-weight: 700; }
.rules b { color: var(--gold); }
#gifters { background: linear-gradient(180deg, rgba(60,48,0,.85), rgba(20,16,0,.85)); border: 2px solid rgba(255,212,0,.5); border-radius: 18px; padding: 12px 18px 16px; }
.gTitle { text-align: center; color: var(--gold); font-weight: 900; font-size: 28px; }
#gList { display: flex; justify-content: space-around; margin-top: 10px; min-height: 76px; align-items: center; }
.g { display: flex; align-items: center; gap: 12px; max-width: 330px; }
.g .gAv { width: 68px; height: 68px; border-radius: 50%; background: #333 center/cover; border: 4px solid var(--c); position: relative; flex: none; }
.g .gAv em { position: absolute; right: -10px; top: -14px; font-style: normal; font-size: 30px; }
.g .gN { font-size: 26px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.g .gS { font-size: 22px; color: #9be3ff; font-weight: 700; }
.gEmpty { font-size: 28px; color: #ddd; }
#soundHint { position: absolute; right: 22px; top: 1484px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 6px; font-size: 20px; }

/* profil fotoğrafı yoksa baş harf */
.row .av, .dAv, .pAv, .bAv, #lAvatars i, .gAv { display: grid; place-items: center; font-weight: 900; color: #fff; font-style: normal; background-color: #2a2c34; }
.row .av { font-size: 15px; } .dAv { font-size: 30px; } .pAv { font-size: 70px; } .p1 .pAv { font-size: 90px; } .bAv { font-size: 64px; } #lAvatars i { font-size: 24px; } .gAv { font-size: 30px; }
