:root {
  --bg: #080e16;
  --panel: #101e23;
  --muted: #adbfca;
  --text: #f0f8ff;
  --accent: #84f1af;
  --line: #295146;
}
.topbar { background: #09121c; }
.brand-icon { color: #082016; border-color: #a8ffbe; box-shadow: inset 0 -3px #216b4270, 0 0 20px #46e6902b; }
.nav-play, .label { color: #b9d9ce; }
.nav-discord:hover, .secondary:hover, .copy:hover { background: #1b3933; border-color: var(--accent); }
.hero { background: #090e1e; }
.hero-art { background: #0a0e21 url("portal.webp") 63% 50% / cover; }
.hero::before { background: linear-gradient(90deg, #080e16a8, transparent 66%), linear-gradient(0deg, var(--bg), transparent 36%); }
.hero::after { opacity: .15; }
.hero-inner { min-height: clamp(590px, 50vw, 770px); }
.hero-line { color: #eefcff; }
.hero-description { color: #c3d2e0; }
.eyebrow, .nav-casino:hover, .nav-vote:hover, nav a[aria-current="page"] { color: #b4ffca; }
.pixel { box-shadow: 0 0 13px #79ffc3; }
.primary, .primary:hover { color: #092018; border-color: #b8ffce; background: var(--accent); box-shadow: 0 4px #407859, 0 8px 29px #23d27044; }
.primary:hover { background: #b0ffc8; }
.secondary { background: #0e202bbd; border-color: #a3d7db69; color: var(--text); }
.server { border-radius: 4px; border-color: #356a55; background: linear-gradient(125deg, #152d2c, #101922 74%); }
.server .address { color: #b0ffcb; }
.copy { background: #213d34; border-color: #487b67; color: #d1ffe0; }
.steps li::before { background: #132a26; border-color: #31594b; }
.steps strong { color: #e4fbef; }
.realm-section { padding-top: 72px; }
.rank-section { margin-top: 68px; }
.section-intro { max-width: 62ch; }
.realm-grid { gap: 14px; }
.realm-card, .rank-card { background: #101b25; border-color: #29404e; border-radius: 5px; }
.realm-card { --scene: #5dcb9e; }
.realm-card:nth-child(2) { --scene: #f69b8c; }
.realm-card:nth-child(3) { --scene: #f7cd7e; }
.realm-copy h3 { color: var(--scene); }
.arena.sprite-scene {
  height: 178px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #29404e;
  background: radial-gradient(ellipse at 50% 67%, color-mix(in srgb, var(--scene) 24%, #0b1721), #0b1721 80%);
}
.sprite-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: none;
  background: repeating-linear-gradient(0deg, transparent 0 20px, #ffffff0c 20px 21px), repeating-linear-gradient(90deg, transparent 0 20px, #ffffff0c 20px 21px);
  mask-image: radial-gradient(ellipse, #000, transparent 76%);
}
.sprite {
  width: 144px;
  aspect-ratio: 1;
  background: url("zyrox-sprites.png") no-repeat 0 var(--row) / 600% 300%;
  image-rendering: pixelated;
  animation: sprite-frames 1.35s steps(6) infinite;
}
.sprite-survival { --row: 0%; }
.sprite-pvp { --row: 50%; animation-duration: 1s; }
.sprite-parkour { --row: 100%; animation-duration: 1.6s; }
@keyframes sprite-frames { to { background-position: 120% var(--row); } }
.ui-map {
  margin: 60px 0;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101b25;
}
.ui-map img { display: block; width: 100%; height: auto; }
.ui-map div { padding: clamp(22px, 4.4vw, 52px); }
.ui-map h2 { font-size: clamp(2.7rem, 5vw, 4.5rem); }
.ui-map p { color: var(--muted); margin: 16px 0; }
.community { background: #142722; border-color: var(--line); }
.community-art { background: linear-gradient(90deg, #102a26 11%, #102a26ec 50%, #102a2666), url("portal.webp") 84% 60% / cover; }
@media (max-width: 700px) {
  .hero-inner { min-height: 540px; }
  .hero-art { background-position: 77% center; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 3%, #080e16dc 36%, transparent 82%); }
  .ui-map { grid-template-columns: 1fr; }
  .realm-section { padding-top: 56px; }
}

@media (max-width: 760px) {
  .arena.sprite-scene { height: 142px; border-bottom: 0; }
  .sprite { width: min(100%, 120px); }
}

.daily-key {
  margin-top: clamp(34px, 6vw, 72px);
  padding: clamp(22px, 4vw, 44px) 20px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  border: 1px solid #8d7143;
  border-radius: 5px;
  background: radial-gradient(ellipse at 50% 15%, #513c24, #1d2228 52%, #101b25 90%);
}
.daily-key h2 { font-size: clamp(3rem, 6.5vw, 5.75rem); }
.daily-key p { max-width: 52ch; color: var(--muted); }
.daily-key-art {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid #f5c97965;
  background: #f5c97916;
  transform: rotate(45deg) scale(.8);
}
.daily-key-sprite {
  display: block;
  width: 80px;
  height: 40px;
  transform: rotate(-45deg);
  background: linear-gradient(#fff3af 0 25%, #f9ca70 25% 65%, #b16c38 65%);
  clip-path: polygon(evenodd, 0 25%, 8% 25%, 8% 10%, 17% 10%, 17% 0, 35% 0, 35% 10%, 44% 10%, 44% 33%, 100% 33%, 100% 65%, 91% 65%, 91% 86%, 80% 86%, 80% 65%, 71% 65%, 71% 86%, 59% 86%, 59% 65%, 44% 65%, 44% 88%, 35% 88%, 35% 100%, 17% 100%, 17% 88%, 8% 88%, 8% 76%, 0 76%, 0 25%, 15% 38%, 15% 62%, 32% 62%, 32% 38%, 15% 38%);
  animation: daily-key-float 1.8s ease-in-out infinite;
}
.daily-key :is(h2 span, .button) { --accent: #f8ca75; }
.daily-key .button { margin-top: 5px; border-color: #ffe2a4; box-shadow: 0 4px #996630; }
.daily-key .button:hover { background: #ffdfa2; }
@keyframes daily-key-float {
  50% { transform: rotate(-51deg) translateY(-6px); }
}
