/* Mobil taslaklar: 390 piksel genişlikte sabit kök (.scr.mob).
   Tüm kurallar .mob altında, tarayıcı genişliğinden bağımsız. Sabit konum ve vh/vw yok. */

.scr.mob { min-height: 0; }

/* üst bar: logo, bakiye, oyna, avatar; altında yatay kayan menü */
.mob header.top { flex-wrap: wrap; align-items: center; height: auto; padding: 8px 16px 0; row-gap: 0; }
.mob .brand { width: 162px; height: 22px; background-size: 162px 21px; margin: 0; }
.mob .bar-end { margin-left: auto; gap: 10px; min-height: 48px; }
.mob a.purse { height: 44px; padding: 0; border: 0; }
.mob a.purse span { display: none; }
.mob a.purse b { padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); font-size: 14px; }
.mob span.purse { height: auto; padding: 0; border: 0; font-size: 13px; }
.mob .play { width: 44px; height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; --cut: 8px; }
.mob .play::before { border-left-width: 11px; border-block-width: 7px; margin-left: 2px; }
.mob .who .name { display: none; }
.mob .who-me { padding: 6px; margin-right: -6px; }
.mob .bar-end > .btn.small { min-height: 44px; }
.mob .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.mob .nav::-webkit-scrollbar, .mob .snav::-webkit-scrollbar, .mob .xs::-webkit-scrollbar { display: none; }
.mob .nav a { flex: none; min-height: 44px; }

/* sayfa gövdesi: tek sütun. Orta sütun önce, yan sütunların parçaları sonra. */
.mob .app { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: none; padding: 16px 16px 28px; }
.mob .app > * { min-width: 0; }
.mob .app > aside { display: contents; }
.mob .app > aside > * { order: 2; min-width: 0; }
.mob .app > div.col { order: 1; }
.mob .app > aside.gen > * { order: 3; }
.mob .app > aside > .snav { order: 0; }
.mob .app > aside.chatp { display: flex; order: 2; min-height: 0; }

/* yan menü: yatay kayan hap şeridi */
.mob .snav { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-radius: 0; }
.mob .snav a { flex: none; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 14px; white-space: nowrap; }
.mob .snav a[aria-current] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.mob .snav a .pill { margin-left: 0; }
.mob .snav a[aria-current] .pill { background: rgba(10, 9, 13, 0.12); color: var(--ink); }
.mob .snav hr { display: none; }

/* yazı ölçüsü */
.mob .h-display { font-size: 30px; }
/* küçük boyda içi boş yazı okunmuyor: mobilde düz beyaz */
.mob .outline { color: #fff; -webkit-text-stroke: 0; }
.mob .hero-t { font-size: 36px; line-height: 1; }
.mob .hero-s { font-size: 30px; }
.mob .big:not(.btn) { font-size: 44px; }
.mob .mid { font-size: 30px; }
.mob .bal-n { font-size: 56px; margin-bottom: 18px; }
.mob .score { font-size: 72px; }
.mob .pname { font-size: 30px; }
.mob .pname.long { font-size: 24px; }
.mob .amount { font-size: 40px; padding: 12px 16px; }
.mob .rank-big { font-size: 64px; }
.mob .payout b { font-size: 36px; }
.mob .team-head h2 { font-size: 32px; }
.mob .page-head { gap: 4px 16px; }
.mob .page-head p { font-size: 14px; }

/* kutular */
.mob .panel, .mob .phase { padding: 16px 16px 18px; border-radius: 20px; }
.mob .phase { margin: 0; }
.mob .gate-card { border-radius: 24px; min-height: 0; }
.mob .gate-card.fit { padding: 20px; }
.mob .team { padding: 18px; border-radius: 24px; }
.mob .stage { padding: 24px 16px; border-radius: 24px; }
.mob .ring.xl { width: 200px; }
.mob .ring.xl .ring-c b { font-size: 44px; }
.mob .how li { padding: 16px; border-radius: 20px; }
.mob .how li::before { margin-bottom: 10px; }
.mob .stat { padding: 14px 16px; }
.mob .drop { padding: 20px 16px; }
.mob .warn { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
.mob .warn .btn { margin-left: 0; width: 100%; }
.mob .banner { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
.mob .banner .cmd { flex: 1 1 100%; }
.mob .chatp { min-height: 0; }

/* ızgaralar */
.mob .g2, .mob .g3, .mob .hero2, .mob .vs, .mob .arena, .mob .load, .mob .lgroups, .mob .cliph, .mob .how { grid-template-columns: minmax(0, 1fr) !important; }
.mob .g4, .mob .g5, .mob .skg, .mob .g2.tight, .mob .g2.two, .mob .g3.two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.mob .g6, .mob .g3.tight, .mob .g3.three { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.mob .g2, .mob .g3, .mob .g4, .mob .g5, .mob .hero2 { gap: 12px; }
.mob .vs { gap: 12px; }
.mob .vs-mid { min-width: 0; }

/* dokunma hedefleri */
.mob .chip-f { min-height: 44px; }
.mob .chip-f.r { min-width: 44px; }
.mob .btn.small { min-height: 44px; }
.mob .stake { min-width: 64px; }
.mob .sw { height: 44px; background: none; }
.mob .sw::before { content: ''; position: absolute; left: 0; top: 8px; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.mob .sw.on::before { background: var(--ok); }
.mob .sw::after { top: 12px; z-index: 1; }
.mob .talk-in input { min-height: 44px; }
.mob .fbar .inp { width: 100%; min-height: 44px; }
.mob .fbar select.inp { width: 100%; }
.mob .inp { min-height: 48px; }

/* satırlar */
.mob .rows time { width: auto; }
.mob .rows .st { min-width: 0; }
.mob .rows li { flex-wrap: wrap; }
.mob .cmp dt { min-width: 96px; }
.mob .cmp div { gap: 10px; }
.mob .set { gap: 12px; }
.mob .wait-row b { font-size: 24px; }

/* lobi ve maç odası: orta bölüm üste, takımlar alt alta */
.mob .seam { order: -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0; text-align: left; }
.mob .seam .ring { width: 120px; }
.mob .seam .ring-c b { font-size: 24px; }
.mob .seam .ring-c span { font-size: 11px; }
.mob .seam .actions, .mob .seam-note { grid-column: 1 / -1; position: static; }
.mob .seam-note { max-width: none; }
.mob .team, .mob .team.t { text-align: left; }
.mob .team.t .team-head { grid-template-columns: minmax(0, 1fr) auto; }
.mob .team.t .tn, .mob .team.t .tname, .mob .team.t .team-head .count, .mob .team.t .team-meta { order: 0; flex-direction: row; }
.mob .team.t .slot { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 12px 10px 10px; }
.mob .team.t .slot > .av, .mob .team.t .slot > .meta, .mob .team.t .slot > .state { order: 0; }
.mob .team.t .state, .mob .team.t .tools { flex-direction: row; }
.mob .team.t .slot.empty { grid-template-columns: 1fr auto; padding: 10px 10px 10px 18px; }
.mob .team.t .slot.empty > span { order: 0; }
.mob .team.t .form5 { justify-content: flex-start; }
.mob .team.t.duo { align-items: flex-start; }

/* oyuncu kartları */
.mob .duo { min-height: 300px; }
.mob .duo.sm { min-height: 260px; }
.mob .duel .team { min-height: 0; }
.mob .dstats dd { font-size: 20px; }

/* tablo: her satır bir kart */
.mob .tbl, .mob .tbl tbody { display: block; }
.mob .tbl thead { display: none; }
.mob .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mob .tbl tbody tr:first-child { border-top: 0; padding-top: 0; }
.mob .tbl td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; }
.mob .tbl td[colspan] { grid-column: 1 / -1; }
.mob .tbl tr.me { padding: 12px; border-radius: 14px; border-top: 0; background: rgba(49, 65, 220, 0.22); }
.mob .tbl tr.me td { background: none; border-radius: 0; }
.mob .tbl tr.me + tr { border-top: 0; }

/* skinler */
.mob .lgroups { gap: 16px; padding: 16px; }
.mob .lg.one .sl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mob .sk.card img { height: 96px; padding: 14px 16px 0; }
.mob .sk.card .sk-t { padding: 6px 12px 14px; }
.mob .load-me { min-height: 220px; }

/* klipler */
.mob .cliph { border-radius: 24px; }
.mob .cliph .clip-th { min-height: 0; aspect-ratio: 16 / 9; }
.mob .cliph-side { padding: 18px; }
.mob .playb { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.mob .playb::after { left: 25px; top: 19px; border-width: 13px; border-left-width: 21px; }
.mob .clip-th .no { font-size: 30px; }

/* yatay kayan içerik kutusu */
.mob .xs { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }

/* ilk tur düzeltmeleri */
.mob .col { grid-template-columns: minmax(0, 1fr); }
.mob .btn.big { font-size: 18px; }
.mob .gate-card .agent, .mob .gate-card .gc-agent, .mob .team .agent { opacity: 0.32; }
.mob .set:has(.chip-f) { flex-wrap: wrap; }
.mob .set:has(.chip-f) > :last-child { flex-basis: 100%; }
.mob .play { height: 44px; }
.mob .team.t .team-head .tn, .mob .team.t .team-head .tname { order: 1; }
.mob .team.t .team-head .count { order: 2; }
.mob .team.t .team-head .team-meta { order: 3; }
.mob .cmd { min-width: 0; max-width: 100%; overflow: hidden; }
.mob .seam .actions { grid-template-columns: minmax(0, 1fr); }

/* ikinci tur: orta sütunun parçaları da tek tek sıralanabilsin */
.mob .app > div.col { display: contents; }
.mob .app > div.col > * { order: 1; min-width: 0; }
.m-Main .app > div.col > section[aria-labelledby='h-acik'] { order: 2; }
.m-Main .app > aside:not(.gen) > .panel:first-child { order: 1; }
.m-Bulundu .vs-mid { order: -1; }

.mob .rows .meta { min-width: 0; }
.mob .rows .nm, .mob .rows .sub { white-space: normal; overflow: visible; }
.mob .rows li:has(> .btn):has(> .amt) { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 2px 10px; }
.mob .rows li:has(> .btn):has(> .amt) > .av { grid-row: 1 / span 2; }
.mob .rows li:has(> .btn):has(> .amt) > .meta { display: contents; }
.mob .rows li:has(> .btn):has(> .amt) .sub { grid-column: 2 / -1; grid-row: 2; }

.mob .vmap.mode { min-height: 140px; padding: 16px 18px; }
.mob .vmap.mode .mn { font-size: 26px; }
.mob .vmap.mode .micon { width: 46px; height: 46px; top: 12px; right: 12px; }
.mob .g3:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.mob .g3:has(> .stat) > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mob .g2:has(> .choice) { grid-template-columns: minmax(0, 1fr) !important; }

/* ---- dördüncü tur: ekran bazlı düzenler ---- */
.mob .page-head { flex-direction: column; align-items: flex-start; gap: 4px; }

/* braket: turlar alt alta, maçlar iki sütun */
.mob .bracket { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mob .round { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mob .round-t { grid-column: 1 / -1; font-size: 13px; color: var(--fg-3); }
.mob .round-t b { margin-right: 8px; color: #fff; font: 800 15px/1.2 var(--display); }
.mob .round:nth-child(n+3) { grid-template-columns: minmax(0, 1fr); }
.mob .round .bm::before, .mob .round .bm::after { display: none; }
.mob .bm div { padding: 9px 12px; }
.mob .legend { flex-wrap: wrap; gap: 6px 14px; }

/* sıralama: kürsü ve tablo satırı */
.mob .pod { min-height: 0; gap: 14px; }
.mob .pod:first-child { min-height: 176px; }
.mob .pod .rank-n { font-size: 52px; }
.m-Siralama .tbl tr { grid-template-columns: 28px repeat(3, minmax(0, 1fr)) auto; gap: 6px 10px; align-items: center; }
.m-Siralama .tbl td.rk { grid-area: 1 / 1; width: auto; font-size: 17px; }
.m-Siralama .tbl td:nth-child(2) { grid-area: 1 / 2 / 2 / 5; }
.m-Siralama .tbl td:nth-child(3) { grid-area: 1 / 5; text-align: right; font: 800 17px/1 var(--display); }
.m-Siralama .tbl td:nth-child(3)::after { content: ' ' attr(data-l); text-transform: lowercase; font: 500 12px/1 var(--text); color: var(--fg-3); }
.m-Siralama .tbl td:nth-child(4) { grid-area: 2 / 2; }
.m-Siralama .tbl td:nth-child(5) { grid-area: 2 / 3; }
.m-Siralama .tbl td:nth-child(6) { grid-area: 2 / 4; }
.m-Siralama .tbl td:nth-child(7) { grid-area: 2 / 5; text-align: right; font-weight: 700; }
.m-Siralama .tbl td:nth-child(n+4):nth-child(-n+6) { text-align: left; font-size: 14px; }
.m-Siralama .tbl td:nth-child(n+4):nth-child(-n+7)::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 11px/1.2 var(--text); color: var(--fg-3); }
.m-Siralama .tbl td:nth-child(8), .m-Siralama .tbl td.act { display: none; }

/* para tabloları: işlem + tutar üstte, durum + zaman altta */
.m-Cuzdan .tbl tr, .m-Yatir .tbl tr, .m-Cek .tbl tr { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; }
.m-Cuzdan .tbl td:nth-child(2), .m-Yatir .tbl td:nth-child(2), .m-Cek .tbl td:nth-child(2) { grid-area: 1 / 1 / 2 / 3; }
.m-Cuzdan .tbl td:nth-child(4), .m-Yatir .tbl td:nth-child(4), .m-Cek .tbl td:nth-child(4) { grid-area: 1 / 3; text-align: right; font-weight: 700; font-size: 16px; align-self: start; }
.m-Cuzdan .tbl td:nth-child(3), .m-Yatir .tbl td:nth-child(3), .m-Cek .tbl td:nth-child(3) { grid-area: 2 / 1; }
.m-Cuzdan .tbl td:nth-child(1), .m-Yatir .tbl td:nth-child(1), .m-Cek .tbl td:nth-child(1) { grid-area: 2 / 2; font-size: 13px; }
.m-Cuzdan .tbl td:nth-child(5) { grid-area: 2 / 3; text-align: right; font-size: 13px; color: var(--fg-2); }
.m-Cuzdan .tbl td:nth-child(5)::before { content: attr(data-l) ' '; color: var(--fg-3); }
.m-Cuzdan .tbl td:nth-child(2) b, .m-Yatir .tbl td:nth-child(2) b { display: block; }
.mob .tbl tr td[colspan] { grid-area: auto / 1 / auto / -1; text-align: left; }

/* yönetim sunucu tablosu */
.m-Yonetim .tbl tr { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; }
.m-Yonetim .tbl td:nth-child(1) { grid-area: 1 / 1; font-weight: 700; }
.m-Yonetim .tbl td:nth-child(2) { grid-area: 1 / 2; font-size: 13px; color: var(--fg-2); }
.m-Yonetim .tbl td:nth-child(3) { grid-area: 1 / 3; justify-self: end; }
.m-Yonetim .tbl td:nth-child(4) { grid-area: 2 / 1 / 3 / 3; }
.m-Yonetim .tbl td:nth-child(5) { grid-area: 2 / 3; text-align: right; font-weight: 700; }
.m-Yonetim .tbl td:nth-child(6) { grid-area: 3 / 1; font-size: 13px; text-align: left; }
.m-Yonetim .tbl td:nth-child(7) { grid-area: 3 / 2; font-size: 13px; text-align: left; }
.m-Yonetim .tbl td:nth-child(6)::before, .m-Yonetim .tbl td:nth-child(7)::before { content: attr(data-l) ' '; color: var(--fg-3); }
.m-Yonetim .tbl td:nth-child(8) { grid-area: 3 / 3; justify-self: end; }

/* durum + düğme taşıyan satırlar: metin üstte, eylem altta */
.mob .rows li:not(:has(> .av)):has(> .st):has(> .btn) > .meta,
.mob .rows li:not(:has(> .av)):has(> .btn + .btn) > .meta { flex: 1 1 100%; }
.mob .rows li:not(:has(> .av)):has(> .st):has(> .btn) > .btn { margin-left: auto; }
.mob .rows li:not(:has(> .av)):has(> .btn + .btn) > .btn { flex: 1 1 0; }
.mob .doc { flex-wrap: wrap; row-gap: 10px; }
.mob .doc .grow { flex: 1 1 0; min-width: calc(100% - 78px); }
.mob .doc .btn { margin-left: auto; }

/* seçenek kutuları, limit satırları, tutar düğmeleri */
.mob .choice { flex-wrap: wrap; }
.mob .choice > div { flex: 1 1 auto; min-width: 0; }
.mob .choice .push { margin-left: 32px; }
.mob .lim > .rowx.sp { flex-wrap: nowrap; }
.mob .lim > .rowx.sp > :first-child { flex: 1 1 0; min-width: 0; }
.mob .lim > .rowx.sp > .rowx { flex: none; flex-wrap: nowrap; }
.m-Yatir .stakes, .m-Cek .stakes { flex: 1 1 100% !important; flex-wrap: nowrap; }
.m-Yatir .stakes .stake, .m-Cek .stakes .stake { flex: 1 1 0; min-width: 0; padding-left: 0; padding-right: 0; }
.m-Kurulum .opt.col2 { flex: 1 1 calc(50% - 8px); }
.mob .clip-b b { white-space: normal; }
.mob .choice { flex-wrap: nowrap; }
.mob .choice > div { flex: 1 1 0; min-width: 0; }
.mob .choice .push { margin-left: 0; }
.m-Cek .choice:has(> .push) { flex-wrap: wrap; }
.m-Cek .choice:has(> .push) > div { flex: 1 1 calc(100% - 32px); }
.m-Cek .choice:has(> .push) > .push { margin-left: 32px; }
.mob .rowx.sp > h3 + .sub { white-space: nowrap; }
.mob .rows li:has(> .av):has(> .amt):has(> .st) > .meta { flex: 1 1 calc(100% - 50px); }
.mob .rows li:has(> .av):has(> .amt):has(> .st) > .amt { margin-left: 48px; }
.mob .rows li:has(> .av):has(> .amt):has(> .st) > .st { margin-left: auto; }
