/* Shared pre-game presentation. Every rule is scoped away from the game HUD. */
.entry-page, .loading-screen {
  --entry-bg: #100d14;
  --entry-ink: #f3eee8;
  --entry-muted: #b3aab9;
  --entry-accent: #bd9acb;
  --entry-line: #38303e;
  color: var(--entry-ink);
  background: var(--entry-bg);
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  color-scheme: dark;
}
.entry-page { margin: 0; min-height: 100svh; }
.entry-page *, .loading-screen * { box-sizing: border-box; }
.entry-page a, .loading-screen a { color: inherit; text-underline-offset: 4px; }
.entry-page a:hover, .loading-screen a:hover { color: var(--entry-accent); }
.entry-page :focus-visible, .loading-screen :focus-visible { outline: 2px solid var(--entry-accent); outline-offset: 5px; }
.entry-shell, .loading-shell { width: min(1280px, 100%); margin: auto; padding: 0 clamp(22px, 4vw, 64px); }
.entry-header { min-height: 100px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--entry-line); }
.wordmark { font: 700 23px/1 'Cinzel', Georgia, serif; letter-spacing: .1em; text-decoration: none; }
.wordmark span { font: 11px Arial, sans-serif; vertical-align: top; letter-spacing: 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.entry-header .eyebrow { color: var(--entry-muted); }
.entry-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 56px 0 48px; }
.edition { color: var(--entry-accent); margin: 0 0 27px; }
.game-title { margin: 0; font: 700 clamp(48px, 5.8vw, 80px)/1.05 'Cinzel', Georgia, serif; letter-spacing: -.045em; }
.game-title > span:first-child { display: block; font-size: .36em; line-height: 1; letter-spacing: .28em; margin: 0 0 12px 3px; }
.game-title .title-period { color: var(--entry-accent); }
.entry-intro { font-size: 26px; line-height: 1.3; letter-spacing: -.02em; margin: 28px 0 14px; }
.entry-description { color: var(--entry-muted); font-size: 14px; line-height: 1.65; margin: 0; }
.entry-action { max-width: 430px; margin-top: 30px; }
#agreeRow { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; margin-bottom: 16px; }
#agreeBox { margin: 2px 0 0; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--entry-accent); cursor: pointer; }
.play-button { width: 100%; min-height: 60px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--entry-accent); color: #1b1021; border: 1px solid var(--entry-accent); border-radius: 0; font: 700 15px/1.4 Arial, sans-serif; letter-spacing: .03em; cursor: pointer; transition: background-color 120ms, border-color 120ms, transform 120ms; }
.play-button > span:last-child { font-size: 25px; line-height: 1; }
.play-button:hover:not(:disabled) { background: #d3b8df; border-color: #d3b8df; }
.play-button:active:not(:disabled) { transform: translateY(1px); }
.play-button:disabled { background: #27212d; border-color: #504359; color: #b3aab9; cursor: not-allowed; }
.action-note, #loadingTip { color: var(--entry-muted); font-size: 11px; margin: 10px 0 0; }
.game-art { margin: 0; min-width: 0; min-height: 450px; position: relative; background: #14001f url('../images/runner-scene.webp') center / auto 125% no-repeat; border-top: 3px solid var(--entry-accent); }
.game-art figcaption { position: absolute; inset: auto 22px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 10px; letter-spacing: .16em; }
.game-art figcaption span:last-child { font-size: 8px; color: var(--entry-muted); }
.controls { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; padding: 27px 0; border-top: 1px solid var(--entry-line); border-bottom: 1px solid var(--entry-line); }
.controls h2 { font-size: 15px; margin: 0 0 5px; }
.controls p { font-size: 12px; color: var(--entry-muted); margin: 0; }
.controls dl { display: grid; grid-template-columns: repeat(4, auto); gap: 20px; margin: 0; }
.controls dt { min-height: 34px; display: flex; gap: 5px; align-items: center; }
.controls dt span { color: var(--entry-muted); font-size: 11px; }
.controls kbd { display: inline-block; border: 1px solid #5d5065; min-width: 28px; padding: 3px 7px; text-align: center; font: 12px/1.4 Arial, sans-serif; }
.controls dd { font-size: 12px; color: var(--entry-muted); margin: 8px 0 0; }
.legal-notice { font-size: 12px; color: var(--entry-muted); border-bottom: 1px solid var(--entry-line); }
.legal-notice summary { cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; list-style: none; }
.legal-notice summary::-webkit-details-marker { display: none; }
.legal-notice[open] summary span { transform: rotate(45deg); }
.legal-notice p { max-width: 850px; line-height: 1.7; }
.entry-page .footer-shell { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding: 26px 0; }
.entry-page .footer-copy { margin: 0; font-size: 10px; color: var(--entry-muted); }
.entry-page .footer-links, .entry-page .footer-social { display: flex; align-items: center; gap: 20px; }
.entry-page .footer-links a { font-size: 11px; text-decoration: none; }
.entry-page .footer-social a { display: flex; padding: 8px; }
.entry-page .footer-social svg { width: 18px; height: 18px; }
.loading-screen { position: fixed; inset: 0; z-index: 99999; overflow: auto; overscroll-behavior: contain; }
.loading-shell { min-height: 100%; display: flex; flex-direction: column; }
.back-link { font-size: 12px; text-decoration: none; padding: 12px 0; }
.loading-content { width: min(580px, 100%); margin: auto; padding: 60px 0; }
.loading-content .game-title { font-size: clamp(52px, 7vw, 92px); }
.loading-status { margin-top: 44px; }
.loading-stages { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 0; margin: 0 0 16px; font-size: 10px; color: var(--entry-muted); letter-spacing: .04em; }
.loading-stages li { display: flex; gap: 8px; }
.loading-stages [aria-current] { color: var(--entry-ink); }
#loadingBarWrap { height: 3px; background: var(--entry-line); overflow: hidden; }
#loadingBar { width: 32%; height: 100%; background: var(--entry-accent); animation: loading-scan 1.8s ease-in-out infinite alternate; }
@keyframes loading-scan { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
#loadingText { font-size: 19px; margin: 25px 0 6px; }
#loadingDetail { color: var(--entry-muted); font-size: 12px; min-height: 36px; margin: 0 0 22px; }
#loadingTip { text-align: center; }
.loading-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--entry-line); padding: 24px 0; font-size: 11px; color: var(--entry-muted); }
.loading-screen[data-state='ready'] #loadingBar { width: 100%; animation: none; }
.loading-screen[data-state='error'] #loadingBar { width: 100%; animation: none; background: #d9ada1; }
.loading-screen[data-state='error'] #loadingText { color: #ecc0b4; }
.loading-screen [hidden] { display: none !important; }
@media (max-width: 900px) {
  .entry-hero { gap: 28px; }
  .controls { grid-template-columns: 1fr; gap: 20px; }
  .game-title { font-size: 56px; }
}
@media (max-width: 650px) {
  .entry-header { min-height: 76px; gap: 12px; }
  .entry-header .eyebrow { max-width: 110px; text-align: right; font-size: 8px; }
  .entry-hero { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 28px; }
  .edition { font-size: 9px; margin-bottom: 23px; }
  .game-title { font-size: clamp(44px, 12vw, 68px); }
  .entry-intro { font-size: 23px; margin: 24px 0 14px; }
  .entry-action { margin-top: 24px; max-width: none; }
  .game-art { min-height: 230px; background-size: auto 160%; }
  .game-art figcaption { inset: auto 15px 15px; font-size: 8px; }
  .game-art figcaption span:last-child { display: none; }
  .controls dl { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .entry-page .footer-shell { gap: 18px; }
  .entry-page .footer-copy { flex-basis: 100%; order: 3; }
  .entry-page .footer-social { gap: 5px; }
  .loading-content { padding: 38px 0; }
  .loading-content .game-title { font-size: clamp(44px, 12vw, 72px); }
  .loading-status { margin-top: 34px; }
  .loading-stages { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .play-button { transition: none; }
  #loadingBar { animation: none; width: 32%; }
}
