/* === ARCADE LOBBY SHELL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body.arcade-hub {
  background: #0a0f1e;
  color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  cursor: default;
  overflow-x: hidden;
}

/* NAV */
.game-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(10, 15, 30, 0.9);
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.5px;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  font-size: 14px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  color: #00f5ff;
  background: rgba(0, 245, 255, 0.05);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: #00f5ff;
}

/* HEADER */
.arcade-header {
  text-align: center;
  padding: 60px 20px 30px;
  position: relative;
}
.arcade-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00f5ff;
  margin-bottom: 12px;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}
.arcade-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow:
    0 0 40px rgba(0, 245, 255, 0.4),
    0 0 80px rgba(0, 245, 255, 0.15);
  margin: 0 0 16px;
}
.arcade-desc {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.8;
}

/* CARD GRID AREA */
.arcade-grid-area {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.arcade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .arcade-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* SCHEMATIC EDITORIAL CARD */
.arcade-card {
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 380px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Corner ticks mimicking Brice Clain wireframes */
.arcade-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  transition: all 0.35s;
  pointer-events: none;
}
.arcade-card.ttt-glow::after {
  top: 12px;
  right: 12px;
  border-top-color: rgba(0, 245, 255, 0.2);
  border-right-color: rgba(0, 245, 255, 0.2);
}
.arcade-card.matiks-glow::after {
  top: 12px;
  right: 12px;
  border-top-color: rgba(245, 158, 11, 0.2);
  border-right-color: rgba(245, 158, 11, 0.2);
}
.arcade-card::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  transition: all 0.35s;
  pointer-events: none;
}
.arcade-card.ttt-glow::before {
  bottom: 12px;
  left: 12px;
  border-bottom-color: rgba(0, 245, 255, 0.2);
  border-left-color: rgba(0, 245, 255, 0.2);
}
.arcade-card.matiks-glow::before {
  bottom: 12px;
  left: 12px;
  border-bottom-color: rgba(245, 158, 11, 0.2);
  border-left-color: rgba(245, 158, 11, 0.2);
}

/* Hover States */
.arcade-card.ttt-glow:hover {
  border-color: rgba(0, 245, 255, 0.4);
  background: radial-gradient(
    circle at top right,
    rgba(0, 245, 255, 0.05) 0%,
    rgba(10, 15, 30, 0.95) 80%
  );
  box-shadow:
    0 0 40px rgba(0, 245, 255, 0.08),
    inset 0 0 30px rgba(0, 245, 255, 0.02);
  transform: translateY(-5px);
}
.arcade-card.ttt-glow:hover::after {
  border-top-color: #00f5ff;
  border-right-color: #00f5ff;
  transform: translate(3px, -3px);
}
.arcade-card.ttt-glow:hover::before {
  border-bottom-color: #00f5ff;
  border-left-color: #00f5ff;
  transform: translate(-3px, 3px);
}

.arcade-card.matiks-glow:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: radial-gradient(
    circle at top right,
    rgba(245, 158, 11, 0.05) 0%,
    rgba(10, 15, 30, 0.95) 80%
  );
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.08),
    inset 0 0 30px rgba(245, 158, 11, 0.02);
  transform: translateY(-5px);
}
.arcade-card.matiks-glow:hover::after {
  border-top-color: #f59e0b;
  border-right-color: #f59e0b;
  transform: translate(3px, -3px);
}
.arcade-card.matiks-glow:hover::before {
  border-bottom-color: #f59e0b;
  border-left-color: #f59e0b;
  transform: translate(-3px, 3px);
}

/* Card Elements */
.card-top {
  width: 100%;
}
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.game-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.ttt-glow:hover .game-icon-box {
  color: #00f5ff;
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}
.matiks-glow:hover .game-icon-box {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.card-num {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.3;
}
.card-title {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.card-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Tech tags */
.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.tech-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}
.ttt-glow:hover .tech-tag {
  color: rgba(0, 245, 255, 0.7);
  border-color: rgba(0, 245, 255, 0.15);
  background: rgba(0, 245, 255, 0.03);
}
.matiks-glow:hover .tech-tag {
  color: rgba(245, 158, 11, 0.7);
  border-color: rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.03);
}

/* Launch Button */
.launch-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s;
}
.ttt-btn {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
  color: #00f5ff;
}
.ttt-btn:hover {
  background: #00f5ff;
  color: #0a0f1e;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}
.matiks-btn {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  color: #f59e0b;
}
.matiks-btn:hover {
  background: #f59e0b;
  color: #0a0f1e;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Ambient Scanline overlay */
.arcade-scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Grid lines decoration background */
.blueprint-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* Tether Drop Card schematic details */
.arcade-card.tether-glow::after {
  top: 12px;
  right: 12px;
  border-top-color: rgba(0, 245, 255, 0.2);
  border-right-color: rgba(0, 245, 255, 0.2);
}
.arcade-card.tether-glow::before {
  bottom: 12px;
  left: 12px;
  border-bottom-color: rgba(0, 245, 255, 0.2);
  border-left-color: rgba(0, 245, 255, 0.2);
}

.arcade-card.tether-glow:hover {
  border-color: rgba(0, 245, 255, 0.4);
  background: radial-gradient(
    circle at top right,
    rgba(0, 245, 255, 0.05) 0%,
    rgba(10, 15, 30, 0.95) 80%
  );
  box-shadow:
    0 0 40px rgba(0, 245, 255, 0.08),
    inset 0 0 30px rgba(0, 245, 255, 0.02);
  transform: translateY(-5px);
}
.arcade-card.tether-glow:hover::after {
  border-top-color: #00f5ff;
  border-right-color: #00f5ff;
  transform: translate(3px, -3px);
}
.arcade-card.tether-glow:hover::before {
  border-bottom-color: #00f5ff;
  border-left-color: #00f5ff;
  transform: translate(-3px, 3px);
}

.tether-glow:hover .game-icon-box {
  color: #00f5ff;
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.tether-glow:hover .tech-tag {
  color: rgba(0, 245, 255, 0.7);
  border-color: rgba(0, 245, 255, 0.15);
  background: rgba(0, 245, 255, 0.03);
}

.tether-btn {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
  color: #00f5ff;
}
.tether-btn:hover {
  background: #00f5ff;
  color: #0a0f1e;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}
