/* ── GAME MODULE STYLING ── */

/* Game Center Portal */
.game-portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 24px 100px;
  min-height: 80vh;
}

.game-portal-header {
  text-align: center;
  margin-bottom: 60px;
}

.game-portal-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.2;
}

.game-portal-title em {
  font-style: italic;
  color: var(--gold);
}

.game-portal-desc {
  font-size: 15px;
  color: rgba(247, 242, 232, 0.6);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.game-card {
  background: rgba(13, 26, 18, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.game-card.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.game-card:not(.disabled):hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.15);
}

.game-card-visual {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #0d1a12;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.game-card:not(.disabled):hover .game-card-img {
  transform: scale(1.06);
}

.game-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  z-index: 5;
}

.game-card-badge.active {
  background: var(--gold);
  color: var(--ink);
}

.game-card-badge.upcoming {
  background: rgba(247, 242, 232, 0.1);
  color: rgba(247, 242, 232, 0.5);
  border: 1px solid rgba(247, 242, 232, 0.15);
}

.game-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-title {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ivory);
  margin-bottom: 12px;
  font-weight: 400;
  transition: color 0.3s;
}

.game-card:not(.disabled):hover .game-card-title {
  color: var(--gold);
}

.game-card-desc {
  font-size: 13px;
  color: rgba(247, 242, 232, 0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.game-card-btn {
  margin-top: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.game-card:not(.disabled):hover .game-card-btn {
  gap: 12px;
}


/* ── GAME PLAY TEMPLATE ── */
.game-play-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.game-box {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 9/14;
  background: rgba(13, 26, 18, 0.9);
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #09130e 0%, #0d1a12 100%);
}

/* Overlays on Canvas */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 26, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  text-align: center;
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

.game-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-overlay-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.2;
}

.game-overlay-desc {
  font-size: 13px;
  color: rgba(247, 242, 232, 0.6);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 320px;
}

.game-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

/* Instruction Rules List */
.game-rules-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  font-size: 12px;
  color: rgba(247, 242, 232, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-rules-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-rules-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.game-rules-list li.negative::before {
  content: '✗';
  color: var(--rust);
}

/* Form Styles inside Overlay */
.game-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.game-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(247, 242, 232, 0.5);
  font-weight: 500;
}

.game-form-input {
  background: rgba(13, 26, 18, 0.6);
  border: 1.5px solid rgba(201, 168, 76, 0.2);
  padding: 12px 16px;
  color: var(--ivory);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  border-radius: 0;
  transition: border-color 0.3s;
}

.game-form-input:focus {
  border-color: var(--gold);
}

.game-form-btn {
  margin-top: 8px;
}

/* Voucher Code Styling */
.voucher-display-box {
  background: rgba(201, 168, 76, 0.05);
  border: 1px dashed var(--gold);
  padding: 16px 24px;
  margin: 20px 0;
  width: 100%;
  max-width: 300px;
}

.voucher-code-text {
  font-family: monospace;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: bold;
}

.voucher-notes {
  font-size: 11px;
  color: rgba(247, 242, 232, 0.45);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.error-message {
  color: var(--rust);
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
  font-weight: 500;
}

/* ── LUCKY WHEEL STYLES ── */
.game-wheel-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.wheel-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Responsive diameter variables for 12 bulbs mapping */
.wheel-outer-ring {
  --ring-radius: min(160px, 42vw);
  width: calc(var(--ring-radius) * 2);
  height: calc(var(--ring-radius) * 2);
  border-radius: 50%;
  border: 12px solid #5a3c22; /* Rustic dark wood tone representing Mẹt tre outer ring */
  position: relative;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.65), 
    inset 0 0 0 3px var(--gold), 
    inset 0 0 25px rgba(0,0,0,0.85),
    0 0 0 2px rgba(201, 168, 76, 0.35);
  background: var(--ink);
  z-index: 5;
  transition: transform 0.3s ease;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: 0% 100%;
  transform: rotate(calc(45deg * var(--i))) skewY(-45deg);
  background: var(--bg);
  border-left: 1px solid rgba(201, 168, 76, 0.22);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  overflow: hidden;
}

.wheel-segment-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  margin-bottom: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: skewY(45deg) rotate(22.5deg) translateY(calc(var(--ring-radius) * -0.65));
}

.prize-title {
  font-size: clamp(9px, 2vw, 12px);
  font-weight: 700;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1.5px 3px rgba(0,0,0,0.85);
}

.prize-icon {
  font-size: clamp(28px, 6vw, 40px);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  margin-top: 4px;
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 36px;
  background: var(--gold);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 15;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,0.5));
}

.wheel-pointer::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--rust);
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.wheel-spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 6px 15px rgba(0,0,0,0.65), 0 0 0 2px var(--gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.wheel-spin-button:hover {
  background: var(--ivory);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35), 0 0 0 2px var(--ivory);
}

.wheel-spin-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Bulbs assembly around the rim */
.wheel-bulbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--ring-radius) + 6px));
}

.bulb:nth-child(odd) {
  background: #FFD54F;
  box-shadow: 0 0 6px #FFD54F, 0 0 12px #FFB300;
  animation: bulbGlowOdd 1.6s infinite alternate ease-in-out;
}

.bulb:nth-child(even) {
  background: #FFF9C4;
  box-shadow: 0 0 3px #FFF9C4, 0 0 6px rgba(255,213,79,0.3);
  animation: bulbGlowEven 1.6s infinite alternate ease-in-out;
}

@keyframes bulbGlowOdd {
  0% { background: #FFD54F; box-shadow: 0 0 6px #FFD54F, 0 0 12px #FFB300; }
  100% { background: #3d2716; box-shadow: none; }
}

@keyframes bulbGlowEven {
  0% { background: #3d2716; box-shadow: none; }
  100% { background: #FFF9C4; box-shadow: 0 0 6px #FFF9C4, 0 0 12px #FFB300; }
}

/* Faster blinking when spinning */
.wheel-outer-ring.is-spinning .bulb:nth-child(odd) {
  animation: bulbGlowOdd 0.15s infinite alternate linear;
}

.wheel-outer-ring.is-spinning .bulb:nth-child(even) {
  animation: bulbGlowEven 0.15s infinite alternate linear;
}

/* Right Content Column Card */
.content-column {
  width: 100%;
  max-width: 500px;
}

.game-panel-card {
  background: rgba(13, 26, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(201, 168, 76, 0.18);
  padding: 32px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  width: 100%;
  box-sizing: border-box;
}

.game-panel-section {
  display: none;
}

.game-panel-section.active {
  display: block;
  animation: panelFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-panel-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.game-panel-desc {
  font-size: 13.5px;
  color: rgba(247, 242, 232, 0.7);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Indicators during spin */
.wheel-spinning-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.wheel-spinning-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
  animation: spinDot 1.2s infinite alternate ease-in-out;
}

.wheel-spinning-indicator .dot:nth-child(2) {
  animation-delay: 0.4s;
}

.wheel-spinning-indicator .dot:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes spinDot {
  0% { transform: scale(0.6); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--gold); }
}

/* Responsive overrides */
@media (min-width: 1024px) {
  .game-wheel-page-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    padding: 180px 24px 100px;
    align-items: center;
  }
  
  .wheel-outer-ring {
    --ring-radius: 210px; /* Large wheel diameter is 420px */
    border-width: 14px;
  }

  .prize-title {
    font-size: 10.5px;
    letter-spacing: .09em;
  }
  
  .prize-icon {
    font-size: 22px;
  }
  
  .wheel-pointer {
    top: -24px;
    width: 32px;
    height: 44px;
  }
  
  .wheel-spin-button {
    width: 76px;
    height: 76px;
    font-size: 13px;
  }
  
  .bulb {
    width: 10px;
    height: 10px;
  }

  .game-panel-card {
    padding: 40px;
  }
}

@media (min-width: 1300px) {
  .game-wheel-page-wrapper {
    gap: 80px;
  }
  
  .wheel-outer-ring {
    --ring-radius: 230px; /* Diameter 460px */
  }

  .prize-title {
    font-size: 11px;
  }
  
  .prize-icon {
    font-size: 24px;
  }
}


/* ── GAME STOVE MODULE STYLING ── */

.game-stove-page-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 24px 100px;
  min-height: 80vh;
}

@media (min-width: 1024px) {
  .game-stove-page-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

/* Left Column Container */
.stove-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.stove-assembly-container {
  width: 100%;
  max-width: 480px;
  background: rgba(13, 26, 18, 0.7);
  border: 1.5px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Conveyor Belt */
.stove-conveyor-wrapper {
  background: rgba(9, 18, 13, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.conveyor-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.8;
}

.stove-conveyor-belt {
  height: 84px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid rgba(201, 168, 76, 0.25);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.conveyor-item {
  position: absolute;
  top: 8px;
  height: 68px;
  width: 68px;
  background: linear-gradient(135deg, rgba(30, 48, 36, 0.9) 0%, rgba(13, 26, 18, 0.95) 100%);
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.conveyor-item:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
  transform: scale(1.05);
}

.conveyor-item-icon {
  font-size: 26px;
  line-height: 1;
}

.conveyor-item-name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ivory);
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.8;
}

/* Clay Pot & Stove Section */
.cooking-pot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 230px;
  justify-content: flex-end;
}

.steam-container {
  position: absolute;
  top: 0px;
  width: 120px;
  height: 80px;
  pointer-events: none;
  z-index: 4;
}

.steam-particle {
  position: absolute;
  bottom: 0;
  font-size: 24px;
  color: rgba(247, 242, 232, 0.4);
  filter: blur(2px);
  animation: steamRise 2s ease-out forwards;
}

@keyframes steamRise {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-80px) scale(1.5) rotate(30deg);
    opacity: 0;
  }
}

.clay-pot-wrapper {
  position: relative;
  z-index: 3;
  transition: transform 0.1s ease;
}

.clay-pot-wrapper.boiling {
  animation: potVibrate 0.15s ease-in-out infinite;
}

@keyframes potVibrate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-1.5px) rotate(-0.5deg); }
  75% { transform: translateY(1px) rotate(0.5deg); }
}

.pot-symbol {
  font-size: 110px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
}

.pot-bubble-overlay {
  position: absolute;
  top: 35px;
  left: 20px;
  right: 20px;
  bottom: 35px;
  pointer-events: none;
}

.brick-stove {
  width: 150px;
  height: 90px;
  background: linear-gradient(to bottom, #1d1815 0%, #120e0d 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: 1.5px solid rgba(201, 168, 76, 0.15);
  border-bottom: none;
  position: relative;
  margin-top: -15px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.stove-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 55px;
  background: #090606;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  overflow: hidden;
}

.stove-fire {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fire-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom, rgba(230, 92, 23, 0.8) 0%, rgba(201, 168, 76, 0.1) 70%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.fire-flame {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 30px solid #e65c17;
  border-radius: 50% 50% 0 0;
  position: absolute;
  bottom: -5px;
  transform-origin: bottom center;
  animation: flameWiggle 0.6s ease-in-out infinite alternate;
  filter: blur(1px);
}

.flame-1 {
  border-bottom-color: #ff9900;
  border-bottom-width: 38px;
  border-left-width: 14px;
  border-right-width: 14px;
  animation-duration: 0.5s;
  animation-delay: -0.1s;
}

.flame-2 {
  border-bottom-color: #ff3300;
  border-bottom-width: 25px;
  border-left-width: 10px;
  border-right-width: 10px;
  left: 15px;
  animation-duration: 0.7s;
  animation-delay: -0.3s;
}

.flame-3 {
  border-bottom-color: #ffcc00;
  border-bottom-width: 22px;
  border-left-width: 8px;
  border-right-width: 8px;
  right: 15px;
  animation-duration: 0.4s;
  animation-delay: -0.2s;
}

@keyframes flameWiggle {
  0% {
    transform: scale(0.9) rotate(-3deg);
  }
  100% {
    transform: scale(1.1) rotate(3deg);
  }
}

.wood-logs {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.log {
  width: 45px;
  height: 8px;
  background: #331a00;
  border-radius: 4px;
  border: 1px solid #1a0d00;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.1);
}

.log-1 { transform: rotate(8deg); }
.log-2 { transform: rotate(-8deg); }

/* Temperature Gauge Meter */
.stove-meter-section {
  background: rgba(9, 18, 13, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.temp-gauge-wrapper {
  width: 100%;
  max-width: 200px;
  text-align: center;
  position: relative;
}

.temp-gauge-svg {
  width: 100%;
  height: auto;
}

.gauge-needle {
  transform-origin: 100px 110px;
}

.temp-value-display {
  font-family: var(--display);
  font-size: 32px;
  color: var(--ivory);
  margin-top: -30px;
  position: relative;
  font-weight: 300;
}

.temp-unit {
  font-size: 16px;
  color: var(--gold);
  margin-left: 2px;
  font-family: var(--body);
}

.temp-status-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.5);
  margin-top: 6px;
}

.temp-status-text.perfect {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

.temp-status-text.hot {
  color: #ff3300;
}

.temp-status-text.cold {
  color: #33ccff;
}

/* Stoke Fire Button */
.stove-action-wrapper {
  display: flex;
  justify-content: center;
}

.stove-stoke-btn {
  background: linear-gradient(135deg, #b8860b 0%, #8b6508 100%);
  border: 1.5px solid var(--gold);
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stove-stoke-btn:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(201, 168, 76, 0.35);
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.stove-stoke-btn:not(:disabled):active {
  transform: translateY(-1px);
}

.stove-stoke-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(247, 242, 232, 0.15);
  background: rgba(247, 242, 232, 0.05);
  color: rgba(247, 242, 232, 0.3);
}

.stove-stoke-btn .btn-icon {
  font-size: 16px;
  animation: pulseFire 0.8s ease-in-out infinite alternate;
}

@keyframes pulseFire {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.2); }
}

/* Recipe Request Card */
.recipe-request-card {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 18px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.recipe-request-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.request-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 6px;
  opacity: 0.8;
}

.request-content {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

/* Cooking Progress */
.cooking-progress-wrapper {
  margin: 20px 0;
}

.progress-label {
  font-size: 11px;
  color: rgba(247, 242, 232, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(247, 242, 232, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 232, 0.05);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #b8860b, #d4af37);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

.game-tip-text {
  font-size: 11px;
  color: rgba(247, 242, 232, 0.45);
  line-height: 1.6;
  text-align: center;
  margin-top: 16px;
}


/* ── GAME PARTY MODULE STYLING ── */

.game-party-page-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 24px 100px;
  min-height: 80vh;
}

@media (min-width: 1024px) {
  .game-party-page-wrapper {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.party-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.bamboo-draw-container {
  width: 100%;
  max-width: 440px;
  height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 20px;
}

/* 3D Bamboo Tube Cylinder */
.bamboo-tube-wrapper {
  width: 210px;
  height: 310px;
  position: relative;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  transform-origin: bottom center;
  cursor: pointer;
}

.bamboo-tube-wrapper:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.bamboo-tube-wrapper.shaking {
  animation: tubeShake 0.12s infinite alternate;
  pointer-events: none; /* Disable mouse/touch interaction while shaking */
}

.bamboo-tube-wrapper.shaking .decor-stick {
  animation: stickRattle 0.15s infinite alternate;
}

@keyframes tubeShake {
  0% { transform: rotate(-5deg) translateX(-8px); }
  100% { transform: rotate(5deg) translateX(8px); }
}

@keyframes stickRattle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}

/* Decorative Stick Tops peeking out */
.tube-sticks-decor {
  position: absolute;
  top: -85px;
  left: 20px;
  right: 20px;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.decor-stick {
  width: 22px;
  height: 130px;
  background: linear-gradient(to top, #3d2914 0%, #d4af37 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  box-shadow: inset 1.5px 0 3px rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0,0,0,0.5);
  transform-origin: bottom center;
  margin: 0 -3px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12px;
  color: #1c1106;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  letter-spacing: 0.05em;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
}

.decor-stick:nth-child(odd) {
  height: 135px;
  background: linear-gradient(to top, #2e1e0e 0%, #c59b27 100%);
}

.decor-stick.drawn {
  transform: translateY(-160px) rotate(15deg) scale(1.1) !important;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
}

/* Bamboo cylinder styling */
.bamboo-cylinder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a1b0c 0%, #150d06 100%);
  border: 2px.5 solid rgba(201, 168, 76, 0.35);
  border-radius: 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px rgba(0,0,0,0.75), inset 0 2px 12px rgba(255,255,255,0.06);
  overflow: hidden;
}

/* Vertical bamboo texture lines */
.bamboo-cylinder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 10%, 
    rgba(0,0,0,0.4) 12%, 
    transparent 14%, 
    transparent 28%, 
    rgba(0,0,0,0.4) 30%, 
    transparent 32%,
    transparent 68%, 
    rgba(0,0,0,0.4) 70%, 
    transparent 72%, 
    transparent 88%, 
    rgba(0,0,0,0.4) 90%, 
    transparent 92%);
  pointer-events: none;
}

.cylinder-top-rim {
  height: 18px;
  background: linear-gradient(to right, #3d2914, #664624, #3d2914);
  border-bottom: 2px.5 solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Bamboo Raised Node in the center */
.bamboo-joint-node {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -2px;
  right: -2px;
  height: 14px;
  background: linear-gradient(to bottom, #422d17 0%, #664724 50%, #291c0e 100%);
  border-top: 1.5px solid rgba(201, 168, 76, 0.35);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  z-index: 3;
}

.cylinder-band {
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, #d4af37 0%, #b8860b 100%);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  opacity: 0.85;
  z-index: 3;
}

.band-1 { top: 50px; }
.band-2 { bottom: 50px; }

/* Dynamic Detailed Engraved Plate */
.cylinder-engraving-plate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  background: linear-gradient(135deg, rgba(30, 18, 8, 0.96) 0%, rgba(13, 7, 3, 0.98) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 10px 4px;
  box-shadow: inset 0 0 10px rgba(201, 168, 76, 0.35), 0 5px 15px rgba(0,0,0,0.6);
  z-index: 4;
  text-align: center;
}

.plate-border-inner {
  border: 1px dashed rgba(201, 168, 76, 0.4);
  border-radius: 6px;
  padding: 8px 4px;
}

.plate-emblem {
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(201, 168, 76, 0.4));
}

.plate-main-title {
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
}

.plate-sub-title {
  font-size: 9px;
  color: var(--ivory);
  letter-spacing: 0.2em;
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

.bamboo-shadow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7) 0%, transparent 80%);
  z-index: 1;
}

/* Suspense Drawn Stick Card (3D stage) */
.drawn-stick-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.drawn-stick-card {
  width: 100px;
  height: 320px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(120px) scale(0.3) rotate(15deg);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawn-stick-card.active {
  opacity: 1;
  pointer-events: auto;
  animation: stickRise 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes stickRise {
  0% {
    transform: translateY(120px) scale(0.3) rotate(35deg);
  }
  60% {
    transform: translateY(-80px) scale(1.15) rotate(-5deg);
  }
  100% {
    transform: translateY(-90px) scale(1.1) rotate(0deg);
  }
}

.drawn-stick-card.floating {
  animation: floatCard 2.5s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(-90px) scale(1.1) rotate(0deg); }
  100% { transform: translateY(-96px) scale(1.1) rotate(1.5deg); }
}

.stick-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border-radius: 12px;
}

.drawn-stick-card.flipped .stick-card-inner {
  transform: rotateY(180deg);
}

.stick-card-front, .stick-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 2px solid var(--gold);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}

/* Front - Hidden Face */
.stick-card-front {
  background: linear-gradient(135deg, #3d2914 0%, #1c1106 100%);
  color: var(--gold);
  padding: 16px;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.drawn-stick-card.flipped .stick-card-front {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.stick-pattern {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border: 1px dashed rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.stick-text-vertical {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
}

/* Back - Revealed Name */
.stick-card-back {
  background: linear-gradient(135deg, #122116 0%, #06110a 100%);
  color: var(--ivory);
  transform: rotateY(180deg);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

.drawn-stick-card.flipped .stick-card-back {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.reveal-smoke-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(201,168,76,0.15) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.stick-result-title {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  z-index: 2;
}

.stick-result-name {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ivory);
  text-shadow: 0 0 10px rgba(247, 242, 232, 0.4);
  font-weight: 400;
  margin: 16px 0;
  line-height: 1.2;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stick-result-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 8px auto;
  opacity: 0.5;
  z-index: 2;
}

.stick-result-challenge {
  font-size: 10px;
  color: var(--gold);
  line-height: 1.5;
  z-index: 2;
  font-weight: 600;
  padding: 0 4px;
}

/* Result Banner under Tube */
.party-result-banner {
  margin-top: 25px;
  text-align: center;
  background: rgba(13, 26, 18, 0.95);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.25);
  z-index: 10;
  animation: bannerFadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bannerFadeInScale {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-banner-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.result-banner-name {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ivory);
  margin: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-banner-challenge {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Names List under Tube */
.names-under-tube {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 320px;
  z-index: 6;
}

.names-under-tube-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(247, 242, 232, 0.4);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.names-under-tube-tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.names-under-tube-tag {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 4px;
  color: rgba(247, 242, 232, 0.8);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: tagFadeIn 0.3s ease;
}

@keyframes tagFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}

/* Name Input Section */
.party-control-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.name-input-group {
  display: flex;
  gap: 10px;
}

.add-friend-btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.add-friend-btn:hover {
  background: transparent;
  color: var(--gold);
}

.friend-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 40px;
  padding: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  border: 1px solid rgba(247,242,232,0.05);
}

.no-friends-placeholder {
  font-size: 11px;
  color: rgba(247,242,232,0.35);
  font-style: italic;
  align-self: center;
  width: 100%;
  text-align: center;
}

.friend-tag {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  color: var(--ivory);
  font-size: 11px;
  padding: 4px 10px 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.remove-tag-btn {
  border: none;
  background: transparent;
  color: rgba(247,242,232,0.4);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}

.remove-tag-btn:hover {
  color: #ff3300;
}

.draw-stick-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* History Box */
.party-history-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(247, 242, 232, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.history-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(247,242,232,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.history-header:hover {
  color: var(--gold);
}

.history-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-count {
  font-size: 9px;
  color: var(--gold);
  font-weight: normal;
}

.history-toggle-icon {
  font-size: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gold);
}

.history-content-wrapper {
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 1;
  margin-top: 10px;
  border-top: 1px solid rgba(247, 242, 232, 0.08);
  padding-top: 10px;
}

.party-history-section.collapsed .history-content-wrapper {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
}

.party-history-section.collapsed .history-toggle-icon {
  transform: rotate(-90deg);
}

.reset-history-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 6px;
}

.history-body {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.no-history-placeholder {
  font-size: 11px;
  color: rgba(247, 242, 232, 0.3);
  font-style: italic;
  text-align: center;
}

.history-item {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(247, 242, 232, 0.03);
}

.history-item-name {
  font-weight: 600;
  color: var(--gold);
}

.history-item-challenge {
  color: rgba(247, 242, 232, 0.6);
  text-align: right;
}

/* Beer Voucher Promotional Lead Form Widget */
.beer-voucher-promo {
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  transition: all 0.3s;
}

.beer-voucher-promo:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.4);
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-icon {
  font-size: 28px;
  line-height: 1;
}

.promo-text {
  display: flex;
  flex-direction: column;
}

.promo-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 2px;
}

.promo-subtitle {
  font-size: 10px;
  color: rgba(247,242,232,0.6);
  line-height: 1.4;
}

.promo-action-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-top: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.promo-action-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Settings button in the corner */
.open-challenges-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(247, 242, 232, 0.05);
  border: 1px solid rgba(247, 242, 232, 0.1);
  color: var(--gold);
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.open-challenges-modal-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: rotate(45deg);
}

/* Modal Overlay */
.challenges-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.challenges-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.challenges-modal-card {
  width: 90%;
  max-width: 450px;
  background: rgba(13, 26, 18, 0.98);
  border: 1px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.05);
  padding: 20px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.challenges-modal-overlay.active .challenges-modal-card {
  transform: scale(1);
}

.challenges-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(247, 242, 232, 0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.challenges-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0;
}

.close-challenges-modal-btn {
  background: transparent;
  border: none;
  color: rgba(247, 242, 232, 0.5);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.close-challenges-modal-btn:hover {
  color: var(--gold);
}

/* Individual challenge item styling */
.challenge-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 242, 232, 0.03);
  border: 1px solid rgba(247, 242, 232, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
}

.challenge-settings-text {
  font-size: 11px;
  color: rgba(247, 242, 232, 0.85);
  word-break: break-word;
  flex: 1;
  text-align: left;
}

.challenge-settings-weight-badge {
  font-size: 8px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
  white-space: nowrap;
}

.remove-challenge-btn {
  background: transparent;
  border: none;
  color: rgba(247, 242, 232, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.remove-challenge-btn:hover {
  color: #ff3300;
}
