html, body {
  margin: 0;
  height: 100%;
  font-family: "Poppins", Arial, sans-serif;
}
:root {
  --cursor: url("images/cursor.svg") 12 12, auto;
}
body {
  background-color: #334155;
  background-image:
    conic-gradient(from 150deg at 50% 0%, rgba(255, 255, 255, 0.08) 60deg, transparent 0);
  background-size: 50px 43px;
  cursor: var(--cursor);
}
a, a img, input {
  cursor: var(--cursor);
}
* {
  user-select: none;
}
input {
  user-select: text;
}
main {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 4rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}
input[type="search"] {
  padding: 20px 30px;
  width: min(800px, 90vw);
  border: none;
  border-radius: 20px;
  font: inherit;
  font-size: 1.3rem;
  text-align: center;
  box-sizing: border-box;
  margin-inline: auto;
  display: block;
  background: #3d4f68;
  color: #fff;
}
input[type="search"]:hover,
input[type="search"]:focus {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filter-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.chip {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: #3d4f68;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  cursor: var(--cursor);
}
.chip.active {
  outline: 2px solid rgba(255, 255, 255, 0.78);
}
.game {
  position: relative;
  display: inline-block;
  margin: 30px 10px 0;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}
.game:hover {
  transform: scale(1.05);
}
.game img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.game span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game:hover span {
  opacity: 1;
}
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}
.player[hidden] {
  display: none;
}
.player > iframe,
.player-bar {
  width: min(960px, 90vw);
  box-sizing: border-box;
}
#gameframe {
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  border-radius: 10px 10px 0 0;
  background: #000;
}
.player-bar {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  background: #3d4f68;
  border-radius: 0 0 10px 10px;
}
.player-bar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 4px 10px;
  cursor: var(--cursor);
}
nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  border-radius: 8px;
  background: #3d4f68;
}
nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  padding: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
nav img {
  width: 32px;
  height: 32px;
  filter: invert(1);
  transition: filter 0.3s ease;
}
nav a:hover img {
  filter: invert(0.7);
}
.online-badge {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #3d4f68;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.online-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
