/* Kas Arenası ekran yazıları: dikey (9:16) yayına göre, ölçüler vh. */
body { background: #0a0820; }

.top { position: absolute; left: 0; right: 0; top: 1.2vh; display: flex; flex-direction: column; align-items: center; gap: 0.6vh; z-index: 2; }
.top .call { display: flex; align-items: center; gap: 0.6vh; padding: 0.45vh 1.5vh; border-radius: 3vh; background: #0b0d14d9; border: 0.25vh solid #ffffff22; font-size: 1.6vh; font-weight: 800; white-space: nowrap; }
.top .call i { font-style: normal; }
.top .call b { color: var(--gold); font-weight: 900; }
.top .call span { margin-left: 0.6vh; padding-left: 0.8vh; border-left: 0.2vh solid #ffffff33; }
.top .call span b { color: #7cf29a; }

.king { display: flex; flex-direction: column; align-items: center; padding: 0.4vh 1.6vh 0.5vh; border-radius: 2vh; background: linear-gradient(180deg, #6a3cd0ee, #2b1460ee); border: 0.3vh solid #ffc94a; box-shadow: 0 0.6vh 2vh #0007, 0 0 2vh #ffc94a55; }
.king small { font-size: 1.1vh; font-weight: 900; color: #ffe08a; text-transform: uppercase; letter-spacing: 0.06em; }
.king .who { display: flex; align-items: center; gap: 0.6vh; font-size: 2vh; font-weight: 900; max-width: 34vh; white-space: nowrap; overflow: hidden; }
.king .who b { overflow: hidden; text-overflow: ellipsis; }
.king .av { width: 3vh; height: 3vh; border: 0.2vh solid #ffc94a; }
.king em { font-style: normal; font-size: 1.25vh; font-weight: 900; color: #fff; padding: 0.1vh 0.8vh; margin-top: 0.2vh; border-radius: 1vh; background: #ffffff22; }
.king em:empty { display: none; }
.king.empty .who { color: #ffffffaa; font-size: 1.6vh; }

.info { display: flex; gap: 0.8vh; }
.info span { padding: 0.25vh 1vh; border-radius: 2vh; background: #0b0d14b8; font-size: 1.25vh; font-weight: 800; }
.info b { color: var(--gold); font-weight: 900; }

/* beğeni: çılgınlık çubuğu */
.likes { position: absolute; left: 1vh; top: 15vh; display: flex; align-items: center; gap: 0.5vh; padding: 0.3vh 0.9vh; border-radius: 2vh; background: #0b0d14b8; font-size: 1.2vh; font-weight: 800; }
.likes i { font-style: normal; font-size: 1.4vh; }
.likes .bar { width: 9vh; height: 0.9vh; border-radius: 1vh; background: #ffffff22; overflow: hidden; }
.likes .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4fa0, #ffd166); transition: width 0.4s; }
.likes small { color: #ffffffcc; }
.likes.on { background: #a3125ee8; box-shadow: 0 0 2vh #ff4fa0; animation: beat 0.46s ease-in-out infinite; }
.likes.on small { color: #fff; font-weight: 900; }
@keyframes beat { 50% { transform: scale(1.06); } }

/* sol: en güçlüler */
.board { position: absolute; left: 1vh; top: 18.4vh; width: 21vh; padding: 0.7vh; z-index: 2; }
.board h4 { font-size: 1.2vh; color: #7cf29a; }
.board li { font-size: 1.3vh; padding: 0.25vh 0.3vh; gap: 0.5vh; }
.board li .n { width: 1.8vh; text-align: center; font-weight: 900; color: var(--gold); }
.board .av { width: 2.2vh; height: 2.2vh; font-size: 1.1vh; }
.board .lvl { color: #7cf29a; font-weight: 900; font-size: 1.15vh; }
.board .amt { font-size: 1.1vh; color: #ffffffb0; }
.board li.king { background: linear-gradient(90deg, #ffc94a55, transparent); border-radius: 1vh; }

.guide { top: 11vh; z-index: 2; }
.guide div { width: 7vh; padding: 0.3vh 0.3vh; }
.guide img { width: 3.2vh; height: 3.2vh; }
.guide i { font-size: 2.4vh; line-height: 3.2vh; }
.guide span { font-size: 1.05vh; }

.feed { bottom: 4vh; z-index: 2; }
.feed div { font-size: 1.4vh; padding: 0.35vh 1.1vh 0.35vh 0.35vh; }
.feed .av { width: 2.4vh; height: 2.4vh; }
.feed div.ko b { color: #ff6b81; }
.feed div.king b { color: var(--gold); }
.feed div.gift b { color: #7cf29a; }

/* başların üstünde: fotoğraf, ad, seviye, can çubuğu */
.tags { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.ftag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0.2vh; padding: 0.2vh 0.5vh 0.35vh 0.2vh; border-radius: 1.4vh; background: #0b0d14cc; border: 0.18vh solid #ffffff33; font-size: 1.2vh; font-weight: 800; white-space: nowrap; will-change: transform; }
.ftag .row { display: flex; align-items: center; gap: 0.4vh; }
.ftag .av { width: 2vh; height: 2vh; font-size: 1vh; }
.ftag i { font-style: normal; font-size: 1.05vh; font-weight: 900; color: #7cf29a; }
.ftag .hp { height: 0.5vh; margin-left: 0.3vh; border-radius: 1vh; background: #ffffff22; overflow: hidden; }
.ftag .hp span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4f6d, #ffd166 50%, #7cf29a); background-size: 200% 100%; transition: width 0.15s; }
.ftag[data-lv="mid"] { border-color: #7cf29a88; }
.ftag[data-lv="hi"] { border-color: #a98bff; background: #1d1240dd; }
.ftag[data-lv="max"] { border-color: #ffc94a; background: #3a2400dd; box-shadow: 0 0 1.2vh #ffc94a88; }
.ftag.king { border-color: #ffc94a; background: linear-gradient(180deg, #6a3cd0ee, #2b1460ee); font-size: 1.35vh; }
.ftag.down { opacity: 0.55; }

/* hediye kartları */
.gifts { position: absolute; left: 50%; top: 17vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5vh; z-index: 3; }
.gifts > div { display: flex; align-items: center; gap: 0.7vh; padding: 0.35vh 1.2vh 0.35vh 0.35vh; border-radius: 3vh; background: #0b0d14e6; border: 0.28vh solid var(--c); box-shadow: 0 0 1.6vh color-mix(in srgb, var(--c) 50%, transparent); animation: gcard 3.8s ease-out forwards; white-space: nowrap; }
.gifts .av { width: 3.2vh; height: 3.2vh; border: 0.2vh solid #fff; }
.gifts span { display: flex; flex-direction: column; line-height: 1.1; }
.gifts b { font-size: 1.5vh; font-weight: 900; }
.gifts small { font-size: 1.25vh; font-weight: 900; color: var(--c); text-transform: uppercase; }
.gifts img { width: 3.2vh; height: 3.2vh; object-fit: contain; }
.gifts em { font-style: normal; font-size: 2vh; font-weight: 900; color: var(--gold); }
.gifts em:empty { display: none; }
@keyframes gcard { 0% { opacity: 0; transform: scale(0.6); } 8% { opacity: 1; transform: scale(1.08); } 14% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1vh); } }

/* büyük duyuru */
.big { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.4vh; z-index: 4; animation: big 2.8s ease-out forwards; }
.big .av { width: 7vh; height: 7vh; border: 0.4vh solid var(--c); box-shadow: 0 0 2vh var(--c); font-size: 3vh; }
.big h2 { margin: 0; font-size: 6.4vh; font-weight: 900; font-style: italic; white-space: nowrap; color: #fff; -webkit-text-stroke: 0.25vh #16122a; paint-order: stroke fill; text-shadow: 0 0.5vh 0 var(--c), 0 1vh 3vh #000a; }
.big p { margin: 0; padding: 0.3vh 1.4vh; border-radius: 2vh; background: #0b0d14d9; font-size: 1.9vh; font-weight: 900; white-space: nowrap; }
@keyframes big { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -56%) scale(0.95); } }

/* kral maçı: iki can çubuğu */
.duel { position: absolute; left: 50%; top: 26vh; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 1vh; width: min(52vh, 94vw); z-index: 3; }
.duel .side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4vh; }
.duel .side.b { align-items: flex-end; }
.duel .who { display: flex; align-items: center; gap: 0.5vh; max-width: 100%; padding: 0.3vh 0.9vh 0.3vh 0.3vh; border-radius: 2vh; background: #0b0d14e0; font-size: 1.5vh; font-weight: 900; white-space: nowrap; }
.duel .side.b .who { flex-direction: row-reverse; padding: 0.3vh 0.3vh 0.3vh 0.9vh; }
.duel .who b { overflow: hidden; text-overflow: ellipsis; }
.duel .who i { font-style: normal; color: #7cf29a; font-size: 1.2vh; }
.duel .av { width: 3vh; height: 3vh; border: 0.2vh solid #fff; }
.duel .hp { width: 100%; height: 1.6vh; border-radius: 1vh; background: #0b0d14e0; border: 0.25vh solid #ffffff55; overflow: hidden; }
.duel .hp span { display: block; height: 100%; width: 100%; transition: width 0.2s; }
.duel .a .hp span { background: linear-gradient(90deg, #ff4f6d, #ff8a3a); }
.duel .b .hp { display: flex; justify-content: flex-end; }
.duel .b .hp span { background: linear-gradient(270deg, #3b82f6, #38d5f5); }
.duel small { font-size: 1.15vh; font-weight: 900; padding: 0.1vh 0.7vh; border-radius: 1vh; background: #0b0d14c0; color: #ffe08a; }
.duel .mid { display: flex; flex-direction: column; align-items: center; padding-top: 0.6vh; }
.duel .mid b { font-size: 3.4vh; font-weight: 900; font-style: italic; color: var(--gold); -webkit-text-stroke: 0.18vh #16122a; paint-order: stroke fill; }
.duel .mid em { font-style: normal; font-size: 1.6vh; font-weight: 900; padding: 0.1vh 0.8vh; border-radius: 1vh; background: #0b0d14e0; }

body.duel-on .board, body.duel-on .likes { display: none; }

/* ekran parlaması ve sinema şeritleri */
.screenflash { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(circle, transparent 20%, var(--c) 100%); opacity: 0; animation: screenflash 0.45s ease-out forwards; }
@keyframes screenflash { 0% { opacity: var(--a); } 100% { opacity: 0; } }
.bars i { position: fixed; left: 0; right: 0; height: 0; background: #000; z-index: 1; pointer-events: none; transition: height 0.35s ease; }
.bars i:first-child { top: 0; }
.bars i:last-child { bottom: 0; }
body.cine .bars i { height: 6vh; }
/* kenarda hafif karartma */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, #05031a99 100%); z-index: 0; }
body.wide .gifts { top: 15vh; }
body.wide .duel { top: 18vh; }

/* açılışta yükleniyor yazısı (3D motoru internetten iner) */
.loading { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1vh; background: radial-gradient(circle, #2a1a5e, #0a0820 70%); }
.loading b { font-size: 5vh; font-weight: 900; font-style: italic; color: var(--gold); -webkit-text-stroke: 0.2vh #16122a; paint-order: stroke fill; }
.loading span { font-size: 2vh; font-weight: 800; color: #ffffffb0; animation: beat 1s ease-in-out infinite; }
