/* Shark Games — shared styles. Colours and the bold black outline come from the shark logo
   (assets/shark.png, assets/shark-circle.png). */
:root {
  --bg: #fdf0fd;          /* the logo circle's pink, lighter */
  --bg-band: #fcdcfc;     /* the logo circle's pink */
  --card: #ffffff;
  --ink: #0b1d26;
  --muted: #4b6270;
  --aqua: #2ed0e6;        /* shark: snout */
  --blue: #037ea8;        /* shark: body */
  --deep: #056c95;        /* shark: fin */
  --link: #036d92;
  --outline: #0b0b0b;
  --cream: #fbe8bd;       /* the eye's glint */
  --radius: 16px;
  --shadow: 4px 4px 0 var(--outline);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1820;
    --bg-band: #102a37;
    --card: #12232d;
    --ink: #ecf8fc;
    --muted: #a3bccb;
    --link: #5fdcef;
    --outline: #000000;
    --shadow: 4px 4px 0 #000000;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue); }

code { font-size: 0.92em; background: var(--bg-band); padding: 1px 5px; border-radius: 6px; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* Header: a deep-blue band with the round logo */
header.site {
  background: linear-gradient(100deg, var(--aqua), var(--blue) 55%, var(--deep));
  border-bottom: 3px solid var(--outline);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
}
header.site a.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; white-space: nowrap;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
}
header.site a.brand img { width: 40px; height: 40px; }
header.site nav { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
header.site nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: .92; }
header.site nav a:hover { opacity: 1; text-decoration: underline; }

main.wrap { padding-top: 36px; padding-bottom: 56px; flex: 1 0 auto; width: 100%; }

h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 10px; font-weight: 800; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }

.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; }

.card {
  display: block;
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Studio home: the big shark */
.studio-hero {
  display: grid; grid-template-columns: 1fr minmax(180px, 300px); gap: 24px; align-items: center;
  padding: 8px 0 20px;
}
.studio-hero img { width: 100%; height: auto; }
.studio-hero h1 { font-size: 44px; }
.studio-hero h1 span { color: var(--blue); }
@media (prefers-color-scheme: dark) { .studio-hero h1 span { color: var(--aqua); } }

/* A game card on the studio home */
a.game {
  display: flex; gap: 18px; align-items: center;
  color: inherit; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.game:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--outline); color: inherit; }
a.game img { width: 88px; height: 88px; border-radius: 20px; flex: none; border: 3px solid var(--outline); }
a.game h3 { margin: 0 0 4px; font-size: 20px; }
a.game p { margin: 0; color: var(--muted); }

/* Game page */
.hero { text-align: center; }
.hero img.logo { width: 100%; max-width: 520px; height: auto; margin: 0 auto 12px; display: block; }

.badge {
  display: inline-block;
  background: var(--aqua);
  color: var(--ink);
  border: 3px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 800;
  font-size: 15px;
}
@media (prefers-color-scheme: dark) { .badge { color: #0b1d26; } }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--bg-band); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; }
td:first-child, td:nth-child(2) { white-space: nowrap; }
.table-card { padding: 4px; overflow-x: auto; margin: 0 0 16px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 12px 0; min-height: 30px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--aqua); color: #0b1d26;
  border: 2.5px solid var(--outline);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

footer.site {
  background: var(--bg-band);
  border-top: 3px solid var(--outline);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .studio-hero { grid-template-columns: 1fr; text-align: center; }
  .studio-hero img { max-width: 240px; margin: 0 auto; grid-row: 1; }
  .studio-hero h1 { font-size: 36px; }
  a.game img { width: 64px; height: 64px; border-radius: 15px; }
  header.site .wrap { padding-top: 8px; padding-bottom: 8px; }
  header.site a.brand { font-size: 17px; }
  header.site a.brand img { width: 34px; height: 34px; }
  header.site nav { font-size: 14px; gap: 2px 12px; }
}
