/* A game's page (/jeux/<slug>, /games/<slug>, built by scripts/game-pages.ts from the owner's GamePage
   design) and the FAQ (/questions, /faq, scripts/faq-pages.ts). Loaded after home.css, whose nav,
   buttons, bands, steps, closing call to action and footer it reuses. --c is the game's colour, from the
   page's .c-<id> class (added to home.css by the build). */

/* The handwriting of the hook line and the small kickers: Caveat Bold, served from this site (latin and
   latin-ext only; licence in fonts/OFL-caveat.txt). Its own name, so the homepage's Caveat isn't loaded too. */
@font-face {
  font-family: 'Pantouflard Caveat';
  src: url(fonts/caveat-700-latin.woff2?v=c5e74a40a3) format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pantouflard Caveat';
  src: url(fonts/caveat-700-latin-ext.woff2?v=ed1d4a86a3) format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
.hand, .game-hook {
  font-family: 'Pantouflard Caveat', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  font-weight: 700;
  color: var(--apricot);
  letter-spacing: 0;
}
.hand { font-size: 28px; line-height: 1; }

/* --- nav: the homepage's, with a link to every game and the FAQ, the other language and Play --- */

.nav-games { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav-games:hover { color: var(--apricot); }
.lang a { padding: 6px 11px; border-radius: 16px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--teal); color: var(--plum); }
@media (max-width: 640px) {
  .nav-games { display: none; }
}
@media (max-width: 400px) {
  .game-page .nav, .faq-page .nav { gap: 10px; }
  .game-page .brand, .faq-page .brand { gap: 8px; }
  .game-page .brand-logo, .faq-page .brand-logo { width: 32px; height: 32px; }
  .game-page .brand-name, .faq-page .brand-name { font-size: 20px; }
  .game-page .lang a, .faq-page .lang a { padding: 6px 8px; }
  .game-page .nav-start, .faq-page .nav-start { padding: 10px 13px; font-size: 15px; }
}

/* --- hero --- */

.game-hero {
  padding: clamp(8px, 2vw, 32px) var(--gutter) clamp(56px, 8vw, 100px);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px 'DM Mono', monospace; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--apricot); }
.crumbs [aria-current] { color: var(--ink); }
.game-hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) {
  .game-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.game-hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.game-type { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.game-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c); }
/* Long names (« Sur la même longueur d'onde ») wrap between words, down to a phone 360 px wide. */
.game-title {
  font-size: clamp(40px, 5.2vw + 14px, 96px);
  line-height: .92;
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.game-hook { font-size: clamp(26px, 1.2vw + 18px, 32px); line-height: 1.05; }
.game-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.game-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.game-chip { background: var(--plum-2); padding: 9px 14px; border-radius: 12px; font-size: 15px; }

/* The price badge: free for good (teal), free in the beta (apricot), free for its launch (coral), in the
   subscription (cream). */
.price {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 540px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--apricot);
  color: var(--plum);
}
.price-free { background: var(--teal); }
.price-launch { background: var(--coral); }
.price-paid { background: var(--cream); }
.price-tag {
  flex: none;
  padding: 4px 8px;
  border: 2px solid var(--plum);
  border-radius: 8px;
  font: 500 12px 'DM Mono', monospace;
  letter-spacing: .1em;
  transform: rotate(-4deg);
}
.price-text { display: flex; flex-direction: column; gap: 2px; }
.price-title { font-size: 20px; font-weight: 800; line-height: 1.1; }
.price-sub { font-size: 14.5px; line-height: 1.4; }

.game-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; margin-top: 4px; }
.btn-how { color: var(--ink); border: 2px solid var(--line); padding: 15px 22px; font-size: 18px; font-weight: 600; }
.btn-how:hover { color: var(--ink); border-color: var(--teal); }
.game-cover { border: 6px solid var(--c); border-radius: 24px; overflow: hidden; background: var(--plum-2); }
.game-cover img { width: 100%; height: auto; }
/* A game with no cover yet: its colour, at the cover's 16:9. */
.game-cover-none { background: var(--c); aspect-ratio: 16 / 9; opacity: .85; }
@supports not (aspect-ratio: 1 / 1) {
  .game-cover-none { height: 0; padding-top: 56.25%; }
}

/* --- how to play: the homepage's numbered steps, in the game's colour, then how to win --- */

.game-how { display: flex; flex-direction: column; gap: 40px; }
.game-page .step-num { background: var(--c); color: var(--plum); width: 60px; height: 60px; font-size: 32px; }
.game-page .step p { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--plum); text-wrap: pretty; }

.win {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px 40px;
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: var(--plum);
  color: var(--ink);
}
.win h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.win-list { display: flex; flex-direction: column; gap: 14px; }
.win-list li { position: relative; padding-left: 26px; font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.win-list li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}

/* --- a round, step by step: a list without JavaScript; tabs with game.js (.is-tabbed) --- */

.game-round-inner { display: flex; flex-direction: column; gap: 28px; }
.round-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.round-head h2, .faq h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.round-arrows { display: flex; gap: 10px; }
.round-arrows[hidden], .round-tabs[hidden], .round-step[hidden] { display: none; }
.round-arrow {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.round-arrow:hover { border-color: var(--teal); }
.round-arrow-next { border: 0; background: var(--apricot); color: var(--plum); font-weight: 800; }
.round-arrow-next:hover { background: #f8bd73; }
.round-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.round-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 24px;
  background: var(--plum-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.round-tab-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--plum);
  font-weight: 800;
}
.round-tab[aria-selected='true'] { background: var(--ink); color: var(--plum); }
.round-tab[aria-selected='true'] .round-tab-num { background: var(--c); }
.round-steps { display: flex; flex-direction: column; gap: 16px; }
.round-panel { display: flex; flex-direction: column; gap: 20px; }
.round-panel:focus-visible { outline-offset: 6px; border-radius: 20px; }
.round-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--plum-2);
}
.round-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c);
  color: var(--plum);
  font-size: 24px;
  font-weight: 800;
}
.round-body { display: flex; flex-direction: column; gap: 6px; }
.round-label { font: 500 13px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* The tabs name the step already. */
.is-tabbed .round-label { display: none; }
.round-text { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.round-count { font: 500 13px 'DM Mono', monospace; color: var(--muted); }
/* A step's captures (home/img/screens/<id>-<n>-tv.jpg and -phone.jpg), only when they exist. */
.round-shots { display: flex; gap: clamp(16px, 3vw, 32px); align-items: flex-end; flex-wrap: wrap; }
.round-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.round-shot-tv { flex: 1 1 520px; min-width: 0; }
.round-shot-phone { flex: 0 0 auto; width: clamp(150px, 17vw, 210px); }
.round-shot-label { font: 500 12px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.round-shot-phone .round-shot-label { color: var(--apricot); }
.round-shot img { width: 100%; height: auto; background: var(--night); }
.round-shot-tv img { padding: 12px; border-radius: 18px; border-bottom: 6px solid var(--c); }
.round-shot-phone img { padding: 7px; border-radius: 28px; }

/* On the TV, on your phone: what each screen shows, in words. */
.game-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.game-screen {
  background: var(--plum-2);
  border-radius: 24px;
  border-left: 6px solid var(--c);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen-icon { display: block; border: 4px solid var(--c); border-radius: 8px; margin-bottom: 4px; }
.game-screen-tv .screen-icon { width: 64px; height: 40px; position: relative; margin-bottom: 12px; }
.game-screen-tv .screen-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 24px;
  height: 4px;
  margin-left: -12px;
  border-radius: 2px;
  background: var(--c);
}
.game-screen-phone .screen-icon { width: 30px; height: 48px; border-radius: 9px; }
.game-screen-label { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.game-screen-text { font-size: clamp(20px, .8vw + 14px, 24px); font-weight: 600; line-height: 1.3; text-wrap: pretty; }

/* --- questions: the game's five, and the FAQ page's --- */

.faq { max-width: 920px; display: flex; flex-direction: column; gap: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--plum-2); border-radius: 18px; padding: 0 22px; }
.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; margin-left: auto; flex: none; font: 500 22px 'DM Mono', monospace; color: var(--teal); }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-q:hover::after { color: var(--apricot); }
.faq-a { max-width: 720px; padding: 0 0 22px; font-size: 17.5px; line-height: 1.55; color: #e4d6ee; text-wrap: pretty; }
.faq-a a { color: var(--teal); }
.faq-all { align-self: flex-start; font-size: 17px; font-weight: 700; color: var(--teal); }

/* --- more games like this: cover, name and « Gratuit », description, players --- */

.game-more { display: flex; flex-direction: column; gap: 32px; }
.game-more h2 { font-size: clamp(32px, 4vw, 48px); }
.more-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.more-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.more-img { position: relative; aspect-ratio: 16 / 9; background: #e2dccd; }
.more-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.more-img-none { background: var(--c); opacity: .85; }
@supports not (aspect-ratio: 1 / 1) {
  .more-img { height: 0; padding-top: 56.25%; }
}
.more-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; border-top: 6px solid var(--c); }
.more-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more-card h3 { font-size: 21px; font-weight: 800; line-height: 1.1; }
.more-card h3 a { color: var(--plum); text-decoration: none; }
/* The whole card is the link. */
.more-card h3 a::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 18px; }
.more-card:hover h3 a { text-decoration: underline; }
.more-card h3 a:focus-visible { outline: none; }
.more-card h3 a:focus-visible::after { outline: 3px solid var(--rust); outline-offset: -3px; }
.more-free { padding: 2px 8px; border-radius: 8px; background: var(--teal); color: var(--plum); font-size: 12px; font-weight: 700; }
.more-card p { font-size: 15px; line-height: 1.45; color: var(--dark-muted); }
.more-card .more-players { margin-top: auto; font: 500 13px 'DM Mono', monospace; color: var(--dark-muted); }

/* --- the closing call to action (the homepage's .play) --- */

.game-page .play-title, .faq-page .play-title { font-size: clamp(44px, 7vw, 104px); text-wrap: balance; }

/* --- the FAQ page --- */

.faq-page .faq-band { padding-top: clamp(8px, 2vw, 32px); }
.faq-heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.faq-title { font-size: clamp(44px, 6vw, 88px); line-height: .92; font-weight: 800; letter-spacing: -.04em; }
.faq-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 640px; }
