/* Shared by the host controls, participant cues and in-party game screens. */
:where(html:has([data-content-theme="game"],[data-content-theme="control"],[data-content-theme="mission"],[data-content-theme="projector"])),
[data-content-theme] {
  --cue-paper: #f2eee4;
  --cue-muted: #c6c2b9;
  --cue-surface: #292929;
  --cue-edge: #bdb9af;
  --primary: 43 25% 88%;
  --primary-foreground: 0 0% 10%;
  --background: 0 0% 6%;
  --card: 0 0% 10%;
  --foreground: 43 25% 91%;
  --card-foreground: var(--foreground);
  --popover: 0 0% 11%;
  --popover-foreground: var(--foreground);
  --border: 0 0% 28%;
  --input: var(--border);
  --muted: 0 0% 17%;
  --muted-foreground: 40 6% 73%;
  --accent: 0 0% 20%;
  --accent-foreground: 43 25% 90%;
  --secondary: 0 0% 20%;
  --secondary-foreground: 43 25% 90%;
  --destructive: 0 0% 27%;
  --destructive-foreground: 43 25% 90%;
  --ring: 43 25% 84%;
}
[data-content-theme] :is(.text-glow,.text-glow-cyan,.festival-glow,.festival-glow-cyan) {box-shadow:none !important;text-shadow:none !important}
[data-content-theme] :is(.gradient-text,.gradient-text-warm) {background:none;color:var(--cue-paper);-webkit-text-fill-color:currentColor}
[data-content-theme] .animated-gradient {background:var(--cue-surface);animation:none}
[data-content-theme="game"] .rounded-full[style*="rgb(232, 201, 138)"] {
  color:var(--cue-paper) !important;border-color:#5b5953 !important;background-color:var(--cue-surface) !important;
}
[data-content-theme] :is([style*="box-shadow"],[style*="text-shadow"],[class*="shadow-"]) {
  box-shadow:none !important; text-shadow:none !important;
}
[data-content-theme] :is([style*="drop-shadow"],[class*="drop-shadow"]) {filter:none !important}
[data-content-theme] :is(.blur-3xl,.blur-2xl,.animate-ping)[class*="absolute"] {display:none}
[data-content-theme] :is(.bg-clip-text,[style*="background-clip: text"]) {
  background-image:none !important;color:var(--cue-paper) !important;-webkit-text-fill-color:var(--cue-paper);
}
[data-content-theme] :is([class*="text-purple-"],[class*="text-red-"],[class*="text-yellow-"],
  [class*="text-pink-"],[class*="text-cyan-"],[class*="text-orange-"],[class*="text-emerald-"],
  [class*="text-amber-"],[class*="text-green-"],[class*="text-violet-"]) {color:var(--cue-paper)}
[data-content-theme] :is(.fill-yellow-300,.fill-pink-300,.fill-cyan-300) {fill:currentColor}
[data-content-theme] :is([class*="from-purple-"],[class*="from-orange-"],[class*="from-yellow-"],
  [class*="from-cyan-"],[class*="from-pink-"]):not(.bg-clip-text) {
  background-image:none;background-color:var(--cue-surface);color:var(--cue-paper);
}
[data-content-theme] :is(button,a,input,select,textarea,[tabindex]):focus-visible {
  outline:2px solid var(--cue-paper);outline-offset:3px;
}
[data-content-theme="control"] .admin-glass {
  background:#161617;border:1px solid #444442;box-shadow:none;
}
[data-content-theme="control"] [data-cue-active] {
  border:2px solid var(--cue-paper) !important;background:#222222;
}
[data-content-theme="control"] .cue-live {
  display:inline-flex;align-items:center;border-radius:4px;padding:2px 6px;
  background:var(--cue-paper);color:#181818;font-weight:700;font-size:11px;
}
[data-content-theme="control"] .admin-glass :is(h2,h3) {color:var(--cue-paper) !important}
[data-content-theme="control"] .admin-glass p {color:var(--cue-muted) !important}
[data-content-theme="control"] .cue-icon {
  background:var(--cue-surface) !important;border:1px solid #5d5b55;color:var(--cue-paper);
}
[data-content-theme="control"] [role="switch"]:not(.cue-banner-switch)[aria-checked="true"] {
  background:#79776e !important;border:1px solid var(--cue-paper) !important;
}
[data-content-theme="control"] .cue-banner-switch {
  display:inline-flex;align-items:center;align-self:flex-start;flex-shrink:0;gap:6px;min-height:42px;
  padding:0 2px;background:transparent !important;border:0 !important;color:var(--cue-muted);
  font-size:11px;font-weight:600;
}
.cue-banner-switch .cue-switch-track {
  display:inline-flex;align-items:center;box-sizing:border-box;width:38px;height:23px;padding:2px;
  border:1px solid #77756e;border-radius:20px;background:#272727;
}
.cue-switch-track > span {width:17px;height:17px;border-radius:50%;background:#c0bdb4}
.cue-banner-switch[aria-checked="true"] .cue-switch-track {background:#e8e4d9;border-color:#e8e4d9}
.cue-banner-switch[aria-checked="true"] .cue-switch-track > span {background:#282827;transform:translateX(15px)}
[data-content-theme="control"] button:not([role="switch"]):not(:disabled)[style*="background: var(--cue-surface)"] {
  background:var(--cue-surface) !important;color:var(--cue-paper) !important;border:1px solid #66645d;
}
[data-content-theme="control"] button:disabled {opacity:.48}
[data-content-theme="game"] :is(button[aria-pressed="true"],[role="option"][aria-selected="true"]) {
  outline:2px solid var(--cue-paper);outline-offset:1px;
}
[data-content-theme="control"] .bg-pink-500 {background-color:var(--cue-paper)}
[data-content-theme="projector"] img[src="/media/projector.png"] {filter:grayscale(1) !important}
.content-intro {
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:auto;
  padding:24px;background:rgba(10,10,10,.91);color:var(--cue-paper);
}
.content-intro .intro-card {
  position:relative;width:min(100%,27rem);margin:auto;padding:clamp(24px,6vw,40px);
  background:#19191a;border:1px solid #585751;border-radius:18px;text-align:left;
}
.intro-mark {display:grid;place-items:center;width:58px;height:58px;border:1px solid #68665d;border-radius:12px}
.intro-mark svg {width:30px;height:30px}
.intro-subtitle {margin:24px 0 7px;color:var(--cue-muted);font-size:12px;font-weight:600;letter-spacing:.08em}
.content-intro h1 {font-size:clamp(23px,5vw,30px);font-weight:700;line-height:1.28;word-break:keep-all}
.intro-description {margin:13px 0 26px;white-space:pre-line;line-height:1.65;color:var(--cue-muted)}
.intro-close {position:absolute;top:8px;right:8px;width:44px;height:44px;font-size:26px;line-height:1}
.intro-start {width:100%;min-height:48px;border-radius:8px;background:var(--cue-paper);color:#171717;font-weight:700}
@media (prefers-reduced-motion:no-preference) {
  .intro-card {animation:content-arrive .22s ease-out}
  @keyframes content-arrive {from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
