/* ── basics ── */
* { box-sizing: border-box; }
:root {
  --gold: #ffdc3c;
  --bg-card: rgba(30, 30, 50, 0.85);
  --border: #ffdc3c;
  --text: #f0f0f0;
  --muted: #aaa;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text);
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  min-height: 100vh;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── hero ── */
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.cover {
  width: 100%;
  max-width: 1200px;
  border: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(255, 220, 60, 0.45);
  display: block;
  margin: 0 auto 24px;
}
.play-button {
  display: inline-block;
  background: linear-gradient(180deg, #4ad15c 0%, #2e8a3a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  padding: 18px 48px;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 #1d5c25, 0 0 30px rgba(74, 209, 92, 0.6);
  letter-spacing: 1px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #1d5c25, 0 0 50px rgba(74, 209, 92, 0.85);
}
.play-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #1d5c25, 0 0 20px rgba(74, 209, 92, 0.6);
}

/* ── playable game iframe ── */
.play-frame {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(255, 220, 60, 0.15);
}
.play-frame h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 32px;
  text-shadow: 2px 2px 0 #000;
}
.play-note {
  margin: 0 0 16px;
  color: #ccc;
  font-size: 15px;
}
.play-note.small { margin-top: 14px; font-size: 13px; }
.play-note a { color: var(--gold); }
.game-wrap {
  display: flex;
  justify-content: center;
}
.game-wrap iframe {
  width: 100%;
  max-width: 1280px;
  /* keep the canvas's 16:9 ratio at any width so the game fills the
     iframe instead of being letterboxed inside a fixed 720-tall box.
     critical for phones/tablets. */
  aspect-ratio: 16 / 9;
  height: auto;
  border: 3px solid var(--gold);
  border-radius: 8px;
  background: #000;
  display: block;
}

/* ── grid of cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 0 24px rgba(255, 220, 60, 0.15);
}

.mechanics-card {
  grid-column: 1 / -1;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 32px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.card h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  color: #ffeb88;
  border-bottom: 2px solid #555;
  padding-bottom: 4px;
}
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card li {
  padding: 8px 0;
  border-bottom: 1px dashed #444;
  font-size: 17px;
  line-height: 1.4;
}
.card li:last-child { border-bottom: none; }

/* ── events list ── */
.events .when {
  display: inline-block;
  min-width: 130px;
  background: #ffdc3c;
  color: #2a1a00;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 6px;
  margin-right: 10px;
  font-size: 14px;
}

/* ── brainrot picture grid ── */
.brainrot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 8px 0 4px;
}
.brainrot {
  margin: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 10px 8px;
  border: 2px solid currentColor;
}
.brainrot img {
  width: 100%;
  max-width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  image-rendering: pixelated;
}
.brainrot figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}
.brainrot figcaption strong {
  font-size: 18px;
}
.brainrot figcaption span {
  font-size: 13px;
  color: #ddd;
  font-weight: 500;
}

/* ── rarities color tags ── */
.rarities li {
  font-weight: 700;
  padding-left: 10px;
}
.r-common { color: #6cf06c; }
.r-epic   { color: #b07cff; }
.r-mega   { color: #ff6cd6; }
.r-cosmic { color: #5ce6ff; text-shadow: 0 0 8px rgba(92, 230, 255, 0.6); }
.r-devil  { color: #ff4030; text-shadow: 0 0 10px rgba(255, 64, 48, 0.7); }

/* ── mechanics ── */
.mechanics li strong {
  color: var(--gold);
  margin-right: 6px;
}

/* ── footer ── */
footer {
  margin-top: 50px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 16px;
  border-top: 1px solid #333;
}
footer strong {
  color: var(--gold);
}
