.page-game .game-shell.theme-jury:has(.jury-room) {
  --jury-ink:#173932;
  --jury-muted:#405b52;
  --jury-deep:#195347;
  --jury-gold:#f7bf56;
  --jury-paper:#fffdf4;
  --jury-line:#8faea2;
  color:var(--jury-ink);
  background:radial-gradient(ellipse at 28% 15%,#eff8ed,#d7ece3 70%,#cfe5da);
}
.page-game .game-shell.theme-jury:has(.jury-room) .game-toolbar {
  background:#eef5ed;
  border-bottom:1px solid var(--jury-line);
  color:var(--jury-ink);
}
.page-game .game-shell.theme-jury:not(.wide):has(.jury-room) {overflow:clip}
.page-game .game-shell.theme-jury:has(.jury-room) .game-toolbar .button {
  background:#f9fcf7;
  border-color:#92aa9e;
  color:var(--jury-ink);
  min-height:44px;
}
.jury-room {
  width:min(100%,1240px);
  margin-inline:auto;
  color:var(--jury-ink);
  text-align:left;
}
.game-shell .play .jury-room .session-banner {
  max-width:none;
  margin:0 0 clamp(14px,2.5vw,25px);
  text-align:left;
}
.game-shell .play .jury-room .session-banner>:is(h2,.meta) {
  max-width:none;
  margin-inline:0;
  text-align:left;
  color:var(--jury-ink);
}
.game-shell .play .jury-room .session-banner h2 {
  font-size:clamp(1.4rem,3.6vw,3.45rem);
  line-height:1.08;
  text-wrap:balance;
}
.game-shell .play .jury-room .session-banner .meta {font-weight:750}
.jury-room .session-banner .meta::after {
  content:"";
  display:block;
  width:2.4rem;
  height:3px;
  margin-top:5px;
  background:#cc8d24;
}
.game-shell .play .jury-room p {
  max-width:none;
  text-align:left;
  margin-inline:0;
  color:var(--jury-muted);
  line-height:1.6;
}
.jury-room .button {
  min-height:46px;
  font-size:.94rem;
  line-height:1.4;
  white-space:normal;
  transition:background-color .16s,box-shadow .16s;
}
.game-shell .play .jury-room .actions {justify-content:flex-start;margin:14px 0 0;gap:9px}
.game-shell .play .jury-room .button:not(.cta) {color:var(--jury-ink)}
.game-shell .play .jury-room .button.secondary {background:#f9fcf7;border-color:#8da79c}
.game-shell .play .jury-room .button.cta {
  background:var(--jury-deep);
  border-color:var(--jury-deep);
  color:#fffdf5;
}
.game-shell .play .jury-room .button.cta:hover:not(:disabled) {background:#103d35;border-color:#103d35}
.game-shell .play .jury-room .button:disabled {
  opacity:1;
  background:#e1e9df;
  border-color:#a6b3a7;
  color:#4d6156;
}
.jury-room :is(button,textarea):focus-visible {outline:3px solid #246554;outline-offset:3px}
.jury-prompt {
  margin:0 0 14px;
  padding:12px clamp(12px,2vw,22px);
  border-inline-start:6px solid #e9a638;
  border-radius:7px;
  background:var(--jury-paper);
}
.jury-prompt>span {font-size:.84rem;color:#465d51;font-weight:700}
.game-shell .play .jury-room .jury-prompt p {
  color:var(--jury-ink);
  font-size:clamp(1.1rem,2vw,1.48rem);
  font-weight:700;
  line-height:1.38;
  margin:3px 0 0;
}

.jury-envelope {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:min(100%,350px);
  min-height:155px;
  display:grid;
  place-items:end center;
  padding-bottom:12px;
  margin:0 0 18px;
  border:1px solid #8d9d7f;
  border-radius:10px;
  background:linear-gradient(145deg,#f5e7c8,#e7d09a);
  box-shadow:0 9px 17px #264b3d22;
}
.jury-envelope::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:70%;
  clip-path:polygon(0 0,100% 0,50% 100%);
  background:linear-gradient(160deg,#e0b978,#d1ab64);
  z-index:-1;
}
.jury-envelope>span {
  display:grid;
  place-items:center;
  width:64px;
  aspect-ratio:1;
  border-radius:50%;
  background:var(--jury-deep);
  color:#fff7df;
  font:700 2rem/1 Georgia,serif;
  box-shadow:0 3px 0 #142e29;
}
.game-shell .play .jury-room .jury-progress {font-size:.9rem;font-weight:750;color:var(--jury-deep)}
.game-shell .play .jury-room form[data-table-form=jury-answer] {
  max-width:820px;
  margin:0;
  padding:clamp(16px,2.4vw,28px);
  border-radius:8px;
  border-bottom:2px solid #a9bfb1;
  background:var(--jury-paper);
  box-shadow:0 6px 12px #274a3e17;
}
.jury-room label {display:grid;gap:9px;font-size:.94rem;color:var(--jury-ink)}
.jury-room textarea {
  width:100%;
  resize:vertical;
  min-height:128px;
  border:1px solid #a5baaa;
  border-radius:5px;
  background:#fffef8;
  padding:9px 12px;
  font:inherit;
  font-size:1.06rem;
  line-height:1.6;
  color:var(--jury-ink);
}
.jury-paper-foot {display:flex;justify-content:space-between;align-items:baseline;gap:8px 14px;flex-wrap:wrap;margin:10px 0 14px}
.jury-paper-foot [data-jury-character-count] {font-size:.88rem;color:var(--jury-muted)}
.jury-paper-foot [data-over=true],
.game-shell .play .jury-room [data-jury-error] {color:#923c30}
.game-shell .play .jury-room [data-jury-error] {font-size:.9rem;margin:0}
.game-shell .play .jury-room .jury-private-note {font-size:.9rem;margin:12px 0;color:var(--jury-muted)}

.jury-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.7vw,22px);margin:18px 0}
.jury-room .jury-card {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:100%;
  min-width:0;
  min-height:148px;
  padding:0 clamp(13px,1.7vw,23px) 15px;
  border:1px solid #c0cbb9;
  border-radius:7px 16px 7px 7px;
  background:linear-gradient(148deg,#fffef7,#faf5e7);
  box-shadow:0 5px 0 #496b581c,0 9px 16px #20463516;
  text-align:left;
  color:var(--jury-ink);
  font:inherit;
  line-height:1.42;
  overflow-wrap:anywhere;
}
.jury-card::after {
  content:"";
  position:absolute;
  inset:0 0 auto auto;
  width:16px;
  height:16px;
  background:#e2dcc1;
  clip-path:polygon(0 0,100% 100%,0 100%);
  pointer-events:none;
}
.jury-card-id {
  display:grid;
  place-items:center;
  min-width:46px;
  min-height:34px;
  margin-inline-start:calc(clamp(13px,1.7vw,23px)*-1);
  border-radius:6px 0 14px 0;
  background:var(--jury-gold);
  color:#302c21;
  font:700 1.5rem/1 Georgia,serif;
}
.jury-card-caption {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.jury-card-text {display:block;font-size:clamp(1.04rem,1.8vw,1.43rem);font-weight:680;margin:8px 0 0;white-space:pre-wrap}
.jury-room button.jury-card {cursor:pointer;transition:box-shadow .16s,background-color .16s;touch-action:manipulation}
.jury-room button.jury-card:hover:not(:disabled) {border-color:#577b69;box-shadow:0 5px 0 #426b5460}
.jury-room button.jury-card[aria-pressed=true] {border-color:var(--jury-deep);background:#f9fff4;box-shadow:inset 0 0 0 2px var(--jury-deep),0 5px 0 #426b5460}
.jury-card[aria-pressed=true] .jury-card-id {background:var(--jury-deep);color:#fffdf5}
.jury-room button.jury-card:disabled {opacity:1;cursor:default;background:#e7ece2;border-style:dashed;box-shadow:none}
.jury-card:disabled .jury-card-id {background:#c5d1c4;color:#29453c}
.jury-card small {font-size:.84rem;color:#3e554a;margin-top:auto;padding-top:9px}
.jury-voting-desk {min-width:0}
.jury-ballot-actions {padding:14px;border:1px solid #9cb8aa;border-radius:8px;background:#edf7ec}
.game-shell .play .jury-room [data-jury-selection] {font-size:1rem;font-weight:750;color:var(--jury-deep);margin:0}
.jury-vote-count {font-size:1.35rem;font-weight:750;color:var(--jury-deep);margin-top:auto;padding-top:12px}
.jury-card[data-jury-winner=true] {border-color:#a57624;box-shadow:inset 0 0 0 1px #af7c2b,0 5px 0 #c9943840}
.game-shell .play .jury-room .jury-outcome {font-size:1.35rem;font-weight:750;color:var(--jury-ink)}
.game-shell .play .jury-room .jury-author {font-size:.9rem;color:#405a50;margin:5px 0 0}
.jury-no-scores,.jury-source-cycle {font-size:.9rem}

@media (min-width:901px) {
  .jury-voting-desk {display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,285px);gap:24px;align-items:start;margin:18px 0}
  .jury-voting-desk .jury-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
  .jury-ballot-actions {position:sticky;top:62px;min-width:0}
  .game-shell .play .jury-room .jury-ballot-actions .actions {align-items:stretch;flex-direction:column}
  .jury-ballot-actions .button {width:100%;text-align:left}
}
@media (max-width:900px) {
  .jury-card-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .jury-room .jury-card {min-height:110px}
  .jury-voting-desk:has(.jury-card[aria-pressed=true]) .jury-ballot-actions {position:sticky;bottom:0;z-index:1;box-shadow:0 -4px 15px #20463522}
  .jury-room:has(.jury-card[aria-pressed=true]) .jury-card {scroll-margin-bottom:190px}
  .game-shell .play .jury-room .jury-ballot-actions .jury-private-note {margin:8px 0 0;font-size:.83rem}
}
@media (max-width:480px) {
  .jury-card-grid {grid-template-columns:minmax(0,1fr)}
  .jury-room .jury-card {min-height:91px}
  .jury-card-text {margin-top:5px}
  .jury-ballot-actions {padding:9px}
  .game-shell .play .jury-room .jury-ballot-actions .actions {margin-top:6px;gap:5px}
  .jury-room .button {font-size:.9rem}
}
@media (prefers-reduced-motion:no-preference) {
  .jury-room[data-jury-phase=reading] .jury-card {animation:jury-paper-appear .21s ease-out both}
  .jury-room[data-jury-phase=reading] .jury-card:nth-child(even) {animation-delay:.035s}
}
@keyframes jury-paper-appear {from {opacity:.7;translate:0 4px}}
@media (prefers-reduced-motion:reduce) {.jury-room :is(.button,button.jury-card) {transition:none}}
