/* rOGue lOGic Studios: shared styles for every page. Colours come from the logo: its dark navy,
   the purple brain and the yellow pixels. Headings use a pixel font to match the logo's lettering. */
:root {
  --bg: #0a0c19; /* the logo's background */
  --panel: #12152b;
  --panel-2: #181c38;
  --line: #262b52;
  --text: #ebe8f7;
  --muted: #a7a3c6;
  --purple: #a35cff;
  --purple-soft: #c69bff;
  --yellow: #ffd21f;
  --yellow-dark: #c99a00;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse at 50% 0%, #1a1440 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 18px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--purple-soft); }
a:hover { color: var(--yellow); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* The name in text: purple letters with the OGs in yellow, like the logo */
.wordmark {
  font-family: 'Pixelify Sans', 'Courier New', monospace;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b { color: var(--yellow); }
.wordmark .studios { color: var(--text); font-weight: 500; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(10, 12, 25, 0.85); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand .wordmark { font-size: 22px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover, .topbar nav a[aria-current='page'] { border-bottom-color: var(--yellow); color: var(--text); }

/* Home page: the logo, big */
.hero { text-align: center; padding: 40px 0 28px; }
.hero img { width: min(640px, 100%); height: auto; display: block; margin: 0 auto; }
.hero p { font-size: 21px; color: var(--muted); max-width: 640px; margin: 8px auto 0; }

h1, h2, h3 { font-family: 'Pixelify Sans', 'Courier New', monospace; font-weight: 700; letter-spacing: 0.3px; }
h2 { font-size: 32px; margin: 0 0 18px; color: var(--yellow); }
section { padding: 24px 0 48px; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
@media (min-width: 760px) { .games { grid-template-columns: 2fr 1fr; } } /* the game gets the wide column */
.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.game img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 426; object-fit: cover; }
.game .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 28px; margin: 0; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 600; background: rgba(163, 92, 255, 0.18); color: var(--purple-soft); border-radius: 999px; padding: 3px 10px; }
.game p { margin: 0; }
.game .small { font-size: 15px; color: var(--muted); }
.button {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  background: var(--yellow);
  color: #1a1400;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: 0 3px 0 var(--yellow-dark), 0 0 18px rgba(255, 210, 31, 0.25);
}
.button:hover { background: #ffe066; color: #1a1400; }
.button[aria-disabled='true'] { background: #4a4766; color: #c9c6e0; box-shadow: none; cursor: default; }
.game.soon { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; text-align: center; min-height: 260px; }
.game.soon .body { justify-content: center; align-items: center; }
.game.soon h3 { color: var(--muted); }

/* About page */
.page { max-width: 760px; margin: 0 auto; padding: 40px 0 56px; }
.page h1 { font-size: clamp(36px, 7vw, 52px); margin: 0 0 24px; color: var(--yellow); }
.photo { margin: 0 0 28px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); }
.photo figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; font-style: italic; }
.page h2 { font-size: 28px; margin: 36px 0 10px; }
.page p { margin: 0 0 16px; }
.support { text-align: center; margin-top: 8px; }
.support .button { align-self: auto; }
.note { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); background: rgba(10, 12, 25, 0.85); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand .wordmark { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding: 24px 0 16px; }
  .hero p { font-size: 18px; }
}
