:root {
  --bg: #020914;
  --bg-2: #06182a;
  --panel: rgba(5, 22, 38, 0.76);
  --panel-strong: rgba(9, 34, 58, 0.92);
  --text: #f4fbff;
  --muted: #9fb8ce;
  --cyan: #00e5ff;
  --cyan-2: #26a8ff;
  --blue: #2067ff;
  --purple: #b95cff;
  --orange: #ff7a1a;
  --gold: #f3b31a;
  --green: #8ed957;
  --line: rgba(0, 229, 255, 0.28);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.15), transparent 32%),
              radial-gradient(circle at 85% 18%, rgba(32, 103, 255, 0.20), transparent 28%),
              linear-gradient(135deg, #020711 0%, #061527 48%, #020914 100%);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 229, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 32px 32px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -3;
}
.noise {
  position: fixed;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: -2;
}

.site-header {
  width: min(var(--max), calc(100% - 32px));
  position: sticky;
  top: 16px;
  z-index: 40;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: rgba(2, 10, 22, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34), inset 0 0 25px rgba(0, 229, 255, 0.04);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #001018;
  font-weight: 950;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.42);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; letter-spacing: 0.05em; }
.brand-copy em { color: var(--cyan); font-style: normal; }
.brand-copy small { color: var(--muted); font-size: 0.72rem; margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 180ms ease;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.24);
}
.menu-toggle { display: none; }

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 110px;
}

.hero {
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 52px;
  padding-top: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}
.eyebrow.compact { margin-bottom: 8px; font-size: 0.72rem; }

h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
h1 {
  font-size: clamp(3.1rem, 8vw, 7.1rem);
  letter-spacing: -0.08em;
  max-width: 880px;
  text-shadow: 0 0 35px rgba(0, 229, 255, 0.12);
}
h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); letter-spacing: -0.06em; }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
h4 { font-size: 1rem; }
p { color: var(--muted); line-height: 1.75; }
.hero-lead { font-size: 1.15rem; max-width: 640px; margin: 24px 0 0; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #00131d;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.35);
}
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 229, 255, 0.05);
}

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 12px; max-width: 660px; }
.hero-stats article {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(1, 16, 30, 0.72);
}
.hero-stats strong { display: block; font-size: 1.45rem; color: var(--text); }
.hero-stats span { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.hero-visual { position: relative; }
.glow-card {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.16), rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow), 0 0 70px rgba(0, 229, 255, 0.14);
  overflow: hidden;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 130deg, transparent, rgba(0, 229, 255, 0.28), transparent 28%);
  animation: spin 8s linear infinite;
  opacity: 0.72;
}
.glow-card img { position: relative; z-index: 1; border-radius: 22px; }
.product-card {
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.product-card::before { display: none; }
.product-card img {
  border-radius: 0;
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(0, 229, 255, 0.16));
}
.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 11, 22, 0.78);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}
.chip-a { left: -20px; top: 18%; animation: float 4s ease-in-out infinite; }
.chip-b { right: -10px; top: 48%; animation: float 5s ease-in-out infinite reverse; }
.chip-c { left: 26%; bottom: -14px; animation: float 5.5s ease-in-out infinite; }

.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading p { font-size: 1.05rem; margin-bottom: 0; }
.section-heading.slim { margin-bottom: 22px; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr); gap: 24px; align-items: stretch; }
.board-frame, .tabs-card, .symbols-panel, .interactive-console, .cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(6, 28, 48, 0.84), rgba(2, 9, 20, 0.82));
  box-shadow: var(--shadow), inset 0 0 35px rgba(0, 229, 255, 0.05);
}
.board-frame { padding: 12px; overflow: hidden; }
.board-frame img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 16px; }
.feature-list article {
  padding: 22px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 22px;
  background: rgba(0, 229, 255, 0.05);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid var(--line);
}
.feature-list p { margin-bottom: 0; }

.interactive-console {
  margin-top: 24px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.interactive-console h3 { margin-bottom: 8px; }
.interactive-console p { margin: 0; }
.dice-zone { display: flex; align-items: center; gap: 16px; }
.dice {
  width: 82px;
  height: 82px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.20), rgba(32, 103, 255, 0.22));
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 950;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.22);
}
.dice.rolling { animation: diceShake 420ms ease; }
.turn-result {
  display: grid;
  min-width: 260px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.18);
}
.turn-result span { color: var(--muted); font-size: 0.92rem; margin-top: 4px; line-height: 1.5; }

.tabs-card { padding: 14px; }
.tab-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.10);
}
.tab-button {
  border: 0;
  cursor: pointer;
  padding: 15px 14px;
  color: var(--muted);
  border-radius: 16px;
  background: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 180ms ease;
}
.tab-button.active {
  color: #00131d;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.30);
}
.tab-panel { padding: 30px 14px 14px; }
.rule-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.rule-grid article {
  padding: 24px;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.05);
}
.rule-grid p { margin-bottom: 0; }
.rule-highlight { background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(32, 103, 255, 0.12)) !important; }
.rule-highlight span { display: inline-flex; color: var(--cyan); font-weight: 950; margin-bottom: 26px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li {
  padding: 22px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 22px;
  background: rgba(0, 229, 255, 0.05);
}
.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #00131d;
  font-weight: 950;
}
.steps p { margin: 0; color: var(--text); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow div {
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.05);
}
.flow span { display: block; color: var(--cyan); font-size: 1.8rem; margin-bottom: 16px; }
.flow strong, .flow small { display: block; }
.flow small { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.victory-card { text-align: center; max-width: 680px; margin: 0 auto; padding: 30px; }
.shield-icon { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 24px; border: 1px solid var(--line); background: rgba(0, 229, 255, 0.10); font-size: 2rem; }
.victory-card p { margin-bottom: 0; }

.components-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.component-card, .category-card {
  min-height: 215px;
  padding: 24px;
  text-align: left;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(6, 28, 48, 0.80), rgba(2, 9, 20, 0.76));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22), inset 0 0 25px rgba(0, 229, 255, 0.04);
}
.component-card span, .hex {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-size: 1.7rem;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.10);
}
.component-card p, .category-card small { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.category-card { cursor: pointer; transition: 180ms ease; color: var(--text); }
.category-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.55); }
.category-card strong { display: block; font-size: 1.08rem; margin-bottom: 10px; }
.category-card small { display: block; }
.cat-blue .hex { color: #64b5ff; border-color: rgba(100, 181, 255, 0.5); }
.cat-cyan .hex { color: #00fff0; border-color: rgba(0, 255, 240, 0.5); }
.cat-purple .hex { color: #d783ff; border-color: rgba(215, 131, 255, 0.5); }
.cat-orange .hex { color: #ff8a2a; border-color: rgba(255, 138, 42, 0.5); }
.cat-gold .hex { color: #ffc928; border-color: rgba(255, 201, 40, 0.5); }
.cat-green .hex { color: #9cff68; border-color: rgba(156, 255, 104, 0.5); }
.symbols-panel { margin-top: 24px; padding: 26px; }
.symbols-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.symbols-grid article {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.05);
}
.symbols-grid span { display: block; color: var(--cyan); font-size: 1.4rem; font-weight: 950; margin-bottom: 10px; }
.symbols-grid strong, .symbols-grid small { display: block; }
.symbols-grid small { margin-top: 8px; color: var(--muted); line-height: 1.4; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 10, 20, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.cta-section { padding-top: 24px; }
.cta-card { padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta-card p { max-width: 680px; margin: 18px auto 28px; }

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(0, 229, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}
.site-footer p { margin: 0; font-size: 0.92rem; }
.site-footer em { color: var(--cyan); font-style: normal; }

.lightbox {
  width: min(1100px, calc(100% - 28px));
  max-height: 88vh;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(2, 9, 20, 0.96);
  box-shadow: var(--shadow), 0 0 80px rgba(0, 229, 255, 0.16);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: calc(88vh - 20px); object-fit: contain; border-radius: 18px; }
.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.52);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes diceShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.04); }
  50% { transform: rotate(8deg) scale(0.98); }
  75% { transform: rotate(-4deg) scale(1.02); }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { max-width: 720px; margin: 0 auto; }
  .feature-layout { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .rule-grid, .components-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .symbols-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { top: 10px; border-radius: 24px; align-items: flex-start; }
  .brand { min-width: 0; }
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(0, 229, 255, 0.07);
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--text); }
  .main-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 70px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 10, 22, 0.96);
  }
  .site-header.menu-open .main-nav { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
  .section { padding: 68px 0; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .interactive-console, .dice-zone, .site-footer { flex-direction: column; align-items: stretch; }
  .turn-result { min-width: 0; }
  .tab-list { grid-template-columns: 1fr; }
  .steps, .rule-grid, .components-grid, .category-grid, .flow, .symbols-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .floating-chip { display: none; }
}

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

.gallery-item img.contain { object-fit: contain; padding: 18px; }

.product-card img {
  border-radius: 0;
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 30px rgba(0, 229, 255, 0.18));
}

.manual-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(6, 28, 48, 0.84), rgba(2, 9, 20, 0.82));
  box-shadow: var(--shadow), inset 0 0 35px rgba(0, 229, 255, 0.05);
}

.manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.05);
}

.manual-toolbar strong,
.manual-toolbar span {
  display: block;
}

.manual-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.manual-frame {
  width: 100%;
  min-height: 780px;
  border: 0;
  display: block;
  background: #03101d;
}

@media (max-width: 760px) {
  .manual-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-frame {
    min-height: 680px;
  }
}

.floating-chip { display: none !important; }


/* Linha de jogo interativa */
.game-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.game-control-panel,
.game-board-stage,
.game-question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(6, 28, 48, 0.84), rgba(2, 9, 20, 0.82));
  box-shadow: var(--shadow), inset 0 0 35px rgba(0, 229, 255, 0.05);
}

.game-control-panel {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 110px;
}

.game-control-panel h3 { margin-bottom: 20px; }

.game-control-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.game-control-panel select {
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 16px;
  padding: 0 14px;
}

.game-status-card,
.game-dice-card,
.game-score-card {
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.05);
  padding: 16px;
  margin-bottom: 16px;
}

.game-status-card small,
.game-dice-card small,
.game-score-card small,
.game-explanation small {
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.game-status-card strong,
.game-dice-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.game-dice-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nq-dice {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(38, 168, 255, 0.22));
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 2.1rem;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.nq-dice.rolling { animation: diceShake 420ms ease; }

#nqScoreList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-weight: 800;
}

.game-board-stage {
  padding: clamp(12px, 2vw, 20px);
  display: grid;
  place-items: center;
  min-height: 680px;
}

.game-board-wrap {
  position: relative;
  width: min(860px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.game-board-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.16));
}

.game-piece {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: clamp(28px, 3.8vw, 48px);
  height: clamp(28px, 3.8vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 46%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 22px currentColor;
  transform: translate(-50%, -70%);
  transition: left 750ms cubic-bezier(0.2, 0.8, 0.2, 1), top 750ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 250ms ease;
  z-index: 4;
  animation: gamePieceFloat 2.4s ease-in-out infinite;
}

.game-piece::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 35%;
  bottom: -16%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(4px);
  z-index: -1;
}

.game-piece.active {
  transform: translate(-50%, -70%) scale(1.18);
  outline: 3px solid rgba(0, 229, 255, 0.42);
}

.game-piece.hidden { display: none; }
.piece-1 { background: linear-gradient(145deg, #2f8cff, #003edb); color: #4db8ff; }
.piece-2 { background: linear-gradient(145deg, #ff7a1a, #b63a00); color: #ff8a2a; }
.piece-3 { background: linear-gradient(145deg, #9cff68, #357800); color: #9cff68; }
.piece-4 { background: linear-gradient(145deg, #d783ff, #661097); color: #d783ff; }
.piece-5 { background: linear-gradient(145deg, #ffc928, #9d6d00); color: #ffc928; }
.piece-6 { background: linear-gradient(145deg, #00fff0, #007a85); color: #00fff0; }

.game-question-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.game-question-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.game-badge {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  font-weight: 900;
  white-space: nowrap;
}

.game-question-text {
  margin: 24px 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  line-height: 1.35;
  max-width: 1050px;
}

.game-options-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.option-btn {
  width: 100%;
  min-height: 62px;
  padding: 16px 18px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(0, 229, 255, 0.24);
  background: rgba(0, 229, 255, 0.06);
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.58);
  background: rgba(0, 229, 255, 0.1);
}

.option-letter {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #00131d;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-weight: 950;
}

.option-btn.correct {
  border-color: rgba(142, 217, 87, 0.8);
  background: rgba(142, 217, 87, 0.16);
}

.option-btn.wrong {
  border-color: rgba(255, 72, 106, 0.8);
  background: rgba(255, 72, 106, 0.14);
}

.option-btn:disabled { cursor: default; opacity: 0.9; }

.game-feedback {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.06);
  color: var(--text);
  font-weight: 850;
}

.game-feedback.good {
  border-color: rgba(142, 217, 87, 0.55);
  background: rgba(142, 217, 87, 0.1);
}

.game-feedback.bad {
  border-color: rgba(255, 72, 106, 0.55);
  background: rgba(255, 72, 106, 0.1);
}

.game-explanation {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.game-explanation strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.game-question-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.full { width: 100%; }

@keyframes gamePieceFloat {
  50% { margin-top: -8px; }
}

@media (max-width: 1000px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-control-panel { position: static; }
  .game-board-stage { min-height: auto; }
}

@media (max-width: 760px) {
  .game-question-top { flex-direction: column; }
  .game-question-actions .btn { width: 100%; }
}
