@charset "UTF-8";
/* 
 * Main SCSS stylesheet for Jess in a Mess
 * Mobile-first design with portrait orientation focus
 * 
 * IMPORTANT: This is the source SCSS file.
 * DO NOT EDIT main.css directly - it is auto-generated from this SCSS file.
 * Always edit this main.scss file instead.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: "Nunito", sans-serif;
  background-color: #2c2c2c;
  color: #f0f0f0;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#loading-text {
  font-family: "Special Elite", cursive;
  font-size: clamp(2rem, 8vw, 4rem);
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
@media (max-width: 480px) {
  #loading-text {
    font-size: 3rem;
    letter-spacing: 0.05em;
  }
}
@media (max-width: 320px) {
  #loading-text {
    font-size: 2.5rem;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #2c2c2c;
}

#start-container {
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
  padding-top: 5vh;
}

#start-content {
  text-align: center;
  max-width: 90vw;
}
#start-content #start-title {
  font-family: "Special Elite", cursive;
  font-size: clamp(2rem, 8vw, 4rem);
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}
#start-content #start-message {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#generation-status {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-family: "Nunito", sans-serif;
  color: #f0f0f0;
  line-height: 1.6;
}
#generation-status #status-message {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: #d4af37;
}
#generation-status #loading-animation {
  margin: 40px 0;
  font-size: 1.5rem;
  color: #d4af37;
  transition: transform 0.2s ease-in-out;
}
#generation-status #progress-text {
  font-size: 0.875rem;
  color: #aaa;
  font-style: italic;
}

#error-container {
  display: none;
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff6b6b;
  border-radius: 6px;
  text-align: center;
}
#error-container h3 {
  color: #ff6b6b;
  margin-bottom: 15px;
  font-family: "Special Elite", cursive;
}
#error-container p {
  margin-bottom: 20px;
  color: #f0f0f0;
}
#error-container #retry-btn {
  font-family: "Nunito", sans-serif;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  background-color: #d4af37;
  color: #1a1a1a;
}
#error-container #retry-btn:hover {
  background-color: #f0c649;
}

#map-container, #puzzle-container {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

#puzzle-title-header {
  margin-top: 2vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 20px;
}
#puzzle-title-header #puzzle-title {
  font-family: "Special Elite", cursive;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

#map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 20px;
}
#map-header #map-title {
  font-family: "Special Elite", cursive;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 3vh 0 -3vh;
}
#map-header #player-resources {
  display: flex;
  gap: 20px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
}
#map-header #player-resources span {
  color: #f0f0f0;
  font-size: 1.1rem;
}
@media (max-width: 480px) {
  #map-header #player-resources span {
    font-size: 1rem;
  }
}

#map-grid {
  position: relative;
  height: calc(85vh - 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(10, 1fr);
  row-gap: 13vh;
  -moz-column-gap: clamp(10px, 3vw, 20px);
       column-gap: clamp(10px, 3vw, 20px);
  max-width: 400px;
  margin: 15vh auto 0;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 2vh 1vw;
  justify-items: center;
  align-items: center;
}

.map-row {
  display: flex;
  justify-content: center;
  gap: 20vw;
  width: 100%;
  position: relative;
  z-index: 2;
  margin: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
.map-row.fade-light {
  opacity: 0.7;
}
.map-row.fade-medium {
  opacity: 0.4;
}
.map-row.fade-heavy {
  opacity: 0.2;
}
.map-row.hidden {
  display: none;
}

.event-node {
  position: relative;
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  border: 3px solid #4a4a4a;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}
.event-node .event-icon {
  width: 70%;
  height: 70%;
  -o-object-fit: contain;
     object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
}
.event-node.available {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  animation: available-pulse 2s ease-in-out infinite;
  cursor: pointer;
}
.event-node.available .event-icon {
  filter: brightness(1.4) contrast(1.2);
}
.event-node.available:hover {
  border-color: #f0c649;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.event-node:not(.available) {
  cursor: not-allowed;
}
.event-node:not(.available) .event-icon {
  filter: brightness(0.7) grayscale(0.5);
}
.event-node.puzzle {
  border-color: #4CAF50;
}
.event-node.puzzle .event-icon {
  color: #4CAF50;
}
.event-node.shop {
  border-color: #FF9800;
}
.event-node.shop .event-icon {
  color: #FF9800;
}
.event-node.mystery {
  border-color: #9C27B0;
}
.event-node.mystery .event-icon {
  color: #9C27B0;
}
.event-node.story {
  border-color: #2196F3;
}
.event-node.story .event-icon {
  color: #2196F3;
}
.event-node.super-puzzle {
  border-color: #F44336;
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}
.event-node.super-puzzle .event-icon {
  color: #F44336;
}
.event-node.brunch {
  border-color: #FFEB3B;
}
.event-node.brunch .event-icon {
  color: #FFEB3B;
}
.event-node.book-signing {
  border-color: #795548;
}
.event-node.book-signing .event-icon {
  color: #795548;
}
.event-node.additional-story {
  border-color: #00BCD4;
}
.event-node.additional-story .event-icon {
  color: #00BCD4;
}
.event-node.available {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  animation: pulse 2s infinite;
}
.event-node.available:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.event-node.completed {
  opacity: 0;
}
.event-node.completed.current-position {
  opacity: 1;
}
.event-node:not(.available) {
  cursor: not-allowed;
}
.event-node:not(.available) .event-icon {
  color: #4a4a4a;
}

.path-svg {
  z-index: 1 !important;
}
.path-svg .connection-path {
  stroke: rgba(212, 175, 55, 0.4);
  stroke-width: clamp(2px, 0.5vw, 4px);
  fill: none;
  stroke-dasharray: 8, 4;
  animation: dash-flow-down 3s linear infinite;
  transition: all 0.3s ease-in-out;
}
.path-svg .connection-path:hover {
  stroke-width: 4;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}
.path-svg .connection-path.active {
  stroke: rgba(212, 175, 55, 0.8);
  stroke-width: clamp(3px, 0.7vw, 6px);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.event-node {
  z-index: 2;
}

.jessica-container {
  position: absolute;
  z-index: 10;
  transition: all 0.5s ease-in-out;
}
.jessica-container .jessica-icon {
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  border: 3px solid #d4af37;
  background: rgba(26, 26, 26, 0.9);
  padding: 3px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  animation: jessica-glow 2s ease-in-out infinite alternate;
  -o-object-fit: cover;
     object-fit: cover;
}

@keyframes available-pulse {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
}
@keyframes jessica-glow {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    border-color: #f0c649;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
}
.fade-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  z-index: 99;
  background: linear-gradient(to bottom, transparent, #1a1a1a, #1a1a1a);
}

#player-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  position: relative;
  z-index: 3;
}
#player-position #jessica-icon {
  font-size: clamp(2rem, 5vw, 3rem);
  background: #d4af37;
  border-radius: 50%;
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  animation: gentle-glow 3s ease-in-out infinite alternate;
}
#player-position #jessica-label {
  font-family: "Special Elite", cursive;
  color: #d4af37;
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-top: 8px;
  text-align: center;
}

@keyframes gentle-glow {
  0% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3), 0 0 45px rgba(212, 175, 55, 0.2);
  }
}
@keyframes dash-flow-down {
  to {
    stroke-dashoffset: -24;
  }
}
@media (max-width: 768px) {
  #map-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  #map-header #player-resources {
    gap: 15px;
  }
  .map-row {
    gap: clamp(30px, 6vw, 60px);
  }
  .event-node .event-label {
    bottom: -20px;
    font-size: clamp(0.5rem, 1.2vw, 0.7rem);
  }
}
.title-text {
  font-family: "Special Elite", cursive;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}

.body-text {
  font-family: "Nunito", sans-serif;
  color: #f0f0f0;
  line-height: 1.6;
}

.btn {
  font-family: "Nunito", sans-serif;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
}
.btn-primary {
  background-color: #d4af37;
  color: #1a1a1a;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #f0c649;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
  background-color: transparent;
  color: #d4af37;
  border: 2px solid #d4af37;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: #d4af37;
  color: #1a1a1a;
}

.card {
  background-color: #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #4a4a4a;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #loading-text {
    opacity: 1 !important;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
}
.modal-content h2 {
  margin-bottom: 2vh;
}
.modal-content .modal-buttons {
  margin-top: 2vh;
  text-align: right;
}
.modal-content .modal-buttons button {
  padding: 0.25rem 0.5rem;
  background: #d4af37;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-family: "Nunito", sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 5px;
}
.modal-content .modal-buttons button:hover {
  background: #f0c649;
  transform: translateY(-2px);
}
.modal-content.story-modal {
  text-align: center;
}
.modal-content.story-modal h2 {
  color: #d4af37;
  font-family: "Special Elite", cursive;
  margin-bottom: 1rem;
}
.modal-content.story-modal p {
  color: #f0f0f0;
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.inventory-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99;
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid #4a4a4a;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  max-width: 200px;
}
@media (max-width: 768px) {
  .inventory-container {
    top: 10px;
    right: 10px;
    max-width: 150px;
  }
}
.inventory-container.puzzle-layout {
  position: relative;
  top: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px auto;
  max-width: none;
  width: auto;
  display: flex;
  justify-content: center;
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid #4a4a4a;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}
@media (max-width: 768px) {
  .inventory-container.puzzle-layout {
    margin: 15px auto;
  }
}

.inventory-title {
  color: #d4af37;
  font-family: "Special Elite", cursive;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}
@media (max-width: 768px) {
  .inventory-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
}

.inventory-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 768px) {
  .inventory-items {
    gap: 6px;
  }
}
.inventory-items.puzzle-layout {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .inventory-items.puzzle-layout {
    gap: 8px;
  }
}

.inventory-slot {
  width: 50px;
  height: 50px;
  border: 2px solid #4a4a4a;
  border-radius: 8px;
  background: #2c2c2c;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .inventory-slot {
    width: 40px;
    height: 40px;
  }
}
.inventory-slot:hover {
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}
.inventory-slot.consumable-slot {
  border-color: #4a90e2;
}
.inventory-slot.consumable-slot:hover {
  border-color: #6bb6ff;
  box-shadow: 0 0 8px rgba(75, 144, 226, 0.4);
}
.inventory-slot.passive-slot {
  border-color: #7b68ee;
}
.inventory-slot.passive-slot:hover {
  border-color: #9370db;
  box-shadow: 0 0 8px rgba(123, 104, 238, 0.4);
}
.inventory-slot.empty-slot {
  opacity: 0.5;
  cursor: default;
}
.inventory-slot.empty-slot:hover {
  transform: none;
  box-shadow: none;
}

.item-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-icon img {
  max-width: 80%;
  max-height: 80%;
  -o-object-fit: contain;
     object-fit: contain;
}

.item-placeholder {
  width: 80%;
  height: 80%;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
  color: #d4af37;
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  line-height: 1;
}
@media (max-width: 768px) {
  .item-placeholder {
    font-size: 0.5rem;
  }
}

.item-charges {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #d4af37;
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 3px;
  min-width: 12px;
  text-align: center;
}
@media (max-width: 768px) {
  .item-charges {
    font-size: 0.6rem;
    padding: 1px 3px;
    bottom: 1px;
    right: 1px;
  }
}
.item-charges.no-charges {
  display: none;
}

.slot-placeholder {
  color: #f0f0f0;
  font-size: 0.6rem;
  text-align: center;
  opacity: 0.7;
  font-family: "Nunito", sans-serif;
}
@media (max-width: 768px) {
  .slot-placeholder {
    font-size: 0.5rem;
  }
}

.modal-overlay.item-modal .modal-content {
  max-width: 400px;
}
@media (max-width: 768px) {
  .modal-overlay.item-modal .modal-content {
    max-width: 90vw;
  }
}

.item-modal-content .item-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.item-modal-content .item-modal-header .item-modal-icon-container {
  width: 60px;
  height: 60px;
  border: 2px solid #4a4a4a;
  border-radius: 8px;
  background: #2c2c2c;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-modal-content .item-modal-header .item-modal-icon-container .item-modal-icon {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.item-modal-content .item-modal-header .item-modal-icon-container .item-placeholder {
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
}
.item-modal-content .item-modal-header h3 {
  color: #d4af37;
  font-family: "Special Elite", cursive;
  margin: 0;
  flex: 1;
}
.item-modal-content .item-modal-header .item-type {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
}
.item-modal-content .item-modal-header .item-type.consumable {
  background: #4a90e2;
  color: white;
}
.item-modal-content .item-modal-header .item-type.passive {
  background: #7b68ee;
  color: white;
}
.item-modal-content .item-effects {
  margin-bottom: 15px;
}
.item-modal-content .item-effects h4 {
  color: #d4af37;
  font-family: "Special Elite", cursive;
  margin-bottom: 8px;
}
.item-modal-content .item-effects ul {
  margin: 0;
  padding-left: 20px;
}
.item-modal-content .item-effects ul li {
  color: #f0f0f0;
  font-family: "Nunito", sans-serif;
  line-height: 1.4;
  margin-bottom: 5px;
}
.item-modal-content .item-charges-info,
.item-modal-content .item-timing {
  color: #f0f0f0;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(44, 44, 44, 0.5);
  border-radius: 5px;
}

.modal-use-btn {
  background: #28a745 !important;
}
.modal-use-btn:hover {
  background: #34ce57 !important;
}

.modal-sell-btn {
  background: #ffc107 !important;
  color: #1a1a1a !important;
}
.modal-sell-btn:hover {
  background: #ffcd39 !important;
}

.modal-discard-btn {
  background: #dc3545 !important;
}
.modal-discard-btn:hover {
  background: #e4606d !important;
}

.item-effect-message {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: rgba(26, 26, 26, 0.95);
  border: 3px solid #d4af37;
  border-radius: 15px;
  padding: 20px 30px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #f0f0f0;
  font-family: "Special Elite", cursive;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
  max-width: 80vw;
  animation: itemEffectPulse 2s ease-in-out infinite;
}
@media (max-width: 768px) {
  .item-effect-message {
    font-size: 1rem;
    padding: 15px 20px;
    max-width: 90vw;
  }
}

@keyframes itemEffectPulse {
  0%, 100% {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  }
  50% {
    border-color: #f0c649;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), 0 0 25px rgba(212, 175, 55, 0.3), 0 0 35px rgba(212, 175, 55, 0.2);
  }
}
.passive-item-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1500;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(44, 44, 44, 0.95));
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f0f0;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 250px;
  animation: passiveSlideIn 0.4s ease-out forwards, passiveFadeOut 0.5s ease-in 2.5s forwards;
}
.passive-item-feedback .passive-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.passive-item-feedback .passive-item-text {
  flex: 1;
  line-height: 1.2;
}
.passive-item-feedback .passive-item-text strong {
  color: #d4af37;
  font-weight: bold;
}
.passive-item-feedback .passive-item-text .effect-text {
  font-size: 0.8rem;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .passive-item-feedback {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .passive-item-feedback .passive-item-icon {
    font-size: 1.2rem;
  }
  .passive-item-feedback .effect-text {
    font-size: 0.75rem;
  }
}

@keyframes passiveSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes passiveFadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}
.puzzle-tile.red-herring-target {
  border: 2px solid #ff4444 !important;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
  cursor: crosshair;
}
.puzzle-tile.red-herring-target:hover {
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.search-warrant-target {
  border: 2px solid #ffa500 !important;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  cursor: pointer;
}
.puzzle-tile.search-warrant-target:hover {
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.rumour-mill-target {
  border: 2px solid #9d4edd !important;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
  cursor: pointer;
}
.puzzle-tile.rumour-mill-target:hover {
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.police-scanner-target {
  border: 2px solid #0ea5e9 !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  cursor: pointer;
}
.puzzle-tile.police-scanner-target:hover {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.police-scanner-changed {
  background-color: rgba(14, 165, 233, 0.2);
  animation: policeScannerFlash 0.5s ease-out;
}

.puzzle-tile.notebook-pencil-target {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  cursor: pointer;
}
.puzzle-tile.notebook-pencil-target:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.typewriter-ribbon-target {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  cursor: pointer;
}
.puzzle-tile.typewriter-ribbon-target:hover {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.typewriter-ribbon-flash {
  background-color: rgba(168, 85, 247, 0.2);
  animation: typewriterRibbonFlash 0.5s ease-out;
}

.puzzle-tile.cake-tin-target {
  border: 2px solid #f97316 !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  cursor: pointer;
}
.puzzle-tile.cake-tin-target:hover {
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.cake-tin-flash {
  background-color: rgba(249, 115, 22, 0.2);
  animation: cakeTinFlash 0.5s ease-out;
}

.puzzle-tile.rotary-phone-target {
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
  border: 2px solid #9333ea;
  cursor: pointer;
}
.puzzle-tile.rotary-phone-target:hover {
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.rotary-phone-selected {
  background-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
  border: 2px solid #9333ea;
  animation: rotaryPhoneSelection 1s ease-in-out infinite alternate;
}

.puzzle-tile.rotary-phone-swapping {
  animation: rotaryPhoneSwap 0.6s ease-in-out;
}

@keyframes rotaryPhoneSelection {
  0% {
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 20px rgb(147, 51, 234);
    transform: scale(1.02);
  }
}
@keyframes rotaryPhoneSwap {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    background-color: transparent;
  }
  25% {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(147, 51, 234, 0.3);
  }
  50% {
    transform: scale(1.2) rotate(0deg);
    background-color: rgba(147, 51, 234, 0.5);
  }
  75% {
    transform: scale(1.1) rotate(-5deg);
    background-color: rgba(147, 51, 234, 0.3);
  }
}
.puzzle-tile.nephew-grady-luck-selected {
  background-color: rgba(168, 85, 247, 0.4);
  animation: nephewGradyLuck 0.8s ease-out;
  border: 2px solid #a855f7;
}

@keyframes nephewGradyLuck {
  0% {
    background-color: transparent;
    transform: scale(1) rotate(0deg);
  }
  25% {
    background-color: rgba(168, 85, 247, 0.6);
    transform: scale(1.2) rotate(5deg);
  }
  50% {
    background-color: rgba(168, 85, 247, 0.8);
    transform: scale(1.3) rotate(-5deg);
  }
  75% {
    background-color: rgba(168, 85, 247, 0.6);
    transform: scale(1.1) rotate(3deg);
  }
  100% {
    background-color: rgba(168, 85, 247, 0.4);
    transform: scale(1) rotate(0deg);
  }
}
.puzzle-tile.string-board-target {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  border: 2px solid #22c55e;
  cursor: pointer;
}
.puzzle-tile.string-board-target:hover {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
  transform: scale(1.05);
}

.puzzle-tile.string-board-clearing {
  background-color: rgba(34, 197, 94, 0.4);
  animation: stringBoardClear 0.8s ease-out;
}

.puzzle-tile.string-board-cleared {
  background-color: rgba(34, 197, 94, 0.2);
  opacity: 0.3;
}

@keyframes stringBoardClear {
  0% {
    background-color: transparent;
    transform: scale(1);
  }
  50% {
    background-color: rgba(34, 197, 94, 0.8);
    transform: scale(1.1);
  }
  100% {
    background-color: rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
}
.puzzle-tile.resolved-tile {
  background-color: rgba(255, 165, 0, 0.2);
  animation: resolveFlash 0.5s ease-out;
}

.puzzle-tile.removed-tile {
  background-color: rgba(255, 68, 68, 0.2);
  animation: removeFlash 0.5s ease-out;
}

@keyframes resolveFlash {
  0% {
    background-color: rgba(255, 165, 0, 0.8);
  }
  100% {
    background-color: rgba(255, 165, 0, 0.2);
  }
}
@keyframes removeFlash {
  0% {
    background-color: rgba(255, 68, 68, 0.8);
  }
  100% {
    background-color: rgba(255, 68, 68, 0.2);
  }
}
@keyframes policeScannerFlash {
  0% {
    background-color: rgba(14, 165, 233, 0.8);
  }
  100% {
    background-color: rgba(14, 165, 233, 0.2);
  }
}
@keyframes typewriterRibbonFlash {
  0% {
    background-color: rgba(168, 85, 247, 0.8);
  }
  100% {
    background-color: rgba(168, 85, 247, 0.2);
  }
}
@keyframes cakeTinFlash {
  0% {
    background-color: rgba(249, 115, 22, 0.8);
  }
  100% {
    background-color: rgba(249, 115, 22, 0.2);
  }
}
.puzzle-tile.rainy-night-removing {
  background: linear-gradient(45deg, rgba(30, 41, 59, 0.9), rgba(71, 85, 105, 0.7));
  animation: rainyNightFade 0.6s ease-out forwards;
  position: relative;
}
.puzzle-tile.rainy-night-removing::before {
  content: "🌧️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  z-index: 2;
  animation: rainDrop 0.6s ease-out;
}

@keyframes rainyNightFade {
  0% {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(45deg, rgba(30, 41, 59, 0.2), rgba(71, 85, 105, 0.1));
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
    background: linear-gradient(45deg, rgba(30, 41, 59, 0.6), rgba(71, 85, 105, 0.4));
  }
  100% {
    opacity: 0.1;
    transform: scale(0.9);
    background: linear-gradient(45deg, rgba(30, 41, 59, 0.9), rgba(71, 85, 105, 0.7));
  }
}
@keyframes rainDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -150%);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0.7;
    transform: translate(-50%, 0%);
  }
}
.item-modifier-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-modifier-indicator .indicator-icon {
  font-size: 1.5em;
  animation: pulse 2s infinite;
}
.item-modifier-indicator .indicator-text {
  font-size: 0.9em;
  font-weight: bold;
}
.item-modifier-indicator .indicator-text .indicator-subtext {
  font-size: 0.8em;
  font-weight: normal;
  opacity: 0.8;
}

.statement-recorder-active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.9));
}
.statement-recorder-active .indicator-icon {
  color: #f59e0b;
}

.teapot-active {
  border-color: #06b6d4;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(0, 0, 0, 0.9));
}
.teapot-active .indicator-icon {
  color: #06b6d4;
}

.court-summons-active {
  border-color: #dc2626;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.9));
}
.court-summons-active .indicator-icon {
  color: #dc2626;
}

.cliffhanger-active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.9));
}
.cliffhanger-active .indicator-icon {
  color: #f59e0b;
}

.doctor-seth-opinion-active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 0, 0, 0.9));
}
.doctor-seth-opinion-active .indicator-icon {
  color: #10b981;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
.inventory-container.hidden-for-item-effect {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.publishers-advance-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10000;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.publishers-advance-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.publishers-advance-message.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.publishers-advance-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #f0f0f0;
  text-align: center;
}

.publishers-advance-icon {
  font-size: 2.5rem;
  animation: coinSpin 0.6s ease-in-out;
}

.publishers-advance-text {
  font-family: "Nunito", sans-serif;
}
.publishers-advance-text strong {
  font-size: 1.2rem;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}
.publishers-advance-text .total-coins {
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 600;
}

@keyframes coinSpin {
  0% {
    transform: rotateY(0deg) scale(0.8);
  }
  50% {
    transform: rotateY(180deg) scale(1.1);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}
.discard-confirmation-modal .modal-content {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.discard-confirmation-content {
  text-align: center;
  color: #f0f0f0;
}
.discard-confirmation-content .discard-warning-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: warningPulse 2s infinite;
}
.discard-confirmation-content h3 {
  color: #ef4444;
  margin-bottom: 15px;
  font-family: "Special Elite", cursive;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}
.discard-confirmation-content p {
  margin-bottom: 10px;
  font-family: "Nunito", sans-serif;
}
.discard-confirmation-content p strong {
  color: #d4af37;
}
.discard-confirmation-content .discard-warning {
  color: #fbbf24;
  font-weight: 600;
  font-style: italic;
  margin-top: 15px;
}

.modal-confirm-discard-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #dc2626;
}
.modal-confirm-discard-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #b91c1c;
}

.modal-cancel-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: #4b5563;
}
.modal-cancel-btn:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  border-color: #374151;
}

@keyframes warningPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
.shop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.shop-container {
  background: #1a1a1a;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-header {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a1a;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.shop-header h2 {
  font-family: "Special Elite", cursive;
  margin: 0;
  font-size: 1.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.shop-header .player-money {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 6px;
  transition: 0.2s ease-in-out;
}
.shop-header .player-money.insufficient-funds-pulse {
  animation: insufficientFundsPulse 0.4s ease-in-out 2;
  background: rgba(220, 38, 38, 0.3);
  border: 2px solid #ef4444;
}
.shop-header .discount-indicator {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: discountPulse 2s ease-in-out infinite;
}

.original-price {
  text-decoration: line-through;
  color: #6b7280;
  opacity: 0.7;
  font-size: 0.85em;
}

@keyframes discountPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.shop-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.shop-footer {
  background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
  padding: 20px;
  border-top: 2px solid #4a4a4a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.leave-shop-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid #dc2626;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  min-width: 200px;
}
.leave-shop-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.leave-shop-btn:active {
  transform: translateY(0);
}

.shop-section h3,
.inventory-section h3 {
  font-family: "Special Elite", cursive;
  color: #d4af37;
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.shop-item {
  background: linear-gradient(135deg, #3a3a3a, #2c2c2c);
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease-in-out;
}
.shop-item:hover {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
}

.shop-item-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px auto;
  position: relative;
}
.shop-item-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}
.shop-item-icon .item-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #d4af37;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 0.7rem;
  border-radius: 6px;
}

.shop-item-details {
  text-align: center;
}
.shop-item-details h4 {
  color: #f0f0f0;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  margin: 0 0 5px 0;
}
.shop-item-details .item-type {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
}
.shop-item-details .item-type.consumable {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}
.shop-item-details .item-type.passive {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
.shop-item-details .effect {
  color: #d1d5db;
  font-size: 0.85rem;
  margin: 5px 0;
  line-height: 1.3;
}

.shop-item-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.shop-item-footer .item-price {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #d4af37;
  font-size: 1rem;
}

.buy-item-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #059669;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.buy-item-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  transform: translateY(-1px);
}
.buy-item-btn:active {
  transform: translateY(0);
}
.buy-item-btn.disabled {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}
.buy-item-btn.disabled:hover {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: #4b5563;
  transform: none;
}
.buy-item-btn.disabled:active {
  transform: none;
}

.inventory-section .inventory-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  max-width: 400px;
}

.shop-sell-context {
  position: relative;
}
.shop-sell-context:hover .shop-sell-overlay {
  opacity: 1;
}

.shop-sell-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.2s ease-in-out;
}

.sell-item-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #d97706;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.sell-item-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #b45309;
}

.purchase-success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.purchase-success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.purchase-success-message.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.sale-success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.sale-success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.sale-success-message.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.sell-confirmation-modal .modal-content {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.sell-confirmation-content {
  text-align: center;
  color: #f0f0f0;
}
.sell-confirmation-content .sell-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: coinBounce 1s ease-in-out infinite alternate;
}
.sell-confirmation-content h3 {
  color: #f59e0b;
  margin-bottom: 15px;
  font-family: "Special Elite", cursive;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}
.sell-confirmation-content p {
  margin-bottom: 10px;
  font-family: "Nunito", sans-serif;
}
.sell-confirmation-content p strong {
  color: #d4af37;
}

.modal-confirm-sell-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #d97706;
}
.modal-confirm-sell-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #b45309;
}

@keyframes coinBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-5px) scale(1.1);
  }
}
@keyframes insufficientFundsPulse {
  0% {
    background: rgba(0, 0, 0, 0.3);
  }
  50% {
    background: rgba(220, 38, 38, 0.4);
  }
  100% {
    background: rgba(220, 38, 38, 0.3);
  }
}
@media (max-width: 600px) {
  .shop-header {
    padding: 15px;
  }
  .shop-header h2 {
    font-size: 1.3rem;
  }
  .shop-header .player-money {
    font-size: 1rem;
    padding: 6px 12px;
    min-width: 30vw;
  }
  .shop-content {
    padding: 15px;
    gap: 20px;
  }
  .shop-items {
    grid-template-columns: 1fr;
  }
  .shop-item {
    padding: 12px;
  }
  .inventory-section .inventory-items {
    grid-template-columns: repeat(5, 1fr);
  }
  .leave-shop-btn {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 150px;
  }
  .shop-footer {
    padding: 15px;
  }
}
@media print {
  * {
    background: white !important;
    color: black !important;
  }
}
.mystery-modal {
  max-width: 600px;
  text-align: center;
}

.mystery-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.mystery-header h2 {
  color: #d4af37;
  font-family: "Crimson Text", serif;
  font-size: 2rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mystery-icon, .mystery-outcome-image {
  width: 80px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}

.mystery-description {
  margin-bottom: 2rem;
}
.mystery-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e8e8e8;
  margin: 0;
}

.mystery-outcome {
  margin-bottom: 2rem;
}
.mystery-outcome p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8e8e8;
  margin: 0;
}

.mystery-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.choice-btn {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-family: "Special Elite", cursive;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.choice-btn:hover {
  background: linear-gradient(145deg, #d4af37, #b8941f);
  color: #1a1a1a;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}
.choice-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.choice-btn.primary-choice {
  background: linear-gradient(145deg, #d4af37, #b8941f);
  color: #1a1a1a;
}
.choice-btn.primary-choice:hover {
  background: linear-gradient(145deg, #f4cf47, #d4af37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.choice-btn.secondary-choice {
  opacity: 0.8;
}
.choice-btn.secondary-choice:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .mystery-modal {
    max-width: 95vw;
    padding: 1.5rem;
  }
  .mystery-header h2 {
    font-size: 1.5rem;
  }
  .mystery-description p {
    font-size: 1rem;
  }
  .choice-btn {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: 180px;
  }
}
.book-signing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.book-signing-container {
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.book-signing-header {
  color: #f0f0f0;
  margin-bottom: 30px;
}
.book-signing-header h2 {
  font-family: "Special Elite", cursive;
  font-size: 2rem;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}
.stats .timer, .stats .coins {
  background: #3a3a3a;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #4a4a4a;
}

.swipe-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px 0;
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.direction-display {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a3a;
  border: 3px solid #d4af37;
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
}

.arrow {
  font-size: 4rem;
  color: #f0f0f0;
  transition: all 0.3s ease;
}
.arrow.correct {
  color: #4CAF50;
  transform: scale(1.2);
}
.arrow.incorrect {
  color: #f44336;
  transform: scale(0.8);
}

.book-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.flying-book {
  position: absolute;
  font-size: 2rem;
  animation: flyAcross 0.8s ease-out forwards;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
}

@keyframes flyAcross {
  to {
    left: calc(100% + 50px);
    transform: translateY(-50%) rotate(360deg);
  }
}
.instructions {
  color: #f0f0f0;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.game-over {
  color: #f0f0f0;
}
.game-over .jess-result-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  margin-bottom: 15px;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
}
.game-over h3 {
  font-family: "Special Elite", cursive;
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  color: #d4af37;
}
.game-over p {
  font-size: 1.2rem;
  margin: 10px 0;
}
.game-over button {
  background: #d4af37;
  color: #1a1a1a;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}
.game-over button:hover {
  background: #f0c649;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .book-signing-modal {
    padding: 15px;
  }
  .book-signing-header h2 {
    font-size: 1.8rem;
  }
  .stats {
    font-size: 1rem;
  }
  .stats .timer, .stats .coins {
    padding: 6px 12px;
  }
  .direction-display {
    width: 150px;
    height: 150px;
  }
  .direction-display.finished {
    background: transparent;
    border: transparent;
    box-shadow: none;
  }
  .arrow {
    font-size: 3rem;
  }
  .instructions {
    font-size: 1rem;
  }
}
.game-completion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.completion-container {
  width: 100%;
  max-width: 500px;
  background: #3a3a3a;
  border: 3px solid #d4af37;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  color: #f0f0f0;
}

.completion-header {
  margin-bottom: 25px;
}
.completion-header .completion-jess-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #d4af37;
  margin-bottom: 20px;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
}
.completion-header h1 {
  font-family: "Special Elite", cursive;
  font-size: 2.2rem;
  margin: 0;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
  animation: celebrationGlow 2s ease-in-out infinite alternate;
}

@keyframes celebrationGlow {
  from {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.3);
  }
  to {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
  }
}
.completion-content {
  margin-bottom: 30px;
}
.completion-content h2 {
  font-family: "Special Elite", cursive;
  font-size: 1.8rem;
  color: #f0c649;
  margin: 0 0 15px 0;
}
.completion-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 15px 0;
}

.completion-stats {
  background: #2c2c2c;
  border: 2px solid #4a4a4a;
  border-radius: 15px;
  padding: 15px;
  margin-top: 20px;
}
.completion-stats p {
  margin: 0;
  font-weight: bold;
  font-size: 1.2rem;
}
.completion-stats strong {
  color: #d4af37;
}

.completion-actions .back-to-start-btn {
  background: linear-gradient(135deg, #d4af37 0%, #f0c649 100%);
  color: #1a1a1a;
  border: none;
  padding: 18px 40px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  font-family: "Nunito", sans-serif;
}
.completion-actions .back-to-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.completion-actions .back-to-start-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .game-completion-modal {
    padding: 15px;
  }
  .completion-container {
    padding: 25px;
    max-width: 100%;
  }
  .completion-header .completion-jess-image {
    width: 120px;
    height: 120px;
  }
  .completion-header h1 {
    font-size: 1.8rem;
  }
  .completion-content h2 {
    font-size: 1.5rem;
  }
  .completion-content p {
    font-size: 1rem;
  }
  .back-to-start-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}/*# sourceMappingURL=main.css.map */