/* Shared Weirdify visual language, adapted to actual Events roles. Reuse approved
   generated artwork; no changes to scoring, inputs, visibility or room state. */
:root {--ink:#351d42;--muted:#665674;--soft:#fffaf4;--line:#ddcce4;--purple:#7950a7;--event-paper:#fbf1e9;--event-lilac:#f0e3fa;--event-gold:#fff0d5;--event-scene:#f0e3fa;--event-scene-line:#d8c5e7;--event-scene-ink:#57367a;}
body[data-role],body[data-role]:not([data-role="host"]) {background:var(--event-paper);color:var(--ink);}
body[data-role] .masthead {border-color:#ddcce4;color:var(--ink);}
body[data-role] .masthead .brand {color:var(--ink);}
body[data-role] .masthead .quiet {background:#fffaf4;color:var(--ink);border:1px solid #d9c6e1;border-radius:999px;}
body[data-role] .panel,body[data-role]:not([data-role="host"]) .panel {background:#fffaf4;color:var(--ink);border:1px solid #e2d3e6;border-radius:25px;box-shadow:0 6px 18px #5434510c;}
body[data-role] .v3-home,body[data-role]:not([data-role="host"]) .v3-home {background:#f0e3fa;color:var(--ink);border-color:#d8c5e7;}
body[data-role]:not([data-role="host"]) .v3-home>p {color:var(--muted);}
body[data-role] .panel h1,body[data-role] .show-round h1 {font-family:Manrope,"Noto Sans Hebrew",system-ui,sans-serif;font-weight:850;letter-spacing:-.035em;}
body[data-role] :is(button,.button):not(.quiet):not(.choice) {background:#7446a0;color:#fff;border:1px solid #966dbb;border-radius:16px;box-shadow:0 3px 6px #54345114;}
body[data-role] :is(button,.button).quiet {background:#fffaf4;color:var(--ink);border:1px solid #d8c6e0;border-radius:14px;box-shadow:none;}
body[data-role] :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) {background:#fffdf9;color:var(--ink);border:1px solid #cbb8d9;border-radius:12px;}
body[data-role] :is(button,.button,input,select,textarea,label):focus-visible {outline:3px solid #8051ac;outline-offset:3px;}
body[data-role] .choice {background:#f4e8fc;color:var(--ink);border:1px solid #d7c3e3;border-radius:18px;box-shadow:0 3px 6px #5434510b;min-height:54px;}
body[data-role] .choice:hover {background:#ead7f9;transform:none;box-shadow:0 3px 6px #54345114;}
body[data-role] .v3-votes {min-width:0;background:#f5e9fc;border:1px solid #dfcee9;border-radius:19px;padding:12px;}
body[data-role] .v3-votes+ .v3-votes {background:#fff0d5;border-color:#ead5ad;}
body[data-role] .v3-options label,body[data-role] .v3-switch-decision label,body[data-role] .crowd-answer {background:#fffaf5;border:1px solid #d7c4df;border-radius:16px;box-shadow:none;min-width:0;min-height:48px;padding:10px 12px;}
body[data-role] .v3-options label:has(:checked),body[data-role] .v3-switch-decision label:has(:checked),body[data-role] .crowd-answer:has(:checked) {background:#e9d6fa;border:2px solid #8051ac;box-shadow:0 3px 0 #8051ac;}
body[data-role] .v3-votes+.v3-votes .v3-options label:has(:checked) {background:#ffe5ac;border-color:#a4762c;box-shadow:0 3px 0 #a4762c;}
body[data-role] .v3-options label>span {display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere;}
.event-option-key {display:grid;place-items:center;flex:0 0 auto;width:1.8em;height:1.8em;border-radius:9px;background:#ead9f8;color:#57367a;font-weight:850;}
body[data-role] .v3-votes+.v3-votes .event-option-key {background:#f5dfb5;color:#79521e;}
body[data-role] .guess-reveal>div,body[data-role] .v3-score-breakdown>div {background:#f1e3fa;color:var(--ink);border:1px solid #dac7e5;border-radius:22px;box-shadow:none;}
body[data-role] .guess-reveal>div:nth-child(2),body[data-role] .v3-score-breakdown>div:nth-child(2) {background:#fff0d5;border-color:#e6cfa7;}
body[data-role] .v3-score-breakdown>p {background:#fffaf4;border:1px solid #d9c7e3;border-radius:16px;}
body[data-role] .reveal-row {border:1px solid #e0d1e8;border-radius:18px;padding:12px;background:#f5eafa;}
body[data-role] .reveal-row[data-popular="true"] {background:#fff0d7;border-color:#dfc79e;}
body[data-role] .track {background:#e3d8ed;border-radius:999px;}
body[data-role] .bar {background:#8b63b8;}
body[data-role] .reveal-row[data-popular="true"] .bar {background:#c59339;}
body[data-role] .prediction-hint,body[data-role] .rules-tip {background:#fff0d5;border-color:#ca9b4b;color:#654920;border-radius:12px;}
body[data-role] .count-choice {background:#fff0d5;border:1px solid #e9d2aa;padding:10px;border-radius:18px;}
#room-view[data-special-kind="switch"] {--event-scene:#e9def8;--event-scene-line:#cdb9e5;--event-scene-ink:#593882;}
#room-view[data-special-kind="duel"] {--event-scene:#ffead0;--event-scene-line:#e8c69b;--event-scene-ink:#805019;}
#room-view[data-special-kind="barometer"] {--event-scene:#fce4e8;--event-scene-line:#ebc4ce;--event-scene-ink:#8a3f61;}
body[data-role] .v3-special-reveal,body[data-role] .v3-barometer,body[data-role] .v3-special-entrance,body[data-role] .v3-reveal-entrance {background:var(--event-scene);border:1px solid var(--event-scene-line);color:var(--event-scene-ink);border-radius:24px;box-shadow:none;}
body[data-role] .v3-switch-decision {background:var(--event-scene);border:1px solid var(--event-scene-line);border-radius:20px;padding:12px;}
body[data-role] .v3-spectator,body[data-role] .v3-locked {background:var(--event-scene);color:var(--event-scene-ink);border:1px solid var(--event-scene-line);border-radius:18px;}
body[data-role="host"] .host-grid {gap:12px;}
body[data-role="host"] .host-banner {background:#f1e4fa;border-color:#d9c5e5;}
body[data-role="host"] .host-sidebar .host-section {border-radius:18px;}
body[data-role="host"] .host-status strong {background:#e4f0df;color:#315c31;}
body[data-role="host"] .host-roster li {border-color:#e5d8e8;}
body[data-role="screen"] .event-stage-options li {background:#f1e4fa;border-color:#d8c6e7;border-radius:20px;}
body[data-role="screen"] .event-stage-options li>bdi {background:#7850a7;border-radius:12px;}
@media(orientation:landscape) and (min-width:840px) {
 body[data-role="play"] main {max-width:1100px;}
 body[data-role="play"] .v3-ballot:has(.v3-votes+.v3-votes),body[data-role="play"] .v3-switch-ballot {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;}
 body[data-role="play"] .v3-ballot>button,body[data-role="play"] .v3-ballot>small,body[data-role="play"] .v3-ballot>p {grid-column:1/-1;}
 body[data-role="play"] .v3-ballot>button {width:min(100%,440px);justify-self:center;}
 body[data-role="play"] .v3-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 body[data-role="screen"] .event-stage-distribution .track {border-radius:12px;}
 body[data-role="screen"] .event-stage-distribution .bar {background:#8b63b8;}
 body[data-role="screen"] .event-stage-distribution .reveal-row[data-popular="true"] .bar {background:#c59339;}
}
@media(max-width:600px) {
 body[data-role] .panel {border-radius:19px;padding:13px;}
 body[data-role] .v3-votes {padding:8px;}
}

/* Same approved brand asset across public and private event roles. */
body[data-role] .masthead .brand .ecosystem-brand-image {width:clamp(105px,16vw,155px);height:62px;object-fit:contain;display:block;flex:none;filter:none;box-shadow:none;border:0;background:none;transform:none;animation:none;}

/* Stage 3: one option list, two independent selections. */
body[data-role] .v3-paired-votes {min-inline-size:0; border:0; padding:0; margin:0;}
.v3-paired-votes legend {font-weight:850; margin-block-end:10px; color:#351d42; font-size:1.02rem;}
.v3-paired-head,.v3-paired-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(52px,.27fr) minmax(66px,.34fr);gap:8px;align-items:center;}
.v3-paired-head {text-align:center;font-size:clamp(.72rem,2vw,.92rem);font-weight:850;line-height:1.2;margin-block-end:8px;color:#351d42;}
.v3-paired-head span:first-child{text-align:start;padding-inline-start:8px}
.v3-paired-head span:nth-child(2){color:#57367a}
.v3-paired-head span:nth-child(3){color:#765019}
.v3-paired-list {display:grid;gap:8px;}
.v3-paired-row {background:#fffaf4;color:#351d42;border:1px solid #dccce4;border-radius:16px;padding:8px;}
.v3-paired-text {display:flex;align-items:center;gap:8px;font-weight:750;min-width:0;overflow-wrap:anywhere;}
.v3-paired-cell {position:relative;display:grid;place-items:center;min-height:48px;min-width:44px;border:2px solid #ccb6e0;border-radius:12px;background:#f0e3fa;color:#57367a;cursor:pointer;}
.v3-paired-cell[data-pick="prediction"]{background:#fff0d5;border-color:#e0c48f;color:#765019;}
.v3-paired-cell input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;}
.v3-paired-mark{font-size:1.1rem;opacity:.35;line-height:1;pointer-events:none;}
.v3-paired-cell:has(input:checked){background:#6c3f98;color:white;border-color:#6c3f98;box-shadow:0 2px 0 #4a286d;}
.v3-paired-cell[data-pick="prediction"]:has(input:checked){background:#f8d184;color:#3c2709;border-color:#986921;box-shadow:0 2px 0 #986921;}
.v3-paired-cell:has(input:checked) .v3-paired-mark{opacity:1;font-weight:900;}
.v3-paired-cell:has(input:focus-visible){outline:3px solid #8051ac;outline-offset:3px;}
@media(max-width:360px){.v3-paired-head,.v3-paired-row{gap:5px;grid-template-columns:minmax(0,1fr) 48px 62px}.v3-paired-row{padding:6px}.v3-paired-text{font-size:.9rem;gap:4px}.v3-paired-text .event-option-key{width:1.45em;height:1.45em;}}

/* Special rounds deliberately change the whole player/projector surface. */
body[data-role="play"]:has(#room-view[data-special-kind="switch"]),body[data-role="screen"]:has(#room-view[data-special-kind="switch"]){background:linear-gradient(145deg,#f5edff,#f9e9c9);}
body[data-role="play"]:has(#room-view[data-special-kind="barometer"]),body[data-role="screen"]:has(#room-view[data-special-kind="barometer"]){background:linear-gradient(145deg,#fff5ed,#f9dfe8);}
body[data-role="play"]:has(#room-view[data-special-kind="duel"]),body[data-role="screen"]:has(#room-view[data-special-kind="duel"]){background:linear-gradient(145deg,#fff5de,#eeddf8);}
body[data-role] #room-view[data-special-kind="switch"] .v3-switch-intro{background:#ece0fa;color:#432061;border:2px solid #b495d5;box-shadow:0 4px 0 #b495d5;}
body[data-role] #room-view[data-special-kind="switch"] .v3-switch-spark{background:#fff0d5;border-color:#a97d3a;box-shadow:0 3px 0 #a97d3a;}
body[data-role] #room-view[data-special-kind="duel"] .v3-duel-intro{background:#fff0d5;color:#4c3212;border:2px solid #cb9e54;}
body[data-role] #room-view[data-special-kind="duel"] .v3-duel-intro p{color:#644314;}
body[data-role] #room-view[data-special-kind="duel"] .v3-fighters>strong:first-child{background:#eedcfb;color:#432061;padding:8px 12px;border-radius:14px;}
body[data-role] #room-view[data-special-kind="duel"] .v3-fighters>strong:last-child{background:#ffe4aa;color:#593c10;padding:8px 12px;border-radius:14px;}
body[data-role] #room-view[data-special-kind="duel"] .v3-fighters>span{background:#713f9d;color:#fff;}
body[data-role] #room-view[data-special-kind="barometer"] .v3-votes{background:#fce5ed;border-color:#d8a8bd;color:#68314a;}
body[data-role] .v3-options label:has(input:checked),body[data-role] .v3-switch-decision label:has(input:checked){color:#351d42;}
body[data-role] .v3-switch-arc b{color:#623389;}

.event-opening { text-align:center; }
.opening-declarations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.4rem auto; max-width:44rem; }
.opening-declaration { display:grid; gap:.3rem; padding:1rem; border:1px solid currentColor; border-radius:1rem; }
.opening-declaration bdi { font-size:clamp(2.6rem,8vw,6rem); font-weight:800; line-height:1; }
.opening-declaration strong { font-size:clamp(1rem,2.5vw,1.7rem); }
@media (prefers-reduced-motion:no-preference) { .opening-declarations { animation:event-opening-in .5s ease-out both; } @keyframes event-opening-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } } }

/* Shared synchronized declaration opening. Make the two choices land separately. */
.event-opening .opening-declaration {animation: event-opening-pop .65s cubic-bezier(.2,.9,.3,1.15) both;}
.event-opening .opening-declaration:nth-child(2) {animation-delay:.18s;}
.event-opening h2 {animation: event-opening-pop .65s .38s both;}
@keyframes event-opening-pop {from {opacity:0;transform:translateY(16px) scale(.9)} to {opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce) {.event-opening .opening-declaration,.event-opening h2 {animation:none;}}
