/*
===================================
========== Client Styles ==========
===================================
*/
#CLS_app_client {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  /* box-shadow: inset 0 0 10px 10px #000000;
  background: repeating-linear-gradient(
    45deg,
    #606dbc,
    #606dbc 10px,
    #465298 10px,
    #465298 20px
  ); */
}

.CLS_mainCont {
  position: absolute;
  pointer-events: none;
  height: 1080px;
  width: 1920px;
  z-index: 1;
}

.CLS_videosCont {
  position: absolute;
  pointer-events: none;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.CLS_panelsTrack {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  display: flex;
  transition: transform 0.35s ease;
}

.CLS_panel {
  position: relative;
  width: 25%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
}

.CLS_panel video {
  position: absolute;
  top: 0%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
}

.CLS_panel > img,
.CLS_panel .CLS_emptySeatImg {
  position: absolute;
  top: 50%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: opacity 0.3s ease-in-out;
}

.CLS_panel .CLS_backgroundImg {
  z-index: 1;
}


.CLS_choiceBlackout {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 101%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 100px 50px black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}


.CLS_dialogMainCont {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1800px;
  min-height: 25%;
  border-radius: 15px;
}

.CLS_dialogContBack {
  position: absolute;
  opacity: 0.5;
  background-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  width: 100%;
  height: 100%;

  transition: opacity 0.5s ease-in-out;
}

.CLS_dialogCont {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px 4%;
  padding-bottom: 15px;
  font-family: "IBM Plex Sans", monospace;
  font-style: normal;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 3px black;

  paint-order: stroke fill;
  font-size: 2.0em;
  line-height: 1.2em;
  color: var(--A5-text);

}


.CLS_dialogCont > * {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.CLS_dialogCont name {
  display: block;
  font-weight: bold;
  text-indent: 2em;
}
.CLS_dialogCont p {
  text-indent: 1em;
}

/* Hint dialogue styling */
@keyframes hintGlow {
  0%, 100% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); }
  50%       { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}
.CLS_dialogCont p.CLS_hintText {
  font-style: italic;
  color: color-mix(in srgb, var(--A5-text) 55%, #ffd344 45%);
  animation: hintGlow 2.4s ease-in-out infinite;
}
.CLS_dialogCont p.CLS_hintText::after {
  content: ' ✦';
  font-style: normal;
  opacity: 0.8;
}
.CLS_dialogCont space {
  display: block;
  /* margin-top: 0.5em; */
  height: 0.5em;
}

.CLS_choiceCont {
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
}
.CLS_choiceBtn {
  cursor: pointer;
  text-align: left;
  text-indent: 2em;
  text-shadow: 0 0 3px rgb(255, 255, 255);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}
.CLS_choiceBtn:hover {
  transform: translateX(0.1em);
  text-shadow: 0 0 6px rgb(255, 255, 255);
}


.CLS_notepadCont {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 1080px;
  z-index: 5;
  pointer-events: none;
}
#CLS_notepadImg {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  left: 1529px;
  top: 886px;
  width: 297px;
  height: 103px;
  filter:
    brightness(1.3)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));

  transition: transform 0.1s ease, filter 0.1s ease;
}
#CLS_notepadImg:hover {
  transform: scale(1.05);

  filter:
    brightness(1.5)
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.7));
}

/*
===================================
======== Client Day Styles ========
===================================
*/
#CDS_app_clientDay {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background - extended and centered by height */
.CDS_background {
  position: absolute;
  pointer-events: none;
  height: 100%;
}
.CDS_background img {
  position: absolute;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);

  filter: blur(10px);
}


/* Main container for positioned elements (1920x1080 reference) */
.CDS_mainCont {
  position: absolute;
  height: 1080px;
  width: 1920px;
  z-index: 1;
}

.CDS_shiftTimerCont {
  position: absolute;
  top: 20px;
  left: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 16px;
}

.CDS_shiftTimerLabel {
  order: 2;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #f3e8d2;
  text-transform: lowercase;
}

.CDS_shiftTimerValue {
  order: 1;
  min-width: 112px;
  padding: 5px 12px;
  border-radius: 12px;
  background: rgb(0 0 0 / 28%);
  font-family: 'Inconsolata', monospace;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #ffe08a;
}

.CDS_shiftTimerValue_done {
  color: #ff8d73;
}


/* ========== NOTE SLOTS ========== */
.CDS_noteSlot {
  position: absolute;
  top: 0px;
  width: 280px;
  z-index: 3;
}

.CDS_noteSlot_left {
  top: 170px;
  left: 480px;
  transform: translateX(-50%);
}
.CDS_noteSlot_mid {
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
}
.CDS_noteSlot_right {
  top: 170px;
  right: 480px;
  transform: translateX(50%);
}


/* Note card */
.CDS_note {
  position: relative;
  cursor: pointer;
  transform-origin: top center;
  transition: transform 0.15s ease;
}
.CDS_note:hover {
  transform: translateY(5px);
}

/* Note background image */
.CDS_noteImg {
  width: 100%;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* Recipe image on note */
.CDS_recipeImg {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
  pointer-events: none;
}

/* Recipe name */
.CDS_recipeName {
  position: absolute;
  top: 175px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ========== CIRCULAR TIMER ========== */
.CDS_timerCont {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  pointer-events: none;
}

.CDS_timerSvg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.CDS_timerBg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 8;
}

.CDS_timerProgress {
  fill: none;
  stroke: #4ade80;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.CDS_timerText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inconsolata', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}


/* ========== MONEY DISPLAY ========== */
.CDS_moneyCont {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #22c55e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.CDS_moneyIcon {
  font-size: 18px;
}


/* ========== GIVE ORDER BUTTON (day mode, on fulfilled notes) ========== */
/* Reuses CLS_giveDrinkBtn styling; override position to sit below the note card */
.CDS_giveOrderBtn.CLS_giveDrinkBtn {
  position: absolute;
  bottom: -60px;
  top: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
.CDS_giveOrderBtn.CLS_giveDrinkBtn:hover {
  transform: translateX(-50%) scale(1.1);
}
.CDS_giveOrderBtn.CLS_giveDrinkBtn:active {
  transform: translateX(-50%) scale(0.95);
}


/* ========== NOTE ANIMATIONS ========== */
.CDS_noteEnter {
  animation: noteEnter 0.4s ease-out;
}

@keyframes noteEnter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.CDS_noteExit {
  animation: noteExit 0.3s ease-in forwards;
}

@keyframes noteExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}


/* ========== ROPE (decorative top element) ========== */
.CDS_ropeImgCont {
  position: absolute;
  height: 100%;
  width: 100%;
}
.CDS_ropeImgCont img {
  position: absolute;
  height: 22%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ========== POSITION NAVIGATION BUTTONS ========== */
.CLS_positionNav_cont {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

.CLS_positionNav_hitbox {
  position: absolute;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translateY(-50%);
  pointer-events: none;
}

.CLS_positionNav_hitbox_left {
  left: 3px;
}

.CLS_positionNav_hitbox_right {
  right: 3px;
}

.CLS_positionNav_btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: all;
}

.CLS_positionNav_btn::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 4px solid var(--A1-primary);
  background-color: rgba(18, 8, 12, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.CLS_positionNav_btn:hover {
  transform: scale(1.1);
}

.CLS_positionNav_btn:hover::before {
  background-color: color-mix(in srgb, var(--A1-primary) 40%, transparent 60%);
  box-shadow: 0 0 15px rgba(255, 169, 64, 0.5);
}

.CLS_positionNav_btn:active {
  transform: scale(0.95);
}

.CLS_positionNav_btn:disabled {
  cursor: default;
  pointer-events: none;
}

.CLS_positionNav_btn:disabled::before {
  opacity: 0.35;
  border-color: rgba(150, 150, 150, 0.5);
  background-color: rgba(100, 100, 100, 0.3);
  filter: grayscale(80%);
}

.CLS_positionNav_btn:disabled .CLS_positionNav_arrow {
  color: rgba(150, 150, 150, 0.6);
}

.CLS_positionNav_arrow {
  position: relative;
  z-index: 1;
  font-size: 3em;
  color: var(--A1-primary);
  font-weight: bold;
  line-height: 1;
}

.CLS_positionNav_btn:hover .CLS_positionNav_arrow {
  color: var(--A5-text);
}

/* ========== GIVE DRINK BUTTON (Serve Mode) ========== */
.CLS_giveDrinkBtn {
  position: absolute;
  right: 800px;
  top: 35%;
  transform: translateY(-50%);
  z-index: 15;
  width: 80px;
  height: 80px;
  border: 3px solid var(--A1-primary);
  background-color: rgba(18, 8, 12, 0.7);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  pointer-events: all;
  animation: CLS_giveDrinkPulse 1.5s ease-in-out infinite;
}

@keyframes CLS_giveDrinkPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 169, 64, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 169, 64, 0.7); }
}

.CLS_giveDrinkBtn:hover {
  background-color: color-mix(in srgb, var(--A1-primary) 40%, transparent 60%);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(255, 169, 64, 0.6);
}

.CLS_giveDrinkBtn:active {
  transform: translateY(-50%) scale(0.95);
}

/* ========== GIRL INDICATOR DOTS (on nav arrows) ========== */
.CLS_girlIndicator {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--A1-primary);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 169, 64, 0.6);
  pointer-events: none;
  animation: CLS_indicatorGlow 2s ease-in-out infinite;
}

@keyframes CLS_indicatorGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 169, 64, 0.4); }
  50% { box-shadow: 0 0 12px rgba(255, 169, 64, 0.8); }
}

/*
===============================================
========== MAIN SCENE PLAYER STYLES ==========
===============================================
*/
#MSS_app_mainScene {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  position: relative;
}

#MSS_app_mainScene video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* Outer wrapper: handles absolute positioning + visibility */
.MSS_hudWrapper {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 40px));
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 180ms ease;
}

.MSS_hudWrapper.MSS_progressHud_visible {
  opacity: 1;
}

/* Inner pill: gauge + pause button */
.MSS_progressHud {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 11, 9, 0.26) 0%, rgba(14, 11, 9, 0.7) 100%);
  border: 1px solid rgba(255, 236, 210, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.MSS_hudCenter {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.MSS_pauseBtn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(255, 241, 223, 0.88);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.MSS_pauseBtn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.MSS_pauseBtn svg {
  width: 50px;
  height: 50px;
}

.MSS_pauseBtn .MSS_icon_play { display: none; }
.MSS_pauseBtn.MSS_pauseBtn_paused .MSS_icon_pause { display: none; }
.MSS_pauseBtn.MSS_pauseBtn_paused .MSS_icon_play { display: block; }

/* CONTINUE button: rectangle to the right of the pill */
.MSS_skipBtn {
  flex-shrink: 0;
  padding: 0 22px;
  background: rgba(14, 11, 9, 0.7);
  border: 1px solid rgba(255, 236, 210, 0.5);
  border-radius: 14px;
  color: rgba(255, 241, 223, 0.95);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.MSS_skipBtn:hover {
  background: rgba(255, 220, 160, 0.18);
  border-color: rgba(255, 220, 160, 0.75);
  color: #fff;
}

.MSS_progressGauge {
  position: relative;
  width: 100%;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 25, 21, 0.9);
  border: 1px solid rgba(255, 235, 214, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.MSS_progressGaugeFill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 171, 92, 0.88) 0%, rgba(255, 220, 170, 0.96) 100%);
  box-shadow: 0 0 24px rgba(255, 179, 105, 0.3);
}

.MSS_progressSegments {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: auto;
}

.MSS_progressSegment {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
}

.MSS_progressSegment + .MSS_progressSegment {
  border-left: 2px solid rgba(255, 245, 230, 0.16);
}

.MSS_progressSegment:not(.MSS_progressSegment_locked):hover {
  background: rgba(255, 245, 230, 0.63);
}

.MSS_progressSegment.MSS_progressSegment_locked {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.68) 100%);
  cursor: default;
  pointer-events: none;
}

.MSS_progressSegment.MSS_progressSegment_locked::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 241, 223, 0.82);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  opacity: 0.9;
}

.MSS_progressSegment.MSS_progressSegment_locked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 241, 223, 0.88);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(57, 39, 26, 0.18);
}

.MSS_progressText {
  min-height: 20px;
  color: rgba(255, 241, 223, 0.96);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .MSS_progressHud {
    width: calc(100vw - 32px);
    bottom: 18px;
    padding: 12px 14px 12px;
    gap: 8px;
  }

  .MSS_progressGauge {
    height: 18px;
  }

  .MSS_progressText {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .MSS_progressSegment.MSS_progressSegment_locked::before {
    top: 4px;
    width: 6px;
    height: 6px;
  }

  .MSS_progressSegment.MSS_progressSegment_locked::after {
    top: 8px;
    width: 10px;
    height: 7px;
  }
}


/*
==============================================
========== FULL SCREEN PICTURE OVERLAY ==========
==============================================
*/
.CLS_fullScreenPicture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.CLS_fullScreenPicture img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  border: 60px solid #ffedd0;
}

.CLS_fullScreenPicture_placeholder {
  color: white;
  font-size: 3rem;
  text-align: center;
}
