/* SigHand (imza yazısı) artık data/fonts/sighand.ttf: yalnızca fatura çizilirken yüklenir (src/app.js sigFont) */
/* Layout idea: gold-lit dark stage, six position rows, two shield cards each; tier colour = likelihood. Card anatomy follows the classic ultimate-team shield. */
:root {
  --panel: rgba(0, 0, 0, 0.32);
  --line: rgba(var(--accent-rgb), 0.28);
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg-2); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 20%, var(--bg-1) 0%, var(--bg-2) 80%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color-scheme: dark;
}
.wrap { max-width: 1320px; margin: 0 auto; padding: 36px 16px 64px; }
header { display: grid; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
h1 {
  font-weight: 700; font-style: italic;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
h1 span { color: var(--accent); }
.lede { color: var(--muted); max-width: 62ch; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.legend div { display: flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 20px; display: inline-block; clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 70%, 50% 100%, 0 70%); }
.sw-gold { background: linear-gradient(135deg, var(--text), #d9ae4a); }
.sw-silver { background: linear-gradient(135deg, #eef1f4, #9ea8b2); }
.sw-bronze { background: linear-gradient(135deg, #f0d2b3, #ae764a); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 6px; }
.filters button {
  font: 700 0.95rem var(--font); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); background: var(--panel); border: 2px solid var(--line);
  padding: 8px 16px; cursor: pointer; transition: background .2s, color .2s;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-acc); }
.filters button:focus-visible, .slot:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

section.group { padding-top: 30px; }
section.group[hidden] { display: none; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.group-head h2 { font-weight: 700; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.group-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 32px 20px; justify-items: center; }

.slot { width: min(100%, 270px); perspective: 1200px; cursor: pointer; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.card { position: relative; width: 100%; aspect-ratio: 267.3 / 427.3; transform-style: preserve-3d; transition: transform 0.65s cubic-bezier(0.075, 0.82, 0.165, 1); }
.slot.flipped .card { transform: rotateY(180deg); }
@media (hover: hover) { .slot:not(.flipped):hover .card { transform: translateY(-6px) rotateY(-5deg); } }

.face {
  position: absolute; inset: 0;
  clip-path: url(#shield);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  container-type: inline-size;
  color: var(--c3);
  background: #aaa;
  overflow: hidden;
}
.tier-gold   { --c1: #e1c072; --c1d: #d9ae4a; --c2: #fdeaa7; --c2d: #fbde74; --c3: #725b16; }
.tier-silver { --c1: #b8c0c8; --c1d: #9ea8b2; --c2: #eef1f4; --c2d: #d3d9df; --c3: #2f3a44; }
.tier-bronze { --c1: #c58b5a; --c1d: #ae764a; --c2: #f0d2b3; --c2d: #e6bf95; --c3: #4f2d12; }

.top { position: absolute; top: 0; left: 0; width: 100%; height: 54%; overflow: hidden; background: linear-gradient(135deg, var(--c2) 0%, var(--c1d) 100%); }
.backfont { position: absolute; bottom: -8cqw; left: -3cqw; line-height: 1; font-size: 43cqw; letter-spacing: -1.9cqw; font-weight: 700; font-style: italic; opacity: 0.1; text-transform: uppercase; white-space: nowrap; }
.image { position: absolute; right: 0; bottom: 0; z-index: 2; height: 92%; width: 72%; }
.image svg, .image img { width: 100%; height: 100%; display: block; }
.image img { object-fit: contain; object-position: center bottom; }
.info { position: absolute; left: 0; bottom: 0; z-index: 3; height: 82%; width: 34%; padding: 0 3cqw; text-align: center; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; }
.info > div { line-height: 1; font-weight: 700; }
.value .tag { display: block; font-size: 4.6cqw; letter-spacing: 0.12em; opacity: 0.8; }
.value .num { display: block; font-size: 11.5cqw; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 1cqw; }
.value .num.na { font-size: 8cqw; opacity: 0.75; padding-top: 2cqw; }
.position, .country { font-size: 7.6cqw; width: 100%; padding-bottom: 2cqw; margin-bottom: 2cqw; border-bottom: 0.7cqw solid rgba(253, 234, 167, 0.7); }
.position { margin-top: 2.5cqw; }
.country { font-size: 6cqw; letter-spacing: 0.08em; }
.club { font-size: 4.3cqw; line-height: 1.15; letter-spacing: 0.02em; font-weight: 700; }

.bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; overflow: hidden; background: linear-gradient(135deg, var(--c2) 0%, var(--c2d) 100%); }
.bottom::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: rgba(255,255,255,.55); }
.name { text-align: center; font-size: 10.4cqw; text-transform: uppercase; font-weight: 700; margin: 2.4cqw 3cqw 1.8cqw; line-height: 1.05; text-wrap: balance; }
.stats { margin: 0 11cqw; padding-top: 4cqw; border-top: 1.5cqw solid var(--c2); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats li { display: grid; gap: 1.5cqw; text-transform: uppercase; line-height: 1.1; }
.stats li + li { border-left: 1cqw solid var(--c2); }
.stats li span:first-child { font-weight: 700; font-size: 10cqw; }
.stats li span:last-child { font-size: 6.6cqw; opacity: 0.85; }
.back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--c2) 0%, var(--c1d) 100%); }
.bk { padding: 17cqw 13cqw 16cqw; display: grid; align-content: start; gap: 3.4cqw; height: 100%; box-sizing: border-box; }
.back h3 { margin: 0; font-size: 10.5cqw; line-height: 1; text-transform: uppercase; font-weight: 700; padding-bottom: 2.4cqw; border-bottom: 1.2cqw solid var(--c3); }
.rows { margin: 0; display: grid; gap: 1.2cqw; font-size: 5.6cqw; line-height: 1.25; }
.rows div { display: grid; grid-template-columns: 24cqw 1fr; gap: 2cqw; }
.rows dt { font-weight: 700; text-transform: uppercase; opacity: 0.75; letter-spacing: 0.06em; font-size: 4.8cqw; }
.rows dd { margin: 0; font-weight: 700; }
.why { margin: 0; font-size: 5.6cqw; line-height: 1.28; }
.foot { font-size: 4.6cqw; line-height: 1.25; opacity: 0.85; border-top: 0.7cqw solid var(--c3); padding-top: 2cqw; }

@media (prefers-reduced-motion: no-preference) {
  .info > div { animation: rise .6s cubic-bezier(0.075, 0.82, 0.165, 1) backwards; }
  .info > .value { animation-delay: .15s; }
  .info > .position { animation-delay: .3s; }
  .info > .country { animation-delay: .45s; }
  .info > .club { animation-delay: .6s; }
  .image svg, .image img { animation: slide .7s ease-out .5s backwards; }
  .name { animation: rise .6s ease-out .9s backwards; }
  .stats li { animation: rise .5s cubic-bezier(0.075, 0.82, 0.165, 1) backwards; }
  .stats li:nth-child(1) { animation-delay: 1.0s; }
  .stats li:nth-child(2) { animation-delay: 1.15s; }
  .stats li:nth-child(3) { animation-delay: 1.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; max-width: 80ch; display: grid; gap: 8px; }
.note p { margin: 0; }
.note b { color: var(--text); }

/* ---- Kadro kurma: bütçe, saha, kutlama ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 32px; align-items: start; }
.squad { position: sticky; top: 12px; padding-top: 20px; }
@media (max-width: 1050px) { .layout { grid-template-columns: 1fr; } .squad { order: -1; position: static; } }
.cell { display: grid; justify-items: center; gap: 12px; width: 100%; }
.pick { font: 700 0.95rem var(--font); text-transform: uppercase; letter-spacing: 0.05em; width: min(100%, 270px); padding: 10px 12px; cursor: pointer; color: var(--on-acc); background: var(--accent); border: 2px solid var(--accent); transition: transform .15s, background .2s; }
.pick:hover { transform: translateY(-2px); background: var(--text); }
.pick.in { background: transparent; color: var(--text); border-color: var(--line); }
.pick.over { background: #5a1420; border-color: #c0233f; color: #ffd9de; }
.pick:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cell.in .slot { filter: drop-shadow(0 0 14px rgba(var(--acc-rgb), .65)) drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.budget { background: var(--panel); border: 2px solid var(--line); padding: 12px 14px 14px; }
.b-top { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; color: var(--muted); }
.b-top b { font-size: 1.9rem; color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: rgba(0,0,0,.45); border: 1px solid var(--line); margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), #f08a1c); transition: width .5s cubic-bezier(.2,.9,.3,1), background .3s; }
.bar i.warn { background: linear-gradient(90deg, #f08a1c, #e0501c); }
.bar i.full { background: repeating-linear-gradient(45deg, #c0233f 0 10px, var(--p1-dark) 10px 20px); }
.b-sub { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }
.budget.shake { animation: shake .5s; }
@keyframes shake { 20%,60% { transform: translateX(-9px); } 40%,80% { transform: translateX(9px); } }
.stage { perspective: 1000px; perspective-origin: 50% 0%; padding: 8px 0 0; margin-top: 4px; }
.world { --tilt: 34deg; position: relative; width: 100%; aspect-ratio: 0.86; transform: rotateX(var(--tilt)); transform-origin: 50% 70%; transform-style: preserve-3d; margin-bottom: -60px; }
.pitch { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #1e7a3a 0 9.09%, #228a42 9.09% 18.18%); border: 6px solid #0f3a1b; border-radius: 6px; box-shadow: 0 30px 40px rgba(0,0,0,.55); }
.pitch.flash { animation: flash .9s; }
@keyframes flash { 30% { filter: brightness(1.6) saturate(1.4); } }
.ln { position: absolute; border: 3px solid rgba(255,255,255,.6); }
.ln.out { inset: 3%; }
.ln.mid { left: 3%; right: 3%; top: 50%; height: 0; border-width: 2px 0 0; }
.ln.circ { width: 22%; aspect-ratio: 1; left: 39%; top: calc(50% - 11% * .86); border-radius: 50%; }
.ln.pa { left: 26%; right: 26%; height: 16%; }
.ln.pa.tp { top: 3%; border-top: none; }
.ln.pa.bot { bottom: 3%; border-bottom: none; }
.ln.ga { left: 38%; right: 38%; height: 6%; }
.ln.ga.tp { top: 3%; border-top: none; }
.ln.ga.bot { bottom: 3%; border-bottom: none; }
.spot { position: absolute; width: 17%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border: 2px dashed rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: rgba(255,255,255,.75); transition: opacity .3s; }
.spot.taken { opacity: 0; }
.tok { position: absolute; width: 21%; transform: translate(-50%, -100%) rotateX(calc(-1 * var(--tilt))); transform-origin: 50% 100%; text-align: center; animation: drop .8s cubic-bezier(.3,1.5,.5,1) backwards; pointer-events: none; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -100%) translateY(-160px) rotateX(calc(-1 * var(--tilt))) scale(1.5); } }
.tok .av { width: 62%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--c2), var(--c1d)); border: 3px solid #fff; box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.tok .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.tok .tn { margin-top: 4px; font-weight: 700; font-size: .78rem; text-transform: uppercase; color: #fff; background: var(--p1); padding: 1px 4px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok .tf { font-weight: 700; font-size: .75rem; color: var(--on-acc); background: var(--acc); padding: 0 4px; }
.squad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.squad-foot button { font: 700 .85rem var(--font); text-transform: uppercase; color: var(--text); background: transparent; border: 2px solid var(--line); padding: 6px 14px; cursor: pointer; }
.squad-foot button:hover { border-color: var(--accent); }
#toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); z-index: 60; background: linear-gradient(90deg, var(--p1), var(--p1-bright)); color: #fff; padding: 12px 26px; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; border: 3px solid var(--acc); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .45s cubic-bezier(.2,1.4,.4,1); text-align: center; max-width: 92vw; }
#toast { visibility: hidden; transition: transform .45s cubic-bezier(.2,1.4,.4,1), visibility 0s linear .45s; }
#toast.on { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
#alarm { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(20, 0, 5, .78); }
#alarm.on { display: grid; }
#alarm .box { position: relative; max-width: min(92vw, 560px); padding: 34px 30px 26px; text-align: center; background: #1a0a0e; border: 4px solid #e0243f; animation: siren .6s infinite alternate, pop .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes siren { from { box-shadow: 0 0 20px 4px rgba(224,36,63,.5); } to { box-shadow: 0 0 70px 18px rgba(224,36,63,.95); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
#alarm .ico { font-size: 3.4rem; line-height: 1; }
#alarm h2 { margin: 8px 0; font-size: 2.2rem; text-transform: uppercase; font-style: italic; color: #ff5470; line-height: 1; }
#alarm p { margin: 0 0 18px; color: #f3d5da; }
#alarm button { font: 700 1rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 10px 26px; background: var(--acc); border: 0; color: var(--on-acc); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tok, #alarm .box, .budget.shake, .pitch.flash { animation: none; } #toast { transition: none; } }

.brand { display: flex; align-items: center; gap: 18px; }
.crest { height: clamp(64px, 12vw, 100px); width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.tok { width: 25%; }
.tok .av { width: 100%; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; filter: drop-shadow(0 8px 7px rgba(0,0,0,.5)); }
.tok .av img { width: 100%; height: auto; max-width: none; object-fit: contain; display: block; position: relative; left: 50%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%); mask-image: linear-gradient(to bottom, #000 66%, transparent 100%); }
.tok .tn { margin-top: -14px; position: relative; background: none; color: #fff; font-size: .95rem; padding: 0; text-shadow: 0 1px 4px #000, 0 0 8px #000; }
.tok .tf { background: none; color: var(--acc2); text-shadow: 0 1px 3px #000, 0 0 6px #000; font-size: .85rem; }
.closebtn { width: 100%; margin-top: 10px; font: 700 1.15rem var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 14px; cursor: pointer; color: #fff; border: 3px solid var(--acc); background: linear-gradient(90deg, var(--p1-dark), var(--p1-bright)); box-shadow: 0 8px 22px rgba(var(--p1-rgb),.5); transition: transform .15s; }
.closebtn:hover { transform: translateY(-2px); }
.closebtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#inv { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(8, 4, 2, .88); overflow: auto; padding: 24px 12px; }
#inv.on { display: block; }
#inv .in { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
#inv img { width: 100%; height: auto; border: 3px solid var(--acc); box-shadow: 0 20px 60px rgba(0,0,0,.7); }
#inv .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#inv .dl, #inv button { font: 700 1rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 12px 22px; cursor: pointer; text-decoration: none; border: 0; }
#inv.on { padding-bottom: 96px; }
#inv .acts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(8, 4, 2, .96); border-top: 2px solid var(--acc); }
#inv .dl { background: var(--acc); color: var(--on-acc); }
#inv button { background: transparent; color: var(--text); border: 2px solid var(--line); }
#nm { position: fixed; inset: 0; z-index: 85; display: none; place-items: center; background: rgba(8,4,2,.8); }
#nm.on { display: grid; }
#nm .box { width: min(92vw, 440px); padding: 28px 26px 22px; background: var(--surface); border: 3px solid var(--acc); box-shadow: 0 20px 60px rgba(0,0,0,.7); display: grid; gap: 12px; animation: pop .35s cubic-bezier(.2,1.5,.4,1); }
#nm h2 { margin: 0; font-size: 1.9rem; font-style: italic; text-transform: uppercase; color: var(--acc); line-height: 1; }
#nm p { margin: 0; color: var(--muted); }
#nm input { font: 700 1.3rem var(--font); padding: 12px; background: var(--field); color: #fff; border: 2px solid var(--line); }
#nm input:focus { outline: 3px solid var(--acc); border-color: var(--acc); }
#nm .acts { display: flex; gap: 10px; justify-content: flex-end; }
#nm button { font: 700 1rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 10px 20px; cursor: pointer; background: transparent; color: var(--text); border: 2px solid var(--line); }
#nm button.go { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.tok .x { position: absolute; top: 2%; right: 10%; z-index: 3; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(20,8,6,.72); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; pointer-events: auto; opacity: .9; transition: background .15s, transform .15s; }
.tok .x:hover { background: #c8102e; transform: scale(1.15); }
.tok .x:focus-visible { outline: 2px solid #fff; }
.hl-t { font-size: 4.4cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: -1cqw; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.2cqw; font-size: 5.3cqw; line-height: 1.2; font-weight: 700; }
.hl li { padding-left: 4.5cqw; position: relative; }
.hl li::before { content: ""; position: absolute; left: 0; top: 1.6cqw; width: 2cqw; height: 2cqw; background: var(--c3); transform: rotate(45deg); }
.back .why { font-size: 4.5cqw; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.back .foot { font-size: 3.9cqw; }
#mbar { display: none; }
@media (max-width: 1050px) {
  #mbar { display: flex; justify-content: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; pointer-events: none; }
  #mbar button { pointer-events: auto; font: 700 .9rem var(--font); text-transform: uppercase; letter-spacing: .05em; min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--acc); box-shadow: 0 6px 18px rgba(0,0,0,.6); cursor: pointer; background: var(--surface); color: var(--text); }
  #mbar #mdl { background: var(--p1); color: #fff; }
  #mbar { transition: opacity .2s, visibility .2s; }
  #mbar.hide { opacity: 0; visibility: hidden; }
  .wrap { padding-bottom: 96px; }
}
#cap { font: 400 .9rem var(--font); letter-spacing: .05em; color: inherit; background: none; border: 0; padding: 6px 0 6px 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
#cap svg { opacity: .75; }
#cap:hover { color: var(--text); }
#cap:hover svg { opacity: 1; }
#cap:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#capform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0 2px; font-size: .85rem; text-transform: uppercase; color: var(--muted); }
#capform[hidden] { display: none; }
#capform input { font: 700 16px var(--font); width: 90px; padding: 7px; background: var(--field); color: #fff; border: 2px solid var(--line); }
#capform button { font: 700 .85rem var(--font); text-transform: uppercase; padding: 8px 12px; cursor: pointer; background: var(--acc); color: var(--on-acc); border: 0; }
#capform #capdef { background: transparent; color: var(--text); border: 2px solid var(--line); }
#mbar #mfield.pop { animation: mpop .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes mpop { 35% { transform: scale(1.35); background: var(--acc); color: var(--on-acc); } }
@media (prefers-reduced-motion: reduce) { #mbar #mfield.pop { animation: none; } }
#up { position: fixed; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 51; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--acc); background: var(--surface); color: var(--text); font: 700 1.4rem/1 var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
#up.on { opacity: 1; visibility: visible; }
#up:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #up { transition: none; } }
#support { display: grid; justify-items: center; gap: 8px; margin-top: 36px; text-align: center; color: var(--muted); font-size: .95rem; }
#support[hidden] { display: none; }
#support a { font: 700 1.1rem var(--font); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: 14px 28px; color: var(--text); border: 2px solid var(--accent); border-radius: 999px; }
#support a:hover { background: var(--panel); }
#support a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#inv.on { padding-bottom: 150px; }
#inv #invsupport { flex-basis: 100%; text-align: center; font: 700 .95rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--acc2); text-decoration: underline; text-underline-offset: 4px; padding: 4px 0; }
#inv #invsupport[hidden] { display: none; }
#inv #invsupport:focus-visible { outline: 2px solid #fff; }
.brand .clubs { margin-left: auto; align-self: flex-start; font-size: .85rem; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 7px 12px; text-decoration: none; white-space: nowrap; }
.also { position: absolute; left: 50%; bottom: 1.5cqw; transform: translateX(-50%); z-index: 5; font-size: 4cqw; font-weight: 700; text-transform: uppercase; background: rgba(0,0,0,.65); color: #fff; padding: .6cqw 2.4cqw; white-space: nowrap; }
.scope { display: flex; gap: 8px; padding-top: 14px; }
.scope button { font: 700 .9rem var(--font); text-transform: uppercase; padding: 7px 14px; cursor: pointer; color: var(--text); background: transparent; border: 1px solid var(--line); }
.scope button[aria-pressed="true"] { background: var(--text); color: var(--on-acc); }
.empty-note { color: var(--muted); padding-top: 14px; margin: 0; }
.brand .clubs + .clubs { margin-left: 8px; } /* ‹ Oyunlar (ana sayfa: oyun merkezi) ve Takım değiştir yan yana */
.brand .games-home { color: var(--acc); border-color: var(--acc); }
@media (max-width: 600px) { .brand { flex-wrap: wrap; } .brand .clubs { margin-left: 0; } .brand .clubs + .clubs { margin-left: 8px; } }
.cell.out { display: none; }
section.group:not(:has(.cell:not(.out))) { display: none; }
.srcs a { color: inherit; text-decoration: underline; }
.srcs b { text-transform: uppercase; }
