* {
  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-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 10px 0;
}

.game-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid #1f1f1f;
  transition: transform 0.2s;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

@keyframes macFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #3b82f6;
  animation: macFloat 0.9s ease-in-out infinite;
  transform: scale(1.08);
}


.game-cover {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.game-info {
  padding: 22px;
}

.game-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: white;

  white-space: normal;
  word-break: break-word;
}

.game-info p {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.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;
}
.discord-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform .15s ease;
}

.discord-float span{ display:none; }

.discord-float img{
  width: 24px;
  height: 24px;
}
.discord-float:hover{ transform: translateY(-3px); }
