:root {
  --cream: #f8f7f2;
  --ink: #173447;
  --blue: #1878a9;
  --green: #78b843;
  --yellow: #f1c84a;
  --red: #e76f58;
  --pink: #e9a4b5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.video-page {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px) clamp(20px, 6vw, 76px) 24px;
  background: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.55) 48% 52%, transparent 52%), var(--cream);
  background-size: 240px 240px, auto;
}

.ambient { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.ambient-one { top: -165px; left: -120px; width: 330px; height: 330px; border: 1px solid rgba(23,52,71,.16); }
.ambient-two { right: -110px; bottom: -125px; width: 290px; height: 290px; background: rgba(120,184,67,.11); }
.doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.doodle { position: absolute; font-weight: 700; opacity: .7; animation: float 4s ease-in-out infinite; }
.flower-one { top: 19%; left: 8%; color: var(--red); font-size: 22px; transform: rotate(-12deg); }
.star-one { top: 11%; right: 10%; color: var(--yellow); font-size: 18px; animation-delay: -.8s; }
.flower-two { top: 52%; right: 7%; color: var(--blue); font-size: 12px; animation-delay: -1.5s; }
.star-two { bottom: 20%; left: 9%; color: var(--green); font-size: 21px; animation-delay: -2s; }
.flower-three { bottom: 9%; right: 16%; color: var(--pink); font-size: 19px; animation-delay: -2.6s; }

@keyframes float { 50% { transform: translateY(-8px) rotate(7deg); } }

.content, .safety-screen { position: relative; z-index: 1; width: min(100%, 1040px); margin: auto; text-align: center; }
.safety-screen { display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 clamp(18px,3vw,27px); color: var(--blue); font-size: clamp(.66rem,1.4vw,.78rem); font-weight: 600; letter-spacing: .16em; }

.safety-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 6px 14px 7px 9px;
  border: 1px solid rgba(23,52,71,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--ink);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 7px 20px rgba(23,52,71,.05);
}

.safety-mark span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--yellow); font: 700 .9rem Arial,sans-serif; }
h1 { margin: 0; color: var(--ink); font-size: clamp(2rem,6vw,4.15rem); font-weight: 600; letter-spacing: .08em; line-height: 1.28; }
.safety-screen h1 { font-size: clamp(1.8rem,4.5vw,3.25rem); }
.safety-screen h1::after { content: ""; display: block; width: 34%; height: 7px; margin: -2px auto 0; border-radius: 999px; background: linear-gradient(90deg,var(--yellow),var(--pink)); transform: rotate(-1deg); }
.safety-important { margin: 22px 0 0; color: #75483f; font-size: clamp(.92rem,2.1vw,1.08rem); font-weight: 600; line-height: 1.85; }

.bus-button {
  position: relative;
  display: flex;
  width: min(72vw,290px);
  aspect-ratio: 1;
  flex-shrink: 0;
  margin-top: clamp(25px,4vw,38px);
  padding: 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 50%;
  background: #e4f4f9;
  color: var(--ink);
  box-shadow: 0 14px 0 rgba(24,120,169,.13), 0 23px 48px rgba(23,52,71,.14), 0 0 0 1px rgba(23,52,71,.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bus-button:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 18px 0 rgba(24,120,169,.13), 0 28px 52px rgba(23,52,71,.16); }
.bus-button:active { transform: translateY(3px); box-shadow: 0 8px 0 rgba(24,120,169,.13), 0 15px 30px rgba(23,52,71,.12); }
.bus-button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 5px; }
.bus-image-wrap { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: inherit; background: linear-gradient(#dff3fb 0 65%,#dbeec9 65% 73%,#fff 73%); line-height: 0; }
.bus-image-wrap img { position: absolute; top: 24%; left: 9%; display: block; width: 82%; height: auto; margin: 0; mix-blend-mode: multiply; animation: bus-arrival 1.25s cubic-bezier(.2,.8,.2,1) both; }

.tap-label { position: absolute; right: 18%; bottom: 14%; left: 18%; z-index: 2; display: flex; padding: 8px 4px; flex-direction: column; gap: 2px; border: 3px solid rgba(255,255,255,.9); border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.tap-label strong { font-size: clamp(.9rem,3.8vw,1.1rem); letter-spacing: .1em; line-height: 1.25; white-space: nowrap; }
.tap-instruction { margin: 28px 0 0; color: #526673; font-size: .75rem; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }

@keyframes bus-arrival { from { opacity: 0; transform: translateX(280px); } 75% { opacity: 1; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.video-content.is-visible { animation: reveal 420ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead { margin: 12px 0 clamp(24px,4vw,38px); font-size: clamp(.9rem,2vw,1.15rem); font-weight: 700; letter-spacing: .06em; }
.video-frame { overflow: hidden; width: 100%; border: 7px solid #fff; border-radius: 16px; background: #101719; box-shadow: 0 15px 40px rgba(41,65,81,.15); line-height: 0; }
.youtube-player { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #101719; }
.youtube-help { margin: 14px 0 0; color: #657078; font-size: .75rem; line-height: 1.8; }
.youtube-help a { display: block; width: fit-content; margin: 4px auto 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.back-button { margin: 18px 0 0; padding: 8px 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #657078; font: inherit; font-size: .78rem; cursor: pointer; }
footer { position: relative; z-index: 1; margin-top: clamp(31px,5vw,54px); text-align: center; font-size: .72rem; line-height: 1.7; }
footer p { margin: 0; }
.archive-link { display: inline-block; margin-top: 14px; padding: 3px 0; border-bottom: 1px dashed rgba(41,65,81,.5); color: var(--ink); font-size: .74rem; text-decoration: none; }
.archive-link:hover { color: var(--blue); border-color: var(--blue); }
.archive-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 640px) {
  .video-page { justify-content: center; padding-top: 24px; }
  .desktop-break { display: none; }
  .bus-button { width: min(78vw,280px); border-width: 6px; }
  .doodle { opacity: .5; }
  .flower-one { left: 2%; }
  .star-one { right: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
