/* Manageria — night pitch green + gold (design: ~/Desktop/manageria-gorsel-plani.txt §1) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #0B1F1A; --panel: rgba(18, 48, 42, .88); --panel-2: rgba(10, 30, 25, .92); --line: #2C5A4E;
  --gold: #E8B64A; --cream: #F4EDE0; --muted: #a9bdb4; --green: #2FBF71; --blue: #1E8FD6; --red: #E5533D; --yellow: #F2C230;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--cream); font: 16px/1.45 var(--body); }
.bg { position: fixed; inset: 0; z-index: -1; background: url(/img/bg-stadyum.webp) center / cover no-repeat; filter: blur(6px) brightness(.45) saturate(1.1); transform: scale(1.05); }
a { color: var(--gold); }
h1, h2, h3, .head { font-family: var(--head); font-weight: 800; letter-spacing: .02em; margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.logo { font-family: var(--head); font-weight: 800; font-size: clamp(42px, 8vw, 72px); line-height: 1; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff3c8 0%, #E8B64A 45%, #a8781f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #0b3b2c) drop-shadow(0 6px 14px rgba(0,0,0,.5)); text-decoration: none; }
.logo.small { font-size: 32px; }

/* buttons */
.btn { text-decoration: none; display: inline-block; font: 700 17px var(--head); letter-spacing: .03em; border: 0; border-radius: 9px; padding: 10px 18px; cursor: pointer; color: #fff;
  background: var(--blue); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.btn.green { background: var(--green); color: #062314; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--cream); box-shadow: none; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.on { background: var(--gold); color: #2a1d00; }

/* gate: landing + login */
.gate { padding: 24px 16px 60px; }
.gate-hero { max-width: 980px; margin: 4vh auto 0; display: grid; grid-template-columns: 300px 1fr; align-items: end; gap: 12px; }
.gate-hoca { width: 300px; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.gate-box { padding: 26px; text-align: center; }
.slogan { font: 700 24px var(--head); margin: 8px 0 14px; }
.gate-tabs { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.gate-form { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; text-align: left; }
.gate-field { display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.gate-field input { font: 16px var(--body); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--cream); }
.gate-field small { color: var(--muted); }
.gate-msg { color: #ff9a8a; min-height: 1em; margin: 0; }
.gate-links { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: 14px; }
.features { max-width: 980px; margin: 40px auto 0; text-align: center; }
.features h2 { font-size: 40px; color: var(--gold); }
.lead { max-width: 700px; margin: 8px auto 20px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.feature img { width: 92px; height: 92px; object-fit: contain; }
.feature h3 { font-size: 24px; margin: 6px 0; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.countdown { display: flex; gap: 10px; justify-content: center; margin: 10px 0; font: 800 34px var(--head); color: var(--gold); }

/* top bar + menu */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; padding: 0 0 0; min-height: 64px; background: linear-gradient(180deg, #0b2a22, #08201a); border-bottom: 2px solid var(--gold); }
/* light plates left (club) and right (manager), with slanted inner edges */
.top-club, .top-user { background: linear-gradient(180deg, #fbf6ea 0%, #e9dfca 55%, #d8cbb0 100%); color: #1b2a25; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); padding: 8px 18px; }
.top-club { clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); padding-right: 40px; justify-self: start; min-width: min(360px, 42vw); }
.top-user { clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); padding-left: 40px; justify-self: end; min-width: min(360px, 42vw); }
.top .logo.small { align-self: center; }
.top-club small { color: #5d6b65 !important; }
.top-club { display: flex; gap: 10px; align-items: center; min-width: 0; }
.top-club b { display: block; font: 800 20px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #13241f; }
.top-club small { color: var(--muted); }
.top-user { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.money { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font: 700 16px var(--head); }
.money img { width: 22px; height: 22px; }
.money.kasa { background: #145c3c; color: #eaf7ef; }
.money.kagat { background: #7a5410; color: #ffe7a6; }
.user { font-weight: 700; color: #13241f; }
.menu { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; background: rgba(8,24,20,.9); border-bottom: 1px solid var(--line); padding: 0 10px; }
.menu > div { position: relative; }
.menu > div > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--cream); text-decoration: none; font: 700 17px var(--head); letter-spacing: .04em; text-transform: uppercase; }
.menu > div > a img { width: 26px; height: 26px; object-fit: contain; }
.menu > div > a.on, .menu > div > a:hover { color: var(--gold); }
.sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 6px; z-index: 20; display: none; }
.menu > div:hover .sub, .menu > div:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 10px; color: var(--cream); text-decoration: none; border-radius: 6px; }
.sub a:hover { background: rgba(255,255,255,.06); color: var(--gold); }
.sub a .soon { font-size: 12px; color: var(--muted); margin-left: 6px; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

/* home */
body.home .bg { filter: blur(2px) brightness(.62) saturate(1.15); }
.matchday.bare { background: none; border: 0; box-shadow: none; padding-top: 24px; padding-bottom: 26px; }
.matchday.bare .side b, .matchday.bare .clock, .matchday.bare .muted, .matchday.bare .ref, .matchday.bare small, .matchday.bare a { text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9); }
.matchday.bare .side small, .matchday.bare .ref, .matchday.bare .mid small { color: #e6efe9; }
.matchday.bare .tag { background: rgba(8,24,20,.85); }
.matchday.bare .vs .big { filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)); }
.matchday { text-align: center; padding: 18px 10px 10px; }
.matchday .tag { display: inline-block; background: #0e2a23; border: 1px solid var(--gold); color: var(--gold); padding: 3px 12px; border-radius: 6px; font: 800 16px var(--head); letter-spacing: .1em; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.vs .side { display: grid; justify-items: center; gap: 6px; }
.vs .side b { font: 800 clamp(20px, 3vw, 30px) var(--head); text-transform: uppercase; }
.vs .side small { color: var(--muted); }
.vs .mid { display: grid; justify-items: center; gap: 2px; }
.vs .big { font: 800 70px var(--head); line-height: 1; background: linear-gradient(180deg,#fff3c8,#E8B64A 50%,#a8781f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs .clock { font: 800 26px var(--head); }
.vs .score { font: 800 64px var(--head); color: var(--cream); }
.ref { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.card { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card:hover { border-color: var(--gold); }
.card img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.card small { display: block; color: var(--gold); font: 800 15px var(--head); letter-spacing: .05em; text-transform: uppercase; }
.card b { font: 800 22px var(--head); text-transform: uppercase; }
.card .bar { height: 10px; border-radius: 6px; background: #0a1a16; overflow: hidden; margin-top: 4px; }
.card .bar i { display: block; height: 100%; background: var(--green); }
.mini-table { padding: 8px 10px; }
.mini-table .row { display: grid; grid-template-columns: 24px 26px 1fr 36px; gap: 6px; align-items: center; padding: 3px 0; }
.mini-table .row.me { color: var(--gold); font-weight: 600; }

/* pages */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-head h2 { font-size: 34px; }
.page-head img { width: 54px; height: 54px; object-fit: contain; }
.grid-leagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.league-card { padding: 18px; text-align: center; cursor: pointer; }
.league-card:hover { border-color: var(--gold); }
.league-card h3 { font-size: 28px; }
.league-card .tier { color: var(--gold); font: 800 15px var(--head); letter-spacing: .12em; }
.grid-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.club-card { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; text-align: center; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--cream); font: inherit; }
.club-card:hover:not(:disabled) { border-color: var(--gold); }
.club-card:disabled { opacity: .5; cursor: not-allowed; }
.club-card b { font: 800 19px var(--head); }
.club-card small { color: var(--gold); font-style: italic; }
.club-card .mgr { color: var(--muted); font-size: 13px; }
.crest { display: inline-block; width: 80px; height: 94px; }
.crest.sm { width: 34px; height: 40px; }
.crest.xs { width: 22px; height: 26px; vertical-align: middle; }
.crest.lg { width: 130px; height: 152px; }
.crest svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }

table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { font: 800 14px var(--head); letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 7px 6px; border-bottom: 1px solid rgba(44,90,78,.45); }
table.t tr.me td { color: var(--gold); font-weight: 600; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.form-dots i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 2px; font: 700 11px/16px var(--body); text-align: center; color: #062314; font-style: normal; }
.form-dots .G { background: var(--green); } .form-dots .B { background: #9aa; } .form-dots .M { background: var(--red); color: #fff; }
.pos { display: inline-block; min-width: 38px; text-align: center; padding: 1px 6px; border-radius: 5px; font: 800 13px var(--head); background: #1f4a3f; }
.pos.KL { background: #a8781f; } .pos.STP, .pos.BEK { background: #1E5AA8; } .pos.DOS, .pos.OS, .pos.OOS { background: #1d7a4c; } .pos.KNT, .pos.FV { background: #b0402f; }
.cond { display: inline-block; width: 60px; height: 8px; border-radius: 5px; background: #0a1a16; overflow: hidden; vertical-align: middle; }
.cond i { display: block; height: 100%; }
.badge { display: inline-block; font-size: 12px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.badge.inj { background: var(--red); } .badge.ban { background: var(--yellow); color: #222; }
.scroll { overflow-x: auto; }

/* match */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 7px 10px; border-bottom: 1px solid rgba(44,90,78,.4); }
.lines li .min { font: 800 18px var(--head); color: var(--muted); text-align: right; }
.lines li.goal, .lines li.penaltyGoal { background: rgba(232,182,74,.12); font-weight: 600; }
.lines li.goal .min, .lines li.penaltyGoal .min { color: var(--gold); }
.lines li.red .min { color: var(--red); } .lines li.yellow .min { color: var(--yellow); }
.lines li.kickoff, .lines li.half, .lines li.full { color: var(--gold); font-family: var(--head); font-size: 18px; }
.lines li.s1 { text-align: right; grid-template-columns: 1fr 40px; } .lines li.s1 .min { order: 2; text-align: left; }
.stats-row { display: grid; grid-template-columns: 50px 1fr 50px; gap: 10px; align-items: center; margin: 6px 0; text-align: center; }
.stats-row .bar2 { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #0a1a16; }
.stats-row .bar2 i:first-child { background: var(--gold); } .stats-row .bar2 i:last-child { background: var(--blue); }

/* lineup */
.page-head .inline { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); }
select { font: 15px var(--body); padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--cream); }
.ok-msg { color: var(--green); }
.lineup-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 10px; align-items: start; }
.pitch { position: relative; aspect-ratio: 68 / 88; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.25);
  background: repeating-linear-gradient(180deg, #2f8a4a 0 8%, #2a7f44 8% 16%); box-shadow: inset 0 0 60px rgba(0,0,0,.35); }
.pitch-lines { position: absolute; inset: 3%; border: 2px solid rgba(255,255,255,.55); }
.pitch-lines::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,.55); }
.pitch-lines::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; transform: translate(-50%, -50%); }
.spot { position: absolute; transform: translate(-50%, -50%); }
.chip { width: 104px; min-height: 64px; display: grid; justify-items: center; gap: 1px; padding: 5px 4px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  background: rgba(8,24,20,.86); border: 2px solid var(--green); box-shadow: 0 4px 10px rgba(0,0,0,.4); user-select: none; position: relative; }
.chip b { font: 700 14px var(--head); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.chip small { font-size: 11px; color: var(--muted); }
.chip em { font-style: normal; font-size: 10px; color: var(--gold); line-height: 1.1; }
.chip .shirt { position: absolute; top: -10px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #2a1d00; font: 800 13px/24px var(--head); }
.chip .cond { width: 70px; height: 5px; }
.chip.fit-side { border-color: #a6d65a; } .chip.fit-near { border-color: var(--yellow); } .chip.fit-bad { border-color: var(--red); }
.chip.out { opacity: .55; outline: 2px dashed var(--red); }
.chip.sel { box-shadow: 0 0 0 3px var(--gold), 0 4px 14px rgba(0,0,0,.5); }
.chip.small { width: 92px; min-height: 58px; border-color: var(--line); }
.bench { margin-top: 10px; }
.bench h4, .squad-list h4 { font-size: 18px; margin: 0 0 8px; }
.bench-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bench-row .chip { width: auto; }
.subs-rule { padding: 10px 12px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.squad-list { padding: 10px; max-height: 70vh; overflow: auto; }
.squad-list .row { display: grid; grid-template-columns: 44px 1fr 30px 64px 46px; gap: 6px; align-items: center; padding: 5px 4px; border-bottom: 1px solid rgba(44,90,78,.45); cursor: pointer; }
.squad-list .row:hover { background: rgba(255,255,255,.05); }
.squad-list .row.is-xi .nm { color: var(--gold); }
.squad-list .row.is-bench .nm { color: #cfe3d9; }
.squad-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-info { padding: 12px 14px; margin-bottom: 12px; }
.fit-text.fit-ok { color: var(--green); } .fit-text.fit-side { color: #a6d65a; } .fit-text.fit-near { color: var(--yellow); } .fit-text.fit-bad { color: var(--red); }
.check { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tactic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tactic { padding: 16px; }
.seg { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }

/* transfer */
.market-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 12px 16px; margin-bottom: 10px; }
.market-bar small { display: block; }
.market-bar b { font: 800 22px var(--head); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.filters .muted { font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; } .stars i { color: #3a5a50; font-style: normal; }
.ks { white-space: nowrap; } .ks span { display: inline-grid; justify-items: center; margin-right: 8px; font-weight: 600; } .ks small { font: 700 10px var(--head); color: var(--muted); }
table.market td { vertical-align: middle; }
.bid-head { display: flex; gap: 10px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 12px 0; }
.stat-grid > div { display: grid; grid-template-columns: 80px 1fr 28px; gap: 6px; align-items: center; }
.stat-grid small { font: 700 12px var(--head); color: var(--muted); }
.statbar { height: 8px; background: #0a1a16; border-radius: 5px; overflow: hidden; } .statbar i { display: block; height: 100%; background: var(--gold); }
.bid-input, .price-input { font: 700 18px var(--body); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--cream); }
.price-input { width: 120px; font-size: 15px; padding: 6px 8px; }
.sell-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sell-actions .btn { padding: 6px 10px; font-size: 15px; }

.fin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 12px; align-items: start; }

.focus-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 10px 0 14px; }
.focus { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; cursor: pointer; color: var(--cream); font: inherit; text-align: center; }
.focus img { width: 56px; height: 56px; object-fit: contain; }
.focus b { font: 800 20px var(--head); }
.focus small { color: var(--muted); font-size: 12px; }
.focus.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0,0,0,.35); }

.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.fac { padding: 14px; display: grid; gap: 6px; align-content: start; }
.fac img { width: 100%; height: 110px; object-fit: contain; }
.fac h3 { font-size: 24px; }
.fac p { margin: 0; font-size: 14px; }
.lvl { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.lvl i { height: 8px; border-radius: 3px; background: #0a1a16; } .lvl i.on { background: var(--gold); }
.fac-buy { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.build-bar { padding: 10px 14px; margin: 8px 0; border-color: var(--gold); }
.youth { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px; margin: 8px 0; border-color: var(--gold); align-items: center; }
.youth img { width: 130px; }
.tag-small { color: var(--gold); font: 800 14px var(--head); letter-spacing: .12em; }
.card.notice { margin-top: 14px; border-color: var(--gold); }

.news { padding: 10px 14px; margin-top: 14px; } .news p { margin: 6px 0; }
.small-btn { padding: 3px 10px; font-size: 14px; }

.product { padding: 14px; display: grid; gap: 6px; align-content: start; }
.product img { width: 100%; height: 100px; object-fit: contain; }
.product h3 { font-size: 22px; } .product p { margin: 0; font-size: 14px; }
.product.soon { opacity: .7; }
.product.hero-product { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,182,74,.5), 0 10px 30px rgba(0,0,0,.35); }
.price { font: 800 20px var(--head); color: var(--gold); }
.crest-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin: 8px 0 12px; }
.crest-preview { display: grid; place-items: center; }
.crest-editor { display: grid; gap: 6px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opt { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; cursor: pointer; }
.opt.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; }
.swatch.big { width: auto; height: 32px; border-radius: 8px; padding: 0 10px; font: 700 13px var(--head); color: #fff; text-shadow: 0 1px 2px #000; }
.swatch.on { outline: 3px solid var(--gold); }
.avatar-opt { width: 74px; height: 74px; border-radius: 50%; padding: 0; overflow: hidden; border: 2px solid var(--line); background: #133; cursor: pointer; }
.avatar-opt.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.avatar-opt.locked { opacity: .45; position: relative; }
.avatar-opt img { width: 100%; height: 100%; object-fit: cover; }
.user { display: inline-flex; align-items: center; gap: 8px; }
.user .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #133; border: 2px solid var(--gold); }
.prem { background: linear-gradient(180deg,#fff3c8,#E8B64A); color: #3a2600; font: 800 11px var(--head); padding: 2px 6px; border-radius: 5px; letter-spacing: .08em; }

.scoreboard { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(8,24,20,.95); }
.sb-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-team b { font: 800 clamp(16px, 2.6vw, 26px) var(--head); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-team.away { justify-content: flex-end; text-align: right; }
.sb-mid { display: grid; justify-items: center; }
.sb-score { font: 800 clamp(30px, 6vw, 52px) var(--head); line-height: 1; background: linear-gradient(180deg,#fff3c8,#E8B64A 55%,#a8781f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-min { font: 800 15px var(--head); color: var(--green); letter-spacing: .05em; }
.match-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.match-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.feed-box { max-height: 70vh; overflow: auto; padding: 6px; }
.feed { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 46px 26px 1fr; gap: 8px; align-items: start; padding: 9px 8px; border-bottom: 1px solid rgba(44,90,78,.4); animation: evIn .35s ease; }
@keyframes evIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ev .min { font: 800 17px var(--head); color: var(--muted); text-align: right; padding-top: 1px; }
.ev .txt { line-height: 1.4; }
.ev.side1 { background: rgba(30,143,214,.06); }
.ev.goal, .ev.penaltyGoal { background: linear-gradient(90deg, rgba(232,182,74,.28), rgba(232,182,74,.06)); font-weight: 600; }
.ev.goal .min, .ev.penaltyGoal .min { color: var(--gold); }
.ev.whistle { display: block; text-align: center; color: var(--gold); font: 700 17px var(--head); letter-spacing: .03em; background: rgba(0,0,0,.18); }
.tag2 { display: inline-block; margin-right: 6px; font: 800 12px var(--head); letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.tag2.g { background: var(--gold); color: #2a1d00; } .tag2.x { background: #3a4b45; color: #fff; } .tag2.s { background: #1E5AA8; color: #fff; }
.tag2.yc, .tag2.rc { width: 11px; height: 15px; padding: 0; border-radius: 2px; vertical-align: -2px; } .tag2.yc { background: var(--yellow); } .tag2.rc { background: var(--red); }

.tour { position: fixed; inset: 0; z-index: 100; }
.tour-hole { position: fixed; border-radius: 12px; border: 3px solid var(--gold); box-shadow: 0 0 0 9999px rgba(0,0,0,.62), 0 0 24px rgba(232,182,74,.8); transition: all .35s ease; pointer-events: none; }
.tour-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 40px; margin: -2px 0 0 -3px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); z-index: 2; }
.tour-cursor.grab { transform-origin: 3px 2px; scale: .9; }
.tour-ripple { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--gold); animation: ripple .65s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.tour-bubble { position: fixed; display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 12px 14px; z-index: 3; border-color: var(--gold); background: rgba(10,30,25,.97); }
.tour-bubble img { width: 74px; align-self: end; }
.tour-bubble b { font-size: 18px; color: var(--gold); }
.tour-bubble p { margin: 4px 0 10px; }
.tour-btns { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tour-btns small { margin-right: auto; }
.tour-btns .btn { padding: 6px 12px; font-size: 15px; }
.help-btn { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: var(--blue); color: #fff; font: 800 24px var(--head); cursor: pointer; box-shadow: 0 6px 14px rgba(0,0,0,.45); }

.invite-box { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px 14px; margin: 10px 0 4px; border-color: var(--gold); }
.invite-box img { width: 64px; }
.morale { font-size: 18px; }

.ties { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px; }
.tie { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.18); font-size: 14px; }
.tie.mine { outline: 2px solid var(--gold); }
.tie .won { color: var(--gold); font-weight: 600; }
.tie-score { font: 800 16px var(--head); text-align: center; white-space: nowrap; }

.press-say { display: grid; gap: 6px; margin: 10px 0; }
.quote { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 14px; margin-bottom: 8px; align-items: start; }
.quote .q { font: 600 19px var(--body); margin: 0 0 4px; font-style: italic; }
.chat-list { height: 55vh; overflow: auto; padding: 10px 12px; }
.chat-line { padding: 4px 0; border-bottom: 1px solid rgba(44,90,78,.3); word-wrap: break-word; }
.chat-line.mine b { color: var(--gold); }

a.plain { color: inherit; text-decoration: none; } a.plain:hover { color: var(--gold); text-decoration: underline; }

.desk h3 { font-size: 20px; margin: 14px 0 6px; color: var(--gold); }

.opt.locked { opacity: .45; position: relative; } .opt.locked::after { content: '🔒'; position: absolute; right: -4px; top: -6px; font-size: 12px; }
.kit-prev svg { width: 100px; height: 100px; } .kit-mini svg { width: 38px; height: 38px; display: block; }
.chip .shirt.kit { background: none; width: 30px; height: 30px; top: -14px; left: -10px; } .chip .shirt.kit svg { width: 30px; height: 30px; display: block; }
.mgr-name { font-size: 12px; color: var(--muted); } .mgr-title { font-size: 11px; color: var(--gold); font-style: italic; }
/* stadium themes (shop item): on every page; the home page shows the stadium clearer */
body[data-theme="altin"] .bg { filter: blur(6px) brightness(.55) sepia(.55) saturate(1.8) hue-rotate(-14deg); }
body[data-theme="renkli"] .bg { filter: blur(6px) brightness(.55) saturate(2.4) hue-rotate(28deg); }
body.home[data-theme="altin"] .bg { filter: blur(2px) brightness(.78) sepia(.55) saturate(1.8) hue-rotate(-14deg); }
body.home[data-theme="renkli"] .bg { filter: blur(2px) brightness(.74) saturate(2.4) hue-rotate(28deg); }
body[data-theme="altin"]::before, body[data-theme="renkli"]::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body[data-theme="altin"]::before { background: radial-gradient(ellipse 60% 45% at 18% 0%, rgba(255,214,120,.45), transparent 70%), radial-gradient(ellipse 60% 45% at 82% 0%, rgba(255,214,120,.45), transparent 70%); }
body[data-theme="renkli"]::before { background: radial-gradient(ellipse 50% 40% at 15% 10%, rgba(229,83,61,.35), transparent 70%), radial-gradient(ellipse 50% 40% at 85% 10%, rgba(30,143,214,.38), transparent 70%), radial-gradient(ellipse 60% 35% at 50% 100%, rgba(47,191,113,.3), transparent 70%); }

.train-left { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); } .dots i.on { background: var(--gold); }
.active-sess { display: inline-block; margin: 2px 12px 2px 0; }

.logo-img { margin: 0; line-height: 0; }
.logo-img img { width: min(420px, 80vw); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.logo-img.small { align-self: center; justify-self: center; } .logo-img.small img { width: 190px; }
.tier-cup { width: 70px; height: 70px; object-fit: contain; display: block; margin: 0 auto 4px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-box { width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 22px; position: relative; }
.modal-box .x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.contract { background: #fbf6ea; color: #1b2a25; border: 10px solid #6b1f1f; border-image: linear-gradient(135deg,#7a2a22,#4e1714) 1; text-align: center; }
.contract h3 { color: #1b2a25; font-size: 30px; }
.contract .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0; }
.contract .kv small { display: block; color: #6b7a74; }
.contract .rows div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e3dccb; }
.welcome { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: end; }
.welcome img { width: 170px; }
.checklist { list-style: none; padding: 0; margin: 10px 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border: 2px solid var(--gold); border-radius: 5px; }
.soon-panel { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 24px; }
.soon-panel img { width: 220px; }

@media (max-width: 760px) {
  .gate-hero { grid-template-columns: 1fr; }
  .gate-hoca { width: 160px; margin: 0 auto -10px; }
  .feature-grid, .cards { grid-template-columns: 1fr; }
  .top { grid-template-columns: 1fr auto; }
  .top-club, .top-user { min-width: 0; padding: 6px 10px; }
  .top-club { padding-right: 28px; } .top-user { padding-left: 24px; }
  .top .logo.small, .top .logo-img.small { display: none; }
  .top { padding: 8px 10px; }
  .top-club b { font-size: 17px; max-width: 46vw; }
  .top-user { gap: 6px; }
  .top-user .user { display: none; }
  .money { padding: 3px 8px; font-size: 14px; }
  .money img { width: 18px; height: 18px; }
  .menu > div > a { padding: 8px 8px; font-size: 14px; }
  .menu > div > a span { display: none; }
  .sub { position: fixed; left: 8px; right: 8px; top: auto; }
  .vs .big { font-size: 40px; }
  .vs { grid-template-columns: 1fr 1.25fr 1fr; gap: 4px; }
  .vs .crest.lg { width: 74px; height: 88px; }
  .vs .side b { font-size: 16px; }
  .vs .clock { font-size: 19px; white-space: nowrap; }
  .vs .ref, .vs .mid small { font-size: 12px; text-align: center; }
  .top-club small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  .top-club > div { min-width: 0; }
  .top-club .crest.sm { width: 28px; height: 33px; flex: none; }
  .welcome, .soon-panel { grid-template-columns: 1fr; }
  .lineup-grid, .tactic-grid, .match-grid { grid-template-columns: 1fr; }
  .feed-box { max-height: none; }
  .ev { grid-template-columns: 40px 22px 1fr; gap: 6px; padding: 8px 4px; font-size: 15px; }
  .scoreboard { padding: 8px; gap: 6px; } .sb-team { gap: 6px; } .sb-team .crest.sm { width: 26px; height: 30px; }
  .market-bar { grid-template-columns: 1fr 1fr !important; }
  .fin-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .youth { grid-template-columns: 1fr; } .youth img { width: 90px; }
  .crest-wrap { grid-template-columns: 1fr; }
  .tour-bubble { grid-template-columns: 54px 1fr; } .tour-bubble img { width: 54px; }
  .stat-grid { grid-template-columns: 1fr; }
  .chip { width: 74px; min-height: 52px; padding: 4px 2px; }
  .chip b { font-size: 12px; max-width: 70px; }
  .chip em, .chip small { font-size: 9px; }
  .chip .cond { width: 50px; }
  .bench-row { grid-template-columns: repeat(4, 1fr); }
  .page-head { flex-wrap: wrap; }
  .page-head .inline { margin-left: 0; }
  .welcome img, .soon-panel img { width: 130px; margin: 0 auto; }
}

/* Uzmanlar, Envanter, İstatistikler, Maç Takvimi (2026-10-17) */
.spec-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.spec-levels .btn { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; line-height: 1.15; min-width: 0; font-size: 14px; overflow: hidden; }
.mini-card { display: inline-block; min-width: 14px; padding: 0 3px; margin-right: 4px; border-radius: 2px; font: 700 11px/16px sans-serif; text-align: center; color: #111; }
.mini-card.y { background: var(--yellow); } .mini-card.r { background: var(--red); color: #fff; }
.spec-levels .btn small { font-size: 12px; opacity: .85; }
.inv-item img { max-height: 110px; object-fit: contain; }
.periods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.periods .per { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.periods .bars { display: flex; gap: 4px; align-items: flex-end; height: 120px; width: 100%; justify-content: center; }
.periods .bars i { display: block; width: 18px; min-height: 2px; border-radius: 4px 4px 0 0; }
.periods .bars i.f, .legend.f::before { background: var(--green); }
.periods .bars i.a, .legend.a::before { background: var(--red); }
.legend::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.cal-day.next { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
@media (max-width: 600px) { .spec-levels .btn small { font-size: 11px; } .periods .bars i { width: 11px; } .periods .bars { height: 90px; } }

/* Çıkış: back to the KingWell Games panel (2026-10-17) */
.top-exit { font: 800 14px var(--head); letter-spacing: .04em; text-transform: uppercase; color: #1b2a25; text-decoration: none; border: 1.5px solid rgba(27,42,37,.35); border-radius: 6px; padding: 4px 10px; }
.top-exit:hover { background: #1b2a25; color: var(--gold); }
