/* RetroGM hub (retrogm.com, /pt/): shared by the English and Portuguese pages. */
:root {
  --desk: #0f3057;
  --frame: #1d4f85;
  --frame-dark: #0b2441;
  --text: #ffffff;
  --muted: #c3d4ea;
  --gold: #ffd54f;
  --orange: #f39c12;
  --red: #e2553d;
  --card: #ffffff;
  --card-text: #101820;
  --card-muted: #56606c;
  --soccer: #1f8a3b;
  --basketball: #ea580c;
  --football: #7c3aed;
  --baseball: #dc2626;
  --hockey: #0e7490;
  --racing: #b91c1c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1f5590 0%, var(--desk) 55%) fixed, var(--desk);
  color: var(--text);
  font: 16px/1.5 Tahoma, Verdana, 'Segoe UI', system-ui, sans-serif;
}
a { color: inherit; }
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 48px; }

/* hero */
header { text-align: center; }
.logo { font-size: clamp(2.2rem, 8vw, 3.2rem); font-weight: 800; font-style: italic; letter-spacing: -1px; margin: 0; text-shadow: 4px 4px 0 var(--frame-dark); }
.logo span { color: var(--gold); }
.tagline { font-size: clamp(0.98rem, 3vw, 1.15rem); margin: 2px 0 0; font-weight: 700; }
.sub { color: var(--muted); margin: 2px 0 0; font-size: 0.92rem; }
.stripes { display: grid; gap: 3px; margin: 12px auto 18px; max-width: 420px; }
.stripes i { display: block; height: 5px; border-radius: 3px; }
.stripes i:nth-child(1) { background: var(--gold); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 800; text-decoration: none; color: #fff; border: 2px solid rgba(0, 0, 0, 0.25); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); transition: transform 0.08s, filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.btn.soccer { background: var(--soccer); }
.btn.basketball { background: var(--basketball); }
.btn.football { background: var(--football); }
.btn.baseball { background: var(--baseball); }
.btn.hockey { background: var(--hockey); }
.btn.racing { background: var(--racing); }
.btn.ghost { background: transparent; color: var(--card-text); border-color: #cfd8e3; box-shadow: none; font-weight: 700; padding: 9px 14px; }

/* games */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game { background: var(--card); color: var(--card-text); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.shot { display: block; aspect-ratio: 16 / 9; background: #0b2441; border-bottom: 4px solid var(--accent); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game.soccer { --accent: var(--soccer); }
.game.basketball { --accent: var(--basketball); }
.game.football { --accent: var(--football); }
.game.baseball { --accent: var(--baseball); }
.game.hockey { --accent: var(--hockey); }
.game.racing { --accent: var(--racing); }
.game .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game h2 { margin: 0; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.game h2 .badge { font-size: 0.68rem; }
.game p { margin: 0; color: var(--card-muted); font-size: 0.84rem; line-height: 1.4; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 2px 9px; border-radius: 99px; background: #eef2f7; color: #334155; font-size: 0.78rem; font-weight: 700; }
.badge.beta { background: #fff1c2; color: #6b4e00; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.game .btn { padding: 7px 12px; font-size: 0.88rem; border-radius: 8px; }
.game .btn.ghost { padding: 6px 10px; }
.note { font-size: 0.8rem; color: var(--card-muted); }

.next { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px dashed rgba(255, 255, 255, 0.25); color: var(--muted); text-align: center; }
.next strong { color: var(--text); }

/* why */
.features { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.features div { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 0.95rem; }
.features .ico { font-size: 1.6rem; display: block; }
.features strong { color: var(--text); display: block; margin: 4px 0 2px; }

footer { margin-top: 48px; text-align: center; color: var(--muted); font-size: 0.85rem; }
footer p { margin: 6px 0; }
  

/* language switch */
.lang { position: absolute; top: 14px; right: 16px; font-size: 0.85rem; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25); }
.lang a:hover { color: var(--text); }
body { position: relative; }

/* sections below the games */
.section-title { margin: 48px 0 14px; font-size: 1.35rem; text-align: center; }
.intro { max-width: 760px; margin: 0 auto; color: var(--muted); text-align: center; }
.news { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.news li { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 12px 16px; color: var(--muted); }
.news time { display: block; color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.news strong { color: var(--text); }
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 2px; color: var(--muted); }

/* the games fit on the first screen: 4 across, 2 on tablets and phones (phones show just the picture, name and Play) */
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  main { padding-top: 14px; }
  .lang { top: 8px; right: 10px; }
  .sub { display: none; }
  .grid { gap: 10px; }
  .game p, .game .btn.ghost, .game h2 .badge { display: none; }
  .game .body { padding: 8px 10px 10px; }
  .game h2 { font-size: 0.92rem; }
  .game .btn { width: 100%; }
  .shot { aspect-ratio: 2 / 1; overflow: hidden; }
}

/* The Arcade strip (below the management games). */
.arcade { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: #0b1020; border: 2px solid #fde047; color: #e2e8f0; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.arcade img { width: 160px; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; border-radius: 6px; flex: none; }
.arcade .text { flex: 1; font-size: 0.92rem; line-height: 1.4; }
.arcade .text strong { color: #fde047; }
.arcade .btn { flex: none; background: #fde047; color: #0f172a; font-weight: 800; padding: 8px 14px; border-radius: 8px; }
.arcade:hover .btn { filter: brightness(1.08); }
.badge.new { background: #ef4444; color: #fff; }
@media (max-width: 640px) {
  .arcade { flex-wrap: wrap; }
  .arcade img { width: 100%; }
  .arcade .btn { width: 100%; text-align: center; }
}

/* Top navigation (every hub page). */
.site-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; max-width: 1100px; margin: 0 auto; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 99px; border: 1px solid transparent; font-weight: 600; }
.site-nav a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.site-nav .lang-link { border-color: rgba(255, 255, 255, 0.25); }
.logo a { color: inherit; text-decoration: none; }
.logo .arcade-word { font-size: 0.55em; color: #fde047; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.page-head { text-align: center; }
.more { text-align: center; margin: 14px 0 0; }
.more a { color: var(--gold); font-weight: 700; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Arcade page. */
.arcade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 18px; }
.arcade-card { background: #0b1020; border: 2px solid #fde047; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.arcade-card .shot { aspect-ratio: 16 / 9; border-bottom: 2px solid #fde047; background: #0b1020; }
.arcade-card .shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.arcade-card .body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; color: #e2e8f0; }
.arcade-card h2 { margin: 0; font-size: 1.2rem; color: #fde047; }
.arcade-card p { margin: 0; line-height: 1.5; font-size: 0.92rem; color: #cbd5e1; }
.arcade-card .controls { font-size: 0.8rem; color: #94a3b8; flex: 1; }
.arcade-card .btn { align-self: flex-start; background: #fde047; color: #0f172a; font-weight: 800; padding: 8px 16px; border-radius: 8px; text-decoration: none; }
.soon-list { display: grid; gap: 8px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.soon-list li { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px 16px; color: var(--muted); }
.soon-list strong { color: var(--text); }
