/* The public site (atoutroyal.com), in the game's menus look, « Marine joueuse » (`game` in apps/mobile/src/theme.ts):
   a flat navy ground, navy panes in relief (deep navy outline, lit top edge, short lip), gold and ivory faces on their
   lip only for what is clicked, dark chips ringed in pale navy for what is only read, the green felt only on the
   table. Lilita One titles and Nunito text served from here (no font loaded from a third party; woff2 subsets of the
   app's fonts, Latin only). Pictures and the trailer come from the app's art: `pnpm site`. */
@font-face { font-family: 'Lilita One'; src: url(fonts/LilitaOne_400Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 700; src: url(fonts/Nunito_700Bold.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 800; src: url(fonts/Nunito_800ExtraBold.woff2) format('woff2'); font-display: swap; }

:root {
  --ground: #1a2b5c;
  --pane: #24397a;
  --deep: #0f1b3d;
  --line: rgba(255, 255, 255, 0.12);
  --chip-line: #5a73b8;
  --muted: #c9d5f0;
  --gold: #f4b740;
  --gold-light: #ffe07a;
  --lip: #a86200;
  --hot-ink: #4a2a00;
  --felt: #0e8572;
  --title: 'Lilita One', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: #ffffff;
  font: 700 17px/1.6 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff3a0; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .brand, .button { font-family: var(--title); font-weight: 400; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
/* A title's relief: a hard navy shadow under the letters, as in the game. */
h1, h2, .brand { text-shadow: 0 4px 0 var(--deep); }
.wrap { width: 100%; max-width: 1128px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* The top band (header and hero, or a page's title): the navy ground, lit from above, over a sunk navy rule. */
.band {
  overflow-x: clip;
  background: radial-gradient(ellipse 80% 70% at 70% 0%, rgba(108, 149, 255, 0.22), transparent 70%), var(--ground);
  border-bottom: 4px solid var(--deep);
}
.top { display: flex; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: #ffffff; font-size: 23px; text-decoration: none; text-shadow: 0 3px 0 var(--deep); }
.brand:hover { color: #ffffff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: #ffffff; text-decoration: none; }
.top nav a:hover { color: var(--gold-light); }

/* A button: a face on its lip, which sinks when pressed. Gold for the action to take, ivory for the second choice.
   Only what is clicked looks like this. */
.button {
  min-height: 58px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 18px; border: 2px solid var(--lip);
  background: linear-gradient(#ffe07a 48%, #ffc93d 48%);
  box-shadow: 0 5px 0 var(--lip); color: var(--hot-ink); font-size: 21px; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55); transition: transform 80ms, box-shadow 80ms;
}
.button:hover { color: var(--hot-ink); filter: brightness(1.05); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.button.small { min-height: 42px; padding: 0 18px; border-radius: 14px; box-shadow: 0 4px 0 var(--lip); font-size: 17px; }
.button.small:active { box-shadow: 0 1px 0 var(--lip); transform: translateY(3px); }
.button.ivory, a.store {
  border-color: var(--deep); background: linear-gradient(#ffffff 48%, #e6edf8 48%); box-shadow: 0 5px 0 var(--deep);
  color: var(--deep); text-shadow: none;
}
.button.ivory:active, a.store:active { box-shadow: 0 1px 0 var(--deep); transform: translateY(4px); }
/* The home's JOUER: a bulging gold face outlined in navy, a play sign in a navy disc, a white label ringed in brown. */
.button.play {
  min-height: 66px; padding: 0 30px 0 14px; border-radius: 22px; border-color: #14204a; box-shadow: 0 6px 0 #14204a;
  background: linear-gradient(rgba(255, 255, 255, 0.8) 3px, transparent 3px), linear-gradient(to top, rgba(170, 80, 0, 0.4) 5px, transparent 5px), linear-gradient(#fff3a0, #ffd23f 45%, #ffa914);
  color: #ffffff; font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase; text-shadow: none;
  -webkit-text-stroke: 7px #7a3d00; paint-order: stroke fill;
}
.button.play:hover { color: #ffffff; }
.button.play:active { box-shadow: 0 2px 0 #14204a; }
.button.play::before {
  content: ''; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #14204a;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l12 7-12 7z' fill='%23ffc93d'/%3E%3C/svg%3E") center / 22px no-repeat, radial-gradient(circle at 40% 35%, #2f4b94, #14204a);
}

/* Information, never clicked: a dark chip ringed in pale navy, flat, lifted by a soft shadow. */
.chip, .store {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; border: 2px solid var(--chip-line);
  background: rgba(15, 27, 61, 0.9); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.chip { padding: 5px 14px; color: var(--gold-light); font-size: 14px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

/* A navy pane in relief: deep navy outline, lit along its top, on a short lip. `.lit` puts one forward: gold outline. */
.pane, .tile, .values, .example, .guides a, .faq, .closing, .trailer {
  border-radius: 22px; border: 2px solid var(--deep);
  background: linear-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2px), var(--pane);
  box-shadow: 0 4px 0 var(--deep);
}
.lit, .closing, .trailer { border-color: var(--gold); box-shadow: 0 4px 0 var(--deep), 0 0 32px rgba(255, 201, 61, 0.22); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; padding-top: 32px; padding-bottom: 72px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero h1 { font-size: clamp(34px, 4.1vw, 52px); line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.store { min-height: 56px; padding: 8px 20px 8px 16px; font-size: 19px; font-weight: 800; line-height: 1.15; color: #ffffff; }
.store svg { flex: none; }
.store small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
a.store { text-decoration: none; }
a.store:hover { color: var(--deep); filter: brightness(1.03); }
a.store small { color: #4a5b86; }

/* The table: the game's felt square (deep navy rim, gold rule inside), the logo on it, a hand fanned below. Sizes in
   cqw, so the whole picture scales with its column. */
.art { container-type: inline-size; position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1.2; justify-self: center; }
.mat {
  position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; border-radius: 7cqw; border: 2px solid var(--deep);
  background: linear-gradient(rgba(4, 48, 44, 0.25), rgba(4, 48, 44, 0.25)), var(--felt) url(felt.png); background-size: auto, 380px 240px;
  box-shadow: 0 2cqw 0 var(--deep), 0 6cqw 10cqw rgba(0, 0, 0, 0.35);
}
.mat::after { content: ''; position: absolute; inset: 2.2cqw; border-radius: 5cqw; border: 1.5px solid rgba(255, 224, 122, 0.6); }
.card { position: absolute; display: block; width: 22cqw; height: auto; border-radius: 1.6cqw; filter: drop-shadow(0 1.2cqw 1.4cqw rgba(0, 0, 0, 0.3)); }
.art .logo { position: absolute; left: 9cqw; top: 13cqw; width: 82cqw; transform: rotate(-4deg); filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 0, 0.35)); }
.hand { position: absolute; left: 0; right: 0; top: 84cqw; height: 36cqw; }
.hand .card { width: 24cqw; transform-origin: 50% 180%; }
.hand .card:nth-child(1) { left: 5cqw; transform: rotate(-15deg); }
.hand .card:nth-child(2) { left: 16cqw; transform: rotate(-10deg); }
.hand .card:nth-child(3) { left: 27cqw; transform: rotate(-5deg); }
.hand .card:nth-child(4) { left: 38cqw; }
.hand .card:nth-child(5) { left: 49cqw; transform: rotate(5deg); }
.hand .card:nth-child(6) { left: 60cqw; transform: rotate(10deg); }
.hand .card:nth-child(7) { left: 71cqw; transform: rotate(15deg); }

main { flex: 1; padding-bottom: 96px; }
.section { padding-top: 96px; scroll-margin-top: 0; }
.section > h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.intro { max-width: 640px; margin-top: 12px; font-size: 18px; color: var(--muted); }
.narrow { max-width: 808px; }

/* The trailer: a pane put forward, the video inside, played only on a click (no autoplay, nothing loaded before). */
.trailer { margin-top: 36px; padding: 12px; }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 2px solid var(--deep); background: var(--deep); }

/* The store shots: a strip that scrolls sideways, each opens full size. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82%); gap: 18px; margin-top: 36px; padding: 4px 4px 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-color: var(--chip-line) transparent;
}
.gallery { scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
/* Its arrows: round ivory buttons on their lip, over the strip's edges, half out of it. */
.carousel { position: relative; }
.slide-arrow {
  position: absolute; top: calc(50% + 11px); z-index: 1; width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--deep); box-shadow: 0 5px 0 var(--deep); transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l8 8-8 8' fill='none' stroke='%230f1b3d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat, linear-gradient(#ffffff 48%, #e6edf8 48%);
  transition: opacity 150ms;
}
.slide-arrow.prev { left: -22px; scale: -1 1; }
.slide-arrow.next { right: -22px; }
.slide-arrow:hover { filter: brightness(1.03); }
.slide-arrow:active { box-shadow: 0 1px 0 var(--deep); transform: translateY(calc(-50% + 4px)); }
.slide-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery a { display: block; scroll-snap-align: start; border-radius: 18px; border: 2px solid var(--deep); box-shadow: 0 4px 0 var(--deep); overflow: hidden; }
.gallery a:hover { border-color: var(--gold); }
.gallery img { display: block; width: 100%; height: auto; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.tile { padding: 26px; }
.tile img { display: block; height: 56px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 3px 0 rgba(15, 27, 61, 0.6)); }
.tile img[src*="avatar"], .tile img[src*="crest"] { border-radius: 16px; }
.tile h3, .pane h3 { font-size: 22px; line-height: 1.2; }
.tile p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--muted); }

.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.pane { padding: 30px; }
.pane h3 { font-size: 26px; color: var(--gold-light); }
.pane p { margin-top: 8px; color: var(--muted); }
.pane ul { margin: 18px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pane li { position: relative; padding-left: 22px; }
.pane li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

.rules { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; gap: 40px 56px; margin-top: 36px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 26px; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 27, 61, 0.9); border: 2px solid var(--chip-line); color: var(--gold-light); font-family: var(--title); font-size: 19px;
}
.steps h3 { font-size: 21px; line-height: 40px; }
.steps p { color: var(--muted); font-size: 16px; }
.values { padding: 24px 26px; }
.values table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.values caption { padding-bottom: 12px; text-align: left; font-family: var(--title); font-size: 21px; }
.values th, .values td { padding: 9px 0; border-top: 1px solid var(--line); text-align: right; }
.values thead th { border-top: 0; color: var(--muted); font-size: 14px; font-weight: 800; }
.values th:first-child { text-align: left; }
.values tbody th { font-weight: 800; }
.values td { width: 32%; color: var(--muted); }
.values td.strong { color: var(--gold-light); font-weight: 800; }
.values p { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.rules + .intro { margin-top: 28px; }

.faq { margin-top: 28px; padding: 4px 24px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold-light); font-family: var(--title); font-size: 28px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--gold-light); }
.faq details p { padding: 0 44px 20px 0; color: var(--muted); }

.closing { margin-top: 96px; padding: 40px 48px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 24px 56px; flex-wrap: wrap; }
.closing img { width: 280px; transform: rotate(-4deg); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); }
.closing div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.closing h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.closing p { color: var(--muted); font-size: 18px; }
.closing .button { margin-top: 14px; }

/* Legal pages and guides: the band holds the title, the text reads on the navy ground. */
.page-title { padding-top: 24px; padding-bottom: 44px; }
.page-title h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; }
.page-title p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.doc { max-width: 760px; padding-top: 48px; color: #e6ecf8; }
.doc h2 { margin: 36px 0 10px; font-size: 24px; color: var(--gold-light); text-shadow: 0 3px 0 var(--deep); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }

.crumbs { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 24px 0 6px; font-size: 20px; }
.doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc strong { color: #ffffff; font-weight: 800; }
.doc .values { margin: 6px 0 22px; }
.doc .values td { width: auto; padding-left: 12px; }
.example { margin: 14px 0 18px; padding: 18px 22px; border-radius: 18px; }
.example h3 { margin: 0 0 6px; font-size: 18px; color: var(--gold-light); }
.example p { margin: 0 0 6px; color: var(--muted); }
.example p:last-child { margin-bottom: 0; color: #ffffff; }
.doc .faq { margin-top: 8px; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.guides a { display: block; padding: 18px 20px; border-radius: 18px; color: #ffffff; text-decoration: none; }
.guides a:hover { border-color: var(--gold); color: #ffffff; }
.guides strong { display: block; font-family: var(--title); font-weight: 400; font-size: 19px; color: var(--gold-light); }
.guides span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 760px) { .guides { grid-template-columns: minmax(0, 1fr); } }
.page-title p.updated { margin-top: 4px; font-size: 13px; }
.doc dl { margin: 0 0 14px; }
.doc dt { margin-top: 16px; font-weight: 800; color: #ffffff; }
.doc dd { margin: 4px 0 0; }
.doc .lead { font-size: 18px; color: #ffffff; }
.doc h2.group { margin-top: 44px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc a.mail { font-weight: 800; color: var(--gold-light); }

footer { background: var(--deep); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 28px; padding-bottom: 32px; }
footer .about { max-width: 460px; }
footer strong { display: block; color: #ffffff; font-family: var(--title); font-weight: 400; font-size: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: #ffffff; text-decoration: none; }
footer nav a:hover { color: var(--gold-light); }
footer .social { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
footer .social span { color: #ffffff; font-family: var(--title); font-size: 17px; margin-right: 4px; }
footer .social a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 2px solid var(--chip-line); color: #ffffff; text-decoration: none; font-weight: 800; }
footer .social a:hover { border-color: var(--gold); }
footer .social svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; }
footer .social .facebook svg { background: #1877f2; }
footer .social .instagram svg { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
footer .social .discord svg { background: #5865f2; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 24px; padding-bottom: 56px; }
  .art { max-width: 380px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 72px; }
  .closing { margin-top: 72px; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top nav { display: none; }
  .tiles, .variants { grid-template-columns: minmax(0, 1fr); }
  .actions, .actions .button { width: 100%; }
  .stores { width: 100%; }
  .store, .stores > li { flex: 1 1 0; }
  .store { padding-right: 12px; font-size: 17px; white-space: nowrap; }
  .stores a.store { width: 100%; }
  .gallery { grid-auto-columns: 88%; }
  .slide-arrow { width: 46px; height: 46px; background-size: 22px, auto; }
  .slide-arrow.prev { left: -6px; }
  .slide-arrow.next { right: -6px; }
  .trailer { padding: 8px; }
  .pane, .closing { padding: 26px 22px; }
  .faq { padding: 4px 18px; }
  .closing div { align-items: center; text-align: center; }
  .closing img { width: 220px; }
  .steps li { padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
