:root {
  --red: #cc0000;
  --red-bright: #ff3030;
  --red-deep: #6d0000;
  --black: #050506;
  --black-soft: #0b0b0d;
  --panel: #111114;
  --panel-2: #17171b;
  --white: #ffffff;
  --paper: #f5f5f3;
  --text: #f7f7f7;
  --muted: #a7a7ad;
  --dark-text: #141416;
  --dark-muted: #66666e;
  --line: rgba(255, 255, 255, 0.11);
  --line-dark: rgba(5, 5, 6, 0.12);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --shell: 1180px;
  --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--red);
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.site-main {
  min-height: 70vh;
}

/* Navigation */
.site-nav {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.nav-shell {
  min-height: 68px;
  padding: 8px 9px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.68);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
  pointer-events: auto;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-nav.scrolled .nav-shell {
  background: rgba(6, 6, 8, 0.92);
  border-color: rgba(255, 255, 255, 0.15);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  width: 150px;
  height: 46px;
  padding: 9px 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: #000;
}

.brand-logo img {
  width: 100%;
  max-height: 26px;
  object-fit: contain;
}

.brand-logo-large {
  width: 190px;
  height: 58px;
  padding-inline: 22px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 10px 11px;
  color: #aaaab1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  padding: 12px;
  display: none;
  place-items: center;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle svg,
.button svg,
.icon-chip svg,
.check-icon svg,
.casino-card-head i svg,
.game-tile i svg,
.catalog-list i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-small {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 13px;
}

.button-large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 15px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  box-shadow: 0 14px 40px rgba(204, 0, 0, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 55px rgba(204, 0, 0, 0.4);
}

.button-ghost {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-light {
  color: var(--red);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--red);
}

/* Global type */
.eyebrow {
  margin: 0 0 14px;
  color: #ff8b8b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--red);
}

.display-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-title {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-desc {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.dark-copy .section-desc,
.white-section .section-desc,
.light-section .section-desc {
  color: var(--dark-muted);
}

.section-header {
  max-width: 780px;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 920px;
  padding: 162px 0 110px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.08), var(--black) 94%),
    url('../assets/hero-grid.svg') center top / cover no-repeat,
    var(--black);
}

.hero::before {
  content: '';
  position: absolute;
  top: 90px;
  left: 50%;
  width: 800px;
  height: 650px;
  transform: translateX(-4%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.22), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -260px;
  bottom: 60px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.018), 0 0 0 160px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  max-width: 590px;
}

.hero-badge {
  width: fit-content;
  margin-bottom: 28px;
  padding: 7px 14px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffc5c5;
  border: 1px solid rgba(255, 85, 85, 0.24);
  border-radius: 999px;
  background: rgba(204, 0, 0, 0.11);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px rgba(255, 48, 48, 0.55);
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.072em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #ffb1b1 45%, #ff3030 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 550px;
  margin: 28px 0 0;
  color: #b0b0b7;
  font-size: 17px;
  line-height: 1.82;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  margin-top: 46px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.hero-proof div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-proof span {
  display: block;
  color: #73737b;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  margin-top: 4px;
  color: #e9e9eb;
  font-size: 14px;
  font-weight: 700;
}

.hero-dashboard {
  position: relative;
  min-width: 0;
}

.hero-dashboard::before {
  content: '';
  position: absolute;
  inset: 14% 6% -10%;
  border-radius: 40px;
  background: rgba(204, 0, 0, 0.28);
  filter: blur(70px);
  pointer-events: none;
}

.dashboard-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(12, 12, 15, 0.88);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.dashboard-toolbar {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.toolbar-dots {
  display: flex;
  gap: 7px;
}

.toolbar-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.toolbar-dots i:first-child {
  background: var(--red);
}

.dashboard-toolbar span {
  color: #73737b;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-body {
  padding: 22px;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metric {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-metric span {
  display: block;
  min-height: 30px;
  color: #777780;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.dashboard-metric strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--white);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chart {
  position: relative;
  height: 220px;
  margin-top: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0c0c0f;
  background-size: 46px 46px;
}

.chart-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777780;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chart-label strong {
  color: #62ff9a;
  font-family: var(--font-mono);
  font-size: 10px;
}

.chart-svg {
  position: absolute;
  inset: 52px 18px 16px;
  width: calc(100% - 36px);
  height: calc(100% - 68px);
}

.dashboard-bottom {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

.dashboard-ranking,
.dashboard-system {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777780;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-card-title b {
  color: #62ff9a;
}

.mini-rank-row {
  min-height: 37px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

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

.mini-rank-row span {
  color: var(--red-bright);
  font-family: var(--font-mono);
}

.mini-rank-row strong {
  overflow: hidden;
  color: #e6e6e8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-rank-row b {
  color: #a7a7ad;
  font-family: var(--font-mono);
  font-size: 10px;
}

.mini-rank-empty {
  padding: 18px 0 2px;
  color: #707078;
  font-size: 11px;
}

.system-pulse {
  margin-top: 18px;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 48, 48, 0.42);
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.08);
  box-shadow: inset 0 0 40px rgba(204, 0, 0, 0.12);
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 48, 48, 0.2);
  border-radius: 50%;
  animation: pulseRing 2.8s ease-out infinite;
}

.pulse-ring::before {
  inset: 8px;
}

.pulse-ring::after {
  inset: -10px;
  animation-delay: 0.8s;
}

.pulse-ring strong {
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes pulseRing {
  0% { opacity: 0.9; transform: scale(0.88); }
  70%, 100% { opacity: 0; transform: scale(1.28); }
}

/* Live rail */
.live-strip-section {
  position: relative;
  z-index: 4;
  margin-top: -48px;
  padding-bottom: 52px;
}

.live-strip-card {
  min-height: 96px;
  padding: 16px 16px 16px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 13, 16, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.live-strip-label {
  min-width: 162px;
}

.live-strip-label span {
  display: block;
  color: #ff8c8c;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-strip-label strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 14px;
}

.event-rail {
  position: relative;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}

.event-placeholder,
.event-chip {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #cfcfd3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
}

.event-placeholder {
  transform: translate3d(14px, -50%, 0);
  color: #777780;
}

.event-chip.positive,
.event-chip.common {
  color: #007dff;
}

.event-chip.negative {
  color: #ff7070;
}

.event-chip.rare {
  color: #5b00ff;
}

.event-chip.epic {
  color: #ed00ff;
}

.event-chip.legendary {
  color: #ff0004;
}

.event-chip.mythical {
  color: #ffd600;
}

.event-chip.casino-win {
  color: #62ff9a;
  border-color: rgba(98, 255, 154, 0.24);
  background: rgba(32, 118, 69, 0.18);
}

.event-chip.casino-loss {
  color: #ff7070;
  border-color: rgba(255, 112, 112, 0.24);
  background: rgba(135, 30, 30, 0.18);
}

.event-chip.invite {
  color: #78d7ff;
  border-color: rgba(120, 215, 255, 0.24);
  background: rgba(26, 97, 128, 0.18);
}

.event-chip.bump {
  color: #ffc96b;
  border-color: rgba(255, 201, 107, 0.24);
  background: rgba(126, 82, 21, 0.18);
}

/* Sections */
.section {
  position: relative;
  padding: 112px 0;
}

.light-section,
.white-section {
  color: var(--dark-text);
  background: var(--paper);
}

.white-section {
  background: var(--white);
}

.dark-section {
  background: var(--black);
}

.red-section {
  color: var(--white);
  background: linear-gradient(135deg, #e80000, #9c0000 70%, #540000);
}

.red-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 75%);
  pointer-events: none;
}

.section-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: end;
}

.section-intro-row .section-desc {
  margin: 0;
}

/* Feature tabs */
.feature-tabs-wrap {
  margin-top: 56px;
}

.feature-tabs {
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.045);
}

.feature-tab,
.category-tab {
  min-height: 43px;
  padding: 0 18px;
  color: #777780;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feature-tab:hover,
.category-tab:hover {
  color: var(--dark-text);
}

.feature-tab.active,
.category-tab.active {
  color: var(--white);
  background: var(--black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-panel {
  min-height: 480px;
  margin-top: 18px;
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-copy h3 {
  margin: 8px 0 18px;
  color: var(--dark-text);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.feature-copy p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 16px;
  line-height: 1.8;
}

.check-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #38383e;
  font-size: 14px;
  font-weight: 700;
}

.check-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--red);
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

.feature-diagram {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 48, 48, 0.34), transparent 46%),
    linear-gradient(135deg, #111114, #060607);
}

.feature-diagram::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
}

.diagram-window {
  position: relative;
  z-index: 2;
  width: 78%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(17, 17, 20, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
}

.diagram-toolbar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.diagram-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37373d;
}

.diagram-toolbar i:first-child {
  background: var(--red);
}

.diagram-content {
  padding: 30px;
}

.diagram-kicker {
  color: #ff8080;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.diagram-content strong {
  display: block;
  max-width: 360px;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.diagram-bars {
  margin-top: 40px;
  display: grid;
  gap: 10px;
}

.diagram-bars i {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-bright), rgba(255, 255, 255, 0.08));
}

.diagram-bars i:nth-child(1) { width: 88%; }
.diagram-bars i:nth-child(2) { width: 64%; }
.diagram-bars i:nth-child(3) { width: 78%; }
.diagram-bars i:nth-child(4) { width: 44%; }

/* Bento */
.bento-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.bento-card h3 {
  margin: 18px 0 10px;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.bento-card p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.bento-card-large {
  grid-column: span 7;
  min-height: 510px;
}

.bento-card-tall {
  grid-column: span 5;
  min-height: 510px;
}

.bento-card-small {
  grid-column: span 4;
}

.bento-card-red {
  background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
}

.bento-card-red p {
  color: rgba(255, 255, 255, 0.78);
}

.bento-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-visual {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 58%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
}

.bento-stat {
  position: absolute;
  right: 28px;
  bottom: 28px;
  text-align: right;
}

.bento-stat strong {
  display: block;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.bento-stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Split showcases */
.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 68px;
  align-items: center;
}

.showcase-grid.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase-copy h2 {
  margin: 8px 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.showcase-copy .button {
  margin-top: 28px;
}

.showcase-visual {
  position: relative;
}

.showcase-visual img {
  width: 100%;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.showcase-floating {
  position: absolute;
  right: -26px;
  bottom: 28px;
  width: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 10, 12, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.showcase-floating span {
  display: block;
  color: #777780;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-floating strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

/* Manifesto */
.manifesto {
  position: relative;
  padding: 122px 0;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, #ff1717 0%, #b90000 52%, #570000 100%);
}

.manifesto::before {
  content: 'TESLES';
  position: absolute;
  right: -50px;
  bottom: -78px;
  color: rgba(255, 255, 255, 0.07);
  font-size: min(25vw, 320px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.manifesto-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: start;
}

.manifesto-mark {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.manifesto-mark img {
  width: 118px;
}

.manifesto blockquote {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.manifesto blockquote span {
  color: rgba(255, 255, 255, 0.55);
}

.manifesto p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 610px;
  padding: 172px 0 90px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0), var(--black) 95%),
    url('../assets/hero-grid.svg') center / cover,
    var(--black);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 70px;
  right: -100px;
  width: 760px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.28), transparent 68%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 70px;
  align-items: end;
}

.page-hero-copy {
  max-width: 800px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.page-hero p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
}

.page-hero-aside span {
  color: #ff8989;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-hero-aside strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.page-hero-aside p {
  margin-top: 10px;
  color: #8f8f97;
  font-size: 13px;
  line-height: 1.7;
}

/* About page */
.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 118px;
}

.story-sticky h2 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.story-sticky p {
  color: var(--dark-muted);
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid var(--line-dark);
}

.timeline-item {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--line-dark);
}

.timeline-item span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.timeline-item p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.75;
}

.value-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.value-card span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 11px;
}

.value-card h3 {
  margin: 50px 0 14px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Stats */
.stats-summary {
  margin-top: -70px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 17, 20, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.summary-card span {
  color: #777780;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 24px;
  overflow: hidden;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ranking-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-card-head {
  padding: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.ranking-card-head span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ranking-card-head h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: -0.055em;
}

.ranking-row {
  min-height: 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(5, 5, 6, 0.08);
}

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

.ranking-row-top {
  background: rgba(204, 0, 0, 0.055);
}

.ranking-row span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ranking-row strong {
  overflow: hidden;
  color: var(--dark-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row b {
  color: #47474d;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ranking-empty {
  padding: 30px 22px;
  color: var(--dark-muted);
  font-size: 13px;
}

.stats-updated {
  margin-top: 22px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Shop */
.shop-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.17);
}

.shop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.number-chip,
.icon-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
}

.number-chip {
  color: var(--red);
  background: rgba(204, 0, 0, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.icon-chip {
  color: var(--white);
  background: var(--black);
}

.shop-card h3 {
  margin: 50px 0 14px;
  color: var(--dark-text);
  font-size: 30px;
  letter-spacing: -0.055em;
}

.shop-card p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.75;
}

.shop-card > strong {
  margin-top: 30px;
  color: var(--red);
  font-size: 13px;
}

.catalog-layout,
.game-catalog-layout {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
}

.category-tabs {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.category-tabs .category-tab {
  justify-content: flex-start;
  text-align: left;
}

.category-tabs .category-tab:hover {
  color: var(--white);
}

.category-tabs .category-tab.active {
  background: var(--red);
}

.catalog-panel,
.game-catalog-panel {
  min-height: 620px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.catalog-intro {
  max-width: 680px;
}

.catalog-intro h2,
.game-detail-main h2 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.catalog-intro p,
.game-detail-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.catalog-price {
  display: inline-flex;
  margin-top: 22px;
  color: #ff8d8d;
}

.catalog-groups {
  margin-top: 42px;
  display: grid;
  gap: 28px;
}

.catalog-group h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-list div {
  min-height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.catalog-list span {
  color: #d8d8dc;
  font-size: 13px;
  font-weight: 700;
}

.catalog-list i {
  color: var(--red-bright);
}

/* Casino */
.casino-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.casino-card {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.casino-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.casino-card-head span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.casino-card-head i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 15px;
  background: var(--black);
}

.casino-card h3 {
  margin: 46px 0 12px;
  color: var(--dark-text);
  font-size: 32px;
  letter-spacing: -0.055em;
}

.casino-card p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.75;
}

.casino-meta {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #74747b;
  font-size: 12px;
  font-weight: 700;
}

.casino-meta strong {
  color: var(--red);
}

.game-catalog-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 54px;
}

.game-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.game-stats span {
  display: block;
  color: #777780;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.game-rule-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.game-rule-list div {
  min-height: 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.game-rule-list span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 10px;
}

.game-rule-list strong {
  color: #d9d9dd;
  font-size: 13px;
}

.loot-probabilities {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.probability-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.probability-card strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.06em;
}

.probability-card span {
  display: block;
  margin-top: 34px;
  color: #92929a;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.probability-card.common strong { color: #d7d7da; }
.probability-card.rare strong { color: #65c9ff; }
.probability-card.epic strong { color: #d168ff; }
.probability-card.legendary strong { color: #ff9d4a; }
.probability-card.mythical strong { color: #ffe968; }

/* Games */
.game-search-wrap {
  margin-top: 44px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--red);
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.06);
}

.search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.game-search-wrap input {
  min-width: 0;
  flex: 1;
  color: var(--dark-text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.game-search-wrap span:last-child {
  padding-right: 12px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.game-tile {
  min-height: 72px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 0, 0, 0.3);
}

.game-tile span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
}

.game-tile strong {
  overflow: hidden;
  color: var(--dark-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-tile i {
  color: #a1a1a7;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--line-dark);
  border-radius: 24px;
  background: rgba(5, 5, 6, 0.02);
}

.empty-state strong {
  color: var(--dark-text);
  font-size: 20px;
}

.empty-state span {
  color: var(--dark-muted);
}

/* Systems */
.systems-map {
  margin-top: 54px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.systems-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.system-node {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.system-node span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-node h3 {
  margin: 52px 0 12px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.system-node p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.data-flow {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.data-step {
  min-height: 148px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.data-step strong {
  font-size: 18px;
}

.data-step span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.data-arrow {
  color: var(--red-bright);
  font-size: 28px;
  font-weight: 800;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 120px;
}

.faq-side h2 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 66px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.faq-side p {
  color: var(--dark-muted);
  line-height: 1.8;
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-item {
  border-bottom: 1px solid var(--line-dark);
}

.faq-item button {
  width: 100%;
  min-height: 92px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  color: var(--dark-text);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-item button > span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
}

.faq-item button strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.faq-item button i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--black);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item button i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.faq-item.open button i {
  transform: rotate(45deg);
  background: var(--red);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--dark-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding: 0 48px 28px 62px;
}

/* CTA */
.final-cta {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  background: var(--black);
}

.final-cta-card {
  position: relative;
  padding: clamp(38px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 48, 48, 0.45), transparent 34%),
    linear-gradient(135deg, #151518, #070708);
  box-shadow: var(--shadow);
}

.final-cta-card::after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -190px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.018), 0 0 0 160px rgba(255, 255, 255, 0.012);
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.final-cta h2 {
  margin: 8px 0 20px;
  font-size: clamp(46px, 7vw, 82px);
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.final-cta p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.final-cta .button {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 74px 0 24px;
  border-top: 1px solid var(--line);
  background: #020203;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.55fr 1fr;
  gap: 52px;
}

.footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  color: #73737b;
  font-size: 13px;
  line-height: 1.8;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-label {
  margin-bottom: 8px;
  color: #5f5f67;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  color: #a7a7ad;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-cta h3 {
  margin: 0 0 20px;
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.footer-bottom {
  margin-top: 62px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #5f5f67;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom strong {
  color: #a0a0a7;
  font-weight: 700;
  text-align: center;
}

.footer-bottom span:last-child {
  text-align: right;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-links a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .hero-grid {
    grid-template-columns: 0.86fr 1.14fr;
    gap: 36px;
  }

  .dashboard-body {
    padding: 16px;
  }

  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metric span {
    min-height: auto;
  }

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

  .ranking-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .site-nav {
    top: 10px;
  }

  .nav-shell {
    min-height: 62px;
  }

  .brand-logo {
    width: 132px;
    height: 42px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-panel {
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    max-height: calc(100vh - 104px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(6, 6, 8, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-grid,
  .page-hero-grid,
  .section-intro-row,
  .showcase-grid,
  .showcase-grid.reverse,
  .manifesto-grid,
  .story-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-dashboard {
    max-width: 760px;
  }

  .story-sticky,
  .faq-side {
    position: static;
  }

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

  .feature-diagram {
    min-height: 320px;
  }

  .bento-card-large,
  .bento-card-tall {
    grid-column: span 12;
  }

  .bento-card-small {
    grid-column: span 6;
  }

  .shop-grid,
  .value-grid,
  .systems-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .game-catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-radius: 999px;
    scrollbar-width: none;
  }

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

  .category-tabs .category-tab {
    flex: 0 0 auto;
  }

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

  .game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loot-probabilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-cta {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .site-nav .shell {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 118px 0 92px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-lead,
  .page-hero p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-overview {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-chart {
    height: 180px;
  }

  .dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .live-strip-section {
    margin-top: -26px;
  }

  .live-strip-card {
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 20px;
  }

  .live-strip-label {
    min-width: 0;
    padding-inline: 4px;
  }

  .event-rail {
    height: 54px;
  }

  .event-chip,
  .event-placeholder {
    font-size: 10px;
  }

  .section {
    padding: 78px 0;
  }

  .display-title,
  .page-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .section-title,
  .showcase-copy h2,
  .story-sticky h2,
  .faq-side h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .feature-tabs {
    border-radius: 24px;
  }

  .feature-tab {
    flex: 1 1 42%;
  }

  .feature-panel {
    min-height: 0;
    padding: 26px;
    border-radius: 28px;
  }

  .feature-copy h3 {
    font-size: 38px;
  }

  .feature-diagram {
    min-height: 280px;
  }

  .diagram-window {
    width: 88%;
  }

  .diagram-content {
    padding: 22px;
  }

  .bento-grid,
  .shop-grid,
  .casino-grid,
  .value-grid,
  .systems-flow,
  .ranking-grid,
  .stats-summary,
  .catalog-list,
  .game-list,
  .loot-probabilities {
    grid-template-columns: 1fr;
  }

  .bento-card-large,
  .bento-card-tall,
  .bento-card-small {
    grid-column: auto;
  }

  .bento-card {
    min-height: 330px;
  }

  .bento-card-large,
  .bento-card-tall {
    min-height: 420px;
  }

  .bento-visual {
    width: 78%;
  }

  .showcase-floating {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -30px 18px 0;
  }

  .manifesto {
    padding: 80px 0;
  }

  .manifesto-mark {
    width: 110px;
    height: 110px;
  }

  .manifesto-mark img {
    width: 82px;
  }

  .manifesto blockquote {
    font-size: clamp(40px, 12vw, 56px);
  }

  .page-hero {
    min-height: 540px;
    padding: 136px 0 72px;
  }

  .page-hero-aside {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summary-card {
    min-height: 130px;
  }

  .ranking-card:last-child {
    grid-column: auto;
  }

  .catalog-panel,
  .game-catalog-panel,
  .systems-map {
    padding: 24px;
    border-radius: 26px;
  }

  .catalog-intro h2,
  .game-detail-main h2 {
    font-size: 44px;
  }

  .game-stats {
    grid-template-columns: 1fr;
  }

  .data-flow {
    grid-template-columns: 1fr;
  }

  .data-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .faq-item button {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
  }

  .faq-item button strong {
    font-size: 17px;
  }

  .faq-item.open .faq-answer p {
    padding-left: 50px;
    padding-right: 12px;
  }

  .final-cta-card {
    border-radius: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-cta {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-bottom strong,
  .footer-bottom span:last-child {
    text-align: left;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Lootbox-eventtien sisäinen tekstiväritys */
.event-chip .event-name {
  font-style: italic;
  font-weight: 700;
  color: inherit;
}

.event-chip .event-action {
  color: inherit;
  opacity: 0.96;
}

.event-chip .event-rarity {
  font-weight: 800;
  color: inherit !important;
  text-shadow: none !important;
}


/* Koko lootbox-tapahtuma samalla rarity-värillä */
.event-chip.common,
.event-chip.common * { color: #007dff !important; }

.event-chip.rare,
.event-chip.rare * { color: #5b00ff !important; }

.event-chip.epic,
.event-chip.epic * { color: #ed00ff !important; }

.event-chip.legendary,
.event-chip.legendary * { color: #ff0004 !important; }

.event-chip.mythical,
.event-chip.mythical * { color: #ffd600 !important; }


/* Homepage live overview: never cut the coin leader's name */
.dashboard-metric strong[data-live-top-name-legacy] {
  overflow: visible;
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Compact top 3: allow the full Discord display name to use two lines */
[data-hero-ranking] .mini-rank-row {
  min-height: 42px;
}

[data-hero-ranking] .mini-rank-row strong {
  overflow: visible;
  font-size: 10px;
  line-height: 1.18;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* DiscordGlobal dashboard: bottom-align every metric value */
.dashboard-metric {
  display: flex;
  flex-direction: column;
}

.dashboard-metric strong {
  display: flex;
  min-height: 32px;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.dashboard-metric strong[data-live-top-name-legacy] {
  align-items: flex-end;
  padding-bottom: 1px;
}

/* Odometer-style rolling values when DiscordGlobal refreshes */
.rolling-value {
  display: inline-flex;
  align-items: flex-end;
  max-width: 100%;
  white-space: nowrap;
  font: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rolling-char {
  display: inline-flex;
  min-width: 0.31em;
  height: 1em;
  align-items: flex-end;
  justify-content: center;
  line-height: 1;
}

.rolling-char-swap {
  animation: rollingCharSwap 620ms cubic-bezier(.2,.8,.2,1) both;
}

.rolling-digit {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: bottom;
}

.rolling-digit-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(0);
  transition: transform 760ms cubic-bezier(.18,.82,.22,1);
  transition-delay: var(--roll-delay, 0ms);
  will-change: transform;
}

.rolling-digit-track > span {
  display: flex;
  width: 100%;
  height: 1em;
  flex: 0 0 1em;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rolling-value.is-rolling .rolling-digit-track:not(.rolling-digit-track-down) {
  transform: translateY(-1em);
}

.rolling-digit-track-down {
  transform: translateY(-1em);
}

.rolling-value.is-rolling .rolling-digit-track-down {
  transform: translateY(0);
}

.metric-text-swap {
  animation: metricTextSwap 680ms cubic-bezier(.18,.82,.22,1) both;
}

.hero-dashboard.is-data-updated .dashboard-metric {
  animation: dashboardDataPulse 850ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-dashboard.is-data-updated .dashboard-metric:nth-child(2) { animation-delay: 45ms; }
.hero-dashboard.is-data-updated .dashboard-metric:nth-child(3) { animation-delay: 90ms; }
.hero-dashboard.is-data-updated .dashboard-metric:nth-child(4) { animation-delay: 135ms; }

[data-hero-ranking] .mini-rank-row b {
  display: flex;
  min-width: 54px;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

@keyframes rollingCharSwap {
  0% { opacity: 0; transform: translateY(0.38em); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes metricTextSwap {
  0% { opacity: 0; transform: translateY(9px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes dashboardDataPulse {
  0% { border-color: var(--line); background: rgba(255,255,255,.035); }
  35% { border-color: rgba(204,0,0,.52); background: rgba(204,0,0,.09); box-shadow: 0 0 0 1px rgba(204,0,0,.05), 0 0 28px rgba(204,0,0,.08); }
  100% { border-color: var(--line); background: rgba(255,255,255,.035); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rolling-digit-track,
  .rolling-char-swap,
  .metric-text-swap,
  .hero-dashboard.is-data-updated .dashboard-metric {
    animation: none !important;
    transition: none !important;
  }
}


/* Live Top 3 rank crossover animation */
[data-hero-ranking] {
  position: relative;
}

[data-hero-ranking] .mini-rank-row {
  position: relative;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  border-radius: 10px;
}

[data-hero-ranking] .mini-rank-row.mini-rank-moving-up {
  z-index: 5;
  background: linear-gradient(90deg, rgba(204,0,0,.14), rgba(204,0,0,0));
  box-shadow: 0 10px 24px rgba(204,0,0,.12);
}

[data-hero-ranking] .mini-rank-row.mini-rank-moving-down {
  z-index: 1;
  background: rgba(255,255,255,.018);
}

[data-hero-ranking] .mini-rank-row.mini-rank-entering {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 540ms ease, transform 680ms cubic-bezier(.2,.82,.2,1);
}

[data-hero-ranking] .mini-rank-row.mini-rank-leaving {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  opacity: 0;
  transform: translate3d(22px, 0, 0) scale(.97);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

/* Nostatukset uses the same baseline and odometer typography as all metrics */
.dashboard-metric strong[data-live-boosts] {
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-ranking] .mini-rank-row {
    transition: none !important;
    transform: none !important;
  }
}


/* DiscordGlobal V4 */
.dashboard-system{display:flex;flex-direction:column}.pulse-ring{gap:2px;flex-direction:column}.pulse-ring strong{font-size:clamp(1.05rem,2vw,1.4rem);line-height:1}.pulse-ring span{color:rgba(255,255,255,.56);font-family:"JetBrains Mono",monospace;font-size:.54rem;letter-spacing:.12em;text-transform:uppercase}.system-live-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.system-live-meta span{min-width:0;color:rgba(255,255,255,.46);font-family:"JetBrains Mono",monospace;font-size:.54rem;line-height:1.35;text-align:center;text-transform:uppercase}.system-live-meta b{display:block;color:#fff;font-size:.66rem;margin-bottom:2px}
.global-snapshot-section{padding:clamp(30px,5vw,64px) 0;background:radial-gradient(circle at 15% 0%,rgba(204,0,0,.16),transparent 38%),#0b0b0d;color:#fff}.global-snapshot-light{background:radial-gradient(circle at 85% 0%,rgba(204,0,0,.09),transparent 34%),#f7f7f7;color:#101012}.global-snapshot-grid,.global-ops-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.global-snapshot-card,.global-ops-card{min-width:0;border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:22px;background:rgba(255,255,255,.045);box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}.global-snapshot-light .global-snapshot-card,.global-ops-card{border-color:rgba(5,5,6,.1);background:#fff;box-shadow:0 18px 50px rgba(20,20,24,.06)}.global-snapshot-card span,.global-ops-card span{display:block;color:rgba(255,255,255,.48);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.global-snapshot-light .global-snapshot-card span,.global-ops-card span{color:rgba(10,10,12,.52)}.global-snapshot-card strong,.global-ops-card strong{display:block;margin-top:12px;color:#fff;font-size:clamp(1.65rem,3.2vw,2.65rem);line-height:1;letter-spacing:-.06em}.global-snapshot-light .global-snapshot-card strong,.global-ops-card strong{color:#101012}.global-snapshot-card small,.global-ops-card small{display:block;margin-top:10px;color:rgba(255,255,255,.45);font-size:.72rem;line-height:1.55}.global-snapshot-light .global-snapshot-card small,.global-ops-card small{color:rgba(10,10,12,.5)}
.global-health-panel{display:grid;grid-template-columns:1.25fr 1.6fr 1fr 1fr .8fr;gap:1px;margin-top:18px;overflow:hidden;border:1px solid rgba(5,5,6,.1);border-radius:20px;background:rgba(5,5,6,.08)}.global-health-panel>div{min-width:0;padding:18px;background:#fff}.global-health-panel span{display:block;color:rgba(10,10,12,.46);font-size:.63rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.global-health-panel strong{display:block;margin-top:8px;color:#111114;font-size:.78rem;line-height:1.45;overflow-wrap:anywhere}.probability-card small{display:block;margin-top:8px;color:rgba(255,255,255,.52);font-size:.68rem;font-weight:700}
@media(max-width:980px){.global-snapshot-grid,.global-ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.global-health-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.global-health-panel>div:last-child{grid-column:1/-1}}@media(max-width:620px){.global-snapshot-grid,.global-ops-grid,.global-health-panel{grid-template-columns:1fr}.global-health-panel>div:last-child{grid-column:auto}}


/* ==========================================================
   V5 FIX: clean Twitch-style vertical number roll
   Only the number moves. Cards, labels and backgrounds stay still.
   ========================================================== */

.number-roll-host {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  height: 1.08em;
  overflow: hidden;
  line-height: 1.08;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.number-roll-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 1.08em;
  overflow: hidden;
  font: inherit;
  line-height: 1.08;
}

.number-roll-value {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 1.08em;
  color: inherit;
  font: inherit;
  line-height: 1.08;
  text-align: inherit;
  white-space: nowrap;
  will-change: transform, opacity;
  transition:
    transform 620ms cubic-bezier(.2,.82,.2,1),
    opacity 420ms ease;
}

.number-roll-up .number-roll-old {
  transform: translateY(0);
  opacity: 1;
}

.number-roll-up .number-roll-new {
  transform: translateY(105%);
  opacity: .25;
}

.number-roll-up.is-rolling .number-roll-old {
  transform: translateY(-105%);
  opacity: .15;
}

.number-roll-up.is-rolling .number-roll-new {
  transform: translateY(0);
  opacity: 1;
}

.number-roll-down .number-roll-old {
  transform: translateY(0);
  opacity: 1;
}

.number-roll-down .number-roll-new {
  transform: translateY(-105%);
  opacity: .25;
}

.number-roll-down.is-rolling .number-roll-old {
  transform: translateY(105%);
  opacity: .15;
}

.number-roll-down.is-rolling .number-roll-new {
  transform: translateY(0);
  opacity: 1;
}

/* Disable the old digit-by-digit and whole-card effects. */
.rolling-value,
.rolling-char,
.rolling-digit,
.rolling-digit-track {
  animation: none !important;
  transition: none !important;
}

.hero-dashboard.is-data-updated .dashboard-metric {
  animation: none !important;
}

/* Keep the metric values perfectly aligned. */
.dashboard-metric strong {
  display: block;
  min-height: 1.08em;
  align-self: stretch;
  line-height: 1.08;
  text-align: left;
}

.dashboard-chart [data-live-chart-value] {
  min-width: 42px;
  color: #63ff9c;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dashboard-chart [data-activity-line],
.dashboard-chart [data-activity-area] {
  transition: none !important;
}

.dashboard-system [data-live-present] {
  color: #63ff9c;
  font-variant-numeric: tabular-nums;
}

.pulse-ring [data-live-online] {
  width: 100%;
  text-align: center;
}

[data-hero-ranking] .mini-rank-row b.number-roll-host {
  width: 62px;
  min-width: 62px;
  text-align: right;
}

/* The Systems overview must remain a proper grid even before JS finishes. */
[data-global-systems] .global-ops-grid {
  display: grid;
}

[data-global-systems] .global-ops-card,
[data-global-systems] .global-health-panel {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .number-roll-value {
    transition: none !important;
  }
}


/* ==========================================================
   V6 — keskitetty live-dashboard ja 24 h viestikäyrä
   ========================================================== */

.dashboard-metric {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-metric span {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-metric strong,
.dashboard-metric strong.number-roll-host {
  width: 100%;
  text-align: center;
}

.dashboard-card-title-centered {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  white-space: nowrap;
}

.dashboard-card-title-centered span {
  width: auto;
  white-space: nowrap;
  text-align: center;
}

.dashboard-card-title-centered b,
.dashboard-card-title-centered b.number-roll-host {
  width: auto !important;
  min-width: 2.6ch;
  height: 1.25em;
  min-height: 1.25em;
  display: inline-block !important;
  overflow: hidden;
  color: #62ff9a;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.dashboard-card-title-centered .number-roll-frame,
.dashboard-card-title-centered .number-roll-value {
  width: 100%;
  height: 1.25em;
  line-height: 1.25;
  text-align: center;
}

.dashboard-system {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.dashboard-system .system-pulse {
  flex: 1;
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-system .pulse-ring {
  display: grid;
  place-items: center;
}

.dashboard-system .pulse-ring strong {
  width: auto;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  text-align: center;
}

.dashboard-chart .chart-label {
  gap: 16px;
}

.dashboard-chart [data-live-chart-value],
.dashboard-chart [data-live-chart-value].number-roll-host {
  width: auto !important;
  min-width: 3ch;
  flex: 0 0 auto;
  text-align: right;
}

.dashboard-chart [data-live-chart-value] .number-roll-value {
  text-align: right;
}

.dashboard-system .system-live-meta {
  display: none !important;
}

@media (max-width: 760px) {
  .dashboard-card-title-centered {
    gap: 7px;
  }

  .dashboard-card-title-centered span {
    font-size: 9px;
  }

  .dashboard-card-title-centered b,
  .dashboard-card-title-centered b.number-roll-host {
    font-size: 11px;
  }
}


/* ==========================================================
   V7 — dashboardin tarkka asemointi ja viimeistely
   ========================================================== */

/* Yläkorttien otsikot pysyvät ylhäällä, mutta keskitettyinä. */
.dashboard-metric {
  position: relative;
  min-height: 98px;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  text-align: center;
}

.dashboard-metric span {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1px;
  color: #85858d;
  line-height: 1.25;
  text-align: center;
}

.dashboard-metric strong,
.dashboard-metric strong.number-roll-host {
  width: 100%;
  min-height: 1.18em;
  margin: 0;
  align-self: center;
  transform: translateY(-3px);
  overflow: hidden;
  line-height: 1.18;
  text-align: center;
}

.dashboard-metric strong .number-roll-frame,
.dashboard-metric strong .number-roll-value {
  height: 1.18em;
  line-height: 1.18;
  text-align: center;
}

/* Käyrän oikean yläkulman arvo ei saa leikkaantua rullauksen aikana. */
.dashboard-chart .chart-label {
  min-height: 20px;
  align-items: flex-start;
}

.dashboard-chart [data-live-chart-value],
.dashboard-chart [data-live-chart-value].number-roll-host {
  width: auto !important;
  min-width: 3ch;
  height: 1.55em;
  min-height: 1.55em;
  padding: 1px 0 2px;
  overflow: hidden;
  line-height: 1.45;
  text-align: right;
}

.dashboard-chart [data-live-chart-value] .number-roll-frame,
.dashboard-chart [data-live-chart-value] .number-roll-value {
  width: 100%;
  height: 1.55em;
  line-height: 1.45;
  text-align: right;
}

/* Paikalla nyt keskitetään kahdelle selkeälle riville. */
.dashboard-presence-head {
  width: 100%;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  text-align: center;
}

.dashboard-presence-head span {
  color: #85858d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-presence-head b,
.dashboard-presence-head b.number-roll-host {
  width: auto !important;
  min-width: 3ch;
  height: 1.35em;
  min-height: 1.35em;
  display: block !important;
  overflow: hidden;
  color: #62ff9a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.dashboard-presence-head .number-roll-frame,
.dashboard-presence-head .number-roll-value {
  width: 100%;
  height: 1.35em;
  line-height: 1.25;
  text-align: center;
}

/* LIVE-pallo suuremmaksi ja paremmin tasapainoon kortin kanssa. */
.dashboard-system {
  min-height: 190px;
  padding: 17px 17px 20px;
}

.dashboard-system .system-pulse {
  flex: 1;
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-system .pulse-ring {
  width: 118px;
  height: 118px;
}

.dashboard-system .pulse-ring strong {
  font-size: 12px;
  letter-spacing: .16em;
}

/* Varmistetaan, ettei vanha yhden rivin Paikalla-tyyli vaikuta enää. */
.dashboard-card-title-centered {
  display: none !important;
}

@media (max-width: 760px) {
  .dashboard-metric {
    min-height: 94px;
    padding-inline: 10px;
  }

  .dashboard-metric span {
    font-size: 9px;
  }

  .dashboard-presence-head span {
    font-size: 9px;
  }

  .dashboard-presence-head b,
  .dashboard-presence-head b.number-roll-host {
    font-size: 16px;
  }

  .dashboard-system .pulse-ring {
    width: 108px;
    height: 108px;
  }
}


/* V8: käyrän oikean yläkulman arvo on DailyMSG eli viestit tänään. */
.dashboard-chart [data-live-chart-value] {
  cursor: default;
}


/* V9 — ylätilastojen hienosäätö */
.dashboard-metric strong,
.dashboard-metric strong.number-roll-host {
  transform: translateY(-5px);
}


/* ==========================================================
   V11 — mekaaninen numerolukko-rullaus
   ========================================================== */

.mechanical-roll-host {
  display: block !important;
  width: 100%;
  min-width: 0;
  height: 1.18em;
  overflow: hidden;
  font: inherit;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
  transform: none !important;
}

.mechanical-roll-frame {
  display: inline-flex;
  width: 100%;
  height: 1.18em;
  align-items: flex-start;
  justify-content: inherit;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: 1.18;
  text-align: inherit;
  white-space: pre;
  transform: none !important;
}

.mechanical-roll-digit,
.mechanical-roll-separator {
  display: inline-block;
  flex: 0 0 auto;
  width: .64em;
  height: 1.18em;
  color: inherit;
  font: inherit;
  line-height: 1.18;
  text-align: center;
  transform: none !important;
}

.mechanical-roll-separator {
  width: .38em;
}

.mechanical-roll-viewport {
  display: block;
  width: 100%;
  height: 1.18em;
  overflow: hidden;
}

.mechanical-roll-track {
  display: flex;
  width: 100%;
  flex-direction: column;
  color: inherit;
  font: inherit;
  line-height: 1.18;
  transform: translate3d(0, 0, 0);
  transition-property: transform;
  transition-duration: var(--mechanical-duration, 620ms);
  transition-delay: var(--mechanical-delay, 0ms);
  transition-timing-function: cubic-bezier(.19,.76,.22,1);
  will-change: transform;
}

.mechanical-roll-item {
  display: block;
  width: 100%;
  height: 1.18em;
  flex: 0 0 1.18em;
  color: inherit;
  font: inherit;
  line-height: 1.18;
  text-align: center;
}

.mechanical-roll-frame.is-rolling .mechanical-roll-track {
  transform: translate3d(0, calc(var(--mechanical-steps) * -1.18em), 0);
}

/* Arvot eivät skaalaudu tai vaihda fonttikokoa päivityksessä. */
.mechanical-roll-host,
.mechanical-roll-host *,
.dashboard-metric strong,
.dashboard-chart [data-live-chart-value],
.dashboard-presence-head b,
[data-hero-ranking] .mini-rank-row b {
  animation-name: none !important;
  scale: 1 !important;
}

.dashboard-metric .mechanical-roll-frame,
.dashboard-chart .mechanical-roll-frame,
.dashboard-presence-head .mechanical-roll-frame {
  justify-content: center;
}

.dashboard-chart [data-live-chart-value] .mechanical-roll-frame,
[data-hero-ranking] .mini-rank-row b .mechanical-roll-frame {
  justify-content: flex-end;
}

/* Top 4 vaihtaa paikkaa rauhallisesti ja nouseva jäsen kulkee päällimmäisenä. */
[data-hero-ranking] .mini-rank-row {
  transition-timing-function: cubic-bezier(.16,.84,.18,1) !important;
}

[data-hero-ranking] .mini-rank-row.mini-rank-moving-up {
  z-index: 8;
}

[data-hero-ranking] .mini-rank-row.mini-rank-moving-down {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .mechanical-roll-track {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
