/* ===== Web4 game (slide 4) ===== */
.game-stage {
  width: min(620px, 100%);
  aspect-ratio: 16 / 11;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,0.55));
  position: relative;
}
.game-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #0a1018 0%, #04070c 100%);
  transform: rotateX(6deg) rotateY(-10deg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 60px rgba(0,0,0,0.4);
}
.game-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
  z-index: 12;
}

.game-hud {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(4, 7, 12, 0.5);
  z-index: 5;
  position: relative;
}
.game-hud-l { text-align: left; }
.game-hud-c { text-align: center; }
.game-hud-r { text-align: right; }
.game-hud-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  font-family: var(--font-mono);
}
.game-hud-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.game-hud-score {
  font-size: 22px;
  background: linear-gradient(180deg, #e8fdff 0%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.game-hud-combo { color: var(--cyan-2); font-size: 12px; }
.game-tok-ico { color: #fbbf24; margin-right: 4px; }

.game-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.game-hex {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.game-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(34, 211, 238, 0.05) 50%, transparent 51%);
  background-size: 100% 4px;
  opacity: 0.6;
  animation: game-scan 3s linear infinite;
}
@keyframes game-scan {
  to { background-position: 0 -100%; }
}

.game-floater {
  position: absolute;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  animation: float-in 280ms ease-out, float-bob 2.6s ease-in-out infinite 280ms;
}
@keyframes float-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes float-bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-5px); }
}
.game-floater:hover { z-index: 4; }
.game-floater:active { transform: translate(-50%, -50%) scale(0.85); }
.game-floater-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.game-f-cube .game-floater-glow { background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%); }
.game-f-gem .game-floater-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.5) 0%, transparent 70%); }
.game-f-token .game-floater-glow { background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, transparent 70%); }
.game-f-bomb .game-floater-glow { background: radial-gradient(circle, rgba(251, 113, 133, 0.4) 0%, transparent 70%); }
.game-floater-mark { position: relative; }

.game-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  z-index: 6;
  animation: game-pop-up 800ms ease-out forwards;
}
.game-pop-good { color: #5eead4; text-shadow: 0 0 10px rgba(94, 234, 212, 0.6); }
.game-pop-bad { color: #fb7185; text-shadow: 0 0 10px rgba(251, 113, 133, 0.6); }
@keyframes game-pop-up {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-32px); }
}

.game-event {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  z-index: 5;
  animation: game-event-pop 1.4s ease-in-out infinite;
}
@keyframes game-event-pop {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(4, 7, 12, 0.6);
  flex-wrap: wrap;
  z-index: 5;
  position: relative;
}
.game-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms;
}
.game-btn:hover { color: var(--ink); background: rgba(255,255,255,0.08); }
.game-btn-primary {
  background: linear-gradient(180deg, #5eead4, #22d3ee);
  color: #04141a;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px -4px rgba(34, 211, 238, 0.45);
}
.game-btn-primary:hover { color: #04141a; transform: translateY(-1px); }

.game-energy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  margin: 0 4px;
}
.game-energy-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.game-energy-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.game-energy-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5eead4, #22d3ee);
  border-radius: inherit;
  transition: width 400ms ease;
}
.game-energy-val {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  min-width: 32px;
  text-align: right;
}

@media (max-width: 1100px) {
  .game-screen { transform: none; }
  .game-controls { gap: 6px; }
  .game-energy { min-width: 100%; order: 99; }
}

/* ===== Team Agents (replaces BoosterX content) ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.team-card {
  position: relative;
  padding: 22px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms, transform 200ms;
}

.team-card-portrait {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 40%, #04141a));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 12px 28px -8px color-mix(in oklab, var(--c) 35%, transparent);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card-portrait img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover .team-card-portrait img { transform: scale(1.08) rotate(-2deg); }
.team-card-pulse {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #5eead4;
  border: 3px solid #0a1018;
  box-shadow: 0 0 12px #5eead4;
  animation: team-pulse 2s ease-in-out infinite;
}
@keyframes team-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.team-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in oklab, var(--c) 12%, transparent), transparent 65%);
  pointer-events: none;
}
.team-card > * { position: relative; }
/* (team-card-avatar legacy — kept for backwards-compat) */
.team-card-avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 50%, #04141a));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #04141a;
}
.team-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0;
}
.team-card-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
  margin-top: 2px;
}
.team-card-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px;
}
.team-card-tag {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.team-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.team-card-status .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 5px #5eead4;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== Voice Section ===== */
.sec-voice {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.sec-voice .voice-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.voice-orb-1 {
  position: absolute;
  top: 30%; left: 50%;
  width: 800px; height: 800px;
  background: rgba(124, 92, 255, 0.18);
  border-radius: 999px;
  filter: blur(80px);
  transform: translateX(-50%);
}
.voice-orb-2 {
  position: absolute;
  top: 30%; left: 50%;
  width: 500px; height: 500px;
  background: rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  filter: blur(60px);
  transform: translateX(-50%);
}
.voice-mic-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 40px;
}
.voice-mic-waves {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80px;
  pointer-events: none;
}
.voice-mic {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #818cf8 0%, #7c5cff 50%, #22d3ee 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(124, 92, 255, 0.15),
    0 30px 60px -10px rgba(124, 92, 255, 0.5),
    inset 0 2px 0 rgba(255,255,255,0.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
  z-index: 3;
}
.voice-mic:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 10px rgba(124, 92, 255, 0.18),
    0 36px 70px -10px rgba(124, 92, 255, 0.6),
    inset 0 2px 0 rgba(255,255,255,0.4);
}
.voice-mic.listening {
  animation: voice-pulse 1.4s ease-in-out infinite;
}
.voice-mic.listening::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(34, 211, 238, 0.5);
  animation: voice-ring 2s ease-out infinite;
}
.voice-mic.listening::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(124, 92, 255, 0.5);
  animation: voice-ring 2s ease-out infinite 0.7s;
}
@keyframes voice-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes voice-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.voice-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  line-height: 1.1;
  color: var(--ink);
}
.voice-heading em {
  font-style: italic;
  background: linear-gradient(180deg, #d8fbff 0%, #5eead4 60%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}
.voice-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 15px;
  margin: 0 0 28px;
}
.voice-sub svg { color: var(--cyan-2); }

.voice-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.voice-cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.voice-cta .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--ink-3);
  box-shadow: 0 0 5px transparent;
  transition: all 200ms;
}
.voice-cta.active .dot { background: #5eead4; box-shadow: 0 0 8px #5eead4; }

.voice-transcript {
  margin: 28px auto 0;
  max-width: 640px;
  padding: 16px 22px;
  background: rgba(10, 16, 24, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  font-style: italic;
  letter-spacing: -0.005em;
  backdrop-filter: blur(8px);
}
.voice-transcript .muted-2 { color: var(--ink-4); font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; display: block; margin-bottom: 6px; }
