:root {
  --bg-color: #121212;
  --card-bg: #1f1f1f;
  --overlay-bg:#000;;
  --text-color: #e0e0e0;
  --accent: #bb86fc;
  --accent-hover: #d0a9ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  text-align: center;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* mobile-only button hidden on desktop */
.mobile-only {
  display: none;
}

/* only show on phones */
@media (max-width: 600px) {
  .mobile-only {
    display: inline-block;
    margin-bottom: 1rem;
  }
}

#game-wrapper {
  position: relative;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-top: 1.5rem;
}

#player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
}

#player-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

#video-title {
  display: none;
  margin: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

#overlay {
  position: absolute;
  inset: 0;
  background: #000;;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10;
}

.button-group {
  display: flex;
  flex-direction: column;  /* stack vertically */
  align-items: center;     /* center horizontally */
  gap: 10px;               /* spacing between buttons */
  margin-top: 8px;
}