* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #07130d;
  color: white;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

button {
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.gold-btn {
  border: 2px solid #ffe08a;
  background: linear-gradient(140deg, #a7770b, #ffe077, #a7780a);
  color: #201800;
  padding: 14px;
  border-radius: 13px;
  box-shadow: 0 4px 18px #0008;
}

.gold-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-btn {
  background: #34463a;
  border: 1px solid #718a76;
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  margin: 10px;
}

#menu {
  height: 100vh;
  position: relative;
  background:
    linear-gradient(#07150d35, #07150d50),
    url('./giris.webp') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top {
  position: absolute;
  top: 3%;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top h1 {
  font-size: clamp(20px, 3vw, 36px);
  color: #ffe27d;
  text-shadow: 0 3px 8px black;
  margin: 0;
}

#wallet,
.balance {
  background: #124e31;
  color: #b8ffd0;
  border: 1px solid #3aa368;
  border-radius: 12px;
  padding: 13px;
  font-weight: bold;
}

#matchPreview {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  padding: 20px 25px;
  border: 2px solid #b5a15d;
  border-radius: 24px;
  background: linear-gradient(135deg, #1d3a29ed, #07170fee);
  text-align: center;
  box-shadow: 0 15px 40px #0009;
}

.eyebrow {
  font-weight: bold;
  color: #ffe07b;
  font-size: 23px;
}

#weekPreview {
  color: #b5cdbb;
  margin: 8px;
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.club strong {
  font-size: clamp(13px, 2vw, 22px);
  overflow-wrap: anywhere;
}

.club small {
  color: #c2d1c6;
}

.vs {
  font-size: clamp(28px, 5vw, 55px);
  font-weight: 900;
  color: #ffdc64;
}

.avatar {
  height: 180px;
  width: 150px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.4) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar .head {
  position: absolute;
  top: 18px;
  width: 66px;
  height: 72px;
  background: var(--skin, #d9a77b);
  border-radius: 50% 50% 45% 45%;
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.avatar .hair {
  position: absolute;
  top: 12px;
  width: 72px;
  height: 30px;
  background: var(--hair, #241b17);
  border-radius: 20px 20px 5px 5px;
  z-index: 4;
}

.avatar .eye {
  position: absolute;
  top: 52px;
  width: 7px;
  height: 7px;
  background: #1a1a1a;
  border-radius: 50%;
  z-index: 5;
}

.avatar .eye.left { left: 52px; }
.avatar .eye.right { right: 52px; }

.avatar .body {
  position: absolute;
  top: 86px;
  width: 110px;
  height: 110px;
  background: linear-gradient(
    90deg,
    var(--kit1) 50%,
    var(--kit2) 50%
  );
  border-radius: 35px 35px 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.avatar .arm {
  position: absolute;
  top: 92px;
  width: 26px;
  height: 85px;
  background: linear-gradient(
    to bottom,
    var(--kit1) 55%,
    var(--skin, #d9a77b) 55%
  );
  border-radius: 12px;
  z-index: 1;
}

.avatar .arm.left {
  left: 6px;
  transform: rotate(10deg);
}

.avatar .arm.right {
  right: 6px;
  transform: rotate(-10deg);
  background: linear-gradient(
    to bottom,
    var(--kit2) 55%,
    var(--skin, #d9a77b) 55%
  );
}

.avatar.large {
  margin: 5px auto;
  transform: scale(1.15);
  transform-origin: top center;
  margin-bottom: 28px;
}

#menuStatus {
  color: #b4d7c1;
  font-size: 14px;
}

.bottom-nav {
  position: absolute;
  bottom: 4%;
  left: 4%;
  right: 4%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bottom-nav button {
  min-height: 68px;
  font-size: clamp(11px, 1.4vw, 17px);
}

.initial-team {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.screen {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: radial-gradient(
    circle at top,
    #244631,
    #07120b 75%
  );
  z-index: 20;
}

.panel {
  max-width: 1120px;
  margin: 25px auto;
  padding: 20px;
  text-align: center;
}

.panel h1,
.panel h2 {
  color: #ffdb66;
}

.panel.narrow {
  max-width: 620px;
}

#teamGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
}

.teamCard {
  background: #1a2e21;
  color: white;
  border: 2px solid #4a604d;
  border-radius: 12px;
  padding: 15px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
}

.teamCard.active {
  border-color: #ffdb66;
  background: #393522;
}

.teamColors {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 5px;
}

.teamColors span {
  flex: 1;
}

.league-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  text-align: left;
  margin: 20px 0;
}

.league-columns > div {
  background: #0d1c15;
  border: 1px solid #3a5640;
  border-radius: 14px;
  padding: 15px;
}

.fixture {
  padding: 11px;
  margin: 7px 0;
  border-radius: 8px;
  background: #1b3022;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.fixture.current {
  outline: 2px solid #ffdb66;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 9px 5px;
  border-bottom: 1px solid #344a3a;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

.my-team {
  background: #3b4228;
  font-weight: bold;
}

.cup {
  padding: 3px 6px;
  border-radius: 5px;
}

.cl { background: #2466bf; }
.ul { background: #c57718; }
.kl { background: #138544; }

.draw-animation {
  padding: 25px;
  border: 2px solid #ffe07a;
  border-radius: 15px;
  color: #ffe07a;
  font-size: 23px;
  font-weight: bold;
}

.stat-row {
  background: #182d20;
  border: 1px solid #355740;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  text-align: left;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-actions button {
  width: 38px;
  height: 38px;
  background: #23663d;
  color: white;
  border: 1px solid #5cc17e;
  border-radius: 8px;
  font-size: 22px;
}

.stat-track {
  height: 10px;
  background: #354d3b;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}

.stat-fill {
  height: 100%;
  background: #37bc6c;
}

#upgradeInfo {
  color: #d7c785;
}

#gameScreen {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#gameContainer,
#gameContainer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#scoreboard {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #08140eee;
  border: 1px solid #e9c45b;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: bold;
}

#score {
  color: #4dfba0;
  font-size: 24px;
}

#matchClock {
  color: #ffe079;
}

.hud {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(440px, 90vw);
  padding: 12px;
  background: #08140eea;
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.hud-block label {
  font-size: 12px;
  font-weight: bold;
}

.track {
  position: relative;
  height: 16px;
  background: #344139;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 5px;
}

#staminaFill {
  height: 100%;
  width: 100%;
  background: #40d87a;
}

.track.shot {
  background: linear-gradient(
    to right,
    #31c65c,
    #e5df39,
    #f59b26,
    #db3434
  );
}

#shotMarker {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: white;
  box-shadow: 0 0 6px #fff;
}

.hud p {
  font-size: 11px;
  text-align: center;
  margin: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: #000d;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.finish-box {
  background: #132b1d;
  border: 2px solid #e8c456;
  border-radius: 18px;
  text-align: center;
  padding: 35px;
  max-width: 90vw;
}

.finish-box h2 {
  font-size: 42px;
  color: #45f89a;
}

#earnedPoints {
  font-size: 24px;
  color: #a5ffc1;
  font-weight: bold;
}

.team-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 25px 0;
}

.team-player-card {
  background: linear-gradient(145deg, #18233b, #302044);
  border: 2px solid #eabf47;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: white;
}

.team-player-card h2 {
  color: #ffdf65;
}

.team-player-card .avatar {
  margin: 15px auto;
}

#squadKeeperAvatar {
  font-size: 75px;
  margin: 20px auto;
}

#keeperSelection {
  margin: 20px 0;
  padding: 15px;
  border: 2px solid #d8a943;
  border-radius: 12px;
}

#keeperSelectionList {
  display: grid;
  gap: 10px;
}

@media (max-width: 700px) {
  .top {
    top: 2%;
    flex-direction: column;
  }

  .top h1 {
    font-size: 20px;
  }

  #wallet {
    padding: 7px;
  }

  #matchPreview {
    top: 21%;
    padding: 12px;
  }

  .avatar {
    transform: scale(0.7);
    margin: -22px -10px;
  }

  .bottom-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    left: 2%;
    right: 2%;
    bottom: 2%;
  }

  .bottom-nav button {
    font-size: 10px;
    min-height: 52px;
    padding: 6px;
  }

  .versus {
    gap: 2px;
  }

  .club strong {
    font-size: 12px;
  }

  #teamGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .league-columns {
    grid-template-columns: 1fr;
  }

  #scoreboard {
    gap: 5px;
    padding: 7px;
    font-size: 10px;
  }

  #score {
    font-size: 17px;
  }

  .team-players {
    grid-template-columns: 1fr;
  }
}
/* YUREX SOCCER - yeni ana menu ve mac onizleme */
#menu .bottom-nav {
  position:absolute; left:4%; right:auto; bottom:13%;
  width:min(310px,42vw); display:flex; flex-direction:column; gap:13px;
}
#menu .bottom-nav button {min-height:58px; font-size:clamp(12px,1.4vw,17px); text-align:left; padding-left:22px;}
#menu .go-match-btn {position:absolute;right:4%;bottom:5%;min-width:195px;min-height:62px;font-size:19px;z-index:4;}
#matchPreviewScreen {background:linear-gradient(135deg,#07130de8,#07130dcc),url('./giris.webp') center/cover no-repeat;}
#matchPreviewScreen .match-screen-title {position:absolute;top:5%;left:50%;transform:translateX(-50%);text-align:center;color:#ffe08a;font-size:clamp(23px,3vw,40px);margin:0;white-space:nowrap;}
#matchPreviewScreen #matchPreview {top:20%;}
#matchPreviewScreen .match-screen-actions {position:fixed;bottom:5%;left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;gap:12px;}
#matchPreviewScreen .match-screen-actions button {min-width:160px;min-height:58px;font-size:17px;margin:0;}
@media(max-width:650px) {
 #menu .bottom-nav {left:3%;bottom:18%;width:min(250px,57vw);gap:8px;}
 #menu .bottom-nav button {min-height:48px;font-size:11px;padding:8px;}
 #menu .go-match-btn {right:3%;bottom:4%;min-width:140px;min-height:52px;font-size:14px;}
 #matchPreviewScreen #matchPreview {top:19%;width:94vw;}
 #matchPreviewScreen .match-screen-actions {left:3%;right:3%;bottom:3%;}
 #matchPreviewScreen .match-screen-actions button {min-width:115px;min-height:49px;font-size:13px;}
}

/* YUREX SOCCER - MYARAZ / Görevler / Paketler / Kartlarım ana menüde */
#menu .bottom-nav { bottom:5%; gap:9px; }
#menu #arazEconomyDock {
  position:static; inset:auto; z-index:auto;
  display:flex; flex-direction:column; align-items:stretch;
  width:100%; box-sizing:border-box; margin:0; padding:0;
  gap:9px; background:transparent; border:0; border-radius:0;
  box-shadow:none;
}
#menu #arazEconomyDock img {display:none;}
#menu #arazEconomyDock #azBalance {
  display:block; text-align:center; padding:6px 10px;
  background:#101727d9; border:1px solid #d8ab44;
  border-radius:9px; color:#ffda67; font-size:13px;
}
#menu #arazEconomyDock button {
  display:block; width:100%; box-sizing:border-box;
  min-height:51px; margin:0; padding:10px 16px;
  text-align:left; font-size:clamp(12px,1.4vw,17px);
  background:linear-gradient(135deg,#f7d46d,#b77c20);
  border:0; border-radius:9px; color:#161616;
  font-weight:bold; cursor:pointer;
}
/* Küçük ekranlarda menünün tamamına erişilebilsin. */
@media(max-height:680px) {
  #menu .bottom-nav {top:16%;bottom:2%;overflow-y:auto;}
  #menu .bottom-nav button {min-height:42px;}
  #menu #arazEconomyDock button {min-height:42px;}
}
@media(max-width:650px) {
  #menu .bottom-nav {left:3%;bottom:4%;width:min(250px,57vw);gap:6px;}
  #menu #arazEconomyDock {gap:6px;}
  #menu #arazEconomyDock button {min-height:42px;font-size:11px;padding:8px;}
  #menu #arazEconomyDock #azBalance {font-size:11px;}
}

/* MYARAZ bakiyesi: ana menüde sağ üst köşe, diğer butonlar solda. */
#menu #arazEconomyDock #azBalance {
  position:fixed; top:18px; right:22px; left:auto; bottom:auto;
  width:auto; min-width:130px; z-index:30;
  box-sizing:border-box; text-align:center;
  padding:10px 14px; border-radius:12px;
  background:#101727e8; border:2px solid #d8ab44;
  color:#ffda67; font-weight:bold; font-size:15px;
}
@media(max-width:650px) {
  #menu #arazEconomyDock #azBalance {top:10px;right:10px;min-width:95px;font-size:11px;padding:7px;}
}

/* YUREX SOCCER: Barlar sol altta, canlı saha radarı orta altta */
#gameScreen .hud {
  left: 16px; bottom: 16px; transform: none;
  width: min(235px, 25vw); padding: 12px; gap: 9px;
  background: rgba(4, 14, 12, .88); border: 1px solid #b9a15e;
}
#gameScreen .hud p {font-size: 10px; line-height: 1.4;}
#matchRadar {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  z-index: 10; width: min(320px, 31vw); padding: 8px 10px;
  background: rgba(4, 17, 14, .88); border: 1px solid #d3b65e;
  border-radius: 12px; box-shadow: 0 5px 22px #0009; pointer-events: none;
}
.radar-title {font: bold 11px Arial,sans-serif; text-align:center; color:#ffe49a; margin-bottom:5px; letter-spacing:1px;}
#radarCanvas {width:100%;height:auto;display:block;}
.radar-legend {display:flex;justify-content:space-around;font:10px Arial,sans-serif;color:#fff;margin-top:4px;}
@media(max-width:700px) {
  #gameScreen .hud {left:7px;bottom:7px;width:27vw;padding:7px;gap:5px;}
  #gameScreen .hud-block label {font-size:9px;}
  #gameScreen .hud p {display:none;}
  #gameScreen .track {height:11px;}
  #matchRadar {bottom:7px;width:36vw;padding:5px;}
  .radar-title {font-size:9px;}
  .radar-legend {font-size:8px;}
}

/* YUREX SOCCER: Radar %20 küçük, sağ altta top sahibi paneli */
#gameScreen #matchRadar { width: min(256px, 24.8vw); }
@media (max-width:700px) { #gameScreen #matchRadar { width: 28.8vw; } }
#gameScreen #possessionHud {
  position:absolute; right:16px; bottom:16px; z-index:11;
  width:min(230px, 25vw); box-sizing:border-box; padding:11px 13px;
  border:1px solid #d3b65e; border-radius:12px;
  background:rgba(4,17,14,.9); color:#fff;
  box-shadow:0 5px 22px #0009; font-family:Arial,sans-serif;
  pointer-events:none;
}
#possessionHud .possession-title {font-size:10px;color:#ffe49a;letter-spacing:1px;font-weight:bold;}
#possessionName {font-size:15px;font-weight:800;margin:7px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#possessionHud .possession-meta {display:flex;justify-content:space-between;gap:6px;font-size:10px;margin-bottom:5px;color:#e1e5df;}
#possessionHud .possession-track {height:12px;border-radius:20px;overflow:hidden;background:#26372e;border:1px solid #6c806f;}
#possessionFill {height:100%;width:0%;background:#3ddd76;transition:width .12s linear,background .12s linear;}
@media(max-width:700px) {
  #gameScreen #possessionHud {right:7px;bottom:7px;width:28vw;padding:7px;}
  #possessionName {font-size:11px;margin:5px 0;}
  #possessionHud .possession-title,#possessionHud .possession-meta {font-size:8px;}
  #possessionHud .possession-track {height:9px;}
}

/* YUREX SOCCER - 6 lig seçimi */
#leagueMenuControl{position:absolute;top:13%;left:4%;display:flex;flex-direction:column;gap:8px;z-index:6;max-width:240px}
#currentLeagueName{font-weight:900;text-shadow:0 2px 5px #000;font-size:16px;color:#fff0ad}
#leagueSelectBtn{font-size:14px;padding:10px 14px}
#leagueGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px auto;max-width:960px}
.league-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:125px;padding:15px;background:linear-gradient(140deg,#193725,#101b27);color:#fff;border:2px solid #b99b4b;border-radius:16px;box-shadow:0 6px 18px #0005}
.league-option strong{font-size:clamp(17px,2vw,23px)}
.league-option small{font-size:13px;color:#d3d7d6}
.league-option:hover,.league-option.active{border-color:#ffe279;background:linear-gradient(145deg,#33553a,#22283c)}
@media(max-width:700px){#leagueGrid{grid-template-columns:repeat(2,minmax(0,1fr))}#leagueMenuControl{top:13%;left:3%;max-width:180px}#leagueSelectBtn{font-size:12px}}

/* Kulübe özel formalar, takım seçiminde ve oyuncu avatarlarında */
.avatar .body { background: var(--kit-pattern, linear-gradient(90deg,var(--kit1) 50%,var(--kit2) 50%)); }
.teamColors { min-width: 42px; height: 48px; border: 2px solid #ffffff77; box-shadow: inset 0 0 8px #0005; }
.teamCard > span { min-width: 0; overflow-wrap: anywhere; }

/* Yerel 2 oyunculu maç seçimi */
.local-mode-picker {position:fixed;z-index:25;left:50%;bottom:16%;transform:translateX(-50%);width:min(620px,90vw);padding:12px 18px;text-align:center;background:#08140eee;border:1px solid #d7b65b;border-radius:12px;display:grid;gap:8px;}
.local-mode-picker label {font-size:17px;font-weight:800;cursor:pointer;color:#ffe08a;}
.local-mode-picker input {width:18px;height:18px;vertical-align:middle;accent-color:#e4b63c;}
.local-mode-picker small {color:#e5ece6;font-size:12px;}
@media(max-height:650px){.local-mode-picker{bottom:13%;padding:6px}.local-mode-picker label{font-size:13px}.local-mode-picker small{font-size:10px}}

/* YUREX SOCCER - ESC duraklatma menusu */
#pauseMenu { z-index: 150; background: rgba(2,7,17,.82); backdrop-filter: blur(8px); }
.pause-box { width:min(440px,90vw); padding:35px 28px; border:2px solid #e4b85a; border-radius:22px; background:linear-gradient(145deg,#18283c,#0a1220); text-align:center; box-shadow:0 18px 65px #000b,0 0 25px #e4b85a33; display:flex; flex-direction:column; gap:14px; }
.pause-box .pause-icon { font-size:52px; color:#ffe08a; }
.pause-box h1 { margin:0; font-size:clamp(22px,4vw,32px); color:#ffe08a; }
.pause-box p { margin:0 0 12px; color:#d6dfeb; font-size:14px; }
.pause-box button { width:100%; min-height:55px; margin:0; }
.pause-box #exitMatchBtn { border-color:#bd5656; background:#4b222c; }

/* YUREX: giriş ve üç modlu ana menü */
#welcomeScreen {position:fixed;inset:0;z-index:90;cursor:pointer;background: url('./giris.webp') center / cover no-repeat;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7vh;}
#welcomeClick {padding:15px 26px;border-radius:18px;background:#050918a8;color:white;font-weight:900;letter-spacing:2px;text-align:center;text-shadow:0 0 12px #fff;animation:welcomeBlink 1.6s ease-in-out infinite;font-size:clamp(14px,2vw,26px)}
@keyframes welcomeBlink {50% {opacity:.35;transform:scale(1.02)}}
#modeMenu {position:fixed;inset:0;z-index:15;background:linear-gradient(#0306139c,#030613d9),url('./giris.webp') center/cover no-repeat;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5vh;padding:22px;overflow:auto}
.mode-logo {font-size:clamp(30px,5vw,72px);color:white;text-shadow:0 3px 10px #000,0 0 24px #ffc650;margin:0;letter-spacing:2px}
.mode-logo span {color:#ffd86c}
.mode-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,28px);width:min(1100px,95vw)}
.mode-card {aspect-ratio:1/1;position:relative;border-radius:20px;overflow:hidden;border:3px solid #c6a65d;background-color:#141f31;background-size:cover;background-position:center;box-shadow:0 16px 35px #000a;transition:transform .2s,box-shadow .2s;color:white;padding:0}
.mode-card:hover,.mode-card:focus-visible {transform:translateY(-9px) scale(1.025);box-shadow:0 0 28px #f5d47b88;outline:none}
.career-card {background-image:linear-gradient(transparent 42%,#070c1af5),url('./mode_career.svg')}
.duo-card {background-image:linear-gradient(transparent 42%,#070c1af5),url('./mode_duo.svg')}
.quick-card {background-image:linear-gradient(transparent 42%,#070c1af5),url('./mode_quick.svg')}
.mode-card-text {position:absolute;bottom:5%;left:0;right:0;font-size:clamp(14px,2.1vw,29px);font-weight:900;text-shadow:0 2px 7px #000}
.mode-card-text small {display:block;font-size:clamp(10px,1.15vw,15px);margin-top:8px;color:#f3e4c4}
.career-home-btn {position:absolute;z-index:7;top:100px;left:15px;margin:0;font-size:12px;padding:10px}
#versusSelectScreen {background:radial-gradient(circle at top,#32316a,#080d21 78%);text-align:center;padding:3vh 3vw}
.versus-heading {color:#ffdf81;font-size:clamp(22px,3vw,40px)}
.versus-picker {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2vw;max-width:1100px;margin:3vh auto}
.versus-side {background:linear-gradient(160deg,#4a1c8d,#121b49);border:2px solid #9479ee;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.versus-side h2 {color:#ffe68c}.versus-side label {color:#bcbfe3;font-weight:700;font-size:12px}
.versus-side select {width:100%;padding:12px;background:#0b1735;color:white;border:1px solid #8b83b8;border-radius:10px;font-size:15px}
.versus-kit {width:160px;height:175px;margin:10px auto;border-radius:22px 22px 9px 9px;border:3px solid #ffffff88;box-shadow:inset 0 0 30px #0006,0 10px 30px #0008;clip-path:polygon(22% 0,78% 0,100% 18%,88% 43%,78% 37%,78% 100%,22% 100%,22% 37%,12% 43%,0 18%)}
.versus-vs {font-size:clamp(24px,5vw,70px);font-weight:900;color:#ffdd70}
.versus-actions {display:flex;justify-content:center;gap:20px;align-items:center}
.versus-actions button {min-width:170px}
@media(max-width:650px){.mode-grid{gap:7px}.mode-card{border-radius:10px;border-width:2px}.mode-card-text{font-size:11px}.mode-card-text small{font-size:8px}.versus-side{padding:8px}.versus-side select{font-size:11px;padding:8px}.versus-kit{width:90px;height:105px}.versus-picker{gap:5px}.versus-vs{font-size:24px}}

.matches-btn{position:absolute;right:4%;bottom:14%;z-index:8;min-width:175px}.euro-panel{max-width:1100px;max-height:90vh;overflow:auto}.euro-choices{display:flex;gap:15px;justify-content:center;margin:25px 0}.euro-choices button{min-width:180px}.euro-bracket{display:flex;gap:14px;overflow-x:auto;padding:16px 0}.euro-stage{min-width:185px;flex:1}.euro-stage h3{color:#ffdc85}.euro-tie{padding:12px;margin:10px 0;border:1px solid #647ca0;border-radius:9px;background:#152944;color:white;font-size:13px}.euro-tie.mine{border-color:#ffd75d;background:#41321c}.euro-tie small{display:block;color:#c4d2e6;margin-top:5px}.match-screen-actions{gap:12px;flex-wrap:wrap}

/* FUTBOLCU KARİYERİ */
.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:min(780px,95vw);gap:12px}.mode-card{aspect-ratio:2/1}.player-career-card{background-image:linear-gradient(transparent 30%,#070c1af5),url('./mode_player.svg')}.mode-card-text{font-size:clamp(15px,2vw,24px)}.pc-screen{background:radial-gradient(circle at 50% 0,#2b295a,#090e20 75%);overflow:auto;padding:3vh 16px;align-items:center;justify-content:center}.pc-panel{width:min(560px,96vw);margin:auto;background:#14223af5;border:2px solid #bb9654;border-radius:18px;padding:25px;color:white;max-height:94vh;overflow:auto;box-shadow:0 20px 70px #0009}.pc-wide{width:min(980px,96vw)}.pc-panel h1{color:#ffda80}.pc-panel label{display:block;margin:12px 0 5px}.pc-panel input,.pc-panel select{box-sizing:border-box;width:100%;padding:12px;border-radius:8px;border:1px solid #8093b5;background:#0c1730;color:white;font-size:16px}.pc-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.pc-actions button{flex:1;min-width:150px}.pc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.pc-stats>div{background:#243552;border:1px solid #455c81;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}.pc-stats small{color:#bdcde3}.pc-stats strong{color:#ffdc87;font-size:19px}.pc-messages,.pc-shop{display:grid;gap:12px}.pc-msg,.pc-product{background:#243552;border:1px solid #5e7294;border-radius:12px;padding:15px}.pc-msg h3,.pc-product h3{margin:0 0 8px;color:#ffdb87}.pc-msg button,.pc-product button{margin:8px 8px 0 0}.pc-shop{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.pc-stats{grid-template-columns:repeat(2,1fr)}.pc-shop{grid-template-columns:1fr}.mode-card{aspect-ratio:1/1}.pc-panel{padding:14px}}

/* YUREX SOCCER — dört kare görselli mod kartı */
#modeMenu {gap:clamp(14px,3vh,34px);padding:24px 18px;}
#modeMenu .mode-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(1320px,96vw);gap:clamp(10px,1.5vw,22px);}
#modeMenu .mode-card {aspect-ratio:1/1;border-radius:22px;border:3px solid #e5b95b;background-position:center;background-size:cover;box-shadow:0 12px 35px #000c,inset 0 0 30px #0004;}
#modeMenu .mode-card-text {bottom:5%;font-size:clamp(13px,1.65vw,23px);padding:0 5px;}
#modeMenu .mode-card-text small {font-size:clamp(9px,1vw,14px);}
#modeMenu .career-card {background-image:linear-gradient(transparent 45%,#070c1af0),url('./mode_career.svg');}
#modeMenu .duo-card {background-image:linear-gradient(transparent 45%,#070c1af0),url('./mode_duo.svg');}
#modeMenu .quick-card {background-image:linear-gradient(transparent 45%,#070c1af0),url('./mode_quick.svg');}
#modeMenu .player-career-card {background-image:linear-gradient(transparent 45%,#070c1af0),url('./mode_player.svg');}
@media(max-width:800px){#modeMenu .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:min(620px,96vw)}#modeMenu .mode-card{aspect-ratio:1.25/1}#modeMenu .mode-card-text{font-size:clamp(12px,2.6vw,19px)}}
@media(max-width:430px){#modeMenu .mode-card{aspect-ratio:1/1}#modeMenu .mode-card-text{font-size:12px}#modeMenu .mode-card-text small{font-size:9px}}

/* YUREX SOCCER 2026 - cinematic four-mode menu */
#modeMenu {
 background:linear-gradient(180deg,rgba(3,7,19,.55),rgba(3,7,19,.86)),url('./giris.webp') center/cover no-repeat;
 gap:clamp(18px,4vh,42px);
}
#modeMenu .mode-logo {font-size:clamp(36px,5.5vw,80px);font-weight:1000;letter-spacing:3px;
 background:linear-gradient(#fff 18%,#b9c3d6 48%,#f3ba49 54%,#ffdc7e 83%);
 color:transparent;background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 5px 6px #000);}
#modeMenu .mode-logo span {color:inherit;}
#modeMenu .mode-grid {width:min(1450px,97vw);gap:clamp(9px,1.3vw,21px);}
#modeMenu .mode-card {aspect-ratio: .85/1;border-width:3px;border-radius:18px;
 background-color:#091023;background-size:cover;background-position:center top;
 box-shadow:0 16px 45px #000e,inset 0 0 30px #0005;transition:transform .23s,filter .23s,box-shadow .23s;}
#modeMenu .mode-card:hover,#modeMenu .mode-card:focus-visible {transform:translateY(-13px) scale(1.035);filter:saturate(1.18);box-shadow:0 15px 50px #000,0 0 30px currentColor;}
#modeMenu .career-card {color:#ffd46d;border-color:#ffd46d;background-image:linear-gradient(180deg,transparent 42%,#0a0b14 86%),url('./mode_career_new.jpg');}
#modeMenu .duo-card {color:#6ab5ff;border-color:#62a7ff;background-image:linear-gradient(180deg,transparent 42%,#0a0b14 86%),url('./mode_duo_new.jpg');}
#modeMenu .quick-card {color:#5dffc0;border-color:#55e7b2;background-image:linear-gradient(180deg,transparent 42%,#0a0b14 86%),url('./mode_quick_new.jpg');}
#modeMenu .player-career-card {color:#ed8aff;border-color:#e27bff;background-image:linear-gradient(180deg,transparent 42%,#0a0b14 86%),url('./mode_player_new.jpg');}
#modeMenu .mode-card-text {bottom:3%;left:2%;right:2%;color:#fff;font-size:clamp(13px,1.5vw,24px);line-height:1.12;text-shadow:0 2px 9px #000,0 0 15px #000;}
#modeMenu .mode-card-text small {font-size:clamp(10px,.94vw,14px);font-weight:600;color:#f6ebd8;line-height:1.25;margin-top:10px;}
@media(max-width:800px){#modeMenu .mode-card{aspect-ratio:1.15/1}#modeMenu .mode-grid{max-width:680px}}
@media(max-width:450px){#modeMenu .mode-card{aspect-ratio:.88/1}#modeMenu .mode-card-text{font-size:12px}#modeMenu .mode-card-text small{font-size:9px}}

/* YUREX SOCCER: yeni kariyer arka planı ve düzenli menü butonları */
#menu {background:linear-gradient(90deg,rgba(3,8,22,.88),rgba(4,8,20,.42) 48%,rgba(3,8,22,.75)),url('./mode_career_new.jpg') center 36%/cover no-repeat;}
#menu .bottom-nav {top:24%;bottom:7%;left:3%;width:min(290px,34vw);overflow-y:auto;scrollbar-width:thin;padding:4px 5px 6px;}
#menu .bottom-nav button,#menu #arazEconomyDock button {min-height:44px;flex-shrink:0;font-size:clamp(11px,1.25vw,15px);}
#menu #arazEconomyDock {flex-shrink:0;}
#menu .go-match-btn {bottom:5%;right:4%;z-index:9;}
#menu .matches-btn {right:4%;bottom:18%;z-index:9;}
#menu #arazEconomyDock #azBalance {right:82px;top:18px;}
#menu .top {right:260px;}
#matchPreviewScreen .match-screen-actions {z-index:30;}
#matchPreviewScreen .match-screen-actions button {min-width:unset;flex:1;max-width:230px;}
#matchPreviewScreen .match-screen-actions #startBtn {margin-left:auto;}
@media(max-width:700px){#menu .bottom-nav{top:28%;bottom:6%;width:min(240px,54vw);left:2%;}#menu .top{right:140px;}#menu #arazEconomyDock #azBalance{right:60px;top:9px;min-width:70px;}#menu .matches-btn{right:2%;bottom:17%;min-width:110px;font-size:12px;}#menu .go-match-btn{right:2%;bottom:4%;min-width:110px;font-size:12px;}#matchPreviewScreen .match-screen-actions{gap:6px;}#matchPreviewScreen .match-screen-actions button{font-size:11px;min-width:0;padding:8px 4px;}}

/* Ayarlar: her oyun ekranında sağ üstte sabit dişli */
#yxSettingsToggle{position:fixed;right:16px;top:14px;z-index:205;width:48px;height:48px;border-radius:15px;border:2px solid #ffd16b;background:#0b1628e8;color:#ffe1a0;font-size:27px;box-shadow:0 5px 18px #000a;cursor:pointer;line-height:1;}
#yxSettingsToggle:hover{background:#283f59;transform:scale(1.06)}
#yxSettingsOverlay{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:14px;background:#020711dd;backdrop-filter:blur(8px)}
#yxSettingsOverlay.hidden{display:none!important}
.yx-settings-panel{width:min(610px,96vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(145deg,#1a2a43,#0a1123);border:2px solid #e4bb68;border-radius:20px;color:#f8f4e9;box-shadow:0 18px 65px #000e}
.yx-settings-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #a9894b77;gap:12px}
.yx-settings-head h2{font-size:23px;margin:0;color:#ffdc82}
#yxSettingsClose{width:42px;height:42px;border-radius:10px;background:#4a2834;color:white;border:1px solid #dca3a3;font-size:22px;cursor:pointer}
.yx-settings-scroll{overflow:auto;padding:14px 22px 24px;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin}
.yx-settings-scroll>label{font-weight:bold;margin-top:8px;color:#ffe3a3;display:flex;align-items:center;justify-content:space-between;gap:12px}
.yx-settings-scroll>select{background:#101d36;color:white;border:1px solid #8795b4;border-radius:9px;padding:12px;font-size:16px}
.yx-settings-scroll>input[type=range]{accent-color:#e3b751;width:100%;cursor:pointer}
.yx-settings-scroll h3{color:#ffdc82;margin:14px 0 0}
.yx-hint{font-size:12px;color:#b6c5dd;margin:0 0 8px}
#yxControls h4{margin:12px 0 5px;color:#ffdc82;border-bottom:1px solid #4d5e78;padding-bottom:5px}
.yx-key-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 2px;font-size:14px}
.yx-key-row button{min-width:94px;padding:9px 13px;background:#263c5c;color:#fff;border:1px solid #8a9bb8;border-radius:9px;cursor:pointer;font-weight:800}
.yx-key-row button:hover{border-color:#ffda7c}
.yx-settings-actions{display:flex;gap:10px;margin-top:18px}
.yx-settings-actions button{flex:1;min-height:46px;border-radius:10px;cursor:pointer;font-weight:bold;background:#34465e;color:#fff;border:1px solid #6c809c}
#yxSettingsDone{background:linear-gradient(135deg,#f9da83,#c58b2b);color:#141414;border:0}
html[dir=rtl] #yxSettingsOverlay{text-align:right}
html[dir=rtl] #gameScreen,html[dir=rtl] #matchRadar,html[dir=rtl] #possessionHud{direction:ltr}
html[data-yx-graphics=low] #modeMenu .mode-card{box-shadow:none;filter:none}
html[data-yx-graphics=low] #yxSettingsOverlay{backdrop-filter:none}
@media(max-width:600px){#yxSettingsToggle{right:7px;top:7px;width:41px;height:41px;font-size:23px}.yx-settings-panel{max-height:95vh}.yx-settings-scroll{padding:10px 13px}.yx-settings-head{padding:10px 13px}}

/* Oyuncu görünümü + özelleştirme */
.pc-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#243552,#1a2c4d);border:1px solid #bb9654;border-radius:14px;padding:14px;margin-bottom:6px}
.pc-card strong{display:block;color:#ffdc87;font-size:20px}.pc-card small{display:block;color:#bdcde3;margin-top:4px}
.pc-flag{font-size:44px;line-height:1}.pc-cardno{margin-left:auto;font-size:44px;font-weight:900;color:#fff;opacity:.9}
.pc-note{color:#ffdc87;min-height:18px;font-size:14px}
.pc-custom{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
.pc-preview{background:radial-gradient(circle at 50% 30%,#2b3d66,#0c1730);border:1px solid #455c81;border-radius:14px;padding:10px;text-align:center}
.pc-preview canvas{max-width:100%;height:auto}.pc-preview small{display:block;color:#bdcde3;margin-top:6px}
.pc-swatches{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pc-sw{width:34px;height:34px;border-radius:8px;border:2px solid #455c81;cursor:pointer;padding:0}
.pc-sw.on{border-color:#ffdc87;box-shadow:0 0 0 2px #ffdc8777}
.pc-swatches input[type=color]{width:42px;height:36px;padding:0;border:2px solid #455c81;border-radius:8px;background:none}
.pc-controls input[type=range]{padding:0}
@media(max-width:700px){.pc-custom{grid-template-columns:1fr}}

/* Oyuncu kariyeri ekranlarındaki tüm butonlar menüyle aynı tarzda */
.pc-panel button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 24px;font:800 16px/1 Arial,sans-serif;letter-spacing:.04em;color:#eef2f8;cursor:pointer;background:linear-gradient(90deg,#24262cf2,#101116e6);border:1px solid #ffffff2e;border-radius:0;clip-path:polygon(0 0,100% 0,96% 100%,0 100%);box-shadow:none;text-shadow:none;transition:transform .12s,background .12s,color .12s}
.pc-panel button.gold-btn{background:linear-gradient(90deg,#4a3a05f5,#17130af0);color:#ffe27a;border-color:#ffcb2d;box-shadow:inset 0 0 0 1px #ffcb2d99}
.pc-panel button:hover:not(:disabled){background:linear-gradient(90deg,#6a5208f5,#2a2008f0);color:#fff0a8;border-color:#ffcb2d;transform:translateX(4px)}
.pc-panel button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
.pc-msg button,.pc-product button{height:44px;padding:0 18px;font-size:14px}
.pc-panel button{margin:0!important;white-space:nowrap}
.pc-actions{align-items:stretch}
.pc-actions button{min-width:190px}
.pc-msg button,.pc-product button{margin:8px 8px 0 0!important}

/* ===== Tüm modlarda ortak buton tarzı (oyuncu kariyeri menüsüyle aynı) ===== */
.gold-btn,.secondary-btn,.yx-settings-actions button{
 background:linear-gradient(90deg,#24262cf2,#101116e6)!important;
 color:#eef2f8!important;
 border:1px solid #ffffff2e!important;
 border-radius:0!important;
 clip-path:polygon(0 0,100% 0,96% 100%,0 100%);
 box-shadow:none!important;
 text-shadow:none!important;
 font-weight:800;letter-spacing:.04em;
 transition:transform .12s,background .12s,color .12s,border-color .12s;
}
.gold-btn{
 background:linear-gradient(90deg,#4a3a05f5,#17130af0)!important;
 color:#ffe27a!important;
 border:1px solid #ffcb2d!important;
 box-shadow:inset 0 0 0 1px #ffcb2d99!important;
}
.gold-btn:hover:not(:disabled),.secondary-btn:hover:not(:disabled),.yx-settings-actions button:hover:not(:disabled){
 background:linear-gradient(90deg,#6a5208f5,#2a2008f0)!important;
 color:#fff0a8!important;
 border-color:#ffcb2d!important;
 filter:none;
}
#menu .bottom-nav button,.bottom-nav button.gold-btn{clip-path:polygon(0 0,100% 0,97% 100%,0 100%)}
#arazEconomyDock button{
 background:linear-gradient(90deg,#24262cf2,#101116e6)!important;
 color:#eef2f8!important;border:1px solid #ffffff2e!important;border-radius:0!important;
 clip-path:polygon(0 0,100% 0,96% 100%,0 100%);box-shadow:none!important;text-shadow:none!important;
 font-weight:800;letter-spacing:.04em;transition:transform .12s,background .12s,color .12s,border-color .12s;
}
#arazEconomyDock button:hover:not(:disabled){
 background:linear-gradient(90deg,#6a5208f5,#2a2008f0)!important;color:#fff0a8!important;border-color:#ffcb2d!important;filter:none;
}


/* YUREX SOCCER | Unified match HUD - presentation only */
#gameScreen .hud,
#gameScreen #matchRadar,
#gameScreen #possessionHud,
body #yxDrinkMatch {
  box-sizing:border-box;
  background:linear-gradient(145deg,rgba(8,15,26,.96),rgba(14,26,34,.93)) !important;
  border:1px solid rgba(236,187,79,.82) !important;
  border-radius:14px !important;
  box-shadow:0 10px 28px rgba(0,0,0,.44),inset 0 1px 0 rgba(255,226,149,.10) !important;
  color:#f7f5ed !important;
  font-family:Arial,sans-serif !important;
}
#gameScreen .hud {left:18px;bottom:18px;width:240px;max-width:calc(33vw - 20px);padding:14px;gap:11px;}
#gameScreen .hud-block label,
#gameScreen .radar-title,
#gameScreen #possessionHud .possession-title,
body #yxDrinkMatch > b {
  display:block;color:#f7d889 !important;font-size:11px !important;font-weight:800 !important;
  letter-spacing:.65px;text-transform:uppercase;text-shadow:none;
}
#gameScreen .hud p {color:#c5cbd1;font-size:10px;line-height:1.5;}
#gameScreen .track,
#gameScreen #possessionHud .possession-track {
  height:12px;border:1px solid rgba(233,196,110,.26);border-radius:999px;background:#202c35;
}
#gameScreen #staminaFill {background:linear-gradient(90deg,#24b97a,#59e5a0);border-radius:999px;}
#gameScreen #matchRadar {left:50%;bottom:18px;width:256px;max-width:30vw;padding:11px 12px;}
#gameScreen #matchRadar .radar-title {text-align:center;margin-bottom:8px;}
#gameScreen #matchRadar .radar-legend {color:#d7dde2;gap:8px;}
#gameScreen #possessionHud {right:18px;bottom:18px;width:240px;max-width:calc(33vw - 20px);padding:14px;}
#gameScreen #possessionName {font-size:15px;color:#fff;margin:9px 0;}
#gameScreen #possessionHud .possession-meta {color:#c5cbd1;}
#gameScreen #possessionFill {background:linear-gradient(90deg,#24b97a,#59e5a0);}
body #yxDrinkMatch {
  position:fixed !important;right:18px !important;bottom:156px !important;
  width:240px !important;padding:12px !important;z-index:2500 !important;
}
body #yxDrinkMatch > div {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px !important;margin-top:9px !important;}
body #yxDrinkMatch button[data-drink] {
  min-width:0;padding:9px 3px !important;border-radius:8px;
  border:1px solid rgba(236,187,79,.65);background:linear-gradient(150deg,#263344,#111b28);
  color:#ffe5a0;font:800 12px Arial,sans-serif;cursor:pointer;
}
body #yxDrinkMatch button[data-drink]:hover,
body #yxDrinkMatch button[data-drink]:focus-visible {background:#57411e;outline:2px solid #f2cb6b;outline-offset:1px;}
@media(max-width:900px) {
  #gameScreen .hud {left:8px;bottom:8px;width:29vw;max-width:none;padding:9px;gap:7px;}
  #gameScreen #matchRadar {bottom:8px;width:28vw;max-width:none;padding:8px;}
  #gameScreen #possessionHud {right:8px;bottom:8px;width:29vw;max-width:none;padding:9px;}
  body #yxDrinkMatch {right:8px !important;bottom:132px !important;width:29vw !important;padding:9px !important;}
  body #yxDrinkMatch button[data-drink] {font-size:10px;padding:7px 1px !important;}
}
@media(max-width:600px) {
  #gameScreen .hud {width:31vw;}
  #gameScreen #matchRadar {width:30vw;}
  #gameScreen #possessionHud {width:31vw;}
  body #yxDrinkMatch {width:31vw !important;bottom:112px !important;}
  #gameScreen .hud p {display:none;}
  #gameScreen .hud-block label,#gameScreen .radar-title,
  #gameScreen #possessionHud .possession-title,body #yxDrinkMatch > b {font-size:9px !important;letter-spacing:0;}
  body #yxDrinkMatch > div {gap:3px !important;}
  body #yxDrinkMatch button[data-drink] {font-size:9px;padding:6px 0 !important;}
}

/* Pause screen: hide the match-only energy drink panel. */
body:has(#pauseMenu:not(.hidden)) #yxDrinkMatch {
  display:none !important;
}

/* YUREX SOCCER – Altın Türk Ligi / haftalık sonuçlar teması */
/* Lig/fikstür ekranı: eski arka plan (yx_career_stadium_bg.jpg) bilerek bulanıklaştırılmış bir görseldi; net takım kariyeri görseli kullanılır. */
#leagueScreen { background:linear-gradient(90deg,rgba(5,5,7,.72),rgba(5,5,7,.45),rgba(5,5,7,.7)),url("yx_career_background_clear.webp") center 22%/cover fixed !important; overflow-y:auto; }
#leagueScreen>.panel { box-sizing:border-box; width:min(1450px,96vw); max-width:1450px; min-height:min(95vh,850px); margin:12px auto; padding:20px 24px 24px; border:2px solid #ffcf5e; border-radius:18px; background:linear-gradient(125deg,rgba(7,8,12,.78),rgba(17,11,5,.65)); box-shadow:0 0 22px #ff9c2a8c,inset 0 0 28px #000; color:#fff; }
#leagueScreen .yx-league-topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:2px solid #dca42f; padding:0 4px 12px; }
#leagueScreen .yx-league-brand { font-size:clamp(19px,2.4vw,32px); font-weight:1000; color:white; text-shadow:0 2px 6px #000; }
#leagueScreen .yx-league-brand em { font-style:normal; color:#ffd153; }
#leagueScreen .yx-league-currency { font-weight:900; color:#ffe6a0; border:1px solid #ffbd37; background:#0b0905df; border-radius:30px; padding:10px 15px; white-space:nowrap; }
#leagueScreen #leagueScreenTitle { color:#ffd25a; text-shadow:0 2px 7px #000,0 0 15px #ffb52d; font-size:clamp(25px,3vw,38px); margin:12px 0 0; text-align:center; }
#leagueScreen #leagueSummary { text-align:center; color:#fff1c7; font-size:16px; font-weight:700; margin:5px 0 15px; }
#leagueScreen .league-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.28fr); gap:18px; margin:0; align-items:start; }
#leagueScreen .league-columns>div { min-width:0; background:linear-gradient(160deg,#100b08f2,#08090bf0); border:2px solid #eeb845; border-radius:17px; box-shadow:0 0 18px #ffab3159,inset 0 0 18px #e59a161f; padding:12px 14px; }
#leagueScreen .league-columns h2 { color:#ffe09a; text-shadow:0 0 10px #f4a82b; font-size:clamp(16px,1.65vw,23px); margin:0 0 10px; border-bottom:1px solid #b7812f; padding:5px 4px 11px; }
#leagueScreen #fixtures h2 { background:linear-gradient(90deg,#704409bb,#120f09); border:1px solid #b8872d; border-radius:8px; padding:7px 10px; margin:13px 0 8px; font-size:15px; }
#leagueScreen #fixtures hr { border:0; border-top:1px solid #b8872d; margin:13px 0; }
#leagueScreen .fixture { display:flex; align-items:center; justify-content:space-between; padding:6px 10px; gap:8px; margin:3px 0; background:linear-gradient(90deg,#1e1710,#080808); border:1px solid #5b411e; border-radius:6px; color:#fff; font-size:13px; }
#leagueScreen .fixture.current { outline:1px solid #ffdb66; background:linear-gradient(90deg,#9b650e,#241700); box-shadow:0 0 12px #ffbb3670; }
#leagueScreen .fixture>b { border:1px solid #d8a832; background:#221a09; color:#ffda6b; padding:3px 8px; border-radius:6px; white-space:nowrap; }
#leagueScreen .yx-fixture-teams { display:flex; flex-wrap:wrap; gap:5px; align-items:center; min-width:0; }
#leagueScreen .yx-league-team { display:inline-flex; gap:5px; align-items:center; vertical-align:middle; }
#leagueScreen .yx-league-logo { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:22px; height:22px; border-radius:50%; border:1px solid #e8b344; background:#3d270b; color:#ffdf84; font-size:9px; font-weight:900; overflow:hidden; }
#leagueScreen .yx-league-logo img { width:100%; height:100%; object-fit:contain; }
#leagueScreen .table-scroll { overflow-x:auto; }
#leagueScreen #standings { width:100%; border-collapse:separate; border-spacing:0 3px; font-size:clamp(11px,1vw,14px); }
#leagueScreen #standings th { background:#1e1305; color:#ffe29b; font-weight:900; border-bottom:1px solid #c99a39; }
#leagueScreen #standings td { background:#100e0bdc; color:#fff; border-bottom:1px solid #433219; }
#leagueScreen #standings td,#leagueScreen #standings th { padding:6px 4px; }
#leagueScreen #standings .my-team td { background:linear-gradient(90deg,#956209,#3b2709); color:#fff5b5; font-weight:900; border-top:1px solid #ffcd4c; border-bottom:1px solid #ffcd4c; }
#leagueScreen #standings td:nth-child(2) { white-space:nowrap; }
#leagueScreen #leagueBackBtn { display:block; margin:18px auto 0; padding:12px 46px; background:linear-gradient(120deg,#8b5607,#1c1305); border:2px solid #ffce59; border-radius:8px; color:#ffe2a0; font-weight:900; box-shadow:0 0 15px #f7ad375e; }
@media(max-width:850px) { #leagueScreen>.panel{padding:12px;width:98vw;} #leagueScreen .league-columns{grid-template-columns:1fr;} #leagueScreen .yx-league-topbar{flex-wrap:wrap;} }

/* YUREX: ayarlar simgesini kutu içinde tam ortala */
#yxSettingsToggle{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;text-align:center!important;line-height:1!important;box-sizing:border-box!important;}

/* Küme düşme / yükselme bölgeleri */
#standings tr.zone-releg td:first-child{box-shadow:inset 4px 0 0 #e5484d}
#standings tr.zone-promo td:first-child{box-shadow:inset 4px 0 0 #30c46b}
.cup.releg{background:#7a1c20;color:#ffd6d6;padding:2px 6px;border-radius:6px;font-weight:900}
.cup.promo{background:#145c33;color:#d4ffe4;padding:2px 6px;border-radius:6px;font-weight:900}
.yx-promo-toast{position:fixed;left:50%;top:22px;transform:translateX(-50%);z-index:99999;background:linear-gradient(135deg,#1b2433,#0d1320);color:#fff;border:2px solid #ffcd4c;border-radius:14px;padding:14px 22px;font:800 17px system-ui,sans-serif;box-shadow:0 10px 30px #0009;transition:opacity .8s,transform .8s}
.yx-promo-toast.out{opacity:0;transform:translate(-50%,-20px)}

/* Lig değiştir: ülke → lig */
#leagueGrid.yx-country-mode{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:18px;align-items:start}
.yx-countries,.yx-country-leagues{display:flex;flex-direction:column;gap:9px;background:#0b1622cc;border:1px solid #b99b4b77;border-radius:16px;padding:14px}
.yx-countries h3,.yx-country-leagues h3{margin:0 0 4px;color:#ffe279;font-size:16px;letter-spacing:.5px}
.yx-country{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:10px 12px;background:linear-gradient(140deg,#16263a,#0e1824);color:#fff;border:2px solid #3b4d63;border-radius:12px;cursor:pointer;text-align:left;font-size:16px}
.yx-country small{color:#9fb0c3;font-size:12px}.yx-flag{font-size:28px;line-height:1}
.yx-country:hover,.yx-country.active{border-color:#ffe279;background:linear-gradient(140deg,#33553a,#22283c)}
.yx-country-leagues .league-option{min-height:130px}
.yx-tier{font-size:12px;font-weight:900;letter-spacing:1px;color:#ffe279;background:#0007;border-radius:20px;padding:4px 10px}
.yx-tier-note{color:#9fd8b0!important}
@media(max-width:700px){#leagueGrid.yx-country-mode{grid-template-columns:1fr}.yx-countries{display:grid;grid-template-columns:repeat(2,1fr)}.yx-countries h3{grid-column:1/-1}}

/* Dynasty arma tasarımcısı */
.yx-dynasty-crest-preview{position:sticky;top:8px}
#yxDynastyCrestPreview{width:190px;height:190px;filter:drop-shadow(0 10px 22px #000a)}
#yxDynastyCrestPreview.yx-crest-pop{animation:yxCrestPop .35s cubic-bezier(.2,1.4,.4,1)}
@keyframes yxCrestPop{from{transform:scale(.92) rotate(-2deg)}}
.yx-crest-designer{border:1px solid #d7b15d88;border-radius:14px;padding:12px 14px 14px;margin:12px 0;background:linear-gradient(160deg,#10223a,#0a1424)}
.yx-crest-designer legend{padding:0 8px;color:#ffd979;font-weight:900;letter-spacing:.5px}
.yx-crest-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.yx-crest-row label{font-size:12px}
.yx-crest-row input[type=color]{width:100%;height:36px;padding:2px}
.yx-crest-icons-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 6px;color:#ffd979}
.yx-crest-icons-head small{color:#cfe0f2;font-weight:800}
.yx-crest-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px;max-height:176px;overflow-y:auto;padding:4px}
.yx-crest-icon{aspect-ratio:1;padding:3px;border-radius:10px;border:1px solid #3b5675;background:#0b1828;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.yx-crest-icon canvas{width:100%;height:100%;display:block}
.yx-crest-icon:hover{transform:translateY(-2px) scale(1.06);border-color:#ffd979}
.yx-crest-icon.is-on{border-color:#ffd979;box-shadow:0 0 0 2px #ffd97966,0 0 14px #ffd97955;background:#2a2410}
@media(max-width:650px){.yx-crest-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
