:root {
  --navy: #071224;
  --navy-2: #0b1a33;
  --panel: #101f38;
  --panel-2: #15284a;
  --edge: #243b5a;
  --blue: #00adef;
  --sky: #17c8f4;
  --yellow: #ffd52f;
  --paper: #f4f7fb;
  --text: #0e1a2d;
  --line: #dce4ed;
  --muted: #9fb2c8;
  --faint: #71849b;
  --green: #2bd46b;
  --red: #ff3656;
  --amber: #ffb020;
  --font: "Exo 2", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--navy); color: #fff; font-size: 15px; line-height: 1.5; }
button, a, input, select { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.header {
  height: 78px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  gap: 32px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: linear-gradient(#09172ff2, #09172fd0);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ffffff20;
}

.brand { width: 125px; height: 66px; display: flex; align-items: center; flex: none; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.5); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav > span { display: flex; gap: 28px; }
.nav a { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: #dce8f5; }
.nav a:hover, .nav a.active { color: var(--yellow); }

.language {
  height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #071326;
  border: 1px solid #ffffff30;
  border-radius: 9px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}
.language button { border: 0; background: transparent; color: var(--faint); font-size: 11px; font-weight: 900; padding: 5px 3px; }
.language button.active { color: var(--yellow); }

.account-buttons { display: flex; gap: 8px; align-items: center; }
.account-buttons button, .account-buttons a {
  border: 0;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  white-space: nowrap;
}
.account-buttons .register {
  background: var(--yellow);
  color: #10233b;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-button { display: none; background: none; border: 0; color: #fff; font-size: 25px; }

.game-button, .dark-button {
  height: 57px;
  border: 0;
  background: linear-gradient(#ffe64f, #f7b900);
  color: #10203a;
  font-weight: 900;
  padding: 0 24px;
  min-width: 230px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 0 #a96f00;
  border-radius: 10px;
  transition: .2s;
  text-transform: uppercase;
}
.game-button:hover, .dark-button:hover { transform: translateY(-3px); filter: brightness(1.08); }
.game-button:disabled { opacity: .6; cursor: wait; transform: none; }
.dark-button { background: #0a1830; color: #fff; box-shadow: 0 6px 0 #021021; margin: auto; }

.btn {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--panel-2);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  box-shadow: 0 4px 0 #06101f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #06101f; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-yellow { background: linear-gradient(#ffe64f, #f7b900); color: #10203a; box-shadow: 0 4px 0 #a96f00; }
.btn-yellow:active { box-shadow: 0 1px 0 #a96f00; }
.btn-blue { background: linear-gradient(#22d0fb, #009fdc); box-shadow: 0 4px 0 #075e99; }
.btn-blue:active { box-shadow: 0 1px 0 #075e99; }
.btn-red { background: linear-gradient(#ff5a74, #e8213f); box-shadow: 0 4px 0 #8c0f22; }
.btn-red:active { box-shadow: 0 1px 0 #8c0f22; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }

.hero {
  height: min(880px, 100vh);
  min-height: 690px;
  position: relative;
  background: url("assets/images/stadium.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 110px 7vw 45px;
  overflow: hidden;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 34% at 100% 100%, #071224 55%, #07122400 100%),
    linear-gradient(90deg, #071224f5 0, #071224d9 38%, #0712244d 68%, #07122414),
    linear-gradient(0deg, #071224 0, transparent 30%);
}
.hero-content { position: relative; z-index: 2; width: 58%; }

.pill {
  display: inline-block;
  background: #0ab8e8;
  color: #fff;
  border: 2px solid #8eeaff;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  box-shadow: 0 5px 0 #075e99;
}

.hero h1 {
  font-size: clamp(58px, 7vw, 105px);
  font-style: italic;
  font-weight: 900;
  line-height: .86;
  letter-spacing: -4px;
  margin: 25px 0;
  color: #fff;
  text-shadow: 6px 7px 0 #071225;
}
.hero h1 .accent { color: var(--yellow); -webkit-text-stroke: 2px #ad7111; }
.hero-content > p { font-size: 18px; line-height: 1.65; max-width: 620px; color: #d8e5ef; font-weight: 600; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 30px; }
.hero-actions > a { font-size: 12px; font-weight: 900; letter-spacing: 1px; border-bottom: 1px solid #fff8; padding: 10px 0; }

.stats { display: flex; gap: 48px; margin-top: 55px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 27px; color: var(--yellow); }
.stats small { font-size: 11px; letter-spacing: 1.5px; color: #b7c7d7; }

.hero-card {
  position: absolute;
  right: 8vw;
  bottom: 12%;
  z-index: 2;
  width: 280px;
  height: 320px;
  background: linear-gradient(145deg, #17c8f4, #007ec8);
  border: 6px solid #fff;
  border-radius: 35px 35px 75px 75px;
  box-shadow: 0 15px 0 #064f82, 0 30px 80px #0009;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px;
  transform: rotate(4deg);
}
.hero-card::before { content: "⚽"; font-size: 55px; margin: 5px; }
.hero-card > span { background: var(--red); border-radius: 12px; padding: 5px 10px; font-size: 10px; font-weight: 900; }
.hero-card > img { width: 225px; height: 112px; object-fit: contain; margin: 8px 0 4px; filter: drop-shadow(0 7px 0 #063b66); transform: scale(1.6); }
.hero-card small { font-weight: 900; letter-spacing: 2px; }
.score {
  position: absolute;
  bottom: -28px;
  background: #0b1730;
  border: 4px solid #fff;
  border-radius: 17px;
  padding: 9px 25px;
  display: flex;
  gap: 13px;
  font-size: 30px;
}
.score i { color: var(--yellow); }

.section { padding: 100px 7vw; }
.about, .gallery { background: var(--paper); color: var(--text); }

.section-title { display: flex; flex-direction: column; }
.section-title > span, .shop-copy > span, .join > span { color: #009ed7; font-size: 12px; letter-spacing: 2px; font-weight: 900; }
.section-title h2, .shop-copy h2, .join h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .93;
  letter-spacing: -2px;
  font-weight: 900;
  font-style: italic;
  margin: 14px 0 25px;
}
.section-title h2 em, .shop-copy h2 em { color: #00aede; font-style: italic; }
.section-title > p { max-width: 520px; color: #5b6878; line-height: 1.7; margin: 0; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  min-height: 240px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 0 #dbe5ee;
  transition: .2s;
}
.feature-grid article:hover { transform: translateY(-7px); border-color: #00b9ef; }
.feature-grid article > b { position: absolute; right: 20px; color: #dfe6ee; font-size: 38px; }
.feature-grid i { display: grid; place-items: center; width: 65px; height: 65px; background: #dff8ff; border-radius: 16px; font-size: 30px; font-style: normal; }
.feature-grid h3 { margin: 28px 0 8px; font-size: 20px; }
.feature-grid p { color: #5f6c7e; line-height: 1.6; margin: 0; font-weight: 600; }

.news { background: #071427; }
.section-title.light h2 { color: #fff; }
.section-title.light h2 em { color: var(--yellow); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 35px; }
.news-grid article { background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.news-image { height: 180px; display: grid; place-items: center; position: relative; background: radial-gradient(circle, #0cc7ee, #075789); }
.news-image b { font-size: 70px; font-style: italic; text-shadow: 5px 5px 0 #08477a; }
.news-image small { position: absolute; left: 15px; top: 15px; background: #fff; color: #0d203b; padding: 6px 9px; border-radius: 6px; font-weight: 900; font-size: 12px; }
.news-image.cup { background: radial-gradient(circle, #754cff, #281756); }
.news-image.update { background: radial-gradient(circle, #ff7843, #60210e); }
.news-grid article > div:last-child { padding: 24px; }
.news-grid article span { color: var(--sky); font-size: 11px; font-weight: 900; letter-spacing: 1.4px; }
.news-grid h3 { margin: 10px 0; font-size: 21px; }
.news-grid p { font-size: 15px; line-height: 1.6; color: #a9bacd; margin: 0; }

.gallery .section-title { max-width: 750px; }
.screens { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 45px; }
.screen { padding: 0; border: 0; background: #0c1b32; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 10px 0 #cdd7e0; min-height: 240px; }
.screen.main-screen { grid-row: span 2; }
.screen img { width: 100%; height: 100%; display: block; object-fit: cover; transition: .35s; }
.screen:hover img { transform: scale(1.035); }
.screen span { position: absolute; bottom: 15px; left: 15px; padding: 8px 12px; background: #0b193ddd; color: #fff; font-size: 12px; font-weight: 900; border-radius: 6px; }

.shop { display: grid; grid-template-columns: .75fr 1.3fr; gap: 7vw; align-items: center; background: linear-gradient(135deg, #071224, #103255); }
.shop-copy p { color: #b3c3d2; line-height: 1.7; margin: 0 0 30px; font-weight: 600; }
.shop-preview { position: relative; border: 5px solid #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 15px 0 #007aa7, 0 25px 80px #000; }
.shop-preview img { display: block; width: 100%; }

.join { text-align: center; background: linear-gradient(135deg, #19c7ef, #008ccd); padding: 95px 20px; color: #fff; }
.join > span { color: #dffaff; }
.join h2 em { color: var(--yellow); }

footer {
  padding: 30px 7vw;
  background: #050c18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8697ab;
  font-size: 12px;
}
footer p { margin: 0; }
footer > div { display: flex; gap: 20px; color: #fff; font-weight: 900; }
footer .brand { width: 105px; height: 55px; }

.modal-wrap, .viewer {
  position: fixed;
  inset: 0;
  background: #020813dd;
  backdrop-filter: blur(7px);
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-wrap.show, .viewer.show { display: grid; }

.modal {
  width: min(450px, 100%);
  background: linear-gradient(#16bff0, #078dc8);
  border: 4px solid #053f71;
  border-radius: 20px;
  box-shadow: 0 12px 0 #032845;
  padding: 35px;
  position: relative;
}
.modal-close { position: absolute; right: 13px; top: 8px; background: #2d2b50; color: #fff; border: 2px solid #15142c; border-radius: 10px; font-size: 27px; width: 42px; height: 42px; line-height: 1; }
.modal-label { font-size: 11px; letter-spacing: 2px; font-weight: 900; }
.modal h2 { font-style: italic; margin: 9px 0 22px; font-size: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 20px; }
.tabs button { border: 0; background: #083887; color: #fff; border-radius: 8px; padding: 12px; font-weight: 900; box-shadow: 0 4px 0 #05255f; }
.tabs button.active { background: var(--yellow); color: #17223d; box-shadow: 0 4px 0 #a76c00; }
.modal form { display: grid; gap: 14px; }
.modal label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.modal input { width: 100%; display: block; margin-top: 6px; border: 2px solid #074c8d; background: #fff; color: var(--text); border-radius: 8px; padding: 13px; outline: 0; font-weight: 600; }
.modal input:focus { border-color: var(--yellow); }
.modal .game-button { width: 100%; margin-top: 5px; }
.modal > small { display: block; text-align: center; margin-top: 17px; color: #e3f7ff; font-weight: 600; }

.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #6b0f20; border: 2px solid #ff8095; color: #fff; font-size: 13px; font-weight: 700; }
.form-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #1f2a5c; border: 2px solid #5b7cff; color: #fff; font-size: 13px; font-weight: 700; }
.auth-links { display: flex; justify-content: center; margin-top: 10px; }
.link-button { background: none; border: 0; color: #ffd84d; font-weight: 800; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
.link-button[hidden], .modal .tabs[hidden], .code-field[hidden], .password-field[hidden] { display: none; }
.verify-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.badge-ok { color: #4dff9a; font-weight: 800; }
.badge-warn { color: #ffb84d; font-weight: 800; }

.viewer img { max-width: 92vw; max-height: 88vh; border: 5px solid #fff; border-radius: 14px; }
.viewer button { position: fixed; right: 25px; top: 20px; background: #fff; border: 0; border-radius: 50%; width: 45px; height: 45px; font-size: 27px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  background: #fff;
  color: #10203a;
  padding: 15px 18px;
  border-left: 5px solid var(--yellow);
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  z-index: 60;
  transform: translateY(150px);
  transition: .3s;
  box-shadow: 0 12px 30px #0008;
}
.toast.show { transform: none; }
.toast.error { border-left-color: var(--red); }

.cabinet {
  min-height: 100vh;
  padding: 104px 6vw 56px;
  background:
    linear-gradient(180deg, #071224f0, #071224 340px),
    url("assets/images/stadium.png") center top / 100% auto no-repeat,
    var(--navy);
}
.cabinet-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px; outline: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head > div > span { color: var(--sky); font-size: 12px; letter-spacing: 2px; font-weight: 900; text-transform: uppercase; }
.page-head h1 { margin: 6px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1; font-style: italic; font-weight: 900; letter-spacing: -1px; }
.page-head h1 em { color: var(--yellow); font-style: italic; }

.grid { display: grid; gap: 20px; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.grid-admin { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 20px; font-weight: 900; font-style: italic; }
.panel-head small { color: var(--faint); font-weight: 600; }

.wallet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.coin {
  position: relative;
  background: linear-gradient(145deg, #17c8f4, #007ec8);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 7px 0 #064f82;
  overflow: hidden;
  min-width: 0;
}
.coin.GOLD { background: linear-gradient(145deg, #ffe64f, #f7b900); box-shadow: 0 7px 0 #a96f00; color: #10203a; }
.coin.RUBY { background: linear-gradient(145deg, #ff6b83, #d91c3c); box-shadow: 0 7px 0 #7e0d1f; }
.coin.TOKEN { background: linear-gradient(145deg, #4ee68a, #12a24d); box-shadow: 0 7px 0 #0b5e2c; }
.coin svg { position: absolute; right: -10px; bottom: -14px; width: 84px; height: 84px; opacity: .35; }
.coin .label { font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.coin .value { font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.15; font-variant-numeric: tabular-nums; position: relative; }
.wallet.compact .coin { padding: 12px 14px; }
.wallet.compact .coin .value { font-size: 22px; }

.stat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 12px; }
.stat { min-width: 0; background: var(--navy-2); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.stat b { font-size: 26px; font-weight: 900; font-style: italic; color: var(--yellow); line-height: 1.2; }
.stat b.text { display: block; font-size: 16px; color: #fff; font-style: normal; overflow-wrap: anywhere; hyphens: auto; }

.progress { display: grid; gap: 7px; }
.progress-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.progress-head b { color: #fff; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 6px; background: var(--navy-2); border: 1px solid var(--edge); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(#ffe64f, #f7b900); border-radius: 6px; }
.bar.sky > i { background: linear-gradient(#5ee0ff, #00adef); }
.bar.thin { height: 8px; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.mono { font-family: Consolas, "SF Mono", monospace; font-size: 12px; color: var(--faint); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: #1d3254;
  color: var(--muted);
  white-space: nowrap;
}
.badge.green { background: #0f3d26; color: #7af0a7; }
.badge.red { background: #4a1020; color: #ff9aab; }
.badge.amber { background: #4a3408; color: #ffd27a; }
.badge.yellow { background: var(--yellow); color: #10203a; }
.badge.sky { background: #08385a; color: #8ee6ff; }

.r-common { color: #d6dfea; }
.r-rare { color: #5fdcff; }
.r-epic { color: #c7a8ff; }
.r-legend { color: var(--yellow); }
.r-mythical { color: #ff8197; }
.r-exclusive { color: #5ff0d0; }
.r-heroic { color: #ffb36b; }
.rarity { font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: #0c2147;
  color: #cfe0f2;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 4px 0 #05132b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--yellow); color: #17223d; box-shadow: 0 4px 0 #a76c00; }

.table-wrap { overflow-x: auto; margin: 0 -22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 22px; color: var(--faint); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; border-bottom: 1px solid var(--edge); white-space: nowrap; }
td { padding: 12px 22px; border-bottom: 1px solid #1a2d4c; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #13264a; }
td b { font-weight: 800; }
.amount { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount svg { width: 18px; height: 18px; }
.plus { color: #6cf29f; }
.minus { color: #ff8197; }
.right { text-align: right; }
.cell-progress { display: grid; gap: 5px; min-width: 150px; font-size: 12px; color: var(--muted); font-weight: 700; }

.empty { padding: 28px 10px; text-align: center; color: var(--faint); font-weight: 600; }

.abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ability { background: var(--navy-2); border: 1px solid var(--edge); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.ability b { font-size: 15px; }
.stars { color: var(--yellow); font-size: 18px; letter-spacing: 3px; line-height: 1; }
.stars .off { color: #23395c; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.panel input, .panel select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 2px solid var(--edge);
  background: var(--navy-2);
  color: #fff;
  font-weight: 600;
}
.panel input:focus, .panel select:focus { outline: none; border-color: var(--yellow); }
.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form-row .wide { grid-column: span 2; }
.search { display: flex; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.results { display: grid; gap: 4px; max-height: 620px; overflow-y: auto; margin: 0 -10px; }
.result {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.result:hover { background: var(--panel-2); }
.result[aria-current="true"] { background: #1c3a6b; box-shadow: inset 3px 0 0 var(--yellow); }
.result .row-1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; }
.result .row-2 { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.player-head h2 { margin: 0; font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.05; }

.dispute-players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dispute-player { background: var(--navy-2); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; }
.dispute-player b { display: block; font-size: 16px; }

@media (max-width: 1100px) {
  .header { gap: 18px; }
  .nav, .nav > span { gap: 16px; }
  .wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: #09182d;
    padding: 20px;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--edge);
  }
  .nav > span { flex-direction: column; }
  .nav.open { display: flex; }
  .menu-button { display: block; margin-left: auto; }
  .language { margin-left: 0; }
  .account-buttons .login { display: none; }
  .hero-content { width: 100%; }
  .hero-card { opacity: .35; right: -60px; }
  .feature-grid, .news-grid, .screens, .shop { grid-template-columns: 1fr; }
  .screen.main-screen { grid-row: auto; }
  .section { padding: 75px 5vw; }
  .grid-2, .grid-main, .grid-admin { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .header { height: 68px; padding: 0 16px; gap: 10px; }
  .brand { width: 94px; height: 52px; }
  .language { padding: 0 6px; }
  .account-buttons .register { padding: 9px 11px; max-width: 120px; }
  #guest-buttons .register { display: none; }
  .hero { min-height: 760px; padding: 100px 20px 40px; }
  .hero h1 { font-size: 52px; letter-spacing: -3px; }
  .hero-card { right: -110px; bottom: 80px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .stats { gap: 28px; }
  .section { padding: 65px 20px; }
  .section-title h2, .shop-copy h2, .join h2 { font-size: 41px; }
  .screen { min-height: 180px; }
  .join { padding: 70px 20px; }
  footer { flex-direction: column; text-align: center; }
  .modal { padding: 28px 20px; }
  .cabinet { padding: 88px 16px 40px; }
  .panel { padding: 16px; }
  .table-wrap { margin: 0 -16px; }
  th, td { padding-left: 16px; padding-right: 16px; }
  .wallet { gap: 12px; }
  .coin .value { font-size: 24px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row .stat:nth-child(3) { grid-column: span 2; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-row .wide { grid-column: auto; }
  .dispute-players { grid-template-columns: 1fr; }
}

.rank { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 900; }
.rank.medal-1 { background: linear-gradient(#ffe066, #f5a400); color: #3a2400; }
.rank.medal-2 { background: linear-gradient(#f1f5fb, #a9b7cc); color: #1f2a3d; }
.rank.medal-3 { background: linear-gradient(#ffc28a, #c86b2a); color: #3a1a00; }
tr.me td { background: rgba(255, 210, 31, .12); }
.board-me { margin-top: 14px; display: grid; gap: 6px; }
.board-me small { color: var(--faint); font-weight: 700; }

.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.panel .chips + .chips { margin-top: 8px; }
.player-link { color: inherit; text-decoration: none; }
.player-link:hover b { color: var(--yellow); text-decoration: underline; }
.profile-actions { margin-top: 16px; align-items: center; justify-content: flex-start; }

.wallet.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coin.CRYSTAL { background: linear-gradient(145deg, #b57bff, #6a2fd6); box-shadow: 0 7px 0 #3d1585; }
.coin-sub { position: relative; font-size: 12px; font-weight: 700; opacity: .85; overflow-wrap: anywhere; }
.form-row.w3-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.w3-form .field:last-child { grid-column: 1 / -1; }
.form-row.w3-form .field:last-child .btn { width: 100%; }
.invoice { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px dashed var(--edge); background: rgba(255,255,255,.03); display: grid; gap: 12px; }
.invoice h3 { margin: 0; font-size: 16px; font-weight: 900; font-style: italic; }
.copy-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.copy-row .mono { overflow-wrap: anywhere; min-width: 0; flex: 1; }
.mono.strong { color: #fff; font-size: 13px; }
.warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: #4a3408; color: #ffd27a; font-weight: 600; }
td.details { max-width: 340px; overflow-wrap: anywhere; white-space: normal; }
.text-red { color: var(--red); }

@media (max-width: 600px) {
  .wallet.two { grid-template-columns: minmax(0, 1fr); }
  .form-row.w3-form { grid-template-columns: minmax(0, 1fr); }
  .copy-row { flex-wrap: wrap; }
}

.alert-box { padding: 12px 14px; border-radius: 12px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.alert-box.error { background: #4a1020; color: #ffc2cc; border: 1px solid #8c0f22; }
.alert-box.error b { color: #ff9aab; }
td.event-text { white-space: normal; min-width: 260px; line-height: 1.45; }
td.nowrap { white-space: nowrap; }

.check { display: flex; align-items: center; gap: 10px; min-height: 42px; align-self: end; font-weight: 700; cursor: pointer; }
.panel .check input { width: 20px; height: 20px; padding: 0; accent-color: var(--yellow); flex: none; }
.link { background: none; border: 0; padding: 0; color: #fff; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.link:hover { color: var(--yellow); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.prize-editor td, .prize-editor th { padding: 6px; }
.prize-editor input { min-width: 70px; height: 36px; }
.cabinet-inner > a.btn { justify-self: start; }
.center { text-align: center; }
.score-cell { font-size: 18px; font-style: italic; color: var(--yellow); white-space: nowrap; }
tr.prize-place td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }

.cur-GOLD { --acc: #ffd52f; --acc-2: #f7a400; --acc-soft: rgba(255, 213, 47, .16); --acc-glow: rgba(255, 213, 47, .45); }
.cur-CRYSTAL { --acc: #c497ff; --acc-2: #7b3fe4; --acc-soft: rgba(196, 151, 255, .16); --acc-glow: rgba(196, 151, 255, .45); }
.cur-RUBY { --acc: #ff5a74; --acc-2: #d91c3c; --acc-soft: rgba(255, 90, 116, .16); --acc-glow: rgba(255, 90, 116, .45); }
.cur-TOKEN { --acc: #4ee68a; --acc-2: #12a24d; --acc-soft: rgba(78, 230, 138, .16); --acc-glow: rgba(78, 230, 138, .45); }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes bar-fill { from { width: 0; } to { width: var(--w); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes step-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(8deg); } }

.rise { animation: rise-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }

.t-status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; background: #1d3254; color: var(--muted); white-space: nowrap; }
.t-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.t-status.soon { background: #08385a; color: #8ee6ff; }
.t-status.open { background: #0f3d26; color: #7af0a7; }
.t-status.running { background: #4a1020; color: #ff8a9c; }
.t-status.open i, .t-status.running i { animation: pulse-dot 1.6s infinite; }
.t-status.cancelled { background: #3a1420; color: #ff9aab; }

.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.t-card {
  position: relative; overflow: hidden; display: grid; gap: 16px; align-content: start; min-width: 0;
  padding: 22px; border-radius: 18px; border: 1px solid var(--edge);
  background: radial-gradient(120% 80% at 100% 0%, var(--acc-soft, rgba(23, 200, 244, .16)), transparent 60%), var(--panel);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.t-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); }
.t-card:hover { transform: translateY(-4px); border-color: var(--acc); box-shadow: 0 14px 34px -14px var(--acc-glow); }
.t-card.ph-done, .t-card.ph-cancelled { filter: saturate(.55); }
.t-card.skeleton { min-height: 300px; background: linear-gradient(90deg, var(--panel) 0, #172c50 50%, var(--panel) 100%) 0 0 / 800px 100%; animation: shimmer 1.3s linear infinite; }
.t-card.skeleton::before { display: none; }
.t-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.t-card-head h3 { margin: 0; font-size: 21px; font-weight: 900; font-style: italic; line-height: 1.15; overflow-wrap: anywhere; }
.t-ribbon { position: absolute; top: 18px; right: -38px; transform: rotate(35deg); padding: 3px 44px; background: var(--green); color: #04301a; font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; box-shadow: 0 3px 10px rgba(0,0,0,.3); z-index: 1; }
.t-card.joined .t-card-head { padding-right: 52px; }
.t-pool small, .t-meta small, .t-seats-head span, .t-countdown small, .t-stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.t-pool-value { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.t-pool-value svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px var(--acc-glow)); }
.t-pool-value b { font-size: 38px; font-weight: 900; font-style: italic; line-height: 1; color: var(--acc); font-variant-numeric: tabular-nums; }
.t-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-meta > span { display: grid; gap: 4px; }
.t-countdown { display: grid; gap: 4px; text-align: right; }
.t-countdown b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.t-countdown.big b { font-size: clamp(26px, 4vw, 40px); font-style: italic; color: #fff; }
.t-seats { display: grid; gap: 7px; }
.t-seats-head { display: flex; justify-content: space-between; align-items: baseline; }
.t-bar { height: 10px; border-radius: 99px; background: #0a1730; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.t-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--acc-2), var(--acc)); animation: bar-fill .9s cubic-bezier(.2, .8, .2, 1) both; }
.t-top { display: flex; flex-wrap: wrap; gap: 8px; }
.t-top-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid #1f3558; font-size: 13px; }
.t-top-chip em { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; font-style: normal; font-weight: 900; font-size: 12px; background: #24395c; }
.t-top-chip.p1 em { background: linear-gradient(#ffe066, #f5a400); color: #3a2400; }
.t-top-chip.p2 em { background: linear-gradient(#f1f5fb, #a9b7cc); color: #1f2a3d; }
.t-top-chip.p3 em { background: linear-gradient(#ffc28a, #c86b2a); color: #3a1a00; }
.t-top-chip .amount svg { width: 15px; height: 15px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t-actions .btn { flex: 1 1 auto; }
.t-join { animation: glow 2.2s ease-in-out infinite; }
.t-join .amount svg { width: 16px; height: 16px; }

.t-back { justify-self: start; color: var(--muted); font-weight: 800; text-decoration: none; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.t-back:hover { color: var(--yellow); }
.t-hero {
  position: relative; overflow: hidden; display: grid; gap: 20px; padding: 26px; border-radius: 22px; border: 1px solid var(--edge);
  background:
    radial-gradient(90% 120% at 0% 0%, var(--acc-soft, rgba(23, 200, 244, .16)), transparent 55%),
    radial-gradient(70% 90% at 100% 100%, var(--acc-soft, rgba(0, 126, 200, .16)), transparent 60%),
    var(--panel);
  animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.t-hero.skeleton { min-height: 260px; background: linear-gradient(90deg, var(--panel) 0, #172c50 50%, var(--panel) 100%) 0 0 / 800px 100%; animation: shimmer 1.3s linear infinite; }
.t-hero::after { content: "🏆"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 150px; opacity: .07; pointer-events: none; }
.t-hero.skeleton::after { display: none; }
.t-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.t-hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.t-hero-title { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.t-hero-title h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1; font-style: italic; font-weight: 900; letter-spacing: -1px; overflow-wrap: anywhere; }
.t-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.t-stat { padding: 14px 16px; border-radius: 14px; background: rgba(7, 18, 36, .55); border: 1px solid #1f3558; min-width: 0; }
.t-stat b { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-stat b svg { width: 22px; height: 22px; }
.t-stat.pool b { color: var(--acc); font-size: 28px; font-style: italic; }
.t-stat.pool b svg { width: 28px; height: 28px; }
.t-hero .t-actions { max-width: 520px; }
.t-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.t-rules { margin: 0; line-height: 1.5; }

.t-ava { --h: 200; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 75%, 55%), hsl(calc(var(--h) + 40), 70%, 38%)); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pts { font-size: 16px; color: var(--yellow); }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.p-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--navy-2); border: 1px solid #1c3152; min-width: 0; font-weight: 700; }
.p-chip span:not(.t-ava) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-chip em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 900; text-transform: uppercase; color: #10203a; background: var(--yellow); border-radius: 6px; padding: 2px 6px; }
.p-chip.me { border-color: var(--yellow); background: rgba(255, 210, 31, .1); }

.m-list { display: grid; gap: 10px; }
.m-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 16px 26px; border-radius: 14px; background: var(--navy-2); border: 1px solid #1c3152; transition: border-color .2s, transform .2s; }
.m-card:hover { transform: translateX(3px); border-color: #2c4a74; }
.m-card.live { border-color: #6b1a2c; background: linear-gradient(90deg, rgba(255, 54, 86, .1), transparent 40%, transparent 60%, rgba(255, 54, 86, .1)), var(--navy-2); }
.m-card.mine { box-shadow: inset 3px 0 0 var(--yellow); }
.m-side { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; color: #c9d7e8; }
.m-side.right { flex-direction: row-reverse; text-align: right; }
.m-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-side.win { color: #fff; }
.m-side.win .m-nick { font-weight: 900; }
.m-side.win .t-ava { box-shadow: 0 0 0 2px var(--yellow); }
.m-side.me .m-nick { color: var(--yellow); }
.m-mid { display: grid; justify-items: center; gap: 4px; min-width: 76px; }
.m-score { font-size: 24px; font-weight: 900; font-style: italic; color: var(--yellow); font-variant-numeric: tabular-nums; animation: pop .4s ease-out both; }
.m-vs { font-size: 16px; font-weight: 900; font-style: italic; color: var(--faint); }
.m-state { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); }
.m-state.live { color: #ff6f86; }
.m-state.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.3s infinite; }
.m-state.disputed { color: #ffd27a; }
.m-time { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: var(--faint); font-size: 11px; font-weight: 600; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding-top: 10px; }
.pod { display: grid; gap: 10px; justify-items: center; text-align: center; min-width: 0; }
.pod-who { display: grid; gap: 4px; justify-items: center; min-width: 0; max-width: 100%; animation: pop .5s ease-out both; }
.pod.p1 .pod-who { animation-delay: .55s; }
.pod.p2 .pod-who { animation-delay: .35s; }
.pod.p3 .pod-who { animation-delay: .15s; }
.pod-who b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-who small { color: var(--muted); font-weight: 700; }
.pod-who .t-ava { width: 48px; height: 48px; font-size: 20px; }
.pod.p1 .pod-who .t-ava { width: 60px; height: 60px; font-size: 24px; box-shadow: 0 0 0 3px #ffd52f, 0 0 24px rgba(255, 213, 47, .45); }
.pod-who .actions { justify-content: center; }
.pod.me .pod-who b { color: var(--yellow); }
.crown { font-size: 26px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
.pod-step { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 4px 4px; transform-origin: bottom; animation: step-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.pod-step span { font-size: 34px; font-weight: 900; font-style: italic; }
.pod.p1 .pod-step { height: 120px; background: linear-gradient(#ffe066, #f5a400); color: #3a2400; animation-delay: .3s; }
.pod.p2 .pod-step { height: 88px; background: linear-gradient(#f1f5fb, #a9b7cc); color: #1f2a3d; animation-delay: .15s; }
.pod.p3 .pod-step { height: 64px; background: linear-gradient(#ffc28a, #c86b2a); color: #3a1a00; }

.prize-list { display: grid; gap: 6px; }
.prize-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--navy-2); border: 1px solid #1c3152; }
.prize-row .rank { min-width: 46px; }

@media (max-width: 900px) {
  .t-layout { grid-template-columns: minmax(0, 1fr); }
  .t-hero::after { font-size: 110px; opacity: .05; }
}

@media (max-width: 600px) {
  .t-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .t-card { padding: 18px 16px; gap: 14px; }
  .t-pool-value b { font-size: 32px; }
  .t-hero { padding: 18px 16px; border-radius: 18px; gap: 16px; }
  .t-hero::after { display: none; }
  .t-hero-main { align-items: flex-start; }
  .t-countdown, .t-countdown.big { text-align: left; }
  .t-meta .t-countdown { text-align: right; }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .t-stat.pool { grid-column: 1 / -1; }
  .t-stat { padding: 12px; }
  .t-stat b { font-size: 18px; }
  .t-actions .btn { width: 100%; }
  .hide-sm { display: none; }
  .who .t-ava { width: 26px; height: 26px; font-size: 11px; }
  .m-card { gap: 8px; padding: 12px 10px 24px; }
  .m-side { gap: 7px; font-size: 13px; }
  .m-side .t-ava { width: 26px; height: 26px; font-size: 11px; }
  .m-mid { min-width: 54px; }
  .m-score { font-size: 20px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { gap: 6px; }
  .pod-who b { font-size: 12px; }
  .pod-who .t-ava { width: 40px; height: 40px; font-size: 16px; }
  .pod.p1 .pod-who .t-ava { width: 48px; height: 48px; font-size: 19px; }
  .pod-who .amount { font-size: 12px; }
  .pod.p1 .pod-step { height: 96px; }
  .pod.p2 .pod-step { height: 70px; }
  .pod.p3 .pod-step { height: 50px; }
  .prize-row { padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .t-hero, .t-bar i, .pod-step, .pod-who, .m-score, .crown, .t-join, .t-status i, .m-state.live i, .skeleton { animation: none !important; }
  .t-card:hover, .m-card:hover { transform: none; }
}

.who > span:not(.t-ava) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .t-layout th, .t-layout td, .grid-main th, .grid-main td { padding-left: 8px; padding-right: 8px; }
  .t-layout .table-wrap, .grid-main .table-wrap { margin: 0 -8px; }
  .t-layout td:first-child, .t-layout th:first-child { padding-left: 16px; }
  .who > span:not(.t-ava) { max-width: 30vw; }
  .t-layout td .actions { flex-direction: column; align-items: flex-start; gap: 4px !important; }
  .t-layout td .amount { font-size: 13px; gap: 5px; }
  .t-layout td .amount svg { width: 14px; height: 14px; }
  .t-layout .rank { min-width: 30px; height: 30px; }
}

@keyframes grow-w { from { width: 0; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.row-in { animation-duration: .35s; }

.nav-cabinet a { position: relative; transition: color .2s; }
.nav-cabinet a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav-cabinet a:hover::after, .nav-cabinet a.active::after { transform: scaleX(1); }

.btn { transition: transform .15s, filter .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(3px); }
.chip { transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: translateY(2px); }

.panel { transition: border-color .25s, box-shadow .25s; }
.panel:hover { border-color: #2c4a74; box-shadow: 0 10px 30px -18px rgba(23, 200, 244, .35); }

.coin { transition: transform .2s; }
.coin::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.coin:hover { transform: translateY(-4px) rotate(-.5deg); }
.coin:hover::after { animation: shine .8s ease-out; }
.coin svg { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.coin:hover svg { transform: rotate(-14deg) scale(1.08); }

.stat { transition: transform .2s, border-color .2s; }
.stat:hover { transform: translateY(-3px); border-color: #2c4a74; }

.bar > i { animation: grow-w 1s cubic-bezier(.2, .8, .2, 1) both; }

.ability { transition: transform .2s, border-color .2s, box-shadow .2s; }
.ability:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 12px 26px -16px rgba(255, 213, 47, .6); }

tbody tr td { transition: background .15s; }
.player-link.who { display: inline-flex; }
.who > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.t-ava.xl { width: 52px; height: 52px; font-size: 24px; font-style: normal; letter-spacing: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 8px 20px -8px rgba(0, 0, 0, .6); }

.board-podium { margin: 4px 0 8px; }
.board-podium .pod-who { text-decoration: none; color: inherit; }
.board-podium .pod-who:hover b { color: var(--yellow); }
.board-podium .pod.p1 .pod-step { height: 100px; }
.board-podium .pod.p2 .pod-step { height: 74px; }
.board-podium .pod.p3 .pod-step { height: 54px; }

.toast.show { animation: toast-in .35s cubic-bezier(.2, .8, .2, 1); }

.hero-content > * { animation: hero-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-content > *:nth-child(4) { animation-delay: .3s; }
.hero-content > *:nth-child(5) { animation-delay: .4s; }
.hero-card { animation: float 6s ease-in-out infinite; }
.feature-grid article { transition: transform .25s, box-shadow .25s; }
.feature-grid article:hover { transform: translateY(-6px); }
.news-grid article { transition: transform .25s, border-color .25s; }
.news-grid article:hover { transform: translateY(-6px); border-color: #2c4a74; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .t-ava.xl { width: 40px; height: 40px; font-size: 18px; }
  .board-podium .pod.p1 .pod-step { height: 80px; }
  .board-podium .pod.p2 .pod-step { height: 60px; }
  .board-podium .pod.p3 .pod-step { height: 44px; }
  .panel:hover { box-shadow: none; }
}

@media (hover: none) {
  .coin:hover, .stat:hover, .ability:hover, .feature-grid article:hover, .news-grid article:hover, .chip:hover, .btn:hover:not(:disabled) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .row-in, .bar > i, .coin:hover::after, .hero-content > *, .hero-card, .toast.show { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .coin:hover, .stat:hover, .ability:hover, .feature-grid article:hover, .news-grid article:hover, .chip:hover, .btn:hover:not(:disabled) { transform: none; }
}

.show-sm { display: none; }
@media (max-width: 600px) {
  .show-sm { display: block; margin-top: 2px; }
  .cell-progress { min-width: 96px; }
  .panel th, .panel td { padding-left: 10px; padding-right: 10px; }
  .panel .table-wrap { margin: 0 -10px; }
  .panel td .badge { white-space: normal; height: auto; min-height: 24px; padding: 3px 8px; line-height: 1.2; }
}

.addr-grid { display: grid; gap: 12px; }
.addr-line { display: grid; gap: 4px; min-width: 0; }
.addr-line small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.treasury-asset { display: grid; gap: 12px; padding-top: 4px; }
.treasury-asset .t-stats + .t-stats { grid-template-columns: minmax(0, 1fr); }

.date-range { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.date-range .field { width: 180px; }
.panel input[type="date"] { color-scheme: dark; }
@media (max-width: 600px) { .date-range .field { width: calc(50% - 6px); } .date-range .btn { width: 100%; } }
