/*
===================================
========== Notepad Styles =========
===================================
*/
#NPS_app_notepad {
  z-index: 20;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.692);
}


.NPS_mainTabs {
  position: absolute;
  left: 5px;
  transform: translateX(-100%);
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  /* align-items: flex-end; */
}

.NPS_mainTabs > div {
  padding: 10px 20px;
  padding-right: 40px;
  cursor: pointer;
  font-size: 1.2em;
  text-align: center;

  translate: 30px 0;
  filter: brightness(0.7);
  transition: translate 0.2s ease, filter 0.2s ease;
}

#NPS_tab_client {
  transform: rotate(2deg);
  background-color: rgb(255, 223, 102);
}
#NPS_tab_basicRecipes {
  transform: rotate(-2deg);
  background-color: rgb(255, 159, 67);
}
#NPS_tab_storyRecipes {
  transform: rotate(1deg);
  background-color: rgb(255, 102, 102);
}
#NPS_tab_aphrodisiacs {
  transform: rotate(-3deg);
  background-color: rgb(255, 153, 204);
}


.NPS_mainTabs > div:hover:not(.NPS_tab_active) {
  translate: 25px 0;
  filter: brightness(1);
}
.NPS_mainTabs > .NPS_tab_active:hover {
  translate: 0 0;
}

.NPS_mainTabs > .NPS_tab_active {
  translate: 0 0;
  filter: brightness(1);
}
.NPS_mainTabs > .NPS_tab_disabled {
  pointer-events: none;
  opacity: 0;
}

/* ========== Notepad Page ========== */
.NPS_notepad_mainCont {
  position: relative;
  width: 1140px;
  height: 800px;

  display: flex;
  justify-content: center;
  align-items: center;

  filter: drop-shadow(2px 2px 4px white)
}

.NPS_closeBtn {
  position: absolute;
  top: -13px;
  right: -21px;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(45, 28, 12, 0.75);
  border-radius: 50%;
  background: rgba(255, 247, 220, 0.92);
  color: #3e2410;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.NPS_closeBtn:hover {
  transform: scale(1.08);
  background: rgba(255, 221, 187, 0.98);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
}

.NPS_closeBtn:active {
  transform: scale(0.96);
}

.NPS_notepad_imgCont {
  position: absolute;
  width: 100%;
  height: 100%;
}
.NPS_notepad_imgCont img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.NPS_notepad_recipeCont,
.NPS_notepad_storyrecipeCont,
.NPS_notepad_aphrodisiacCont {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  padding-top: 85px;
  display: flex;
  flex-direction: column;
}

.NPS_notepad_recipeHeader {
  width: 100%;
  padding: 0 20px 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.NPS_notepad_recipeTabTitle {
  font-size: 2em;
  font-weight: bold;
  color: var(--A1-primary);
  letter-spacing: 0.1em;
  text-align: center;
}

.NPS_notepad_recipeBody {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.NPS_notepad_leftTabs {
  height: 100%;
  width: 184px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  /* scroll-snap-type: y mandatory;
  scroll-padding: 0; */
}

.NPS_notepad_tab {
  /* position: relative; */
  width: 95.5%;
  height: 25%;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 0px 4px 4px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

.NPS_notepad_tab:hover {
  background-color: transparent;
  transform: translateX(3px);
}

.NPS_notepad_tab_active {
  border-color: var(--A1-primary);
  background-color: color-mix(in srgb, var(--A1-primary) 50%, transparent 50%);
}

.NPS_notepad_tab_active:hover {
  background-color: color-mix(in srgb, var(--A1-primary) 70%, transparent 30%);
}

.NPS_notepad_tab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* pointer-events: none; */
  /* filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); */
}

.NPS_notepad_right {
  flex: 1;
  border-left: solid 4px var(--A1-primary);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 30px;
  direction: ltr;
}

.NPS_notepad_recipeContent {
  width: 100%;
  color: var(--A5-text);
}

.NPS_notepad_title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--A1-primary);
  letter-spacing: 0.1em;
}

.NPS_notepad_description {
  font-size: 1.3em;
  line-height: 1.6em;
  margin-bottom: 30px;
  color: var(--A5-text);
  min-height: 60px;
  padding: 15px;
  background-color: rgba(34, 15, 24, 0.3);
  border-radius: 8px;
}

.NPS_notepad_description p {
  margin: 0;
}

.NPS_notepad_ingredients {
  margin-top: 20px;
}

.NPS_notepad_ingredientsLabel {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--A1-primary);
}

.NPS_notepad_ingredientsCont {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;

  background-color: rgba(34, 15, 24, 0.3);
}

.NPS_notepad_ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  width: 152px;
  padding: 10px;
  /* background-color: rgba(34, 15, 24, 0.4);
  border: 2px solid var(--A2-secondary); */
  background-image: radial-gradient(rgba(0, 0, 0, 0.171) 40%, transparent 70%);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.NPS_notepad_ingredient:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 169, 64, 0.2);
  border-color: var(--A1-primary);
}

.NPS_notepad_ingredient img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.NPS_notepad_ingredient_locked img {
  background-color: rgba(0, 0, 0, 0.2);
  filter: grayscale(100%) brightness(0%) drop-shadow(0 0 5px black) blur(15px);
}

.NPS_notepad_ingredientName {
  margin: auto 0;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  color: var(--A5-text);
}


/* ========== Clients Page ========== */
.NPS_notepad_clientCont {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  padding-top: 85px;

  color: var(--A1-primary);
}

.NPS_client_mainCont {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 40px;
}

.NPS_client_header {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--A1-primary);
  align-items: center;
}

.NPS_client_portraitCont {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  border: 3px solid var(--A1-primary);
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(34, 15, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.NPS_client_portraitCont img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.NPS_client_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.NPS_client_name {
  font-size: 2.8em;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1;
}

.NPS_client_subtitle {
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 10px;
}

.NPS_client_details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.2em;
}

.NPS_client_details span {
  padding-right: 20px;
}

.NPS_client_details strong {
  color: var(--A1-primary);
}

.NPS_client_hearts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.NPS_client_hearts> img {
  width: 35px;
  height: 35px;
}

.NPS_client_heart {
  width: 35px;
  height: 35px;
  color: #ff4757;
  font-size: 2em;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.NPS_client_heart_empty {
  opacity: 0.3;
}

.NPS_client_schedule {
  position: relative;
  flex-shrink: 0;
  width: 220px;
/*   padding: 5px 15px; */
  background-color: rgba(34, 15, 24, 0.411);
  border-radius: 10px;
  border: 3px solid var(--A2-secondary);
}

.NPS_client_scheduleTitle {
  font-size: 1.4em;
  font-weight: bold;
  color: white;
}

.NPS_client_scheduleDays {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: visible;
}

.NPS_client_scheduleDay {
  position: relative;
  padding: 8px 12px;
  font-size: 1.0em;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 15, 24, 0.3);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: all 0.2s ease;
}

.NPS_client_scheduleDay:first-child {
  border-radius: 5px 5px 0 0;
}

.NPS_client_scheduleDay:last-child {
  border-radius: 0 0 5px 5px;
}

.NPS_client_scheduleDay.current::before {
      content: '';
    position: absolute;
    top: 50%;
    left: -23px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    /* margin-right: 13px; */
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid rgb(87, 87, 87);
    /* filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));*/
}

.NPS_client_scheduleDay.current.active::before {
  border-left-color: rgb(87, 87, 87);
}

.NPS_client_scheduleDay:last-child {
  border-bottom: none;
}

.NPS_client_scheduleDay.active {
  background: var(--A2-secondary);
  color: #fff;
  border-bottom-color: var(--A2-secondary);
  box-shadow: inset 0 0 8px var(--A1-primary);
  font-weight: 700;
}

.NPS_client_scheduleDay.active:last-child {
  border-bottom: none;
}

.NPS_client_scheduleUnknown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(34, 15, 24, 0.8);
  border-radius: 10px;
  pointer-events: none;
}

.NPS_client_scheduleUnknown img {
  width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  opacity: 0.9;
}

/* ── Preferences panel: 2-column layout ── */
.NPS_client_preferences {
  position: relative;
  margin-top: 16px;
  margin-left: -40px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.NPS_pref_hintsTitle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1em;
  font-weight: bold;
  color: var(--A1-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* ── LEFT: story heart track ── */
.NPS_pref_storyColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  overflow: visible;
}

.NPS_pref_storyTitle {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--A1-primary);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.NPS_pref_heartRow {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.NPS_pref_heartNode {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  z-index: 2;
}

.NPS_pref_heartImg {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.NPS_pref_heartLabel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85em;
  font-weight: bold;
  color: black;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Segmented connector area */
.NPS_pref_connectorArea {
  position: relative;
  margin-top: -20px;        /* overlap up into center of heart above */
  margin-bottom: -20px;     /* overlap down into center of heart below */
  width: 260px;             /* explicit width so absolute hints are in scope */
  z-index: 1;               /* behind hearts */
  display: flex;
  justify-content: center;
}

.NPS_pref_barCol {
  display: flex;
  flex-direction: column;
  width: 38px;
  border-left: 5px solid rgb(87, 87, 87);
  border-right: 5px solid rgb(87, 87, 87);
  border-radius: 2px;
}

.NPS_pref_segmentBar {
  width: 100%;
  flex: 1;
  min-height: 49px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}
.NPS_pref_segmentBar:first-child {
  border-radius: 2px 2px 0 0;
}
.NPS_pref_segmentBar:last-child {
  border-radius: 0 0 2px 2px;
}
.NPS_pref_segmentBar_filled {
  background: #c0392b;
}

.NPS_pref_connectorArea > .NPS_pref_hintBubble,
.NPS_pref_heartRow > .NPS_pref_hintBubble {
  position: absolute;
  left: calc(50% + 18px);
  min-width: 670px;
  box-sizing: border-box;
}

.NPS_pref_connectorArea > .NPS_pref_hintBubble::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 3px;
    background: rgb(87, 87, 87);
}

.NPS_pref_comingSoon,
.NPS_pref_patreon {
  position: absolute;
  top: calc(100% + 26px);
  left: 400px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 500px;
  pointer-events: none;
}

.NPS_pref_comingSoon::before,
.NPS_pref_comingSoon::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgb(87, 87, 87);
}

.NPS_pref_comingSoon span {
  font-size: 0.75em;
  font-style: italic;
  color: rgb(87, 87, 87);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.NPS_pref_patreon::before,
.NPS_pref_patreon::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgb(249, 104, 42);
}

.NPS_pref_patreon span {
  font-size: 0.75em;
  font-style: italic;
  color: rgb(249, 104, 42);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.NPS_pref_patreonBtn {
    position: absolute;
    bottom: calc(100% - 45px);
    left: 408px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 3;
    text-decoration: none;
}

.NPS_pref_patreonLogo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.NPS_pref_patreonRender {
    width: 188px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid rgb(249, 104, 42);
    background-color: rgba(34, 34, 34, 0.82);
    flex-shrink: 0;
}

.NPS_pref_patreonRender img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.NPS_pref_patreonBtn:hover {
  transform: translateX(-50%) scale(1.05);
  opacity: 0.9;
}

.NPS_pref_hintBubble {
  flex: 1;
  border-radius: 8px;
  padding: 6px 10px 6px 20px;
  font-size: 0.8em;
  color: var(--A2-secondary);
  line-height: 1.3;
  max-width: 670px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.NPS_pref_hintBubble_last {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── RIGHT: basic drinks ── */
.NPS_pref_basicColumn {
  width: 220px;
  align-self: flex-start;
  padding: 16px 18px 18px;
  text-align: left;
  background-color: rgba(34, 34, 34, 0.82);
  border: 3px solid var(--A1-primary);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.NPS_pref_basicTitle {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--A1-primary);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  text-transform: uppercase;
}

.NPS_pref_basicSection {
  margin-bottom: 12px;
  padding: 10px 12px;
/*   background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14); */
  border-radius: 10px;
}

.NPS_pref_basicSection:last-child {
  margin-bottom: 0;
}

.NPS_pref_basicLabel {
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.NPS_pref_labelLoves   { color: white; }
.NPS_pref_labelLikes   { color: white; }
.NPS_pref_labelDislikes { color: white; }

.NPS_pref_basicList {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 0;
}

.NPS_pref_basicItem {
  font-size: 0.85em;
  color: var(--A1-primary);
  line-height: 1.35;
}
.NPS_pref_basicItem_unknown {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}


.NPS_client_navBtn {
  position: relative;
  flex: 0 0 50px;
  align-self: stretch;
  min-height: 220px;
  padding: 0;
  border: 3px solid var(--A1-primary);
  border-radius: 14px;
  background-color: rgba(34, 34, 34, 0.82);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.NPS_client_navBtn:hover {
  background-color: rgba(52, 52, 52, 0.9);
  box-shadow: 0 0 12px rgba(255, 169, 64, 0.2);
  transform: scaleX(1.04);
}

.NPS_client_navBtn:active {
  transform: scaleX(0.96);
}

.NPS_client_navBtn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.NPS_client_navChevron {
  width: 30px;
  height: 20%;
  background-color: var(--A1-primary);
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.NPS_client_navChevron_left {
  clip-path: polygon(100% 0, 38% 50%, 100% 100%, 62% 100%, 0 50%, 62% 0);
}

.NPS_client_navChevron_right {
  clip-path: polygon(38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%, 0 0);
}

.NPS_client_navBtn:hover .NPS_client_navChevron {
  filter: brightness(1.15);
}


/* ========== Story Recipes Tab ========== */

.NPS_notepad_storyrecipeCont .NPS_notepad_recipeBody {
  position: relative;
}

/* --- Girl Tabs (Left) --- */
.NPS_story_girlTabs {
  width: 184px;
  min-width: 184px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  direction: rtl;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.NPS_story_girlTabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.NPS_story_girlTab {
  position: relative;
  width: 90%;
  height: 25%;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;

  border-style: solid;
  border-color: transparent;
  border-width: 4px 0px 4px 4px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.NPS_story_girlTab:hover {
  background-color: transparent;
  transform: translateX(3px);
}
.NPS_story_girlTab_active {
  border-color: var(--A1-primary);
  background-color: color-mix(in srgb, var(--A1-primary) 50%, transparent 50%);
}

.NPS_story_girlTab_active:hover {
  background-color: color-mix(in srgb, var(--A1-primary) 70%, transparent 30%);
}
.NPS_story_girlTab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.2);
}
.NPS_story_girlTab span {
  font-size: 1em;
  color: black;
  text-align: center;
}

/* --- Right Pane --- */
.NPS_story_rightPane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  overflow-y: auto;
}

/* --- Heart Sections --- */
.NPS_story_heartSections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Dotted-line divider with heart badge in the centre */
.NPS_story_divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.NPS_story_dividerLine {
  flex: 1;
  height: 6px;
  background-image: radial-gradient(circle, #e74c3c 2.5px, transparent 2.5px);
  background-size: 10px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

.NPS_story_heartBadge {
  font-size: 1.1em;
  color: #e74c3c;
  white-space: nowrap;
  text-align: center;
  font-weight: bold;
  padding: 2px 10px;
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.4);
  border-radius: 20px;
  flex-shrink: 0;
}

.NPS_story_heartSection {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0px;
  background: rgba(255,255,255,1);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
  flex-wrap: wrap;
  /* padding-left: 0px; */
}

.NPS_story_drinkImg {
    --NPS-story-drink-accent: var(--A1-primary);
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 4px;
    border-radius: 20px;
    border-color: var(--NPS-story-drink-accent);
}

.NPS_story_drinkImg_solved {
  --NPS-story-drink-accent: var(--A1-primary);
  position: relative;
}

.NPS_story_drinkNameOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.6em;
  font-weight: bold;
  text-align: center;
  padding: 2px 4px;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.NPS_story_drinkImg_partial {
  --NPS-story-drink-accent: color-mix(in srgb, var(--A1-primary) 82%, white 18%);
  background-color: color-mix(in srgb, var(--NPS-story-drink-accent) 50%, transparent 50%);
}


.NPS_story_drinkImg img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
}

.NPS_story_bestDrink {
  font-size: 1em;
  color: black;
  font-weight: bold;
  width: 98px;
  flex-shrink: 0;
  text-align: right;
}

/* --- Ingredients --- */
.NPS_story_ingredients {
  flex: 1;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.15);
  flex-wrap: wrap;
  border-radius: 6px;
  max-width: 428px;
  padding: 4px 6px;
  /* width: 485px; */
}

.NPS_story_ingredientIcon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.NPS_story_ingredientIcon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.NPS_story_ingredientUnknown {
  opacity: 0.4;
}

/* --- Status --- */
.NPS_story_status {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  width: 130px;
  flex-shrink: 0;
  justify-content: space-between;
}

.NPS_story_statusIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
}
.NPS_story_statusSolved {
  background: #27ae60;
  color: #fff;
  font-size: 2em;
}
.NPS_story_statusPartial {
  background: #f1c40f;
  color: #fff;
  padding-bottom: 17px;
  font-size: 2em;
}
.NPS_story_statusWrong {
  background: #e74c3c;
  color: #fff;
}
.NPS_story_statusLocked {
  background: #e74c3c;
  color: #fff;
  font-size: 2em;
}

.NPS_story_statusLabel {
  font-size: 1.2em;
  color: #bbb;
  font-weight: bold;
}

/* --- Inline guess history (inside active section) --- */
.NPS_story_inlineHistory {
  /* align-left: past drinkImg(110) + gap(14) + drinkName(140) + gap(14) = 278px  */
  /* align-right: past gap(14) + status(130) = 144px                              */
  margin-left: calc(110px + 14px + 98px + 14px);
  margin-right: calc(14px + 130px);
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.NPS_story_inlineHistoryEntry {
  position: relative;
}

.NPS_story_inlineHistoryRow {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
  width: 428px;
}

.NPS_story_inlineHistoryNum {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: black;
  white-space: nowrap;
  text-align: right;
}

.NPS_story_inlineHistoryNumLast {
}

.NPS_story_inlineHistoryIcons {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
}

.NPS_story_inlineHistoryScore {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: bold;
  color: #bbb;
  white-space: nowrap;
}

/* --- Guess History Panel --- */
.NPS_story_guessHistory {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 100%;
  background: rgba(30, 30, 40, 0.97);
  border-left: 2px solid var(--A1-primary);
  display: flex;
  flex-direction: column;
  z-index: 10;
  border-radius: 0 0 10px 0;
}

.NPS_story_guessHistoryHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.NPS_story_guessHistoryTitle {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--A1-primary);
}
.NPS_story_guessHistoryClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0 4px;
}

.NPS_story_guessHistoryList {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.NPS_story_guessRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.NPS_story_guessNum {
  font-weight: bold;
  color: var(--A1-primary);
  min-width: 32px;
}
.NPS_story_guessIngredients {
  flex: 1;
  font-size: 0.9em;
  color: #ccc;
}
.NPS_story_guessScore {
  font-weight: bold;
  color: #bbb;
  min-width: 40px;
  text-align: right;
}
.NPS_story_guessCorrect {
  color: #27ae60;
}
.NPS_story_guessEmpty {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}
