:root {
  --bg: #00006a;
  --bg-deep: #00003a;
  --red: #a80000;
  --yellow: #fcfc54;
  --white: #fcfcfc;
  --frame: #5454fc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 50% -10%, #1414b0 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  min-height: 100vh;
  padding: 28px 16px 40px;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

.shell {
  max-width: 860px;
  margin: 0 auto;
}

/* ---- header ---- */

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--white);
}

.lang-opt {
  background: #000;
  color: var(--white);
  border: 2px solid #2a2a90;
  padding: 6px 14px;
  font-family: inherit;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

.lang-opt:hover {
  background: #101060;
}

.lang-opt.sel {
  background: var(--yellow);
  color: #000;
  border-color: var(--white);
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.hero h1 {
  display: inline-block;
  background: var(--red);
  color: var(--yellow);
  margin: 0 0 16px;
  padding: 12px 28px;
  font-size: clamp(26px, 6vw, 46px);
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 #000;
  border: 3px solid var(--frame);
  box-shadow: 0 0 0 3px #000, 0 8px 30px rgba(0, 0, 0, 0.5);
}

.tagline {
  color: var(--yellow);
  font-size: clamp(14px, 2.6vw, 18px);
  margin: 0 0 8px;
  text-shadow: 1px 1px 0 #000;
}

.intro {
  color: var(--white);
  font-size: 13px;
  font-weight: normal;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- game grid ---- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}

.game-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  background: #0a0a52;
  border: 3px solid var(--frame);
  box-shadow: 0 0 0 3px #000, 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 18px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #000, 0 14px 30px rgba(0, 0, 0, 0.6);
}

.game-icon {
  flex: 0 0 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: #000;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
}

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

.game-title {
  margin: 0 0 8px;
  font-size: 21px;
  color: var(--accent);
  text-shadow: 1px 1px 0 #000;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border: 1px solid #3a3aa0;
  color: var(--white);
  text-transform: uppercase;
}

.badge.players {
  border-color: var(--accent);
  color: var(--accent);
}

.game-desc {
  font-weight: normal;
  font-size: 13px;
  line-height: 1.5;
  color: #d6d6ff;
  margin: 0 0 16px;
}

.play-btn {
  display: inline-block;
  background: var(--red);
  color: var(--yellow);
  border: 2px solid var(--frame);
  padding: 8px 22px;
  font-size: 15px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #000;
}

.game-card:hover .play-btn {
  background: #c80000;
}

/* ---- footer ---- */

.footer {
  text-align: center;
  color: #7a7af0;
  font-size: 11px;
  font-weight: normal;
  margin-top: 34px;
}

@media (max-width: 420px) {
  .game-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .game-meta {
    justify-content: center;
  }
}
