/* Don't Look Back: page-local styles. Wide 3D stage in the site's neon frame. */
.dl-page { padding-top: 12px; padding-bottom: 48px; }
.dl-back { margin: 6px 0 0; font-size: 14px; }
.dl-back a { color: #9aabc0; text-decoration: none; }
.dl-back a:hover, .dl-back a:focus-visible { color: #5cf6ff; text-decoration: underline; }
.dl-page .page-hero { padding: 10px 0 4px; }
.dl-page .page-hero p { max-width: 760px; }
.dl-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.dl-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(60, 230, 240, 0.55); color: #b8fff8; background: rgba(0, 50, 60, 0.35); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.dl-shell {
  /* Center with margin-left, not transform — iOS mis-hits buttons inside a translated shell. */
  --dlw: min(1200px, calc(100vw - 24px)); position: relative; left: 50%; width: var(--dlw); margin: 16px 0 10px; margin-left: calc(var(--dlw) / -2); height: min(80vh, calc(var(--dlw) * 0.5625)); min-height: 320px;
  background: #000; border-radius: 16px; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  border: 1px solid rgba(60, 230, 240, 0.32); box-shadow: 0 0 40px rgba(0, 180, 200, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.6);
  font-family: "Exo 2", "Segoe UI", system-ui, sans-serif; color: #e8f6ff;
}
.dl-stage { position: absolute; inset: 0; overflow: hidden; }
.dl-stage canvas { position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important; max-width: none; display: block; }
.dl-shell.is-playing { touch-action: none; }
.dl-shell.is-playing .dl-stage canvas { cursor: none; touch-action: none; }
.dl-shell button, .dl-screen, .dl-screen-in, .dl-topbtns { touch-action: manipulation; -webkit-tap-highlight-color: rgba(80, 255, 240, 0.18); }
.dl-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.45) 100%); }

.dl-hud { position: absolute; left: 14px; top: 12px; z-index: 4; display: grid; gap: 5px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(200, 240, 255, 0.86); text-shadow: 0 1px 2px #000; pointer-events: none; }
.dl-hud b { color: #effcff; font-weight: 800; }
.dl-hud-row { display: flex; align-items: center; gap: 8px; }
#dl-score { font-size: 18px; letter-spacing: 0.12em; color: #7efff2; }
.dl-ic { opacity: 0.8; }

.dl-topbtns { position: absolute; top: 10px; right: 10px; z-index: 6; display: flex; gap: 8px; }
.dl-tbtn { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid rgba(140, 240, 255, 0.4); background: rgba(4, 16, 28, 0.72); color: #d8fbff; font: 700 12px/1 "Exo 2", system-ui, sans-serif; letter-spacing: 0.06em; cursor: pointer; touch-action: manipulation; }
.dl-tbtn svg { width: 14px; height: 14px; display: block; }
.dl-tbtn:hover, .dl-tbtn:focus-visible { background: rgba(10, 40, 55, 0.9); outline: 2px solid rgba(120, 240, 255, 0.55); outline-offset: 2px; }
#dl-pausebtn { display: none; }
.dl-shell.is-playing #dl-pausebtn { display: inline-flex; }

.dl-prompt, .dl-toast { position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(4, 18, 28, 0.72); border: 1px solid rgba(120, 240, 255, 0.35); color: #e8fffc; font: 800 15px/1.2 "Exo 2", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 0 12px rgba(80, 255, 240, 0.5); pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.dl-prompt.is-on, .dl-toast.is-on { opacity: 1; }
.dl-prompt { top: 22%; }
.dl-toast { bottom: 16%; font-size: 13px; letter-spacing: 0.08em; }
.dl-touch-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); color: #c8eef2; font: 700 12px/1 "Exo 2", system-ui, sans-serif; letter-spacing: 0.06em; pointer-events: none; max-width: 90%; text-align: center; }

.dl-screen { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 24px 16px 16px; background: linear-gradient(180deg, rgba(2, 8, 16, 0.28), rgba(2, 10, 20, 0.72)); }
.dl-screen[hidden], .dl-hud[hidden], .dl-touch-hint[hidden] { display: none !important; }
.dl-screen-in { text-align: center; max-width: 520px; }
.dl-screen--title, .dl-screen--over { align-items: flex-end; padding-bottom: 5%; background: linear-gradient(180deg, rgba(2, 8, 16, 0.00) 0%, rgba(2, 8, 16, 0.04) 50%, rgba(2, 10, 20, 0.82) 100%); }
.dl-screen h2 { margin: 0 0 8px; font-size: 28px; }
.dl-screen h2.dl-logo { color: #7efff2; font-weight: 800; letter-spacing: 0.12em; font-size: clamp(24px, 5vw, 44px); line-height: 0.95; text-shadow: 0 0 22px rgba(0, 255, 230, 0.55), 0 0 48px rgba(255, 40, 180, 0.25); animation: dl-flicker 5s infinite; }
.dl-screen--over h2.dl-logo { color: #ffd28a; text-shadow: 0 0 22px rgba(255, 160, 60, 0.5); animation: none; }
@keyframes dl-flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 47% { opacity: 0.7; } 48% { opacity: 1; } 81% { opacity: 1; } 82% { opacity: 0.8; } 83% { opacity: 1; } }
.dl-screen p { color: rgba(220, 245, 255, 0.9); font-size: 15px; margin: 8px auto; }
.dl-go { appearance: none; margin: 10px auto 0; display: inline-block; padding: 14px 28px; min-height: 48px; min-width: 160px; border-radius: 999px; border: 1px solid rgba(120, 255, 240, 0.75); background: linear-gradient(180deg, #0e5a62, #063038); color: #e8fffc; font: 800 16px/1 "Exo 2", system-ui, sans-serif; letter-spacing: 0.08em; cursor: pointer; box-shadow: 0 0 20px rgba(0, 220, 200, 0.35); position: relative; z-index: 2; touch-action: manipulation; }
.dl-go:hover, .dl-go:focus-visible { background: linear-gradient(180deg, #157880, #084048); outline: 2px solid rgba(160, 255, 250, 0.65); outline-offset: 2px; }
.dl-go:disabled { opacity: 0.6; cursor: progress; }
.dl-row { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dl-alt { appearance: none; display: inline-block; padding: 12px 16px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(140, 200, 220, 0.4); background: rgba(8, 20, 30, 0.6); color: #d2eef4; font: 700 13px/1 "Exo 2", system-ui, sans-serif; letter-spacing: 0.06em; cursor: pointer; text-decoration: none; touch-action: manipulation; }
.dl-alt:hover, .dl-alt:focus-visible { outline: 2px solid rgba(120, 240, 255, 0.5); outline-offset: 2px; }
.dl-best { font-size: 14px !important; color: #9ef7ea !important; letter-spacing: 0.06em; }
.dl-nogl { color: #ffc8a8 !important; }
.dl-q { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #9ad4dc; }
.dl-q button { appearance: none; padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid rgba(120, 220, 230, 0.35); background: rgba(0, 20, 30, 0.5); color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
.dl-q button[aria-pressed="true"] { background: rgba(20, 90, 100, 0.8); border-color: rgba(140, 255, 250, 0.7); color: #e8fffc; }

/* full screen (same pattern as Don't Open the Door) */
.dl-shell.is-fs { left: 0; transform: none; margin-left: 0; max-width: none; width: 100%; height: 100%; border-radius: 0; border: 0; margin: 0; }
.dl-shell.dl-fake-fs { position: fixed; inset: 0; left: 0; transform: none; margin-left: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
html.dl-fs-lock, html.dl-fs-lock body { overflow: hidden; }



.dl-help { margin: 22px 0 0; padding: 18px 20px; border-radius: 16px; background: rgba(8, 14, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); }
.dl-help h2 { margin: 0 0 8px; font-size: 22px; }
.dl-help h3 { margin: 6px 0; font-size: 16px; color: #7efff2; }
.dl-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-help ul { margin: 0; padding-left: 18px; color: #c9d4e6; font-size: 15px; line-height: 1.5; }
.dl-help li { margin: 4px 0; }
.dl-small { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.dl-page .game-more { margin: 18px 0 0; text-align: center; }

@media (max-width: 760px) {
  .dl-shell { --dlw: calc(100vw - 16px); height: min(76vh, 620px); border-radius: 12px; }
  .dl-help-grid { grid-template-columns: 1fr; }
  .dl-hud { left: 10px; top: 46px; font-size: 10px; }
  #dl-score { font-size: 15px; }
  .dl-tbtn span { display: none; }
  .dl-tbtn { padding: 8px 10px; }
  .dl-screen p { font-size: 14px; }
  .dl-screen { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-screen h2.dl-logo, .dl-prompt, .dl-toast { animation: none; transition: none; }
}
