/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Colors */
:root {
  --bg: #0f172a;
  --text: #e5e7eb;
  --accent: #0bfc03;
}

/* Base */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Particles canvas */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Header */
header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  pointer-events: none;
}

header img.logo {
  height: 40px;
  pointer-events: auto;
}

nav {
  pointer-events: auto;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--accent);
  color: black;
}

/* Content */
.hero {
  padding: 4rem 2rem;
  width: 100%;
  max-width: none;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Title glow */
.title {
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  font-size: 7rem;
  font-weight: 750;
  letter-spacing: 2px;
  margin-top: 100px;
}

/* Messages */
.custom-message {
  margin-top: 10px;
  font-size: 1rem;
  color: #ffffff;
  font-family: "verdana";
  text-shadow: 0 0 5px var(--text), 0 0 10px var(--text);
}

/* Search */
.search-container {
  margin: 2rem auto;
  max-width: 500px;
}

#game-search {
  width: 100%;
  padding: 12px 20px;
  background: rgba(11, 252, 3, 0.08);
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

#game-search:focus {
  background: rgba(11, 252, 3, 0.15);
  box-shadow: 0 0 20px rgba(11, 252, 3, 0.4);
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Gooey buttons (still used elsewhere) */
.c-button {
  font-weight: 700;
  font-size: 16px;
  padding: 0.9em 1.6em;
  cursor: pointer;
  position: relative;
  background: transparent;
  border: 4px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-button__blobs {
  height: 100%;
  filter: url(#goo);
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.c-button__blobs div {
  background-color: var(--accent);
  width: 34%;
  height: 100%;
  border-radius: 100%;
  position: absolute;
  transform: scale(1.4) translateY(125%);
  transition: all 700ms ease;
}

.c-button__blobs div:nth-child(1) { left: -5%; }
.c-button__blobs div:nth-child(2) { left: 30%; transition-delay: 65ms; }
.c-button__blobs div:nth-child(3) { left: 66%; transition-delay: 25ms; }

.c-button:hover {
  color: white;
}

.c-button:hover .c-button__blobs div {
  transform: scale(1.4) translateY(0);
}

/* Game container */
.game-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-container.hidden {
  display: none;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-game-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* Panic box */
.panic-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.panic-btn {
  background: var(--accent);
  border: none;
  color: black;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#panic-url-input {
  flex: 1;
  background: rgba(11,252,3,0.1);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 6px;
  border-radius: 6px;
}

/* Obfuscation slider */
.obfuscation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.obfuscation-slider {
  flex: 1;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(11,252,3,0.25);
  outline: none;
  accent-color: var(--accent);
}

.obfuscation-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}

.obfuscation-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}

/* ===================== */
/* NEW LUMIN GAME CARDS */
/* ===================== */

.game-card-container {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.game-card-container:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(11, 252, 3, 0.35));
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .glass {
  position: relative;
  width: 180px;
  height: 200px;

  border-radius: 12px;
  overflow: hidden;

  background: linear-gradient(#ffffff10, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(10px);
  transition: 0.3s ease;

  transform: none !important;
}

.container:hover .glass {
  transform: rotate(0deg);
}

.container .glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;

  width: 100%;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 600;

  color: white;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.loader {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.jimu-primary-loading {
  background: var(--accent);
  animation: loading-keys-app-loading 0.8s infinite ease-in-out;
  width: 13.6px;
  height: 32px;
  position: relative;
}

.jimu-primary-loading:before,
.jimu-primary-loading:after {
  position: absolute;
  top: 0;
  content: '';
  background: var(--accent);
  width: 13.6px;
  height: 32px;
  animation: loading-keys-app-loading 0.8s infinite ease-in-out;
}

.jimu-primary-loading:before {
  left: -19.992px;
}

.jimu-primary-loading:after {
  left: 19.992px;
  animation-delay: 0.32s;
}

.jimu-primary-loading {
  animation-delay: 0.16s;
}

@keyframes loading-keys-app-loading {
  0%, 80%, 100% {
    opacity: .75;
    box-shadow: 0 0 var(--accent);
    height: 32px;
  }
  40% {
    opacity: 1;
    box-shadow: 0 -8px var(--accent);
    height: 40px;
  }
}
#games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  min-height: 200px;
}
#games-grid {
  position: relative;
  min-height: 250px;
}
/* ===================== */
/* FLOATING NAV DOCK */
/* ===================== */

.nav-dock {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  
  border-radius: 12px;

  backdrop-filter: blur(10px);
  overflow: hidden;

  transition: all 0.25s ease;
}

/* expanded */
.nav-dock:hover {
  width: 197.33px;
  height: 325.5px;
}

/* container */
.nav-expanded {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* links */
.nav-expanded a {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  text-decoration: none;
  color: var(--text);

  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

/* icons */
.nav-expanded img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(93%) saturate(6000%) hue-rotate(60deg);
}

/* ✅ COLLAPSED: show ONLY active, perfectly centered */
.nav-dock:not(:hover) .nav-expanded a.active {
  opacity: 1;
  pointer-events: auto;

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* hide text when collapsed */
.nav-dock:not(:hover) .nav-expanded a.active span {
  display: none;
}

/* ✅ EXPANDED: show all normally */
.nav-dock:hover .nav-expanded a {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* hover effect */
.nav-expanded a:hover {
  background: var(--accent);
  color: black;
}
.nav-expanded {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center items vertically */
  height: 100%;
}
.nav-expanded a {
  padding: 12px 14px;
}
.credits-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.credits-list p {
  font-size: 16px;
  color: white;
}

.credits-list a {
  color: var(--accent);
  text-decoration: none;
}

.credits-list a:hover {
  text-decoration: underline;
}
.panic-box input {
  width: 100%;
  background: rgba(11, 252, 3, 0.08);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}

/* focus state */
.panic-box input:focus {
  background: rgba(11, 252, 3, 0.15);
  box-shadow: 0 0 10px rgba(11, 252, 3, 0.35);
}
#panic-key-display {
  display: inline-block;
  text-align: center;
  min-width: 40px;
  padding: 4px 10px;
  color: #0bfc03;
}
.panic-btn {
  color: #ffffff;
}
#content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
}
.hero h2 {
  margin-top: 20px;
}
.top-clock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  flex-direction: row;   /* IMPORTANT */
  align-items: center;
  justify-content: center;

  padding: 10px 0;
  gap: 20px;

  font-size: 20px;
}

/* LEFT: time */
.clock-left {
  font-size: 24px;
  font-weight: 600;
  color: #0bfc03;
  display: flex;
  align-items: center;
}

/* VERTICAL divider */
.clock-divider {
  width: 1px;
  height: 30px;
  background: #0bfc03;
  opacity: 0.7;
}

/* RIGHT: date */
.clock-right {
  font-size: 18px;
  color: white;
  opacity: 0.9;
  display: flex;
  align-items: center;
}
.hero {
  padding-top: 35px; /* was likely 60px or more */
}
#games-grid {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  justify-content: center;
  gap: 1.5rem;
} 
#games-grid {
  overflow-x: auto;
}
