:root {
  color-scheme: dark;
  background: #10232f;
  color: #fff7e3;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { margin: 0; }

#ludo-app {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

[data-app-page] #ludo-app {
  height: calc(100vh - var(--site-header-height));
  height: calc(100dvh - var(--site-header-height));
  contain: size;
}
[data-app-page="home"] #ludo-app { min-height: 280px; }
:root:not([data-app-page]) #splash { display: none; }
:root:not([data-app-page]) .public-home button { display: none; }
#ludo-app noscript p { margin: 16px; }
[data-app-page="game"] { overflow: hidden; }
[data-app-page="game"] .public-home { display: none; }

.site-wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.public-home :is(a, button) { color: #f5cf77; text-underline-offset: 4px; }
.public-home :is(a, button:not(:disabled)):hover { color: #fff7e3; }
.public-home :is(a, button):focus-visible { outline: 2px solid #f5cf77; outline-offset: 4px; }
.public-home button { background: transparent; font: inherit; cursor: pointer; }

.site-footer .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  height: 100%;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 3vw, 28px); }
.site-footer a { padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.play-guide { padding-block: clamp(32px, 7vw, 76px); border-top: 1px solid #344854; }
.play-guide h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.site-lead { max-width: 62ch; margin: 0; color: #dee7eb; font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6; }
.guide-grid { margin-block: 32px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.guide-grid article { border: 1px solid #344854; border-radius: 16px; padding: 20px; background: #142d3a; }
.guide-grid article:first-child { grid-row: span 2; }
.guide-grid img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 16px; }
.guide-grid h3 { margin: 0; font-size: 21px; }
.guide-grid p { margin-block: 8px 12px; color: #d4e0e6; line-height: 1.6; }
.public-home .play-link { display: inline-block; padding: 10px 15px; border: 1px solid; border-radius: 8px; font-weight: 650; }
.site-footer { padding-block: 20px; border-top: 1px solid #344854; color: #d4e0e6; font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .site-footer .site-wrap { flex-direction: column; justify-content: center; }
  .site-footer nav { justify-content: center; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article:first-child { grid-row: auto; }
}
