@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #15191e;
  --bg-deep: #090d12;
  --panel: #1d232a;
  --panel-soft: #242b34;
  --line: rgba(207, 231, 255, .11);
  --line-strong: rgba(0, 188, 255, .34);
  --text: #f8fbff;
  --muted: rgba(232, 241, 250, .66);
  --blue: #00bcff;
  --blue-dark: #027eb8;
  --success: #41d684;
  --danger: #ff5173;
  --violet-shadow: rgba(61, 84, 150, .28);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
}

html {
  scroll-behavior: smooth;
}

body.v2 {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 188, 255, .2), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(56, 78, 152, .26), transparent 34rem),
    linear-gradient(145deg, #0d1117 0%, #15191e 42%, #10161e 100%);
  font-family: Geist, Finlandica, Segoe UI, system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
  isolation: isolate;
}

body.v2::before,
body.v2::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body.v2::before {
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 54px 54px;
  filter: none;
  opacity: 1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 78%);
}

body.v2::after {
  z-index: -1;
  opacity: .24;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(0, 188, 255, .9) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, .45) 0 1px, transparent 1px);
  background-size: 180px 180px, 260px 260px, 310px 310px;
  filter: none;
  animation: v2-noise-drift 28s ease-in-out infinite alternate;
}

@keyframes v2-noise-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, 46px, 0); }
}

body.v2 main,
body.v2 .persistent-stream {
  width: min(1720px, calc(100% - clamp(28px, 4vw, 72px)));
}

body.v2 main {
  padding-top: 34px;
}

body.v2 .topbar {
  width: min(1720px, calc(100% - clamp(20px, 4vw, 60px)));
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    rgba(14, 18, 24, .82);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px) saturate(150%);
}

body.v2[data-page="home"] .topbar,
body.v2[data-page="replays"] .topbar,
body.v2[data-page="shop"] .topbar,
body.v2[data-page="messages"] .topbar,
body.v2[data-page="tournaments"] .topbar,
body.v2[data-page="ranking"] .topbar {
  position: relative;
}

body.v2 .brand {
  min-width: 38px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.v2 .brand img {
  width: 38px;
  height: 38px;
}

body.v2 .brand::after {
  bottom: -2px;
}

body.v2 nav {
  gap: 6px;
}

body.v2 nav a,
body.v2 .account a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(248, 251, 255, .62);
  font-size: 13px;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: none;
}

body.v2 nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

body.v2[data-page="login"] nav a[data-nav="login"],
body.v2[data-page="home"] nav a[data-nav="home"],
body.v2[data-page="replays"] nav a[data-nav="replays"],
body.v2[data-page="shop"] nav a[data-nav="shop"],
body.v2[data-page="messages"] nav a[data-nav="messages"],
body.v2[data-page="tournaments"] nav a[data-nav="tournaments"],
body.v2[data-page="ranking"] nav a[data-nav="ranking"],
body.v2[data-page="admin"] nav a[data-nav="admin"] {
  color: #031219;
  background: var(--blue);
  box-shadow: none;
}

body.v2 .account {
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

body.v2 .account strong {
  padding-left: 10px;
  color: #fff;
}

body.v2 .account span {
  padding-right: 4px;
  color: rgba(248, 251, 255, .55);
}

body.v2 .account img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
}

body.v2 .logout-link {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 81, 115, .12);
}

body.v2 .logout-link svg {
  display: block;
  width: 19px;
  height: 19px;
  transform: translateX(-1px);
}

body.v2 .stream-zone {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: stretch;
  gap: 18px;
}

body.v2 .stream-left {
  grid-template-rows: auto auto auto;
  height: auto;
  gap: 12px;
}

body.v2 .stream-status,
body.v2 .stream-balance,
body.v2 .stream-toggle,
body.v2 .stream-viewers,
body.v2 .panel,
body.v2 .card,
body.v2 .match-card,
body.v2 .leaderboard-item,
body.v2 .bubble,
body.v2 .tournament-card,
body.v2 .replay-card {
  position: relative;
  border: 1px solid rgba(207, 231, 255, .1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    rgba(20, 25, 31, .78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px) saturate(130%);
}

body.v2 .stream-status {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

body.v2 .stream-status.live span {
  box-shadow: 0 0 0 4px rgba(255, 53, 79, .15), 0 0 18px rgba(255, 53, 79, .42);
}

body.v2 .stream-player,
body.v2 .stream-chat {
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #181d23;
  box-shadow: var(--shadow);
}

body.v2 .stream-player {
  aspect-ratio: 16 / 9;
}

body.v2 .stream-chat {
  min-height: 100%;
}

body.v2 .stream-player::before,
body.v2 .stream-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body.v2 .stream-controls {
  gap: 10px;
}

body.v2 .stream-balance,
body.v2 .stream-toggle,
body.v2 .stream-viewers {
  min-height: 46px;
  border-radius: 999px;
  color: rgba(248, 251, 255, .76);
}

body.v2 .stream-viewers,
body.v2 .stream-viewers svg,
body.v2 .stream-viewers b {
  color: var(--danger);
  fill: var(--danger);
}

body.v2 .stream-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 188, 255, .28);
}

body.v2 .coin-stack {
  filter: drop-shadow(0 0 12px rgba(0, 188, 255, .3));
}

body.v2 .grid.two {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .72fr);
  gap: 28px;
}

body.v2 .section-title {
  margin: 0 0 18px;
}

body.v2 .section-title h1,
body.v2 .section-title h2,
body.v2 .prediction-section h2 {
  color: #fff;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.v2 .section-title span,
body.v2 .eyebrow {
  color: var(--blue);
  font-family: "Geist Mono", monospace;
  letter-spacing: .03em;
}

body.v2 .prediction-section {
  gap: 14px;
}

body.v2 .prediction-section h2 {
  display: flex;
  align-items: center;
  margin: 8px 0 0;
  font-size: 22px;
}

body.v2 .match-card {
  --mx: 50%;
  --my: 0%;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    rgba(18, 23, 29, .84);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.v2 .match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 28px);
  opacity: .38;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent);
}

body.v2 .match-card:hover {
  border-color: rgba(0, 188, 255, .24);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

body.v2 .match-head {
  position: relative;
  z-index: 1;
}

body.v2 .event-title {
  min-height: 28px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}

body.v2 .event-logo {
  width: 1.4em;
  height: 1.4em;
  padding: 2px;
  display: inline-block;
  flex: 0 0 1.4em;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

body.v2 .status {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}

body.v2 .versus {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 14px;
}

body.v2 .vs {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
  color: rgba(255, 255, 255, .9);
  font-family: "Geist Mono", monospace;
}

body.v2 .vs-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 46px;
  height: 31px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

body.v2 .vs {
  isolation: isolate;
}

body.v2 .team-pick {
  min-height: 110px;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: 12px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    rgba(255, 255, 255, .026);
  border-color: rgba(255, 255, 255, .055);
}

body.v2 .team-pick:hover:not(:disabled) {
  background: rgba(255, 255, 255, .055);
  transform: translateY(-2px) scale(1.005);
}

body.v2 .team-pick.selected {
  background: rgba(0, 188, 255, .11);
  border-color: rgba(0, 188, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(0, 188, 255, .34), 0 0 36px rgba(0, 188, 255, .14);
}

body.v2 .team-pick.won {
  border-color: rgba(65, 214, 132, .72);
  background: rgba(65, 214, 132, .12);
}

body.v2 .team-pick.lost {
  border-color: rgba(255, 81, 115, .62);
  background: rgba(255, 81, 115, .11);
}

body.v2 .team-pick.selected.won {
  border-color: rgba(65, 214, 132, .86);
  box-shadow: inset 0 0 0 1px rgba(65, 214, 132, .38), 0 0 30px rgba(65, 214, 132, .12);
}

body.v2 .team-pick.selected.lost {
  border-color: rgba(255, 81, 115, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 81, 115, .4), 0 0 30px rgba(255, 81, 115, .1);
}

body.v2 .team-logo-box {
  width: 94px;
  height: 86px;
  min-width: 94px;
  max-width: 94px;
  padding: 10px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(0, 188, 255, .1), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .22);
}

body.v2 .team-copy strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

body.v2 .tag {
  font-family: "Geist Mono", monospace;
}

body.v2 .vote-share {
  display: grid;
  align-items: center;
  width: min(220px, 100%);
  height: 20px;
  min-height: 20px;
  background: rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body.v2 .vote-share span {
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, rgba(0, 188, 255, .62), rgba(100, 221, 255, .72));
  box-shadow: 0 0 20px rgba(0, 188, 255, .18);
}

body.v2 .vote-share b {
  align-self: center;
  line-height: 20px;
}

body.v2 .leaderboard {
  gap: 10px;
}

body.v2 .leaderboard-item {
  border-radius: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.v2 .leaderboard-item:hover {
  transform: translateX(3px);
  border-color: rgba(0, 188, 255, .2);
}

body.v2 .ranking-row.ranking-me {
  position: relative;
  padding-right: 62px;
  border-color: rgba(0, 188, 255, .9);
  background:
    radial-gradient(circle at 0 50%, rgba(0, 188, 255, .2), transparent 16rem),
    linear-gradient(145deg, rgba(0, 188, 255, .16), rgba(255, 255, 255, .04)),
    rgba(18, 23, 29, .92);
  box-shadow: inset 0 0 0 1px rgba(0, 188, 255, .58), 0 0 38px rgba(0, 188, 255, .2);
  animation: v2-find-me .95s cubic-bezier(.22, 1, .36, 1) both;
}

body.v2 .ranking-row.ranking-me::after {
  content: "Moi";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #031219;
  font-size: 11px;
  font-weight: 900;
}

@keyframes v2-find-me {
  0% { transform: translateX(0) scale(1); }
  35% { transform: translateX(4px) scale(1.012); }
  100% { transform: translateX(0) scale(1); }
}

body.v2 .rank-number,
body.v2 .leaderboard-item > strong:last-child {
  font-family: "Geist Mono", monospace;
  color: #fff;
}

body.v2 .caster-badge {
  width: 26px;
  height: 26px;
  border-color: rgba(0, 188, 255, .45);
  background: rgba(0, 188, 255, .13);
}

body.v2 .login-stage {
  min-height: calc(100dvh - 120px);
}

body.v2 .login-panel,
body.v2 .login-preview {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

body.v2 .login-panel {
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(15, 20, 26, .82);
}

body.v2 .login-panel::after {
  top: 101px;
}

body.v2 .login-panel p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(248, 251, 255, .76);
}

body.v2 .login-benefits {
  gap: 12px;
  margin: 24px 0 34px;
}

body.v2 .login-benefits span {
  min-height: 62px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(0, 188, 255, .24);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.v2 .login-benefits span:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 188, 255, .55);
  background: rgba(0, 188, 255, .08);
}

body.v2 .login-preview {
  opacity: 1;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)),
    rgba(15, 20, 26, .82);
}

body.v2 .login-preview::before {
  display: none;
}

body.v2 .login-preview-teams b {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 88px;
  margin-top: 0;
  align-self: start;
}

body.v2 .login-vs-logo {
  width: 46px;
}

body.v2 .button,
body.v2 button {
  border-radius: 999px;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.v2 .button,
body.v2 button,
body.v2 .button:hover,
body.v2 button:hover,
body.v2 .button:focus,
body.v2 button:focus,
body.v2 .button:active,
body.v2 button:active {
  box-shadow: none;
}

body.v2 .button:hover,
body.v2 button:hover {
  transform: translateY(-1px);
}

body.v2 .button:active,
body.v2 button:active {
  transform: translateY(1px) scale(.99);
}

body.v2 .button.primary,
body.v2 button.primary,
body.v2 .twitch-button {
  color: #031219;
  background: var(--blue);
  box-shadow: none;
}

body.v2 .twitch-button {
  color: #fff;
  background: #9146ff;
  box-shadow: none;
}

body.v2 .twitch-button:hover,
body.v2 .twitch-button:focus,
body.v2 .twitch-button:active {
  box-shadow: none;
}

body.v2 .shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

body.v2 .product > img,
body.v2 .replay-thumb {
  border-radius: 12px;
}

body.v2 .replay-card {
  padding: 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .024)),
    #171d24;
  border-color: rgba(207, 231, 255, .09);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

body.v2 .replay-card:hover {
  border-color: rgba(0, 188, 255, .24);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 188, 255, .08), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .026)),
    #171d24;
}

body.v2 .replay-card.active {
  border-color: rgba(0, 188, 255, .52);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 188, 255, .12), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028)),
    #171d24;
  box-shadow: inset 0 0 0 1px rgba(0, 188, 255, .22), 0 18px 48px rgba(0, 0, 0, .28);
}

body.v2 .replay-thumb {
  background: #070a0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body.v2 .replay-info {
  padding: 2px 2px 4px;
}

body.v2 .product {
  gap: 2px;
}

body.v2 .product h2 {
  letter-spacing: -.02em;
}

body.v2 .supplier-link {
  color: var(--blue);
}

body.v2 .tournament-agenda,
body.v2 .replay-grid {
  gap: 16px;
}

body.v2 .tournament-card {
  grid-template-columns: 64px 64px minmax(0, 1fr) auto;
  padding: 16px;
  border-radius: var(--radius);
}

body.v2 .tournament-date {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: #fff;
  box-shadow: none;
}

body.v2 .tournament-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}

body.v2 .ranking-toolbar input,
body.v2 .ranking-toolbar select,
body.v2 input,
body.v2 select,
body.v2 textarea {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(10, 14, 19, .76);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.v2 .ranking-toolbar {
  align-items: stretch;
}

body.v2 .ranking-toolbar input,
body.v2 .ranking-toolbar select,
body.v2 .ranking-toolbar .ranking-filter,
body.v2 .ranking-toolbar .button {
  min-height: 46px;
  height: 46px;
}

body.v2 .ranking-toolbar select {
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%) calc(100% - 22px) 20px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--blue) 50%, transparent 50%) calc(100% - 17px) 20px / 7px 7px no-repeat,
    rgba(10, 14, 19, .76);
  appearance: none;
}

body.v2 input:focus,
body.v2 select:focus,
body.v2 textarea:focus {
  outline: none;
  border-color: rgba(0, 188, 255, .72);
  box-shadow: 0 0 0 4px rgba(0, 188, 255, .12);
}

body.v2 .admin-tabs a,
body.v2 .ranking-filter {
  border-radius: 999px;
}

body.v2 .ranking-filter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 12, 17, .74);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

body.v2 .ranking-filter::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: none;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}

body.v2 .ranking-filter:has([data-ranking-filter="casters"].active)::before {
  transform: translateX(100%);
}

body.v2 .ranking-filter button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 251, 255, .68);
}

body.v2 .ranking-filter button.active {
  color: #031219;
  background: transparent;
  box-shadow: none;
}

body.v2 .admin-tabs a {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
}

body.v2 .admin-tabs a.active {
  color: #031219;
  background: var(--blue);
}

body.v2 .admin-row {
  border-top-color: rgba(255, 255, 255, .08);
}

body.v2 .toast {
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
}

body.v2 .site-footer {
  width: min(1720px, calc(100% - clamp(28px, 4vw, 72px)));
  margin: 0 auto 24px;
  padding: 18px 0;
}

body.v2.compact-view .persistent-stream {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 12px;
}

body.v2.compact-view .stream-left,
body.v2.compact-view .stream-chat,
body.v2.compact-view .compact-latest {
  width: 100%;
}

body.v2.compact-view .stream-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

body.v2.compact-view .stream-player,
body.v2.compact-view .stream-chat {
  height: 100%;
  min-height: 0;
  border-radius: 12px;
}

body.v2.compact-view .stream-player {
  aspect-ratio: auto;
}

body.v2.compact-view .stream-controls {
  width: 100%;
  display: flex;
}

body.v2.compact-view .stream-balance,
body.v2.compact-view .stream-toggle,
body.v2.compact-view .stream-viewers {
  min-height: 40px;
  padding: 8px 12px;
}

body.v2.compact-view .compact-match-card {
  width: 100%;
}

body.v2.compact-view .compact-match-card .versus {
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  gap: 16px;
}

body.v2.compact-view .compact-match-card .vs {
  min-width: 68px;
}

body.v2.compact-view .compact-match-card .vs-logo {
  width: 44px;
  height: 29px;
}

body.v2.compact-view .compact-match-card .team-pick {
  min-height: 82px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

body.v2.compact-view .compact-match-card .team-logo-box {
  width: 72px;
  height: 68px;
  min-width: 72px;
  max-width: 72px;
}

.v2-reveal {
  animation: v2-reveal .5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--v2-delay, 0ms);
}

@keyframes v2-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1120px) {
  body.v2 .stream-zone,
  body.v2 .grid.two {
    grid-template-columns: 1fr;
  }

  body.v2 .stream-chat {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  html,
  body.v2 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.v2 * {
    min-width: 0;
  }

  body.v2 main,
  body.v2 .persistent-stream,
  body.v2 .topbar,
  body.v2 .site-footer {
    width: min(100% - 24px, 1720px);
    max-width: calc(100vw - 24px);
  }

  body.v2 .topbar {
    margin-top: 10px;
    border-radius: 16px;
  }

  body.v2 .menu-toggle {
    border-radius: 12px;
    background: rgba(255, 255, 255, .065);
  }

  body.v2 nav {
    border-radius: 16px;
    background: rgba(12, 16, 22, .96);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .38);
  }

  body.v2 .account {
    background: transparent;
  }

  body.v2 .versus,
  body.v2 .login-preview-teams {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.v2 .vs,
  body.v2 .login-preview-teams b {
    min-height: 42px;
    margin: 0;
  }

  body.v2 .vs-logo {
    width: 38px;
    height: 25px;
  }

  body.v2 .team-pick {
    width: 100%;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  body.v2 .team-logo-box {
    width: 82px;
    height: 72px;
    min-width: 82px;
    max-width: 82px;
  }

  body.v2 .event-title,
  body.v2 .bet-result,
  body.v2 .supplier-link {
    width: fit-content;
    max-width: 100%;
  }

  body.v2 .event-title {
    overflow-wrap: anywhere;
  }

  body.v2 .status {
    justify-content: flex-end;
    text-align: right;
  }

  body.v2 .match-head {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  body.v2 .login-panel {
    padding: 26px;
  }

  body.v2 .stream-balance,
  body.v2 .stream-toggle,
  body.v2 .stream-viewers {
    width: 100%;
    justify-content: space-between;
  }

  body.v2 .stream-viewers {
    margin-left: 0;
  }

  body.v2 .stream-balance,
  body.v2 .stream-viewers {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.v2 .tournament-card {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  body.v2 .tournament-logo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v2::after,
  .v2-reveal {
    animation: none;
  }

  body.v2 *,
  body.v2 *::before,
  body.v2 *::after {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 820px) {
  body.v2.menu-open nav {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(12, 16, 22, .96);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .38);
  }

  body.v2 nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
  }

  body.v2 .mobile-logout-link {
    color: var(--danger);
    background: rgba(255, 81, 115, .09);
  }

  body.v2 .stream-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.v2 .stream-balance {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    justify-content: flex-start;
  }

  body.v2 .stream-viewers {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    justify-content: flex-end;
  }

  body.v2 .stream-toggle {
    grid-row: 2;
  }

  body.v2 .stream-balance,
  body.v2 .stream-toggle,
  body.v2 .stream-viewers {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
  }

  body.v2 .stream-toggle {
    justify-content: space-between;
  }

  body.v2 .stream-viewers {
    margin-left: 0;
  }

  body.v2 .stream-balance {
    justify-content: flex-start;
  }

  body.v2 .stream-viewers {
    justify-content: flex-end;
  }

  body.v2 .stream-chat {
    display: none;
  }

  body.v2.chat-open .stream-chat {
    display: block;
    position: fixed;
    right: 12px;
    bottom: 68px;
    z-index: 40;
    width: min(420px, calc(100vw - 24px));
    height: min(72dvh, 620px);
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .56);
  }

  body.v2.chat-open .stream-chat iframe {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.v2 .mobile-chat-button {
    display: block;
    border-radius: 999px;
    background: #9146ff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .34);
  }

  body.v2 .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: min(1480px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 20px 0 86px;
    text-align: left;
  }

  body.v2 .site-footer > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.v2 .footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.v2 .footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.v2 .footer-links a:hover,
  body.v2 .footer-links a:focus,
  body.v2 .footer-links a:active {
    background: transparent;
    box-shadow: none;
  }

  body.v2 .footer-links a[aria-label] {
    width: auto;
  }

  body.v2 .footer-links svg {
    width: 18px;
    height: 18px;
  }

  body.v2 .bubble,
  body.v2 .bubble.user {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  body.v2 .tournament-card {
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    align-items: center;
    column-gap: 18px;
    row-gap: 8px;
  }

  body.v2 .tournament-date,
  body.v2 .tournament-date strong,
  body.v2 .tournament-date span {
    color: #fff;
  }

  body.v2 .tournament-logo {
    display: none;
  }

  body.v2 .tournament-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body.v2 .tournament-copy h2,
  body.v2 .tournament-copy span {
    margin: 0;
    line-height: 1.2;
  }

  body.v2 .tournament-link {
    align-self: center;
    justify-self: end;
  }

  body.v2 .ranking-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.v2 .ranking-filter {
    width: 100%;
  }

  body.v2 .ranking-filter button {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 13px;
    padding: 0 8px;
  }

  body.v2 .ranking-toolbar input,
  body.v2 .ranking-toolbar select,
  body.v2 .ranking-toolbar .ranking-filter,
  body.v2 .ranking-toolbar .button {
    min-height: 44px;
    height: 44px;
  }

  body.v2.compact-view {
    overflow: auto;
  }

  body.v2.compact-view .topbar,
  body.v2.compact-view main,
  body.v2.compact-view .site-footer {
    display: flex !important;
  }

  body.v2.compact-view .mobile-chat-button {
    display: block !important;
  }

  body.v2.compact-view main {
    display: block !important;
  }

  body.v2.compact-view .persistent-stream {
    display: block;
    width: min(100% - 24px, 1720px);
    max-width: calc(100vw - 24px);
    height: auto;
    margin: 0 auto;
    padding: 10px 0 8px;
  }

  body.v2.compact-view .stream-zone {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.v2.compact-view .stream-left {
    height: auto;
    min-height: 0;
  }

  body.v2.compact-view .stream-player {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body.v2.compact-view .stream-chat {
    display: none;
  }

  body.v2.compact-view.chat-open .stream-chat {
    display: block;
  }

  body.v2.compact-view .compact-latest {
    display: none;
  }
}

@media (max-width: 560px) {
  body.v2 .brand:hover img,
  body.v2 .brand:focus img,
  body.v2 .brand:active img {
    filter: none;
  }

  body.v2 .brand:hover::after,
  body.v2 .brand:focus::after,
  body.v2 .brand:active::after {
    opacity: 0;
    animation: none;
  }

  body.v2 .login-panel::after {
    top: 88px;
  }

  body.v2 .shop-grid,
  body.v2 .replay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.v2 .shop-grid .card,
  body.v2 .replay-card {
    padding: 10px;
  }

  body.v2 .product h2,
  body.v2 .replay-card strong {
    font-size: 14px;
    line-height: 1.15;
  }

  body.v2 .product-description,
  body.v2 .product-provider,
  body.v2 .replay-card small {
    font-size: 12px;
    line-height: 1.3;
  }

  body.v2 .stream-controls {
    grid-template-columns: 1fr 1fr;
  }

  body.v2 .stream-toggle span:not(.info-tooltip),
  body.v2 .stream-balance span,
  body.v2 .stream-viewers b {
    white-space: nowrap;
  }

  body.v2 .stream-balance,
  body.v2 .stream-viewers {
    font-size: 12px;
  }

  body.v2 .stream-toggle {
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }

  body.v2 .stream-toggle i {
    width: 38px;
    height: 22px;
    flex-basis: 38px;
  }

  body.v2 .stream-toggle i::after {
    width: 16px;
    height: 16px;
  }

  body.v2 .stream-toggle input:checked + i::after {
    transform: translateX(16px);
  }

  body.v2 .tournament-card {
    grid-template-columns: 54px minmax(0, 1fr) 36px;
    column-gap: 18px;
  }

  body.v2 .tournament-card .event-link {
    grid-column: 3;
    justify-self: end;
  }

  body.v2 .tournament-logo {
    display: none;
  }

  body.v2 .ranking-filter button {
    font-size: 12px;
    padding: 0 6px;
  }
}
