﻿:root {
  --bg: #090a0d;
  --bg-2: #111317;
  --panel: rgba(23, 26, 32, 0.86);
  --panel-solid: #171b22;
  --line: rgba(255, 210, 64, 0.2);
  --ink: #f6f7fb;
  --muted: #aeb5c2;
  --yellow: #ffd240;
  --yellow-2: #ffbe0a;
  --amber: #ff9f1a;
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-pill: 8px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.46);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at -10% -20%, rgba(255, 210, 64, 0.14), transparent 60%),
    radial-gradient(700px 400px at 110% 10%, rgba(255, 159, 26, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0 2px,
    transparent 2px 18px
  );
  opacity: 0.28;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mdss-container { width: min(1200px, 92vw); margin: 0 auto; }
.mdss-muted { color: var(--muted); }
.mdss-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe08a;
  background: rgba(255, 210, 64, 0.08);
}
h1, h2, h3, h4 { margin: 0 0 10px; font-family: "Sora", "Space Grotesk", sans-serif; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(1.4rem, 3vw, 2.6rem); }
.mdss-lead { font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.7; margin: 0; }
.mdss-section { padding: clamp(52px, 8vw, 90px) 0; }
.mdss-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }

.mdss-card {
  background: linear-gradient(180deg, rgba(33, 37, 45, 0.88), rgba(23, 27, 34, 0.9));
  border: 1px solid rgba(255, 210, 64, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.mdss-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(255, 210, 64, 0.16), transparent 70%);
  pointer-events: none;
}
.mdss-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.mdss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  min-height: 46px;
  padding: 10px 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.mdss-btn:hover { transform: translateY(-2px) scale(1.01); }
.mdss-btn-primary {
  color: #14171d;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  border-color: rgba(255, 210, 64, 0.8);
  box-shadow: 0 10px 28px rgba(255, 190, 10, 0.35);
}
.mdss-btn-ghost {
  color: #ffe39a;
  background: rgba(255, 210, 64, 0.08);
  border-color: rgba(255, 210, 64, 0.3);
}
.mdss-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 210, 64, 0.34);
  color: #ffdf89;
  padding: 7px 12px;
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255, 210, 64, 0.08);
}
.mdss-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

.mdss-site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 14px 0 10px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(9, 10, 13, 0.96), rgba(9, 10, 13, 0.56));
}
.mdss-header-capsule {
  width: min(1380px, 96vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 210, 64, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.94), rgba(14, 18, 24, 0.9));
  box-shadow: 0 14px 38px rgba(0,0,0,.38);
  min-height: 86px;
  padding: 10px 18px;
  position: relative;
}
.mdss-header-capsule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,210,64,.75), transparent);
}
.mdss-brand-block { display: inline-flex; align-items: center; gap: 12px; }
.mdss-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  border: 1px solid rgba(255, 210, 64, 0.52);
  object-fit: cover;
}
.mdss-brand-copy { display: grid; line-height: 1.03; }
.mdss-brand-copy strong { font-size: .98rem; color: #ffdf83; text-transform: uppercase; letter-spacing: .1em; }
.mdss-brand-copy small { color: #aab2c0; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }

.mdss-site-nav {
  margin: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}
.mdss-site-nav a {
  padding: 10px 14px 9px;
  border-radius: 4px;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #c6ced9;
  border-bottom: 2px solid transparent;
  transition: .2s ease;
}
.mdss-site-nav a:hover,
.mdss-site-nav a.mdss-active {
  color: #ffe39a;
  background: rgba(255,210,64,.08);
  border-bottom-color: rgba(255,210,64,.86);
}
.mdss-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 210, 64, 0.86);
  background: linear-gradient(135deg, var(--yellow), var(--amber));
  color: #12151b;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.mdss-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 1px solid rgba(255, 210, 64, 0.46);
  background: rgba(255, 210, 64, 0.08);
  color: #ffd76d;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.mdss-menu-toggle .mdss-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffd76d;
  transition: transform .24s ease, opacity .2s ease;
}
.mdss-menu-toggle.mdss-is-open .mdss-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mdss-menu-toggle.mdss-is-open .mdss-bar:nth-child(2) { opacity: 0; }
.mdss-menu-toggle.mdss-is-open .mdss-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mdss-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 210, 64, 0.34);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 700;
  color: #ffe08d;
  background: rgba(255, 210, 64, 0.06);
}

.mdss-hero {
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(410px, 74vh, 740px);
  border: 1px solid rgba(255, 210, 64, 0.32);
  box-shadow: var(--shadow-lg);
}
.mdss-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 11, 15, 0.92) 0%, rgba(10, 11, 15, 0.82) 44%, rgba(10, 11, 15, 0.52) 100%),
    var(--hero-image, url("../img/background.jpg")) right center / cover no-repeat;
  transform: translateY(calc(var(--parallax-offset, 0px) * .14));
}
.mdss-hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(420px 240px at 20% 24%, rgba(255, 210, 64, .2), transparent 72%),
    radial-gradient(460px 260px at 84% 74%, rgba(255, 159, 26, .18), transparent 72%),
    radial-gradient(4px 4px at 78% 22%, rgba(255, 210, 64, .5), transparent 70%),
    radial-gradient(3px 3px at 70% 66%, rgba(255, 210, 64, .45), transparent 70%);
  animation: driftParticles 20s linear infinite;
}
@keyframes driftParticles { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, -26px, 0); } }
.mdss-hero-grid {
  min-height: inherit;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 4vw, 46px) 0;
}
.mdss-hero-grid::after {
  content: "";
  min-height: clamp(280px, 48vh, 470px);
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 64, 0.42);
  background:
    linear-gradient(160deg, rgba(10, 12, 16, 0.2), rgba(10, 12, 16, 0.62)),
    var(--hero-image, url("../img/background.jpg")) center / cover no-repeat;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .46);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
}
.mdss-hero-card {
  width: 100%;
  max-width: 720px;
  text-align: left;
  color: #f5f7fb;
  background: rgba(10, 12, 16, 0.42);
  border: 1px solid rgba(255, 210, 64, 0.34);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  backdrop-filter: blur(4px);
}
.mdss-hero-card h1 {
  font-size: clamp(1.85rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
  max-width: 15ch;
  margin-bottom: 12px;
}
.mdss-hero-card .mdss-control-row { justify-content: flex-start; }
.mdss-hero-card .mdss-badge-row { justify-content: flex-start; }

.mdss-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mdss-game-card {
  display: grid;
  gap: 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 64, 0.2);
  background: linear-gradient(180deg, rgba(30, 34, 42, 0.95), rgba(20, 24, 32, 0.95));
  box-shadow: var(--shadow-md);
  padding: 18px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  position: relative;
  overflow: hidden;
}
.mdss-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .42);
  border-color: rgba(255, 210, 64, 0.45);
}
.mdss-game-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 64, 0.28);
}
.mdss-game-tag { text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: #ffd96f; }
.mdss-game-topline { display: flex; align-items: center; gap: 10px; }
.mdss-game-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 64, 0.32);
  background: rgba(255, 210, 64, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd76d;
}
.mdss-game-icon-wrap svg { width: 18px; height: 18px; }
.mdss-game-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mdss-game-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 210, 64, 0.28);
  background: rgba(255, 210, 64, 0.08);
  color: #ffe08d;
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
}
.mdss-game-hover-panel {
  border: 1px solid rgba(255, 210, 64, 0.22);
  border-radius: 8px;
  background: rgba(255, 210, 64, 0.06);
  padding: 9px 10px;
  color: #e8edf6;
  display: grid;
  gap: 4px;
  opacity: .66;
  transform: translateY(4px);
  transition: opacity .24s ease, transform .24s ease;
}
.mdss-game-card:hover .mdss-game-hover-panel,
.mdss-game-card:focus-within .mdss-game-hover-panel { opacity: 1; transform: translateY(0); }

.mdss-game-card.mdss-coming-soon {
  border-style: dashed;
  border-color: rgba(255, 210, 64, 0.45);
  background: linear-gradient(180deg, rgba(37, 36, 24, 0.9), rgba(27, 24, 18, 0.9));
}
.mdss-soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 210, 64, 0.56);
  background: rgba(255, 210, 64, 0.2);
  color: #ffecb3;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .08em;
  font-weight: 800;
}
.mdss-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 6px;
  background: #ffd240;
  box-shadow: 0 0 0 0 rgba(255, 210, 64, .45);
  animation: pulseDot 1.6s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 210, 64, .45); }
  100% { box-shadow: 0 0 0 12px rgba(255, 210, 64, 0); }
}

.mdss-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mdss-timeline-step {
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 64, 0.2);
  background: rgba(20, 24, 32, 0.9);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.mdss-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.mdss-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mdss-list li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 64, 0.2);
  border-radius: 8px;
  background: rgba(255, 210, 64, 0.06);
}
.mdss-list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mdss-list-check li {
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 64, 0.18);
  background: rgba(255, 210, 64, 0.06);
  padding: 10px 12px;
}
.mdss-faq-list { display: grid; gap: 12px; }
.mdss-faq-item {
  border: 1px solid rgba(255, 210, 64, 0.2);
  border-radius: 6px;
  background: rgba(22, 26, 33, 0.9);
  overflow: hidden;
}
.mdss-faq-item button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 14px 16px; font-weight: 700; cursor: pointer; }
.mdss-faq-item .mdss-answer { display: none; padding: 0 16px 14px; color: var(--muted); }
.mdss-faq-item.mdss-open .mdss-answer { display: block; }

.mdss-game-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.mdss-game-panel {
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 64, 0.2);
  background: rgba(20, 24, 32, 0.88);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.mdss-game-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mdss-game-sidebar { display: grid; gap: 14px; }
.mdss-inline-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mdss-stat {
  border: 1px solid rgba(255, 210, 64, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 210, 64, 0.07);
}
.mdss-stat strong { display: block; font-size: 1.1rem; color: #ffe18f; }
.mdss-stat span { font-size: .71rem; text-transform: uppercase; letter-spacing: .06em; color: #b8c0cc; }
.mdss-output, .mdss-contact-status, .mdss-clash-feedback {
  border: 1px solid rgba(255, 210, 64, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 210, 64, 0.07);
}
.mdss-clash-feedback.mdss-idle { color: #d7deea; }
.mdss-clash-feedback.mdss-good { color: #ffde81; }
.mdss-clash-feedback.mdss-perfect { color: #fff1bf; font-weight: 700; }
.mdss-clash-feedback.mdss-risk { color: #ffb067; }
.mdss-log { display: grid; gap: 8px; }
.mdss-log p {
  margin: 0;
  border-left: 3px solid rgba(255, 210, 64, 0.5);
  background: rgba(255, 210, 64, 0.07);
  border-radius: 6px;
  padding: 8px 10px;
  color: #d8dfea;
}
.mdss-control-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.mdss-clash-underbar-controls { display: flex; flex-wrap: wrap; gap: 10px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255, 210, 64, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7fc;
  font-family: inherit;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.mdss-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mdss-form-grid .mdss-full { grid-column: 1 / -1; }

.mdss-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 210, 64, 0.18);
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.92), rgba(8, 9, 13, 0.96));
  padding: 36px 0 22px;
}
.mdss-footer-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 16px; }
.mdss-footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mdss-footer-logo { width: 52px; height: 52px; border-radius: 6px; border: 1px solid rgba(255, 210, 64, 0.38); }
.mdss-footer-name { color: #ffdf87; }
.mdss-footer-flow { margin-top: 14px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.mdss-footer-rail, .mdss-footer-note {
  grid-column: span 3;
  border: 1px solid rgba(255, 210, 64, 0.18);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 210, 64, 0.05);
}
.mdss-footer-rail a { display: block; padding: 5px 0; color: #d9e0ea; font-weight: 600; }
.mdss-footer-bottom { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mdss-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 210, 64, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(255, 210, 64, 0.08);
  color: #ffe29a;
  padding: 7px 10px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
}

.mdss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, .82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
}
.mdss-overlay.mdss-show { display: flex; }
.mdss-overlay-card {
  width: min(560px, 92vw);
  border: 1px solid rgba(255, 210, 64, 0.34);
  border-radius: 6px;
  background: rgba(18, 22, 30, 0.96);
  padding: 24px;
  text-align: center;
}
.mdss-cookie-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, 92vw);
  border: 1px solid rgba(255, 210, 64, 0.32);
  border-radius: 6px;
  background: rgba(18, 22, 30, 0.94);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
  z-index: 130;
}
.mdss-cookie-box.mdss-show { display: block; animation: riseUp .32s ease; }

.mdss-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mdss-reel-window { height: 100px; overflow: hidden; border: 1px solid rgba(255, 210, 64, 0.24); border-radius: 8px; background: rgba(255, 210, 64, 0.07); }
.mdss-reel-track { display: grid; }
.mdss-reel-cell { height: 100px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #ffe28e; }
.mdss-wheel-wrap { display: grid; place-items: center; position: relative; }
.mdss-wheel { width: 260px; height: 260px; border-radius: 6px; border: 1px solid rgba(255, 210, 64, 0.42); box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform 3.8s cubic-bezier(.2,.8,.2,1); }
.mdss-wheel-pointer { position: absolute; top: -8px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 18px solid #ffd240; }
.mdss-wheel-label { position: absolute; font-size: .78rem; font-weight: 700; color: #ffe08f; }
.mdss-echo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mdss-echo-pad { min-height: 110px; border-radius: 8px; border: 1px solid rgba(255, 210, 64, 0.28); background: rgba(255, 210, 64, 0.08); color: #ffe08d; display: grid; place-items: center; font-weight: 800; }
.mdss-echo-pad.mdss-active { box-shadow: 0 0 0 2px rgba(255, 210, 64, 0.45) inset, 0 8px 20px rgba(255, 190, 10, .2); }
.mdss-fortune-stage, .mdss-fortune-play-grid, .mdss-clash-module-row { display: grid; gap: 10px; }
.mdss-fortune-stage { grid-template-columns: 1fr 1fr; align-items: center; }
.mdss-fortune-play-grid { grid-template-columns: 1fr 1fr; }
.mdss-fortune-play-grid label:last-child, .mdss-fortune-play-grid label:nth-child(3) { grid-column: 1 / -1; }
.mdss-fortune-wheel-wrap { position: relative; display: grid; place-items: center; padding: 12px; }
#fortune-wheel {
  width: min(100%, 410px);
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 64, 0.42);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 64, 0.16), rgba(255, 210, 64, 0.04) 40%, rgba(6, 8, 12, 0.9) 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,210,64,.12);
}
.mdss-fortune-pointer {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ffe58f, #ffba2b);
  border: 1px solid rgba(255, 210, 64, 0.86);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(9, 10, 13, .85), 0 6px 16px rgba(0,0,0,.4);
}
.mdss-fortune-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #11161d;
  transform: translate(-50%, -50%);
}
.mdss-fortune-hub {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .08em;
  color: #10141a;
  background: linear-gradient(135deg, #ffd75d, #ff9f1a);
  border: 1px solid rgba(255, 210, 64, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.18);
}
.mdss-fortune-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mdss-fortune-chip-row button { border: 1px solid rgba(255, 210, 64, 0.42); border-radius: 8px; background: rgba(255, 210, 64, 0.08); color: #ffe08d; padding: 8px 10px; cursor: pointer; }
.mdss-clash-module-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.mdss-clash-module {
  border: 1px solid rgba(255, 210, 64, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 210, 64, 0.12), rgba(255, 210, 64, 0.04));
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 64, 0.08);
}
.mdss-clash-module.mdss-active {
  border-color: rgba(255, 210, 64, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 210, 64, 0.22), 0 10px 22px rgba(255, 190, 10, 0.18);
}
.mdss-clash-module-icon, .mdss-ctrl-ico, .mdss-ember-glyph { width: 18px; height: 18px; display: inline-flex; }
.mdss-clash-module-icon svg, .mdss-ctrl-ico svg, .mdss-ember-glyph svg { width: 100%; height: 100%; }
.mdss-clash-progress { height: 8px; border-radius: 8px; border: 1px solid rgba(255, 210, 64, 0.28); background: rgba(255, 210, 64, 0.08); overflow: hidden; margin: 10px 0; }
.mdss-clash-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffcd2e, #ff9f1a); }
.mdss-clash-round-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.mdss-clash-round-dots i { width: 10px; height: 10px; border-radius: 6px; border: 1px solid rgba(255, 210, 64, 0.4); background: rgba(255, 210, 64, 0.08); }
.mdss-clash-round-dots i.mdss-active { background: #ffd240; }
.mdss-clash-round-dots i.mdss-done { background: #ffb938; }
.mdss-heat-panel { display: grid; gap: 10px; }
.mdss-heat-bar {
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 64, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 210, 64, 0.08), rgba(255, 159, 26, 0.14), rgba(255, 210, 64, 0.08));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 64, 0.12);
}
.mdss-heat-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,0.03) 28px 29px);
  pointer-events: none;
}
.mdss-heat-target {
  position: absolute;
  top: 7px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 210, 64, .28), rgba(255, 210, 64, .14));
  border: 1px solid rgba(255, 210, 64, .44);
}
.mdss-heat-perfect-zone {
  position: absolute;
  top: 8px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 239, 188, .55), rgba(255, 191, 54, .62));
}
.mdss-heat-marker {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe7a4, #ffbe2a);
  box-shadow: 0 0 14px rgba(255, 200, 60, 0.46);
}
.mdss-heat-bar.mdss-hit-good { box-shadow: inset 0 0 0 1px rgba(255, 225, 120, 0.26), 0 0 20px rgba(255, 210, 64, 0.2); }
.mdss-heat-bar.mdss-hit-perfect { box-shadow: inset 0 0 0 1px rgba(255, 225, 120, 0.4), 0 0 26px rgba(255, 210, 64, 0.35); }
.mdss-heat-bar.mdss-hit-risk { box-shadow: inset 0 0 0 1px rgba(255, 170, 100, 0.25), 0 0 20px rgba(255, 120, 60, 0.25); }
#ember-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mdss-ember-tile {
  min-height: 88px;
  border: 1px solid rgba(255, 210, 64, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--tile-hue, 72), 95%, 68%, 0.16), transparent 55%),
    rgba(255, 210, 64, 0.07);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.mdss-ember-tile:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,.28); }
.mdss-ember-tile .mdss-ember-glyph { transform: scale(.95); transition: transform .22s ease, filter .22s ease; }
.mdss-ember-tile.mdss-active .mdss-ember-glyph,
.mdss-ember-tile.mdss-matched .mdss-ember-glyph { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 220, 120, 0.34)); }
.mdss-ember-tile.mdss-active {
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--tile-hue, 72), 98%, 78%, 0.25), transparent 60%),
    linear-gradient(160deg, hsla(var(--tile-hue, 72), 95%, 62%, 0.2), hsla(var(--tile-hue, 72), 95%, 62%, 0.1));
}
.mdss-ember-tile.mdss-matched {
  background:
    radial-gradient(circle at 30% 20%, rgba(180, 255, 178, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(120, 220, 140, 0.16), rgba(60, 170, 110, 0.16));
  border-color: rgba(120, 220, 140, 0.45);
}
.mdss-ember-tile.mdss-shake { animation: tileShake .28s ease; }
@keyframes tileShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.mdss-about-teaser-strip {
  width: 100%;
  margin: 8px 0 2px;
  padding: 16px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 210, 64, 0.16), rgba(255, 159, 26, 0.14), rgba(255, 210, 64, 0.16));
  border-top: 1px solid rgba(255, 210, 64, 0.28);
  border-bottom: 1px solid rgba(255, 210, 64, 0.28);
}
.mdss-about-teaser-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mdss-about-teaser-text { margin: 0; color: #f0f4fb; font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.58; font-weight: 600; max-width: 900px; }
.mdss-about-teaser-strip .mdss-btn { min-height: 42px; white-space: nowrap; }

.mdss-reveal { opacity: 0; transition: opacity .56s ease, transform .72s cubic-bezier(.22,.7,.2,1); will-change: transform, opacity; }
.mdss-reveal-left { transform: translateX(-44px); }
.mdss-reveal-right { transform: translateX(44px); }
.mdss-reveal.mdss-is-visible { opacity: 1; transform: translateX(0); }
.mdss-float { animation: softFloat 4.8s ease-in-out infinite; }
@keyframes softFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@keyframes riseUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .mdss-header-capsule { width: min(98vw, 98vw); grid-template-columns: auto auto; border-radius: 4px; gap: 12px; padding: 10px 12px; }
  .mdss-menu-toggle { display: inline-flex; justify-self: end; }
  .mdss-header-cta { display: none; }
  .mdss-site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    border-radius: 6px;
    padding: 10px;
    background: rgba(16, 20, 28, 0.96);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .22s ease;
  }
  .mdss-site-nav.mdss-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mdss-site-nav a { text-align: center; }
  .mdss-hero { min-height: 60svh; border-radius: 6px; }
  .mdss-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .mdss-hero-grid::after { min-height: 240px; transform: none; }
  .mdss-hero-card { text-align: left; }
  .mdss-game-grid, .mdss-split, .mdss-timeline, .mdss-card-grid, .mdss-footer-hero, .mdss-game-layout, .mdss-fortune-stage, .mdss-clash-module-row, #ember-grid, .mdss-footer-flow { grid-template-columns: 1fr; }
  .mdss-footer-rail, .mdss-footer-note { grid-column: span 12; }
  .mdss-inline-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdss-form-grid { grid-template-columns: 1fr; }
  .mdss-wallet-pill { display: none; }
  .mdss-about-teaser-inner { flex-direction: column; align-items: flex-start; }
  .mdss-about-teaser-strip .mdss-btn { width: 100%; }
}

@media (max-width: 640px) {
  .mdss-hero { min-height: 50svh; border-radius: 8px; }
  .mdss-hero-grid::after { min-height: 180px; }
  .mdss-hero-card h1 { font-size: clamp(1.28rem, 7vw, 1.72rem); max-width: 20ch; }
  .mdss-hero-card p { font-size: .93rem; }
  .mdss-hero-card .mdss-btn { width: 100%; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }







/* Secondary pages redesign (all pages except index) */
.mdss-secondary-shell {
  background:
    radial-gradient(900px 460px at -20% -10%, rgba(255, 210, 64, 0.08), transparent 64%),
    radial-gradient(700px 360px at 120% 6%, rgba(255, 159, 26, 0.1), transparent 62%),
    linear-gradient(180deg, #08090c, #0f1218);
}
.mdss-secondary-shell::before {
  background:
    linear-gradient(0deg, transparent 23px, rgba(255,255,255,.03) 24px),
    linear-gradient(90deg, transparent 23px, rgba(255,255,255,.03) 24px);
  background-size: 24px 24px;
  opacity: .2;
}
.mdss-secondary-shell .mdss-site-header {
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.98), rgba(8, 9, 12, 0.72));
}
.mdss-secondary-shell .mdss-header-capsule {
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.95), rgba(12, 15, 22, 0.92));
  border-color: rgba(255, 210, 64, 0.22);
}
.mdss-secondary-shell .mdss-hero {
  min-height: clamp(300px, 52vh, 520px);
  border-color: rgba(255, 210, 64, 0.22);
  background: linear-gradient(180deg, rgba(11, 14, 20, .92), rgba(11, 14, 20, .86));
}
.mdss-secondary-shell .mdss-hero::before {
  background:
    linear-gradient(110deg, rgba(10,11,15,.94) 0%, rgba(10,11,15,.82) 58%, rgba(10,11,15,.68) 100%),
    var(--hero-image, url("../img/background.jpg")) center center / cover no-repeat;
  transform: translateY(calc(var(--parallax-offset, 0px) * .1));
}
.mdss-secondary-shell .mdss-hero::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 210, 64, .1) 0, transparent 26%),
    linear-gradient(270deg, rgba(255, 159, 26, .08) 0, transparent 26%);
  animation: none;
}
.mdss-secondary-shell .mdss-hero-grid {
  grid-template-columns: 1fr;
  align-items: end;
  padding: clamp(22px, 4.2vw, 52px) 0;
}
.mdss-secondary-shell .mdss-hero-grid::after {
  display: none;
}
.mdss-secondary-shell .mdss-hero-card {
  max-width: 920px;
  background: linear-gradient(180deg, rgba(16,20,28,.66), rgba(10,13,19,.5));
  border-color: rgba(255, 210, 64, 0.24);
  border-left: 4px solid rgba(255, 210, 64, 0.66);
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
}
.mdss-secondary-shell .mdss-hero-card h1 {
  font-size: clamp(1.7rem, 3.7vw, 2.8rem);
  max-width: 24ch;
}
.mdss-secondary-shell .mdss-section {
  position: relative;
}
.mdss-secondary-shell .mdss-section:nth-child(even) {
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,0));
}
.mdss-secondary-shell .mdss-card,
.mdss-secondary-shell .mdss-game-panel,
.mdss-secondary-shell .mdss-footer-rail,
.mdss-secondary-shell .mdss-footer-note,
.mdss-secondary-shell .mdss-timeline-step,
.mdss-secondary-shell .mdss-faq-item,
.mdss-secondary-shell .mdss-game-card {
  background: linear-gradient(180deg, rgba(26, 31, 40, 0.94), rgba(16, 20, 28, 0.94));
  border-color: rgba(255, 210, 64, 0.18);
}
.mdss-secondary-shell .mdss-card,
.mdss-secondary-shell .mdss-game-panel,
.mdss-secondary-shell .mdss-timeline-step,
.mdss-secondary-shell .mdss-faq-item {
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.mdss-secondary-shell .mdss-game-card:hover {
  transform: translateY(-4px) scale(1.01);
}
.mdss-secondary-shell .mdss-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,210,64,.1), transparent 35%);
  opacity: .45;
}
.mdss-secondary-shell .mdss-section-head {
  border-bottom: 1px solid rgba(255, 210, 64, 0.12);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.mdss-secondary-shell .mdss-footer {
  background: linear-gradient(180deg, rgba(10,12,18,.96), rgba(7,9,13,.98));
  border-top-color: rgba(255, 210, 64, 0.2);
}
.mdss-secondary-shell .mdss-overlay-card,
.mdss-secondary-shell .mdss-cookie-box {
  background: linear-gradient(180deg, rgba(18, 22, 30, 0.98), rgba(12, 16, 24, 0.98));
}
@media (max-width: 980px) {
  .mdss-secondary-shell .mdss-hero {
    min-height: 44svh;
  }
  .mdss-secondary-shell .mdss-hero-card {
    border-left-width: 3px;
  }
}




