/* Two identities: the studio (Kastellin: night blue, gold, classical serif) frames every page; the game
   (Stacky Stars: cream, coral, rounded type) keeps its own inside .game. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #121e31; --night-high: #1a2942; --gold: #c4a349; --gold-light: #dcc27a; --gold-dim: #887849;
  --ivory: #ece6d6; --muted: #b3ad9c; --line: rgba(196, 163, 73, .28);
  --serif: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; }
body { margin: 0; color: var(--ivory); font: 400 1.0625rem/1.65 system-ui, "Segoe UI", Roboto, sans-serif; background: radial-gradient(ellipse 70rem 40rem at 50% 0, var(--night-high), transparent) no-repeat, var(--night); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--gold-light); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 .5rem; }
a { color: var(--gold-light); text-underline-offset: .15em; }
a:hover { color: #f1dfa8; }
a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 56rem; margin: 0 auto; padding: 1rem 1.25rem; }
.bar a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: .75rem; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.brand img { width: 3rem; height: 3rem; }

.page { max-width: 56rem; margin: 0 auto; padding: 1.25rem 1.5rem 2rem; background: var(--night-high); border: 1px solid var(--line); border-radius: .75rem; overflow-wrap: break-word; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--gold-dim); margin: 3rem 0; }

.scroll { overflow-x: auto; }
table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 600; }

.home main { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.studio { padding: 3.5rem 0 1rem; }
.studio h1 { margin: 0; }
.studio img { width: min(19rem, 75%); filter: drop-shadow(0 0 2.5rem rgba(196, 163, 73, .22)); }
.studio p { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--muted); }

.divider { display: flex; align-items: center; gap: 1rem; max-width: 28rem; margin: 2rem auto; color: var(--gold); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--gold-dim); }

.game { --cream: #fff5e4; --card: #fffdf8; --text: #4a3b52; --coral: #c9432b; background: var(--cream); color: var(--text); border: 1px solid var(--gold); outline: 1px solid var(--line); outline-offset: .4rem; border-radius: 1.5rem; padding: 2.5rem 1.25rem 1.5rem; }
.game h2, .game h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; color: var(--text); line-height: 1.2; }
.game h2 { margin: 0; }
.game .title { width: min(30rem, 100%); }
.lead { font-family: "Fredoka", system-ui, sans-serif; font-size: 1.5rem; max-width: 30rem; margin: 1rem auto; }
.badge { display: inline-block; margin: 0; padding: .6rem 1.4rem; border-radius: 99px; background: var(--coral); color: #fff; font-family: "Fredoka", system-ui, sans-serif; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.cards article { background: var(--card); border: 1px solid #ecdcc4; border-radius: 1.25rem; padding: 0 1.25rem .5rem; }
.characters { margin-top: 3rem; }
.characters h3 { font-size: 1.35rem; }
.characters ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding: 0; list-style: none; }
.characters img { width: 6rem; }
.contact { margin-top: 3rem; }

/* On a phone each row of the data table becomes a block, with the column names written before the values. */
@media (max-width: 42rem) {
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  td { display: block; padding: .15rem 0; border: 0; }
  td:first-child { font-weight: 700; color: var(--gold-light); }
  td:nth-child(2)::before { content: "Pourquoi : "; color: var(--muted); }
  td:nth-child(3)::before { content: "Base légale : "; color: var(--muted); }
  td:nth-child(4)::before { content: "Conservation : "; color: var(--muted); }
  :lang(en) td:nth-child(2)::before { content: "Why: "; }
  :lang(en) td:nth-child(3)::before { content: "Legal basis: "; }
  :lang(en) td:nth-child(4)::before { content: "Kept: "; }
}

footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 2.5rem 1.25rem 2rem; }
