/* ==========================================================================
   HERMES ARCADE / GAME HUB PORTAL - MODERN NEO-BRUTALIST & GLASSMORPHISM
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151a24;
  --bg-glass: rgba(18, 24, 38, 0.72);
  --bg-glass-card: rgba(22, 28, 44, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 240, 255, 0.35);
  --border-card: rgba(140, 160, 200, 0.16);

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-crimson: #f43f5e;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Orbitron', 'Prompt', sans-serif;
  --font-body: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 24px -4px rgba(0, 240, 255, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Mesh */
.ambient-mesh {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 140vw;
  height: 140vh;
  background: 
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.portal-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

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

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-label {
  color: var(--accent-green);
  font-weight: 600;
}

.status-counter {
  color: var(--text-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.5rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MAIN CONTENT & HERO SPOTLIGHT
   ========================================================================== */
.portal-main {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  flex: 1;
}

.hero-spotlight {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 29, 44, 0.85) 0%, rgba(13, 17, 26, 0.95) 100%);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(0, 240, 255, 0.15);
}

.hero-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 180%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.spotlight-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.featured-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tech-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.status-badge.live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.dev {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.spotlight-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.spotlight-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.spotlight-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00a2ff);
  color: #040810;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px -2px rgba(0, 240, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Spotlight Graphic / Art Frame */
.spotlight-graphic {
  position: relative;
  display: flex;
  justify-content: center;
}

.spotlight-frame {
  width: 100%;
  max-width: 440px;
  height: 270px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-neon);
}

.frame-art {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.spotlight-frame:hover .frame-art {
  transform: scale(1.04);
}

.kingshot-art {
  background-image: url('../assets/arcade_banner.jpg');
  background-size: cover;
  background-position: center;
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.95) 100%);
}

.art-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

/* Frame Corner Decors */
.frame-decor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-cyan);
  border-style: solid;
  z-index: 5;
  pointer-events: none;
}
.frame-decor.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.frame-decor.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.frame-decor.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.frame-decor.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* ==========================================================================
   TOOLBAR: FILTER & SEARCH
   ========================================================================== */
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

@media (min-width: 900px) {
  .toolbar-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.5rem 0.65rem 2.6rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   GAMES CATALOG & CARDS
   ========================================================================== */
.catalog-section {
  margin-bottom: 3.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.section-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.section-indicator.live {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.section-indicator.dev {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

/* Game Card */
.game-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-main);
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
}

.card-banner {
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-color: #121824;
}

.card-banner-art {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.game-card:hover .card-banner-art {
  transform: scale(1.08);
}

.warp-art {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.45) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #090314 0%, #1e1035 50%, #080d1a 100%);
}

.tower-art {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.35) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #181105 0%, #2e1d07 50%, #0d121c 100%);
}

.snake-art {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.35) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #04140e 0%, #0d2e20 50%, #091219 100%);
}

.orbit-art {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.35) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #03131e 0%, #082137 50%, #050b14 100%);
}

.ss2-art {
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.35) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #1f050d 0%, #3b0d1a 50%, #120914 100%);
}

.gol-art {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.35) 0%, rgba(13, 17, 26, 0.95) 75%),
              linear-gradient(135deg, #11051f 0%, #270b42 50%, #0c0914 100%);
}

.card-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 18, 26, 0.95) 100%);
}

.card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.3;
}

.card-category-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.spec-chip {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spec-chip.highlight {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.05);
}

/* Progress bar for Dev items */
.dev-progress-wrap {
  margin-bottom: 1.25rem;
}

.dev-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-pct {
  color: var(--accent-amber);
  font-weight: 600;
}

.dev-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.dev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), #fbbf24);
  border-radius: 3px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.6rem;
  margin-top: auto;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.card-btn-play {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 162, 255, 0.25));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.card-btn-play:hover {
  background: var(--accent-cyan);
  color: #050811;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.card-btn-dev {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.card-btn-dev:hover {
  background: var(--accent-amber);
  color: #050811;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.card-btn-ext {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.card-btn-ext:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

/* ==========================================================================
   GAME THEATER MODAL (IN-PAGE RUNNER)
   ========================================================================== */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theater-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.theater-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(20px);
}

.theater-window {
  position: relative;
  z-index: 2;
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 240, 255, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theater-modal.active .theater-window {
  transform: scale(1);
}

.theater-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
}

.theater-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theater-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.theater-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.theater-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theater-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theater-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.theater-btn.close-btn {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-crimson);
  padding: 0.45rem 0.6rem;
}

.theater-btn.close-btn:hover {
  background: var(--accent-crimson);
  color: #ffffff;
}

.theater-frame-wrap {
  flex: 1;
  min-height: 0;
  background: #000000;
  position: relative;
}

.theater-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Fullscreen mode for theater */
.theater-modal.fullscreen .theater-window {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  border-radius: 0;
  border: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.portal-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-shortcuts {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .spotlight-graphic {
    order: -1;
  }
  .spotlight-frame {
    max-width: 100%;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .portal-header {
    padding: 0.75rem 1rem;
  }
  .header-status-badge {
    display: none;
  }
  .hero-spotlight {
    padding: 1.25rem;
  }
  .spotlight-title {
    font-size: 1.5rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .theater-window {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
