:root {
  --primary-glow: #00599c; /* Sysco Blue */
  --bg-color: #0b0c10;
  --text-color: #f1f1f1;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
  --accent-color: #7fc242; /* Sysco Green */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(-45deg, #0b0c10, #002642, #103322, #0b0c10);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 20px;
}

.glass-container {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.timer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.6);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.timer.warning {
  color: #ff4c4c;
  border-color: #ff4c4c;
  box-shadow: 0 0 10px rgba(255, 76, 76, 0.3);
}

.glass-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(7, 24, 34, 0.5);
}

.split-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1200px;
  width: 95%;
  align-items: center;
}

.split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }
}

.title {
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.path-selection {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.path-card {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.path-card:hover {
  background: rgba(102, 252, 241, 0.15);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.clue-toggle-box {
  position: relative;
  width: 100%;
  min-height: 350px;
  height: 100%;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin-bottom: 0;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.clue-toggle-box:hover {
  transform: scale(1.02);
}

.clue-visual, .clue-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  transition: opacity 0.4s ease, visibility 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clue-visual {
  opacity: 1; visibility: visible;
}
.clue-toggle-box.show-text .clue-visual {
  opacity: 0; visibility: hidden;
}

.clue-content {
  opacity: 0; visibility: hidden;
  padding: 30px;
  box-sizing: border-box;
}
.clue-toggle-box.show-text .clue-content {
  opacity: 1; visibility: visible;
}

.hint-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.8);
  color: #ffeb3b;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  pointer-events: none;
  border: 1px solid #ffeb3b;
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.3);
}

.puzzle-image-container {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.puzzle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clue-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
  font-style: italic;
  background: rgba(0,0,0,0.3);
  padding: 15px;
  border-radius: 8px;
}

.puzzle-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.input-field {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.submit-btn {
  background: var(--accent-color);
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 252, 241, 0.6);
  background: #ffffff;
}

.flash-messages {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.flash-messages li {
  background: rgba(255, 76, 76, 0.2);
  color: #ff4c4c;
  border: 1px solid rgba(255, 76, 76, 0.5);
  padding: 10px;
  border-radius: 8px;
}

/* Success Screen Styles */
.success-image {
  margin-top: 20px;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 0 30px rgba(224, 176, 255, 0.5);
}

.home-btn {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  color: #0b0c10;
  background: var(--primary-glow);
  padding: 12px 30px;
  border-radius: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.home-btn:hover {
  box-shadow: 0 0 20px rgba(224, 176, 255, 0.6);
  background: #fff;
}

/* TUMBLER UI */
.tumbler-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}
.tumbler {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 5px;
}
.tumbler-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
}
.tumbler-btn:hover { color: #fff; }
.tumbler-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0;
  width: 40px;
  text-align: center;
  text-transform: uppercase;
}

/* COMPASS ARROWS UI */
.arrows-container {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(3, 70px);
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}
#arrow-0 { grid-column: 2; grid-row: 1; }
#arrow-1 { grid-column: 1; grid-row: 2; }
#arrow-2 { grid-column: 2; grid-row: 3; }
#arrow-3 { grid-column: 3; grid-row: 2; }
.arrow-dial {
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s;
  color: var(--accent-color);
  user-select: none;
}
.arrow-dial:hover {
  box-shadow: 0 0 15px var(--accent-color);
}
.arrow-dial[data-dir="n"] { transform: rotate(0deg); }
.arrow-dial[data-dir="e"] { transform: rotate(0deg); }
.arrow-dial[data-dir="s"] { transform: rotate(0deg); }
.arrow-dial[data-dir="w"] { transform: rotate(0deg); }

/* DUST GRID UI */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
}
.grid-tile {
  background: #8b5a2b; /* dust color */
  border: 2px solid #5c4033;
  color: transparent;
  font-size: 1rem;
  font-weight: bold;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.5s ease;
  text-transform: uppercase;
  user-select: none;
}
.grid-tile:hover {
  filter: brightness(1.2);
}
.grid-tile.revealed {
  background: rgba(0,0,0,0.6);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* SAND GRID UI */
.sand-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
}
.sand-tile {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  user-select: none;
  border: 2px solid transparent;
}
.sand-tile.sanded {
  background: linear-gradient(135deg, #c2a04e, #e6c979, #a67c32);
  border-color: #8b6914;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}
.sand-tile.sanded:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(194, 160, 78, 0.5);
}
.sand-tile .sand-overlay {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3d2a0a;
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sand-tile .sand-word {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--accent-color);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  text-transform: uppercase;
}
.sand-tile.unsanded {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(127, 194, 66, 0.3);
  cursor: default;
}
.sand-tile.unsanded .sand-overlay {
  opacity: 0;
  transform: scale(0) rotate(45deg);
}
.sand-tile.unsanded .sand-word {
  opacity: 1;
  transform: scale(1);
}
/* POETRY UI */
.poetry-container {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  width: 100%;
}
.poetry-word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s;
}
.poetry-word:hover {
  background: rgba(224, 176, 255, 0.3);
}
.poetry-word.highlighted {
  background: rgba(102, 252, 241, 0.8);
  color: #000;
  font-weight: bold;
}

/* NETWORK UI */
.network-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
}
.network-node {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #333;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s;
  user-select: none;
}
.network-node.lit {
  background: #ff8c00;
  border-color: #ffeb3b;
  box-shadow: 0 0 15px #ff8c00;
  color: #000;
}
.network-edge {
  position: absolute;
  height: 4px;
  background: #555;
  transform-origin: 0 50%;
  z-index: 1;
}
.network-edge.broken {
  background: #ff4c4c;
  opacity: 0.5;
  border: 1px dashed #ff4c4c;
}

.flash-messages .success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.5);
}
/* INSIGHT MODAL UI */
.insight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}
.insight-modal {
  text-align: center;
  max-width: 600px;
  border-color: #ffeb3b; 
  box-shadow: 0 0 40px rgba(255, 235, 59, 0.3);
  animation: popIn 0.5s ease-out forwards;
}
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.insight-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 20px 0;
  color: #fff;
}

/* TEAM ROLES BOX */
.team-roles-box {
  background: rgba(255, 235, 59, 0.1);
  border: 1px solid rgba(255, 235, 59, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 235, 59, 0.15);
}

/* JIGSAW UI */
.jigsaw-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 400px;
  width: 100%;
  max-width: 600px;
  gap: 2px;
  margin: 0 auto 20px auto;
}
.jigsaw-piece {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.2s, transform 0.2s;
  background-position: center;
}
.jigsaw-piece:hover {
  filter: brightness(1.2);
}
.jigsaw-piece.selected {
  border: 2px solid var(--accent-color);
  box-shadow: inset 0 0 15px rgba(102, 252, 241, 0.8);
  transform: scale(0.98);
  z-index: 10;
}

.jigsaw-piece.dragging {
  opacity: 0.5;
  border: 2px dashed var(--accent-color);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 100;
}
.jigsaw-piece.drag-over {
  border: 2px solid var(--primary-glow);
  filter: brightness(1.3);
}

/* SLIDERS UI */
.sliders-container {
  width: 100%;
  max-width: 400px;
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 0 auto 20px auto;
}
.slider-group {
  margin-bottom: 25px;
  text-align: left;
}
.slider-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffeb3b;
}
.slider-group input[type=range] {
  width: 100%;
  cursor: pointer;
}

/* WEIQI UI */
.weiqi-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 300px;
  height: 300px;
  background: #dbb478; /* wooden color */
  border: 5px solid #8c5c2d;
  margin: 0 auto 20px auto;
  position: relative;
}
.weiqi-cell {
  border-right: 1px solid #4a3018;
  border-bottom: 1px solid #4a3018;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.weiqi-stone {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.weiqi-stone.black {
  background: radial-gradient(circle at 30% 30%, #555, #000);
}
.weiqi-stone.white {
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
}
.pulse {
  animation: pulse-stone 1s infinite alternate;
}
@keyframes pulse-stone {
  0% { box-shadow: 0 0 5px #66fcf1; }
  100% { box-shadow: 0 0 20px #66fcf1; }
}

/* PIPES UI */
.pipes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--accent-color);
  margin: 0 auto 20px auto;
}
.pipe-cell {
  border: 1px dashed rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}
/* Representing river pipes using pseudo elements */
.pipe-cell::before {
  content: '';
  position: absolute;
  background: #66fcf1;
  box-shadow: 0 0 10px #66fcf1;
}
.pipe-cell.straight::before {
  top: 50%; left: 0; right: 0;
  height: 14px;
  margin-top: -7px;
}
.pipe-cell.curve::before {
  top: 50%; left: 50%; bottom: 0; right: 0;
  width: 14px; height: 14px;
  border: 14px solid #66fcf1;
  border-top-left-radius: 20px;
  border-bottom: 0; border-right: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(-2px -2px 5px #66fcf1);
  margin-top: -14px; margin-left: -14px;
}

/* EMOTION BRIDGE UI */
.emotion-bridge-container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px auto;
}
.bridge-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bridge-phrase.dismissive {
  background: rgba(180, 40, 40, 0.2);
  border: 2px solid rgba(255, 80, 80, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
  min-height: 80px;
}
.bridge-phrase.dismissive .phrase-label {
  font-size: 1rem;
}
.bridge-phrase.dismissive .phrase-text {
  font-size: 0.85rem;
  color: #ff9999;
  font-style: italic;
  line-height: 1.4;
}
.bridge-slot {
  min-height: 30px;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.bridge-slot.slot-filled {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(127, 194, 66, 0.1);
  font-weight: 600;
}
.bridge-response {
  background: rgba(40, 120, 60, 0.25);
  border: 2px solid rgba(127, 194, 66, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  user-select: none;
}
.bridge-response:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(127, 194, 66, 0.3);
  border-color: var(--accent-color);
}
.bridge-response .phrase-label {
  font-size: 1rem;
  flex-shrink: 0;
}
.bridge-response .phrase-text {
  font-size: 0.85rem;
  color: #a8e6a0;
  line-height: 1.4;
}
.bridge-response.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  border-style: dashed;
}
.bridge-phrase.bridge-hover {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.1);
  box-shadow: 0 0 15px rgba(255, 235, 59, 0.2);
}
.bridge-phrase.bridge-matched {
  border-color: var(--accent-color);
  background: rgba(127, 194, 66, 0.15);
  box-shadow: 0 0 20px rgba(127, 194, 66, 0.3);
}
.bridge-phrase.bridge-matched .phrase-text {
  color: var(--accent-color);
}
.bridge-wrong {
  animation: bridgeShake 0.4s ease;
  border-color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.2) !important;
}
@keyframes bridgeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ACT 3 UI */
.mirror-container {
  background: rgba(0,0,0,0.6);
  border: 4px solid var(--accent-color);
  padding: 40px;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.4);
}
.mirror-text {
  font-size: 4rem;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 10px;
  transition: transform 1s ease-in-out, color 1s ease-in-out;
}
.action-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 16px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 4px;
}
.action-btn:hover {
  background: var(--accent-color);
  color: #000;
}

.bells-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
.bell {
  width: 80px;
  height: 100px;
  background: linear-gradient(to bottom, #d4af37, #8a6a1c);
  border-radius: 40px 40px 10px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 2rem;
  padding-bottom: 15px;
  position: relative;
  color: #fff;
  box-shadow: inset 0 -10px 10px rgba(0,0,0,0.5);
}
.bell.dissonant {
  animation: shake 0.2s infinite alternate;
  filter: sepia(1) hue-rotate(300deg);
}
@keyframes shake {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}
.wave {
  position: absolute;
  bottom: -40px;
  width: 100%;
  height: 20px;
}
.jagged {
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, red 5px, red 10px);
}
.smooth {
  background: transparent;
  border-top: 4px solid #66fcf1;
  border-radius: 50%;
  animation: ripple 1s infinite linear;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.carts-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
}
.worker-avatar {
  width: 120px;
  height: 150px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  transition: all 0.3s;
}
.worker-avatar.drag-over {
  border-color: #ffeb3b;
  background: rgba(255,235,59,0.2);
}
.heavy-load {
  width: 100%;
  height: 60px;
  background: radial-gradient(circle, #555, #222);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: red;
  font-weight: bold;
  cursor: grab;
  box-shadow: 0 10px 10px rgba(0,0,0,0.8);
}
.crushed {
  border-color: red;
}

.sysco-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  z-index: 2000;
  opacity: 0.9;
  transition: all 0.3s ease;
}
.sysco-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Progress Bar UI */
.progress-bar-container {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  overflow-x: auto;
  box-sizing: border-box;
}
.act-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.act-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.act-nodes {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}
.act-divider {
  width: 2px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 4px 0 4px;
  border-radius: 1px;
  flex-shrink: 0;
}
.node-connector {
  height: 2px;
  flex: 1;
  min-width: 6px;
  max-width: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  transition: background 0.3s ease;
}
.node-connector.completed {
  background: var(--accent-color);
  box-shadow: 0 0 4px rgba(127, 194, 66, 0.3);
}
.progress-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  cursor: default;
  position: relative;
}
.node-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all 0.3s ease;
}
.progress-node.completed .node-icon {
  background: var(--accent-color);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(127, 194, 66, 0.4);
}
.progress-node-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.progress-node-link:hover {
  transform: scale(1.15);
}
.progress-node-link:hover .node-icon {
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.6);
}
.progress-node.current .node-icon {
  background: #ffeb3b;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
  animation: pulseNode 1.5s infinite;
}
.progress-node.locked .node-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.node-city {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.progress-node.completed .node-city {
  color: var(--accent-color);
}
.progress-node.current .node-city {
  color: #ffeb3b;
  font-weight: 600;
}
@keyframes pulseNode {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 235, 59, 0.3); }
  50% { box-shadow: 0 0 14px rgba(255, 235, 59, 0.7); }
}
@media (max-width: 700px) {
  .progress-bar-container {
    gap: 0;
    padding: 6px 4px;
  }
  .node-city {
    display: none;
  }
  .act-divider {
    margin: 8px 2px 0 2px;
  }
}
}

/* FLOATING BUBBLES UI FOR STAGING */
.bubbles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.team-bubble-wrapper {
    position: fixed;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 200px;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s;
}

.team-avatar img {
    width: 80%;
    height: 80%;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(127, 194, 66, 0.5); }
    50% { box-shadow: 0 0 25px rgba(127, 194, 66, 0.9); }
    100% { box-shadow: 0 0 10px rgba(127, 194, 66, 0.5); }
}

.current-team .team-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(127, 194, 66, 0.5);
    animation: pulse-glow 2s infinite ease-in-out;
}

.team-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    min-width: 150px;
    transition: all 0.4s;
}

.team-info h4 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

.team-info span {
    display: block;
}

.team-bubble-wrapper:hover {
    transform: scale(1.15) translateY(-10px);
    z-index: 10 !important;
}

.team-bubble-wrapper:hover .team-avatar {
    background: radial-gradient(circle at 30% 30%, rgba(102, 252, 241, 0.3), rgba(0, 0, 0, 0.7));
    border-color: #66fcf1;
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.5);
}

.bubble-status {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-style: italic;
    margin-top: 4px;
}

.bubble-time {
    font-size: 1rem;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.5);
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}


/* Astrolabe Puzzle */
.astrolabe-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a, #111);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(0,0,0,0.8);
    border: 5px solid #d4af37;
}
.astrolabe-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.7);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.astrolabe-ring:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.ring-outer { width: 220px; height: 220px; z-index: 1; }
.ring-middle { width: 150px; height: 150px; z-index: 2; background: rgba(0,0,0,0.4); }
.ring-inner { width: 80px; height: 80px; z-index: 3; background: rgba(212, 175, 55, 0.2); border: 2px solid #d4af37; }
.astrolabe-marker {
    position: absolute;
    top: -10px;
    width: 20px; height: 20px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
}
.ring-outer .astrolabe-marker { background: #ff4444; }
.ring-middle .astrolabe-marker { background: #44ff44; }
.ring-inner .astrolabe-marker { background: #4444ff; }

/* Persian Loom Puzzle */
.loom-container {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    grid-gap: 5px;
    justify-content: center;
    margin: 20px auto;
    padding: 10px;
    background: #222;
    border: 8px solid #5c3a21;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.loom-cell {
    width: 50px;
    height: 50px;
    background: #444;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    transition: background 0.3s;
}
.loom-cell:hover { opacity: 0.8; }
.loom-color-empty { background: #444; }
.loom-color-red { background: #b22222; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.loom-color-blue { background: #0047ab; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.loom-color-gold { background: #d4af37; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }


/* STAR CHART PUZZLE */
.star-chart-container {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, #1a2a6c, #112 80%);
    border: 3px solid #d4af37;
    border-radius: 10px;
    position: relative;
    margin: 0 auto 20px auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px white;
    transition: all 0.3s;
}
.star.dim {
    width: 12px;
    height: 12px;
    background: #bbb;
    box-shadow: 0 0 5px #bbb;
}
.star.bright {
    width: 20px;
    height: 20px;
    background: #fff;
    box-shadow: 0 0 15px #fff;
}
.star:hover {
    transform: scale(1.2);
}
.star.selected {
    background: #d4af37;
    box-shadow: 0 0 20px #d4af37;
}

/* DRAGON BOAT PUZZLE */
.dragon-boat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    border-bottom: 5px solid #1a5276;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.drum-beat {
    font-size: 60px;
    margin-bottom: 10px;
    text-shadow: 0 5px 10px rgba(0,0,0,0.8);
}
.rowers-row {
    display: flex;
    gap: 20px;
}
.rower-paddle {
    font-size: 50px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, filter 0.2s;
    text-shadow: 0 5px 10px rgba(0,0,0,0.8);
    user-select: none;
}
.rower-paddle:hover {
    filter: drop-shadow(0 0 10px #d4af37);
}

.paddle-wrapper {
    position: relative;
    width: 80px;
    height: 120px;
    cursor: pointer;
}
.paddle-stick {
    position: absolute;
    top: 0px;
    left: 35px;
    width: 10px;
    height: 100px;
    background: #8b4513;
    border-radius: 5px;
    transform-origin: top center;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.5);
    z-index: 2;
}
.paddle-stick::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 20px;
    height: 30px;
    background: #a0522d;
    border-radius: 5px 5px 10px 10px;
}
.water-line {
    position: absolute;
    bottom: 10px;
    left: -10px;
    width: 100px;
    height: 30px;
    background: rgba(0, 150, 255, 0.4);
    border-top: 2px solid rgba(255,255,255,0.6);
    border-radius: 5px;
    z-index: 3;
}
.paddle-synced .paddle-stick {
    background: #d4af37;
    box-shadow: 0 0 15px #d4af37;
}

