/* Tilty Games — socle commun à toutes les pages : jetons, typo, boutons, contrôle d'âge.
   Signature de la marque : tout ce qui est titre penche (italique gras condensé), les boutons sont des
   parallélogrammes au même angle, un seul accent vermillon. */
:root {
  color-scheme: dark;
  --ink: #0b0a0d;
  --ink-2: #131116;
  --ink-3: #1d1a22;
  --line: #2e2a36;
  --bone: #f4efe6;
  --dim: #aaa398;
  --tilt: #ff4d2e;
  --slant: -9deg;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
::selection { background: var(--tilt); color: var(--ink); }

/* titres : la pente est la marque */
.display {
  font-style: italic; font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  line-height: .86; letter-spacing: -.012em; text-wrap: balance;
}

/* logotype : TILT tient debout, le Y a perdu l'équilibre */
.wm { display: inline-flex; align-items: baseline; gap: .34em; text-decoration: none; color: var(--bone); white-space: nowrap; }
.wm-word { font-style: italic; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: -.01em; display: inline-flex; }
.wm-y { display: inline-block; margin-left: -.05em; color: var(--tilt); transform-origin: 20% 95%; transform: rotate(15deg); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.wm:hover .wm-y { transform: rotate(32deg) translate(.04em, .03em); }
.wm-sub { font-weight: 600; font-stretch: 100%; font-size: 13px; letter-spacing: .02em; color: var(--dim); }

/* boutons : parallélogrammes à l'angle de l'italique */
.btn {
  --bg: var(--bone); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border: 0; background: none; cursor: pointer; text-decoration: none;
  color: var(--fg); font-style: italic; font-weight: 800; font-stretch: 84%; font-size: 18px; letter-spacing: .01em;
  text-transform: uppercase; white-space: nowrap; isolation: isolate;
  transition: transform .18s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg);
  transform: skewX(var(--slant)); transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateX(3px); }
.btn:hover::before { transform: skewX(calc(var(--slant) * 1.7)); }
.btn:active { transform: translateX(3px) translateY(1px); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 2px solid var(--bone); outline-offset: 3px; }
.btn--primary { --bg: var(--tilt); --fg: #120805; }
.btn--ghost { --fg: var(--bone); }
.btn--ghost::before { background: rgba(11, 10, 13, .35); box-shadow: inset 0 0 0 2px var(--bone); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* contrôle d'âge : posé par core.js sur toutes les pages, sauf dans les bornes en mode attract */
html[data-gate="1"] { overflow: hidden; }
.age {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(11, 10, 13, .97); overflow: auto;
}
.age-card { width: min(100%, 520px); display: flex; flex-direction: column; gap: 22px; }
.age-card .wm { margin-bottom: 14px; }
.age-title { font-size: clamp(44px, 9vw, 68px); }
.age-title em { font-style: inherit; color: var(--tilt); }
.age-text { color: var(--dim); max-width: 46ch; }
.age-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }
.age-leave { background: none; border: 0; padding: 12px 4px; cursor: pointer; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; font-size: 16px; }
.age-leave:hover { color: var(--bone); }
.age-note { font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
