/* Enjoy Playing Studio website.
   Studio look (light, from the logo) on every page; a game page adds its own theme class
   (for example .theme-wbw) for the game's colours inside the page, under the studio top bar. */
:root {
  --bg: #faf8f5;
  --bg2: #f1ecfb;
  --card: #ffffff;
  --text: #2b1f5c;      /* logo indigo */
  --soft: #4a4370;
  --muted: #7a7396;
  --accent: #ff6b5b;    /* logo coral */
  --mint: #3ddc97;      /* logo mint */
  --btn: #2b1f5c;
  --btn-text: #ffffff;
  --btn-hover: #3d2e7d;
  --line: #e6e0f2;
  --shadow: 0 8px 28px rgba(43, 31, 92, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, var(--bg2), transparent 60%), var(--bg);
  overflow-x: hidden;
}
a { color: var(--text); }
main { max-width: 960px; margin: 0 auto; padding: 0 16px 56px; position: relative; z-index: 1; }

/* studio top bar (same on every page) */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0 22px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; display: block; }
.toplinks { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.toplinks a { text-decoration: none; color: var(--soft); }
.toplinks a:hover { color: var(--text); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.15; color: var(--text); }
h1 .hl { color: var(--accent); }
h2 { margin: 0; font-size: 20px; }
p { line-height: 1.6; color: var(--soft); }
.muted { color: var(--muted); font-size: 14px; }
.intro { padding: 28px 24px; }
.intro p { font-size: 17px; max-width: 640px; margin-bottom: 0; }

.btn {
  display: inline-block; padding: 13px 20px; border-radius: 12px; min-height: 48px;
  background: var(--btn); color: var(--btn-text); font-weight: 800; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--btn-hover); }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff0ee; color: #c43c2e; border: 1px solid #ffd4cf;
}
.tag.live { background: #e7fbf2; color: #13804f; border-color: #bdf0d8; }

.section-title { margin: 30px 4px 0; font-size: 22px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 14px; }
.game { display: flex; flex-direction: column; gap: 10px; }
.game .thumb {
  width: 100%; height: auto; aspect-ratio: 1024 / 500; border-radius: 12px; object-fit: cover; display: block;
}
.game .soon {
  width: 100%; aspect-ratio: 1024 / 500; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #f4f1fa 0 18px, #ece7f6 18px 36px);
  color: var(--muted); font-weight: 700;
}
.game .grow { flex: 1; }
.game h2 { margin-top: 8px; }
.links { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
footer { margin-top: 32px; font-size: 13px; color: var(--muted); text-align: center; }
footer a { color: var(--soft); }

/* ---------- game page theme: Wrecking Ball Wars (its own colours under the studio bar) ---------- */
.theme-wbw {
  --bg: #1f1d1a; --card: rgba(31, 29, 26, .82); --text: #f3eee6; --soft: #d9d2c6; --muted: #a99f90;
  --btn: #f2b51c; --btn-text: #1f1d1a; --btn-hover: #ffc94d; --line: rgba(242, 181, 28, .25);
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  background: var(--bg);
}
.theme-wbw .bg {
  position: fixed; inset: -40px; z-index: 0;
  background: url("/img/wbw-feature.jpg") center / cover no-repeat;
  filter: blur(18px) brightness(.42);
}
.theme-wbw .top .brand { background: #ffffff; padding: 8px 14px; border-radius: 14px; }
.theme-wbw .top .brand img { height: 44px; }
.theme-wbw .toplinks a { color: #e8e1d5; }
.theme-wbw h1 { color: #f2b51c; }
.theme-wbw a { color: #ffc94d; }
.theme-wbw .btn { color: var(--btn-text); }
.theme-wbw footer a { color: #e8e1d5; }
.theme-wbw .stripe {
  position: fixed; left: 0; right: 0; bottom: 0; height: 12px; z-index: 2;
  background: repeating-linear-gradient(-45deg, #f2b51c 0 16px, #1f1d1a 16px 32px);
}
.hero { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.head { display: flex; align-items: center; gap: 14px; }
.head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }

/* content blocks (game pages) */
.block { margin-top: 18px; }
.block h2 { font-size: 21px; margin-bottom: 6px; }
.feat { margin: 10px 0 0; padding-inline-start: 20px; line-height: 1.6; color: var(--soft); }
.feat li { margin-bottom: 6px; }
.feat b { color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); margin: -8px 2px 12px; }
.crumbs a { color: var(--soft); }
.on-bg { color: var(--text); margin: 6px 4px 10px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.shots img { width: 100%; height: auto; border-radius: 12px; display: block; box-shadow: var(--shadow); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); min-height: 28px; }
.faq details p { margin: 8px 0 0; }

/* language dropdown in the top bar (plain <details>: the site runs no scripts) */
.toplinks { margin-inline-start: auto; }
.langmenu { position: relative; flex: none; --menu: #ffffff; }
.theme-wbw .langmenu { --menu: #2a2723; }
.langmenu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--menu); color: var(--text);
  font-size: 15px; font-weight: 700; box-shadow: var(--shadow);
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: "▾"; font-size: 13px; opacity: .75; }
.langmenu[open] summary::after { content: "▴"; }
.langmenu .globe { font-size: 17px; line-height: 1; }
.langmenu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: var(--menu); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
.langmenu li a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 9px;
  color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none;
}
.langmenu li a:hover { background: var(--line); }
.langmenu li a[aria-current="page"] { background: var(--btn); color: var(--btn-text); }
.langmenu li a[aria-current="page"]::after { content: "✓"; margin-inline-start: auto; padding-inline-start: 12px; }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .langmenu summary { padding: 6px 12px; font-size: 14px; }
  .brand img { height: 36px; }
  .toplinks { display: none; }
}
