:root {
  color-scheme: dark;
  --page: #08090e;
  --bg: #181c27;
  --surface: #1d2230;
  --surface-2: #2b3144;
  --ink: #ffffff;
  --muted: #a8b3c5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #0077b3;
  --accent-2: #ff8d00;
  --green: #31d17c;
  --purple: #6d5cff;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

body.light {
  color-scheme: light;
  --page: #e9eef5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --ink: #111722;
  --muted: #5d6b7b;
  --line: rgba(17, 23, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 141, 0, 0.18), transparent 28%),
    var(--page);
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface-2);
}

button:active {
  transform: translateY(1px);
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface-2);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.phone-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px 96px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 28px 90px rgba(0, 0, 0, 0.42);
}

.app-header,
.section-title,
.card-header,
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  margin: 0 -14px;
  justify-content: space-between;
  min-height: 0;
  padding: 0 30px 10px 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

body.light .app-header {
  background: transparent;
}

body[data-active-view]:not([data-active-view="home"]) .gamex-logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-mark,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.gamex-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 118px;
  margin-left: 0;
  margin-left: -10px;
  margin-top: -22px;
  min-height: 118px;
  padding: 0;
  overflow: visible;
  color: #ffffff;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  isolation: isolate;
}

.logo-source-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.logo-canvas {
  position: absolute;
  inset: -6px -5px;
  z-index: 1;
  width: calc(100% + 10px);
  height: calc(100% + 12px);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.72));
  pointer-events: none;
}

body.light .logo-canvas {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.82)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.62)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.28));
}

.logo-badge,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.logo-badge {
  color: var(--accent-2);
  border: 1px solid rgba(255, 141, 0, 0.48);
  font-weight: 950;
  background: rgba(255, 141, 0, 0.12);
}

.icon-button {
  min-height: 36px;
  padding: 0;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(8, 9, 14, 0.18);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.header-actions {
  position: absolute;
  top: 8px;
  right: 18px;
  transform: none;
}

.profile-icon::before,
.menu-icon::before {
  content: "";
  display: block;
}

.profile-icon::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 13px 0 -3px currentColor;
}

.menu-icon::before {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-stage {
  position: relative;
  margin: 0 -14px 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 24% 35%, rgba(255, 141, 0, 0.18), transparent 28%),
    radial-gradient(circle at 78% 15%, rgba(0, 119, 179, 0.2), transparent 30%),
    #10131b;
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 14, 0.04), rgba(8, 9, 14, 0.42) 58%, rgba(8, 9, 14, 0.46)),
    radial-gradient(circle at 18% 30%, rgba(255, 141, 0, 0.05), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(0, 119, 179, 0.08), transparent 32%);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 345px;
  margin: 0;
  padding: 88px 18px 46px;
  overflow: hidden;
  text-align: center;
}

.hero > div:not(.hero-video-fallback) {
  position: relative;
  z-index: 3;
}

.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: 0;
  object-fit: cover;
}

.hero-video-fallback {
  z-index: -1;
  background:
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 24% 35%, rgba(255, 141, 0, 0.18), transparent 28%),
    radial-gradient(circle at 78% 15%, rgba(0, 119, 179, 0.2), transparent 30%),
    #10131b;
}

.hero h2 {
  max-width: 360px;
  margin: 0 auto 10px;
  font-size: 1.82rem;
  line-height: 1.08;
}

.hero p {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.hero-actions button {
  min-height: 58px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.78);
}

.top-players {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 22px 0 22px 34px;
  background: rgba(29, 34, 47, 0.42);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.top-players strong {
  font-size: 1.05rem;
  white-space: nowrap;
}

.player-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.player-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding-right: 12px;
  animation: player-slide 13s linear infinite;
}

.player-marquee:hover .player-track {
  animation-play-state: paused;
}

.player-chip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--accent-2);
  border: 2px solid rgba(255, 141, 0, 0.5);
  font-weight: 950;
  background: #0a0b10;
}

.player-chip.purple {
  color: #ffffff;
  border-color: var(--purple);
  background: #2b2a65;
}

.player-chip.blue {
  color: #ffffff;
  border-color: var(--accent);
  background: #073b55;
}

@keyframes player-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.live-pill,
.status,
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.69rem;
  font-weight: 950;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.quick-strip article,
.balance-panel,
.panel,
.tournament-card,
.room-card,
.table-card,
.guild-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-strip article {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px;
}

.quick-strip span,
.match-meta span,
.wallet-card span,
.balance-panel span,
.meta {
  color: var(--muted);
}

.quick-strip span,
.match-meta span {
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-strip strong {
  font-size: 1.25rem;
}

.video-carousel {
  position: relative;
  display: block;
  min-height: 252px;
  margin: 0 -14px 28px;
  overflow: hidden;
  background: transparent;
}

.video-track {
  position: relative;
  min-width: 0;
  min-height: 208px;
  overflow: hidden;
  padding: 14px 0 34px;
  scroll-behavior: auto;
  scroll-snap-type: none;
  touch-action: pan-y;
}

.video-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  align-content: start;
  width: min(374px, calc(100vw - 36px));
  min-height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px 14px;
  background:
    linear-gradient(90deg, rgba(0, 119, 179, 0.78), rgba(10, 11, 16, 0.1)),
    radial-gradient(circle at 86% 42%, rgba(255, 141, 0, 0.42), transparent 34%),
    #142438;
  opacity: 0.72;
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.82);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease, filter 260ms ease;
}

.video-card[data-position="left"] {
  z-index: 1;
  transform: translate(calc(-50% - 220px), -50%) scale(0.86);
}

.video-card[data-position="center"] {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}

.video-card[data-position="right"] {
  z-index: 1;
  transform: translate(calc(-50% + 220px), -50%) scale(0.86);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.video-card h3,
.video-card p,
.video-badge,
.play-button {
  position: relative;
  z-index: 1;
}

.video-card h3 {
  max-width: 210px;
  margin-bottom: 4px;
  font-size: 1rem;
}

.video-card p {
  color: #ffffff;
  font-size: 0.75rem;
}

.video-badge {
  justify-self: start;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.34);
}

.active-video {
  min-height: 178px;
  opacity: 1;
  filter: none;
}

.side-card {
  min-height: 156px;
  opacity: 0.62;
  filter: brightness(0.76);
}

.prev-video {
}

.next-video {
}

.side-card h3,
.side-card p,
.side-card .video-badge {
  opacity: 0;
}

.danger {
  background:
    linear-gradient(90deg, rgba(10, 11, 16, 0.2), rgba(205, 26, 47, 0.8)),
    #29101a;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #ff1919;
  transform: translate(-50%, -50%);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #ffffff;
  transform: translateX(2px);
}

.video-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 38px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #ffffff;
  font-size: 2.3rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

#video-prev {
  left: 12px;
}

#video-next {
  right: 12px;
}

.video-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.video-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 180ms ease, background 180ms ease;
}

.video-dots span.active {
  width: 22px;
  background: var(--accent-2);
}

.app-stats {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 22px -14px 24px;
  padding: 42px 18px 48px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 6, 3, 0.78), rgba(7, 6, 3, 0.9)),
    url("assets/stats-freefire-bg.png") center / cover,
    #071019;
}

.stats-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 70%, rgba(255, 201, 88, 0.26), transparent 24%),
    radial-gradient(circle at 82% 35%, rgba(255, 141, 0, 0.22), transparent 28%),
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
  filter: blur(1.5px);
  animation: stats-bg-shift 6s ease-in-out infinite alternate;
}

.app-stats h2,
.stats-grid {
  position: relative;
  z-index: 1;
}

.app-stats h2 {
  justify-self: center;
  font-size: 2rem;
  font-weight: 950;
  color: transparent;
  background: linear-gradient(90deg, #fff8d6 0%, #f6b93b 22%, #ffd76a 48%, #ffffff 68%, #d89018 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
  animation: stats-title-sweep 2.8s linear infinite;
}

.app-stats h2 span {
  color: inherit;
  animation: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid article {
  display: grid;
  grid-template-rows: 42px 24px;
  align-items: start;
  justify-items: center;
  gap: 4px;
  min-height: 84px;
  padding: 0 8px;
}

.stats-grid article + article {
  border-left: 2px solid rgba(255, 255, 255, 0.46);
}

.stats-grid strong {
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
  display: grid;
  place-items: center;
  min-height: 42px;
  text-align: center;
  align-self: center;
}

.stats-grid span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  color: #c6cfda;
  font-size: 0.72rem;
  line-height: 1.1;
  text-align: center;
}

.stats-grid strong.counting {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 188, 255, 0.42);
}

.news-section {
  margin: 0 -14px 28px;
  padding: 34px 10px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 141, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #1c1734, #171c27);
}

.news-heading {
  display: grid;
  gap: 10px;
  max-width: 370px;
  margin: 0 auto 24px;
  text-align: center;
}

.news-heading h2 {
  font-size: 1.12rem;
  text-transform: uppercase;
}

.news-heading p {
  margin: 0;
  color: #b9c3d4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 278px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1020;
}

.news-card.featured {
  border: 2px solid var(--accent-2);
}

.news-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(9, 10, 20, 0.82)),
    radial-gradient(circle at 50% 78%, rgba(255, 141, 0, 0.18), transparent 34%);
}

.news-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 18px;
  text-align: center;
}

.news-content h3 {
  max-width: 310px;
  font-size: 1.1rem;
}

.news-content p {
  max-width: 320px;
  margin: 0;
  color: #d8e0eb;
  font-size: 0.82rem;
  line-height: 1.5;
}

.news-actions {
  display: flex;
  gap: 26px;
  margin-top: 4px;
}

.news-actions span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #dbe4f0;
}

.news-actions span::before {
  content: "";
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: currentColor;
}

.news-actions span:nth-child(2)::before {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: transparent;
  border: 3px solid currentColor;
}

.news-actions span:nth-child(3)::before {
  width: 18px;
  height: 14px;
  border-radius: 999px 999px 6px 6px;
}

@keyframes stats-title-sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes stats-bg-shift {
  from {
    transform: scale(1) translateY(0);
  }

  to {
    transform: scale(1.06) translateY(-8px);
  }
}

.tabs {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: min(430px, 100%);
  max-width: 430px;
  height: calc(56px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 4px 8px calc(5px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--line);
  background: #0a0b10;
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.28);
  transform: none;
}

.tab {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 6px 2px;
  color: #ffffff;
  font-size: 0.56rem;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: color 180ms ease;
}

.tab.active {
  color: var(--accent-2);
}

.tab::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-2);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tab.active::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.tab:active {
  transform: none;
}

.nav-icon {
  display: block;
  position: relative;
  width: 15px;
  height: 15px;
  overflow: visible;
  color: currentColor;
  transition: transform 200ms ease, filter 200ms ease;
}

.tab.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(255, 141, 0, 0.7));
  transform: none;
}

.home-icon::before,
.match-icon::before,
.rank-icon::before,
.wallet-icon::before,
.guild-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.home-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.match-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  border-top: 2px solid currentColor;
}

.guild-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
}

.rank-icon::before {
  inset: auto 3px 3px;
  height: 12px;
}

.rank-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 3px;
  height: 16px;
  border-left: 2px solid currentColor;
}

.wallet-icon::before {
  inset: 5px 2px 4px;
  border-radius: 5px;
}

.wallet-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.profile-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
  overflow-y: auto;
  width: min(430px, 100vw);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 12px 20px 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 119, 179, 0.2), transparent 26%),
    #161b25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-view.active-view {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-view > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms ease, transform 280ms ease;
}

.profile-view.active-view > * {
  opacity: 1;
  transform: translateY(0);
}

.profile-view.active-view > *:nth-child(2) {
  transition-delay: 40ms;
}

.profile-view.active-view > *:nth-child(3) {
  transition-delay: 80ms;
}

.profile-view.active-view > *:nth-child(4) {
  transition-delay: 120ms;
}

.profile-view.active-view > *:nth-child(5) {
  transition-delay: 160ms;
}

.profile-view.active-view > *:nth-child(6) {
  transition-delay: 200ms;
}

.profile-back {
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 3;
}

.profile-back.settings-back {
  margin: 0;
  color: #ffffff;
}

.profile-cover {
  position: relative;
  display: block;
  min-height: 168px;
  margin: 0 -20px 70px;
  overflow: visible;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(9, 16, 25, 0.72), rgba(9, 16, 25, 0.1), rgba(9, 16, 25, 0.72)),
    linear-gradient(100deg, #88ff00 0 16%, transparent 16% 84%, #88ff00 84%),
    radial-gradient(circle at 50% 42%, rgba(255, 141, 0, 0.75), transparent 18%),
    #121924;
}

.profile-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
}

.profile-cover.has-cover .profile-cover-image {
  opacity: 0.9;
}

.profile-cover.has-cover .profile-grid-bg {
  opacity: 0.18;
}

.profile-cover.has-cover {
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.28), rgba(6, 10, 18, 0.22));
}

.profile-grid-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(-8deg, transparent 0 12px, rgba(255, 255, 255, 0.05) 12px 13px),
    linear-gradient(90deg, transparent 0 18%, rgba(136, 255, 0, 0.24) 18% 42%, transparent 42% 58%, rgba(136, 255, 0, 0.24) 58% 82%, transparent 82%);
  opacity: 0.9;
}

.cover-upload {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: #d7e8ff;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(8, 10, 22, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.cover-upload input,
.avatar-upload input {
  display: none;
}

.avatar-upload {
  position: absolute;
  left: 50%;
  bottom: -54px;
  z-index: 2;
  display: block;
  margin: 0;
  transform: translateX(-50%);
  cursor: pointer;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 4px solid rgba(13, 18, 29, 0.95);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  background:
    linear-gradient(150deg, rgba(255, 141, 0, 0.75), rgba(0, 119, 179, 0.45)),
    #0c1020;
  box-shadow: 0 0 34px rgba(0, 188, 255, 0.18);
  overflow: hidden;
}

.profile-avatar.has-image {
  color: transparent;
  background-size: cover;
  background-position: center;
}

.profile-avatar::after {
  display: none;
}

.avatar-camera {
  position: absolute;
  right: -5px;
  bottom: 4px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b4254;
}

.avatar-camera::before {
  content: "";
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: #ffffff;
}

.avatar-camera::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b4254;
}

.profile-head {
  margin-bottom: 26px;
  text-align: center;
}

.profile-head h2 {
  margin-bottom: 6px;
  font-size: 1.85rem;
}

.profile-head p {
  color: #9fb1cb;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}

.profile-stats article,
.aggregate-row article {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 70px;
  border-radius: 9px;
  background: #0b0d22;
}

.profile-stats strong,
.aggregate-row strong {
  font-size: 1.25rem;
}

.profile-stats span,
.aggregate-row span,
.win-ring span,
.recent-card span {
  color: #7890b3;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orange {
  color: var(--accent-2);
}

.cyan {
  color: #02d4ff;
}

.green {
  color: #2ee66f;
}

.red {
  color: #ff5151;
}

.aggregate-card,
.recent-card {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.aggregate-card h3,
.recent-card h3 {
  text-transform: uppercase;
}

.win-ring {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 18px;
  padding: 22px;
  background: #080a20;
}

.win-ring > div {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #080a20 0 51%, transparent 52%),
    conic-gradient(var(--accent-2) 0deg, #31394a 0deg 360deg);
}

.win-ring strong {
  color: var(--accent-2);
  max-width: 76px;
  font-size: 1.05rem;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.win-ring span {
  max-width: 72px;
  line-height: 1.1;
  text-align: center;
}

.aggregate-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.aggregate-row article {
  background: #303746;
}

.recent-card .section-title {
  margin-bottom: 0;
}

.filter-icon {
  width: 18px;
  height: 14px;
  border-top: 2px solid #7890b3;
  border-bottom: 2px solid #7890b3;
}

.filter-icon::after {
  content: "";
  display: block;
  width: 10px;
  margin-top: 4px;
  border-top: 2px solid #7890b3;
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-list article {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  padding: 14px;
  background: #080a20;
}

.recent-list b {
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

body[data-active-view]:not([data-active-view="home"]) .video-stage {
  display: none;
}

body[data-active-view]:not([data-active-view="home"]):not([data-active-view="profile"]) .view.active-view {
  min-height: calc(100vh - 96px);
  padding-top: 86px;
}

body[data-active-view="matches"] .view.active-view {
  margin: 0 -14px;
  padding: 26px 18px 110px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 119, 179, 0.18), transparent 26%),
    linear-gradient(180deg, #151a24 0 92px, #1d2230 92px 100%);
}

body[data-active-view="mode-detail"] .view.active-view {
  margin: 0 -14px;
  padding: 24px 14px 112px;
  background:
    radial-gradient(circle at 50% 6%, rgba(0, 149, 255, 0.18), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(0, 72, 180, 0.14), transparent 30%),
    #03070f;
}

body[data-active-view="guild"] .view.active-view,
body[data-active-view="store"] .view.active-view,
body[data-active-view="settings"] .view.active-view {
  margin: 0 -14px;
  padding: 86px 18px 112px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 119, 179, 0.14), transparent 30%),
    #1b2130;
}

.section-title {
  margin-bottom: 12px;
}

.matches-hero {
  display: grid;
  place-items: center;
  margin: 0 -18px 32px;
  padding: 0 18px 20px;
  text-align: center;
}

.matches-hero h2 {
  font-size: 1.85rem;
  line-height: 1;
}

.matches-hero p {
  margin: 8px 0 0;
  color: var(--accent-2);
  font-size: 0.82rem;
}

.match-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 18px;
}

.match-mode-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 184px;
  padding: 10px 9px 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #282f43;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
  overflow: hidden;
}

.match-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 26deg,
      rgba(255, 255, 255, 0.16) 42deg,
      rgba(255, 255, 255, 0.48) 58deg,
      rgba(255, 255, 255, 0.9) 74deg,
      #ffffff 88deg,
      rgba(255, 255, 255, 0.9) 102deg,
      rgba(255, 255, 255, 0.48) 118deg,
      rgba(255, 255, 255, 0.16) 134deg,
      transparent 154deg 360deg
    );
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.62),
    0 0 22px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: mode-border-spin 8.5s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.match-mode-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  border-radius: 10px;
  background: #282f43;
  pointer-events: none;
}

.match-mode-card > * {
  position: relative;
  z-index: 1;
}

.match-mode-card:active {
  transform: translateY(1px) scale(0.99);
}

.mode-art {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 86px;
  overflow: hidden;
  padding: 8px 8px 12px;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(135deg, #53150c, #ff6815 52%, #111827);
}

.mode-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 13px),
    radial-gradient(circle at 25% 34%, rgba(255, 255, 255, 0.18), transparent 22%);
}

.mode-art strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 1.25rem;
  font-style: italic;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 141, 0, 0.6);
}

.mode-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-mini-logo {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: #111827;
  font-size: 0.54rem;
  font-weight: 950;
  background: var(--accent-2);
}

.mode-title {
  font-size: 1rem;
  font-weight: 800;
  color: #cbd5e1;
}

.match-mode-card b {
  color: var(--accent-2);
  font-size: 0.76rem;
}

.match-mode-card.fire .mode-art {
  min-height: 106px;
  margin: -1px -1px 0;
  border: 0;
  border-radius: 8px 8px 2px 2px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 56% 34%, #ffcf3f 0 10%, rgba(255, 108, 0, 0.58) 18%, transparent 36%),
    linear-gradient(108deg, transparent 0 29%, rgba(26, 15, 12, 0.76) 30% 37%, transparent 38%),
    linear-gradient(76deg, transparent 0 63%, rgba(26, 15, 12, 0.78) 64% 72%, transparent 73%),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 13px),
    linear-gradient(135deg, #22110b 0%, #a33508 45%, #ff7a00 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 9, 14, 0.62);
}

.match-mode-card:has(.mode-image) .mode-art {
  min-height: 106px;
  margin: -8px -7px 0;
  border: 0;
  border-radius: 10px 10px 2px 2px;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 14, 0.62);
}

.match-mode-card:has(.mode-image) .mode-mini-logo,
.match-mode-card:has(.mode-image) .mode-art strong {
  display: none;
}

.match-mode-card:has(.mode-image) .mode-image {
  animation: mode-image-zoom 5.8s ease-in-out infinite;
}

.match-mode-card:has(.alt-image) .mode-image {
  animation: mode-image-zoom 6s ease-in-out infinite, mode-image-fade-one 8s ease-in-out infinite;
}

.match-mode-card:has(.alt-image) .mode-image.alt-image {
  opacity: 0;
  animation: mode-image-zoom 6s ease-in-out infinite, mode-image-fade-two 8s ease-in-out infinite;
}

.match-mode-card.fire .mode-mini-logo {
  display: none;
}

.match-mode-card.fire .mode-art::before {
  background:
    radial-gradient(ellipse at 52% 52%, rgba(7, 9, 13, 0.96) 0 12%, transparent 12.5%),
    linear-gradient(90deg, rgba(255, 183, 38, 0.85), rgba(255, 183, 38, 0.1) 34%, rgba(255, 183, 38, 0.6) 68%, transparent);
  opacity: 0.9;
}

.match-mode-card.fire .mode-image + .mode-mini-logo + strong {
  display: none;
}

.match-mode-card.fire .mode-image {
  object-position: center;
  animation: mode-image-zoom 6s ease-in-out infinite, mode-image-fade-one 8s ease-in-out infinite;
}

.match-mode-card.fire .mode-art::after {
  display: none;
}

.match-mode-card.fire .mode-art strong {
  display: none;
}

.match-mode-card.fire .mode-title {
  font-size: 1.12rem;
  font-weight: 950;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.26);
  animation: mode-title-blink 2.2s ease-in-out infinite;
}

.match-mode-card.blue .mode-art {
  background: linear-gradient(135deg, #071933, #176dd8 50%, #270713);
}

.match-mode-card.green .mode-art {
  background: linear-gradient(135deg, #07180c, #3aff39 46%, #0c1118);
}

.match-mode-card.silver .mode-art {
  background: linear-gradient(135deg, #2a313d, #f2f6ff 42%, #151923);
}

.match-mode-card.ice .mode-art {
  background: linear-gradient(135deg, #061726, #24b8ff 44%, #142e5f);
}

.match-mode-card.pink .mode-art {
  background: linear-gradient(135deg, #2a0716, #ff275e 48%, #ffb000);
}

.match-mode-card.gold .mode-art {
  background: linear-gradient(135deg, #291c05, #ffb000 48%, #fff4a8);
}

@keyframes mode-title-blink {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0.9);
    transform: scale(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.28);
    transform: scale(1.035);
  }
}

@keyframes mode-border-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mode-image-zoom {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.mode-detail-view {
  color: #ffffff;
}

.mode-detail-back {
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 3;
}

.mode-detail-back::before {
  content: none;
}

.mode-detail-back::after {
  content: none;
}

.mode-detail-back.settings-back {
  margin: 0;
  color: #ffffff;
}

.mode-detail-header {
  margin: 6px 0 20px;
  text-align: center;
}

.mode-detail-header p {
  margin: 0 0 4px;
  color: #28a7ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mode-detail-header h2 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 149, 255, 0.46);
}

.mode-match-list {
  display: grid;
  gap: 18px;
}

.mode-match-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  padding: 15px 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 148, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 8, 22, 0.72), rgba(1, 4, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(0, 132, 255, 0.07) 0 1px, transparent 1px 22px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 210, 255, 0.14),
    0 0 24px rgba(0, 140, 255, 0.18);
}

.mode-match-card::before,
.mode-match-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mode-match-card::before {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 191, 255, 0.22), transparent 22%),
    radial-gradient(circle at 72% 36%, rgba(0, 94, 255, 0.16), transparent 26%),
    linear-gradient(115deg, transparent 0 48%, rgba(0, 153, 255, 0.08) 50%, transparent 52%);
}

.mode-match-card::after {
  inset: 8px;
  border: 1px solid rgba(0, 159, 255, 0.12);
  clip-path: polygon(0 8%, 8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%);
}

.mode-match-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mode-match-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #19caff;
  border-radius: 13px;
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
  box-shadow:
    0 0 12px rgba(0, 199, 255, 0.76),
    inset 0 0 16px rgba(255, 255, 255, 0.18);
}

.mode-match-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-match-titleblock {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mode-match-titleblock h3 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.9rem, 12vw, 3.7rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 18px rgba(0, 131, 255, 0.32);
}

.mode-match-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-match-schedule span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-match-schedule span::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid #009cff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 156, 255, 0.6);
}

.mode-match-schedule .schedule-time::before {
  border-radius: 50%;
}

.mode-prize-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.35fr 0.86fr;
  align-items: stretch;
  border: 1px solid rgba(0, 132, 255, 0.36);
  background: rgba(0, 9, 24, 0.68);
  clip-path: polygon(3% 0, 97% 0, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0 90%, 0 10%);
}

.mode-prize-panel article {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 10px 6px;
  text-transform: uppercase;
}

.mode-prize-panel article + article {
  border-left: 1px solid rgba(0, 132, 255, 0.26);
}

.mode-prize-panel span {
  color: #129dff;
  font-size: 0.82rem;
  font-weight: 950;
}

.mode-prize-panel strong {
  color: #f6fbff;
  font-size: clamp(2rem, 12vw, 3.7rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.9;
  text-shadow:
    0 0 12px rgba(0, 149, 255, 0.48),
    0 2px 0 rgba(0, 0, 0, 0.7);
}

.mode-prize-panel .total-prize {
  background:
    linear-gradient(180deg, rgba(0, 78, 156, 0.28), rgba(0, 19, 52, 0.62));
}

.mode-prize-panel .total-prize span {
  font-size: 1.08rem;
  letter-spacing: 0.05em;
}

.mode-prize-panel .total-prize strong {
  font-size: clamp(3.6rem, 21vw, 6.2rem);
}

.slot-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  color: #fff8d3;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.94), rgba(16, 14, 6, 0.94)),
    linear-gradient(90deg, transparent 0 30%, #ffd000 30% 83%, transparent 83%);
  border: 1px solid rgba(255, 213, 0, 0.85);
  clip-path: polygon(3% 0, 97% 0, 100% 22%, 100% 78%, 97% 100%, 3% 100%, 0 78%, 0 22%);
  box-shadow: 0 0 14px rgba(255, 213, 0, 0.2);
}

.slot-strip span,
.slot-strip b {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 950;
}

.slot-strip b {
  color: #ffffff;
  font-size: 1.05rem;
}

.mode-match-actions {
  display: grid;
  grid-template-columns: 1fr 82px 76px;
  gap: 8px;
  align-items: center;
}

.join-now,
.mini-action {
  min-height: 48px;
  border: 0;
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.join-now {
  font-size: clamp(1.55rem, 8.8vw, 2.7rem);
  font-style: italic;
  line-height: 1;
  background:
    linear-gradient(90deg, rgba(0, 63, 131, 0.92), rgba(0, 27, 67, 0.95));
  border: 2px solid #00a6ff;
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.62);
}

.mini-action {
  border-radius: 8px;
  font-size: 0.82rem;
}

.mini-action.prize {
  background: linear-gradient(180deg, #6c5200, #1d1600);
  border: 1px solid #ffd000;
  box-shadow: 0 0 10px rgba(255, 213, 0, 0.28);
}

.mini-action.rule {
  background: linear-gradient(180deg, #58239b, #1b0b32);
  border: 1px solid #b347ff;
  box-shadow: 0 0 10px rgba(179, 71, 255, 0.26);
}

.countdown-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 99, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(0, 36, 91, 0.6), rgba(0, 8, 28, 0.86));
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
}

.countdown-panel article {
  display: grid;
  place-items: center;
}

.countdown-panel strong {
  color: #ffffff;
  font-size: clamp(2.2rem, 12vw, 4rem);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 0 16px rgba(0, 149, 255, 0.34);
}

.countdown-panel span {
  margin-top: 6px;
  color: #159eff;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.countdown-panel i {
  color: #ffffff;
  font-size: 2rem;
  font-style: normal;
  font-weight: 950;
  opacity: 0.9;
}

/* Poster-style match card, rebuilt to match the supplied reference image. */
.mode-match-card {
  aspect-ratio: 1 / 1;
  max-width: 402px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(0, 102, 255, 0.18), transparent 24%),
    radial-gradient(circle at 52% 86%, rgba(0, 119, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #030812 0%, #02050c 100%);
  box-shadow:
    0 0 0 1px rgba(0, 144, 255, 0.24),
    0 0 28px rgba(0, 153, 255, 0.22);
}

.mode-match-card::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 4%, rgba(0, 132, 255, 0.26) 15%, transparent 38%, rgba(0, 132, 255, 0.22) 64%, transparent 92%),
    repeating-linear-gradient(90deg, rgba(0, 144, 255, 0.08) 0 1px, transparent 1px 31px),
    repeating-linear-gradient(0deg, rgba(0, 144, 255, 0.04) 0 1px, transparent 1px 29px);
}

.mode-match-card::after {
  inset: 7px;
  border: 1px solid rgba(0, 164, 255, 0.14);
  background: transparent;
  clip-path: polygon(0 6%, 6% 0, 94% 0, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0 94%);
}

.mode-match-top,
.mode-prize-panel,
.slot-strip,
.mode-match-actions,
.countdown-panel {
  position: absolute;
  z-index: 1;
}

.mode-match-top {
  left: 5.5%;
  right: 4.5%;
  top: 4.5%;
  display: block;
  height: 27%;
}

.mode-match-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 30%;
  height: 100%;
  aspect-ratio: auto;
  border: 2px solid #22d8ff;
  border-radius: 0;
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
  box-shadow:
    0 0 7px #24d8ff,
    0 0 16px rgba(0, 194, 255, 0.62),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.mode-match-titleblock {
  position: absolute;
  left: 34.5%;
  right: 0;
  top: 4%;
  display: block;
}

.mode-match-titleblock::before,
.mode-match-titleblock::after {
  content: "";
  position: absolute;
  left: -4%;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 119, 255, 0.05), rgba(0, 149, 255, 0.8), rgba(0, 119, 255, 0.05));
  box-shadow: 0 0 9px rgba(0, 149, 255, 0.7);
}

.mode-match-titleblock::before {
  top: 2%;
}

.mode-match-titleblock::after {
  top: 52%;
}

.mode-match-titleblock h3 {
  margin: 0 0 6%;
  max-width: 100%;
  color: #f8fbff;
  font-size: clamp(2.15rem, 10.8vw, 3rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-transform: none;
  white-space: nowrap;
  transform: none;
  transform-origin: left center;
  text-shadow:
    0 1px 0 #8fa8c6,
    0 2px 0 #63738b,
    0 3px 0 #27303d,
    0 0 12px rgba(255, 255, 255, 0.2);
}

.mode-match-schedule {
  display: flex;
  gap: 9%;
  margin-top: 6%;
  color: #ffffff;
  font-size: clamp(0.82rem, 4.2vw, 1rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.mode-match-schedule span {
  gap: 6px;
}

.mode-match-schedule span::before {
  width: 18px;
  height: 18px;
  border-color: #079cff;
  box-shadow: 0 0 8px rgba(0, 156, 255, 0.7);
}

.mode-prize-panel {
  left: 2.8%;
  right: 2.8%;
  top: 35.2%;
  display: grid;
  grid-template-columns: 0.83fr 1.55fr 0.83fr;
  height: 25.5%;
  border: 1px solid rgba(0, 119, 255, 0.56);
  background:
    linear-gradient(90deg, rgba(0, 10, 24, 0.95), rgba(0, 23, 58, 0.94), rgba(0, 10, 24, 0.95));
  clip-path: polygon(3% 0, 17% 0, 18% 4%, 37% 4%, 38% 0, 62% 0, 63% 4%, 82% 4%, 83% 0, 97% 0, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0 90%, 0 10%);
  box-shadow:
    inset 0 0 18px rgba(0, 132, 255, 0.22),
    0 0 16px rgba(0, 119, 255, 0.16);
}

.mode-prize-panel article {
  min-height: 0;
  padding: 5% 4%;
  background: transparent;
}

.mode-prize-panel article + article {
  border-left: 1px solid rgba(0, 132, 255, 0.26);
}

.mode-prize-panel span {
  align-self: start;
  color: #129dff;
  font-size: clamp(0.72rem, 3.4vw, 0.92rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-align: center;
}

.mode-prize-panel strong {
  align-self: end;
  color: #f7fbff;
  font-size: clamp(2rem, 10.5vw, 3.2rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.78;
  text-shadow:
    0 1px 0 #8fa8c6,
    0 2px 0 #4d5f78,
    0 0 13px rgba(0, 132, 255, 0.58);
}

.mode-prize-panel .total-prize {
  background:
    linear-gradient(180deg, rgba(0, 35, 82, 0.68), rgba(0, 10, 26, 0.88));
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.mode-prize-panel .total-prize span {
  color: #15a6ff;
  font-size: clamp(1rem, 4.8vw, 1.35rem);
}

.mode-prize-panel .total-prize strong {
  font-size: clamp(3.2rem, 18vw, 5rem);
  transform: scaleX(1.02);
}

.slot-strip {
  left: 3.8%;
  right: 3.8%;
  top: 64%;
  min-height: 0;
  height: 5.8%;
  padding: 0 5.5%;
  grid-template-columns: 1fr 19%;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.98) 0 31%, #ffc400 31% 81%, rgba(5, 5, 7, 0.98) 81% 100%);
  border-color: rgba(255, 213, 0, 0.9);
  box-shadow:
    0 0 8px rgba(255, 213, 0, 0.28),
    inset 0 0 8px rgba(255, 213, 0, 0.12);
}

.slot-strip span {
  color: #fff8da;
  font-size: clamp(0.7rem, 3.6vw, 0.96rem);
  letter-spacing: 0.02em;
}

.slot-strip b {
  color: #ffffff;
  font-size: clamp(1rem, 5vw, 1.45rem);
  text-align: right;
}

.mode-match-actions {
  left: 5.2%;
  right: 4.5%;
  top: 71.5%;
  display: grid;
  grid-template-columns: 1fr 17.5% 17.5%;
  gap: 4.5%;
}

.join-now,
.mini-action {
  min-height: 0;
  height: 38px;
  border-radius: 0;
}

.join-now {
  font-size: clamp(1.45rem, 7.2vw, 2.25rem);
  line-height: 0.82;
  text-shadow:
    0 1px 0 #8fa8c6,
    0 2px 0 #4d5f78;
  background: linear-gradient(90deg, rgba(0, 71, 150, 0.96), rgba(0, 18, 46, 0.96));
  border: 2px solid #00a6ff;
  box-shadow:
    0 0 10px rgba(0, 170, 255, 0.75),
    inset 0 0 14px rgba(0, 170, 255, 0.22);
}

.mini-action {
  font-size: clamp(0.68rem, 3.3vw, 0.9rem);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.countdown-panel {
  left: 0;
  right: 0;
  bottom: 2%;
  height: 12.8%;
  min-height: 0;
  padding: 0 19%;
  border: 1px solid rgba(0, 99, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(0, 39, 99, 0.78), rgba(0, 9, 31, 0.94));
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  box-shadow: inset 0 0 16px rgba(0, 132, 255, 0.18);
}

.countdown-panel strong {
  font-size: clamp(1.65rem, 8vw, 2.5rem);
  line-height: 0.8;
  text-shadow:
    0 1px 0 #8fa8c6,
    0 2px 0 #4d5f78;
}

.countdown-panel span {
  margin-top: 3px;
  color: #159eff;
  font-size: clamp(0.58rem, 2.6vw, 0.78rem);
}

.countdown-panel i {
  font-size: clamp(1.7rem, 8vw, 2.6rem);
}

/* Final tournament poster composition. Keep this block last for the match card. */
.mode-match-card {
  position: relative;
  display: block;
  width: min(100%, 402px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 145, 255, 0.28);
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 25%, rgba(0, 95, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(0, 127, 255, 0.18), transparent 20%),
    repeating-linear-gradient(90deg, rgba(0, 132, 255, 0.055) 0 1px, transparent 1px 29px),
    linear-gradient(180deg, #020711 0%, #02040a 100%);
  box-shadow: 0 0 26px rgba(0, 148, 255, 0.18), inset 0 0 30px rgba(0, 73, 160, 0.18);
  isolation: isolate;
}

.mode-match-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1px solid rgba(0, 160, 255, 0.15);
  background:
    linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.28), transparent 42%, rgba(0, 140, 255, 0.2), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px);
  clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%);
  pointer-events: none;
}

.mode-match-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 42, 115, 0.8), rgba(0, 10, 32, 0.96));
  border-top: 1px solid rgba(0, 119, 255, 0.48);
  pointer-events: none;
}

.mode-match-top {
  position: absolute;
  left: 5.5%;
  right: 5%;
  top: 4.8%;
  height: 28%;
  display: block;
  z-index: 1;
}

.mode-match-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 31%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #21d6ff;
  border-radius: 0;
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
  box-shadow: 0 0 9px #20ceff, 0 0 18px rgba(0, 194, 255, 0.58), inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.mode-match-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-match-titleblock {
  position: absolute;
  left: 37%;
  right: 0;
  top: 3.5%;
  bottom: 0;
  display: block;
}

.mode-match-titleblock::before,
.mode-match-titleblock::after {
  content: "";
  position: absolute;
  left: -5%;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 118, 255, 0.06), rgba(0, 157, 255, 0.75), rgba(0, 118, 255, 0.06));
  box-shadow: 0 0 8px rgba(0, 157, 255, 0.68);
}

.mode-match-titleblock::before {
  top: 8%;
}

.mode-match-titleblock::after {
  top: 56%;
}

.mode-match-titleblock h3 {
  margin: 0;
  padding-top: 7%;
  color: #f8fbff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.82rem, 8.3vw, 2.65rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  transform: none;
  transform-origin: left center;
  text-shadow:
    0 1px 0 #c9d5e6,
    0 2px 0 #7d8da2,
    0 3px 0 #2c3545,
    0 0 12px rgba(255, 255, 255, 0.18);
}

.mode-match-schedule {
  position: absolute;
  left: 2%;
  right: 0;
  top: 67%;
  display: grid;
  grid-template-columns: auto 1px auto;
  gap: 4%;
  align-items: center;
  color: #ffffff;
  font-size: clamp(0.62rem, 2.85vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mode-match-schedule::before {
  content: "";
  order: 2;
  width: 1px;
  height: 22px;
  background: #009cff;
  box-shadow: 0 0 8px rgba(0, 156, 255, 0.8);
}

.mode-match-schedule span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mode-match-schedule span::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #079cff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 156, 255, 0.68);
}

.mode-match-schedule .schedule-date {
  order: 1;
}

.mode-match-schedule .schedule-time {
  order: 3;
}

.mode-match-schedule .schedule-time::before {
  border-radius: 50%;
}

.mode-prize-panel {
  position: absolute;
  left: 2.7%;
  right: 2.7%;
  top: 35.2%;
  height: 25.8%;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.83fr 1.55fr 0.83fr;
  border: 1px solid rgba(0, 119, 255, 0.56);
  background: linear-gradient(90deg, rgba(0, 9, 24, 0.98), rgba(0, 22, 58, 0.96), rgba(0, 9, 24, 0.98));
  clip-path: polygon(3% 0, 17% 0, 18% 4%, 37% 4%, 38% 0, 62% 0, 63% 4%, 82% 4%, 83% 0, 97% 0, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0 90%, 0 10%);
  box-shadow: inset 0 0 20px rgba(0, 132, 255, 0.2), 0 0 16px rgba(0, 119, 255, 0.14);
}

.mode-prize-panel article {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 7% 4%;
  background: transparent;
  text-align: center;
  text-transform: uppercase;
}

.mode-prize-panel article + article {
  border-left: 1px solid rgba(0, 132, 255, 0.26);
}

.mode-prize-panel span {
  align-self: start;
  color: #129dff;
  font-size: clamp(0.68rem, 3.2vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.03em;
}

.mode-prize-panel strong {
  align-self: end;
  color: #f7fbff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.1rem, 10.4vw, 3.3rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.78;
  text-shadow: 0 1px 0 #c9d5e6, 0 2px 0 #6d7d93, 0 0 13px rgba(0, 132, 255, 0.6);
}

.mode-prize-panel .total-prize {
  background: linear-gradient(180deg, rgba(0, 37, 88, 0.76), rgba(0, 11, 28, 0.94));
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.mode-prize-panel .total-prize span {
  color: #15a6ff;
  font-size: clamp(0.92rem, 4.35vw, 1.28rem);
}

.mode-prize-panel .total-prize strong {
  font-size: clamp(3.45rem, 17.7vw, 5.7rem);
  transform: scaleX(1.06);
}

.slot-strip {
  position: absolute;
  left: 3.8%;
  right: 3.8%;
  top: 64.2%;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 5.8%;
  min-height: 0;
  padding: 0 5.5%;
  border: 1px solid rgba(255, 213, 0, 0.9);
  color: #fff8da;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.98) 0 30%, #ffc400 30% 82%, rgba(5, 5, 7, 0.98) 82% 100%);
  clip-path: polygon(3% 0, 97% 0, 100% 22%, 100% 78%, 97% 100%, 3% 100%, 0 78%, 0 22%);
  box-shadow: 0 0 9px rgba(255, 213, 0, 0.28), inset 0 0 8px rgba(255, 213, 0, 0.12);
  text-transform: uppercase;
}

.slot-strip span {
  font-size: clamp(0.66rem, 3.3vw, 0.92rem);
  font-weight: 950;
  letter-spacing: 0.02em;
}

.slot-strip b {
  color: #ffffff;
  font-size: clamp(0.98rem, 4.8vw, 1.42rem);
  font-weight: 950;
}

.mode-match-actions {
  position: absolute;
  left: 5.2%;
  right: 4.7%;
  top: 72.6%;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 17.5% 17.5%;
  gap: 4.5%;
  align-items: center;
}

.join-now,
.mini-action {
  height: 37px;
  min-height: 0;
  border-radius: 0;
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.join-now {
  border: 2px solid #00a6ff;
  background: linear-gradient(90deg, rgba(0, 71, 150, 0.96), rgba(0, 18, 46, 0.96));
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  font-size: clamp(1.45rem, 7vw, 2.28rem);
  font-style: italic;
  line-height: 0.84;
  box-shadow: 0 0 11px rgba(0, 170, 255, 0.72), inset 0 0 14px rgba(0, 170, 255, 0.22);
  text-shadow: 0 1px 0 #c9d5e6, 0 2px 0 #607088;
}

.mini-action {
  border: 1px solid currentColor;
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  font-size: clamp(0.64rem, 3.05vw, 0.86rem);
}

.mini-action.prize {
  color: #ffe06b;
  background: linear-gradient(180deg, #6c5200, #1d1600);
  box-shadow: 0 0 10px rgba(255, 213, 0, 0.3);
}

.mini-action.rule {
  color: #f1d8ff;
  background: linear-gradient(180deg, #58239b, #1b0b32);
  box-shadow: 0 0 10px rgba(179, 71, 255, 0.3);
}

.countdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  height: 12.4%;
  min-height: 0;
  padding: 0 19%;
  border: 1px solid rgba(0, 99, 255, 0.5);
  background: linear-gradient(180deg, rgba(0, 39, 99, 0.78), rgba(0, 9, 31, 0.94));
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  box-shadow: inset 0 0 16px rgba(0, 132, 255, 0.18);
}

.countdown-panel article {
  display: grid;
  place-items: center;
}

.countdown-panel strong {
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.6rem, 7.8vw, 2.48rem);
  font-weight: 950;
  line-height: 0.82;
  text-shadow: 0 1px 0 #c9d5e6, 0 2px 0 #607088, 0 0 12px rgba(0, 149, 255, 0.34);
}

.countdown-panel span {
  margin-top: 3px;
  color: #159eff;
  font-size: clamp(0.56rem, 2.55vw, 0.76rem);
  font-weight: 950;
  text-transform: uppercase;
}

.countdown-panel i {
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.55rem, 7.4vw, 2.35rem);
  font-style: normal;
  font-weight: 950;
  opacity: 0.95;
}

/* MobileGameTournamentCard conversion from the supplied React/Tailwind reference. */
.mode-match-card {
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 15%, #08224a 0%, #03101f 38%, #020711 100%);
  box-shadow: 0 0 35px rgba(0, 170, 255, 0.35);
}

.mode-match-card::before {
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, transparent 0%, transparent 48%, rgba(0, 174, 255, 0.25) 49%, transparent 50%, transparent 100%);
  opacity: 0.3;
  clip-path: none;
}

.mode-match-card::after {
  display: none;
}

.mode-match-top {
  left: 5%;
  right: 5%;
  top: 3.2%;
  height: 22%;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 4%;
  align-items: center;
}

.mode-match-image {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid #22d3ee;
  border-radius: 12px;
  clip-path: none;
  background: #1e293b;
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.9);
}

.mode-match-titleblock {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  min-width: 0;
}

.mode-match-titleblock::before {
  left: 0;
  right: 0;
  top: 56%;
  height: 1px;
  background: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 8px #00c8ff;
}

.mode-match-titleblock::after {
  display: none;
}

.mode-match-titleblock h3 {
  max-width: 100%;
  padding-top: 0;
  margin: 0 0 13%;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.72rem, 8.2vw, 2.95rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.02em;
  transform: none;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(120, 150, 180, 0.7), 0 0 12px rgba(255, 255, 255, 0.16);
}

.mode-match-schedule {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #ffffff;
  font-size: clamp(0.62rem, 2.55vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.mode-match-schedule::before {
  content: "|";
  order: 2;
  width: auto;
  height: auto;
  color: #67e8f9;
  background: transparent;
  box-shadow: none;
}

.mode-match-schedule span {
  gap: 5px;
}

.mode-match-schedule span::before {
  width: 16px;
  height: 16px;
  border-color: #22d3ee;
  box-shadow: none;
}

.mode-prize-panel {
  left: 4%;
  right: 4%;
  top: 34.5%;
  height: 22%;
  display: grid;
  grid-template-columns: 29% 40% 29%;
  gap: 1%;
  align-items: stretch;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.mode-prize-panel article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 5%;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background:
    linear-gradient(180deg, rgba(2, 20, 45, 0.72), rgba(0, 5, 14, 0.62));
  box-shadow:
    inset 0 0 18px rgba(0, 142, 255, 0.08),
    0 0 14px rgba(0, 140, 255, 0.18);
  border-radius: 3px;
  clip-path: none;
}

.mode-prize-panel article + article {
  border-left: 1px solid rgba(6, 182, 212, 0.35);
}

.mode-prize-panel .total-prize {
  position: relative;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background:
    linear-gradient(180deg, rgba(3, 33, 76, 0.72), rgba(0, 10, 28, 0.72));
  box-shadow: none;
  clip-path: none;
}

.mode-prize-panel .total-prize::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-top: 0;
  border-bottom: 0;
  box-shadow: 0 0 18px rgba(0, 150, 255, 0.25);
  clip-path: none;
}

.mode-prize-panel span,
.mode-prize-panel .total-prize span {
  display: block;
  width: 100%;
  color: #22d3ee;
  font-size: clamp(0.62rem, 2.4vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.mode-prize-panel .total-prize span {
  font-size: clamp(0.78rem, 3vw, 1.08rem);
  font-style: italic;
}

.mode-prize-panel strong {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.95rem, 8.4vw, 3.15rem);
  font-style: italic;
  line-height: 0.9;
  color: #f8fafc;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.mode-prize-panel .total-prize strong {
  font-size: clamp(2.95rem, 12.7vw, 4.7rem);
  line-height: 0.88;
  color: #f1f5f9;
  transform: none;
  text-shadow: 0 0 12px rgba(100, 190, 255, 0.8);
}

.slot-strip {
  left: 5%;
  right: 5%;
  top: 60%;
  height: 5.3%;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(253, 224, 71, 0.8);
  border-radius: 6px;
  background: #080b10;
  clip-path: none;
  box-shadow: 0 0 14px rgba(255, 190, 0, 0.45);
}

.slot-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 72%;
  background: linear-gradient(90deg, #856000, #ffd329, #ffb000);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.slot-strip span {
  position: absolute;
  left: 8%;
  color: #fef3c7;
  font-size: clamp(0.64rem, 2.9vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.03em;
}

.slot-strip b {
  position: absolute;
  right: 8%;
  color: #ffffff;
  font-size: clamp(1rem, 4.3vw, 1.3rem);
  font-weight: 950;
}

.mode-match-actions {
  left: 5%;
  right: 5%;
  top: 68%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 86px;
  gap: 12px;
  align-items: center;
}

.join-now {
  height: 64px;
  border: 2px solid #67e8f9;
  background: linear-gradient(180deg, #087bff, #003b95);
  border-radius: 7px;
  clip-path: polygon(3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%, 0 50%);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.85);
  font-size: clamp(1.35rem, 5.7vw, 2.1rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mini-action {
  height: 48px;
  border-radius: 8px;
  clip-path: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: clamp(0.68rem, 2.9vw, 0.88rem);
  letter-spacing: 0.04em;
}

.mini-action.prize {
  color: #ffffff;
  border-color: #fde047;
  background: linear-gradient(180deg, #7a5100, #201100);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.75);
}

.mini-action.rule {
  color: #ffffff;
  border-color: #d8b4fe;
  background: linear-gradient(180deg, #5c1ebd, #1c0b45);
  box-shadow: 0 0 14px rgba(160, 80, 255, 0.75);
}

.countdown-panel {
  left: 5%;
  right: 5%;
  bottom: 3.2%;
  height: 17%;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 18px 12%;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 5%, rgba(8, 53, 118, 0.96) 5% 95%, transparent 95% 100%),
    linear-gradient(180deg, #06275c, #031027);
  clip-path: none;
  box-shadow: 0 0 18px rgba(0, 155, 255, 0.45);
}

.countdown-panel strong {
  font-size: clamp(1.85rem, 8.3vw, 3.1rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
}

.countdown-panel span {
  margin-top: 8px;
  color: #22d3ee;
  font-size: clamp(0.62rem, 2.8vw, 0.86rem);
}

.countdown-panel i {
  padding-bottom: 9px;
  font-size: clamp(1.45rem, 6.2vw, 2.4rem);
}

@media (max-width: 390px) {
  .mode-match-actions {
    grid-template-columns: minmax(0, 1fr) 72px 72px;
    gap: 8px;
  }

  .join-now {
    height: 56px;
  }

  .mini-action {
    height: 44px;
  }

  .mode-match-titleblock h3 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem);
  }

  .mode-prize-panel .total-prize strong {
    font-size: clamp(3.2rem, 14vw, 4.7rem);
  }
}

/* BR Duo: compact card based on the second reference. */
.mode-match-card.match-card-compact {
  aspect-ratio: auto;
  min-height: 370px;
  border-color: rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: #08091b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.36);
}

.mode-match-card.match-card-compact::before,
.mode-match-card.match-card-compact::after {
  display: none;
}

.match-card-compact .mode-match-top {
  left: 20px;
  right: 20px;
  top: 24px;
  height: 76px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
}

.match-card-compact .mode-match-image {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
}

.match-card-compact .mode-match-titleblock {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.match-card-compact .mode-match-titleblock::before,
.match-card-compact .mode-match-titleblock::after {
  display: none;
}

.match-card-compact .mode-match-titleblock h3 {
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: left;
  text-shadow: none;
}

.match-card-compact .mode-match-schedule {
  position: static;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.match-card-compact .mode-match-schedule::before {
  display: none;
}

.match-card-compact .mode-match-schedule .schedule-date {
  order: 1;
}

.match-card-compact .mode-match-schedule .schedule-date::before {
  content: "▣";
  display: inline-block;
  margin-right: 4px;
  color: #20e7d1;
  font-size: 0.78rem;
}

.match-card-compact .mode-match-schedule .schedule-time {
  order: 3;
}

.match-card-compact .mode-match-schedule .schedule-time::before {
  content: "◷";
  display: inline-block;
  margin-right: 4px;
  color: #20e7d1;
  font-size: 0.86rem;
}

.match-card-compact .mode-match-schedule .schedule-date::after {
  content: "|";
  display: inline-block;
  margin-left: 8px;
  color: #8b93a7;
}

.match-card-compact .mode-prize-panel {
  left: 20px;
  right: 20px;
  top: 118px;
  height: 58px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.24);
}

.match-card-compact .mode-prize-panel article,
.match-card-compact .mode-prize-panel .total-prize {
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.match-card-compact .mode-prize-panel .total-prize::before {
  display: none;
}

.match-card-compact .mode-prize-panel span,
.match-card-compact .mode-prize-panel .total-prize span {
  color: #ffffff;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1;
}

.match-card-compact .mode-prize-panel strong,
.match-card-compact .mode-prize-panel .total-prize strong {
  margin: 3px 0 0;
  color: #21f5c9;
  font-family: inherit;
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1;
  text-shadow: none;
}

.match-card-compact .slot-strip {
  left: 20px;
  right: 20px;
  top: 188px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.match-card-compact .slot-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  width: auto;
  height: 25px;
  border-radius: 5px;
  background: #3c3a39;
  clip-path: none;
}

.match-card-compact .slot-strip span {
  position: static;
  color: #22f5dd;
  font-size: 0.86rem;
  text-align: left;
}

.match-card-compact .slot-strip b {
  position: static;
  color: #ffffff;
  font-size: 0.88rem;
  text-align: right;
}

.match-card-compact .mode-match-actions {
  left: 20px;
  right: 20px;
  top: 247px;
  display: grid;
  grid-template-columns: 1fr 86px 86px;
  gap: 8px;
  align-items: center;
}

.match-card-compact .join-now {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: #18bfea;
  clip-path: none;
  box-shadow: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-style: normal;
  text-shadow: none;
}

.match-card-compact .mini-action {
  display: inline-flex;
  width: 100%;
  height: 38px;
  border-radius: 5px;
  clip-path: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.match-card-compact .mini-action span {
  font-size: 0.9rem;
  line-height: 1;
}

.match-card-compact .mini-action.prize {
  border: 1px solid rgba(255, 210, 76, 0.88);
  background: linear-gradient(180deg, #7a5100, #201100);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.52);
}

.match-card-compact .mini-action.rule {
  border: 1px solid rgba(207, 171, 255, 0.88);
  background: linear-gradient(180deg, #5c1ebd, #1c0b45);
  box-shadow: 0 0 12px rgba(160, 80, 255, 0.52);
}

.match-card-compact .countdown-panel {
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 60px;
  padding: 8px 70px;
  border: 0;
  border-radius: 5px;
  background: #ca7200;
  box-shadow: none;
  clip-path: none;
}

.match-card-compact .countdown-panel strong {
  font-family: inherit;
  font-size: 1.36rem;
  line-height: 1;
  text-shadow: none;
}

.match-card-compact .countdown-panel span {
  margin-top: 2px;
  color: #ffffff;
  font-size: 0.68rem;
}

.match-card-compact .countdown-panel i {
  padding-bottom: 16px;
  font-family: inherit;
  font-size: 1.2rem;
  text-shadow: none;
}

/* BR Squad: custom premium option for comparison. */
.mode-match-card.match-card-squad {
  aspect-ratio: 9 / 16;
  border-color: rgba(255, 176, 0, 0.48);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 0, 0.22), transparent 26%),
    linear-gradient(180deg, #17070a 0%, #05070f 45%, #020711 100%);
  box-shadow: 0 0 30px rgba(255, 141, 0, 0.28);
}

.match-card-squad .mode-match-image {
  border-color: #ffb000;
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.72);
}

.match-card-squad .mode-match-titleblock h3 {
  color: #fff7df;
  text-shadow: 0 3px 0 rgba(122, 59, 0, 0.72), 0 0 16px rgba(255, 176, 0, 0.38);
}

.match-card-squad .mode-match-titleblock::before {
  background: rgba(255, 176, 0, 0.74);
  box-shadow: 0 0 9px #ffb000;
}

.match-card-squad .mode-match-schedule span::before {
  border-color: #ffb000;
}

.match-card-squad .mode-prize-panel article,
.match-card-squad .mode-prize-panel .total-prize {
  border-color: rgba(255, 176, 0, 0.42);
  background: linear-gradient(180deg, rgba(61, 26, 4, 0.78), rgba(7, 4, 8, 0.74));
}

.match-card-squad .mode-prize-panel span,
.match-card-squad .mode-prize-panel .total-prize span {
  color: #ffcf52;
}

.match-card-squad .mode-prize-panel strong,
.match-card-squad .mode-prize-panel .total-prize strong {
  color: #fff8e6;
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.55);
}

.match-card-squad .slot-strip {
  border-color: rgba(255, 176, 0, 0.85);
}

.match-card-squad .join-now {
  border-color: #ffcf52;
  background: linear-gradient(180deg, #ff8a00, #8e2b00);
  box-shadow: 0 0 18px rgba(255, 141, 0, 0.68);
}

.match-card-squad .countdown-panel {
  border-color: rgba(255, 176, 0, 0.58);
  background: linear-gradient(180deg, #542100, #160708);
  box-shadow: 0 0 18px rgba(255, 141, 0, 0.32);
}

/* Final compact match card refinements. */
.match-card-compact .mode-match-top {
  top: 22px;
}

.match-card-compact .mode-match-titleblock {
  align-content: start;
  padding-top: 2px;
}

.match-card-compact .mode-match-titleblock h3 {
  margin-bottom: 8px;
  font-size: clamp(1.03rem, 4.7vw, 1.34rem);
  line-height: 1.15;
  white-space: nowrap;
}

.match-card-compact .mode-match-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #ff8a00;
  font-size: clamp(0.82rem, 3.65vw, 1rem);
  font-weight: 950;
  line-height: 1.1;
}

.match-card-compact .mode-match-schedule .schedule-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-card-compact .mode-match-schedule .schedule-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-card-compact .mode-match-schedule .schedule-date::before,
.match-card-compact .mode-match-schedule .schedule-time::before {
  display: none;
}

.match-card-compact .mode-match-schedule .schedule-date::after {
  content: "|";
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.65);
}

.match-card-compact .slot-strip::before {
  background: linear-gradient(180deg, #183353, #0e2138);
  box-shadow:
    inset 0 0 0 1px rgba(34, 245, 221, 0.14),
    inset 0 0 14px rgba(0, 185, 255, 0.12);
}

.match-card-compact .mode-match-actions {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.match-card-compact .mini-action.rule {
  display: none;
}

.match-card-compact .countdown-panel {
  bottom: 16px;
}

@keyframes mode-image-fade-one {
  0%,
  42% {
    opacity: 1;
  }

  50%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes mode-image-fade-two {
  0%,
  42% {
    opacity: 0;
  }

  50%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.section-title button {
  min-height: 36px;
}

.tutorial-heading {
  display: grid;
  place-items: center;
  margin: 28px 0 22px;
  text-align: center;
}

.tutorial-heading h2 {
  font-size: 1.78rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 141, 0, 0.32), 0 0 28px rgba(0, 119, 179, 0.18);
  animation: tutorial-glow 2.8s ease-in-out infinite;
}

@keyframes tutorial-glow {
  0%,
  100% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 10px rgba(255, 141, 0, 0.26), 0 0 24px rgba(0, 119, 179, 0.16);
  }

  50% {
    color: #fff4df;
    opacity: 0.94;
    transform: translateY(-1px);
    text-shadow: 0 0 20px rgba(255, 141, 0, 0.72), 0 0 42px rgba(0, 119, 179, 0.34);
  }
}

.tournament-list,
.room-list,
.transactions {
  display: grid;
  gap: 12px;
}

.tournament-card,
.room-card,
.panel,
.balance-panel,
.table-card,
.guild-card {
  padding: 14px;
}

.tournament-card,
.room-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(8, 9, 14, 0.16), rgba(8, 9, 14, 0.86)),
    radial-gradient(circle at 85% 10%, rgba(255, 141, 0, 0.2), transparent 28%),
    var(--surface);
}

.status.open {
  color: #08090e;
  background: #ffffff;
}

.status.live {
  color: #ffffff;
  background: var(--accent-2);
}

.status.done {
  color: #061d34;
  background: #8bc9ff;
}

.match-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-meta article {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  background: rgba(47, 56, 76, 0.9);
}

.card-actions,
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.primary {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.primary:hover {
  filter: brightness(1.06);
}

.secondary {
  color: #08090e;
  border-color: transparent;
  background: #ffffff;
}

.table-card {
  overflow-x: auto;
  padding: 4px 10px;
}

.rank-pill {
  min-width: 28px;
  color: var(--ink);
  background: var(--surface-2);
}

.rank-pill.top {
  color: #08090e;
  background: #ffffff;
}

.wallet-grid {
  display: grid;
  gap: 12px;
}

#store.active-view {
  position: relative;
  padding-top: 68px;
}

.transactions-page {
  display: grid;
  gap: 24px;
  font-family: "Poppins", "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.join-confirm-view {
  position: relative;
  padding-top: 68px;
}

.join-confirm-header p {
  margin: 0 0 16px 42px;
  color: #c8d5ee;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.join-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(21, 27, 38, 0.7);
}

.join-card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 122px;
}

.join-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-live {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 4px;
  padding: 2px 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: #e31837;
}

.join-card h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
}

.join-card p {
  margin: 0;
  color: #74a4f2;
  font-weight: 700;
}

.join-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.join-meta-grid article {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 12px;
  background: #0d1220;
}

.join-meta-grid span {
  color: #91a8d0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.join-meta-grid strong {
  color: #22ece6;
  font-size: 1.6rem;
  line-height: 1;
}

.join-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border: 1px solid rgba(255, 153, 107, 0.45);
  border-radius: 10px;
  padding: 16px;
  background: rgba(22, 28, 40, 0.84);
}

.join-total-card span {
  color: #d6e0f5;
  font-weight: 800;
  text-transform: uppercase;
}

.join-total-card strong {
  color: #ffb096;
  font-size: 2rem;
  line-height: 1;
}

.join-player-info {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.join-player-info h4 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.join-player-info label {
  gap: 8px;
  color: #e4ebf8;
  text-transform: uppercase;
}

.join-player-info input {
  border-radius: 10px;
  min-height: 52px;
  background: #070b16;
}

.join-note {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(20, 26, 38, 0.65);
}

.join-note p {
  margin: 0;
  color: #f6c2a3;
  line-height: 1.45;
}

.join-footer {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.join-wallet-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #d7e0ef;
}

.join-wallet-line strong {
  font-size: 1.2rem;
}

.join-confirm-submit {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff4f24, #c86a00);
}

.transactions-header h2 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.funds-section,
.transactions-section {
  display: grid;
  gap: 12px;
}

.funds-section h3,
.transactions-section h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1;
  font-weight: 800;
}

.funds-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(21, 27, 38, 0.58);
}

.funds-row span {
  color: #9db1d6;
  font-size: 1rem;
  font-weight: 700;
}

.funds-card strong {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.funds-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.funds-actions button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.02rem;
}

.transactions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-like {
  min-height: 0;
  border: 0;
  padding: 0;
  color: #23ccff;
  font-size: 1rem;
  font-weight: 800;
  background: transparent;
}

.transactions-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 12px;
  text-align: center;
}

.transactions-empty h4 {
  margin: 0;
  color: #a8c1ee;
  font-size: 1.52rem;
  line-height: 1;
  font-weight: 800;
}

.transactions-empty p {
  margin: 0;
  color: #8ea3c7;
  font-size: 1rem;
  font-weight: 700;
}

.empty-wallet-icon {
  position: relative;
  width: 34px;
  height: 26px;
  border: 2px solid #7f99c8;
  border-radius: 6px;
}

.empty-wallet-icon::before {
  content: "";
  position: absolute;
  right: -1px;
  top: 6px;
  width: 10px;
  height: 8px;
  border: 2px solid #7f99c8;
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

#settings.active-view {
  position: relative;
  padding: 68px 0 0;
}

.settings-back {
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
}

.settings-back::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 19px;
  height: 22px;
  border: 0;
  background: currentColor;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.settings-back::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 11px;
  height: 14px;
  background: var(--bg);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: none;
}

.settings-title {
  margin: 0 0 28px;
  font-size: 1.95rem;
  line-height: 1;
}

.settings-groups {
  display: grid;
  gap: 27px;
}

.settings-group {
  display: grid;
  gap: 6px;
}

.settings-group h3 {
  margin: 0 0 4px;
  color: #7185ad;
  font-size: 0.8rem;
  font-weight: 900;
}

.settings-toggle-row,
.settings-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  color: #a7bcf1;
  background: transparent;
  text-align: left;
}

.settings-toggle-row {
  gap: 14px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(132, 159, 205, 0.28);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(21, 27, 38, 0.58);
}

body.light #settings.active-view {
  color: var(--ink);
}

body.light .settings-group h3,
body.light .settings-link,
body.light .setting-icon {
  color: #40516b;
}

body.light .settings-toggle-row {
  color: #111722;
  border-color: rgba(17, 23, 34, 0.14);
  background: #ffffff;
}

body.light .settings-back {
  color: #111722;
}

body.light .settings-back::after {
  background: var(--bg);
}

body.light .settings-link::after {
  border-color: #5d6b7b;
}

.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #526075;
  transition: background 180ms ease;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
}

body.light .toggle-switch {
  background: var(--accent-2);
}

body.light .toggle-switch::before {
  transform: translateX(18px);
}

.settings-link {
  position: relative;
  gap: 14px;
  padding: 0 24px 0 6px;
}

.settings-link::after {
  content: "";
  position: absolute;
  right: 5px;
  width: 8px;
  height: 8px;
  border-top: 1.8px solid #7d92bd;
  border-right: 1.8px solid #7d92bd;
  transform: rotate(45deg);
}

.setting-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #99b4ef;
}

.setting-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.setting-icon.account::before {
  border-radius: 50%;
  box-shadow: 0 9px 0 -4px currentColor;
}

.setting-icon.profile::before {
  transform: rotate(45deg);
}

.setting-icon.personal::before,
.setting-icon.settings::before {
  border-radius: 50%;
}

.setting-icon.subscriptions::before {
  border-radius: 50%;
  border-top-color: transparent;
}

.setting-icon.transactions::before {
  width: 16px;
  height: 10px;
  border-left: 0;
  border-right: 0;
}

.setting-icon.notifications::before {
  border-radius: 9px 9px 5px 5px;
}

.setting-icon.chat::before {
  border-radius: 50%;
  border-bottom-right-radius: 2px;
}

.setting-icon.streaming::before {
  width: 17px;
  height: 12px;
  border-radius: 4px;
}

.setting-icon.language::before {
  border-radius: 50%;
}

.setting-icon.password::before {
  width: 15px;
  height: 12px;
  border-radius: 4px;
  box-shadow: 0 -5px 0 -2px currentColor;
}

.setting-icon.connections::before {
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--bg);
}

.balance-panel {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(0, 119, 179, 0.18), transparent),
    var(--surface);
}

.wallet-card {
  display: none;
}

.transaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

.transaction p {
  margin-bottom: 0;
}

.guild-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(0, 119, 179, 0.18), transparent),
    var(--surface);
}

dialog {
  width: min(398px, calc(100vw - 26px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
}

dialog form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.image-editor {
  width: min(390px, calc(100vw - 24px));
}

.prize-dialog {
  width: min(392px, calc(100vw - 26px));
  border: 1px solid rgba(0, 163, 255, 0.42);
  border-radius: 10px;
  padding: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 163, 255, 0.2), transparent 38%),
    linear-gradient(180deg, #0a1020, #071226 62%, #08192f);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.56), 0 0 24px rgba(0, 140, 255, 0.22);
}

.prize-dialog::backdrop {
  background: rgba(3, 8, 16, 0.78);
}

.prize-dialog form {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.prize-popup-list {
  display: grid;
  gap: 10px;
}

.prize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(137, 170, 219, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.76), rgba(8, 18, 36, 0.78));
}

.prize-row .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prize-row .ico {
  width: 24px;
  text-align: center;
  font-size: 1.05rem;
}

.prize-row .label {
  color: #dbe6ff;
  font-size: 0.86rem;
  font-weight: 900;
}

.prize-row .amount {
  color: #7ff9cf;
  font-size: 1rem;
  font-weight: 950;
}

.crop-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.05) 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

#crop-canvas {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #080a20;
}

.crop-controls {
  display: grid;
  gap: 10px;
}

.crop-controls input {
  min-height: auto;
  padding: 0;
}

.toast {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 92px;
  z-index: 10;
  width: min(360px, calc(100vw - 28px));
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(12, 16, 22, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(160%);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 20;
  width: min(430px, 100%);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  z-index: 21;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  width: min(301px, 70vw);
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #151b26;
  border-right: 0;
  box-shadow: none;
  transform: translateX(calc(-100% - 2px));
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.side-drawer.open {
  transform: translateX(0);
}

.official-player-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 100%;
  padding: 15px 9px;
  overflow-y: auto;
  background: #0b101a;
}

.official-player {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #3847ff, #161b54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.official-player span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 950;
}

.official-player.active {
  box-shadow: inset 0 0 0 2px #ff9a00, 0 0 0 2px rgba(255, 154, 0, 0.12);
}

.official-player.red {
  background: linear-gradient(145deg, #ff4d5f, #350713);
}

.official-player.dark {
  background: linear-gradient(145deg, #ffffff, #0e1118 48%);
}

.official-player.gold {
  background: linear-gradient(145deg, #ffcf4c, #23200a);
}

.official-player.badge {
  margin-top: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1d79ff, #07111f 68%);
}

.official-player.teal {
  border-radius: 50%;
  background: linear-gradient(145deg, #15f4e7, #0d5b57 45%, #061316);
}

.official-player.neon {
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4ff0, #111827 50%, #25f2ff);
}

.official-player.add-player {
  color: #8fa2c7;
  background: #1c2637;
}

.official-player.add-player span {
  font-size: 1.35rem;
  line-height: 1;
}

.drawer-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  min-height: 100%;
  padding: 20px 18px 18px;
  background: #151b26;
}

.side-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-drawer header h2 {
  font-size: 1.35rem;
}

.side-drawer header p {
  margin: 3px 0 0;
  color: #8795ad;
  font-size: 0.75rem;
  font-weight: 800;
}

.side-drawer #close-menu {
  width: 38px;
  height: 38px;
  min-height: 38px;
  font-size: 1rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.02);
}

.drawer-links {
  display: grid;
  gap: 9px;
}

.drawer-links button {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: start;
  min-height: 42px;
  padding: 0 14px;
  color: #9fb7ff;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: left;
  background: transparent;
}

.drawer-links button.active {
  color: #ffffff;
  border-color: transparent;
  background: #3a465d;
}

.drawer-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #9bb5ff;
}

.drawer-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.drawer-icon.home::before {
  border-radius: 50% 50% 4px 4px;
}

.drawer-icon.matches::before {
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #151b26;
}

.drawer-icon.guild::before {
  transform: rotate(45deg);
}

.drawer-icon.leaderboard::before {
  border-radius: 2px;
  border-top-width: 5px;
}

.drawer-icon.store::before {
  border-radius: 4px 4px 7px 7px;
}

.drawer-icon.settings::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #151b26;
}

.drawer-spacer {
  min-height: 80px;
}

.drawer-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(0, 119, 179, 0.2), transparent),
    var(--surface);
}

.drawer-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.drawer-logout {
  justify-content: center;
  min-height: 44px;
  color: #ffffff;
  border-color: rgba(255, 77, 95, 0.35);
  border-radius: 6px;
  background: rgba(255, 77, 95, 0.16);
}

.mode-match-card .prize-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 8px;
  color: #8ecaff;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (min-width: 700px) {
  body {
    padding: 0;
  }

  .phone-shell {
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
  }

  .tabs {
    bottom: 0;
    border-radius: 0;
  }
}

@media (max-width: 370px) {
  .phone-shell {
    padding-inline: 10px;
  }

  .app-header,
  .hero,
  .top-players {
    margin-inline: -10px;
  }

  .app-header {
    padding-inline: 10px;
  }

  .hero h2 {
    font-size: 1.65rem;
  }

  .match-meta,
  .card-actions,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}
