@charset "UTF-8";
/* =========================================
   0) Viewport
   ========================================= */
*.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}
/* Kill the dark tap-highlight flash on touchscreen clicks */
.character-item, .character-item * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.character-item:focus, .character-item:focus-visible, .character-item:active {
  outline: none !important;
  box-shadow: none !important;
}
/* If any default active-state dimming is happening */
.character-item:active img {
  filter: none !important;
  opacity: 1 !important;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  background: #000; /* letterbox */
  overflow: hidden; /* no browser scrollbars */
  font-family: Arial, sans-serif;
}
/* Base design size (landscape). Portrait overrides below. */ :root {
  --base-w: 1920;
  --base-h: 1080;
}
.viewport {
  position: fixed;
  inset: 0;
  /* Compute uniform scale from viewport to base size */
  --sx: calc(100vw / (var(--base-w) * 1px));
  --sy: calc(100vh / (var(--base-h) * 1px));
  --scale: min(var(--sx), var(--sy));
}
/* The 1920×1080 (or 1080×1920 in portrait) design surface */
.design-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--base-w) * 1px);
  height: calc(var(--base-h) * 1px);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  image-rendering: auto;
}
/* Flip base in portrait to 1080×1920 while preserving scale logic */
@media (orientation: portrait) {
  :root {
    --base-w: 608;
    --base-h: 1080;
  }
}
/* Utilities that size to the CANVAS, not the viewport */
.design-canvas .abs-fill {
  position: absolute;
  inset: 0;
}
.design-canvas .fill {
  width: 100%;
  height: 100%;
}
/* ===========================================================
   1) app structure
   =========================================================== */
.ncc {
  position: absolute;
  top: 0%;
  left: 88%;
  width: 200px;
  height: 60px;
  background-image: url("images/ncc-logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9999;
}
@media (orientation: portrait) {
  .ncc {
    position: absolute;
    top: 0%;
    left: 70%;
    width: 150px;
    height: 45px;
    background-image: url("images/ncc-logo.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
  }
}
.design-canvas .app-container {
  position: absolute;
  inset: 0;
}
/* Full-bleed layers should fill the canvas */
.stage, .curtain-left, .curtain-right, .intro-background, .hays-background, .hays-answer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.stage, .curtain-left, .curtain-right {
  pointer-events: none;
}
/* Keep your stage proportion inside the canvas */
.stage {
  bottom: 0;
  z-index: 2;
}
.stage-image, .curtain-image {
  object-fit: fill;
}
.intro-bg-image, .hays-bg-image, .hays-answer-bg-image {
  object-fit: cover;
}
/* Static curtains pinned to canvas edges */
.curtain-left, .curtain-right {
  top: 0px;
  bottom: 0;
  width: 50%;
  z-index: 10;
}
.curtain-left {
  left: 0;
}
.curtain-right {
  right: 0;
}
@media (orientation: portrait) {
  .intro-background, .hays-background, .hays-answer-background {
    position: absolute;
    top: 0;
    left: -900px;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .stage {
    margin-top: -70px;
  }
  .curtain-left, .curtain-right {
    top: 0px;
    bottom: 0;
    width: 50%;
    z-index: 10;
  }
  .curtain-left {
    left: -200px;
  }
  .curtain-right {
    left: -200px;
  }
}
/* ===========================================================
   2) Stage container / Title
   =========================================================== */
.stage-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.title-section {
  z-index: 5;
  text-align: center;
  margin-top: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.title-image {
  width: 80%;
  max-width: 950px;
  min-width: 298px;
  height: auto;
}
.title-text-image {
  width: 80%;
  max-width: 900px;
  min-width: 310px;
  margin-top: 0px;
  height: auto;
}
@media (orientation: portrait) {
  .title-image {
    width: 88%;
    max-width: 900px;
    min-width: 298px;
    height: auto;
  }
  .title-text-image {
    width: 88%;
    max-width: 900px;
    min-width: 500px;
    margin-top: -10px;
    height: auto;
  }
}
/* ===========================================================
   3) Character carousel
   =========================================================== */
.character-carousel {
  width: 93.5%;
  position: absolute;
  bottom: 10px;
  left: 1%;
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex: 1;
}
.carousel-track {
  display: flex;
  will-change: transform;
  margin-top: 70px;
}
.character-item {
  margin: 20px;
  cursor: pointer;
  transition: transform .4s ease;
  display: flex;
}
.character-bubble {
  position: absolute;
  width: 95%;
  height: 170px;
  opacity: 0;
  margin-top: -75px;
}
@media (orientation: landscape) {
  /* Only when we're in the post-Enter menu (menu-padding on the carousel) */
  #characterCarousel.menu-padding .carousel-track > .character-item:first-child {
    margin-left: 120px; /* 20px existing + 100px extra */
  }
  #characterCarousel.menu-padding .carousel-track > .character-item:last-child {
    margin-right: 250px; /* 20px existing + 100px extra */
  }
}
.character-item:hover {
  transform: scale(1.03);
}
.character-image {
  object-fit: contain;
  border-radius: 8px;
}
.character-item {
  margin: 20px;
  cursor: pointer;
  transition: transform .4s ease;
  display: flex;
}
@media (orientation: portrait) {
  .character-carousel {
    width: 100%;
    left: 0;
    bottom: 90px;
  }
  .carousel-track {
    display: flex;
    will-change: transform;
    height: 590px;
  }
  /* Apply extra end padding ONLY in the post-Enter menu state (not during intro auto-loop) */
  #characterCarousel.menu-padding .character-first {
    margin-left: 185px;
  }
  #characterCarousel.menu-padding .character-last {
    margin-right: 350px;
  }
}
/* ===========================================================
   4) Hays (Question)
   =========================================================== */
.hays-content {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}
.hays-animation-image {
  grid-column: 1;
  grid-row: 1;
  height: 550px;
  width: auto;
  align-self: end;
  justify-self: center;
  z-index: 3;
  margin-bottom: 100px;
}
/* Bubble images (mobile-first) */
.cartoon-bubble-image {
  display: none;
  position: absolute;
  z-index: 10;
  width: 80%;
  max-width: 400px;
  top: 15%;
}
.cartoon-bubble-image-mobile {
  display: block;
  position: absolute;
  z-index: 10;
  width: 85%;
  top: 7%;
  margin-left: 0px;
  transform: translateY(var(--intro-offset, 0px));
}
/* “OR” art – mobile-first */
.or-image {
  display: none;
}
.or-image-mobile {
  display: block;
}
/* Choices (portrait) */
.choice-buttons-container {
  grid-column: 1;
  grid-row: 2;
  position: absolute;
  bottom: 100px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
  width: 70%;
}
.choice-image {
  max-width: 164px;
}
.choice-image:hover {
  transform: scale(1);
  filter: brightness(1);
}
/* Landscape layout adjustments */
@media (orientation: landscape) {
  .hays-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .hays-animation-image {
    height: 800px;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: end;
    margin-left: 120px;
    margin-bottom: 0;
    margin-bottom: 20px;
  }
  .choice-image:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
  .cartoon-bubble-image {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 40px;
    margin-right: 0px;
    margin-left: -180px;
    position: relative;
    transform: translateY(calc(20% + var(--intro-offset, 0px)));
    top: 0;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: start;
  }
  .cartoon-bubble-image-mobile {
    display: none;
  }
  .or-image {
    display: block;
  }
  .or-image-mobile {
    display: none;
  }
  .choice-buttons-container {
    grid-column: 2;
    grid-row: 2;
    margin-right: 180px;
    margin-top: -210px;
    position: unset;
  }
  .choice-image {
    max-width: 250px;
  }
}
/* ===========================================================
   5) Hays (Answer)
   =========================================================== */
.hays-answer-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column; /* portrait stacks */
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
  gap: 20px;
}
.hays-answer-animation-image {
  order: 2;
  height: 500px;
  width: auto;
  margin-top: 0px;
  align-self: center;
  z-index: 3;
  margin-top: -20px;
  margin-left: -70px;
}
.hays-answer-image {
  order: 1;
  align-self: center;
  width: 90%;
  max-width: 700px;
  z-index: 10;
  margin-top: -25px;
  transform: translateY(var(--intro-offset, 0px));
}
/* Return button area */
.return-button-container {
  order: 1;
  position: absolute;
  right: 230px;
  bottom: 100px;
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 30;
}
.home-button {
  order: 30;
  width: 50px;
  height: 50px;
  position: absolute;
  right: 20px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 100;
}
.home-button img {
  width: 50px;
  height: 50px;
}
@media (orientation: landscape) {
  .home-button {
    order: 30;
    width: 70px;
    height: 70px;
    position: absolute;
    right: 125px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 100;
  }
  .home-button img {
    width: 60px;
    height: 60px;
  }
}
.return-button {
  max-width: 164px;
  z-index: 50;
}
.return-button:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}
@media (orientation: landscape) {
  .hays-answer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    padding: 20px;
  }
  .hays-answer-animation-image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: end;
    height: 800px;
    margin-top: 30px;
  }
  .hays-answer-image {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 700px;
    margin-top: 10px;
    margin-left: -70px;
    margin-right: 100px;
    justify-self: start;
    align-self: start;
    position: relative;
    transform: translateY(calc(20% + var(--intro-offset, 0px)));
  }
  .return-button-container {
    grid-column: 2;
    grid-row: 2;
    position: unset;
    margin-left: -370px;
    margin-top: -200px;
  }
  .return-button {
    max-width: 250px;
  }
}
/* ===========================================================
   6) Modal
   =========================================================== */
.hays-modal {
  position: absolute;
  inset: 0; /* sized to the canvas, not viewport */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .95);
  z-index: 5;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
.hays-modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  position: relative;
  top: 2%;
  width: 80%;
  height: 80%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
@media (orientation: portrait) {
  .modal-content {
    position: relative;
    top: 2%;
    width: 100%;
    height: 80%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
  .modal-left {
    padding-right: 10px;
    width: auto;
    height: 45%;
    margin-top: 10px;
  }
  .modal-right {
    flex: 2;
    padding-left: 10px;
    width: auto;
    height: 50%;
    margin-top: 10px;
  }
}
.modal-close {
  position: absolute;
  height: 90%;
  top: 5px;
  right: 15px;
  z-index: 8;
  cursor: pointer;
}
.modal-body {
  display: flex;
  height: 100%;
  box-sizing: border-box;
  padding: 35px;
  flex-direction: column;
  gap: 15px; /* portrait stack */
}
.modal-left, .modal-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.modal-left {
  flex: 3;
}
.modal-right {
  flex: 2;
}
.hays-picture {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (orientation: landscape) {
  .modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    box-sizing: border-box;
    padding: 15px;
    gap: 15px; /* portrait stack */
  }
  .modal-left {
    padding-right: 10px;
    width: auto;
  }
  .modal-right {
    flex: 2;
    padding-left: 10px;
    width: auto;
  }
  .modal-left {
    padding-right: 10px;
    width: auto;
    height: 100%;
    margin-top: 10px;
  }
  .modal-right {
    flex: 2;
    padding-left: 10px;
    width: auto;
    height: 100%;
    margin-top: 10px;
  }
  .modal-close {
    position: absolute;
    height: 100px;
    top: 800px;
    right: 25px;
    z-index: 8;
    cursor: pointer;
    transition: transform .3s ease;
  }
}
/* ===========================================================
   7) Curtain animation overlay (INSIDE canvas)
   =========================================================== */
.curtain-animation-container {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: none; /* toggled via JS */
}
.curtain-pieces-left, .curtain-pieces-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}
.curtain-pieces-left {
  left: 0;
}
.curtain-pieces-right {
  right: 0;
}
.curtain-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.4, 0.46, 0.45, 0.94);
}
/* stacking */
.curtain-pieces-left .curtain-piece:nth-child(1), .curtain-pieces-right .curtain-piece:nth-child(1) {
  z-index: 4;
}
.curtain-pieces-left .curtain-piece:nth-child(2), .curtain-pieces-right .curtain-piece:nth-child(2) {
  z-index: 3;
}
.curtain-pieces-left .curtain-piece:nth-child(3), .curtain-pieces-right .curtain-piece:nth-child(3) {
  z-index: 2;
}
.curtain-pieces-left .curtain-piece:nth-child(4), .curtain-pieces-right .curtain-piece:nth-child(4) {
  z-index: 1;
}
/* timing (closing then opening) */
.curtain-animation-container.closing .curtain-pieces-left .curtain-piece:nth-child(1), .curtain-animation-container.closing .curtain-pieces-right .curtain-piece:nth-child(1) {
  transition-delay: .3s;
}
.curtain-animation-container.closing .curtain-pieces-left .curtain-piece:nth-child(2), .curtain-animation-container.closing .curtain-pieces-right .curtain-piece:nth-child(2) {
  transition-delay: .2s;
}
.curtain-animation-container.closing .curtain-pieces-left .curtain-piece:nth-child(3), .curtain-animation-container.closing .curtain-pieces-right .curtain-piece:nth-child(3) {
  transition-delay: .1s;
}
.curtain-animation-container.opening .curtain-pieces-left .curtain-piece:nth-child(1), .curtain-animation-container.opening .curtain-pieces-right .curtain-piece:nth-child(1) {
  transition-delay: .0s;
}
.curtain-animation-container.opening .curtain-pieces-left .curtain-piece:nth-child(2), .curtain-animation-container.opening .curtain-pieces-right .curtain-piece:nth-child(2) {
  transition-delay: .03s;
}
.curtain-animation-container.opening .curtain-pieces-left .curtain-piece:nth-child(3), .curtain-animation-container.opening .curtain-pieces-right .curtain-piece:nth-child(3) {
  transition-delay: 0s;
}
/* animation states + initial */
.curtain-animation-container.closing .curtain-pieces-left .curtain-piece {
  transform: translateX(0);
}
.curtain-animation-container.closing .curtain-pieces-right .curtain-piece {
  transform: translateX(0);
}
.curtain-animation-container.opening .curtain-pieces-left .curtain-piece {
  transform: translateX(-100%);
}
.curtain-animation-container.opening .curtain-pieces-right .curtain-piece {
  transform: translateX(100%);
}
.curtain-pieces-left .curtain-piece {
  transform: translateX(-100%);
}
.curtain-pieces-right .curtain-piece {
  transform: translateX(100%);
}
/* ===========================================================
   8) Stage 2 & 3 intro animations
   =========================================================== */
/* Slide in from top with curtain-like ease */
.slide-from-top-init, .slide-from-top-active {
  transition:
    opacity 0.8s cubic-bezier(0.4, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.4, 0.46, 0.45, 0.94);
}
.slide-from-top-init {
  opacity: 0;
  /* start above final position */
  --intro-offset: -80px;
}
.slide-from-top-active {
  opacity: 1;
  /* end at the base layout position */
  --intro-offset: 0px;
}
/* Fade-in group (choice buttons / return buttons) */
.fade-in-late-init, .fade-in-late-active {
  transition: opacity 0.6s cubic-bezier(0.4, 0.46, 0.45, 0.94);
}
.fade-in-late-init {
  opacity: 0;
  pointer-events: none;
}
.fade-in-late-active {
  opacity: 1;
  pointer-events: auto;
}
/* ===================== Stage 1: Enter button & carousel nav ===================== */
.enter-button-container {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
}
.enter-button {
  width: 800px;
  height: 578px;
  font-family: inherit;
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 48px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
  background-image: url("images/opening.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.enter-button:active {
  transform: scale(0.97);
}
.carousel-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 140px;
  z-index: 7;
  display: none; /* shown after Enter is pressed */
  padding: 0 50px;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* buttons re-enable pointer events */
}
.carousel-arrow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: solid;
  border-width: 2px;
  border-color: #eed6b9;
  background: rgba(36, 38, 57, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  margin-bottom: 160px;
}
.arrow-left::before, .arrow-right::before {
  content: "";
  border-style: solid;
  border-width: 14px 18px;
}
.arrow-left::before {
  border-color: transparent #eed6b9 transparent transparent;
  margin-left: -20px;
}
.arrow-right::before {
  border-color: transparent transparent transparent #eed6b9;
  margin-left: 24px;
}
.arrow-right {
  margin-right: 65px;
}
@media (orientation: portrait) {
  .enter-button-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .enter-button {
    width: 540px;
    height: 390px;
    font-family: inherit;
    font-size: 32px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 18px 48px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #fff;
    background-image: url("images/opening.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .carousel-nav {
    bottom: 160px;
    padding: 0 20px;
  }
  .carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: solid;
    border-width: 2px;
    border-color: #eed6b9;
    background: rgba(36, 38, 57, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    margin-bottom: 240px;
  }
  .arrow-right {
    margin-right: 0px;
  }
}
/* === Stage 1 Info button (matches Stage 2 home placement) === */
.info-button {
  position: absolute;
  right: 15px;
  bottom: 100px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.info-button img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}
@media (orientation: landscape) {
  .info-button {
    width: 70px;
    height: 70px;
    right: 117px;
    bottom: 80px;
  }
  .info-button img {
    width: 60px;
    height: 60px;
  }
}
/* === Info modal: single centered image === */
.info-modal-body {
  justify-content: center;
  align-items: center;
  align-items: center;
}
/* Special-case: char9-anim-2.webm needs unique sizing */
#s3Anim.char9-anim-2 {
  height: 1000px;
  margin-left: -30px;
  width: auto;
}
@media (orientation: portrait) {
  #s3Anim.char9-anim-2 {
    height: 450px;
    margin-left: 0px;
    width: auto;
  }
}
/* ===== Safari-stable speech bubble positioning ===== */
/* Make each character tile the positioning context for its bubble */
#carouselTrack .character-item {
  position: relative;
}
/* Anchor the bubble with explicit coordinates (avoid static-position quirks) */
#carouselTrack .character-bubble {
  top: -75px; /* replaces margin-top:-75px behavior */
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  -webkit-transform: translateX(-50%) translateZ(0);
  margin-top: 0 !important;
  z-index: 5;
  pointer-events: none; /* bubble can’t become the long-press target */
}
/* Optional but recommended: only apply hover-scale on real hover devices */
@media (hover: none) and (pointer: coarse) {
  #carouselTrack .character-item:hover {
    transform: none;
  }
}