/* Module 149 (WP-149.2) — the studio site's one stylesheet. Colours are the game's own: navy ground,
   gold primary button (gold = the one action), the three track colours, power-up pink. */
:root {
  --ground: #1c2747;
  --ground-2: #26346a;
  --panel: #2b3a72;
  --panel-edge: #3b4c8c;
  --text: #e4eaff;
  --muted: #b3bfe8;
  --white: #ffffff;
  --gold: #ffcc00;
  --gold-2: #ffa400;
  --gold-ink: #3a2400;
  --green: #3ccf6a;
  --cyan: #39c6e6;
  --orange: #f39a35;
  --pink: #e8479a;
  --violet: #8a3cff;
  --radius: 18px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 60%, var(--ground) 100%)
    fixed;
  background-color: var(--ground);
  color: var(--text);
  font:
    17px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Noto Sans',
    'Noto Sans Devanagari',
    sans-serif;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
}

h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
}

.brand {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.langs {
  position: relative;
}

.langs summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--white);
  font-size: 0.95rem;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs summary::after {
  content: ' ▾';
  color: var(--muted);
}

.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.35);
}

.langs a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.langs a:hover,
.langs a:focus-visible {
  background: var(--ground-2);
}

.langs a[aria-current] {
  color: var(--gold);
  font-weight: 700;
}

/* Sections */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main > section {
  margin: 0 0 56px;
}

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 24px 0 8px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 5fr 7fr;
    padding-top: 40px;
  }
}

.hero-studio {
  display: block;
  text-align: center;
  padding: 48px 0 8px;
}

.hero-studio .lede {
  margin-inline: auto;
}

.lede {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 34em;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-video {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--panel-edge);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.4);
  background: var(--ground);
}

/* The one gold button. */
.play {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 4px 0 #c77800,
    0 10px 24px rgb(255 170 0 / 0.3);
}

.play:hover,
.play:focus-visible {
  filter: brightness(1.06);
}

.play.big {
  font-size: 1.15rem;
  padding: 16px 32px;
}

.more {
  display: inline-block;
  padding: 12px 6px;
  color: var(--white);
  font-weight: 700;
}

.chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 12px;
  border-radius: 999px;
  color: #0e1630;
  font-weight: 700;
  font-size: 0.9rem;
}

.chip-beginner {
  background: var(--green);
}

.chip-intermediate {
  background: var(--cyan);
}

.chip-expert {
  background: var(--orange);
}

/* How to play */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li,
.powerups li,
.card,
.daily,
.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
}

.steps li {
  padding: 20px;
}

.steps p,
.powerups p {
  margin: 0;
  color: var(--text);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--violet);
  color: var(--white);
  font-weight: 800;
}

.steps li:nth-child(1) .num {
  background: var(--green);
  color: #0e1630;
}

.steps li:nth-child(2) .num {
  background: var(--cyan);
  color: #0e1630;
}

.steps li:nth-child(3) .num {
  background: var(--orange);
  color: #0e1630;
}

/* Power-ups */
.powerups {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .powerups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .powerups {
    grid-template-columns: repeat(4, 1fr);
  }
}

.powerups li {
  padding: 18px 20px;
  border-top: 5px solid var(--pink);
}

/* Daily */
.daily {
  padding: 24px;
  border-left: 6px solid var(--gold);
}

.daily p {
  margin: 0;
  max-width: 44em;
}

/* Features */
.features {
  display: grid;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features li {
  position: relative;
  padding-left: 30px;
}

.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--green);
}

.features li:nth-child(3n + 2)::before {
  background: var(--cyan);
}

.features li:nth-child(3n)::before {
  background: var(--orange);
}

/* Screenshots */
.shots {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shots figure {
  margin: 0;
}

.shots img {
  border-radius: 14px;
  border: 2px solid var(--panel-edge);
}

.shots figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  margin-bottom: 10px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  color: var(--white);
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
}

/* Closing call to action */
.cta {
  text-align: center;
  padding: 36px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #5a24c8 0%, #2b3a72 100%);
}

/* Studio game card */
.card {
  display: grid;
  overflow: hidden;
}

@media (min-width: 800px) {
  .card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.card-body {
  padding: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 0;
}

/* Footer */
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  border-top: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--text);
}

.note {
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Language ask (Localization_Rules 7b): one card, bottom of the screen, asked once. */
.ask {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.45);
}

.ask-q {
  flex: 1 1 100%;
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.ask-no {
  padding: 12px 6px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
