/* Homepage play: the sun made of studios, the credits game, and the lens on the harbour picture (js/play.js).
   Without JavaScript the two games are not shown; the directory below them covers the same studios. */
.spots, .quiz { display: none; }
.js .spots, .js .quiz { display: block; }

/* ---------- every spot is a studio */
.spots { background: #fff; padding: 56px 0 48px; overflow: hidden; }
.spots-in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.spots h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .35em; }
.spots-in > div > p { font-size: 1.15rem; margin: 0 0 1.4em; }
.spots-ctl { display: grid; gap: 10px; justify-items: start; }
.spots-ctl button[data-mode] { font: inherit; font-weight: 700; font-size: 1.05rem; min-height: 48px; padding: 0 1.2em; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.spots-ctl button[data-mode]:hover { background: var(--paper); }
.spots-ctl button[aria-pressed=true], .spots-ctl button[aria-pressed=true]:hover { background: var(--navy); color: #fff; }
.spots-ctl .btn { font-size: 1.05rem; min-height: 48px; margin-top: 12px; }
.spots-box { position: relative; height: clamp(440px, 74svh, 680px); }
.spots-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: pointer; }
.spots-tag { position: absolute; transform: translateX(-50%); font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--ink); white-space: nowrap; text-decoration: none; padding: 4px 6px; transition: opacity .3s; }
a.spots-tag { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 4px; }
.spots-box.looking .spots-tag { opacity: .25; }
.spots-card { position: absolute; z-index: 2; left: 0; top: 0; width: max-content; max-width: min(300px, 86%); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: center; background: var(--navy); color: #fff; text-decoration: none; border-radius: 16px; padding: 12px 18px 12px 12px; }
.spots-card[hidden] { display: none; }
.spots-card.look { pointer-events: none; }
.spots-card img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; }
.spots-card img.dark { background: var(--wave); }
.spots-card img[hidden] { display: none; }
.spots-card b { display: block; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.spots-card small { font-size: .92rem; }
.spots-card u { display: block; font-weight: 700; font-size: .95rem; text-underline-offset: 3px; }
.spots-card.look u { display: none; }

/* ---------- who worked on this? */
.quiz { background: var(--red); color: #fff; padding: 56px 0; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.quiz h2 { font-size: 1.5rem; margin: 0; }
.quiz-dots { display: flex; gap: 10px; }
.quiz-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; }
.quiz-dots i.hit { background: #fff; }
.quiz-dots i.miss { background: var(--navy); border-color: var(--navy); }
.quiz-t { font-weight: 800; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.025em; margin: .45em 0 .6em; min-height: 2.16em; display: flex; align-items: center; text-wrap: balance; overflow-wrap: anywhere; }
:lang(ja) .quiz-t, :lang(ja) .spots h2 { letter-spacing: 0; line-height: 1.25; word-break: auto-phrase; }
.quiz-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quiz-o > * { display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 14px 18px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 1.15rem; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.quiz-o > button:hover { transform: translateY(-4px); }
.quiz-o span { min-width: 0; overflow-wrap: anywhere; }
.quiz-o small { display: block; font-size: .92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.quiz-o .lg { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: contain; }
.quiz-o img.lg.dark { background: var(--navy); padding: 6px; }
.quiz-o i.lg { border-radius: 50%; background: var(--red); color: #fff; font-style: normal; display: grid; place-items: center; }
.quiz-o .right { background: var(--navy); color: #fff; }
.quiz-o :is(.right, .wrong) img.lg:not(.dark) { background: #fff; padding: 5px; }
.quiz-o .right i.lg { background: #fff; color: var(--red); }
.quiz-o .wrong { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.quiz-o [disabled] { cursor: default; transform: none; }
.quiz-f { display: flex; align-items: center; gap: 12px 24px; min-height: 52px; margin-top: 22px; flex-wrap: wrap; }
.quiz-f p { margin: 0; font-weight: 700; font-size: 1.15rem; }
.quiz-f .btn { background: var(--navy); border-color: var(--navy); font-size: 1.1rem; }
.quiz-f .btn[hidden] { display: none; }
.quiz :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.quiz-src { margin: 18px 0 0; font-size: 1rem; }

/* ---------- harbour picture: look underneath, jump to a pass */
.pipe-lens { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s; }
.pipe-lens.on { opacity: 1; }
.pipe-lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; clip-path: circle(120px at var(--mx, 50%) var(--my, 50%)); }
.pipe-lens::after { content: ""; position: absolute; width: 240px; height: 240px; left: var(--mx, 50%); top: var(--my, 50%); margin: -120px; border: 4px solid var(--red); border-radius: 50%; }
.pipe-steps button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; margin: -4px 0; text-align: left; cursor: pointer; }
.pipe-steps button:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sm .pipe-steps li::before { content: none; }
@media (min-width: 861px) {
  .sm .pipe-copy { padding-top: 73px; }
  .sm .pipe-copy h2 { font-size: clamp(2rem, min(4.4vw, 7svh), 3.6rem); }
}
.pipe-hint-m { display: none; }
@media (hover: hover) { .sm .pipe-hint-m { display: inline; } }
@media (hover: none) { .pipe-lens { display: none; } }

@media (max-width: 860px) {
  .spots { padding: 36px 0 28px; }
  .spots-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .spots-in > div > p { font-size: 1.05rem; margin-bottom: 1em; }
  .spots-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
  .spots-ctl button[data-mode] { font-size: .98rem; min-height: 46px; padding: 0 1em; }
  .spots-ctl .btn { margin: 0; font-size: .98rem; min-height: 46px; padding: 0 1.1em; }
  .spots-box { height: 440px; margin: 0 -10px; }
  .spots-tag { font-size: .9rem; }
  .quiz { padding: 36px 0; }
  .quiz-o { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quiz-o > * { min-height: 76px; padding: 10px 14px; font-size: 1.08rem; }
  .quiz-o .lg { width: 52px; height: 52px; }
  .quiz-f .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .quiz-o > *, .spots-tag, .pipe-lens { transition: none; } .quiz-o > button:hover { transform: none; } }
