/* A day at Dayroom: the interactive pixel piece. Builds on landing.css. */
.world-page .site-header { position: sticky; }
.world-page .nav-links a[aria-current="page"] { color: #467d28; }

.world { --stage-ink: #1b2b24; padding-top: 30px; }
.world-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.world-heading .eyebrow { margin-bottom: 12px; }
.world-heading h1 { font-size: clamp(40px, 4.4vw, 62px); }
.world-lede { max-width: 430px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.world-frame { width: min(1560px, calc(100% - 48px)); margin-inline: auto; border: 2px solid var(--ink); border-bottom-width: 7px; border-radius: 20px; overflow: hidden; background: #fff; }
.world-stage { position: relative; height: clamp(420px, calc(100svh - 196px), 880px); background: #13223a; overflow: hidden; touch-action: pan-y; }
.world-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.world-hotspots, .world-overlay { position: absolute; inset: 0; }
.world-overlay { pointer-events: none; overflow: hidden; }
.world-hotspot { position: absolute; left: 0; top: 0; padding: 0; margin: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.world-hotspot[data-kind="sky"] { cursor: grab; touch-action: none; }
.world-hotspot[data-kind="sky"]:active { cursor: grabbing; }
.world-hotspot:focus { outline: none; }
.world-hotspot:focus-visible { outline: 2px solid #fff3a8; outline-offset: 2px; box-shadow: 0 0 0 5px var(--stage-ink); }

/* Speech bubbles and tags are readable HTML text with stepped pixel edges. */
.world-bubble, .world-tag { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; }
.world-bubble { max-width: 260px; white-space: normal; width: max-content; padding: 7px 11px 8px; background: #fffef7; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; border: 2px solid var(--stage-ink); border-radius: 4px; box-shadow: 0 3px 0 var(--stage-ink); animation: bubble-pop .24s steps(3, end) both; }
.world-bubble::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: -9px; width: 10px; height: 7px; background: var(--stage-ink); clip-path: polygon(0 0, 100% 0, 100% 2px, 8px 2px, 8px 4px, 6px 4px, 6px 7px, 4px 7px, 4px 4px, 2px 4px, 2px 2px, 0 2px); }
.world-bubble.is-leaving { opacity: 0; transition: opacity .3s steps(3, end); }
@keyframes bubble-pop { from { transform-origin: 50% 100%; scale: .5; } to { scale: 1; } }
.world-tag { padding: 4px 8px; background: var(--stage-ink); color: #f6ead0; font-size: 12px; font-weight: 700; line-height: 1.3; border-radius: 3px; box-shadow: 0 2px 0 #0008; }
.world-clock-chip { position: absolute; top: 14px; left: 14px; display: flex; gap: 10px; align-items: center; margin: 0; padding: 7px 11px; background: #0f1a2bd9; color: #fff6d8; border: 2px solid #fff6d840; border-radius: 8px; font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; pointer-events: none; }
.world-clock-chip #world-period { color: #b9e38c; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.world-noscript { position: absolute; inset: auto 20px 20px; padding: 14px 16px; background: #fffef7; border: 2px solid var(--ink); border-radius: 10px; font-size: 16px; }

/* The dial is a native range input over a stepped strip of the day's skies. */
.world-controls { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 14px 20px; align-items: center; padding: 14px 18px 16px; background: #f5f8ee; border-top: 2px solid var(--ink); }
.world-dial { display: flex; flex-direction: column; gap: 6px; }
.world-dial label { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: #57754b; }
.world-dial input { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, #13223a 0 20.8%, #6a5779 20.8% 24.5%, #e39c8a 24.5% 27%, #a9d5ea 27% 47.9%, #87c5ea 47.9% 56%, #bddbe0 56% 72.9%, #f3bb7c 72.9% 79%, #935a84 79% 84%, #2a3660 84% 93%, #13223a 93% 100%); }
.world-dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23223d30' d='M4 0h5v1H4zM2 1h9v1H2zM1 2h11v2H1zM0 4h13v5H0zM1 9h11v2H1zM2 11h9v1H2zM4 12h5v1H4z'/%3E%3Cpath fill='%23ffc85c' d='M4 1h5v1H4zM2 2h9v2H2zM1 4h11v5H1zM2 9h9v2H2zM4 11h5v1H4z'/%3E%3Cpath fill='%23fff3c4' d='M4 3h3v1H4zM3 4h2v2H3z'/%3E%3C/svg%3E") center / 100% no-repeat; image-rendering: pixelated; cursor: grab; }
.world-dial input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23223d30' d='M4 0h5v1H4zM2 1h9v1H2zM1 2h11v2H1zM0 4h13v5H0zM1 9h11v2H1zM2 11h9v1H2zM4 12h5v1H4z'/%3E%3Cpath fill='%23ffc85c' d='M4 1h5v1H4zM2 2h9v2H2zM1 4h11v5H1zM2 9h9v2H2zM4 11h5v1H4z'/%3E%3Cpath fill='%23fff3c4' d='M4 3h3v1H4zM3 4h2v2H3z'/%3E%3C/svg%3E") center / 100% no-repeat; image-rendering: pixelated; }
.world[data-period="night"] .world-dial input::-webkit-slider-thumb, .world[data-period="evening"] .world-dial input::-webkit-slider-thumb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23223d30' d='M4 0h5v1H4zM2 1h9v1H2zM1 2h11v2H1zM0 4h13v5H0zM1 9h11v2H1zM2 11h9v1H2zM4 12h5v1H4z'/%3E%3Cpath fill='%23f3efd8' d='M4 1h5v1H4zM2 2h9v2H2zM1 4h11v5H1zM2 9h9v2H2zM4 11h5v1H4z'/%3E%3Cpath fill='%2313223a' d='M7 2h4v1H7zM8 3h4v5H8zM7 8h4v2H7z'/%3E%3C/svg%3E"); }
.world[data-period="night"] .world-dial input::-moz-range-thumb, .world[data-period="evening"] .world-dial input::-moz-range-thumb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23223d30' d='M4 0h5v1H4zM2 1h9v1H2zM1 2h11v2H1zM0 4h13v5H0zM1 9h11v2H1zM2 11h9v1H2zM4 12h5v1H4z'/%3E%3Cpath fill='%23f3efd8' d='M4 1h5v1H4zM2 2h9v2H2zM1 4h11v5H1zM2 9h9v2H2zM4 11h5v1H4z'/%3E%3Cpath fill='%2313223a' d='M7 2h4v1H7zM8 3h4v5H8zM7 8h4v2H7z'/%3E%3C/svg%3E"); }
.world-dial input:focus-visible { outline: 3px solid #2680ae; outline-offset: 4px; }

.world-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.world-chips button, .world-sound { min-height: 40px; padding: 8px 13px 7px; background: #fff; border: 2px solid #c9d6bd; border-bottom-width: 4px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; transition: transform .15s var(--ease), border-color .15s; }
.world-chips button:hover, .world-sound:hover { transform: translateY(-1px); border-color: #93b77a; }
.world-chips button:active, .world-sound:active { transform: translateY(2px); }
.world-chips button[aria-pressed="true"] { background: #e3efcf; border-color: #75945c; color: #284332; }
.world-sound { display: inline-flex; align-items: center; gap: 8px; }
.world-sound svg { width: 18px; height: 18px; }
.world-sound[aria-pressed="true"] { background: var(--green); border-color: var(--green-edge); }

/* The museum label and the stamp card. */
.world-notes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; margin-top: 30px; }
.placard, .discoveries-card { background: #fffdf6; border: 2px solid #e2dcc8; border-bottom-width: 6px; border-radius: 18px; padding: 26px 28px 28px; }
.placard-kicker { font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: #8a7b5c; }
.placard h2, .discoveries-head h2 { font-size: 30px; margin-top: 10px; }
.placard-medium { margin-top: 6px; color: #8a7b5c; font-style: italic; font-size: 16px; }
.placard > p:not(.placard-kicker):not(.placard-medium) { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.placard-tips { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; color: var(--muted); }
.placard-tips li { position: relative; padding-left: 20px; }
.placard-tips li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; background: #83da42; box-shadow: 0 0 0 2px var(--ink); }
.placard-tips b { color: var(--ink); }

.discoveries-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.discoveries-head h2 { margin-top: 0; }
.discovery-count { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 9px; border-radius: 6px; background: #eff8e8; color: #3f6b2b; white-space: nowrap; }
.discoveries { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.discoveries li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: #9aa293; line-height: 1.25; }
.stamp { display: grid; place-items: center; width: 50px; height: 50px; border: 2px dashed #c9cfbf; border-radius: 6px; color: #c9cfbf; background: #fbfbf6; }
.stamp svg { width: 24px; height: 24px; }
.discoveries li.is-found { color: var(--ink); }
.discoveries li.is-found .stamp { border: 2px solid var(--ink); border-bottom-width: 4px; color: #fffef7; background: #5fa93a; }
.discoveries li[data-discovery="star"].is-found .stamp { background: #7d68b8; }
.discoveries li.just-found .stamp { animation: stamp-press .36s steps(4, end); }
@keyframes stamp-press { 0% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(.92) rotate(2deg); } 100% { transform: none; } }
.discoveries-hint { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

.world-cta { text-align: center; padding: 84px 0 96px; }
.world-cta .eyebrow { justify-content: center; margin-bottom: 18px; }
.world-cta h2 { font-size: clamp(38px, 4.6vw, 58px); }
.world-cta > p:not(.eyebrow) { font-size: 19px; color: var(--muted); margin: 18px 0 26px; }

@media (max-width: 1100px) {
  .world-controls { grid-template-columns: 1fr auto; }
  .world-chips { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 800px) {
  .world { padding-top: 18px; }
  .world-heading { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .world-lede { font-size: 16px; }
  .world-frame { width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .world-stage { height: clamp(420px, 68svh, 640px); }
  .world-controls { grid-template-columns: 1fr; padding: 12px 14px 14px; }
  .world-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; order: 0; }
  .world-chips button { flex: none; }
  .world-sound { justify-self: start; }
  .world-notes { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .placard, .discoveries-card { padding: 22px 20px 24px; }
  .world-bubble { max-width: 190px; font-size: 13px; }
  .world-cta { padding: 56px 0 70px; }
}
@media (max-width: 480px) {
  .world-heading h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .discoveries { gap: 14px 8px; }
  .stamp { width: 44px; height: 44px; }
  .discoveries li { font-size: 12px; }
  .world-clock-chip { top: 10px; left: 10px; font-size: 12px; padding: 6px 9px; }
}
