:root {
  --lime: #c8ff4d;
  --cyan: #4de1ff;
  --ink: #eef6ff;
  --muted: #8fa3b8;
  --panel: rgba(12, 20, 29, 0.92);
  --line: rgba(140, 190, 255, 0.14);
  --gold: #f4c95d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; background: #04070b; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Trebuchet MS", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

canvas#match3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #05080c;
}

canvas#game {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: transparent;
}

/* ============ overlay / screens ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(77, 225, 255, 0.12), transparent 42%),
    radial-gradient(ellipse at 86% 92%, rgba(200, 255, 77, 0.10), transparent 46%),
    rgba(3, 7, 11, 0.78);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.overlay.visible { opacity: 1; pointer-events: auto; }

.screen {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin: auto 0;
  position: relative;
  z-index: 1;
}

.screen.active { display: flex; animation: screenIn 0.32s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
}

h1, h2 { font-weight: 900; letter-spacing: -0.02em; }

h2 {
  margin-top: 6px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.hint { margin-top: 14px; font-size: 11.5px; color: rgba(160, 190, 215, 0.55); text-align: center; }

/* ============ main card / menu ============ */
.card {
  position: relative;
  width: min(520px, 100%);
  padding: 34px 34px 28px;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 34, 47, 0.96), rgba(7, 13, 20, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card::before {
  content: "";
  position: absolute;
  inset: -50% 12% auto;
  height: 230px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(77, 225, 255, 0.20), transparent 68%);
}

.menu-card h1 {
  position: relative;
  margin: 14px 0 10px;
  font-size: clamp(42px, 8vw, 66px);
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.menu-card h1 span {
  color: var(--lime);
  text-shadow: 0 0 34px rgba(200, 255, 77, 0.35);
}

.tagline { margin-bottom: 20px; font-size: 13px; color: var(--muted); }

.my-club {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 16px;
  padding: 10px 14px;
  max-width: 380px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.my-club.hidden { display: none; }
.mc-crest { display: flex; }
.mc-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mc-info span { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.mc-info b { font-size: 17px; }
.mc-ovr { font-size: 26px; font-weight: 900; color: var(--gold); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.profile-stats div {
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.profile-stats b { display: block; font-size: 21px; color: var(--ink); }
.profile-stats span { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font: 800 14px "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  color: #0a1406;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #e2ff8f, var(--lime) 45%, #9fdc1f);
  box-shadow: 0 10px 30px rgba(160, 230, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(160, 230, 60, 0.3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.35; cursor: default; transform: none; filter: none; box-shadow: none; }

.btn.primary { width: 100%; }

.btn.big { padding: 16px 38px; font-size: 15px; }

.btn.ghost {
  width: 100%;
  margin-top: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); }

.stack { display: flex; flex-direction: column; gap: 9px; }

/* ============ panels ============ */
.panel {
  width: min(1040px, 100%);
  padding: 26px 28px 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(17, 29, 41, 0.96), rgba(6, 12, 18, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-sub { margin-bottom: 18px; font-size: 12.5px; color: var(--muted); }

.shop-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.07); }
.shop-section:first-of-type { margin-top: 8px; padding-top: 0; border-top: none; }
.shop-section .section-head { margin-bottom: 10px; }
.shop-section .panel-sub { margin-bottom: 14px; }
.shop-section .bundle-grid,
.shop-section .offer-grid,
.shop-section .case-grid,
.shop-section .donate-grid,
.shop-section .daily-grid { margin-bottom: 4px; }
.shop-section .daily-claim { margin-top: 12px; }

.back {
  flex: 0 0 auto;
  padding: 9px 14px;
  font: 700 12px "Segoe UI", sans-serif;
  color: var(--ink);
  cursor: pointer;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.back:hover { background: rgba(255, 255, 255, 0.09); }

.panel-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.panel-actions .btn { width: auto; margin: 0; }
.panel-actions .btn.primary { min-width: 260px; }

.club-head { display: flex; align-items: center; gap: 14px; }

.ovr-wrap { text-align: center; }
.ovr-big { font-size: 44px; font-weight: 900; line-height: 1; color: var(--gold); }
.ovr-wrap span { font-size: 9px; font-weight: 800; letter-spacing: 0.3em; color: var(--muted); }

/* ============ club cards ============ */
.club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 15px 15px 13px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.club-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 77, 0.45);
  background: linear-gradient(150deg, rgba(200, 255, 77, 0.10), rgba(255, 255, 255, 0.02));
}

.club-card.selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 14px 30px rgba(160, 230, 60, 0.16);
}

.cc-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.cc-name { display: flex; flex-direction: column; gap: 2px; }
.cc-name b { font-size: 15px; }
.cc-name span { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cc-ovr {
  margin-left: auto;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.cc-star {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-star b { color: var(--ink); font-weight: 700; }

/* ============ squad ============ */
.squad-panel { width: min(1360px, 100%); }

.squad-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.squad-hero .club-head h2 { margin-top: 3px; }
.squad-hero .back { margin-left: auto; }

.squad-metrics { display: flex; align-items: stretch; gap: 8px; }
.sm-tile {
  min-width: 62px;
  padding: 7px 11px 6px;
  text-align: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.sm-tile b { display: block; font-size: 23px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.sm-tile span { font-size: 8px; font-weight: 800; letter-spacing: 0.2em; color: var(--muted); }
.sm-main {
  border-color: rgba(244, 201, 93, 0.45);
  background: linear-gradient(160deg, rgba(244, 201, 93, 0.24), rgba(244, 201, 93, 0.05));
}
.sm-main b { font-size: 31px; color: var(--gold); }
.sm-chem { min-width: 96px; text-align: left; }
.sm-chem b { color: var(--cyan); }
.sm-chem.max b { color: var(--lime); }
.sm-chem i {
  display: block;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.sm-chem i em {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.35s ease;
}

.squad-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: stretch;
}

.rail-wrap { margin-top: 14px; }
.rail-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rail-head b { font-size: 10px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--lime); }
.rail-head span { font-size: 10.5px; color: var(--muted); }

.squad-rail {
  display: flex;
  gap: 10px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 190, 255, 0.3) transparent;
}
.squad-rail::-webkit-scrollbar { height: 6px; }
.squad-rail::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(140, 190, 255, 0.28); }

.rail-card {
  position: relative;
  flex: 0 0 auto;
  width: 116px;
  height: 160px;
  padding: 6px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 13px;
  background: linear-gradient(155deg, #f6dd88, #c59a33);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.rail-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45); }
.rail-card.selected { outline: 2px solid #fff; outline-offset: 2px; }
.rail-card.silver { background: linear-gradient(155deg, #eef3f8, #9dabbb); color: #0e1622; }
.rail-card.bronze { background: linear-gradient(155deg, #e7b787, #a8703a); color: #2a1608; }
.rail-card.gk { background: linear-gradient(155deg, #9ff3d2, #35b98c); color: #052018; }
.rail-card.icon {
  color: #ffe9a8;
  border-color: rgba(244, 201, 93, 0.7);
  background: linear-gradient(160deg, #2a2213, #0b0f16 58%, #1b1408);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.25), 0 10px 24px rgba(244, 201, 93, 0.14), inset 0 0 26px rgba(244, 201, 93, 0.18);
}
.rail-card.icon .rc-name,
.rail-card.icon .rc-top b { color: #ffe9a8; }
.rail-card.icon .rc-tag { color: rgba(244, 201, 93, 0.85); }

.rail-more {
  flex: 0 0 auto;
  width: 116px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  color: var(--lime);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: 13px;
  border: 1.5px dashed rgba(200, 255, 77, 0.45);
  background: rgba(200, 255, 77, 0.05);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.rail-more:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 77, 0.8);
  background: rgba(200, 255, 77, 0.12);
}
.rail-more b { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.rail-more span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rc-face, .rc-shade { position: absolute; inset: 0; pointer-events: none; }
.rc-face {
  background-size: cover;
  background-position: 50% 6%;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 0.25s ease;
}
.rail-card:hover .rc-face { transform: scale(1.09); }
.rc-shade {
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.48), transparent 24%, rgba(4, 8, 12, 0.03) 64%, rgba(4, 8, 12, 0.72)),
    linear-gradient(90deg, rgba(4, 8, 12, 0.14), transparent 48%);
}
.rc-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}
.rc-top b { font-size: 18px; font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; }
.rc-top i {
  padding: 1px 3px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
}
.rc-name {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 18px;
  z-index: 2;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.rc-tag {
  position: absolute;
  left: 7px;
  bottom: 5px;
  z-index: 2;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.pitch-mini {
  position: relative;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 255, 220, 0.13), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.065) 0 56px, rgba(0, 35, 16, 0.055) 56px 112px),
    radial-gradient(ellipse at 50% 18%, #46a45e, #2b7f49 60%, #1b5f36 88%);
  box-shadow: inset 0 0 70px rgba(0, 24, 10, 0.32);
}

.mini-lines { position: absolute; inset: 12px; border: 2px solid rgba(248, 255, 250, 0.55); border-radius: 8px; }
.ml-circle {
  position: absolute;
  left: 50%; top: 50%;
  width: 92px; height: 92px;
  transform: translate(-50%, -50%);
  border: 1.6px solid rgba(248, 255, 250, 0.42);
  border-radius: 50%;
}
.ml-circle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(248, 255, 250, 0.72);
}
.ml-box {
  position: absolute;
  left: 50%;
  width: 46%; height: 15%;
  transform: translateX(-50%);
  border: 1.6px solid rgba(248, 255, 250, 0.4);
}
.ml-box-top { top: -1.5px; border-top: 0; border-radius: 0 0 8px 8px; }
.ml-box-bottom { bottom: -1.5px; border-bottom: 0; border-radius: 8px 8px 0 0; }

.pitch-cards { position: absolute; inset: 0; }

.pcard {
  position: absolute;
  width: clamp(68px, 9.5vw, 92px);
  height: clamp(90px, 12.5vw, 122px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 5px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: linear-gradient(155deg, #f6dd88, #c59a33);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.pc-face,
.pc-shade { position: absolute; inset: 0; pointer-events: none; }
.pc-face {
  background-size: cover;
  background-position: 50% 8%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 0.25s ease;
}
.pcard:hover .pc-face { transform: scale(1.11); }
.pc-shade {
  background:
    linear-gradient(180deg, rgba(5, 10, 16, 0.5), transparent 24%, rgba(5, 10, 16, 0.03) 64%, rgba(5, 10, 16, 0.7)),
    linear-gradient(90deg, rgba(5, 10, 16, 0.14), transparent 46%);
}
.pc-top, .pc-bottom { position: relative; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.pc-bottom { display: flex; flex-direction: column; gap: 1px; }

.pcard:hover { transform: translate(-50%, -50%) translateY(-4px); box-shadow: 0 16px 26px rgba(0, 0, 0, 0.4); }
.pcard.selected { outline: 2px solid #fff; outline-offset: 2px; }
.pcard.silver { background: linear-gradient(155deg, #eef3f8, #9dabbb); color: #0e1622; }
.pcard.bronze { background: linear-gradient(155deg, #e7b787, #a8703a); color: #2a1608; }
.pcard.gk { background: linear-gradient(155deg, #9ff3d2, #35b98c); color: #052018; }
.pcard.icon {
  color: #ffe9a8;
  border-color: rgba(244, 201, 93, 0.65);
  background: linear-gradient(160deg, #2a2213, #0b0f16 58%, #1b1408);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.28), 0 10px 24px rgba(244, 201, 93, 0.16), inset 0 0 22px rgba(244, 201, 93, 0.16);
}
.pcard.icon .pc-ovr { color: #ffd876; }

.pc-top { display: flex; align-items: flex-start; gap: 3px; width: 100%; position: relative; z-index: 4; }
.pc-ovr { font-size: 15px; font-weight: 900; line-height: 0.9; }
.pc-pos { margin-top: 1px; padding: 1px 3px; font-size: 6.5px; font-weight: 800; border-radius: 3px; background: rgba(0, 0, 0, 0.16); }
.pc-name { font-size: 7px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: 0; position: relative; z-index: 4; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.pc-club { font-size: 5.5px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.72; position: relative; z-index: 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ============ player detail ============ */
.player-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.pd-head { display: flex; align-items: center; gap: 12px; }
.pd-ovr { font-size: 44px; font-weight: 900; line-height: 0.9; color: var(--gold); }
.pd-info b { display: block; font-size: 17px; line-height: 1.15; }
.pd-info span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pd-club { font-size: 11px; color: var(--muted); }

.stat-row { display: flex; align-items: center; gap: 9px; }
.stat-row span { width: 34px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.stat-row i {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.stat-row i em { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.stat-row b { width: 22px; text-align: right; font-size: 12px; }
.pd-note { margin-top: auto; font-size: 10.5px; line-height: 1.45; color: rgba(160, 190, 215, 0.55); }

/* ============ crests ============ */
.crest { display: block; flex: 0 0 auto; }
.crest svg { display: block; }
.club-crest { display: flex; flex: 0 0 auto; width: 46px; height: 50px; }
.club-crest svg { width: 100%; height: 100%; }
.mc-crest { width: 38px; height: 42px; }
.mc-crest svg { width: 100%; height: 100%; }
.head-right { display: flex; align-items: center; gap: 16px; }

.pick-info { font-size: 12px; color: var(--muted); }
.pick-info.ready { color: var(--lime); }

/* ============ versus ============ */
.versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(77, 225, 255, 0.07), rgba(200, 255, 77, 0.05));
}

.vs-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vs-side .club-crest { width: 36px; height: 40px; }
.vs-side b { font-size: 14px; }
.vs-ovr { padding: 2px 7px; font-size: 12px; font-weight: 900; color: var(--gold); border-radius: 7px; background: rgba(0, 0, 0, 0.3); }
.vs-label { font-size: 18px; font-weight: 900; font-style: italic; color: var(--muted); letter-spacing: 0.08em; }

/* ============ HUD ============ */
.hud {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 12;
  display: none;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

body.in-match .hud { display: flex; }

.scoreboard {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(150, 200, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 22, 32, 0.94), rgba(5, 10, 16, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.sb-side { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 132px; }
.sb-side.home { justify-content: flex-end; }
.sb-side.away { justify-content: flex-start; }
.sb-crest { display: flex; width: 24px; height: 27px; }
.sb-crest svg { width: 100%; height: 100%; }
.sb-txt { display: flex; flex-direction: column; gap: 1px; }
.sb-side.home .sb-txt { text-align: right; align-items: flex-end; }
.sb-txt b { font-size: 12px; letter-spacing: 0.06em; }
.sb-txt span { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.sb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.sb-score { display: flex; align-items: baseline; gap: 7px; font-size: 25px; font-weight: 900; font-style: italic; line-height: 1; }
.sb-score i { font-style: normal; font-size: 14px; color: var(--muted); }
.sb-clock { margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: var(--lime); font-variant-numeric: tabular-nums; }
.sb-clock.low { color: #ff7a6b; animation: clockPulse 0.9s ease-in-out infinite; }
.sb-half { margin-top: 1px; font-size: 7.5px; font-weight: 900; letter-spacing: 0.18em; color: rgba(220, 236, 250, 0.55); }
@keyframes clockPulse { 50% { opacity: 0.45; } }

.pause-btn {
  width: 42px;
  height: 42px;
  font: 800 12px "Segoe UI", sans-serif;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  border-radius: 13px;
  border: 1px solid rgba(150, 200, 255, 0.18);
  background: rgba(8, 15, 23, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pause-btn:hover { background: rgba(28, 44, 60, 0.95); transform: translateY(-1px); }

.match-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 11;
  display: none;
  padding: 8px 16px;
  transform: translateX(-50%);
  font-size: 10.5px;
  color: rgba(190, 215, 235, 0.6);
  white-space: nowrap;
  border-radius: 12px;
  border: 1px solid rgba(150, 200, 255, 0.1);
  background: rgba(4, 9, 14, 0.7);
  backdrop-filter: blur(6px);
}
.match-hint b { color: rgba(220, 240, 255, 0.9); font-weight: 800; }
body.in-match .match-hint { display: block; }
body.in-match .match-hint.hidden { display: none; }

body.in-match.in-pause .match-hint { display: none; }

/* ============ touch controls ============ */
.touch { display: none; }

body.in-match .touch {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 13;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 22px;
  pointer-events: none;
}

body.in-match:not(.touch-mode) .touch { justify-content: flex-end; }
body.in-match:not(.touch-mode) .joystick { display: none; }

.joystick {
  position: relative;
  width: 118px;
  height: 118px;
  pointer-events: auto;
  border-radius: 50%;
  border: 2px solid rgba(160, 210, 255, 0.22);
  background: radial-gradient(circle at 50% 40%, rgba(40, 70, 95, 0.5), rgba(6, 12, 18, 0.55));
  touch-action: none;
}

.joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 40% 32%, rgba(210, 240, 255, 0.85), rgba(90, 130, 165, 0.8));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.touch-btns { display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
/* РќР° С‚РµР»РµС„РѕРЅРµ С€РµСЃС‚СЊ РєРЅРѕРїРѕРє РЅРµ РїРѕРјРµС‰Р°СЋС‚СЃСЏ РІ РѕРґРёРЅ СЂСЏРґ — СЃРѕР±РёСЂР°РµРј РёС…
   РІ РєРѕРјРїР°РєС‚РЅСѓСЋ СЃРµС‚РєСѓ 3Г—2 СЂСЏРґРѕРј СЃ РґР¶РѕР№СЃС‚РёРєРѕРј. */
body.in-match.touch-mode .touch-btns {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  align-items: center;
  justify-items: center;
}
body.in-match.touch-mode .tbtn { margin-bottom: 0 !important; }
.tbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 11px "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  color: #08120a;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.tbtn.pass { width: 66px; height: 66px; background: radial-gradient(circle at 38% 30%, #d6fbff, #4de1ff 70%); }
.tbtn.shoot { width: 84px; height: 84px; font-size: 12px; background: radial-gradient(circle at 38% 30%, #eaffac, #a8e72b 70%); }
.tbtn.switch { width: 58px; height: 58px; font-size: 9px; background: radial-gradient(circle at 38% 30%, #ffffff, #b9c9d8 75%); }
.tbtn:active { transform: scale(0.94); filter: brightness(1.08); }

/* ============ result ============ */
.result-card { width: min(520px, 100%); }
.result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 14px;
  padding: 16px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.rs-side { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; }
.rs-side .club-crest { width: 40px; height: 44px; }
.rs-side b { font-size: 12.5px; }
.rs-goals { font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; }
.rs-sep { font-size: 26px; font-weight: 900; color: var(--muted); }

.goal-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 92px;
  margin-bottom: 12px;
  overflow-y: auto;
  font-size: 11px;
  color: var(--muted);
}
.goal-log:empty::before { content: "Р‘РµР· Р·Р°Р±РёС‚С‹С… РјСЏС‡РµР№"; font-size: 10.5px; color: rgba(160, 190, 215, 0.45); }
.goal-log div { display: flex; align-items: center; gap: 8px; }
.goal-log b { min-width: 26px; font-size: 10px; color: var(--gold); font-variant-numeric: tabular-nums; }

.reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(244, 201, 93, 0.28);
  background: rgba(244, 201, 93, 0.07);
  font-size: 11px;
  color: var(--muted);
}
.reward b { font-size: 18px; color: var(--gold); }
.reward .coin { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.pause-score { margin: 14px 0 20px; font-size: 34px; font-weight: 900; font-style: italic; color: var(--gold); }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .club-grid { grid-template-columns: repeat(3, 1fr); }
  .squad-body { grid-template-columns: minmax(0, 1fr) 240px; }
  .pitch-mini { min-height: 430px; }
  .squad-hero { flex-wrap: wrap; }
  .squad-hero .back { order: 2; }
  .squad-metrics { order: 3; width: 100%; }
}

@media (max-width: 720px) {
  .overlay { padding: 12px; align-items: flex-start; }
  .panel { padding: 20px 16px 18px; margin: 8px 0; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .squad-body { grid-template-columns: minmax(0, 1fr); }
  .pitch-mini { min-height: 380px; }
  .player-detail { padding: 14px; }
  .panel-head { flex-wrap: wrap; }
  .club-head h2 { font-size: 24px; }
  .head-right { gap: 10px; }
  .ovr-big { font-size: 34px; }
  .panel-actions { flex-direction: column; align-items: stretch; }
  .panel-actions .btn.primary { min-width: 0; }
  .sb-side { min-width: 0; padding: 7px 9px; }
  .sb-txt span { display: none; }
  .scoreboard { max-width: calc(100vw - 74px); }
  body.in-match .match-hint { display: none; }
  .versus { gap: 12px; }
  .vs-side b { font-size: 12px; }
  .vs-side .club-crest { width: 28px; height: 31px; }
  .rs-side { width: 104px; }
  .pside { width: 86px; }
  .pcard { width: clamp(62px, 20vw, 84px); height: clamp(80px, 26vw, 110px); }
  .pc-ovr { font-size: 13px; }
  .pc-name { font-size: 7.5px; }
  .pc-club { font-size: 5.5px; }
  .squad-hero { gap: 10px; }
  .sm-tile { min-width: 54px; padding: 6px 8px 5px; }
  .sm-tile b { font-size: 20px; }
  .sm-main b { font-size: 26px; }
  .rail-card { width: 104px; height: 146px; }
  .rail-more { width: 104px; height: 146px; }
  .rail-more b { font-size: 25px; }
  .rc-top b { font-size: 16px; }
  .rc-name { font-size: 7.5px; }
  .rc-tag { font-size: 6px; }
}

@media (max-height: 620px) and (min-width: 721px) {
  .pitch-mini { min-height: 360px; }
}

/* ============ РіР»Р°РІРЅС‹Р№ СЌРєСЂР°РЅ ============ */
.menu-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  width: min(1120px, 100%);
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(77, 225, 255, 0.14), transparent 46%),
    radial-gradient(ellipse at 92% 100%, rgba(200, 255, 77, 0.10), transparent 50%),
    linear-gradient(160deg, rgba(20, 34, 47, 0.97), rgba(6, 12, 18, 0.99));
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-hero { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.menu-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(48px, 7vw, 82px);
  font-style: italic;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.menu-hero h1 span {
  display: block;
  color: var(--lime);
  text-shadow: 0 0 44px rgba(200, 255, 77, 0.32);
}

.menu-hero .tagline {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.menu-hero .my-club { width: 100%; max-width: 430px; margin: 0 0 14px; }

.profile-stats { grid-template-columns: repeat(3, 1fr); width: 100%; }

.menu-hero .btn.primary {
  width: min(330px, 100%);
  margin-top: 2px;
  padding: 17px 38px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.menu-hero .hint { margin-top: 12px; text-align: left; }

.menu-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(150, 200, 255, 0.1);
  background: rgba(3, 9, 14, 0.4);
}

.menu-side > .eyebrow { margin: 2px 0 4px 2px; color: var(--muted); }

.menu-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 13px 15px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.menu-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(200,255,77,0.35);
  background: rgba(255,255,255,0.07);
}
.menu-tile:disabled { opacity: .5; cursor: default; transform: none; }
.section-head h3 { font-size: 15px; letter-spacing: 0.02em; }

.mini-btn {
  padding: 7px 12px;
  font: 800 10.5px "Segoe UI", sans-serif;
  color: var(--ink);
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.mini-btn:hover { background: rgba(200, 255, 77, 0.1); border-color: rgba(200, 255, 77, 0.35); }
.mini-btn:disabled { opacity: 0.4; cursor: default; }

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(77, 225, 255, 0.09), rgba(255, 255, 255, 0.02));
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.bundle-card:hover { transform: translateY(-2px); border-color: rgba(77, 225, 255, 0.45); }
.bundle-card b { font-size: 12.5px; }
.bundle-card .b-price { font-size: 11px; color: var(--cyan); font-weight: 800; }
.bundle-card .b-sub { font-size: 9.5px; line-height: 1.35; color: var(--muted); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.offer-item { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.pull-card {
  position: relative;
  width: 100%;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, #f6dd88, #b8862a);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
}
.pull-card.silver { background: linear-gradient(160deg, #eef3f8, #93a3b6); }
.pull-card.bronze { background: linear-gradient(160deg, #e7b787, #9a612d); }
.pull-card.gk { background: linear-gradient(160deg, #9ff3d2, #2a9c73); }
.pull-card.great {
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.75), 0 0 34px rgba(255, 190, 70, 0.5), 0 18px 38px rgba(0, 0, 0, 0.4);
}
.pull-card.icon {
  border-color: rgba(244, 201, 93, 0.8);
  background: linear-gradient(160deg, #2a2213, #0b0f16 58%, #1b1408);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.4), 0 0 40px rgba(244, 201, 93, 0.35), 0 18px 38px rgba(0, 0, 0, 0.45);
}
.pull-card.icon .pull-top,
.pull-card.icon .pull-bottom { color: #ffe9a8; }

.pull-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 6%;
  background-repeat: no-repeat;
}
.pull-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 15, 0.5), transparent 24%, rgba(4, 9, 15, 0.02) 64%, rgba(4, 9, 15, 0.72)),
    linear-gradient(90deg, rgba(4, 9, 15, 0.14), transparent 48%);
}
.pull-top, .pull-bottom { position: relative; z-index: 4; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85); }
.pull-top { display: flex; align-items: flex-start; justify-content: space-between; color: #fff; }
.pull-ovr { font-size: 19px; font-weight: 900; line-height: 0.9; }
.pull-pos { padding: 1px 4px; font-size: 7px; font-weight: 900; border-radius: 4px; background: rgba(0, 0, 0, 0.35); }
.pull-bottom { display: flex; flex-direction: column; gap: 1px; color: #fff; }
.pull-bottom b { font-size: 9.5px; line-height: 1.05; text-transform: uppercase; }
.pull-bottom span { font-size: 7px; letter-spacing: 0.06em; opacity: 0.7; }

.buy-btn {
  width: 100%;
  padding: 9px 8px;
  font: 800 10.5px "Segoe UI", sans-serif;
  color: #07140a;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #e2ff8f, #a8e72b);
  transition: filter 0.12s ease, transform 0.12s ease;
}
.buy-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.buy-btn.gem { background: linear-gradient(180deg, #bdf4ff, #38bdf8); }
.buy-btn:disabled { opacity: 0.42; cursor: default; transform: none; filter: none; }

/* РєРµР№СЃС‹ */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px 18px;
  text-align: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
}
.case-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--cc-glow, rgba(200, 255, 77, 0.2)), transparent 70%);
}
.case-icon { position: relative; font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.case-card h3 { position: relative; font-size: 17px; }
.case-card p { position: relative; min-height: 32px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.case-odd { position: relative; padding: 4px 9px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; border-radius: 7px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.case-price { position: relative; font-size: 15px; font-weight: 900; color: var(--gold); }
.case-card .buy-btn { position: relative; }
.case-note { margin-top: 16px; font-size: 10.5px; color: var(--muted); }

.w-draft { margin-left: 10px; color: #c8ff4d; font-size: 12px; }
.case-actions, .draft-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.case-actions .buy-btn, .draft-buy .buy-btn { flex: 1 1 130px; }
.draft-buy { margin-top: 8px; }
.draft-buy .buy-btn { background: rgba(200, 255, 77, 0.12); color: #dffa9b; border-color: rgba(200, 255, 77, 0.3); }
.case-country {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 120px; justify-content: center;
}
.case-country span { font-size: 10px; font-weight: 900; letter-spacing: 0.28em; color: #ffd876; text-transform: uppercase; }
.case-country b { font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 0 26px rgba(244, 201, 93, 0.45); }
.case-country i { font-size: 48px; font-style: normal; line-height: 1; }

.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(20, 38, 54, 0.9), rgba(2, 5, 9, 0.96));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.case-overlay[hidden] { display: none; }
.case-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 52%, rgba(255, 214, 112, 0.85), transparent 48%);
}
.case-overlay .case-flash { animation: caseFlash 1.8s ease-out; background: radial-gradient(circle at 50% 52%, rgba(255, 214, 112, 0.55), transparent 52%); }
.case-overlay.great .case-flash { animation: caseFlash 2.1s ease-out; background: radial-gradient(circle at 50% 52%, rgba(255, 214, 112, 0.85), transparent 48%); }
.case-overlay.good .case-flash { animation: caseFlash 1.8s ease-out; background: radial-gradient(circle at 50% 52%, rgba(77, 225, 255, 0.6), transparent 50%); }
@keyframes caseFlash { 0% { opacity: 0; } 24% { opacity: 1; } 100% { opacity: 0; } }

.case-reel {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: caseSpin 2.1s cubic-bezier(0.22, 0.9, 0.26, 1) both;
}
.case-overlay.revealing .case-reel { display: none; }
@keyframes caseSpin {
  from { transform: translateX(120px) scale(1.08); }
  to { transform: translateX(-620px) scale(1); }
}
.case-tile {
  width: 78px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(160, 210, 255, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(77, 225, 255, 0.13) 0 8px, rgba(255, 255, 255, 0.03) 8px 16px),
    linear-gradient(160deg, #11283a, #07121c);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.case-reveal { display: none; position: relative; z-index: 2; width: min(320px, 84vw); text-align: center; }
.case-overlay.revealing .case-reveal { display: block; animation: caseReveal 0.85s cubic-bezier(0.16, 1.1, 0.3, 1) both; }
@keyframes caseReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.82); }
  to { opacity: 1; transform: none; }
}
.case-quality { margin-bottom: 9px; font-size: 10px; font-weight: 900; letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase; }
.case-overlay.great .case-quality { color: #ffd166; text-shadow: 0 0 22px rgba(255, 190, 70, 0.65); }
.case-overlay.good .case-quality { color: var(--cyan); }
.case-reveal .pull-card { min-height: 320px; padding: 11px; }
.case-reveal .pull-ovr { font-size: 26px; }
.case-reveal .pull-bottom b { font-size: 12px; }
.case-msg { margin: 11px 0 13px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.case-msg b { color: var(--gold); }

.case-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--spark, #ffd166);
  animation: sparkFly var(--dur, 1.1s) ease-out var(--delay, 0s) both;
}
@keyframes sparkFly {
  from { opacity: 1; transform: rotate(0deg) translate(0, 0); }
  to { opacity: 0; transform: rotate(var(--rot, 180deg)) translate(var(--dx, 120px), var(--dy, -160px)); }
}

/* РґРѕРЅР°С‚ */
.donate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 16px;
  text-align: center;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(77, 225, 255, 0.2);
  background: linear-gradient(165deg, rgba(77, 225, 255, 0.11), rgba(255, 255, 255, 0.015));
}
.donate-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% ;
  height: 130px;
  background: radial-gradient(ellipse at center, rgba(77, 225, 255, 0.22), transparent 68%);
  pointer-events: none;
}
.donate-card.best { border-color: rgba(244, 201, 93, 0.5); background: linear-gradient(165deg, rgba(244, 201, 93, 0.16), rgba(255, 255, 255, 0.015)); }
.donate-gems { position: relative; font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(77, 225, 255, 0.35)); }
.donate-card h3 { position: relative; font-size: 16px; }
.donate-card .d-bonus { position: relative; font-size: 10px; font-weight: 800; color: var(--lime); }
.donate-card .d-price { position: relative; margin: 2px 0 4px; font-size: 18px; font-weight: 900; color: var(--ink); }
.donate-card .d-price span { font-size: 9px; color: var(--muted); letter-spacing: 0.12em; }
.donate-card .buy-btn { position: relative; }
.donate-bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px dashed rgba(77, 225, 255, 0.24);
  background: rgba(77, 225, 255, 0.04);
}
.donate-bonus .db-icon { font-size: 26px; }
.donate-bonus div { display: flex; flex-direction: column; gap: 2px; }
.donate-bonus b { font-size: 12px; }
.donate-bonus span { font-size: 10px; color: var(--muted); }

/* С‚СѓСЂРЅРёСЂС‹ */
.tourney-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tourney-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 17px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0%, var(--tglow, rgba(200, 255, 77, 0.12)), transparent 52%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}
.tourney-card.active { border-color: var(--tcolor, var(--lime)); box-shadow: 0 0 0 1px var(--tcolor, var(--lime)), 0 18px 36px rgba(0, 0, 0, 0.32); }
.tourney-head { display: flex; align-items: center; gap: 11px; }
.tourney-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-size: 28px; border-radius: 13px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); }
.tourney-head b { display: block; font-size: 16px; }
.tourney-head span { font-size: 9.5px; color: var(--muted); }
.tourney-desc { min-height: 30px; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.tourney-steps { display: flex; gap: 5px; }
.tourney-steps i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.tourney-steps i.done { background: var(--tcolor, var(--lime)); box-shadow: 0 0 9px var(--tcolor, var(--lime)); }
.tourney-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.tourney-next .club-crest { width: 26px; height: 28px; }
.tourney-next div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tourney-next b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tourney-next span { font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.tourney-next .tn-ovr { margin-left: auto; font-size: 16px; font-weight: 900; color: var(--gold); }
.tourney-reward { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); }
.tourney-reward b { font-size: 11px; color: var(--gold); }
.tourney-reward .tr-gem { color: var(--cyan); }
.tourney-status { font-size: 10px; font-weight: 800; color: var(--lime); }
.tourney-card .buy-btn { margin-top: auto; }

/* РєРѕР»Р»РµРєС†РёСЏ */
.collection-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.collection-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.collection-empty {
  grid-column: 1 / -1;
  padding: 38px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed var(--line);
}
.collection-empty b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }

.res-extra {
  margin: -8px 0 14px;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--gold);
  border-radius: 11px;
  border: 1px solid rgba(244, 201, 93, 0.3);
  background: rgba(244, 201, 93, 0.08);
}
.res-extra[hidden] { display: none; }

/* РЅР°РіСЂР°РґС‹ РґРЅСЏ */
.daily-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.daily-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 168px;
  padding: 15px 10px 13px;
  text-align: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}
.daily-card.current {
  border-color: rgba(200, 255, 77, 0.6);
  background: linear-gradient(165deg, rgba(200, 255, 77, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(200, 255, 77, 0.35), 0 14px 30px rgba(0, 0, 0, 0.3);
}
.daily-card.claimed { opacity: 0.48; }
.daily-card.claimed.current { opacity: 1; }
.daily-day { font-size: 8.5px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.daily-icon { font-size: 34px; line-height: 1.05; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.daily-card b { font-size: 11px; line-height: 1.2; }
.daily-card > span:not(.daily-day):not(.daily-icon) { font-size: 9px; line-height: 1.35; color: var(--muted); }
.daily-card em {
  margin-top: auto;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.daily-card.current em { color: var(--lime); }
.daily-claim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(200, 255, 77, 0.3);
  background: linear-gradient(120deg, rgba(200, 255, 77, 0.1), rgba(255, 255, 255, 0.02));
}
.daily-claim div { display: flex; flex-direction: column; gap: 3px; }
.daily-claim b { font-size: 14px; }
.daily-claim span { font-size: 11px; color: var(--muted); }
.daily-claim .btn { flex: 0 0 auto; width: auto; }
.daily-claim .btn:disabled { opacity: 0.45; cursor: default; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  max-width: min(420px, 88vw);
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #07120a;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #eaffac, #c8ff4d);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { color: #240b06; background: linear-gradient(180deg, #ffd0b8, #f59e42); }

@media (max-width: 1050px) {
  .offer-grid, .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .case-grid, .tourney-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card p { min-height: 0; }
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .offer-grid, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet { font-size: 10.5px; padding: 6px 9px; }
  .pull-card { min-height: 214px; }
  .section-head { flex-wrap: wrap; }
  .daily-card { min-height: 150px; }
  .daily-claim { flex-direction: column; align-items: stretch; text-align: center; }
  .daily-claim .btn { width: 100%; }
}

/* ==================== v2: РїСЂРѕСЃС‚РѕСЂРЅРѕРµ РјРµРЅСЋ ==================== */
.menu-shell {
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  padding: 38px;
}

.menu-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.menu-side > .eyebrow { grid-column: 1 / -1; margin: 2px 0 6px 2px; }
.menu-tile { min-height: 64px; padding: 13px 15px; gap: 12px; }
.menu-tile.daily { grid-column: 1 / -1; }
.menu-tip { grid-column: 1 / -1; margin-top: 4px; }
.mt-icon { width: 38px; height: 38px; font-size: 18px; }

/* ==================== v2: HUD С‚Р°РєС‚РёРєР° Рё РґСЂРёР±Р»РёРЅРі ==================== */
.tactic-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 13px;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 13px;
  border: 1px solid rgba(150, 200, 255, 0.18);
  background: rgba(8, 15, 23, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tactic-btn i { font-style: normal; font-size: 15px; line-height: 1; }
.tactic-btn span {
  font: 900 9.5px "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tac, #4de1ff);
}
.tactic-btn:hover { transform: translateY(-1px); border-color: var(--tac, #4de1ff); }

.dribble-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  pointer-events: none;
  border-radius: 13px;
  border: 1px solid rgba(150, 200, 255, 0.18);
  background: rgba(8, 15, 23, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dribble-meter span { font: 900 12px "Segoe UI", sans-serif; color: rgba(160, 190, 215, 0.55); }
.dribble-meter i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #4de1ff, #c8ff4d);
  transition: width 0.08s linear;
}
.dribble-meter.ready span { color: #4de1ff; }
.dribble-meter.burst { border-color: #4de1ff; box-shadow: 0 0 20px rgba(77, 225, 255, 0.65); }

.tbtn.dribble {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  font-size: 8px;
  color: #04222a;
  background: radial-gradient(circle at 38% 30%, #dcfbff, #4de1ff 72%);
}
.tbtn.tactic {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  font-size: 8px;
  color: #241804;
  background: radial-gradient(circle at 38% 30%, #fff3c4, #f4c95d 72%);
}

/* ==================== v2: СЌР»РёС‚РЅС‹Рµ РєР°СЂС‚РѕС‡РєРё ==================== */
.pcard.elite,
.rail-card.elite,
.pull-card.elite {
  color: #fff4cf;
  border-color: rgba(244, 201, 93, 0.75);
  background: linear-gradient(160deg, #4a350c, #0c1016 56%, #63491a);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.32), 0 12px 28px rgba(0, 0, 0, 0.46), inset 0 0 26px rgba(244, 201, 93, 0.17);
}
.pcard.legend,
.rail-card.legend,
.pull-card.legend {
  color: #fff4cf;
  border-color: rgba(244, 201, 93, 0.85);
  border-radius: 0;
  background: url('legend-card-frame.png?v=3') center/100% 100% no-repeat, linear-gradient(160deg, #2a2213, #0b0f16 58%, #1b1408);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.38), 0 12px 28px rgba(0, 0, 0, 0.46), inset 0 0 26px rgba(244, 201, 93, 0.17);
  -webkit-clip-path: polygon(50% 0%, 86% 5%, 100% 12%, 100% 88%, 86% 95%, 50% 100%, 14% 95%, 0% 88%, 0% 12%, 14% 5%);
  clip-path: polygon(50% 0%, 86% 5%, 100% 12%, 100% 88%, 86% 95%, 50% 100%, 14% 95%, 0% 88%, 0% 12%, 14% 5%);
}
.card-rings { position:absolute; inset:-25%; z-index:0; pointer-events:none; display:flex; align-items:center; justify-content:center; perspective:420px; transform-style:preserve-3d; }
.card-rings i { position:absolute; border-radius:50%; border:2px solid rgba(244,201,93,.55); box-shadow:0 0 10px rgba(244,201,93,.35), inset 0 0 10px rgba(255,236,170,.12); transform-style:preserve-3d; }
.card-rings i:nth-child(1){ width:78%; aspect-ratio:1; border-top-color:rgba(255,246,200,.95); border-bottom-color:rgba(255,214,120,.25); animation:ring3dA 7s linear infinite; }
.card-rings i:nth-child(2){ width:62%; aspect-ratio:1; border-color:rgba(255,220,140,.4); border-left-color:rgba(255,246,210,.95); border-right-color:rgba(255,200,90,.25); animation:ring3dB 5.5s linear infinite reverse; }
.card-rings i:nth-child(3){ width:46%; aspect-ratio:1; border-color:rgba(255,230,160,.35); border-top-color:rgba(255,248,220,.9); border-bottom-color:rgba(244,190,80,.2); animation:ring3dC 4.2s linear infinite; }
.pcard.legend .pc-face, .pull-card.legend .pull-face, .rail-card.legend .rc-face { z-index: 1; }
.pcard.legend .pc-shade, .pull-card.legend .pull-shade, .rail-card.legend .rc-shade { z-index: 2; }
@keyframes ring3dA { from{ transform:rotateX(72deg) rotateZ(0deg);} to{ transform:rotateX(72deg) rotateZ(360deg);} }
@keyframes ring3dB { from{ transform:rotateX(66deg) rotateY(58deg) rotateZ(0deg);} to{ transform:rotateX(66deg) rotateY(58deg) rotateZ(360deg);} }
@keyframes ring3dC { from{ transform:rotateX(74deg) rotateY(-52deg) rotateZ(0deg);} to{ transform:rotateX(74deg) rotateY(-52deg) rotateZ(360deg);} }
.legend-121 .card-rings i:nth-child(1){ animation-direction: reverse; }
.legend-121 .card-rings i:nth-child(2){ animation-direction: normal; }
.legend-121 .card-rings i:nth-child(3){ animation-direction: reverse; }
.legend-122 .card-rings i:nth-child(1){ animation-duration: 5.5s; animation-direction: normal; }
.legend-122 .card-rings i:nth-child(2){ animation-duration: 7s; animation-direction: reverse; }
.legend-122 .card-rings i:nth-child(3){ animation-duration: 3.6s; animation-direction: normal; }
.legend-123 .card-rings i:nth-child(1){ animation-direction: reverse; animation-duration: 6.5s; }
.legend-123 .card-rings i:nth-child(2){ animation-direction: normal; animation-duration: 4.8s; }
.legend-123 .card-rings i:nth-child(3){ animation-direction: reverse; animation-duration: 5.2s; }

.pcard.elite .pc-ovr,
.rail-card.elite .rc-top b,
.pull-card.elite .pull-ovr { color: #ffd876; text-shadow: 0 0 16px rgba(255, 200, 90, 0.6); }
.pcard.elite .pc-name,
.rail-card.elite .rc-name,
.pull-card.elite .pull-bottom b { color: #ffe9a8; }
.pcard.elite::after,
.rail-card.elite::after,
.pull-card.elite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 34%, rgba(255, 228, 150, 0.2) 50%, transparent 66%);
}

/* ==================== v2: СЃРїРѕСЃРѕР±РЅРѕСЃС‚Рё Рё СЂРѕСЃС‚РѕРІС‹Рµ РїРѕСЂС‚СЂРµС‚С‹ ==================== */
.card-abilities {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: calc(100% - 10px);
  pointer-events: none;
}
.card-ability {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 2px 6px;
  overflow: hidden;
  font: 900 6.5px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.card-ability:has(.card-ability-img) {
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  border-radius: 4px;
  overflow: visible;
}
.card-ability-img {
  display: block;
  width: auto;
  height: 26px;
  max-width: 38px;
  object-fit: contain;
  border-radius: 3px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.pcard .card-ability-img { height: 20px; max-width: 30px; }
.pull-card .card-ability-img { height: 32px; max-width: 44px; }
.case-reveal .card-ability-img { height: 40px; max-width: 54px; }
.card-ability i { font-style: normal; font-size: 8px; line-height: 1; flex: 0 0 auto; }
.card-ability em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card-ability.silver {
  color: #1b2430;
  background: linear-gradient(135deg, #f5f7fb, #c9d2df 72%);
  border: 1px solid rgba(255,255,255,0.55);
}
.card-ability.gold {
  color: #2a1a03;
  background: linear-gradient(135deg, #fff4c2, #f2c14e 72%);
  border: 1px solid rgba(255,236,170,0.6);
}
.card-abilities + .pc-top,
.card-abilities + .rc-top,
.card-abilities + .pull-top { margin-top: 14px; }
.pcard .card-abilities { top: 3px; left: 3px; gap: 2px; max-width: calc(100% - 6px); }
.pcard .card-ability { padding: 1px 4px; font-size: 5.5px; gap: 2px; border-radius: 5px; }
.pcard .card-ability i { font-size: 7px; }
.pull-card .card-abilities { top: 6px; left: 6px; gap: 4px; }
.pull-card .card-ability { padding: 3px 7px; font-size: 7px; border-radius: 7px; }
.case-reveal .card-abilities { top: 8px; left: 8px; }
.case-reveal .card-ability { padding: 4px 9px; font-size: 8px; }
.pull-card.icon .card-ability.gold {
  color: #1a1204;
  background: linear-gradient(135deg, #fff6cd, #f2c14e 65%, #d9a52f);
  box-shadow: 0 0 14px rgba(244, 201, 93, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.pull-card.icon .card-ability.silver {
  box-shadow: 0 0 10px rgba(210, 220, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.full-body .pc-face { background-position: 50% 100%; }
.full-body .rc-face { background-position: 50% 100%; }
.full-body .pull-face { background-position: 50% 100%; }
.half-body .pc-face { background-position: 50% 8%; }
.half-body .rc-face { background-position: 50% 6%; }
.half-body .pull-face { background-position: 50% 6%; }

/* ==================== v2: РѕР±СЉСЏРІР»РµРЅРёРµ РєР°СЂС‚РѕС‡РєРё РІ РєРµР№СЃРµ ==================== */
.case-card-wrap { width: min(300px, 84vw); margin: 0 auto; }

.case-announce {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 26px 22px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(77, 225, 255, 0.34);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77, 225, 255, 0.18), transparent 72%),
    rgba(6, 14, 22, 0.88);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: announceIn 0.46s cubic-bezier(0.16, 1.1, 0.3, 1) both;
}
.case-announce.great {
  border-color: rgba(244, 201, 93, 0.62);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244, 201, 93, 0.24), transparent 72%),
    rgba(12, 9, 4, 0.9);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 46px rgba(244, 201, 93, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ca-quality { font-size: 9px; font-weight: 900; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cyan); }
.case-announce.great .ca-quality { color: #ffd166; text-shadow: 0 0 20px rgba(255, 190, 70, 0.6); }
.ca-pos { font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ca-name { font-size: clamp(21px, 4vw, 30px); font-weight: 900; line-height: 1.04; text-transform: uppercase; color: #fff; }
.case-announce.great .ca-name { color: #fff3c8; text-shadow: 0 0 26px rgba(244, 201, 93, 0.35); }
.ca-club { font-size: 11px; color: var(--muted); }
.ca-hint {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(160, 190, 215, 0.55);
  animation: hintPulse 1s ease-in-out infinite;
}
@keyframes announceIn {
  from { opacity: 0; transform: scale(0.9) translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hintPulse { 50% { opacity: 0.35; } }

/* ==================== v2: РєСѓР±РєРё ==================== */
.cup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px 18px 18px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}
.cup-card.owned {
  border-color: rgba(244, 201, 93, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244, 201, 93, 0.2), transparent 70%),
    linear-gradient(165deg, rgba(244, 201, 93, 0.12), rgba(255, 255, 255, 0.012));
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.2), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cup-icon { font-size: 56px; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.cup-card:not(.owned) .cup-icon { filter: grayscale(1) opacity(0.3); }
.cup-card b { font-size: 14px; }
.cup-count { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.cup-card:not(.owned) .cup-count { color: var(--muted); }
.cup-card p { font-size: 10.5px; line-height: 1.45; color: var(--muted); }

/* ==================== v2: РєРІРµСЃС‚С‹ ==================== */
.quest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quest-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quest-card.done { border-color: rgba(200, 255, 77, 0.48); background: linear-gradient(160deg, rgba(200, 255, 77, 0.09), rgba(255, 255, 255, 0.012)); }
.quest-card.claimed { opacity: 0.5; }
.quest-head { display: flex; align-items: center; gap: 11px; }
.quest-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.quest-head div { display: flex; flex-direction: column; gap: 2px; }
.quest-head b { font-size: 13px; }
.quest-head span { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold); }
.quest-card p { font-size: 11px; line-height: 1.4; color: var(--muted); }
.quest-bar { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.quest-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4de1ff, #c8ff4d); transition: width 0.25s ease; }
.quest-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); }
.quest-foot .buy-btn { width: auto; padding: 7px 13px; }

/* ==================== СЂРµР·РµСЂРІ СЃРѕСЃС‚Р°РІР° ==================== */
.rail-head { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rail-head > span { flex: 1 1 220px; }

.reserve-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 7px 12px 7px 8px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(200, 255, 77, 0.32);
  background: linear-gradient(135deg, rgba(200, 255, 77, 0.15), rgba(77, 225, 255, 0.06));
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.reserve-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 77, 0.68);
  background: linear-gradient(135deg, rgba(200, 255, 77, 0.24), rgba(77, 225, 255, 0.09));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}
.reserve-btn.open {
  border-color: var(--lime);
  background: rgba(200, 255, 77, 0.16);
  box-shadow: 0 0 0 1px rgba(200, 255, 77, 0.25), 0 10px 24px rgba(0, 0, 0, 0.34);
}
.rb-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.rb-text { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.rb-text b { font-size: 11.5px; letter-spacing: 0.02em; }
.rb-text span {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rb-arrow { font-size: 14px; color: var(--lime); transition: transform 0.2s ease; }
.reserve-btn.open .rb-arrow { transform: rotate(90deg); }

.reserve-panel {
  margin: 4px 0 12px;
  padding: 12px 14px 8px;
  border-radius: 16px;
  border: 1px solid rgba(200, 255, 77, 0.22);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(200, 255, 77, 0.1), transparent 58%),
    rgba(4, 11, 17, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: reserveIn 0.18s ease;
}
@keyframes reserveIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.reserve-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.reserve-head div { display: flex; flex-direction: column; gap: 3px; }
.reserve-head b {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime);
}
.reserve-head span { font-size: 10px; line-height: 1.4; color: var(--muted); }
.reserve-close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.reserve-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }

.reserve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: 264px;
  overflow-y: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 255, 77, 0.3) transparent;
}
.reserve-grid::-webkit-scrollbar { width: 6px; }
.reserve-grid::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(200, 255, 77, 0.28); }
.reserve-grid .rail-card { width: 100%; height: 150px; }
.reserve-empty { padding: 10px 2px 12px; font-size: 11px; line-height: 1.45; color: var(--muted); }

/* ==================== РјРµРЅСЋ РІ СЂР°Р·РЅР°Р±РѕР№: РјР°РіР°Р·РёРЅ СЃРІРµСЂС…Сѓ, СЃРѕСЃС‚Р°РІ СЃРЅРёР·Сѓ ==================== */
.menu-shell {
  width: min(1280px, 100%);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 32px;
  align-items: stretch;
}

.menu-side.menu-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  padding: 14px;
  border-radius: 24px;
}
.menu-bento > .eyebrow { grid-column: 1 / -1; margin: 0 0 2px 2px; color: var(--muted); }
.menu-bento .menu-tile { grid-column: span 4; min-height: 0; padding: 11px 12px; gap: 10px; }
.menu-bento .menu-tile:hover { background: rgba(255,255,255,0.12); transform: none; }
.menu-bento .mt-icon { width: 34px; height: 34px; font-size: 16px; }
.menu-bento .mt-text b { font-size: 12px; }
.menu-bento .mt-text span { font-size: 9px; }

/* Р±РѕР»СЊС€РѕР№ РјР°РіР°Р·РёРЅ СЃРІРµСЂС…Сѓ */
.shop-hero {
  position: relative;
  grid-column: 1 / -1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 118px !important;
  align-items: flex-start !important;
  padding: 18px 20px !important;
  overflow: hidden;
  border-radius: 18px !important;
  border-color: rgba(244, 201, 93, 0.4) !important;
  background: linear-gradient(120deg, rgba(244, 201, 93, 0.24), rgba(255, 126, 61, 0.12) 48%, rgba(77, 225, 255, 0.08)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.32);
}
.shop-hero:hover { border-color: rgba(244, 201, 93, 0.85) !important; }
.shop-hero-glow {
  position: absolute;
  right: -46px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 112, 0.34), transparent 64%);
}
.sh-badge {
  position: absolute;
  top: 14px;
  left: 20px;
  padding: 4px 9px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2a1c05;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe9a8, #f2c14e);
}
.sh-title {
  position: relative;
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff4d4;
}
.sh-sub { position: relative; margin-top: 4px; font-size: 10px; color: rgba(255, 236, 190, 0.68); }
.sh-cta {
  position: relative;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe4a0;
}
.sh-icon {
  position: absolute;
  top: 50%;
  right: 22px;
  font-size: 62px;
  line-height: 1;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
  opacity: 0.92;
  pointer-events: none;
}
.shop-hero > .sh-title, .shop-hero > .sh-sub, .shop-hero > .sh-cta { z-index: 1; }
.shop-hero > .sh-title { margin-bottom: 0; }

/* Р°СЃРёРјРјРµС‚СЂРёС‡РЅС‹Рµ СЂР°Р·РјРµСЂС‹ РїР»РёС‚РѕРє */
.menu-bento .tile-lg { grid-column: span 8; min-height: 64px !important; }
.menu-bento .tile-lg .mt-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 13px; }
.menu-bento .tile-lg .mt-text b { font-size: 15px; }
.menu-bento .tile-lg .mt-text span { font-size: 9.5px; }
.menu-bento .daily { grid-column: span 6; }
.menu-bento .tile-half { grid-column: span 6; }
.menu-bento .tile-wide { grid-column: span 8; }
.menu-bento .menu-tip { grid-column: 1 / -1; margin-top: 2px; }
.menu-bento .shop-hero { grid-column: 1 / -1; }
.menu-bento .squad-wide { grid-column: 1 / -1; }

/* С€РёСЂРѕРєРёР№ СЃРѕСЃС‚Р°РІ РІРЅРёР·Сѓ */
.squad-wide {
  grid-column: 1 / -1;
  min-height: 78px !important;
  padding: 13px 16px !important;
  border-color: rgba(200, 255, 77, 0.38) !important;
  background: linear-gradient(115deg, rgba(200, 255, 77, 0.2), rgba(77, 225, 255, 0.09) 62%, rgba(255, 255, 255, 0.03)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.3);
}
.squad-wide:hover { border-color: var(--lime) !important; }
.squad-wide .mt-icon {
  width: 46px !important;
  height: 46px !important;
  font-size: 21px !important;
  border-color: rgba(200, 255, 77, 0.22);
  background: rgba(200, 255, 77, 0.1);
}
.squad-wide .mt-text b { font-size: 16px; }
.squad-wide .mt-text span { font-size: 9.5px; }
.sq-ovr {
  margin-left: auto;
  padding: 4px 9px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
  border-radius: 9px;
  border: 1px solid rgba(200, 255, 77, 0.28);
  background: rgba(0, 0, 0, 0.3);
}
.sq-ovr::after {
  content: " OVR";
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  vertical-align: middle;
}

@media (max-width: 980px) {
  .menu-shell { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 18px; }
}
@media (max-width: 720px) {
  .menu-side.menu-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .menu-bento .shop-hero,
  .menu-bento .tile-lg,
  .menu-bento .daily,
  .menu-bento .squad-wide,
  .menu-bento .menu-tip { grid-column: span 2; }
  .menu-bento .tile-wide { grid-column: span 1; }
  .shop-hero { min-height: 104px !important; }
  .sh-title { font-size: 19px; }
  .sh-icon { font-size: 48px; right: 14px; }
  .sq-ovr { padding: 4px 7px; font-size: 15px; }
}
@media (max-width: 520px) {
  .rail-head > span { flex-basis: 100%; order: 3; }
  .reserve-btn { margin-left: auto; }
  .reserve-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
}


@media (max-width: 980px) {
  .menu-shell { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .menu-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-side { flex-direction: initial; flex-wrap: nowrap; }
}

@media (max-width: 720px) {
  .menu-shell { padding: 22px 16px; gap: 16px; }
  .menu-side { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .menu-tile.daily { grid-column: auto; }
  .quest-grid { grid-template-columns: minmax(0, 1fr); }
  .cup-grid { grid-template-columns: minmax(0, 1fr); }
  .tactic-btn span { display: none; }
  .tactic-btn { padding: 0 11px; }
}

@media (max-width: 520px) {
  .tbtn.dribble { width: 50px !important; height: 50px !important; margin-bottom: 24px !important; font-size: 7px !important; }
  .tbtn.tactic { width: 48px !important; height: 48px !important; margin-bottom: 8px !important; font-size: 7px !important; }
  .dribble-meter { display: none; }
  .card-ability { font-size: 5.5px; padding: 2px 4px; }
}

/* С„РёРЅР°Р»СЊРЅС‹Рµ РїСЂР°РІРёР»Р° Р°СЃРёРјРјРµС‚СЂРёС‡РЅРѕРіРѕ РјРµРЅСЋ Рё СЂРµР·РµСЂРІР° — РїРѕСЃР»Рµ РІСЃРµС… Р°РґР°РїС‚РёРІРѕРІ */
@media (max-width: 1050px) {
  .cup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .menu-shell { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 18px; }
  .menu-side.menu-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .menu-hero .tagline { display: none; }
  .menu-hero h1 { font-size: clamp(42px, 8vw, 66px); }
  .profile-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu-shell { padding: 20px 14px; gap: 14px; }
  .menu-side.menu-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .menu-bento .menu-tile { grid-column: span 1; }
  .menu-bento .shop-hero,
  .menu-bento .tile-lg,
  .menu-bento .daily,
  .menu-bento .tile-half,
  .menu-bento .squad-wide,
  .menu-bento .menu-tip { grid-column: span 2; }
  .menu-bento .tile-wide { grid-column: span 1; }
  .shop-hero { min-height: 104px !important; }
  .sh-title { font-size: 19px; }
  .sh-icon { font-size: 46px; right: 12px; }
}
@media (max-width: 520px) {
  .rail-head > span { flex-basis: 100%; order: 3; }
  .reserve-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  .menu-bento .tile-wide { grid-column: span 2; }
  .menu-bento .tile-lg { grid-column: span 2; }
  .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sq-ovr { padding: 4px 7px; font-size: 15px; }
}


/* ==================== FC MOON: Р»СѓРЅРЅС‹Р№ Р·РЅР°Рє Рё РїСЂРѕСЃС‚РѕРµ РјРµРЅСЋ ==================== */
.menu-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}
.moon-badge {
  flex: 0 0 auto;
  display: block;
  width: 58px;
  height: 58px;
  margin-top: 4px;
  filter: drop-shadow(0 0 18px rgba(242, 193, 78, 0.3));
}
.moon-badge svg, .moon-badge img { display: block; width: 100%; height: 100%; }
.moon-badge.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(167,139,250,.28), 0 10px 28px rgba(88,28,135,.35), 0 0 26px rgba(139,92,246,.25);
  filter: drop-shadow(0 0 22px rgba(167,139,250,.32));
}
.moon-badge.brand-logo img { object-fit: cover; }
.auth-moon.brand-logo { width: 96px; height: 96px; border-radius: 24px; margin: 0 0 14px; }
.menu-brand .eyebrow { margin: 0 0 2px; }
.menu-brand h1 { margin: 2px 0 0; font-size: clamp(42px, 5.6vw, 70px); }
.menu-hero .tagline { max-width: 430px; margin-bottom: 16px; font-size: 12.5px; }

.menu-side.menu-simple {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(3, 9, 14, 0.42);
}
.menu-simple .shop-hero {
  min-height: 132px !important;
  padding: 16px 18px !important;
}
.menu-simple .sh-title { font-size: 26px; }
.menu-simple .sh-icon { right: 24px; font-size: 64px; }

.menu-simple .menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.menu-simple .menu-grid .menu-tile {
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  gap: 9px;
  border-radius: 13px;
}
.menu-simple .menu-grid .menu-tile:hover { transform: translateY(-2px); }
.menu-simple .menu-grid .mt-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
.menu-simple .menu-grid .mt-text b { font-size: 12px; }
.menu-simple .menu-grid .mt-text span {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.menu-simple .squad-wide {
  min-height: 66px !important;
  margin-top: 1px;
  padding: 11px 13px !important;
}
.menu-simple .squad-wide .mt-icon { width: 38px !important; height: 38px !important; font-size: 17px !important; }
.menu-simple .squad-wide .mt-text b { font-size: 14px; }
.menu-simple .squad-wide .mt-text span { font-size: 9px; }
.menu-simple .sq-ovr { padding: 3px 8px; font-size: 16px; }

.menu-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 8px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(150, 200, 255, 0.09);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.menu-link b { font-size: 9.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.menu-link .ml-icon { font-size: 12px; line-height: 1; }
.menu-link .ml-sub { display: none; }
.menu-link .ml-state { font-size: 11px; color: var(--lime); }
.menu-link:hover { color: #fff; border-color: rgba(200, 255, 77, 0.3); background: rgba(200, 255, 77, 0.06); }
.menu-link.daily { border-color: rgba(244, 201, 93, 0.22); background: rgba(244, 201, 93, 0.055); }

@media (max-width: 980px) {
  .menu-side.menu-simple { flex-direction: column; flex-wrap: nowrap; }
  .menu-simple .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-simple .menu-tile { flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .menu-side.menu-simple { padding: 12px; }
  .menu-simple .shop-hero { min-height: 108px !important; }
  .menu-simple .sh-title { font-size: 21px; }
  .menu-simple .sh-icon { font-size: 50px; right: 14px; }
  .menu-brand { gap: 9px; }
  .moon-badge { width: 46px; height: 46px; }
  .menu-brand h1 { font-size: clamp(38px, 10vw, 56px); }
}
@media (max-width: 520px) {
  .menu-simple .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-simple .menu-grid .menu-tile { min-height: 50px; }
  .menu-link b { font-size: 9px; }
  .menu-link:nth-child(2) b,
  .menu-link:nth-child(3) b,
  .menu-link:nth-child(5) b { display: none; }
}

/* РќР° РЅРµРІС‹СЃРѕРєРёС… РґРµСЃРєС‚РѕРїР°С… РґРµСЂР¶РёРј РґРІРµ РєРѕР»РѕРЅРєРё: РјР°РіР°Р·РёРЅ Рё СЃРѕСЃС‚Р°РІ РѕСЃС‚Р°СЋС‚СЃСЏ РЅР° РІРёРґСѓ. */
@media (min-width: 760px) and (max-width: 980px) {
  .menu-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: 16px;
    padding: 20px;
    align-items: start;
  }
  .menu-brand h1 { font-size: clamp(38px, 5vw, 54px); }
  .menu-hero .hint { margin-top: 8px; font-size: 9px; }
  .menu-side.menu-simple { padding: 12px; }
  .menu-simple .shop-hero { min-height: 108px !important; }
  .menu-simple .sh-title { font-size: 21px; }
  .menu-simple .sh-icon { font-size: 50px; right: 14px; }
  .menu-links .menu-link { flex: 1 1 30%; }
}

/* ==================== FC MOON: С„РёРѕР»РµС‚РѕРІРѕ-С‡С‘СЂРЅР°СЏ С‚РµРјР° Рё Р°РєРєР°СѓРЅС‚ ==================== */
:root {
  --violet: #8b5cf6;
  --violet-deep: #4c1d95;
  --violet-soft: #c9a6ff;
  --violet-line: rgba(167, 139, 250, 0.22);
}

.overlay {
  background:
    radial-gradient(ellipse at 16% 4%, rgba(139, 92, 246, 0.30), transparent 46%),
    radial-gradient(ellipse at 86% 96%, rgba(217, 70, 239, 0.18), transparent 48%),
    radial-gradient(ellipse at 68% 18%, rgba(76, 29, 149, 0.24), transparent 55%),
    rgba(4, 2, 10, 0.84);
}

.menu-shell {
  border: 1px solid var(--violet-line);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(167, 139, 250, 0.20), transparent 46%),
    radial-gradient(ellipse at 92% 100%, rgba(192, 38, 211, 0.16), transparent 52%),
    linear-gradient(155deg, #191029 0%, #120a21 38%, #070410 100%);
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.menu-brand h1 span,
.menu-hero h1 span {
  background: linear-gradient(120deg, #f3e8ff 0%, #c084fc 34%, #8b5cf6 58%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 10px 28px rgba(139, 92, 246, 0.45));
}

.menu-brand .eyebrow,
.menu-hero .eyebrow { color: #c4a5ff; }
.menu-hero .eyebrow { letter-spacing: 0.28em; }

.moon-badge { filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.45)); }

.profile-stats div {
  border-color: rgba(167, 139, 250, 0.15);
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.02));
}

.menu-side.menu-simple {
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(139, 92, 246, 0.24), transparent 62%),
    linear-gradient(170deg, rgba(38, 22, 64, 0.80), rgba(10, 6, 20, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.menu-tile {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}
.menu-tile:hover {
  border-color: rgba(200,255,77,0.35);
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}
.mt-icon {
  color: var(--lime);
  border: 1px solid rgba(200,255,77,0.18);
  background: rgba(200,255,77,0.08);
  box-shadow: none;
}
.mt-text span { color: rgba(196, 181, 253, 0.62); }

.shop-hero {
  border-color: rgba(167, 139, 250, 0.5) !important;
  background:
    radial-gradient(ellipse at 92% 16%, rgba(232, 121, 249, 0.34), transparent 58%),
    linear-gradient(120deg, rgba(109, 40, 217, 0.74), rgba(59, 7, 100, 0.62) 52%, rgba(8, 4, 18, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 18px 40px rgba(49, 10, 90, 0.45);
}
.shop-hero:hover {
  border-color: rgba(233, 213, 255, 0.95) !important;
  box-shadow: 0 22px 52px rgba(109, 40, 217, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.shop-hero-glow { background: radial-gradient(circle, rgba(217, 70, 239, 0.48), transparent 64%); }
.sh-title { color: #f8f1ff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.sh-sub { color: rgba(226, 208, 255, 0.74); }
.sh-cta { color: #d8b4fe; }
.sh-badge { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }

.squad-wide {
  border-color: rgba(139, 92, 246, 0.5) !important;
  background:
    radial-gradient(ellipse at 88% 50%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(115deg, rgba(124, 58, 237, 0.46), rgba(76, 29, 149, 0.36) 58%, rgba(20, 10, 38, 0.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 32px rgba(49, 10, 90, 0.4);
}
.squad-wide:hover {
  border-color: rgba(196, 181, 253, 0.9) !important;
  box-shadow: 0 20px 44px rgba(109, 40, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.sq-ovr { color: #e9d5ff; }

.menu-link {
  border-color: rgba(167, 139, 250, 0.16);
  background: rgba(139, 92, 246, 0.07);
}
.menu-link b { color: #ede4ff; }
.menu-link .ml-state { color: var(--violet-soft); }
.menu-link:hover {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.3);
}
.menu-link.daily { border-color: rgba(244, 201, 93, 0.28); background: rgba(244, 201, 93, 0.07); }
.menu-link.daily:hover { border-color: rgba(244, 201, 93, 0.55); background: rgba(244, 201, 93, 0.13); }

/* Р°РєРєР°СѓРЅС‚ РІ РјРµРЅСЋ */
.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(430px, 100%);
  margin: 0 0 14px;
  padding: 7px 9px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  background: linear-gradient(120deg, rgba(76, 29, 149, 0.38), rgba(18, 10, 32, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.ac-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #150a24;
  border-radius: 10px;
  background: linear-gradient(160deg, #f3e8ff, #a855f7 78%);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.42);
}
.ac-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.15; }
.ac-info span { font-size: 8px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(196, 165, 255, 0.72); }
.ac-info b { max-width: 150px; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; color: #f5edff; }
.ac-status {
  margin-left: auto;
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8ff4d;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 77, 0.3);
  background: rgba(200, 255, 77, 0.08);
}
.account-chip.guest .ac-status { color: var(--violet-soft); border-color: rgba(196, 165, 255, 0.3); background: rgba(139, 92, 246, 0.12); }
.ac-logout {
  flex: 0 0 auto;
  padding: 6px 10px;
  font: 800 10px "Segoe UI", sans-serif;
  color: #e9d5ff;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ac-logout:hover { color: #ffe4e6; border-color: rgba(248, 113, 113, 0.55); background: rgba(239, 68, 68, 0.18); }

/* ==================== СЂРµРіРёСЃС‚СЂР°С†РёСЏ Рё РІС…РѕРґ ==================== */
.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  width: min(940px, 100%);
  padding: 30px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--violet-line);
  background:
    radial-gradient(ellipse at 6% 0%, rgba(167, 139, 250, 0.20), transparent 46%),
    radial-gradient(ellipse at 96% 100%, rgba(192, 38, 211, 0.16), transparent 52%),
    linear-gradient(155deg, #1a1130 0%, #0d0718 56%, #070410 100%);
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.auth-aside { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.auth-moon { width: 72px; height: 72px; margin: 0 0 14px; }
.auth-aside h2 { margin: 8px 0 12px; font-size: clamp(30px, 3.6vw, 44px); line-height: 0.96; }
.auth-aside h2 span {
  background: linear-gradient(120deg, #f3e8ff, #a855f7 52%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.auth-text { max-width: 360px; font-size: 12.5px; line-height: 1.6; color: rgba(196, 181, 253, 0.74); }
.auth-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; list-style: none; }
.auth-perks li {
  flex: 1 1 90px;
  min-width: 90px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.2), rgba(255, 255, 255, 0.02));
}
.auth-perks b { display: block; font-size: 19px; color: #f5edff; line-height: 1.1; }
.auth-perks span { font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(196, 165, 255, 0.62); }
.auth-foot { margin-top: auto; padding-top: 18px; font-size: 9px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(167, 139, 250, 0.45); }
.auth-card {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: linear-gradient(170deg, rgba(35, 21, 58, 0.82), rgba(10, 6, 20, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 46px rgba(0, 0, 0, 0.4);
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; padding: 4px; border-radius: 12px; border: 1px solid rgba(167, 139, 250, 0.15); background: rgba(6, 3, 12, 0.55); }
.auth-tab {
  flex: 1;
  padding: 9px 10px;
  font: 800 11.5px "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: rgba(196, 181, 253, 0.66);
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: transparent;
  transition: color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.auth-tab:hover { color: #f5edff; }
.auth-tab.active {
  color: #fff;
  background: linear-gradient(160deg, #7c3aed, #4c1d95);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.auth-field.off { display: none; }
.auth-field span { font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(196, 165, 255, 0.72); }
.auth-field input {
  width: 100%;
  padding: 11px 13px;
  font: 600 13px "Segoe UI", sans-serif;
  color: #f6f0ff;
  border-radius: 11px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(5, 3, 10, 0.55);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.auth-field input::placeholder { color: rgba(167, 139, 250, 0.38); }
.auth-field input:focus { border-color: rgba(192, 132, 252, 0.7); background: rgba(12, 6, 22, 0.82); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.auth-error { min-height: 16px; margin: 2px 0 10px; font-size: 11px; font-weight: 600; line-height: 1.35; color: #fda4af; opacity: 0; transition: opacity 0.16s ease; }
.auth-error.show { opacity: 1; }
.auth-error.shake { animation: authShake 0.34s ease; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  44% { transform: translateX(4px); }
  66% { transform: translateX(-3px); }
  88% { transform: translateX(2px); }
}
.auth-submit { width: 100%; }
.auth-submit.busy { opacity: 0.7; }
.auth-note { margin-top: 10px; font-size: 9.5px; line-height: 1.5; text-align: center; color: rgba(167, 139, 250, 0.55); }

/* ==================== РєРЅРѕРїРєРё: РіСЂР°РґРёРµРЅС‚, Р±Р»РёРє, РѕР±СЉС‘Рј ==================== */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(216, 180, 254, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #a855f7 0%, #7c3aed 44%, #4c1d95 100%);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -75%;
  z-index: -1;
  width: 55%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(8deg);
  transition: left 0.55s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07) saturate(1.06); box-shadow: 0 18px 40px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.42); }
.btn:active { transform: translateY(1px) scale(0.99); filter: brightness(1.02); }
.btn:disabled::after { display: none; }

.btn.ghost {
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, 0.24);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: none;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: rgba(192, 132, 252, 0.5); background: rgba(139, 92, 246, 0.22); box-shadow: 0 10px 24px rgba(76, 29, 149, 0.28); }

#btn-play {
  gap: 10px;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 48%),
    linear-gradient(120deg, #d946ef 0%, #a855f7 38%, #6d28d9 72%, #4c1d95 100%);
  box-shadow: 0 14px 34px rgba(192, 38, 211, 0.42), 0 0 0 1px rgba(240, 171, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
#btn-play::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.12);
}
#btn-play:hover { box-shadow: 0 20px 46px rgba(217, 70, 239, 0.55), 0 0 0 1px rgba(240, 171, 252, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
#btn-play .btn-gamepad { flex: 0 0 auto; width: 21px; height: 21px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }

.back {
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.back:hover { color: #fff; border-color: rgba(192, 132, 252, 0.55); background: rgba(139, 92, 246, 0.24); transform: translateY(-1px); }

.pause-btn {
  border-color: rgba(167, 139, 250, 0.32);
  background: linear-gradient(160deg, rgba(35, 21, 58, 0.95), rgba(8, 4, 16, 0.95));
}
.pause-btn:hover { border-color: rgba(192, 132, 252, 0.6); background: linear-gradient(160deg, rgba(58, 34, 96, 0.96), rgba(14, 7, 26, 0.96)); }

@media (max-width: 720px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; }
  .auth-aside { align-items: flex-start; }
  .auth-foot { display: none; }
  .auth-moon { width: 56px; height: 56px; margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .auth-shell { padding: 16px; border-radius: 22px; }
  .auth-card { padding: 14px; }
  .auth-perks li { min-width: 0; }
  .ac-info b { max-width: 96px; }
  .ac-status { display: none; }
}

.auth-reset {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 4px 2px;
  font: 700 9.5px "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: rgba(196, 165, 255, 0.55);
  cursor: pointer;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.14s ease;
}
.auth-reset:hover { color: #fda4af; }

/* ==================== пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅ ==================== */
.account-chip { cursor: pointer; }
.ac-avatar {
  padding: 0;
  border: 0;
  overflow: hidden;
  font-family: inherit;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ac-avatar:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6); }
.ac-avatar:focus-visible { outline: 2px solid rgba(216, 180, 254, 0.85); outline-offset: 2px; }
.ac-avatar.has-photo { color: transparent; border: 1px solid rgba(216, 180, 254, 0.5); }

.profile-panel { width: min(720px, 100%); }
.profile-editor { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  overflow: hidden;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #150a24;
  border-radius: 28px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(160deg, #f3e8ff, #a855f7 78%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(49, 10, 90, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.profile-avatar.has-photo { color: transparent; }
.profile-avatar-wrap .btn { width: 100%; }
.profile-avatar-wrap .btn.ghost { margin-top: 0; }
.profile-photo-hint { margin-top: 2px; font-size: 9px; line-height: 1.45; text-align: center; color: rgba(167, 139, 250, 0.55); }
.profile-fields { display: flex; flex-direction: column; gap: 8px; }
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  background: rgba(139, 92, 246, 0.07);
}
.profile-row span { font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(196, 165, 255, 0.7); }
.profile-row b { font-size: 12.5px; text-align: right; color: #f5edff; overflow-wrap: anywhere; }
#btn-profile-logout { margin-top: auto; }

@media (max-width: 640px) {
  .profile-editor { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .profile-avatar { width: 132px; height: 132px; border-radius: 22px; font-size: 34px; }
  .profile-avatar-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .profile-avatar-wrap .btn { width: auto; flex: 1 1 120px; }
  .profile-photo-hint { flex-basis: 100%; }
}



/* ==================== SPLASH / LOGO ==================== */
.pre-splash {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
.pre-splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-splash-logo {
  width: min(62vw, 520px);
  max-height: 60vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .7s ease, transform .7s ease;
}
.pre-splash.show-logo .pre-splash-logo { opacity: 1; transform: scale(1); }
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 35%, #24104a 0%, #0c0618 45%, #050309 100%);
  transition: opacity .55s ease, visibility .55s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(139,92,246,.35), rgba(139,92,246,0) 70%),
    radial-gradient(closest-side at 30% 70%, rgba(76,29,149,.22), rgba(76,29,149,0) 60%),
    radial-gradient(closest-side at 75% 65%, rgba(192,132,252,.18), rgba(192,132,252,0) 55%);
  filter: blur(10px);
  animation: splashGlow 3.2s ease-in-out infinite alternate;
}
@keyframes splashGlow { from { transform: scale(1); opacity: .85; } to { transform: scale(1.04); opacity: 1; } }
.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  animation: splashIn .7s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.splash-logo {
  width: min(46vw, 260px);
  height: min(46vw, 260px);
  object-fit: cover;
  border-radius: 28%;
  box-shadow:
    0 0 0 2px rgba(196,165,255,.28),
    0 18px 60px rgba(76,29,149,.55),
    0 0 80px rgba(139,92,246,.35);
  animation: splashLogo 2.6s ease-in-out infinite;
}
@keyframes splashLogo { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.015); } }
.splash-title {
  margin: 18px 0 4px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  color: #f5edff;
  text-shadow: 0 0 28px rgba(167,139,250,.45);
}
.splash-title span { color: #c084fc; }
.splash-sub {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(196,181,253,.72);
}
.splash-bar {
  width: min(56vw, 220px);
  height: 4px;
  border-radius: 999px;
  background: rgba(167,139,250,.18);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.12);
}
.splash-bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #e9d5ff);
  box-shadow: 0 0 14px rgba(192,132,252,.7);
  animation: splashBar 1.25s ease-in-out infinite;
}
@keyframes splashBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.club-crest img, .mc-crest img, .sb-crest img, .rs-side .club-crest img, .vs-side .club-crest img, .tourney-next .club-crest img, img.crest-img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ==================== language toggle ==================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(10, 6, 20, 0.45);
}
.lang-btn {
  min-width: 38px;
  padding: 5px 8px;
  font: 800 10px "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  color: rgba(196, 181, 253, 0.72);
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transition: color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.lang-btn:hover { color: #f5edff; }
.lang-btn.active {
  color: #fff;
  background: linear-gradient(160deg, #7c3aed, #4c1d95);
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.45);
}
.auth-lang { position: absolute; top: 14px; right: 14px; z-index: 2; }
.menu-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; margin: 0 0 10px; }
.menu-topbar .account-chip { margin: 0; flex: 1 1 auto; }
.menu-topbar .lang-toggle { flex: 0 0 auto; }

/* ===== Menu fix: phone-friendly layout ===== */
#screen-menu .card.menu-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.05fr);
  gap: 10px;
  align-content: start;
  align-items: start;
}
#screen-menu .card.menu-card > .menu-decor { display: none; grid-column: 1 / -1; }
#screen-menu .menu-col { padding: 10px; }
#screen-menu .menu-left { grid-column: 1; }
#screen-menu .menu-right { grid-column: 2; }

@media (max-width: 560px) {
  #screen-menu .card.menu-card {
    width: min(480px, 100%);
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #screen-menu .menu-left,
  #screen-menu .menu-right { grid-column: 1; }
}
#screen-menu .menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
#screen-menu .account-chip { margin: 0; flex: 1 1 auto; min-width: 0; }
#screen-menu .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  margin: 0;
}
#screen-menu .profile-stats div { padding: 6px 4px; }
#screen-menu .profile-stats b { font-size: 16px; }
#screen-menu .profile-stats span { font-size: 9px; }
#screen-menu .hero-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(200,255,77,0.35);
  background: rgba(200,255,77,0.08);
  box-shadow: none;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
#screen-menu .hero-action:hover { border-color: rgba(200,255,77,0.6); background: rgba(200,255,77,0.12); transform: translateY(-1px); }
/* hero-action hover handled above */
#screen-menu .hero-action .hero-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 15px;
  background: rgba(200,255,77,0.18);
  color: var(--lime);
}
#screen-menu .hero-action .hero-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
#screen-menu .hero-action .hero-eyebrow { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
#screen-menu .hero-action .hero-text b { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
#screen-menu .hero-action .hero-note { margin-left: auto; font-size: 10px; color: var(--muted); text-align: right; }
#screen-menu .hint { margin: -2px 2px 0; font-size: 9.5px; color: var(--muted); }

/* Р”РІР° РѕС‚РґРµР»СЊРЅС‹С… СЂРµР¶РёРјР° РјР°С‚С‡Р°: СЃ РёРіСЂРѕРєРѕРј Рё СЃ Р±РѕС‚РѕРј */
.match-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin-top: 6px; }
.mode-btn {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; min-height: 40px; padding: 7px 9px;
  border: 1px solid rgba(160, 190, 215, 0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--muted); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.mode-btn:hover { border-color: rgba(200,255,77,0.5); transform: translateY(-1px); }
.mode-btn.active {
  border-color: rgba(200,255,77,0.75);
  background: linear-gradient(120deg, rgba(200,255,77,0.16), rgba(77,225,255,0.08));
  color: var(--ink);
}
.mode-btn .mo-icon {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px;
  background: rgba(255,255,255,0.07);
}
.mode-btn.active .mo-icon { background: rgba(200,255,77,0.2); }
.mode-btn .mo-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.mode-btn .mo-copy b { font-size: 11px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-btn .mo-copy small { font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-mode-picker.compact { width: auto; min-width: 230px; margin-top: 0; }
.opp-mode-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; }
.opp-mode-label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.sb-mode {
  display: inline-block; margin-top: 2px; padding: 1px 6px;
  border-radius: 6px; border: 1px solid rgba(200,255,77,0.5);
  background: rgba(200,255,77,0.12); color: #d8ff9a;
  font-size: 8px; font-weight: 900; letter-spacing: .1em;
}
.sb-mode.bot { border-color: rgba(77,225,255,0.5); background: rgba(77,225,255,0.12); color: #9de8ff; }

.online-not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; margin: 18px auto 10px; padding: 22px 16px;
  border: 1px solid rgba(255, 60, 60, 0.45);
  border-radius: 16px; background: rgba(120, 0, 0, 0.18);
  text-align: center;
}
.online-not-found.hidden { display: none; }
.online-not-found .nf-cross {
  font-size: 96px; line-height: 1; font-weight: 900;
  color: #ff2d2d; text-shadow: 0 0 28px rgba(255, 40, 40, 0.55);
}
.online-not-found .nf-text {
  margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .02em; color: #ff6b6b;
}

#screen-menu .shop-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#screen-menu .menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; }
#screen-menu .menu-grid .menu-tile {
  width: 100%;
  min-height: 52px;
  margin: 0;
  transform: none;
  padding: 8px 9px;
  gap: 8px;
}
#screen-menu .menu-grid .mt-icon { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
#screen-menu .menu-grid .mt-text b { font-size: 11.5px; }
#screen-menu .menu-grid .mt-text span { font-size: 8.5px; line-height: 1.2; }
#screen-menu .menu-grid .menu-tile:last-child:nth-child(odd) { grid-column: auto !important; }
#screen-menu .menu-grid .menu-tile:hover { transform: translateY(-1px); }

#screen-menu .squad-wide {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin: 0;
}
#screen-menu .squad-wide .sq-icon,
#screen-menu .squad-wide .mt-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 18px;
  color: #efe4ff;
  border: 1px solid rgba(196,181,253,0.18);
  background: linear-gradient(160deg, rgba(139,92,246,0.42), rgba(88,28,135,0.52));
}
#screen-menu .squad-wide .sq-text,
#screen-menu .squad-wide .mt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
#screen-menu .squad-wide .sq-text b,
#screen-menu .squad-wide .mt-text b { font-size: 15px; font-weight: 800; color: var(--ink); }
#screen-menu .squad-wide .sq-text span,
#screen-menu .squad-wide .mt-text span { font-size: 10px; color: var(--muted); line-height: 1.25; }

#screen-menu .menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
}
#screen-menu .menu-link {
  flex: none;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  justify-content: center;
  font-size: 11px;
}
#screen-menu .menu-link b { font-size: 11px; }

@media (max-width: 420px) {
  #screen-menu .card.menu-card { padding: 14px 10px 16px; gap: 8px; }
  #screen-menu .menu-grid { grid-template-columns: 1fr; }
  #screen-menu .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  #screen-menu .hero-action { padding: 12px 13px; }
  #screen-menu .hero-action .hero-text b { font-size: 20px; }
  #screen-menu .hero-action .hero-note { display: none; }
}

#screen-menu .card.menu-card { max-height: calc(100vh - 16px); overflow-y: auto; }
#screen-menu .my-club { padding: 6px 8px; gap: 8px; }
#screen-menu .mc-info b { font-size: 14px; }
#screen-menu .mc-ovr { font-size: 20px; }
#screen-menu .account-chip { padding: 5px 7px; gap: 8px; }
#screen-menu .ac-avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
#screen-menu .ac-info b { font-size: 11.5px; max-width: 120px; }
#screen-menu .ac-status { font-size: 7px; padding: 2px 6px; }
#screen-menu .ac-logout { font-size: 9px; padding: 4px 7px; }
#screen-menu .shop-hero { padding: 12px 12px !important; min-height: 96px !important; }
#screen-menu .sh-badge { font-size: 8px; padding: 3px 7px; margin-bottom: 6px; }
#screen-menu .sh-title { font-size: 18px; }
#screen-menu .sh-sub { font-size: 9px; margin-top: 2px; }
#screen-menu .sh-cta { font-size: 9px; margin-top: 6px; }
#screen-menu .squad-tile .sq-ovr { font-size: 12px; right: 6px; padding: 3px 6px; }
@media (max-width: 520px) {
  #screen-menu .menu-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screen-menu .profile-stats div b { font-size: 16px; }
}

/* ===== Battle Pass: season 1 В«New YearВ» ===== */
#screen-menu .bp-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
#screen-menu .bp-hero:hover { transform: translateY(-1px); border-color: rgba(200,255,77,0.35); background: rgba(255,255,255,0.07); }
/* bp-hero hover handled above */
.bp-hero-glow {
  position: absolute;
  right: -30px;
  top: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 201, 93, 0.24), transparent 66%);
  pointer-events: none;
}
/* РЎРЅРµРі РїРѕ РІСЃРµРјСѓ РјРµРЅСЋ — РІРєР»СЋС‡Р°РµС‚СЃСЏ РїСЂРё РЅР°РІРµРґРµРЅРёРё РЅР° РєРЅРѕРїРєСѓ Р±Р°С‚Р»-РїР°СЃСЃР° */
#screen-menu { position: relative; }
.menu-snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#overlay.bp-snowing .menu-snow { opacity: 1; }
.menu-snow::before,
.menu-snow::after {
  content: '';
  position: absolute;
  inset: -80px 0 0;
  background-repeat: repeat;
}
.menu-snow::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 1.2px, rgba(160, 220, 255, 0.42) 2.8px, transparent 4.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0.9px, rgba(255, 225, 160, 0.3) 2.4px, transparent 3.6px);
  background-size: 42px 42px, 67px 67px;
  background-position: 5px 0, 27px 19px;
  filter: drop-shadow(0 0 3px rgba(160, 220, 255, 0.55));
}
.menu-snow::after {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.72) 1.5px, rgba(200, 255, 230, 0.28) 3.4px, transparent 5px);
  background-size: 93px 93px;
  background-position: 51px 0;
  opacity: 0.75;
  filter: drop-shadow(0 0 5px rgba(200, 255, 240, 0.45));
}


.snow-spark { position: absolute; pointer-events: none; font-size: 15px; color: #fff; text-shadow: 0 0 8px rgba(180,230,255,0.7); opacity: .85; }
.snow-spark-1 { top: 12%; left: 16%; font-size: 15px; }
.snow-spark-2 { top: 34%; right: 18%; animation-delay: 0.6s; }
.snow-spark-3 { bottom: 22%; left: 30%; font-size: 11px; animation-delay: 1.3s; }
.snow-spark-4 { top: 48%; left: 8%; font-size: 12px; animation-delay: 2s; }
.snow-spark-5 { bottom: 14%; right: 28%; font-size: 14px; animation-delay: 2.7s; }
@keyframes snowSpark {
  0%, 100% { opacity: 0.12; transform: translateY(0) scale(0.82); }
  45% { opacity: 0.95; transform: translateY(-10px) scale(1.18); }
  70% { opacity: 0.45; transform: translateY(-18px) scale(0.96); }
}
#overlay.bp-snowing .snow-spark { animation: snowSpark 2.8s ease-in-out infinite; }
#overlay.bp-snowing .menu-snow::before { animation: menuSnow 4.5s linear infinite; }
#overlay.bp-snowing .menu-snow::after { animation: menuSnowSlow 7s linear infinite; }
@keyframes menuSnow {
  from { background-position: 5px 0, 27px 19px; }
  to { background-position: 5px 42px, 27px 86px; }
}
@keyframes menuSnowSlow {
  from { background-position: 51px 0; }
  to { background-position: 51px 93px; }
}
.bp-emblem {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 29px;
  background: linear-gradient(160deg, rgba(200, 255, 77, 0.24), rgba(20, 80, 56, 0.8));
  border: 1px solid rgba(200, 255, 77, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.bp-emblem i {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe9a8, #f2c14e);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  color: #2a1c05;
  font: 900 11px/1 system-ui, sans-serif;
  font-style: normal;
}
.bp-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-hero-badge {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9ffb0;
}
.bp-hero-copy b {
  font-size: 21px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff6d8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.bp-hero-sub { font-size: 9.5px; color: rgba(255, 255, 255, 0.64); }
.bp-hero-progress { font-size: 9px; font-weight: 800; color: #c8ff4d; }
.bp-hero-cta {
  position: relative;
  z-index: 1;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(200, 255, 77, 0.16);
  border: 1px solid rgba(200, 255, 77, 0.32);
  color: #dffa9b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* СЌРєСЂР°РЅ Р±Р°С‚Р»-РїР°СЃСЃР° СЃ РЅРѕРІРѕРіРѕРґРЅРёРј С„РѕРЅРѕРј */
.bp-screen {
  position: relative;
  min-height: 520px;
  padding: 12px;
  overflow: hidden;
  border-radius: 24px;
}
.bp-winter {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 214, 112, 0.16), transparent 30%),
    linear-gradient(165deg, #113349 0%, #071c2b 46%, #06170f 100%);
}

.bp-tree { position: absolute; bottom: -10px; pointer-events: none; background: linear-gradient(180deg, #2f7a4a 0%, #1d5a34 45%, #0f3320 100%); clip-path: polygon(50% 0%, 62% 18%, 56% 18%, 72% 38%, 62% 38%, 80% 60%, 68% 60%, 88% 82%, 58% 82%, 58% 100%, 42% 100%, 42% 82%, 12% 82%, 32% 60%, 20% 60%, 38% 38%, 28% 38%, 44% 18%, 38% 18%); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28)); }
.bp-tree::before { content: ""; position: absolute; left: 14%; right: 14%; top: 10%; height: 30%; background: radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.35), transparent 70%); pointer-events: none; }
.bp-tree-1 { left: -24px; width: 120px; height: 190px; opacity: 0.42; }
.bp-tree-2 { left: 90px; width: 170px; height: 270px; opacity: 0.5; }
.bp-tree-3 { right: 60px; width: 160px; height: 250px; opacity: 0.48; }
.bp-tree-4 { right: -30px; width: 210px; height: 320px; opacity: 0.38; }
.bp-tree-5 { left: 38%; width: 110px; height: 160px; opacity: 0.24; }
.bp-tree-6 { right: 31%; width: 120px; height: 175px; opacity: 0.22; }
.bp-snow {
  position: absolute;
  inset: -80px 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.4px, transparent 2px);
  background-size: 74px 74px, 123px 123px;
  background-position: 0 0, 38px 26px;
  animation: bpSnow 16s linear infinite;
}
@keyframes bpSnow {
  from { background-position: 0 0, 38px 26px; }
  to { background-position: 74px 74px, 161px 149px; }
}
.bp-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #ffd166 0 6px, #ef4444 6px 11px, transparent 11px 36px);
  box-shadow: 0 0 16px rgba(255, 200, 90, 0.5);
  opacity: 0.55;
}
.bp-lights::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #4de1ff 0 5px, transparent 5px 42px);
  opacity: 0.6;
}
.bp-star {
  position: absolute;
  color: #ffe9a8;
  font-size: 20px;
  animation: bpTwinkle 3s ease-in-out infinite;
}
.bp-star-1 { top: 16%; left: 8%; }
.bp-star-2 { top: 24%; right: 12%; animation-delay: 0.7s; }
.bp-star-3 { bottom: 20%; left: 22%; animation-delay: 1.4s; font-size: 14px; }
.bp-star-4 { bottom: 28%; right: 8%; animation-delay: 2.1s; font-size: 16px; }
@keyframes bpTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } }
.bp-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(170deg, rgba(9, 29, 42, 0.9), rgba(4, 16, 24, 0.95));
  border: 1px solid rgba(200, 255, 77, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.bp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 12px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid rgba(200, 255, 77, 0.3);
  background:
    radial-gradient(circle at 88% 40%, rgba(200, 255, 77, 0.16), transparent 46%),
    linear-gradient(115deg, rgba(40, 122, 82, 0.32), rgba(8, 28, 40, 0.85));
}
.bp-banner-copy { display: flex; flex-direction: column; min-width: 0; }
.bp-banner-badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe9a8, #f2c14e);
  color: #2a1c05;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.bp-banner-copy b { margin-top: 6px; font-size: 24px; font-weight: 900; color: #fff4d4; }
#bp-xp { font-size: 10px; color: rgba(255, 255, 255, 0.66); }
.bp-progress {
  width: min(340px, 62vw);
  height: 9px;
  margin: 7px 0 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.bp-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8ff4d, #ffd166);
  box-shadow: 0 0 14px rgba(200, 255, 77, 0.45);
  transition: width 0.45s ease;
}
.bp-banner-icon { font-size: 62px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.bp-plus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 201, 93, 0.38);
  background: linear-gradient(120deg, rgba(244, 201, 93, 0.14), rgba(88, 28, 135, 0.18));
}
.bp-plus-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-plus-copy b { font-size: 14px; color: #ffe7a8; }
.bp-plus-copy span { font-size: 11px; color: rgba(255,255,255,0.72); line-height: 1.35; }
.bp-plus-status { flex: 0 0 auto; }
.bp-plus-owned {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(200,255,77,0.4);
  background: rgba(200,255,77,0.14);
  color: #dffa9b;
  font-size: 11px;
  font-weight: 900;
}
.bp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}
.bp-grid::-webkit-scrollbar { width: 5px; }
.bp-grid::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(200, 255, 77, 0.3); }
.bp-tier {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.bp-row-level {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.bp-tier.unlocked { border-color: rgba(200, 255, 77, 0.28); background: linear-gradient(165deg, rgba(200, 255, 77, 0.06), rgba(255, 255, 255, 0.02)); }
.bp-tier.claimed { opacity: 0.78; }
.bp-tier.special { border-color: rgba(244, 201, 93, 0.55); box-shadow: 0 0 18px rgba(244, 201, 93, 0.12); }
.bp-tier-level { font-size: 11px; font-weight: 900; letter-spacing: 0.04em; color: #fff4d4; }
.bp-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-align: center;
  min-width: 0;
}
.bp-reward.free { border-color: rgba(148, 163, 184, 0.22); }
.bp-reward.plus { border-color: rgba(244, 201, 93, 0.28); background: linear-gradient(165deg, rgba(244,201,93,0.08), rgba(255,255,255,0.02)); }
.bp-reward.claimed { opacity: 0.55; }
.bp-reward.locked-track { opacity: 0.82; }
.bp-track-tag {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.bp-track-tag.plus { color: #ffd166; }
.bp-tier-icon { font-size: 22px; line-height: 1; }
.bp-reward b { font-size: 10px; line-height: 1.25; min-height: 24px; color: #eef6ff; }
.bp-tier-btn {
  margin-top: auto;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(200, 255, 77, 0.35);
  background: rgba(200, 255, 77, 0.16);
  color: #dffa9b;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  width: 100%;
}
.bp-tier-btn.plus {
  border-color: rgba(244, 201, 93, 0.45);
  background: rgba(244, 201, 93, 0.18);
  color: #ffe7a8;
}
.bp-tier-btn:disabled { opacity: 0.45; cursor: default; }
@media (max-width: 760px) {
  .bp-tier { grid-template-columns: 36px 1fr 1fr; gap: 6px; padding: 6px; }
  .bp-reward b { font-size: 9px; }
  .bp-banner-icon { font-size: 46px; }
  .bp-plus-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 440px) {
  .bp-tier { grid-template-columns: 32px 1fr; }
  .bp-row-level { grid-row: 1 / span 2; }
  #screen-menu .bp-hero-cta { display: none; }
}

/* ===== Menu brand/logo fix ===== */
#screen-menu .brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin: 0 0 2px;
}
#screen-menu .moon-emblem {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(167,139,250,.28), 0 6px 16px rgba(88,28,135,.35);
}
#screen-menu .moon-emblem img,
#screen-menu .moon-logo,
#screen-menu .brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
#screen-menu .brand-head h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-style: italic;
}
#screen-menu .brand-head h1 span { color: var(--lime); }
#screen-menu .brand-sub {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
#screen-menu .tagline { text-align: center; font-size: 11px; color: var(--muted); margin: 0 2px; line-height: 1.3; }
#screen-menu .eyebrow { text-align: center; font-size: 10px; margin: 0; }
#screen-menu .menu-decor { display: none; }

/* squad as tile in menu grid */
#screen-menu .menu-grid .squad-tile { position: relative; padding-right: 54px; }
#screen-menu .menu-grid .squad-tile .sq-ovr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 14px; }
#screen-menu .menu-grid .squad-tile .sq-ovr::after { font-size: 6px; }

/* menu currency (top-right) and icons */
#screen-menu .menu-currency {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
#screen-menu .menu-currency .mcurr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,0.18);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
#screen-menu .menu-currency .mcurr-icon { font-size: 13px; line-height: 1; }
#screen-menu .menu-currency .mcurr:nth-child(1) .mcurr-icon { color: #f4c95d; }
#screen-menu .menu-currency .mcurr:nth-child(2) .mcurr-icon { color: #8be9ff; }
#screen-menu .menu-currency .mcurr:nth-child(3) .mcurr-icon { color: #ffd166; }
#screen-menu .profile-stats { grid-template-columns: repeat(3, 1fr); }
#screen-menu .menu-links .menu-link { gap: 6px; }
#screen-menu .menu-links .ml-icon { font-size: 14px; line-height: 1; flex: 0 0 auto; }
#screen-menu .shop-hero .sh-icon { font-size: 42px; right: 14px; opacity: 0.9; }

/* admin panel */
.hidden { display: none !important; }
#btn-open-admin { margin-top: 8px; width: 100%; }
.admin-panel-wrap {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(200,255,77,0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(200,255,77,0.06), rgba(77,225,255,0.04));
}
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.admin-head h3 { margin: 2px 0 0; font-size: 20px; }
.admin-role-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,255,77,0.35);
  background: rgba(200,255,77,0.12);
  color: #dfffa0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-card {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.55);
}
.admin-card-wide { grid-column: 1 / -1; }
.admin-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.admin-card-top span { color: var(--muted); font-size: 12px; }
.admin-card-top strong { color: var(--ink); }
.admin-hint { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.admin-row-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-row-mod { grid-template-columns: 1fr auto auto; }
.admin-row input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font: inherit;
}
.admin-row input:focus { outline: none; border-color: rgba(200,255,77,0.55); }
.btn.small { padding: 9px 12px; font-size: 12px; min-height: 36px; }
.admin-reg-list { display: grid; gap: 8px; }
.admin-reg-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.admin-reg-main { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.admin-reg-main b { font-size: 14px; color: var(--ink); }
.admin-reg-main span { font-size: 12px; color: var(--muted); }
.admin-reg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.admin-reg-role { color: #dfffa0; font-weight: 700; }
.admin-reg-empty { margin: 0; color: var(--muted); font-size: 12px; }
#profile-privilege[data-role="admin"] { color: #dfffa0; }
#profile-privilege[data-role="moderator"] { color: #9de8ff; }

@media (max-width: 720px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card-wide { grid-column: auto; }
  .admin-row-mod { grid-template-columns: 1fr; }
  .admin-row-mod .btn { width: 100%; }
}
/* ============ Menu theme toggle & New Year menu ============ */
.menu-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.menu-topbar .menu-top-actions .lang-toggle { flex: 0 0 auto; }
.menu-theme-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #eaf7ff;
  border-radius: 12px;
  padding: 8px 12px;
  font: 800 12px/1 var(--font-ui, system-ui, sans-serif);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.menu-theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(130,220,255,0.55);
  background: rgba(130,220,255,0.12);
}
#screen-menu .card.menu-card {
  position: relative;
  overflow: hidden;
}
#screen-menu .card.menu-card > *:not(.menu-decor):not(.menu-ny-decor) {
  position: relative;
  z-index: 2;
}
.menu-ny-decor {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#screen-menu.theme-newyear .menu-ny-decor { display: block; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree { position: absolute; bottom: -10px; pointer-events: none; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-1 { left: -30px; opacity: .35; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-2 { left: 6%; opacity: .45; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-3 { right: 8%; opacity: .42; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-4 { right: -40px; opacity: .34; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-5 { left: 36%; opacity: .22; }
#screen-menu.theme-newyear .menu-ny-decor .bp-tree-6 { right: 34%; opacity: .2; }
#screen-menu.theme-newyear::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(120,220,255,0.18), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(180deg, rgba(10,40,70,0.18), rgba(255,255,255,0.02) 45%, rgba(10,30,50,0.12));
}

/* Snow for New Year menu theme */
#overlay.menu-ny-snow .menu-snow { opacity: 1; }
#overlay.menu-ny-snow .snow-spark { animation: snowSpark 2.8s ease-in-out infinite; }
#overlay.menu-ny-snow .menu-snow::before { animation: menuSnow 4.5s linear infinite; }
#overlay.menu-ny-snow .menu-snow::after { animation: menuSnowSlow 7s linear infinite; }

/* Blue-white buttons on New Year menu */
#screen-menu.theme-newyear button:not(.ac-avatar),
#screen-menu.theme-newyear .menu-tile,
#screen-menu.theme-newyear .menu-link,
#screen-menu.theme-newyear .hero-action,
#screen-menu.theme-newyear .shop-hero,
#screen-menu.theme-newyear .bp-hero,
#screen-menu.theme-newyear .mode-btn,
#screen-menu.theme-newyear .lang-btn,
#screen-menu.theme-newyear .ac-logout,
#screen-menu.theme-newyear .menu-theme-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(205,236,255,0.96) 55%, rgba(160,214,245,0.96) 100%) !important;
  color: #06324a !important;
  border-color: rgba(120,210,255,0.85) !important;
  box-shadow: 0 8px 22px rgba(40,140,200,0.18), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
#screen-menu.theme-newyear button:not(.ac-avatar):hover,
#screen-menu.theme-newyear .menu-tile:hover,
#screen-menu.theme-newyear .menu-link:hover,
#screen-menu.theme-newyear .hero-action:hover,
#screen-menu.theme-newyear .shop-hero:hover,
#screen-menu.theme-newyear .bp-hero:hover,
#screen-menu.theme-newyear .mode-btn:hover,
#screen-menu.theme-newyear .lang-btn:hover,
#screen-menu.theme-newyear .ac-logout:hover,
#screen-menu.theme-newyear .menu-theme-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e7f7ff 50%, #bfe9ff 100%) !important;
  border-color: rgba(170,235,255,0.98) !important;
  box-shadow: 0 10px 26px rgba(60,170,230,0.28), inset 0 1px 0 rgba(255,255,255,1) !important;
}
#screen-menu.theme-newyear .ac-avatar {
  border-color: rgba(120,210,255,0.85) !important;
  box-shadow: 0 6px 16px rgba(40,140,200,0.18), inset 0 1px 0 rgba(255,255,255,0.35) !important;
}
#screen-menu.theme-newyear .menu-tile b,
#screen-menu.theme-newyear .menu-tile span,
#screen-menu.theme-newyear .menu-link b,
#screen-menu.theme-newyear .menu-link span,
#screen-menu.theme-newyear .hero-action b,
#screen-menu.theme-newyear .hero-action span,
#screen-menu.theme-newyear .shop-hero .sh-badge,
#screen-menu.theme-newyear .shop-hero .sh-title,
#screen-menu.theme-newyear .shop-hero .sh-sub,
#screen-menu.theme-newyear .shop-hero .sh-cta,
#screen-menu.theme-newyear .bp-hero b,
#screen-menu.theme-newyear .bp-hero span,
#screen-menu.theme-newyear .mode-btn b,
#screen-menu.theme-newyear .mode-btn small,
#screen-menu.theme-newyear .ac-logout,
#screen-menu.theme-newyear .menu-theme-btn,
#screen-menu.theme-newyear .lang-btn {
  color: #06324a !important;
}
#screen-menu.theme-newyear .menu-tile .mt-icon,
#screen-menu.theme-newyear .menu-link .ml-icon,
#screen-menu.theme-newyear .hero-action .hero-icon,
#screen-menu.theme-newyear .shop-hero .sh-icon,
#screen-menu.theme-newyear .bp-emblem,
#screen-menu.theme-newyear .mode-btn .mo-icon {
  filter: saturate(1.05);
}
#screen-menu.theme-newyear .mode-btn.active {
  outline: 2px solid rgba(40,150,220,0.55);
  outline-offset: 1px;
}
#screen-menu.theme-newyear .menu-tile.daily {
  background: linear-gradient(180deg, #fffdf3 0%, #e8f7ff 55%, #cfeeff 100%) !important;
}
@media (max-width: 720px) {
  .menu-top-actions { width: 100%; justify-content: flex-start; }
  .menu-theme-btn { width: 100%; }
}

/* ============ Mail / Developer gifts ============ */
.mail-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mail-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); }
.mail-icon { font-size: 20px; line-height: 1; }
.mail-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d5a;
  color: #fff;
  font: 800 11px/20px var(--font-ui, system-ui, sans-serif);
  text-align: center;
  box-shadow: 0 4px 10px rgba(255,77,90,0.35);
}
.mail-badge.hidden { display: none; }
#screen-menu .card.menu-card { padding-top: 62px; }

.mail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.mail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.mail-card.claimed { opacity: 0.78; }
.mail-card-head { display: flex; align-items: flex-start; gap: 10px; }
.mail-card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(255,255,255,0.08);
  flex: 0 0 auto;
}
.mail-card-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mail-card-copy b { font-size: 15px; line-height: 1.2; }
.mail-card-copy span { color: var(--muted); font-size: 12px; }
.mail-card-text { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.4; }
.mail-rewards { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-reward {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; font-weight: 700;
}
.mail-actions { margin-top: auto; display: flex; gap: 8px; }
.mail-claim-btn { width: 100%; }
.mail-claimed-tag {
  width: 100%; text-align: center; padding: 10px 12px; border-radius: 12px;
  background: rgba(120, 255, 160, 0.12); color: #bfffcf; font-weight: 700; font-size: 13px;
}
.mail-empty { margin: 0; padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.05); color: var(--muted); }
@media (max-width: 720px) {
  .mail-btn { top: 10px; left: 10px; width: 40px; height: 40px; }
  #screen-menu .card.menu-card { padding-top: 56px; }
}
/* ============ Verified badge (mechik) ============ */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  vertical-align: middle;
  box-shadow: none;
  flex: 0 0 auto;
}
.ac-info .verified-badge, .ac-name-wrap .verified-badge, .profile-name-wrap .verified-badge, .top-name-row .verified-badge {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: #1d9bf0;
}
.verified-badge::before { content: none; }
.verified-badge.hidden { display: none; }
.ac-name-wrap, .profile-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.ac-name-wrap #ac-name, .profile-name-wrap #profile-name {
  min-width: 0;
}
#screen-menu.theme-newyear .verified-badge {
  background: #1d9bf0 !important;
  color: #fff !important;
}
/* ============ Top players ============ */
.top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.top-item {
  display: grid;
  grid-template-columns: 40px 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.top-item.top-rank-1 { border-color: rgba(255, 215, 90, 0.45); box-shadow: 0 0 0 1px rgba(255,215,90,0.12) inset; }
.top-item.top-rank-2 { border-color: rgba(210, 225, 255, 0.35); }
.top-item.top-rank-3 { border-color: rgba(255, 170, 110, 0.35); }
.top-rank {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.top-rank-1 .top-rank { background: linear-gradient(180deg, #ffd56a, #d89a00); color: #3a2600; }
.top-rank-2 .top-rank { background: linear-gradient(180deg, #e8eefb, #9fb3d9); color: #1f2f4a; }
.top-rank-3 .top-rank { background: linear-gradient(180deg, #ffbf8a, #d7772e); color: #3b1d06; }
.top-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.top-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-photo-fallback {
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.top-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.top-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.top-name {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-ovr {
  min-width: 54px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.top-ovr span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.top-ovr b {
  font-size: 18px;
  color: #fff;
}
.top-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
@media (max-width: 560px) {
  .top-item { grid-template-columns: 34px 44px 1fr auto; gap: 8px; padding: 9px 10px; }
  .top-rank { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .top-avatar { width: 44px; height: 44px; border-radius: 12px; }
  .top-name { font-size: 14px; }
  .top-ovr b { font-size: 16px; }
}
/* ============ Top players leaderboard (users) ============ */
.top-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 14px;
}
.top-tab {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,0.18);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font: 800 11px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.top-tab:hover { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.35); color: var(--ink); }
.top-tab.active { background: linear-gradient(135deg, rgba(200,255,77,0.18), rgba(77,225,255,0.08)); border-color: rgba(200,255,77,0.45); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
#screen-menu.theme-newyear .top-tab.active {
  background: linear-gradient(180deg, rgba(170,235,255,0.28), rgba(120,200,255,0.16)) !important;
  border-color: rgba(190,240,255,0.5) !important;
}
.top-item.is-me {
  border-color: rgba(120, 210, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(120,210,255,0.12) inset;
}
.top-you {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(120, 210, 255, 0.16);
  border: 1px solid rgba(120, 210, 255, 0.28);
  color: #dff6ff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
}
.top-score { min-width: 92px; }
.top-score span { font-size: 12px; line-height: 1; }
.top-score b { font-size: 15px; white-space: nowrap; }
.top-item .top-avatar .top-photo-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}
@media (max-width: 560px) {
  .top-tabs { gap: 6px; }
  .top-tab { font-size: 12px; padding: 9px 6px; min-height: 40px; }
  .top-score { min-width: 78px; padding: 6px 6px; }
  .top-score b { font-size: 13px; }
}
