@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --accent: #00e1ff;
  --bg: #0b0f19;
  --card-bg: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --text: #fff;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #111827, #0b0f19);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glassy {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  position: sticky;
  top: 0;
}

.logo {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--accent);
}

.controls {
  display: flex;
  gap: 1em;
}

input#search {
  background: rgba(255,255,255,0.05);
  border: none;
  padding: 0.6em 1em;
  border-radius: 10px;
  outline: none;
  color: white;
}

.logout-btn {
  background: var(--accent);
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 10px;
  cursor: pointer;
  color: #000;
  font-weight: 600;
  transition: 0.3s;
}
.logout-btn:hover {
  background: white;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  padding: 2em;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.5em;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}
.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1em;
}

.frame-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1em;
}

.game-frame {
  width: 90%;
  height: 600px;
  border: none;
  border-radius: 15px;
  background: #000;
  display: none;
}

.footer {
  margin-top: auto;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #aaa;
}
