/* Reset */
:root {
  --bg: url("bg.jpg");
  --neon: #0ff;
  --container-pad: 20px;
  --gap: 12px; /* space around the container to show background */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;                 /* no body scroll */
  font-family: Arial, sans-serif; 
 /*  font-family: sans-serif;*/
  font-size: 16px;                  /* base size; scale with rem */
}

/* Fullscreen background */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;

  /* your uploaded background image */
  background: url("/assets/block1.png") no-repeat center center fixed;
  /* background: url("/assets/coolMedic.png") no-repeat center center fixed; */

  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

/* Responsive container that scrolls internally only */
.container {
  /* Fallback to vh/vw, prefer svh for mobile, then dvh for dynamic */
  width: calc(100vw );
  width: calc(100svw );
  width: calc(100dvw );

  height: calc(100vh );
  height: calc(100svh );
  height: calc(100dvh );

  /* background: rgba(0, 0, 0, 0.85); */
  border: 4px solid var(--neon);    /* all sides same color */
  border-radius: 12px;
  box-shadow: 0 0 20px var(--neon), inset 0 0 8px rgba(255,255,255,0.05);

  color: #eee;
  padding: var(--container-pad);
  box-sizing: border-box;

  overflow-y: auto;                  /* only container scrolls */
  overflow-x: hidden;


}

/* .container.neon-gradient {
  border: 6px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)) padding-box,
    linear-gradient(90deg, #0ff, #f0f, #ff0) border-box;
  box-shadow: 0 0 22px #0ff, 0 0 8px #f0f; 
} */

.container.neon-gradient {
  border: 6px solid;                /* defines border thickness */
  border-image-slice: 1;            /* necessary for border-image to render */
  border-image-source: linear-gradient(90deg, #0ff, #f0f, #ff0);

  border-radius: 14px;              /* rounded corners still work */
  background: transparent;          /* keep inside transparent */
  box-shadow: 0 0 22px #0ff, 0 0 8px #f0f;
}






/* Responsive font scaling (keeps things readable on tiny phones) */
@media (max-width: 420px) {
  html { font-size: 15px; }
}
@media (max-width: 360px) {
  html { font-size: 14px; }
}



/* Title glow */
.game-title {
  font-size: 2.2rem;
  color: #0ff;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

/* Section blocks */
.intro-block {
  margin-bottom: 1.5rem;
  background: rgba(0,0,0,0.55); /* dark overlay just for readability */
  padding: 1rem;
  border-radius: 8px;
}

.intro-block h2 {
  color: #f0f;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #f0f;
}
.intro-block p,
.intro-block ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Highlights */
.highlight {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 8px #0ff;
}
.upgrade {
  color: #0f0;
  font-weight: bold;
  text-shadow: 0 0 6px #0f0;
}
.implant {
  color: #f0f;
  font-weight: bold;
  text-shadow: 0 0 6px #f0f;
}

/* Book list */
.book-list {
  list-style: none;
  padding: 0;
}
.book-list li {
  margin-bottom: 0.5rem;
  color: #eee;
}

/* Start button */
.start-btn {
  display: block;
  margin: 1.5rem auto 0 auto;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background: #0ff;
  color: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px #0ff, 0 0 24px #0ff;
  transition: all 0.2s ease;
}
.start-btn:hover {
  background: #f0f;
  color: #fff;
  box-shadow: 0 0 16px #f0f, 0 0 32px #f0f;
}



/* Each view box */
.view-box {
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-y: auto;
}

/* Profile card styling */
.profile-card {
  background: rgba(20,20,20,0.9);
  border: 2px solid #0ff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 12px #0ff;
  color: #eee;
}

.urban-card{
  border: 2px solid #0ff;
  /* background: rgba(20,20,20,0.9); */
  border-radius: 8px;
  padding: 1rem;
}

.section-title {
  color: #f0f;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #f0f;
}


.stats-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.stats-list li {
  margin: 0.2rem 0;
}
.stat {
  color: #0ff;
  font-weight: bold;
}

/* Cyberpsychosis meter */
.meter {
  display: block;
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}
.meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ff, #f0f, #ff0, #f00);
  transition: width 0.3s ease;
}


.crew-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.crew {
  margin: 0.3rem 0;
  font-weight: bold;
}

.crew.unlocked {
  color: #0f0;
  text-shadow: 0 0 6px #0f0;
}

.crew.locked {
  color: #555;
  text-shadow: none;
}


.crew-members {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
      width: 100%;
    overflow: scroll;
    scrollbar-width: none;
}

.crew-slot {
  flex: 1;
  padding: 0.8rem;
  text-align: center;
  border: 2px dashed #555;
  border-radius: 6px;
  font-weight: bold;
}

.crew-slot.unlocked {
  border: 2px solid #0f0;
  color: #0f0;
  text-shadow: 0 0 6px #0f0;
}

.crew-slot.locked {
  border: 2px dashed #555;
  color: #555;
  min-width: 20%;
}


.missions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid #0ff;
  border-radius: 8px;
}

.mission-card {
  background: rgba(20,20,20,0.85);
  border: 2px solid #0ff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px #0ff;
}

.mission-card h3 {
  margin: 0 0 0.5rem;
  color: #f0f;
  text-shadow: 0 0 6px #f0f;
}

.mission-card p {
  margin: 0.3rem 0;
  color: #ccc;
}

.mission-card .tags {
  font-size: 0.9rem;
  color: #0ff;
}

.mission-card button {
  margin-top: 0.5rem;
  padding: 6px 12px;
  background: #0ff;
  border: none;
  border-radius: 6px;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mission-card button:hover {
  background: #f0f;
  color: #fff;
  box-shadow: 0 0 10px #f0f;
}

.hub-desc {
  margin-bottom: 1rem;
  color: #ccc;
  font-style: italic;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.hub-spot {
  background: rgba(20,20,20,0.8);
  border: 2px solid #0ff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px #0ff;
}

.hub-spot:hover {
  background: rgba(0,255,255,0.1);
  box-shadow: 0 0 16px #0ff, 0 0 8px #f0f;
}

.spot-desc {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #aaa;
}


#intro-view{

}

#profile-view{
  display: none;
}

/* #medic-card{
  padding: 1rem;
    border: 2px solid #0ff;
    border-radius: 8px;
}

#dropshipping-card{
    padding: 1rem;
    border: 2px solid #0ff;
    border-radius: 8px;
} */

#missions-view{
  display: none;

}
#slums-hub{
  display: none;

}

#park-view{
  display: none;
}
#medic-view{
    display: none;

}
#dropshipping-view{
  display: none;
}


.collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.collapsed {
  max-height: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.toggle-btn {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 6px 12px;
  background: #111;
  border: 1px solid #0ff;
  border-radius: 6px;
  color: #0ff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.toggle-btn:hover {
  background: #0ff;
  color: #111;
}


.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  background: rgba(20,20,20,0.85);
  border: 1px solid #0ff;
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 8px #0ff;
}

.ach-title {
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

.ach-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.3rem;
}




.punk-inventory {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;   /* 3 equal columns */
  grid-template-rows: auto auto auto;   /* rows adjust automatically */
  gap: 8px;

  width: 100%;             /* take full width of profile box */
  max-width: 100%;         /* prevent overflow */
  margin: 0 auto;

  background: rgba(10,10,10,0.85);
  border: 2px solid var(--neon);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--neon);
  padding: 10px;
  box-sizing: border-box;
  justify-items: center;
}

/* Slots auto-scale with container */
.equip-slot {
  aspect-ratio: 1 / 1;      /* force perfect square */
  width: 80%;               /* relative size inside grid cell */
  max-width: 100px;         /* prevent them from getting huge */
  border: 2px dashed #555;
  border-radius: 6px;
  background: rgba(0,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}
.equip-slot:hover {
  border-color: var(--neon);
  background: rgba(0,255,255,0.2);
}

/* Placement */
.equip-slot.head { grid-column: 2; grid-row: 1; 

  /* background-image: url("assets/GearImages/Body/animal_skin_1_old.png"); */
  background-size: cover;       /* ✅ fills the box */
  background-position: center;  /* ✅ keeps it centered */
  background-repeat: no-repeat; /* ✅ prevents tiling */

}
.equip-slot.left-arm { grid-column: 1; grid-row: 2; }
.equip-slot.body { grid-column: 2; grid-row: 2; }
.equip-slot.right-arm { grid-column: 3; grid-row: 2; }
.equip-slot.legs { grid-column: 2; grid-row: 3; }


.mission-status {
  background: rgba(20,20,20,0.8);
  border: 2px solid var(--neon);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px var(--neon);
}

.status-item {
  margin-bottom: 0.6rem;
  color: #eee;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-item .label {
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

.status-item .value {
  color: #ccc;
}

.status-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
  margin: 0 4px;
}

.status-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ff, #0f0);
}

.status-bar.health .bar-fill {
  background: linear-gradient(90deg, #0f0, #ff0, #f00);
}




.medic-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.medic-btn {
  padding: 10px;
  background: #111;
  border: 2px solid var(--neon);
  border-radius: 6px;
  color: var(--neon);
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.medic-btn:hover {
  background: var(--neon);
  color: #111;
  box-shadow: 0 0 10px var(--neon);
}

.medic-info {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(20,20,20,0.85);
  border: 1px solid var(--neon);
  border-radius: 6px;
  box-shadow: 0 0 6px var(--neon);
  color: #ccc;
  font-size: 0.95rem;
}


.shop-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}


.shop-item {
  background: rgba(20,20,20,0.85);
  border: 2px solid var(--neon);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px var(--neon);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-item h3 {
  margin: 0 0 0.5rem;
  color: #f0f;
  text-shadow: 0 0 6px #f0f;
}

.shop-item p {
  margin: 0.3rem 0;
  color: #ccc;
  font-size: 0.9rem;
}

.shop-item button {
  padding: 6px 12px;
  background: #0ff;
  border: none;
  border-radius: 6px;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.shop-item button:hover {
  background: #f0f;
  color: #fff;
  box-shadow: 0 0 8px #f0f;
}

.inventory-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Inventory item cards */
.inventory-item {
  background: rgba(20,20,20,0.85);
  border: 2px solid var(--neon);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px var(--neon);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inventory-item p {
  margin: 0.3rem 0;
  color: #ccc;
  font-size: 0.9rem;
}

.inventory-item h3 {
  margin: 0 0 0.5rem;
  color: #f0f;
  text-shadow: 0 0 6px #f0f;
}

.inventory-item strong {
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

.shop-item strong {
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}


/* Optional: smaller action button inside inventory items */
.inventory-item button {
  padding: 6px 12px;
  background: #111;
  border: 2px solid var(--neon);
  border-radius: 6px;
  color: var(--neon);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inventory-item button:hover {
  background: var(--neon);
  color: #111;
  box-shadow: 0 0 8px var(--neon);
}





#medicImageChair{
  width: 100%;
  opacity: .5;
}



.flip-x {
  transform: scaleX(-1); /* horizontal flip */
}

.flip-y {
  transform: scaleY(-1); /* vertical flip */
}


#stone-card,
#pebbles-card,
#sewer-card,
#rooftop-card,
#robots-card {
  border: 2px solid #0ff;
  border-radius: 8px;
  padding: 1rem;        /* optional, to match profile-card look */
  background: rgba(20,20,20,0.85); /* optional neon-dark background */
  margin-bottom: 1rem;  /* spacing between sections */
}


#stone-fight-area {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid #0ff;
  border-radius: 8px;
  background: rgba(20,20,20,0.85);
  box-shadow: 0 0 10px #0ff;
}

#stone-fight-area button {
  margin: 0.3rem;
  padding: 8px 14px;
  background: #0ff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
#stone-fight-area button:hover {
  background: #f0f;
  color: #fff;
  box-shadow: 0 0 10px #f0f;
}


#anim2{
  /* display: inline-block; */
}

.video-row {
  display: flex;
  justify-content: center;
  gap: 1rem;          /* space between videos */
  margin: 1rem 0;
}

.video-row video {
  max-width: 45%;     /* keep them smaller than container */
  border: 2px solid #0ff;
  border-radius: 8px;
  box-shadow: 0 0 10px #0ff;
}

#anim1 {
  transform: scaleX(-1); /* keep flipped */
}




#investigation-area {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid #0ff;
  border-radius: 8px;
  background: rgba(20,20,20,0.85);
  box-shadow: 0 0 10px #0ff;
}

#investigation-area button {
  margin: 0.3rem;
  padding: 8px 14px;
  background: #0ff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
#investigation-area button:hover {
  background: #f0f;
  color: #fff;
  box-shadow: 0 0 10px #f0f;
}


#broman {
  width: 187px;
  /* position: fixed; */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(270deg);
  transform-origin: center center;
}


video {
  background: transparent !important;
  pointer-events: none; /* optional if you don’t want taps */
}

.video-row {
  background: transparent;
}

/* Target Hunt Game Styles */
#target-hunt-area {
  position: relative;
  width: 100%;
  height: 400px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15,32,39,0.9), rgba(32,58,67,0.9), rgba(44,83,100,0.9));
  border: 2px solid var(--neon);
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow: 0 0 15px var(--neon);
}

#target-hunt-area .hud {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #00ff00;
  font-size: 0.9rem;
  text-shadow: 0 0 8px #00ff00;
  z-index: 100;
}

#target-hunt-area .hud div {
  margin-bottom: 4px;
}

#target-hunt-area .crosshair {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 50;
  display: none;
}

#target-hunt-area .crosshair::before,
#target-hunt-area .crosshair::after {
  content: '';
  position: absolute;
  background: #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

#target-hunt-area .crosshair::before { 
  width: 2px; 
  height: 30px; 
  left: 14px; 
}

#target-hunt-area .crosshair::after { 
  width: 30px; 
  height: 2px; 
  top: 14px; 
}

#target-hunt-area .target {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4444 0%, #cc0000 50%, #990000 100%);
  border: 3px solid #fff;
  cursor: crosshair;
  animation: target-pulse 2s infinite;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
  z-index: 10;
}

#target-hunt-area .target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
}

#target-hunt-area .target::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

@keyframes target-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#target-hunt-area .hit-effect {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffff00, #ff8800, transparent);
  animation: hit-explode 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}

@keyframes hit-explode {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

#target-hunt-area .muzzle-flash {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffff00, #ff4400, transparent);
  border-radius: 50%;
  animation: muzzle-flash 0.1s ease-out forwards;
  pointer-events: none;
  z-index: 15;
}

@keyframes muzzle-flash {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

#target-hunt-area .game-over {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.95);
  color: #00ff00;
  padding: 25px;
  border-radius: 10px;
  border: 2px solid #00ff00;
  text-align: center;
  display: none;
  z-index: 200;
  box-shadow: 0 0 20px #00ff00;
}

#target-hunt-area .game-over h2 {
  margin: 0 0 15px 0;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

#target-hunt-area .game-over p {
  margin: 8px 0;
  color: #ccc;
}

#target-hunt-area .btn {
  background: #00ff00;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  font-family: inherit;
  transition: all 0.2s ease;
}

#target-hunt-area .btn:hover {
  background: #00cc00;
  box-shadow: 0 0 10px #00ff00;
}









.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  background: rgba(20,20,20,0.85);
  border: 1px solid #0ff;
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 8px #0ff;
  transition: all 0.3s ease;
}

.ach-active {
  color: #0ff; /* bright neon */
  text-shadow: 0 0 6px #0ff;
}

.ach-completed {
  color: #666;
  text-shadow: none;
  opacity: 0.6;
}

.ach-completed .ach-title {
  text-decoration: line-through;
  color: #888;
}



.player-credits{
  margin: 8px 0;
  padding: 6px 10px;
  border: 1px solid var(--neon);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  color: var(--neon);
  font-family: monospace;
}



.mission-summary {
  background: rgba(20,20,20,0.85);
  border: 2px solid #0ff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  /* margin-bottom: 1rem; */
  color: #0ff;
  font-weight: bold;
  text-shadow: 0 0 6px #0ff;
  text-align: center;
  box-shadow: 0 0 10px #0ff;
}
.mission-summary p {
  margin: 0;
  font-size: 1rem;
}

.mission-controls {
  /* background: rgba(20,20,20,0.85); */
  border: 2px solid var(--neon);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px var(--neon);
  color: #ccc;
}

.mission-controls label {
  display: block;
  margin: 0.5rem 0;
  /* color: #0ff; */
  color: #ffff00;

}
.mission-controls input[type="range"] {
  width: 100%;
  box-shadow: 0 0 6px #ffff00;
  background: rgba(0, 255, 255, 0.2);

  -webkit-appearance: none; /* remove default */

}



/* Neon Level Up Button */
#level-up-btn {

  font-weight: bold;
  color: #111;

  
  background: linear-gradient(90deg, #ffffff, #969781, #ff0);
  border: none;

}

#level-up-btn:hover {
  transform: scale(1.08);
  color: #fff;
  background: linear-gradient(90deg, #f0f, #ff0, #0ff);
  box-shadow: 0 0 16px #f0f, 0 0 30px #ff0, 0 0 40px #0ff;
}

#level-up-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 8px #0ff, 0 0 16px #f0f;
}


.difficulty-row {
  display: flex;
  gap: 1rem;                /* space between */
  overflow-x: scroll;
  overflow-x: auto;   /* use auto for better UX */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}

.difficulty-btn {
  flex: 1;                  /* equal width */
  min-width: 150px;         /* don’t shrink too small */
  padding: 1rem;
  background: rgba(20,20,20,0.85);
  border: 2px solid var(--neon);
  border-radius: 8px;
  color: #eee;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.difficulty-btn:hover {
  background: var(--neon);
  color: #111;
  box-shadow: 0 0 10px var(--neon);
}


.buttonNoraml{  
  padding: 1rem;
  background: rgba(20,20,20,0.85);
  border: 2px solid var(--neon);
  border-radius: 8px;
  color: #eee;
}

.buttonNoraml2{ 
  background: rgba(20,20,20,0.85);
  border: 2px solid #ff0;
  border-radius: 8px;
  color: #eee;
}

.completed-mission {
  text-decoration: line-through;
  color: #888;
  text-shadow: none;
  opacity: 0.7;
}


.fight-progress{
  text-align: center;
}


/* Gear Box list */
.gear-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Gear item cards */
.gear-item {
  background: rgba(20,20,20,0.85);
  border: 2px solid #ff0; /* yellow border to distinguish */
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px #ff0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gear-item h4 {
  margin: 0 0 0.5rem;
  color: #ff0;
  text-shadow: 0 0 6px #ff0;
}

.gear-item p {
  margin: 0.3rem 0;
  color: #ccc;
  font-size: 0.9rem;
}

.gear-item strong {
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

/* Gear action buttons */
.gear-actions button {
  padding: 6px 12px;
  background: #111;
  border: 2px solid var(--neon);
  border-radius: 6px;
  color: var(--neon);
  font-weight: bold;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.gear-actions button:hover {
  background: var(--neon);
  color: #111;
  box-shadow: 0 0 8px var(--neon);
}





/* Investigation Mini-Game Styles */

.gate-choices, .sewer-choices {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.gate-choices {
  grid-template-columns: repeat(2, 1fr);
}

.sewer-choices {
  grid-template-columns: 1fr 1fr;
}

/* Glyph Grid Layout */
.glyphs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.glyph-slot {
  background: rgba(0, 255, 65, 0.05);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: not-allowed;
}

.glyph-slot.available {
  border-color: #00ff41;
  cursor: pointer;
  background: rgba(0, 255, 65, 0.05);
}

.glyph-slot.available:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  transform: translateY(-2px);
}

.glyph-slot.decoded {
  border-color: #0099ff;
  background: rgba(0, 153, 255, 0.1);
  cursor: not-allowed;
}

.glyph-slot.risky {
  border-color: #ff8000;
  background: rgba(255, 128, 0, 0.05);
  cursor: pointer;
}

.glyph-slot.risky:hover {
  background: rgba(255, 128, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 128, 0, 0.3);
  transform: translateY(-2px);
}

.glyph-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #00ff41;
}

.glyph-slot.decoded .glyph-title {
  color: #0099ff;
}

.glyph-slot.risky .glyph-title {
  color: #ff8000;
}

.glyph-status {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  color: #ccc;
}

.viable-choice {
  background: linear-gradient(45deg, #00ff41, #00cc33);
  color: #000;
  border: 2px solid #00ff41;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.viable-choice:hover {
  background: linear-gradient(45deg, #00cc33, #00ff41);
  box-shadow: 0 0 10px #00ff41;
}

.risky-choice {
  background: linear-gradient(45deg, #ffaa00, #ff8800);
  color: #000;
  border: 2px solid #ffaa00;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.risky-choice:hover {
  background: linear-gradient(45deg, #ff8800, #ffaa00);
  box-shadow: 0 0 10px #ffaa00;
}

.safe-choice {
  background: linear-gradient(45deg, #0099ff, #0066cc);
  color: #fff;
  border: 2px solid #0099ff;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.safe-choice:hover {
  background: linear-gradient(45deg, #0066cc, #0099ff);
  box-shadow: 0 0 10px #0099ff;
}

.unavailable-choice {
  background: linear-gradient(45deg, #555, #333);
  color: #888;
  border: 2px solid #555;
  padding: 0.8rem;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: bold;
}

/* Message Styling */
.success-msg {
  background: rgba(0, 255, 65, 0.1);
  border-left: 4px solid #00ff41;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.failure-msg {
  background: rgba(255, 0, 64, 0.1);
  border-left: 4px solid #ff0040;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.warning-msg {
  background: rgba(255, 170, 0, 0.1);
  border-left: 4px solid #ffaa00;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.advantage-msg {
  background: rgba(0, 153, 255, 0.1);
  border-left: 4px solid #0099ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.risk-msg {
  background: rgba(255, 128, 0, 0.1);
  border-left: 4px solid #ff8000;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.completion-msg {
  background: rgba(0, 255, 65, 0.15);
  border: 2px solid #00ff41;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
}

.sewer-chamber {
  background: rgba(0, 50, 100, 0.1);
  border: 2px solid #0096c8;
  border-radius: 8px;
  padding: 2rem;
  margin: 1rem 0;
}

.cyber-gain {
  font-weight: bold;
  color: #ff0040;
}

/* Hangman Game Styles */
.letter-btn {
  background: #333;
  color: #000000;
  border: 1px solid #555;
  padding: 0.5rem 0.8rem;
  margin: 0.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.letter-btn:hover:not(:disabled) {
  background: #555;
  border-color: #00ff41;
  box-shadow: 0 0 5px #00ff41;
}

.letter-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.letter-btn.correct {
  background: #00ff41;
  color: #000;
  border-color: #00ff41;
}

.letter-btn.incorrect {
  background: #ff0040;
  color: #fff;
  border-color: #ff0040;
}

#hangman-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

#hangman-word {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
  margin: 1rem 0;
  letter-spacing: 0.3rem;
}

.glyph-context {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
}

.glyph-result {
  border: 2px solid;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.glyph-result.success {
  border-color: #00ff41;
  background: rgba(0, 255, 65, 0.1);
}

.glyph-result.failure {
  border-color: #ff8000;
  background: rgba(255, 128, 0, 0.1);
}

.interpretation-level {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin-top: 0.5rem;
}

.investigation-complete {
  background: rgba(0, 255, 65, 0.2);
  border: 2px solid #00ff41;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.completion-status {
  background: rgba(0, 255, 65, 0.15);
  border: 2px solid #00ff41;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.completion-status h3 {
  color: #000000;
  margin-bottom: 1rem;
}

.completion-status p {
  margin: 0.5rem 0;
  color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glyphs-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .gate-choices {
    grid-template-columns: 1fr;
  }
  
  .glyph-slot {
    padding: 1rem;
  }
  
  #hangman-word {
    font-size: 1.4rem;
    letter-spacing: 0.2rem;
  }
}