.chaos-game-card {
  box-sizing: border-box;
  color: #f8fafc;
  background: #17231df2;
  border: 1px solid var(--event-accent, #d4ad32);
  border-radius: 8px;
  padding: 6px 8px;
  font: 11px/1.35 system-ui, sans-serif;
  text-align: left;
}
.chaos-game-card {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 24px));
  z-index: 100;
  pointer-events: none;
}
.chaos-game-card[hidden] { display: none; }
.chaos-panel-compact > p, .chaos-panel-compact > small, .chaos-panel-compact > .chaos-card-details,
.chaos-panel-compact > .chaos-highlight, .chaos-panel-compact > .chaos-vote-link { display: none; }
.chaos-panel-compact .chaos-details-toggle { display: none; }
.chaos-panel-toolbar { position: fixed; z-index: 11020; display: flex; gap: 3px; height: 28px; padding: 2px; box-sizing: border-box; background: #17231ded; border-radius: 4px; }
.chaos-panel-toolbar[hidden], .chaos-panel-reopen[hidden] { display: none; }
.chaos-panel-tool { width: 24px; height: 24px; border: 0; border-radius: 4px; padding: 0; color: #e7eee9; background: #314637; cursor: pointer; }
.chaos-panel-grip { touch-action: none; cursor: move; }
.chaos-panel-reopen { position: fixed; left: 12px; top: 154px; z-index: 11020; }
.festival-round-intro { font-size: 28px; line-height: 1.25; text-align: center; color: var(--event-accent); text-shadow: 0 1px 3px #111; }
.festival-round-intro .festival-round-kicker { display: block; font-size: 18px; margin-bottom: 3px; }
.festival-round-intro .festival-round-subtitle { display: block; color: #fff; font-size: 20px; margin-top: 5px; }
.chaos-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
.chaos-details-toggle { width: 24px; height: 24px; flex: 0 0 24px; border: 0; border-radius: 4px; color: #fde68a; background: #314637; cursor: pointer; pointer-events: auto; }
.chaos-card-details[hidden] { display: none; }
.chaos-game-card[data-expanded="true"] { z-index: 11010; pointer-events: auto; }
.chaos-game-card p { margin: 5px 0; }
.chaos-game-card small { display: block; color: #d1ddd5; }
.chaos-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.chaos-stage { min-height: 30px; box-sizing: border-box; font-size: 11px; padding: 5px 3px; border-radius: 5px; background: #2d3c31; text-align: center; overflow-wrap: anywhere; }
.chaos-stage-active { background: #e7c449; color: #18251b; font-weight: 700; }
.chaos-vote-link { display: inline-block; color: #fde68a; margin-top: 6px; pointer-events: auto; }
.chaos-vote-link:hover, .chaos-vote-link:focus-visible { color: #fff; }
.chaos-highlight { margin-top: 5px; color: #fde68a; font-weight: 600; }
.chaos-rewards-button { margin: 5px 8px 0 0; color: #fde68a; background: transparent; border: 1px solid #8c7738; border-radius: 4px; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .chaos-game-card { top: auto; bottom: calc(125px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100vw - 16px)); font-size: 11px; padding: 6px 8px; }
  .chaos-stage { padding: 3px 1px; font-size: 10px; }
}
