/*
 * Thèmes partagés entre le tirage et l'admin. Chaque page pose <html data-kind> :
 * books « Bibliothèque nocturne », films « Salle obscure », series « Néon ».
 * Les couleurs passent toutes par ces variables ; les blocs [data-kind] les redéfinissent.
 */

:root {
  --ink: #0b0d14;
  --ink-rgb: 11 13 20;
  --ink-0-rgb: 8 10 15;
  --ink-2: #11141d;
  --ink-2-rgb: 17 20 29;
  --ink-3: #181c28;
  --ink-3-rgb: 24 28 40;
  --ink-4: #222738;
  --ink-4-rgb: 34 39 56;
  --gold: #d4a85a;
  --gold-rgb: 212 168 90;
  --gold-light: #e9c983;
  --gold-light-rgb: 233 201 131;
  --gold-deep: #9c7434;
  --parchment: #efe6d6;
  --parchment-rgb: 239 230 214;
  --muted: #9a917f;
  --faint: #6b6558;
  --bordeaux: #7a1f2b;
  --danger: #e0786b;
  --accent-rgb: 212 168 90;
  --lamp-rgb: 240 190 110;
  --dust-rgb: 240 212 150;
  --title-color: #f7f0e3;
  --line: rgb(var(--gold-light-rgb) / 0.14);
  --line-strong: rgb(var(--gold-light-rgb) / 0.28);

  /* Fond */
  --base-glow: #161a28;
  --base-top: #0d1018;
  --base-bottom: #08090e;

  /* Boutons dorés et médaillon de tirage */
  --btn-1: #ecd197;
  --btn-2: #d4a85a;
  --btn-3: #b98c45;
  --btn-1-hover: #f3dcab;
  --btn-2-hover: #dcb36a;
  --btn-3-hover: #c0954d;
  --on-gold: #2a1d08;
  --medal-1: #fdebc0;
  --medal-2: #e8c47c;
  --medal-3: #c99a4c;
  --medal-4: #8d6629;
  --medal-shade-rgb: 90 55 10;
  --medal-rim-rgb: 255 236 190;
  --medal-text: #3d2a0a;
  --medal-text-shadow: 0 1px 0 rgb(var(--medal-rim-rgb) / 0.65);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Décor de fond ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop > * {
  position: absolute;
  inset: 0;
}

.backdrop .base {
  background:
    radial-gradient(120% 80% at 50% 120%, var(--base-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--base-top) 0%, var(--ink) 55%, var(--base-bottom) 100%);
}

.backdrop .ambient {
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.5);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.6s var(--ease-out), transform 2.4s var(--ease-out);
}

.backdrop .lamp {
  background:
    radial-gradient(60% 55% at 50% -8%, rgb(var(--lamp-rgb) / 0.26) 0%, rgb(var(--lamp-rgb) / 0.08) 45%, transparent 75%),
    radial-gradient(40% 30% at 50% 40%, rgb(var(--accent-rgb) / 0.07) 0%, transparent 70%);
  transition: opacity 0.8s ease;
}

.backdrop .vignette {
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 45%, rgba(3, 4, 8, 0.75) 100%);
}

.backdrop .grain {
  inset: -50%;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Éléments communs ---------- */

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 'brand nav actions';
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
}

.topbar > .brand {
  grid-area: brand;
  justify-self: start;
}

.topbar > .page-nav {
  grid-area: nav;
}

.topbar > .topbar-actions {
  grid-area: actions;
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--parchment);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  font-variation-settings: 'opsz' 48, 'SOFT' 50;
}

.brand-name em {
  color: var(--gold-light);
  font-style: inherit;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgb(var(--ink-2-rgb) / 0.55);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-spring);
}

.icon-btn:hover {
  color: var(--gold-light);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--ink-3-rgb) / 0.7);
  color: var(--parchment);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, opacity 0.2s;
}

.btn:hover {
  border-color: rgb(var(--gold-light-rgb) / 0.5);
  background: rgb(var(--ink-4-rgb) / 0.85);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-gold {
  border-color: transparent;
  background: linear-gradient(180deg, var(--btn-1) 0%, var(--btn-2) 55%, var(--btn-3) 100%);
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: 0 6px 20px -6px rgb(var(--gold-rgb) / 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:hover {
  background: linear-gradient(180deg, var(--btn-1-hover) 0%, var(--btn-2-hover) 55%, var(--btn-3-hover) 100%);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgb(var(--gold-light-rgb) / 0.06);
  color: var(--parchment);
  border-color: transparent;
}

.btn-danger {
  border-color: rgba(224, 120, 107, 0.35);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(224, 120, 107, 0.12);
  border-color: rgba(224, 120, 107, 0.6);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--gold-light-rgb) / 0.05);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  font-family: var(--font-body);
  font-size: 0.75em;
  color: var(--parchment);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 8px;
  justify-items: center;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--ink-2-rgb) / 0.92);
  backdrop-filter: blur(12px);
  color: var(--parchment);
  font-size: 0.9rem;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.45s var(--ease-spring) both;
}

.toast.is-error {
  border-color: rgba(224, 120, 107, 0.5);
  color: #f3c1ba;
}

.toast.is-leaving {
  animation: toast-out 0.3s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

/* ---------- Sélecteur de page (un bouton encadré par tirage) ---------- */

.page-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  view-transition-name: page-nav;
}

.page-pill {
  --pill-rgb: 212 168 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgb(var(--pill-rgb) / 0.3);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.3s, transform 0.25s var(--ease-spring);
}

.page-pill-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: rgb(var(--pill-rgb));
}

/* Chaque bouton annonce le style de sa page avec sa propre police */
.page-pill[data-kind='books'] span {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.page-pill[data-kind='films'] span {
  font-family: 'Limelight', 'Fraunces', serif;
  letter-spacing: 0.03em;
}

.page-pill[data-kind='games'] span {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.page-pill[data-kind='words'] span {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-pill[data-kind='series'] span {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-pill:hover {
  color: #fff;
  border-color: rgb(var(--pill-rgb) / 0.65);
  background: rgb(var(--pill-rgb) / 0.08);
  transform: translateY(-1px);
}

.page-pill[aria-current='page'] {
  color: #fff;
  border-color: rgb(var(--pill-rgb) / 0.9);
  background: linear-gradient(180deg, rgb(var(--pill-rgb) / 0.26), rgb(var(--pill-rgb) / 0.1));
  box-shadow: inset 0 0 0 1px rgb(var(--pill-rgb) / 0.25), 0 6px 24px -8px rgb(var(--pill-rgb) / 0.85);
}

/* Cinq boutons : sous le logo dès que la barre devient trop étroite */
@media (max-width: 1300px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand actions'
      'nav nav';
    row-gap: 12px;
  }

  .topbar > .page-nav {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .page-nav {
    flex-wrap: wrap;
    max-width: 360px;
    border-radius: 22px;
  }

  .page-pill {
    padding: 6px 11px;
    font-size: 0.8rem;
  }

  .page-pill-icon {
    display: none;
  }
}

/* Fondu enchaîné entre les pages (navigateurs compatibles) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ---------- Filmomancie : « Salle obscure » ---------- */

html[data-kind='films'] {
  --ink: #0c0809;
  --ink-rgb: 12 8 9;
  --ink-0-rgb: 8 5 6;
  --ink-2: #150d0f;
  --ink-2-rgb: 21 13 15;
  --ink-3: #1f1316;
  --ink-3-rgb: 31 19 22;
  --ink-4: #2c1b1f;
  --ink-4-rgb: 44 27 31;
  --gold: #e4573f;
  --gold-rgb: 228 87 63;
  --gold-light: #ffc48a;
  --gold-light-rgb: 255 196 138;
  --gold-deep: #9e2b22;
  --parchment: #f6ebe4;
  --parchment-rgb: 246 235 228;
  --muted: #a8918b;
  --faint: #725a55;
  --accent-rgb: 228 87 63;
  --lamp-rgb: 255 228 196;
  --dust-rgb: 255 232 205;
  --title-color: #fff3ec;
  --base-glow: #2b1014;
  --base-top: #150a0c;
  --base-bottom: #070405;
  --btn-1: #ff8f73;
  --btn-2: #e4573f;
  --btn-3: #b2302a;
  --btn-1-hover: #ffa48c;
  --btn-2-hover: #ef6a51;
  --btn-3-hover: #c23b33;
  --on-gold: #fff5ef;
  --medal-1: #ffbba3;
  --medal-2: #f06a50;
  --medal-3: #c43b2e;
  --medal-4: #7a1916;
  --medal-shade-rgb: 70 6 4;
  --medal-rim-rgb: 255 210 186;
  --medal-text: #fff6f0;
  --medal-text-shadow: 0 1px 2px rgba(70, 0, 0, 0.7);
}

/* Faisceau du projecteur qui descend sur l'écran */
html[data-kind='films'] .backdrop .lamp {
  background:
    radial-gradient(18% 10% at 50% 0%, rgb(var(--lamp-rgb) / 0.35), transparent 70%),
    conic-gradient(
      from 180deg at 50% -4%,
      transparent 0deg 161deg,
      rgb(var(--lamp-rgb) / 0.07) 167deg,
      rgb(var(--lamp-rgb) / 0.15) 180deg,
      rgb(var(--lamp-rgb) / 0.07) 193deg,
      transparent 199deg
    );
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 25%, transparent 88%);
}

/* Bandes de pellicule perforées sur les bords */
html[data-kind='films'] .backdrop .base::before,
html[data-kind='films'] .backdrop .base::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  opacity: 0.55;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='28'><rect x='10' y='7' width='14' height='13' rx='3' fill='%23050303'/></svg>") repeat-y,
    linear-gradient(90deg, #1d1012, #2a171a 50%, #1d1012);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

html[data-kind='films'] .backdrop .base::before {
  left: 0;
  border-right: 1px solid rgb(var(--gold-light-rgb) / 0.08);
}

html[data-kind='films'] .backdrop .base::after {
  right: 0;
  border-left: 1px solid rgb(var(--gold-light-rgb) / 0.08);
}

html[data-kind='films'] :is(.brand-name, .result-title, .empty h2, .spin-label, .panel-head h2, .login-card h1, .dialog-head h2, .confirm h2, .force-info h2) {
  font-family: 'Limelight', 'Fraunces', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- Seriomancie : « Néon » ---------- */

html[data-kind='series'] {
  --ink: #07080f;
  --ink-rgb: 7 8 15;
  --ink-0-rgb: 4 5 10;
  --ink-2: #0d0f1c;
  --ink-2-rgb: 13 15 28;
  --ink-3: #141729;
  --ink-3-rgb: 20 23 41;
  --ink-4: #1e2240;
  --ink-4-rgb: 30 34 64;
  --gold: #8b6cff;
  --gold-rgb: 139 108 255;
  --gold-light: #7fe9ff;
  --gold-light-rgb: 127 233 255;
  --gold-deep: #5a3fd0;
  --parchment: #e9ecff;
  --parchment-rgb: 233 236 255;
  --muted: #9095bd;
  --faint: #5f638b;
  --accent-rgb: 139 108 255;
  --lamp-rgb: 140 110 255;
  --dust-rgb: 160 225 255;
  --title-color: #f3f5ff;
  --base-glow: #1d1745;
  --base-top: #0b0b1b;
  --base-bottom: #04040a;
  --btn-1: #9ff5ff;
  --btn-2: #7d8cff;
  --btn-3: #8a4dff;
  --btn-1-hover: #b8f8ff;
  --btn-2-hover: #919eff;
  --btn-3-hover: #9a63ff;
  --on-gold: #0a0822;
  --medal-1: #c4fbff;
  --medal-2: #6fd8ff;
  --medal-3: #7a6bff;
  --medal-4: #4325b0;
  --medal-shade-rgb: 20 10 70;
  --medal-rim-rgb: 205 246 255;
  --medal-text: #0b0a26;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Lignes de balayage d'écran */
html[data-kind='series'] .backdrop .vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}

html[data-kind='series'] :is(.brand-name, .eyebrow, .result-author, .force-book) {
  font-style: normal;
}

html[data-kind='series'] :is(.brand-name, .result-title, .empty h2, .spin-label, .panel-head h2, .login-card h1, .dialog-head h2) {
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  html[data-kind='films'] .backdrop .base::before,
  html[data-kind='films'] .backdrop .base::after {
    width: 16px;
    background-size: 16px 14px, auto;
  }
}

/* ---------- Randomancie : « Table de jeu » ---------- */

html[data-kind='words'] {
  --ink: #06100c;
  --ink-rgb: 6 16 12;
  --ink-0-rgb: 3 9 6;
  --ink-2: #0b1813;
  --ink-2-rgb: 11 24 19;
  --ink-3: #10231b;
  --ink-3-rgb: 16 35 27;
  --ink-4: #183327;
  --ink-4-rgb: 24 51 39;
  --gold: #34c48b;
  --gold-rgb: 52 196 139;
  --gold-light: #f0d79a;
  --gold-light-rgb: 240 215 154;
  --gold-deep: #1f6b52;
  --parchment: #f4eedc;
  --parchment-rgb: 244 238 220;
  --muted: #94a69b;
  --faint: #5e7268;
  --accent-rgb: 52 196 139;
  --lamp-rgb: 255 222 160;
  --dust-rgb: 255 228 170;
  --title-color: #fbf6e6;
  --base-glow: #14402e;
  --base-top: #0a1d15;
  --base-bottom: #030806;
  --btn-1: #7fe6b9;
  --btn-2: #34c48b;
  --btn-3: #1f8a60;
  --btn-1-hover: #98eec8;
  --btn-2-hover: #45d29a;
  --btn-3-hover: #27996c;
  --on-gold: #062016;
  --medal-1: #9df1c9;
  --medal-2: #3fcf93;
  --medal-3: #1d9466;
  --medal-4: #0d4d34;
  --medal-shade-rgb: 4 40 26;
  --medal-rim-rgb: 220 255 236;
  --medal-text: #04170f;
}

/* Tapis de feutre éclairé par une lampe de table */
html[data-kind='words'] .backdrop .base {
  background:
    radial-gradient(70% 60% at 50% 48%, #164a35 0%, #0c2a1e 45%, transparent 80%),
    linear-gradient(180deg, var(--base-top) 0%, var(--ink) 60%, var(--base-bottom) 100%);
}

html[data-kind='words'] .backdrop .grain {
  opacity: 0.14;
}

html[data-kind='words'] :is(.brand-name, .result-title, .empty h2, .spin-label, .words-form h2) {
  font-family: 'Cinzel', 'Fraunces', serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Gamomancie : « Salle d'arcade » ---------- */

html[data-kind='games'] {
  --ink: #09070f;
  --ink-rgb: 9 7 15;
  --ink-0-rgb: 5 4 9;
  --ink-2: #110d1c;
  --ink-2-rgb: 17 13 28;
  --ink-3: #181229;
  --ink-3-rgb: 24 18 41;
  --ink-4: #231a3b;
  --ink-4-rgb: 35 26 59;
  --gold: #ff3d7f;
  --gold-rgb: 255 61 127;
  --gold-light: #ffe14d;
  --gold-light-rgb: 255 225 77;
  --gold-deep: #b3124f;
  --parchment: #f2edff;
  --parchment-rgb: 242 237 255;
  --muted: #9c94ba;
  --faint: #635b80;
  --accent-rgb: 255 61 127;
  --lamp-rgb: 255 70 150;
  --dust-rgb: 255 225 110;
  --title-color: #fff8d4;
  --base-glow: #2c0f3d;
  --base-top: #0d0817;
  --base-bottom: #040308;
  --btn-1: #ff8fb6;
  --btn-2: #ff3d7f;
  --btn-3: #c41656;
  --btn-1-hover: #ffa6c5;
  --btn-2-hover: #ff5a93;
  --btn-3-hover: #d42364;
  --on-gold: #fff6fa;
  --medal-1: #ffb8d0;
  --medal-2: #ff4f8a;
  --medal-3: #d81b60;
  --medal-4: #6e0b31;
  --medal-shade-rgb: 60 0 25;
  --medal-rim-rgb: 255 214 232;
  --medal-text: #fff8e0;
  --medal-text-shadow: 2px 2px 0 rgba(80, 0, 30, 0.85);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Trame de points façon écran à LED */
html[data-kind='games'] .backdrop .grain {
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: normal;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.3px);
  background-size: 7px 7px;
}

html[data-kind='games'] :is(.eyebrow, .result-author, .force-book) {
  font-style: normal;
}

html[data-kind='games'] :is(.brand-name, .result-title, .empty h2, .spin-label, .panel-head h2, .login-card h1, .dialog-head h2, .confirm h2, .force-info h2) {
  font-family: 'Press Start 2P', monospace;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

html[data-kind='games'] .brand-name {
  font-size: 0.95rem;
}

html[data-kind='games'] :is(.panel-head h2, .empty h2, .login-card h1) {
  font-size: 1.05rem;
}

html[data-kind='games'] :is(.dialog-head h2, .confirm h2, .force-info h2) {
  font-size: 0.9rem;
}
