/* ============================================
   Game Shell — Platform wrapper for all games
   ============================================ */

.game-page {
  max-width: var(--game-max-width);
  margin: 0 auto;
  padding: var(--space-4);
}

@media (min-width: 1024px) {
  .game-page {
    max-width: var(--container-max);
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
  }
}

.game-page__main {
  flex: 1;
  min-width: 0;
}

.game-page__sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .game-page__sidebar {
    display: block;
    width: 300px;
    flex-shrink: 0;
  }
}

/* ---- Game Shell Container ---- */
.game-shell {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: var(--space-4);
}

.game-shell__container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-shell__container canvas,
.game-shell__container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  touch-action: none;
}

/* ---- Game Toolbar ---- */
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.game-toolbar__left,
.game-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.game-toolbar__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.game-toolbar__btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.game-toolbar__btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.game-toolbar__btn .icon {
  width: 18px;
  height: 18px;
}

/* ---- Game Info ---- */
.game-info {
  margin-top: var(--space-4);
}

.game-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.game-info__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
}

.game-info__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.game-info__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* Controls info */
.game-info__controls {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.game-info__controls-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.game-info__controls-title .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.game-info__control-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.game-info__control-key {
  padding: var(--space-1) var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  min-width: 28px;
  text-align: center;
}

/* Similar games */
.game-similar {
  margin-top: var(--space-8);
}

.game-similar__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}
