/* LUMEN — hand-written, no build. Concept "B: はねる": flat colour fields, fat round shapes, characters with eyes. */

:root {
  --yellow: #ffd43b;
  --ink: #141414;
  --red: #ff3b2f;
  --blue: #1f4bff;
  --white: #ffffff;
  --aqua: #00a6c8;
  --pink: #ff8ac4;
  --green: #10b981;
  --purple: #7c3aed;
  --cream: #fffbea;
  --font-pop: "Dela Gothic One", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--font-pop); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(30px, 6vw, 64px); line-height: 1.25; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--yellow); padding: .5em 1.2em; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- characters (shapes with eyes) ---------- */
.ch { width: 100%; height: auto; overflow: visible; }
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco-play { top: 104px; right: 5%; width: clamp(64px, 9vw, 112px); --r: 8deg; }
.deco-rooms { top: 104px; right: 4%; width: clamp(60px, 8vw, 100px); }
.deco-ticket { bottom: 40px; right: 4%; width: clamp(64px, 9vw, 110px); }
.deco-about { top: 104px; right: 5%; width: clamp(60px, 8vw, 96px); --r: -6deg; }
.bob { animation: bob 3.2s ease-in-out infinite; }
.hop { animation: hop 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
.wig { animation: wig 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } }
@keyframes hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  10% { transform: translateY(0) scale(1.12, .86); }
  30% { transform: translateY(-22px) scale(.94, 1.08); }
  50% { transform: translateY(0) scale(1.1, .9); }
}
@keyframes wig { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 50;
  top: max(10px, env(safe-area-inset-top, 0px)); left: var(--gut-l); right: var(--gut-r);
  max-width: 1160px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: var(--white);
  border: 2px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 5px 6px 5px 18px;
  font-weight: 900;
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.logo { font-family: var(--font-pop); font-weight: 400; font-size: 20px; letter-spacing: .04em; text-decoration: none; line-height: 1.2; }
.nw { color: var(--yellow); font-size: 11px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nw:hover, .logo:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-right { display: flex; align-items: center; gap: 4px; }
.gnav ul { display: flex; align-items: center; gap: 2px; }
.gnav a { display: block; padding: .4em .95em; border-radius: 999px; font-size: 15px; line-height: 1.6; text-decoration: none; }
.gnav a:hover { background: var(--yellow); color: var(--ink); }
.pill-btn {
  border: 0; border-radius: 999px; background: var(--white); color: var(--ink);
  padding: .4em 1em; font-weight: 900; font-size: 14px; line-height: 1.6; white-space: nowrap;
}
.pill-btn[aria-pressed="true"] { background: var(--yellow); }
.menu-btn { display: none; }
/* controls that need JS are hidden when JS is off or failed */
html:not(.js) #sound-btn, html:not(.js) .motion-btn, html:not(.js) .hint,
html:not(.js) #buy-btn, html:not(.js) .rooms-lead { display: none; } /* JS-only controls and sentences */
.motion-btn { display: none; }
.js .motion-btn { display: inline-block; }
/* no JS: the header is a plain (non-sticky) bar so a wrapped, tall header cannot cover headings after an anchor jump */
html:not(.js) .site-header { position: absolute; }
.sound-tip {
  position: fixed; z-index: 49; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 62px); right: var(--gut-r);
  max-width: calc(100vw - 32px); margin: 0; padding: .3em 1em; border-radius: 18px;
  background: var(--ink); color: var(--white); font-size: 13px; line-height: 1.6;
}
.sound-tip:empty { display: none; }
.site-header :focus-visible { outline-color: var(--yellow); box-shadow: none; }

.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--yellow); color: var(--ink);
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--gut-r) 32px var(--gut-l);
  overflow-y: auto; animation: menu-in .25s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: scale(1.03); } }
.menu-close {
  align-self: flex-end; border: 0; border-radius: 999px; background: var(--ink); color: var(--white);
  padding: .5em 1.3em; font-weight: 900; font-size: 15px; line-height: 1.6;
}
.menu nav { margin: auto 0; }
.menu ul { display: grid; gap: 6px; }
.menu a {
  display: inline-block; font-family: var(--font-pop); font-weight: 400;
  font-size: clamp(36px, 11vw, 60px); line-height: 1.35; text-decoration: none;
}
.menu a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.menu .deco { right: 6%; bottom: 6%; width: 90px; }
.menu .motion-btn { align-self: flex-start; background: var(--ink); color: var(--white); font-size: 16px; padding: .4em 1.2em; margin-bottom: 8px; }
.menu .motion-btn[aria-pressed="true"] { background: var(--ink); }

/* ---------- shared pieces ---------- */
.sec { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 136px) var(--gut-r) clamp(80px, 11vw, 136px) var(--gut-l); }
.inner { position: relative; z-index: 1; max-width: var(--wrap); margin-inline: auto; }
.kicker {
  display: inline-block; background: var(--ink); color: var(--yellow);
  padding: .45em 1.1em; border-radius: 999px; transform: rotate(-3deg);
  font-weight: 900; letter-spacing: .14em; font-size: clamp(12px, 1.6vw, 15px); line-height: 1.5;
}
.lead { margin-top: .6em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 0; border-radius: 999px; padding: .75em 1.7em;
  background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 18px; line-height: 1.5; text-decoration: none;
  transition: transform .18s cubic-bezier(.3, 1.8, .5, 1);
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: scale(.96); }

.js .reveal { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .55s ease, transform .6s cubic-bezier(.2, 1.5, .4, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 1 hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--yellow); color: var(--ink);
}
.hero-titles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 84px var(--gut-r) 196px var(--gut-l);
}
.hero-titles .kicker { margin-bottom: .9em; }
.hero h1 { font-size: clamp(64px, min(18.5vw, 30svh), 300px); letter-spacing: -.02em; line-height: .92; }
.hero .lead { font-size: clamp(19px, 3.4vw, 38px); font-weight: 900; line-height: 1.5; }
#playground {
  position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#playground:focus-visible { outline: 4px solid var(--ink); outline-offset: -8px; box-shadow: inset 0 0 0 4px var(--white); }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-foot .btn { pointer-events: auto; }
.hint {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px;
  background: var(--yellow); border-radius: 14px; padding: 4px 14px; margin: 0 var(--gut-r) 0 var(--gut-l);
  font-size: 14px; line-height: 1.6; text-align: center;
}
.hint b { font-variant-numeric: tabular-nums; }
.hint-count { display: inline-flex; align-items: center; gap: 8px; }
.mini-btn {
  pointer-events: auto; border: 0; border-radius: 999px; background: var(--ink); color: var(--yellow);
  padding: 0 1em; font-weight: 900; font-size: 13px; line-height: 1.2; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 30px; /* big enough for a small finger */
}
.marquee {
  align-self: stretch; display: flex; height: 42px; overflow: hidden; background: var(--ink); color: var(--yellow);
  font-family: var(--font-pop); font-size: 15px; line-height: 42px; white-space: nowrap;
}
.marquee span { flex: none; padding-right: 2em; animation: run 26s linear infinite; }
@keyframes run { to { transform: translateX(-100%); } }

/* ---------- 2 play ---------- */
.sec-play { background: var(--blue); color: var(--white); }
.play-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(36px, 6vw, 64px); }
.play-item { min-width: 0; }
.demo { background: rgba(0, 0, 0, .18); border-radius: 28px; aspect-ratio: 5 / 3; overflow: hidden; }
.demo svg { width: 100%; height: 100%; }
.verb { font-family: var(--font-pop); font-weight: 400; font-size: clamp(44px, 6.4vw, 72px); line-height: 1.2; margin-top: .35em; color: var(--yellow); }
.play-item p { margin-top: .2em; }
.tg { transform-box: fill-box; transform-origin: center; }
/* 1 dodge */
.dodge-dot { animation: dodge-dot 3.4s ease-in-out infinite; }
.dodge-ch { animation: dodge-ch 3.4s ease-in-out infinite; }
@keyframes dodge-dot { 0%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(62px); } }
@keyframes dodge-ch { 0%, 20% { transform: translateX(0); } 45%, 60% { transform: translateX(34px) rotate(10deg); } 85%, 100% { transform: translateX(0); } }
/* 2 throw */
.throw-ch { animation: throw 2.8s linear infinite; }
@keyframes throw {
  0% { transform: translate(0, 0) scale(1, 1); animation-timing-function: cubic-bezier(.3, .6, .5, 1); }
  22% { transform: translate(64px, -52px) scale(.95, 1.06); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
  42% { transform: translate(130px, 0) scale(1.18, .8); animation-timing-function: ease-out; }
  52% { transform: translate(138px, 0) scale(.9, 1.1); }
  60% { transform: translate(120px, -22px) scale(1, 1); animation-timing-function: ease-in; }
  70%, 100% { transform: translate(104px, 0) scale(1.1, .9); }
}
/* 3 multiply */
.mult { transform: translate(var(--dx), var(--dy)); animation: mult 3.4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes mult {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  8% { opacity: 1; }
  24%, 86% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}
.tap-ring { animation: tap-ring 3.4s ease-out infinite; opacity: 0; }
@keyframes tap-ring { 0% { transform: scale(.3); opacity: .9; } 22% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 3 rooms ---------- */
.sec-rooms { background: var(--cream); }
.sec-rooms .lead { font-size: 1.05em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(32px, 5vw, 56px); }
.tiles li { min-width: 0; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%;
  border: 0; border-radius: 30px; padding: 18px 18px 24px; text-align: left; line-height: 1.7;
  transition: transform .2s cubic-bezier(.3, 1.8, .5, 1);
}
.tile:hover { transform: translateY(-5px) rotate(-1deg); }
.tile:active { transform: scale(.97); }
.tile svg.stage { width: 100%; height: auto; margin-bottom: 8px; }
.t-name { font-family: var(--font-pop); font-weight: 400; font-size: 26px; line-height: 1.35; }
.t-desc { font-size: 15.5px; font-weight: 700; }
.sticker {
  position: absolute; top: -10px; right: 14px; z-index: 2; transform: rotate(6deg);
  background: var(--yellow); color: var(--ink); border-radius: 999px; padding: .1em .95em;
  font-weight: 900; font-size: 14px; line-height: 1.8;
}
.t1 { background: var(--red); color: var(--ink); }
.t2 { background: var(--pink); color: var(--ink); }
.t3 { background: var(--ink); color: var(--white); }
.t4 { background: var(--purple); color: var(--white); }
.t5 { background: var(--aqua); color: var(--ink); }
.t6 { background: var(--blue); color: var(--white); }
.tc { transform-box: fill-box; transform-origin: 50% 100%; }
.tb { color: var(--white); }
.t1 .tb { color: var(--yellow); }
.t3 .tb { color: var(--ink); }
.t4 .tb { color: var(--yellow); }
/* idle motion lives on the outer .tw, click motion on the inner .tc, so they never fight */
.tw { transform-box: fill-box; transform-origin: 50% 100%; }
.t1 .tw, .t2 .tw, .t4 .tw { animation: bob 3.4s ease-in-out infinite; }
.t6 .tw { animation: breath 3.6s ease-in-out infinite; }
@keyframes breath { 50% { transform: scale(1.04, 1.06); } }
/* click animations (class .is-on is added by site.js for ~1.3s) */
.t1.is-on .tc { animation: jump .9s ease-in-out 1; }
@keyframes jump {
  0% { transform: scale(1, 1); } 14% { transform: scale(1.16, .8); }
  45% { transform: translateY(-34px) scale(.92, 1.1); } 75% { transform: translateY(0) scale(1.16, .8); }
  88% { transform: scale(.96, 1.05); } 100% { transform: scale(1, 1); }
}
.t2 .tc { transform-origin: 50% 50%; }
.t2.is-on .tc { animation: stretch 1s ease-in-out 1; }
@keyframes stretch { 0% { transform: scaleX(1); } 35% { transform: scaleX(1.9) scaleY(.7); } 55% { transform: scaleX(.85) scaleY(1.15); } 75% { transform: scaleX(1.12) scaleY(.94); } 100% { transform: scaleX(1); } }
.t3.is-on .tb { animation: reveal-body 1.3s ease-in-out 1; }
.t3.is-on .tc { animation: peek 1.3s ease-in-out 1; }
@keyframes reveal-body { 0%, 100% { color: var(--ink); } 18%, 68% { color: var(--yellow); } }
@keyframes peek { 18% { transform: scale(1.1); } 30%, 68% { transform: scale(1); } }
.t4 .tc { transform-origin: 50% 50%; }
.t4.is-on .tc { animation: shake .8s linear 1; }
@keyframes shake { 0%, 100% { transform: translateX(0) rotate(0); } 12% { transform: translateX(-4px) rotate(-6deg); } 24% { transform: translateX(4px) rotate(6deg); } 36% { transform: translateX(-4px) rotate(-6deg); } 48% { transform: translateX(4px) rotate(6deg); } 62% { transform: translateX(-2px) rotate(-3deg); } 80% { transform: translateX(2px) rotate(3deg); } }
.ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.t4.is-on .ring { animation: ring 1.1s ease-out 1; animation-delay: var(--d); animation-fill-mode: backwards; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.t5 .tc { transform-origin: 50% 50%; }
.t5.is-on .tc { animation: slide 1.3s ease-in-out 1; }
.t5.is-on .tb { animation: rainbow 1.3s linear 1; }
@keyframes slide {
  0% { transform: translate(0, 0) rotate(0); } 14% { transform: translate(-34px, -10px) rotate(-10deg); }
  70% { transform: translate(34px, 10px) rotate(14deg); } 100% { transform: translate(0, 0) rotate(0); }
}
@keyframes rainbow { 0%, 100% { color: var(--white); } 20% { color: var(--red); } 40% { color: var(--yellow); } 60% { color: var(--green); } 80% { color: var(--purple); } }
.t6 .eo { opacity: 0; }
.t6.is-on .eo { animation: eyes-open 1.3s steps(1, end) 1; }
.t6.is-on .ec { animation: eyes-closed 1.3s steps(1, end) 1; }
.t6.is-on .tc { animation: startle 1.3s ease-out 1; }
@keyframes eyes-open { 0% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes eyes-closed { 0% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes startle { 0% { transform: translateY(0) scale(1); } 10% { transform: translateY(-10px) scale(1.12, 1.16); } 60% { transform: translateY(0) scale(1.03); } 100% { transform: scale(1); } }
.zz { font-family: var(--font-pop); fill: var(--white); opacity: 0; animation: zz 3s ease-out infinite; animation-delay: var(--d); }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -14px); } }

/* ---------- 4 ticket ---------- */
.sec-ticket { background: var(--pink); }
.ticket-wrap { margin-top: clamp(32px, 5vw, 56px); max-width: 880px; }
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  background: var(--white); border-radius: 26px; transform: rotate(-1.2deg);
}
.ticket-main { padding: clamp(22px, 4vw, 40px); }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: .55em 0; border-bottom: 3px dotted rgba(20, 20, 20, .28); }
.price:first-child { padding-top: 0; }
.price:last-child { border-bottom: 0; padding-bottom: 0; }
.price dt { font-size: 18px; font-weight: 900; line-height: 1.6; }
.price dt small { display: block; font-size: 14px; font-weight: 700; opacity: .75; }
.price dd { font-family: var(--font-pop); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; white-space: nowrap; }
.ticket-stub { position: relative; padding: clamp(22px, 4vw, 36px); border-left: 3px dashed rgba(20, 20, 20, .3); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -17.5px; width: 32px; height: 32px; border-radius: 50%; background: var(--pink);
}
.ticket-stub::before { top: -16px; }
.ticket-stub::after { bottom: -16px; }
.ticket-note { font-size: 14px; line-height: 1.7; }
.ticket-stub .btn { font-size: 17px; padding: .7em 1.2em; }
.ticket-msg { font-size: 15px; line-height: 1.7; min-height: 3.4em; }

/* ---------- 5 access ---------- */
.sec-access { background: var(--green); }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.info { display: grid; gap: 18px; }
.info dt { display: inline-block; background: var(--ink); color: var(--white); border-radius: 999px; padding: 0 .9em; font-size: 14px; line-height: 1.9; transform: rotate(-2deg); }
.info dd { font-size: 19px; line-height: 1.7; margin-top: 4px; }
.info dd small { font-size: 14px; font-weight: 700; display: block; }
.map { border-radius: 30px; overflow: hidden; background: var(--cream); }
.map svg { width: 100%; height: auto; }
.map text { font-family: var(--font-round); font-weight: 900; }
.pin { animation: hop 1.6s ease-in-out infinite; }

/* ---------- 6 about ---------- */
.sec-about { background: var(--ink); color: var(--white); }
.sec-about h2 { color: var(--yellow); }
.sec-about .body { max-width: 40em; margin-top: 1em; }
.scope-title { margin-top: 2em; font-size: 15px; color: var(--yellow); letter-spacing: .12em; }
.scope { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .6em; }
.scope li { border: 2px solid var(--yellow); border-radius: 999px; padding: .1em 1em; font-size: 15px; line-height: 1.8; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 2em; }
.about-links a { color: var(--yellow); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.about-links a:hover { text-decoration-thickness: 4px; }
.sec-about .btn { margin-top: 2em; background: var(--yellow); color: var(--ink); font-size: 19px; }
.sec-about :focus-visible { outline-color: var(--yellow); box-shadow: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 28px var(--gut-r) 40px var(--gut-l); border-top: 2px dashed rgba(255, 255, 255, .22); font-size: 13px; line-height: 1.9; }
.site-footer .inner { display: grid; gap: 4px; }
.site-footer :focus-visible { outline-color: var(--yellow); box-shadow: none; }

/* ---------- confetti layer ---------- */
.confetti { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 40px var(--gut-r) 40px var(--gut-l); }
.lost h1 { font-size: clamp(40px, 10vw, 96px); line-height: 1.2; }
.lost .ch-wrap { width: 120px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) { /* keep the header on one line between 721px and 960px */
  .site-header { padding-left: 14px; }
  .brand { gap: 8px; }
  .gnav a { padding: .4em .6em; font-size: 14px; }
  .pill-btn { padding: .4em .8em; font-size: 13px; }
}
@media (max-width: 860px) {
  .play-list { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .access-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { height: 88vh; height: 88svh; }
  /* html.no-menu = site.js could not set the menu up: fall back to the plain nav, exactly like no-JS */
  .js:not(.no-menu) .gnav { display: none; }
  .js:not(.no-menu) .menu-btn { display: inline-block; }
  .js .header-right .motion-btn { display: none; } /* on small screens it lives inside the menu */
  html:not(.js) .site-header, html.no-menu .site-header { flex-wrap: wrap; border-radius: 26px; padding: 8px 14px; }
  html.no-menu .site-header { position: absolute; } /* tall wrapped header must not cover headings (same as no-JS) */
  html:not(.js) .gnav ul, html.no-menu .gnav ul { flex-wrap: wrap; }
  html:not(.js) .gnav a, html.no-menu .gnav a { padding: .2em .7em; font-size: 14px; }
  html:not(.js) .hero-titles, html.no-menu .hero-titles { padding-top: 130px; }
  .site-header { padding-left: 16px; }
  .brand { gap: 8px; }
  .logo { font-size: 18px; }
  .nw { font-size: 10px; }
  .pill-btn { padding: .4em .85em; font-size: 13px; }
  .hero-foot { gap: 6px; }
  .hero-foot .btn { font-size: 16px; padding: .55em 1.4em; }
  .hint { font-size: 12.5px; line-height: 1.4; padding: 1px 12px; }
  .mini-btn { font-size: 12px; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; transform: none; }
  .ticket-stub { border-left: 0; border-top: 3px dashed rgba(20, 20, 20, .3); }
  .ticket-stub::before, .ticket-stub::after { top: -17.5px; bottom: auto; }
  .ticket-stub::before { left: -16px; }
  .ticket-stub::after { left: auto; right: -16px; }
}
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; }
  .deco.hide-s { display: none; }
}
@media (max-width: 360px) {
  .site-header { padding-left: 12px; }
  .logo { font-size: 16px; }
  .nw { display: none; }
}

/* "うごき OFF" (html.is-paused): same set of loops as reduced-motion, shown in their resting pose.
   There are TWO lists - this one and the reduced-motion block right below. A new looping animation goes in BOTH. */
html.is-paused .marquee span, html.is-paused .bob, html.is-paused .hop, html.is-paused .wig, html.is-paused .pin,
html.is-paused .zz, html.is-paused .dodge-dot, html.is-paused .dodge-ch, html.is-paused .throw-ch,
html.is-paused .mult, html.is-paused .tap-ring, html.is-paused .tw { animation: none !important; }
html.is-paused .mult, html.is-paused .zz { opacity: 1; }
/* pressed room tiles while paused: same still feedback as reduced-motion (colour / eyes / ring, no movement) */
html.is-paused .tile.is-on .tc { animation: none !important; }
html.is-paused .t1.is-on .tb, html.is-paused .t2.is-on .tb, html.is-paused .t4.is-on .tb { animation: r-blink .7s steps(2, end) 1; }
html.is-paused .t4.is-on .ring { animation: ring-still 1.1s linear 1; animation-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .marquee span, .bob, .hop, .wig, .pin, .zz,
  .dodge-dot, .dodge-ch, .throw-ch, .mult, .tap-ring,
  .t1 .tw, .t2 .tw, .t4 .tw, .t6 .tw { animation: none !important; }
  .mult { opacity: 1; }
  .zz { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile { transition: none; }
  .btn:hover, .tile:hover { transform: none; }
  /* tile feedback without movement: colour / eyes / ring changes only */
  .tile.is-on .tc { animation: none !important; }
  .t1.is-on .tb, .t2.is-on .tb, .t4.is-on .tb { animation: r-blink .7s steps(2, end) 1; }
  .t4.is-on .ring { animation: ring-still 1.1s linear 1; animation-delay: 0s; }
  .menu { animation: none; }
}
@keyframes r-blink { 50% { opacity: .35; } }
@keyframes ring-still { 0% { opacity: .9; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.3); } }
