* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0b0d12;
  color: white;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c2230;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #ffffff;
}

.top-actions input {
  background: #121723;
  border: 1px solid #20283a;
  padding: 10px 14px;
  border-radius: 12px;
  color: white;
  outline: none;
  width: 240px;
  font-size: 14px;
  transition: 0.2s;
}

.top-actions input:focus {
  border-color: #4f46e5;
}

.hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: none;
}

.hero h1 {
  font-size: 50px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero p {
  opacity: 0.75;
  font-size: 16px;
}

.games-section {
  padding: 30px 50px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 800;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.game-card {
  border: 1px solid #1d2434;
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
}


.game-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(79, 70, 229, 0.2);
  font-size: 22px;
}

.game-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.game-info p {
  font-size: 13px;
  opacity: 0.7;
}

.play-tag {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  padding: 6px 10px;
  border-radius: 10px;
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.loader-box {
  text-align: center;
  background: #121723;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #222b3d;
  width: 320px;
}

.loader-box h2 {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 900;
}

.loader-box p {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.65;
}

.spinner {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #4f46e5;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.game-page {
  position: fixed;
  inset: 0;
  background: #0b0d12;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.game-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(15, 18, 25, 0.9);
  border-bottom: 1px solid #1c2230;
    height: 60px;
  flex-shrink: 0;
}

.game-title {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.85;
}

.back-btn {
  background: #4f46e5;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}
.fullscreen-btn {
  background: #4f46e5;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}


.game-frame {
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
}
