:root {
  --bg: #06111f;
  --bg-soft: #0a1828;
  --panel: rgba(14, 31, 50, 0.78);
  --panel-solid: #0d1f33;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f8ff;
  --muted: #8fa6bd;
  --cyan: #19d8ff;
  --blue: #3376ff;
  --violet: #8f5cff;
  --pink: #ff4fc8;
  --green: #1df0a0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(51, 118, 255, 0.12), transparent 32%),
    radial-gradient(circle at 85% 30%, rgba(143, 92, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at center, rgba(51, 118, 255, 0.14), transparent 34%),
    #040b14;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: pulseLogo 1.8s ease-in-out infinite;
}

.loader-logo-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 0 35px rgba(25, 216, 255, 0.28);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.loader-logo strong,
.brand-copy strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.16em;
}

.loader-logo small,
.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.22em;
}

.loader-ring {
  display: flex;
  gap: 8px;
}

.loader-ring span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  animation: loaderBounce 1s ease-in-out infinite;
}

.loader-ring span:nth-child(2) { animation-delay: .14s; }
.loader-ring span:nth-child(3) { animation-delay: .28s; }

.loader-screen p {
  margin: 0;
  color: var(--muted);
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .17;
}

.ambient-one {
  width: 420px;
  height: 420px;
  left: -170px;
  top: 15%;
  background: var(--blue);
}

.ambient-two {
  width: 500px;
  height: 500px;
  right: -190px;
  top: 40%;
  background: var(--violet);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 17, 31, .68);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
  transition: .3s ease;
}

.topbar.scrolled {
  background: rgba(6, 17, 31, .93);
  border-color: rgba(25, 216, 255, .16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.brand-copy strong {
  font-size: 13px;
}

.brand-copy small {
  font-size: 9px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--muted);
  transition: .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

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

.icon-button,
.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.notification-dot {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4b65;
  box-shadow: 0 0 14px #ff4b65;
}

.menu-toggle {
  display: none;
  font-size: 21px;
}

.btn {
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 52%, var(--violet));
  box-shadow: 0 12px 30px rgba(51,118,255,.25);
}

.btn-primary:hover {
  box-shadow: 0 15px 40px rgba(51,118,255,.38);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.btn-glass {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}

.btn-large {
  min-height: 54px;
  padding: 15px 24px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.mobile-menu {
  position: fixed;
  top: 85px;
  left: 16px;
  right: 16px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6,17,31,.97);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: flex;
  animation: menuDrop .28s ease;
}

.mobile-menu a {
  padding: 12px;
  border-radius: 10px;
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-sm {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  padding-top: 155px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(25,216,255,.18);
  border-radius: 999px;
  background: rgba(25,216,255,.06);
  color: #b8f4ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: livePulse 1.3s ease-in-out infinite;
}

.hero h1 {
  margin: 24px 0 20px;
  max-width: 720px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--cyan), #6ca8ff 43%, var(--violet), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 42px;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  z-index: 4;
  width: min(440px, 90%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(16,37,60,.95), rgba(8,20,35,.9));
  box-shadow: 0 35px 90px rgba(0,0,0,.45), 0 0 50px rgba(51,118,255,.12);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  animation: floatCard 5s ease-in-out infinite;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-top > div:nth-child(2) {
  flex: 1;
  display: grid;
}

.hero-card-top span,
.hero-card-top small {
  color: var(--muted);
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  font-weight: 800;
}

.online-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(29,240,160,.1);
  color: var(--green) !important;
  font-size: 11px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 7px;
  margin: 22px 0;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 18%),
    linear-gradient(135deg, #1ccbe9, #326fff 54%, #824eff);
}

.wallet-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

.wallet-card span,
.wallet-card small {
  color: rgba(255,255,255,.8);
}

.wallet-card strong {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
}

.wallet-card button {
  width: fit-content;
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(5,15,28,.2);
  color: #fff;
}

.quick-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-game {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  text-align: center;
}

.quick-game.active {
  border-color: rgba(25,216,255,.25);
  background: rgba(25,216,255,.06);
}

.game-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.quick-game p {
  margin: 0;
  font-size: 12px;
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9,23,39,.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-card span:first-child {
  font-size: 25px;
}

.floating-card div {
  display: grid;
}

.floating-card small {
  color: var(--muted);
}

.floating-card-one {
  left: -8px;
  top: 105px;
  animation: floatSmall 4.5s ease-in-out infinite;
}

.floating-card-two {
  right: -12px;
  bottom: 100px;
  animation: floatSmall 5s .8s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(25,216,255,.13);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit-one {
  width: 520px;
  height: 520px;
}

.orbit-two {
  width: 380px;
  height: 380px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 14s;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.category-tabs button.active {
  border-color: rgba(25,216,255,.2);
  background: linear-gradient(135deg, rgba(25,216,255,.12), rgba(143,92,255,.1));
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading h2,
.rewards-copy h2,
.cta-card h2 {
  margin: 14px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
}

.text-button {
  border: 0;
  background: transparent;
  color: #b9d5ff;
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
  isolation: isolate;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(25,216,255,.23);
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
}

.game-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.game-card:hover img {
  transform: scale(1.06);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,11,20,.97), rgba(4,11,20,.05) 64%);
}

.game-content {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.game-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(25,216,255,.12);
  color: #c4f7ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-content h3 {
  margin: 0 0 7px;
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
}

.game-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.play-button {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: .3s ease;
}

.game-card:hover .play-button {
  opacity: 1;
  transform: translateY(0);
}

.game-hidden {
  display: none;
}

.game-hidden.visible {
  display: block;
}

.rewards-panel {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 70px;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 20%, rgba(143,92,255,.14), transparent 30%),
    linear-gradient(145deg, rgba(15,33,54,.9), rgba(7,19,33,.95));
  box-shadow: var(--shadow);
}

.rewards-copy p {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.reward-list {
  display: grid;
  gap: 13px;
  margin: 26px 0;
}

.reward-list div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c8d8e8;
}

.reward-list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(29,240,160,.1);
  color: var(--green);
}

.reward-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.reward-circle {
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(25,216,255,.15);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,118,255,.14), transparent 65%);
  box-shadow: inset 0 0 55px rgba(25,216,255,.08);
  animation: rotate 14s linear infinite;
}

.reward-medal {
  display: grid;
  place-items: center;
  width: 135px;
  height: 135px;
  border: 9px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: linear-gradient(145deg, #f8d96d, #fc9a2e 55%, #d85628);
  box-shadow: 0 0 55px rgba(255,178,62,.25);
  color: #3a1e00;
  font-family: "Orbitron", sans-serif;
  font-size: 64px;
  font-weight: 900;
  animation: rotate 14s linear infinite reverse;
}

.reward-card {
  position: absolute;
  left: 5%;
  bottom: 12px;
  width: min(280px, 92%);
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9,23,39,.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.reward-card span,
.reward-card small {
  color: var(--muted);
}

.reward-card strong {
  display: block;
  margin: 6px 0 12px;
  font-family: "Orbitron", sans-serif;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .9fr;
  gap: 18px;
}

.dashboard-card {
  min-height: 290px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16,35,57,.87), rgba(8,20,34,.92));
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
}

.balance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.17), transparent 22%),
    linear-gradient(135deg, #04aebf, #336dff 52%, #814bda);
}

.balance-card > span,
.balance-card p {
  color: rgba(255,255,255,.78);
}

.balance-card strong {
  margin: 10px 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 4vw, 43px);
}

.balance-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.balance-actions button,
.profile-card button {
  flex: 1;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  background: rgba(4,11,20,.2);
  color: #fff;
  font-weight: 700;
}

.card-heading,
.activity-row {
  display: flex;
  align-items: center;
}

.card-heading {
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-heading h3 {
  margin: 0;
}

.card-heading span {
  color: var(--muted);
  font-size: 13px;
}

.activity-row {
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row > div {
  flex: 1;
  display: grid;
}

.activity-row small {
  color: var(--muted);
}

.activity-row b {
  color: var(--green);
  font-size: 13px;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(51,118,255,.13);
  color: #9fc0ff;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.profile-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.profile-cover {
  height: 80px;
  margin: -25px -25px 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.2), transparent 30%),
    linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: -39px auto 12px;
  border: 6px solid #10243b;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  font-weight: 800;
}

.profile-card h3 {
  margin: 0;
}

.profile-card p {
  margin: 5px 0 20px;
  color: var(--muted);
}

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

.profile-stats div {
  display: grid;
  gap: 3px;
}

.profile-stats span {
  color: var(--muted);
  font-size: 12px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 45px;
  border: 1px solid rgba(25,216,255,.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(25,216,255,.12), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(143,92,255,.15), transparent 30%),
    rgba(12,29,48,.82);
}

.cta-card p {
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
}

footer p {
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,7,14,.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 5%, rgba(143,92,255,.12), transparent 24%),
    #0a1a2b;
  box-shadow: 0 35px 100px rgba(0,0,0,.55);
  animation: modalIn .34s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 25px;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}

.modal-brand > div {
  display: grid;
}

.modal-brand strong {
  font-size: 21px;
}

.modal-brand small {
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
}

form label {
  display: grid;
  gap: 8px;
  color: #cbd8e4;
  font-size: 14px;
  font-weight: 600;
}

form input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,.04);
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

form input:focus {
  border-color: rgba(25,216,255,.45);
  box-shadow: 0 0 0 4px rgba(25,216,255,.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ec5ff;
  font-size: 12px;
  font-weight: 700;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.terms {
  align-items: flex-start;
}

.form-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.form-switch button {
  border: 0;
  background: transparent;
  color: #9bc1ff;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  max-width: 350px;
  padding: 14px 17px;
  border: 1px solid rgba(29,240,160,.2);
  border-radius: 13px;
  background: rgba(8,26,37,.95);
  color: #d8fff0;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .3s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes pulseLogo {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.75); }
}

@keyframes floatCard {
  0%,100% { transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-12px); }
}

@keyframes floatSmall {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes rotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .desktop-nav,
  .header-actions .btn,
  .icon-button {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rewards-panel {
    grid-template-columns: 1fr;
  }

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

  .profile-card {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .section,
  .section-sm,
  footer {
    width: calc(100% - 24px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-card {
    width: 95%;
    transform: none;
    animation: floatSmall 5s ease-in-out infinite;
  }

  .floating-card {
    min-width: auto;
    padding: 10px;
  }

  .floating-card-one {
    left: 0;
    top: 60px;
  }

  .floating-card-two {
    right: 0;
    bottom: 40px;
  }

  .orbit-one {
    width: 390px;
    height: 390px;
  }

  .orbit-two {
    width: 280px;
    height: 280px;
  }

  .games-grid,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-column: auto;
  }

  .game-card {
    min-height: 335px;
  }

  .rewards-panel,
  .cta-card {
    padding: 28px;
  }

  .cta-card,
  footer {
    flex-direction: column;
    text-align: center;
  }

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

  .modal-panel {
    padding: 25px 20px;
  }
}

@media (max-width: 450px) {
  .brand-copy {
    display: none;
  }

  .hero-stats strong {
    font-size: 17px;
  }

  .hero-stats span {
    font-size: 11px;
  }

  .quick-game {
    padding: 12px 5px;
  }

  .wallet-card strong {
    font-size: 23px;
  }

  .floating-card div {
    display: none;
  }

  .floating-card {
    min-width: 48px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
