:root {
  --bg: #0d1024;
  --bg-2: #171b36;
  --ink: #f3f5ff;
  --ink-soft: #cad0f3;
  --line: rgba(178, 192, 255, 0.24);
  --panel: rgba(22, 27, 52, 0.78);
  --panel-2: rgba(33, 40, 72, 0.78);
  --accent-1: #5eead4;
  --accent-2: #f59e0b;
  --accent-3: #60a5fa;
  --accent-4: #f472b6;
  --max: 1240px;
  --shadow: 0 24px 50px rgba(2, 4, 13, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 10% -10%, rgba(96, 165, 250, 0.22), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(244, 114, 182, 0.2), transparent 34%),
    linear-gradient(165deg, var(--bg), var(--bg-2) 56%, #0a0d1d);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px;
}

main section {
  margin: 54px 0;
}

.site-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.site-bg-orbs span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.25), transparent 68%);
  animation: drift 14s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 30, 0.72);
  border-bottom: 1px solid rgba(178, 192, 255, 0.14);
  backdrop-filter: blur(12px);
}

.header-shadow {
  box-shadow: 0 10px 30px rgba(1, 4, 11, 0.45);
}

.site-header .inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 24px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px 4px 13px 4px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(36, 43, 79, 0.92), rgba(21, 26, 52, 0.88));
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text strong {
  font-size: 0.98rem;
}

.logo-text span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 7px 2px;
  font-size: 0.89rem;
  font-weight: 700;
  color: #d8defc;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--accent-1);
  transform: translateY(-1px);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(35, 41, 75, 0.72);
  border-radius: 10px;
  font-weight: 700;
  padding: 8px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent-3), var(--accent-4));
  color: #fff;
  box-shadow: 0 12px 24px rgba(96, 165, 250, 0.25);
}

.btn-outline {
  background: rgba(29, 35, 64, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 120%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.34s ease;
}

.btn:hover::before {
  left: 130%;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.22s ease, inset 0.22s ease;
  pointer-events: none;
}

.btn:hover::after {
  inset: 2px;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(96, 165, 250, 0.35);
}

.btn-outline:hover {
  background: rgba(41, 50, 88, 0.88);
  border-color: rgba(142, 233, 215, 0.55);
}

.home-hero,
.page-hero {
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 124px 0 94px;
}

.page-hero {
  padding: 108px 0 66px;
}

.home-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background.jpg") center / cover no-repeat fixed;
  transform: scale(1.08);
  filter: brightness(0.26) saturate(1.1);
}

.home-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(94, 234, 212, 0.2), transparent 38%),
    radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.2), transparent 35%),
    linear-gradient(155deg, rgba(6, 10, 24, 0.82), rgba(22, 26, 48, 0.72));
}

.hero-center,
.hero-page-inner {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-center {
  text-align: center;
  display: grid;
  gap: 16px;
}

.hero-center h1 {
  font-size: clamp(2rem, 4.8vw, 4.3rem);
}

.hero-page-inner h1 {
  font-size: clamp(1.7rem, 3.3vw, 3rem);
}

.hero-center p,
.hero-page-inner p {
  color: #d8dffb;
  max-width: 760px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.kpi {
  border: 1px solid rgba(178, 192, 255, 0.28);
  background: rgba(33, 39, 72, 0.58);
  border-radius: 14px 4px 14px 4px;
  padding: 10px;
  backdrop-filter: blur(3px);
}

.kpi strong {
  display: block;
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8ee9d7;
}

.section-head {
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
}

.grid-2,
.grid-3,
.feature-grid,
.game-grid,
.form-grid,
.hud-grid,
.achievement-grid,
.timeline,
.controls,
.metric-strip,
.table-meta,
.duel-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 16px;
}

.policy-list {
  display: grid;
  gap: 8px;
}

.policy-btn {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px 5px 12px 5px;
  background: rgba(45, 54, 94, 0.58);
  color: var(--ink);
  font-weight: 800;
  padding: 11px 12px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

.policy-btn:hover {
  transform: translateX(3px);
}

.policy-btn.active {
  border-color: rgba(94, 234, 212, 0.7);
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.2), rgba(96, 165, 250, 0.18));
}

.policy-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.policy-panel.active {
  display: block;
  animation: panelIn 0.32s ease forwards;
}

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

.section-surface,
.panel,
.card,
.review,
.timeline-item,
.achievement,
.callout,
.hud-item,
.faq-item,
.game-brief,
.game-stage,
.spin-shell,
.card-game-shell,
.orbit-arena,
.game-media-card,
.age-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-surface,
.panel,
.game-stage,
.spin-shell,
.card-game-shell {
  padding: 22px;
  border-radius: 22px 8px 22px 8px;
}

.card {
  border-radius: 20px 8px 20px 8px;
  overflow: hidden;
}

.review,
.timeline-item,
.achievement,
.callout,
.faq-item {
  border-radius: 16px 6px 16px 6px;
  padding: 16px;
}

.hud-item {
  border-radius: 14px 6px 14px 6px;
  padding: 12px;
}

.table-like .row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(178, 192, 255, 0.25);
}

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

.card-body {
  padding: 18px;
}

/* Game showcase: one game per row with alternating layout */
.game-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.game-grid .card {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  align-items: stretch;
  overflow: hidden;
}

.game-grid .card:nth-child(even) .game-cover {
  order: 2;
}

.game-grid .card:nth-child(even) .card-body {
  order: 1;
}

.game-grid .card-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(35, 42, 76, 0.74), rgba(25, 31, 58, 0.78));
}

.game-grid .card h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.game-grid .card p {
  color: #d5dcfb;
  max-width: 62ch;
}

.game-cover {
  height: 340px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
}

.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(9, 14, 30, 0.1), rgba(12, 17, 37, 0.54));
}

.game-cover.signals {
  background-image: url("../img/spin.jpg");
}

.game-cover.quiz {
  background-image: url("../img/duel.jpg");
}

.game-cover.memory {
  background-image: url("../img/muistipakka.jpg");
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(43, 52, 92, 0.72);
  color: #d9def8;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.hud-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hud-item {
  background: var(--panel-2);
}

.hud-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.hud-item strong {
  display: block;
  font-size: 1.1rem;
}

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

.rating {
  color: #f7c46d;
  font-weight: 800;
}

.faq-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.faq-content p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px 5px 12px 5px;
  background: rgba(36, 44, 80, 0.72);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

textarea {
  min-height: 120px;
}

.notice {
  margin-top: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notice.show {
  opacity: 1;
}

.site-footer {
  margin-top: 58px;
  padding: 34px 0 16px;
  background: rgba(10, 13, 29, 0.85);
  border-top: 1px solid rgba(178, 192, 255, 0.18);
}

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

.footer-column li {
  margin-bottom: 8px;
}

.footer-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.84rem;
  padding-top: 14px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(45, 53, 94, 0.72);
  padding: 4px 10px;
  font-size: 0.76rem;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 18px;
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-ribbon {
  border: 1px solid rgba(178, 192, 255, 0.36);
  border-radius: 16px 6px 16px 6px;
  background: linear-gradient(140deg, rgba(20, 28, 54, 0.96), rgba(30, 37, 68, 0.96));
  box-shadow: 0 24px 40px rgba(2, 4, 13, 0.45);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.cookie-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.cookie-head strong {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: 0.03em;
  color: #dffdf7;
}

.cookie-head span {
  font-size: 0.78rem;
  color: #b8c6f6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookie-ribbon p {
  margin: 0;
  color: #d4dcfb;
}

.cookie-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-points li {
  border: 1px solid rgba(178, 192, 255, 0.26);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  background: rgba(45, 54, 94, 0.5);
  color: #e1e7ff;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 20, 0.82);
  padding: 20px;
}

.age-panel {
  max-width: 540px;
  border-radius: 20px 8px 20px 8px;
  padding: 22px;
}

.age-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.94) rotateX(8deg);
  filter: blur(6px);
  transform-origin: 50% 100%;
}

.reveal.show {
  animation: blockReveal 0.78s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-alt {
  transform: translateY(24px) translateX(16px) scale(0.95) rotateX(6deg);
}

.float {
  animation: drift 6s ease-in-out infinite;
}

.pulse {
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.glint {
  position: relative;
  overflow: hidden;
}

.glint::after {
  content: "";
  position: absolute;
  top: -115%;
  left: -35%;
  width: 28%;
  height: 260%;
  transform: rotate(24deg);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: sweep 7.4s ease-in-out infinite;
}

.game-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.game-media-card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 22px 8px 22px 8px;
}

.game-media-card .cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.game-media-card.signals .cover {
  background-image: url("../img/spin.jpg");
}

.game-media-card.orbit .cover {
  background-image: url("../img/muistipakka.jpg");
}

.game-media-card.verdict .cover {
  background-image: url("../img/duel.jpg");
}

.game-media-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 12, 28, 0.45), rgba(11, 16, 35, 0.8));
}

.game-media-card .text {
  position: relative;
  z-index: 2;
  padding: 22px;
  max-width: 78%;
  color: #eef2ff;
}

.game-brief {
  border-radius: 20px 8px 20px 8px;
}

.game-brief ul {
  display: grid;
  gap: 8px;
}

.game-brief li {
  border-left: 3px solid rgba(94, 234, 212, 0.72);
  padding-left: 10px;
}

.metric-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-item {
  border-radius: 12px 5px 12px 5px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 10px;
}

.metric-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.metric-item strong {
  font-size: 1.06rem;
}

.status-title {
  margin-top: 12px;
  border-radius: 14px 6px 14px 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
}

.game-progress {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.progress-bar {
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(29, 35, 63, 0.72);
}

.progress-bar .fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-3));
  transition: width 0.25s ease;
}

.controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.orbit-arena {
  border-radius: 18px 8px 18px 8px;
  padding: 14px;
  background: rgba(26, 32, 60, 0.74);
}

.orbit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.orbit-node {
  min-height: 72px;
  border-radius: 12px 4px 12px 4px;
  border: 1px solid var(--line);
  background: rgba(45, 54, 94, 0.72);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.orbit-node:hover {
  transform: translateY(-1px);
}

.orbit-node.revealed {
  background: rgba(95, 113, 174, 0.7);
}

.orbit-node.locked {
  opacity: 0.68;
}

.orbit-back {
  font-size: 1.1rem;
  font-weight: 900;
}

.orbit-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}

.orbit-icon svg {
  width: 100%;
  height: 100%;
}

.orbit-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-table,
.spin-table {
  margin-top: 14px;
  border-radius: 18px 8px 18px 8px;
  border: 1px solid var(--line);
  background: rgba(22, 27, 52, 0.74);
  padding: 16px;
}

.table-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-meta .item,
.spin-meta .item {
  border-radius: 12px 5px 12px 5px;
  border: 1px solid var(--line);
  background: rgba(47, 56, 97, 0.72);
  padding: 9px;
}

.table-meta .item span,
.spin-meta .item span {
  display: block;
  color: #d6ddfa;
  font-size: 0.72rem;
}

.contract-row,
.bet-buttons {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contract-btn,
.bet-btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(53, 62, 106, 0.72);
  color: var(--ink);
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
}

.contract-btn.active,
.bet-btn.active {
  background: linear-gradient(120deg, var(--accent-3), var(--accent-4));
  border-color: transparent;
  color: #fff;
}

.table-board,
.reel-board {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.hand-zone {
  border-radius: 14px 6px 14px 6px;
  border: 1px solid var(--line);
  background: rgba(49, 58, 100, 0.56);
  padding: 10px;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playing-card {
  width: 70px;
  min-height: 98px;
  border-radius: 10px 4px 10px 4px;
  border: 1px solid #b7c7ff;
  background: linear-gradient(145deg, #f3f6ff, #e3ebff);
  color: #1e2340;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.playing-card button {
  all: unset;
}

.card-rank,
.card-suit {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.card-center {
  font-size: 1.08rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.card-rank.red,
.card-suit.red,
.card-center.red {
  color: #97224f;
}

.playing-card.playable {
  cursor: pointer;
  transition: transform 0.14s ease;
}

.playing-card.playable:hover {
  transform: translateY(-4px);
}

.playing-card.back {
  background: linear-gradient(145deg, #394987, #5268ba);
  color: #f3f6ff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

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

.trick-slot {
  min-height: 120px;
  border-radius: 12px 4px 12px 4px;
  border: 1px dashed rgba(191, 204, 255, 0.42);
  background: rgba(53, 63, 108, 0.56);
  display: grid;
  place-items: center;
}

.slot-label {
  color: #dae1fc;
  font-size: 0.78rem;
}

.match-log,
.win-log,
.pay-table {
  margin-top: 12px;
  border-radius: 12px 5px 12px 5px;
  border: 1px solid var(--line);
  background: rgba(53, 63, 108, 0.56);
  padding: 10px;
}

.spin-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.reel-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reel {
  border-radius: 12px 5px 12px 5px;
  border: 1px solid var(--line);
  background: rgba(53, 63, 108, 0.56);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.reel.spinning {
  animation: reelLift 0.34s linear infinite;
}

.reel-cell {
  min-height: 66px;
  border-radius: 10px 4px 10px 4px;
  border: 1px solid rgba(179, 194, 255, 0.52);
  background: linear-gradient(145deg, #f4f7ff, #dbe6ff);
  color: #1f2342;
  display: grid;
  place-items: center;
}

.reel-icon {
  font-size: 1.25rem;
}

.reel-label {
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

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

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

.pay-row {
  border-radius: 10px 4px 10px 4px;
  border: 1px solid var(--line);
  background: rgba(42, 50, 88, 0.62);
  padding: 8px;
  font-size: 0.86rem;
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(96, 165, 250, 0);
  }
  50% {
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.26);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-220%) rotate(24deg);
  }
  60%,
  100% {
    transform: translateX(420%) rotate(24deg);
  }
}

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

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

@keyframes blockReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.94) rotateX(8deg);
    filter: blur(6px);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01) rotateX(0deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float,
  .pulse,
  .glint::after,
  .site-bg-orbs span,
  .reel.spinning {
    animation: none !important;
    transition: none !important;
  }

  .home-hero::before,
  .page-hero::before {
    background-attachment: scroll;
  }
}

@media (max-width: 1080px) {
  .site-header .inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .grid-2,
  .grid-3,
  .feature-grid,
  .game-grid,
  .footer-grid,
  .achievement-grid,
  .hud-grid,
  .metric-strip,
  .spin-meta,
  .spin-controls,
  .controls,
  .table-meta,
  .duel-grid,
  .game-intro-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .policy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header .inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 14px 6px 14px 6px;
    border: 1px solid var(--line);
    background: rgba(22, 27, 52, 0.96);
    box-shadow: 0 20px 30px rgba(2, 4, 13, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 60;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    width: auto;
    justify-content: flex-end;
  }

  .header-cta .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .feature-grid,
  .game-grid,
  .footer-grid,
  .achievement-grid,
  .hud-grid,
  .metric-strip,
  .spin-meta,
  .spin-controls,
  .controls,
  .table-meta,
  .duel-grid,
  .game-intro-grid,
  .pay-table .rows,
  .trick-area {
    grid-template-columns: 1fr;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 62vh;
    padding: 98px 0 72px;
  }

  .page-hero {
    padding: 90px 0 56px;
  }

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

  .playing-card {
    width: 58px;
    min-height: 84px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }

  .cookie-ribbon {
    padding: 12px;
  }

  .cookie-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cookie-actions {
    flex-direction: column;
  }

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

  .game-grid .card:nth-child(even) .game-cover,
  .game-grid .card:nth-child(even) .card-body {
    order: initial;
  }

  .game-grid .card-body {
    padding: 16px;
  }
}
