/* City pages as a film player: one screen, sharp pictures, no long scroll. */

.play-page { --ink: #05070F; --gold: #FFC94D; --cream: #FFF3E2; --lantern: #E0241B; background: var(--ink); }
.play-page.ny { --accent: #FFC94D; --accent-2: #FF9EC4; --soft: #7FD6CB; --night: #05070F; }
.play-page.kyoto { --accent: #F0553A; --accent-2: #F2B24C; --soft: #F4B6A2; --night: #070510; }
.play-page .grain { display: none; }
.play-page header#hdr { display: none; }

.premiere { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; text-align: center; transition: opacity .8s; }
.premiere.out { opacity: 0; pointer-events: none; } .premiere.gone { display: none; }
.premiere .l1 { font-family: var(--wide); font-weight: 700; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); animation: pf 1.6s both; }
.premiere .l2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(44px, 7vw, 110px); line-height: 1; color: var(--cream); margin-top: 18px; animation: pf 1.4s .35s both; }
@keyframes pf { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Player ---------- */
.player { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--ink); color: var(--cream); }
.shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.shot.on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
/* landscape picture: full screen, never enlarged past its size */
.shot .pic { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.035); transition: transform 8s linear; }
.shot.on .pic { transform: scale(1); }
.shot .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,15,.94) 0%, rgba(5,7,15,.55) 26%, rgba(5,7,15,0) 52%), linear-gradient(180deg, rgba(5,7,15,.7) 0%, rgba(5,7,15,0) 16%); }
/* portrait picture or film clip: sharp panel on the right, words on the left */
.shot.split { background: radial-gradient(70% 90% at 78% 50%, color-mix(in srgb, var(--tint, #4A1410) 70%, transparent), transparent 70%), var(--ink); }
.shot .port { position: absolute; top: 76px; bottom: 150px; right: clamp(20px, 9vw, 150px); aspect-ratio: var(--ar, 9 / 16); border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,243,226,.14), 0 40px 110px rgba(0,0,0,.7); background: #000 center / cover no-repeat; }
.shot .port video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.split .shade { background: linear-gradient(0deg, rgba(5,7,15,.9) 0%, rgba(5,7,15,0) 30%); }
@media (max-width: 900px) { .shot .port { top: 0; bottom: 0; right: 0; left: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; } .shot.split .shade { background: linear-gradient(0deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.5) 34%, rgba(5,7,15,0) 60%), linear-gradient(180deg, rgba(5,7,15,.7), rgba(5,7,15,0) 16%); } }

/* words */
.shot .txt { position: absolute; z-index: 2; left: clamp(20px, 5vw, 72px); bottom: 150px; max-width: min(640px, 86vw); }
.shot.split .txt { bottom: auto; top: 50%; transform: translateY(-50%); max-width: min(520px, 42vw); }
.shot .txt > * { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.1,1); }
.shot.on .txt > * { opacity: 1; transform: none; }
.shot.on .txt > :nth-child(2) { transition-delay: .12s; } .shot.on .txt > :nth-child(3) { transition-delay: .22s; } .shot.on .txt > :nth-child(4) { transition-delay: .32s; } .shot.on .txt > :nth-child(5) { transition-delay: .42s; }
.shot .when { display: flex; gap: 14px; align-items: center; color: var(--gold); font-family: var(--wide); font-weight: 700; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; margin-top: 16px; }
.shot .when i { width: 36px; height: 1px; background: currentColor; }
.shot h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 7.4vw, 124px); line-height: .9; letter-spacing: -.015em; margin: 10px 0 0; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.shot h2 em { color: var(--gold); }
.shot .sub { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; max-width: 34ch; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.shot .hear { margin-top: 10px; display: flex; gap: 12px; align-items: baseline; font-family: var(--sans); font-size: 14px; color: rgba(255,243,226,.86); max-width: 48ch; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.shot .hear b { font-family: var(--wide); font-weight: 700; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.shot .jp { position: absolute; z-index: 2; right: clamp(16px, 3vw, 44px); top: 90px; writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 800; font-size: clamp(34px, 3.6vw, 60px); letter-spacing: .14em; color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.shot .jp b { color: var(--lantern); }
@media (max-width: 900px) { .shot .txt, .shot.split .txt { top: auto; bottom: 132px; transform: none; max-width: 86vw; } .shot.split .txt > * { transform: translateY(18px); } .shot.split.on .txt > * { transform: none; } .shot h2 { font-size: clamp(46px, 14vw, 72px); } .shot .hear { display: none; } }

/* street signs */
.sign { display: inline-flex; align-items: center; gap: 10px; }
.ny .sign { background: #0B0B0B; color: #fff; padding: 8px 13px; border-top: 3px solid #fff; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 16px; }
.ny .sign i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 13px; color: #fff; }
.ny .sign i.y { background: #FCCC0A; color: #111; } .ny .sign i.r { background: #EE352E; } .ny .sign i.g { background: #00933C; }
.ny .sign small { font-weight: 400; font-size: 12px; opacity: .8; }
.kyoto .sign { background: linear-gradient(180deg, #3A2416, #24150C); color: #F6E7CF; padding: 9px 15px; border: 1px solid rgba(246,231,207,.25); font-family: var(--mincho); font-weight: 800; font-size: 19px; letter-spacing: .18em; }
.kyoto .sign i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; background: #C9302A; color: #fff; font-size: 13px; letter-spacing: 0; }
.kyoto .sign small { font-family: var(--wide); font-weight: 700; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }

#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* top bar */
.p-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(16px, 4vw, 56px); font-family: var(--wide); font-weight: 700; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; }
.p-top a { text-decoration: none; color: inherit; }
.p-top .brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .32em; text-transform: none; }
.p-top .brand span { font-family: var(--mincho); font-weight: 800; font-size: 17px; color: var(--lantern); letter-spacing: 0; }
.p-top .mid-t { color: var(--gold); }
.p-top nav { display: flex; gap: 22px; align-items: center; }
.p-top .clock b { font-variant-numeric: tabular-nums; color: var(--gold); margin-left: 8px; }
.hud-btn { background: rgba(5,7,15,.35); border: 1px solid rgba(255,243,226,.5); color: var(--cream); border-radius: 999px; padding: 8px 14px; font: inherit; letter-spacing: .2em; cursor: pointer; backdrop-filter: blur(6px); }
.hud-btn:hover { background: var(--cream); color: #000; }
@media (max-width: 900px) { .p-top .mid-t, .p-top .hide { display: none; } }

/* film strip */
.strip { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 128px; display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 4vw, 56px); }
.strip .nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,243,226,.5); background: rgba(5,7,15,.35); color: var(--cream); font-size: 17px; cursor: pointer; backdrop-filter: blur(6px); }
.strip .nav:hover { background: var(--cream); color: #000; }
.frames { flex: 1; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 8px 2px; scroll-behavior: smooth; }
.frames::-webkit-scrollbar { display: none; }
.frames button { position: relative; flex: none; width: 126px; height: 72px; padding: 0; border: 0; border-radius: 5px; overflow: hidden; cursor: pointer; background: #111 center / cover no-repeat; opacity: .55; transition: opacity .3s, transform .3s, box-shadow .3s; }
.frames button:hover { opacity: .9; }
.frames button.on { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 12px 30px rgba(0,0,0,.6); }
.frames button span { position: absolute; left: 6px; top: 5px; font-family: var(--wide); font-weight: 700; font-size: 8px; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 4px #000; }
.frames button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) { .strip { height: 112px; gap: 8px; } .strip .nav { display: none; } .frames button { width: 104px; height: 60px; } }

/* after the film */
.play-page .lessons { background: linear-gradient(180deg, var(--ink), #0B0D22 30%); padding-top: clamp(80px, 9vw, 130px); }
.full-film { text-align: center; padding: 60px 0 0; }
@media (prefers-reduced-motion: reduce) { .premiere { display: none; } .shot .pic { transition: none; transform: none; } }
