:root {
  --bg: #050608;
  --bg-deep: #020304;
  --panel: rgba(12, 14, 18, 0.8);
  --panel-2: rgba(20, 24, 30, 0.75);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.72);
  --line: rgba(244, 247, 251, 0.16);
  --accent: #c9d4e6;
  --accent-2: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1300px 700px at 14% -6%, rgba(203, 213, 231, 0.12), transparent 62%),
    radial-gradient(1000px 600px at 88% 2%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 10% 24%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(2px 2px at 22% 72%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(2px 2px at 36% 42%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(1px 1px at 48% 16%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(2px 2px at 64% 58%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(1px 1px at 75% 30%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(2px 2px at 86% 78%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(1px 1px at 94% 20%, rgba(255, 255, 255, 0.45), transparent 70%);
  opacity: 0.55;
  animation: driftStars 36s linear infinite;
  z-index: -4;
}
body::after {
  content: "";
  position: fixed;
  inset: -12vh 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 3, 4, 0.88), rgba(2, 3, 4, 0.5)),
    url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  filter: grayscale(1) contrast(1.12);
  opacity: 0.42;
  z-index: -5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; color: var(--accent);
}
h1,h2,h3,h4 {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: 0.04em; margin: 0 0 10px; text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1; }
.lead { font-size: 1.05rem; line-height: 1.7; margin: 0; color: rgba(244, 247, 251, 0.9); }
.section { padding: 68px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent-2); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none; background: transparent; color: var(--text);
}
.btn-primary {
  background: linear-gradient(130deg, #ffffff 0%, #d9e0ef 100%);
  color: #06080b; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.26); background: rgba(8, 10, 14, 0.7); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.55); }
.card {
  background: linear-gradient(160deg, rgba(12, 16, 21, 0.92), rgba(6, 8, 11, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem; text-align: center;
}
.topbar strong { color: var(--accent-2); }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(4, 5, 8, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
}
.header-bar {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  padding: 12px 0; position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
  
}
.header-actions { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.site-nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 11, 0.65); margin-left: 14px;
}
.site-nav a {
  padding: 10px 14px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; color: rgba(244, 247, 251, 0.82); transition: 0.2s ease;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em;
}
.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(10, 12, 16, 0.86);
  color: var(--accent-2); font-size: 1.1rem; align-items: center; justify-content: center;
  gap: 4px; padding: 0; flex-direction: column;
}
.menu-toggle .bar {
  width: 18px; height: 2px; background: var(--accent-2); border-radius: 999px;
  display: block; transition: transform 0.25s ease, opacity 0.2s ease;
}
body.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); color: var(--accent-2);
  background: rgba(10, 12, 16, 0.75); font-weight: 700; white-space: nowrap;
}
.hero { padding: 92px 0 58px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 360px at 50% 10%, rgba(255, 255, 255, 0.12), transparent 66%),
    linear-gradient(180deg, rgba(3, 4, 6, 0.4), rgba(3, 4, 6, 0.72));
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  position: relative; z-index: 1;
}
.hero-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(150deg, rgba(18, 24, 31, 0.78), rgba(7, 9, 12, 0.84));
  border-radius: var(--radius-xl); padding: 30px; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}
.hero-media { display: none; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact {
  padding: 18px; border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 13, 18, 0.7);
}
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card {
  display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(14, 18, 23, 0.8), rgba(6, 8, 10, 0.92));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 70px rgba(255, 255, 255, 0.12);
}
.game-card img {
  border-radius: var(--radius-md);
  height: 190px;
  width: 100%;
  object-fit: cover;
}
.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, rgba(14, 19, 24, 0.82), rgba(5, 7, 10, 0.9));
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.timeline-step {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 16, 0.7);
  position: relative;
}
.timeline-step::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.list li {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 11, 15, 0.7);
}
.output,
.contact-status {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 11, 15, 0.8);
  color: rgba(244, 247, 251, 0.94);
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.74);
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.faq-item .answer {
  padding: 0 18px 16px;
  color: var(--muted);
  display: none;
}
.faq-item.open .answer { display: block; }
.game-surface {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(15, 20, 26, 0.78), rgba(5, 7, 9, 0.95));
}
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
select,
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 14, 0.78);
  color: var(--text);
  font-family: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.footer {
  margin-top: 44px;
  padding: 42px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 3, 5, 0.88);
}
.footer-aurora { position: relative; overflow: hidden; }
.footer-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 240px at 10% 4%, rgba(255, 255, 255, 0.12), transparent 62%),
    radial-gradient(540px 250px at 90% 8%, rgba(170, 184, 206, 0.16), transparent 62%);
  opacity: 0.8;
  pointer-events: none;
}
.footer-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0 24px;
  z-index: 1;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.16);
  filter: grayscale(1);
}
.footer-name {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.2rem;
}
.footer-tagline { margin: 0; max-width: 60ch; line-height: 1.6; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  z-index: 1;
}
.footer-rail {
  grid-column: span 3;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 14, 0.7);
}
.footer-rail h4 { margin: 0 0 8px; }
.footer-rail a {
  display: block;
  padding: 6px 0;
  color: rgba(244, 247, 251, 0.85);
  font-weight: 600;
}
.footer-note {
  grid-column: span 3;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(150deg, rgba(22, 27, 34, 0.72), rgba(8, 10, 14, 0.78));
}
.footer-note h4 { margin: 0 0 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.overlay.show { display: flex; }
.overlay-card {
  max-width: 540px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 14, 0.94);
  text-align: center;
}
.cookie-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 10, 14, 0.95);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}
.cookie-box.show { display: block; animation: riseUp 0.4s ease; }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reel-window {
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 10, 14, 0.88);
}
.reel-track { display: grid; }
.reel-cell {
  height: 100px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.wheel-wrap {
  display: grid;
  place-items: center;
  position: relative;
}
.wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.84) 0 40deg,
    rgba(70, 80, 94, 0.86) 40deg 85deg,
    rgba(255, 255, 255, 0.84) 85deg 130deg,
    rgba(70, 80, 94, 0.86) 130deg 175deg,
    rgba(255, 255, 255, 0.84) 175deg 220deg,
    rgba(70, 80, 94, 0.86) 220deg 265deg,
    rgba(255, 255, 255, 0.84) 265deg 310deg,
    rgba(70, 80, 94, 0.86) 310deg 360deg
  );
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.wheel-label {
  position: absolute;
  transform: rotate(var(--slice-angle)) translateY(-110px) rotate(calc(-1 * var(--slice-angle)));
  font-weight: 700;
  font-size: 0.88rem;
}
.wheel-pointer {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #ffffff;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}
.echo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.echo-pad {
  height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 12, 16, 0.8);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--accent-2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.echo-pad.active {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.7);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.float { animation: float 5s ease-in-out infinite; }
.nebula {
  position: relative;
  overflow: hidden;
}
.nebula::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(420px 160px at 30% 30%, rgba(255, 255, 255, 0.13), transparent 70%),
    radial-gradient(460px 180px at 70% 60%, rgba(196, 208, 227, 0.18), transparent 70%);
  animation: pulseNebula 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes driftStars {
  0% { transform: translateY(0); }
  50% { transform: translateY(8px); }
  100% { transform: translateY(0); }
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes riseUp {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulseNebula {
  0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.06) rotate(1deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
}
@media (max-width: 980px) {
  .topbar {
    order: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    margin-top: 10px;
    font-size: 0.8rem;
  }
  .header-bar { order: 1; }
  .hero,
  .section { padding-top: 56px; }
  .banner,
  .split,
  .game-grid,
  .facts-grid,
  .timeline,
  .card-grid,
  .footer-hero,
  .footer-flow { grid-template-columns: 1fr; }
  .footer-rail,
  .footer-note { grid-column: span 12; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(4, 5, 8, 0.96);
    display: none;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .site-nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .wallet-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* Main page only: lighter hero/background */
body.home-soft::after {
  opacity: 0.3;
  filter: grayscale(0.9) contrast(1.02) brightness(1.08);
}

body.home-soft .hero::before {
  background:
    radial-gradient(900px 380px at 50% 8%, rgba(255, 255, 255, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.18), rgba(10, 14, 20, 0.46));
}

body.home-soft .hero-card {
  background: linear-gradient(150deg, rgba(34, 42, 52, 0.62), rgba(16, 20, 26, 0.68));
  border-color: rgba(255, 255, 255, 0.3);
}

/* Unified game route widgets */
.game-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.game-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(160deg, rgba(14, 18, 24, 0.84), rgba(5, 8, 12, 0.9));
  box-shadow: var(--shadow);
}

.game-sidebar {
  display: grid;
  gap: 14px;
}

.game-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.inline-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 12, 17, 0.82);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

.stat span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list-check li {
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 17, 0.78);
}

.log {
  display: grid;
  gap: 8px;
}

.log p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 17, 0.78);
  color: rgba(244, 247, 251, 0.9);
  font-size: 0.9rem;
}

.clash-feedback {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 17, 0.8);
}

.clash-feedback.good {
  border-color: rgba(178, 226, 201, 0.55);
}

.clash-feedback.risk {
  border-color: rgba(238, 178, 178, 0.52);
}

.clash-feedback.perfect {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.24);
}

.fortune-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.fortune-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

#fortune-wheel {
  width: min(100%, 410px);
  max-width: 410px;
  height: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 11, 16, 0.65);
}

.fortune-pointer {
  position: absolute;
  top: -2px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #fff;
}

.fortune-hub {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(6, 9, 13, 0.84);
}

.fortune-play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fortune-play-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.fortune-play-grid label:last-child,
.fortune-play-grid label:nth-child(3) {
  grid-column: 1 / -1;
}

.fortune-chip-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fortune-chip-row button {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 15, 21, 0.86);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.clash-module-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.clash-module {
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 17, 0.8);
  display: grid;
  gap: 4px;
}

.clash-module.active {
  border-color: rgba(255, 255, 255, 0.45);
}

.clash-module-icon {
  width: 18px;
  height: 18px;
}

.clash-module-icon svg {
  width: 100%;
  height: 100%;
}

.clash-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin: 10px 0 9px;
}

.clash-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f8fa8, #ffffff);
  transition: width 0.3s ease;
}

.clash-round-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.clash-round-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}

.clash-round-dots i.active {
  background: #fff;
}

.clash-round-dots i.done {
  background: rgba(255, 255, 255, 0.55);
}

.heat-panel {
  display: grid;
  gap: 12px;
}

.heat-bar {
  height: 48px;
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 14, 0.78);
  overflow: hidden;
}

.heat-target {
  position: absolute;
  top: 7px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.heat-perfect-zone {
  position: absolute;
  top: 5px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.heat-marker {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.28);
}

.clash-underbar-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ctrl-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.ctrl-ico svg {
  width: 100%;
  height: 100%;
}

#ember-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ember-tile {
  min-height: 90px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 14, 0.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ember-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
}

.ember-tile.active,
.ember-tile.matched {
  background: rgba(14, 18, 24, 0.96);
}

.ember-tile.matched {
  border-color: rgba(255, 255, 255, 0.6);
}

.ember-glyph {
  width: 40px;
  height: 40px;
  display: inline-flex;
}

.ember-glyph svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .game-layout,
  .fortune-stage,
  .fortune-play-grid,
  .clash-module-row,
  #ember-grid {
    grid-template-columns: 1fr;
  }
  .inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tf-soft-section{background:linear-gradient(180deg,rgba(240,255,255,.88),rgba(246,250,255,.96))}
.tf-articles{padding:76px 0;background:linear-gradient(180deg,rgba(12,18,38,.96),rgba(20,28,54,.98))}
.tf-articles-head{text-align:center;margin-bottom:38px}
.tf-articles-kicker{display:inline-flex;margin-bottom:12px;padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tf-articles-title{margin:0 0 12px;color:#fff;font-size:clamp(30px,4vw,48px);line-height:1.1}
.tf-articles-text{max-width:760px;margin:0 auto;color:rgba(255,255,255,.72);line-height:1.7}
.tf-articles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:34px}
.tf-article-card{display:flex;flex-direction:column;min-height:100%;padding:26px;border-radius:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 50px rgba(0,0,0,.22)}
.tf-article-date{display:inline-flex;width:max-content;margin-bottom:14px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:13px;font-weight:700}
.tf-article-card h3{margin:0 0 12px;color:#fff;font-size:24px;line-height:1.22}
.tf-article-card p{margin:0 0 22px;color:rgba(255,255,255,.72);line-height:1.65}
.tf-article-card .btn{margin-top:auto;width:max-content}
.tf-brand-link{color:inherit;text-decoration:none}
@media(max-width:900px){.tf-articles-grid{grid-template-columns:1fr}.tf-articles{padding:52px 0}}

.tf-brand-link{color:inherit;text-decoration:none}

.tf-page-body{
  background:
          radial-gradient(circle at 14% 8%,rgba(128,92,255,.22),transparent 32%),
          radial-gradient(circle at 86% 14%,rgba(35,211,255,.16),transparent 34%),
          linear-gradient(180deg,#10162d 0%,#151d38 48%,#0b1022 100%);
  color:#f5f7ff;
}

.tf-page-main{
  position:relative;
  overflow:hidden;
  padding:70px 0 88px;
}

.tf-page-main:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.34;
  background-image:
          linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
          linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(180deg,transparent 0%,#000 14%,#000 86%,transparent 100%);
}

.tf-page-shell{
  position:relative;
  width:min(960px,calc(100% - 32px));
  margin:0 auto;
  padding:clamp(24px,4vw,54px);
  border-radius:32px;
  background:
          linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.065));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
          0 30px 90px rgba(0,0,0,.38),
          inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}

.tf-page-shell:before{
  content:"TwilightFraternity guide";
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-bottom:22px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);
  color:#cfd8ff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.tf-page-shell h1,
.tf-page-shell h2,
.tf-page-shell h3,
.tf-page-shell h4{
  color:#fff;
  letter-spacing:-.03em;
}

.tf-page-shell h1{
  max-width:860px;
  margin:0 0 20px;
  font-size:clamp(34px,5vw,62px);
  line-height:1.02;
  text-shadow:0 18px 48px rgba(0,0,0,.32);
}

.tf-page-shell h2{
  position:relative;
  margin:48px 0 16px;
  padding-top:18px;
  font-size:clamp(27px,3.4vw,40px);
  line-height:1.1;
}

.tf-page-shell h2:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:88px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#8b6cff,#35d8ff);
  box-shadow:0 0 24px rgba(53,216,255,.34);
}

.tf-page-shell h3{
  margin:30px 0 12px;
  font-size:clamp(22px,2.4vw,28px);
  line-height:1.18;
  color:#b9c7ff;
}

.tf-page-shell h4{
  margin:24px 0 10px;
  font-size:21px;
}

.tf-page-shell p{
  margin:0 0 18px;
  color:rgba(245,247,255,.78);
  font-size:17px;
  line-height:1.82;
}

.tf-page-shell .article-meta{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin:0 0 20px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(139,108,255,.16);
  border:1px solid rgba(139,108,255,.28);
  color:#d7dcff;
  font-size:13px;
  font-weight:800;
}

.tf-page-shell a{
  color:#8fe8ff;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(143,232,255,.32);
}

.tf-page-shell a:hover{
  color:#d7dcff;
  border-bottom-color:currentColor;
}

.tf-page-shell img{
  display:block;
  width:100%;
  height:auto;
  margin:26px 0;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 22px 58px rgba(0,0,0,.32);
}

.tf-page-shell ul,
.tf-page-shell ol{
  display:grid;
  gap:12px;
  margin:22px 0 28px;
  padding:0;
  list-style:none;
}

.tf-page-shell li{
  position:relative;
  padding:15px 16px 15px 50px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  color:rgba(245,247,255,.78);
  font-size:16.5px;
  line-height:1.65;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.tf-page-shell ul li:before{
  content:"";
  position:absolute;
  left:18px;
  top:23px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,#8b6cff,#35d8ff);
  box-shadow:0 0 0 5px rgba(53,216,255,.08);
}

.tf-page-shell ol{
  counter-reset:tf-counter;
}

.tf-page-shell ol li{
  counter-increment:tf-counter;
}

.tf-page-shell ol li:before{
  content:counter(tf-counter);
  position:absolute;
  left:14px;
  top:14px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,#8b6cff,#35d8ff);
  color:#07101f;
  font-size:13px;
  font-weight:800;
}

.tf-page-shell table{
  width:100%;
  margin:30px 0;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  box-shadow:0 18px 44px rgba(0,0,0,.22);
}

.tf-page-shell th,
.tf-page-shell td{
  padding:16px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(255,255,255,.12);
  color:rgba(245,247,255,.78);
}

.tf-page-shell th{
  background:linear-gradient(135deg,rgba(139,108,255,.18),rgba(53,216,255,.12));
  color:#fff;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tf-page-shell tr:last-child td{
  border-bottom:0;
}

.tf-page-shell blockquote{
  margin:32px 0;
  padding:24px 26px;
  border-left:5px solid #35d8ff;
  border-radius:22px;
  background:rgba(53,216,255,.08);
}

.tf-page-shell blockquote p{
  margin:0;
  color:#eaf7ff;
  font-size:18px;
}

.tf-page-shell .toc,
.tf-page-shell .contents,
.tf-page-shell .table-of-contents{
  margin:26px 0 36px;
  padding:24px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.16);
  background:
          radial-gradient(circle at 12% 0%,rgba(53,216,255,.14),transparent 32%),
          rgba(255,255,255,.07);
}

.tf-page-shell .toc strong,
.tf-page-shell .contents strong,
.tf-page-shell .table-of-contents strong{
  display:block;
  margin-bottom:14px;
  color:#fff;
  font-size:21px;
}

.tf-page-shell .toc ol,
.tf-page-shell .toc ul,
.tf-page-shell .contents ol,
.tf-page-shell .contents ul,
.tf-page-shell .table-of-contents ol,
.tf-page-shell .table-of-contents ul{
  margin:0;
  display:grid;
  gap:9px;
}

.tf-page-shell .toc li,
.tf-page-shell .contents li,
.tf-page-shell .table-of-contents li{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

.tf-page-shell .toc li:before,
.tf-page-shell .contents li:before,
.tf-page-shell .table-of-contents li:before{
  display:none;
}

.tf-page-shell .author-note,
.tf-page-shell .note,
.tf-page-shell .summary-box{
  margin:34px 0 0;
  padding:24px;
  border-radius:24px;
  border:1px solid rgba(53,216,255,.22);
  background:linear-gradient(135deg,rgba(53,216,255,.09),rgba(139,108,255,.09));
}

.tf-page-shell .author-note p,
.tf-page-shell .note p,
.tf-page-shell .summary-box p{
  margin-bottom:0;
}

.tf-page-related{
  position:relative;
  width:min(960px,calc(100% - 32px));
  margin:28px auto 0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.tf-page-related a{
  display:block;
  padding:20px;
  border-radius:22px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 18px 42px rgba(0,0,0,.22);
  text-decoration:none;
}

.tf-page-related span{
  display:block;
  margin-bottom:8px;
  color:#8fe8ff;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.tf-page-related strong{
  display:block;
  line-height:1.35;
}

@media(max-width:900px){
  .tf-page-related{grid-template-columns:1fr}
  .tf-page-shell table{display:block;overflow-x:auto}
}

@media(max-width:640px){
  .tf-page-main{padding:42px 0 58px}
  .tf-page-shell{width:calc(100% - 24px);padding:24px 18px;border-radius:22px}
  .tf-page-shell:before{width:auto;font-size:12px;white-space:normal}
  .tf-page-shell p,
  .tf-page-shell li{font-size:16px}
  .tf-page-shell li{padding-left:44px}
}