/* Acil Durum! arayüzü. Giriş sayfası yedili oyun standardındadır: menü solda, oyunun canlı görüntüsü sağda (bot teşkilatlar gece nöbetinde olaylara koşar). */
:root { --bg: #131a2a; --ink: #fff; --dim: #b9c6dc; --gold: #ffd166; --org: #f59f0b; --red: #f43f5e; --blue: #3d8bff; --grn: #3ddc84; --teal: #ff4d5e; --card: rgba(22, 31, 44, .97); --line: rgba(180, 210, 255, .16); --b1: #33465c; --b2: #1a2533; --ui: #121a2b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 500 16px/1.35 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- düğmeler ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 4px 16px 0; border: 0; border-radius: 16px; background: var(--b1); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; cursor: pointer; box-shadow: 0 5px 0 var(--b2), 0 8px 18px rgba(0, 0, 0, .3); transition: transform .08s, box-shadow .08s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b2); }
.btn.pri { background: linear-gradient(180deg, #ffe680, var(--gold) 45%, var(--org)); color: #3a2600; box-shadow: 0 5px 0 #a3650a, 0 8px 22px rgba(245, 159, 11, .4); }
.btn.pri:active { box-shadow: 0 1px 0 #a3650a; }
.btn.grn { background: linear-gradient(180deg, #99f6e4, var(--grn) 50%, #0d9488); color: #042f2e; box-shadow: 0 5px 0 #0f5e57, 0 8px 22px rgba(45, 212, 191, .3); }
.btn.grn:active { box-shadow: 0 1px 0 #0f5e57; }
.btn.red { background: linear-gradient(180deg, #f47c80, var(--red)); box-shadow: 0 5px 0 #8c1d22; }
.btn.xl { min-height: 66px; font-size: 26px; border-radius: 22px; }
.btn.sm { min-height: 44px; font-size: 14.5px; padding: 3px 10px 0; border-radius: 14px; }
.btn.xs { min-height: 34px; width: auto; font-size: 13px; padding: 2px 10px 0; border-radius: 11px; box-shadow: 0 3px 0 var(--b2); }
.btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: none; font-weight: 700; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn:focus-visible, input:focus-visible, .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- ana menü ---------- */
.menu { position: fixed; inset: 0 auto 0 0; width: min(430px, 100%); padding: max(14px, env(safe-area-inset-top)) 22px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; gap: 11px; overflow-y: auto; touch-action: pan-y; background: linear-gradient(90deg, rgba(22, 31, 44, .96) 62%, rgba(22, 31, 44, 0)); }
.back { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 22px; color: var(--dim); text-decoration: none; font-weight: 700; font-size: 14px; }
.logo { margin: 18px 0 0; font-size: clamp(50px, 14vw, 74px); line-height: .9; font-weight: 800; letter-spacing: .01em; color: #fff; transform: rotate(-3deg); text-shadow: 0 4px 0 #2b3d52, 0 8px 0 #0d141d, 0 12px 22px rgba(0, 0, 0, .45); }
.logo span { color: var(--teal); text-shadow: 0 4px 0 #8c1d22, 0 8px 0 #0d141d, 0 0 30px rgba(255, 77, 94, .6); animation: adSiren 1.3s steps(1) infinite; }
@keyframes adSiren { 0%, 100% { color: #ff4d5e; text-shadow: 0 4px 0 #8c1d22, 0 8px 0 #0d141d, 0 0 34px rgba(255, 77, 94, .75); } 50% { color: #5aa2ff; text-shadow: 0 4px 0 #1d3f8c, 0 8px 0 #0d141d, 0 0 34px rgba(90, 162, 255, .75); } }
.tagline { margin: 4px 0; color: var(--dim); font-weight: 700; font-size: 17px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lbtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 40px; } .lbtop .btn.xs { width: auto; padding: 0 12px; white-space: nowrap; }
.lbjoin { display: flex; gap: 6px; } .lbjoin input { width: 112px; min-height: 36px; padding: 4px 8px; font-size: 15px; letter-spacing: .12em; text-align: center; }
.joinrow { display: grid; grid-template-columns: 1fr 100px; gap: 9px; margin-top: 2px; }
input { min-height: 44px; padding: 3px 14px 0; border-radius: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); font-weight: 800; font-size: 17px; user-select: text; -webkit-user-select: text; min-width: 0; width: 100%; }
#code, .codein { text-align: center; letter-spacing: .3em; text-transform: uppercase; } #code::placeholder, .codein::placeholder { letter-spacing: .08em; font-size: 14px; color: #9d9bd6; }
#menuMsg { min-height: 20px; margin: 0; text-align: center; color: #ffb3a8; font-weight: 700; font-size: 14.5px; }
.fine { margin: 0; text-align: center; color: #9d9bd6; font-size: 13px; } .fine a { color: var(--gold); font-weight: 700; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

.fsbtn[hidden] { display: none; } .fsbtn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; } .fsbtn .i2, .fsbtn.on .i1 { display: none; } .fsbtn.on .i2 { display: inline; }
.mfs { position: absolute; top: max(6px, env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 2px 11px 0; border: 2px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, .25); color: var(--dim); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; } .mfs svg { width: 17px; height: 17px; stroke: var(--dim); }

/* ---------- pencereler ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 12px; background: rgba(4, 8, 18, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); touch-action: pan-y; }
.box { position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto; padding: 20px 18px 18px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); text-align: center; display: flex; flex-direction: column; gap: 10px; animation: pop .3s cubic-bezier(.2, 1.5, .4, 1); }
.box.wide { width: min(760px, 100%); }
.box > * { flex-shrink: 0; }
.box h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1; color: var(--gold); text-shadow: 0 3px 0 #a3650a; } .box h2.lose { color: #f47c80; text-shadow: 0 3px 0 #8c1d22; }
.box h3 { margin: 4px 0 0; font-size: 14px; color: var(--dim); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.box p { margin: 0; } .box .dim { color: var(--dim); font-size: 14.5px; } .box a { color: var(--gold); font-weight: 800; }
.x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--dim); font-size: 22px; cursor: pointer; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: 1 0 auto; min-width: 58px; padding: 6px 8px 3px; border-radius: 13px; border: 2px solid transparent; background: rgba(255, 255, 255, .09); text-align: center; cursor: pointer; line-height: 1.15; font-weight: 800; font-size: 14.5px; }
.chip small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 700; }
.chip.on { border-color: var(--gold); background: rgba(255, 210, 63, .18); }
.chip[disabled] { cursor: default; opacity: .75; } .chip[disabled]:not(.on) { opacity: .4; }
.tog { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tog::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 2px solid rgba(255, 255, 255, .5); } .tog.on::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px #133; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .stats.four { grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 8px 4px 5px; border-radius: 16px; background: rgba(255, 255, 255, .09); line-height: 1.15; } .stats small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 700; } .stats b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bigscore { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 44px; font-weight: 800; line-height: 1; } .bigscore span { font-size: 15px; padding: 2px 10px 0; border-radius: 10px; } .bigscore .r { background: var(--red); } .bigscore .b { background: var(--blue); }
.say { font-size: 17px; font-weight: 700; line-height: 1.3; } .say b { color: var(--gold); }
.codebig { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: .12em; color: var(--gold); text-shadow: 0 4px 0 #a3650a; user-select: all; -webkit-user-select: all; padding-left: .12em; }
.share3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.note { padding: 8px 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 14px; color: var(--dim); }
.how { text-align: left; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; } .how b { color: var(--gold); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; } .badges span { padding: 2px 10px 0; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; } .field2 label, .lbl { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; color: var(--dim); text-align: left; }
/* oda: takımlar */
.teams { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; text-align: left; }
.col { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .06); min-width: 0; }
.col.t1 { box-shadow: inset 0 3px 0 var(--red); } .col.t2 { box-shadow: inset 0 3px 0 var(--blue); } .col.t0 { box-shadow: inset 0 3px 0 #9aa4b2; }
.col > b { font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.pp { display: flex; align-items: center; gap: 4px; padding: 4px 6px 2px 9px; border-radius: 11px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: 14px; min-height: 34px; }
.pp span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp.me { background: rgba(255, 210, 63, .2); } .pp.off { opacity: .5; }
.pp button { flex: 0 0 auto; width: 24px; height: 26px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 12px; cursor: pointer; padding: 0; }
.pp button:hover { background: rgba(255, 255, 255, .28); }
.col .btn.xs { width: 100%; }
.lchat { display: flex; flex-direction: column; gap: 6px; }
.lchat .log { height: 110px; overflow-y: auto; text-align: left; font-size: 14px; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); user-select: text; -webkit-user-select: text; touch-action: pan-y; }
.lchat .log div { overflow-wrap: anywhere; } .lchat .log .sys { color: var(--dim); font-style: italic; }
.lchat form { display: grid; grid-template-columns: 1fr 80px; gap: 7px; } .lchat input { min-height: 40px; font-size: 15px; }
.rlist { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; touch-action: pan-y; }
.ritem { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 12px 5px; border-radius: 14px; background: rgba(255, 255, 255, .08); text-align: left; cursor: pointer; border: 0; width: 100%; }
.ritem:hover { background: rgba(255, 255, 255, .15); } .ritem b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ritem small { color: var(--dim); font-weight: 700; font-size: 12.5px; } .ritem em { font-style: normal; font-weight: 800; font-size: 15px; white-space: nowrap; }
.sect { display: flex; flex-direction: column; gap: 6px; }
details.more { text-align: left; } details.more summary { cursor: pointer; font-weight: 800; color: var(--dim); font-size: 14px; padding: 4px 0; }

/* ---------- lobi: oyuncular ---------- */
.seats { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.seat { display: flex; align-items: center; gap: 7px; padding: 5px 8px 3px; border-radius: 13px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 15px; min-height: 40px; }
.seat > i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .55); box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .25); }
.seat > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .seat.me { background: rgba(255, 210, 63, .18); } .seat.off { opacity: .5; }
.seat em { font-style: normal; font-size: 12px; padding: 1px 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .12); white-space: nowrap; } .seat em.rd { background: var(--teal); color: #042f2e; }
.seat button { flex: 0 0 auto; height: 28px; min-width: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 12.5px; cursor: pointer; padding: 0 6px; font-weight: 800; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tcols > div { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 16px; background: rgba(255, 255, 255, .05); min-width: 0; }
.tcols h4 { margin: 0; font-size: 14px; text-align: left; }
.cols { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.cbtn { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .5); cursor: pointer; padding: 0; box-shadow: inset -4px -6px 0 rgba(0, 0, 0, .25); }
.cbtn.on { outline: 3px solid var(--gold); outline-offset: 2px; } .cbtn[disabled] { opacity: .2; cursor: default; }
.rank { width: 100%; border-collapse: collapse; font-size: 13.5px; } .rank th { color: var(--dim); font-size: 11.5px; font-weight: 800; padding: 2px 3px; }
.rank td { padding: 4px 3px 2px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; } .rank td:first-child, .rank th:first-child { text-align: left; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.rank td i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; } .rank tr.w td { color: var(--gold); }
.mwrap { overflow-x: auto; }
.winner { font-size: 34px; font-weight: 800; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 24px var(--tc, transparent); overflow-wrap: anywhere; }

/* ---------- Son Sefer!: oyun ekranı ---------- */
.cinfo { margin: -4px 0 2px; text-align: center; color: var(--dim); font-size: 13.5px; font-weight: 700; }
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(22, 31, 44, .95), rgba(22, 31, 44, .82)); border-bottom: 1px solid var(--line); pointer-events: auto; z-index: 3; }
.tbtn { flex: 0 0 auto; width: 40px; height: 38px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .1); font-size: 18px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tbtn:hover { background: rgba(255, 255, 255, .18); }
.tbtn.pbt { display: none; }
.cochip { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 230px; padding: 3px 10px 1px 8px; border-radius: 11px; background: rgba(255, 255, 255, .07); font-weight: 800; font-size: 14.5px; line-height: 1.1; }
.cochip i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; }
.cochip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cochip small { display: block; color: var(--dim); font-size: 11.5px; }
.tstat { display: flex; flex-direction: column; line-height: 1.05; padding: 2px 8px 0; min-width: 0; }
.tstat small { color: var(--dim); font-size: 11px; font-weight: 700; white-space: nowrap; } .tstat b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tstat.money b { color: var(--gold); } .tstat b.neg { color: #ff8a8a; } .tstat b.pos { color: #7dff9a; }
.tw { font-size: 22px; } .speed { display: flex; gap: 3px; margin-left: auto; }
.speed button { min-width: 36px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .09); font-weight: 800; font-size: 14px; cursor: pointer; padding: 2px 6px 0; }
.speed button.on { background: var(--teal); color: #072a26; }
.tools { position: absolute; left: max(8px, env(safe-area-inset-left)); top: 66px; display: flex; flex-direction: column; gap: 5px; pointer-events: auto; z-index: 2; }
.tools button { width: 62px; padding: 6px 2px 3px; border: 2px solid transparent; border-radius: 14px; background: rgba(22, 31, 44, .9); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.tools button i { font-style: normal; font-size: 22px; } .tools button span { font-size: 11.5px; font-weight: 800; color: var(--dim); margin-top: 3px; }
.tools button:hover { background: rgba(40, 56, 76, .95); } .tools button.on { border-color: var(--teal); background: rgba(255, 77, 94, .2); } .tools button.on span { color: #fff; }
.hint { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); max-width: min(680px, calc(100vw - 100px)); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 5px 12px 3px; border-radius: 14px; background: rgba(22, 31, 44, .93); border: 1px solid var(--line); font-weight: 700; font-size: 14px; pointer-events: auto; z-index: 2; text-align: center; }
.hint b { color: var(--gold); } .hint .bad { color: #ff9a9a; }
#hintBtns { display: flex; gap: 6px; } #hintBtns:empty { display: none; }
.hint .btn.xs { min-height: 30px; }
.panel { position: absolute; right: max(8px, env(safe-area-inset-right)); top: 62px; bottom: 10px; width: 290px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: rgba(22, 31, 44, .92); border: 1px solid var(--line); pointer-events: auto; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
#mini { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; cursor: pointer; background: #2d6f8f; display: block; flex-shrink: 0; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; flex-shrink: 0; }
.tabs button { position: relative; padding: 4px 0 2px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); cursor: pointer; font-size: 17px; line-height: 1; display: flex; flex-direction: column; align-items: center; }
.tabs button span { font-size: 10.5px; font-weight: 800; color: var(--dim); margin-top: 2px; } .tabs button.on { background: rgba(255, 77, 94, .25); } .tabs button.on span { color: #fff; }
.tabs em { position: absolute; top: -4px; right: 2px; min-width: 17px; height: 17px; padding: 1px 4px 0; border-radius: 9px; background: var(--red); font-style: normal; font-size: 11px; font-weight: 800; line-height: 16px; }
.pbody { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; padding-right: 2px; min-height: 0; }
.pbody h4 { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.it { position: relative; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 7px 9px 5px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 13.5px; line-height: 1.25; cursor: pointer; text-align: left; border: 0; width: 100%; }
.it:hover { background: rgba(255, 255, 255, .12); } .it.on { box-shadow: inset 0 0 0 2px var(--red); } .it.done { opacity: .55; }
.it b { font-size: 14px; } .it small { color: var(--dim); font-weight: 700; font-size: 12px; } .it .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.it .warn { color: #ffb4a8; font-weight: 700; font-size: 12px; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.bar.red i { background: var(--red); } .bar.gold i { background: var(--gold); }
.pill { display: inline-block; padding: 1px 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pill.ok { background: rgba(61, 220, 132, .25); } .pill.bad { background: rgba(244, 63, 94, .3); } .pill.g { background: rgba(255, 209, 102, .25); }
.empty { color: var(--dim); font-size: 13px; text-align: center; padding: 10px 4px; }
.info { position: absolute; left: 80px; right: 310px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; padding: 9px 12px 8px; border-radius: 18px; background: rgba(22, 31, 44, .95); border: 1px solid var(--line); pointer-events: auto; z-index: 2; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-height: 46vh; overflow-y: auto; touch-action: pan-y; }
.info .ih { display: flex; align-items: center; gap: 8px; } .info .ih b { font-size: 17px; } .info .ih small { color: var(--dim); font-weight: 700; font-size: 12.5px; }
.info .ih .x { position: static; margin-left: auto; width: 32px; height: 32px; font-size: 18px; flex-shrink: 0; }
.info .grid { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 13.5px; } .info .grid span { color: var(--dim); } .info .grid b { color: #fff; }
.info .acts { display: flex; flex-wrap: wrap; gap: 6px; } .info .acts .btn { width: auto; flex: 0 0 auto; }
.info .warn { color: #ffb4a8; font-weight: 700; font-size: 13px; }
.wags { display: flex; flex-wrap: wrap; gap: 4px; }
.wag { display: flex; flex-direction: column; gap: 2px; width: 68px; padding: 4px 5px 3px; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 11.5px; font-weight: 800; text-align: center; }
.wag .bar { height: 5px; }
.cargo { display: flex; flex-wrap: wrap; gap: 4px; }
.guide { position: absolute; left: 80px; top: 66px; width: 250px; padding: 9px 11px 8px; border-radius: 16px; background: rgba(22, 31, 44, .93); border: 1px solid var(--line); pointer-events: auto; z-index: 2; font-size: 13.5px; }
.guide h5 { margin: 0 0 4px; font-size: 14px; color: var(--gold); display: flex; justify-content: space-between; } .guide h5 button { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 15px; }
.guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; } .guide li.ok { color: var(--dim); text-decoration: line-through; } .guide li.cur { color: #fff; font-weight: 800; }
#banner { position: absolute; top: 112px; left: 0; right: 0; text-align: center; pointer-events: none; z-index: 4; }
#banner span { display: inline-block; padding: 6px 22px 3px; border-radius: 16px; background: rgba(22, 31, 44, .92); border: 2px solid var(--gold); font-weight: 800; font-size: 19px; animation: toast 3.2s forwards; max-width: 90vw; }
#banner span.bad { border-color: var(--red); } #banner span.ok { border-color: var(--grn); }
#toast { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; z-index: 4; }
#toast div { padding: 3px 16px 0; border-radius: 13px; background: rgba(22, 31, 44, .92); font-weight: 800; font-size: 15px; animation: toast 3s forwards; max-width: 90vw; text-align: center; }
@keyframes toast { 0% { transform: scale(.6); opacity: 0; } 10% { transform: scale(1.06); opacity: 1; } 16% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
#chatLog { position: absolute; left: 80px; bottom: 120px; width: min(420px, 70vw); display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; font-weight: 700; pointer-events: none; z-index: 3; }
#chatLog div { align-self: flex-start; max-width: 100%; padding: 2px 10px 0; border-radius: 9px; background: rgba(22, 31, 44, .8); animation: fade 9s forwards; overflow-wrap: anywhere; }
#chatLog div b { margin-right: 4px; } #chatLog div.sys { color: var(--dim); font-weight: 600; font-style: italic; }
@keyframes fade { 85% { opacity: 1; } 100% { opacity: 0; } }
#chatForm { position: absolute; left: 80px; bottom: 80px; width: min(420px, calc(100vw - 20px)); pointer-events: auto; z-index: 4; }
#chatForm input { min-height: 40px; font-size: 15px; background: rgba(22, 31, 44, .95); }
#net { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); padding: 6px 16px 3px; border-radius: 12px; background: var(--red); font-weight: 800; z-index: 50; }
/* pencere içi: tren alma, rota, vagonlar */
.locos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.loco { padding: 7px 8px 5px; border-radius: 13px; border: 2px solid transparent; background: rgba(255, 255, 255, .08); text-align: left; cursor: pointer; font-size: 12.5px; line-height: 1.25; }
.loco b { display: block; font-size: 14px; } .loco.on { border-color: var(--gold); background: rgba(255, 209, 102, .15); } .loco[disabled] { opacity: .45; cursor: default; } .loco em { font-style: normal; color: var(--gold); font-weight: 800; }
.wpick { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; } .wpick button { padding: 5px 8px 3px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; font-weight: 800; font-size: 13px; } .wpick button:hover { background: rgba(255, 255, 255, .2); } .wpick button[disabled] { opacity: .35; }
.comp { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 36px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.comp span { padding: 3px 8px 1px; border-radius: 9px; background: rgba(255, 255, 255, .12); font-weight: 800; font-size: 13px; cursor: pointer; } .comp span.l { background: var(--teal); color: #072a26; cursor: default; }
.meter { text-align: left; font-size: 13px; font-weight: 700; color: var(--dim); } .meter .bar { height: 9px; margin-top: 3px; }
.ord { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.ord > div { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 6px 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 14px; }
.ord > div > b { flex: 1; min-width: 120px; } .ord .chip { flex: 0 0 auto; min-width: 0; padding: 3px 8px 1px; font-size: 12px; }
.ord .mini { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); cursor: pointer; font-size: 13px; }
.slider { display: flex; align-items: center; gap: 6px; } .slider b { min-width: 52px; text-align: center; font-size: 15px; }
.slider button { width: 30px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); cursor: pointer; font-weight: 800; }

/* ---------- dar ekran ve telefon ---------- */
@media (max-width: 900px) {
  .hide-s { display: none; }
  .tbtn.pbt { display: flex; }
  .panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: min(62vh, 520px); border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .2s; padding-bottom: max(8px, env(safe-area-inset-bottom)); z-index: 5; }
  body.pan .panel { transform: none; }
  #mini { width: 46%; align-self: center; }
  .info { left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); max-height: 42vh; }
  .tools { top: auto; left: 0; right: 0; bottom: 0; flex-direction: row; justify-content: center; gap: 4px; padding: 6px max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)); background: rgba(22, 31, 44, .94); border-top: 1px solid var(--line); overflow-x: auto; }
  .tools button { width: auto; flex: 1 1 0; max-width: 74px; min-width: 46px; box-shadow: none; }
  .guide { left: 8px; top: 58px; width: min(250px, 60vw); font-size: 12.5px; }
  .hint { top: auto; bottom: calc(68px + env(safe-area-inset-bottom)); max-width: calc(100vw - 16px); }
  body.sel .hint { bottom: auto; top: 56px; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  #chatLog, #chatForm { left: 8px; } #chatLog { bottom: 140px; } #chatForm { bottom: 76px; }
  .top { gap: 3px; padding-left: 6px; padding-right: 6px; } .tstat { padding: 2px 4px 0; } .tstat b { font-size: 14.5px; } .tstat small { font-size: 10px; }
  .cochip { max-width: 120px; font-size: 12.5px; } .cochip small { display: none; }
  .speed button { min-width: 30px; height: 32px; font-size: 12.5px; padding: 2px 3px 0; }
}
@media (max-width: 900px) {
  .guide li:not(.cur) { display: none; } .guide ol { list-style: none; padding-left: 0; }
  body.sel .guide { display: none; }
}
@media (max-width: 520px) {
  .cochip { display: none; } .top .hfs { display: none; }
  .tstat { padding: 2px 2px 0; flex: 1 1 auto; } .tstat b { font-size: 13.5px; } .tstat small { font-size: 9.5px; }
  .speed { gap: 2px; } .speed button { min-width: 27px; padding: 2px 2px 0; font-size: 12px; }
  .tools button span { font-size: 10px; } .tools button i { font-size: 19px; }
  .tbtn { width: 34px; }
}
@media (max-height: 520px) and (max-width: 900px) {
  .tools { top: 50px; bottom: 0; left: 0; right: auto; width: auto; flex-direction: column; justify-content: flex-start; padding: 4px 4px max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .tools button { flex: 0 0 auto; width: 54px; padding: 3px 2px 2px; } .tools button i { font-size: 17px; }
  .info { left: 68px; bottom: 6px; max-height: 58vh; }
  .hint { bottom: 8px; left: calc(50% + 30px); }
  body.sel .hint { top: 52px; bottom: auto; }
  .guide { left: 68px; top: 54px; }
  .panel { left: auto; width: min(340px, 60vw); height: auto; top: 50px; border-radius: 18px 0 0 18px; transform: translateX(105%); }
  #toast { bottom: 10px; }
  #chatLog, #chatForm { left: 68px; }
}

/* ---------- Şebeke!'ye özel ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tstat b.warn { color: #ffc46b; }
.bar.ok i { background: var(--grn); } .bar.warn i { background: #ffb020; } .bar.bad i { background: var(--red); }
.it .bad, .info .bad, .bad { color: #ff9a9a; } .okc { color: #7dff9a; } .info b.warn { color: #ffc46b; }
.dim.sm { font-size: 13px; margin: 2px 0 0; }
.tabs em { font-style: normal; }
#vbN { position: absolute; top: 1px; right: 4px; min-width: 17px; height: 17px; padding: 1px 4px 0; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; }
.views { position: absolute; left: max(8px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; pointer-events: auto; z-index: 2; }
.views button { width: 62px; height: 38px; border: 2px solid transparent; border-radius: 12px; background: rgba(22, 31, 44, .9); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.views button i { font-style: normal; font-size: 19px; } .views button span { display: none; }
.views button:hover { background: rgba(40, 56, 76, .95); } .views button.on { border-color: #7fd6ff; background: rgba(127, 214, 255, .2); }
@media (max-height: 760px) and (min-width: 901px) { .views { flex-direction: row; left: 80px; } }
@media (max-width: 1200px) { .hide-m { display: none; } }
@media (max-width: 900px) {
  .views { left: auto; right: max(8px, env(safe-area-inset-right)); bottom: auto; top: 58px; }
  .views button { width: 42px; height: 34px; }
  body.sel .views { display: none; }
}
@media (max-height: 520px) and (max-width: 900px) { .views { top: 54px; flex-direction: row; right: 8px; } }
@media (max-width: 520px) { .hide-xs { display: none; } .speed button { padding-left: 6px; padding-right: 6px; } }

/* ---------- Acil Durum!'a özel ---------- */
.incw { position: absolute; left: 80px; top: 66px; width: 236px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; gap: 4px; pointer-events: auto; z-index: 2; }
.incw > button.ih2 { display: flex; align-items: center; gap: 6px; padding: 5px 10px 3px; border: 0; border-radius: 12px; background: rgba(22, 31, 44, .94); cursor: pointer; font-weight: 800; font-size: 14px; text-align: left; }
.incw > button.ih2 em { margin-left: auto; min-width: 22px; height: 20px; padding: 1px 6px 0; border-radius: 10px; background: var(--red); font-style: normal; font-size: 12.5px; line-height: 19px; text-align: center; }
body.incx .incs { display: none; }
.incs { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; touch-action: pan-y; min-height: 0; padding-right: 2px; }
.inc { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 8px 4px 7px; border: 2px solid transparent; border-left: 5px solid var(--u); border-radius: 12px; background: rgba(22, 31, 44, .92); cursor: pointer; text-align: left; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); flex-shrink: 0; }
.inc:hover { background: rgba(40, 56, 76, .95); } .inc.on { border-color: #fff; border-left-color: var(--u); }
.inc > i { font-style: normal; font-size: 22px; line-height: 1; }
.inc > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inc b { font-size: 13.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .inc small { font-size: 11px; color: var(--dim); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inc em { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; } .inc em u { display: block; height: 100%; background: var(--u); }
.inc s { text-decoration: none; font-size: 11.5px; font-weight: 800; color: #ffb48a; }
.inc.crit { animation: adCrit 1s infinite; }
@keyframes adCrit { 50% { box-shadow: 0 0 0 2px rgba(229, 72, 85, .55), 0 3px 14px rgba(229, 72, 85, .45); } }
.incs .none { margin: 0; padding: 6px 10px 4px; border-radius: 12px; background: rgba(22, 31, 44, .85); font-size: 13px; color: #9ff0bf; font-weight: 700; }
.guide { left: 326px; }
.info { left: 326px; }
.info .urg { padding: 1px 8px 0; border-radius: 9px; color: #1a1300; font-weight: 800; font-size: 12px; }
.info .need { display: flex; flex-wrap: wrap; gap: 5px; } .info .need span { padding: 2px 8px 0; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .08); }
.info .need .ok { background: rgba(61, 220, 132, .2); color: #9ff0bf; } .info .need .miss { background: rgba(244, 63, 94, .22); color: #ffb4bf; } .info .need .go { background: rgba(90, 162, 255, .2); color: #bcd6ff; }
.info b.warn, .tstat b.warn { color: #ffc46b; }
.bars { display: flex; align-items: center; gap: 8px; } .bars span { display: flex; align-items: center; gap: 3px; flex: 1; font-size: 12px; } .bars em { flex: 1; } .bars small { flex: 0 0 auto; }
.bars .bar { height: 6px; margin: 0; }
.it.on { border-color: rgba(255, 77, 94, .55); }
.mh { margin: 8px 0 2px; font-size: 15px; } .mh small { color: var(--dim); font-weight: 700; font-size: 12.5px; }
.stars { display: flex; justify-content: center; gap: 6px; font-size: 44px; line-height: 1; } .stars i { font-style: normal; color: rgba(255, 255, 255, .15); } .stars i.on { color: var(--gold); text-shadow: 0 0 18px rgba(255, 209, 102, .6); }
.rep td:last-child { text-align: right; font-weight: 800; }
@media (max-height: 760px) and (min-width: 901px) { .views { flex-direction: column; left: max(8px, env(safe-area-inset-left)); } }
@media (max-width: 1200px) { .incw { width: 200px; } .guide, .info { left: 290px; } }
@media (max-width: 900px) {
  .incw { left: 0; right: 0; top: 52px; width: auto; max-height: none; flex-direction: row; align-items: stretch; padding: 0 max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); }
  .incw > button.ih2 { flex: 0 0 auto; flex-direction: column; justify-content: center; padding: 3px 6px 1px; font-size: 18px; } .incw > button.ih2 span { display: none; } .incw > button.ih2 em { margin: 0; }
  .incs { flex-direction: row; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; flex: 1; padding: 0 0 2px; }
  .inc { width: 150px; padding: 3px 6px 3px 5px; } .inc > i { font-size: 18px; } .inc b { font-size: 12px; } .inc small { display: none; } .inc s { position: absolute; top: 1px; right: 4px; font-size: 10px; }
  .incs .none { white-space: nowrap; }
  .views { top: 108px; }
  .guide { left: 8px; top: 110px; }
  .info { left: 8px; }
  #banner { top: 118px; }
}
@media (max-height: 520px) and (max-width: 900px) { .incw { left: 68px; right: 60px; top: 48px; } .views { top: 98px; } .guide { left: 68px; top: 100px; } .info { left: 68px; } }
