.page-game .game-shell.theme-reverseact:has(.reverseact-room) {
  --ra-ink:#213e35;
  --ra-muted:#4d5449;
  --ra-accent:#a64325;
  --ra-line:#cfa98a;
  --ra-paper:#fff6e6;
  color:var(--ra-ink);
  background:radial-gradient(ellipse at 18% 20%,#fffaf0 0%,var(--ra-paper) 70%,#f8e6cd 100%);
}
.page-game .game-shell.theme-reverseact:has(.reverseact-room) .game-toolbar {
  background:#fcf1df;
  border-bottom:1px solid var(--ra-line);
  color:var(--ra-ink);
}
.page-game .game-shell.theme-reverseact:has(.reverseact-room) .game-toolbar .button {
  background:#fffaf0;
  border-color:#b29378;
  color:var(--ra-ink);
  min-height:44px;
}
.reverseact-room {
  width:min(100%,1280px);
  margin-inline:auto;
  text-align:left;
  color:var(--ra-ink);
  font-variant-numeric:tabular-nums;
}
.game-shell .play .reverseact-room .session-banner {
  max-width:none;
  margin:0 0 clamp(18px,3vw,35px);
  text-align:left;
}
.game-shell .play .reverseact-room .session-banner>:is(h2,.meta) {
  max-width:none;
  margin-inline:0;
  text-align:left;
  color:var(--ra-ink);
}
.game-shell .play .reverseact-room .session-banner h2 {
  font-size:clamp(1.4rem,3.5vw,3.35rem);
  line-height:1.12;
  text-wrap:balance;
}
.game-shell .play .reverseact-room .session-banner .meta {color:var(--ra-accent);font-weight:750}
.game-shell .play .reverseact-room p {
  max-width:none;
  text-align:left;
  margin-inline:0;
  line-height:1.65;
  color:var(--ra-muted);
}
.reverseact-room .button {
  font-size:.94rem;
  min-height:46px;
  line-height:1.4;
  white-space:normal;
  transition:background-color .18s,box-shadow .18s;
}
.game-shell .play .reverseact-room .actions {justify-content:flex-start;margin:14px 0 0;gap:9px}
.game-shell .play .reverseact-room .button.cta {background:var(--ra-accent);border-color:var(--ra-accent);color:#fff9ef}
.game-shell .play .reverseact-room .button.cta:hover:not(:disabled) {background:#87331a;border-color:#87331a}
.game-shell .play .reverseact-room .button.cta:disabled {background:#e4d7c8;border-color:#c5b7a6;color:#625747;opacity:1}
.game-shell .play .reverseact-room .button:not(.cta) {color:var(--ra-ink)}
.game-shell .play .reverseact-room .button.secondary {background:#fffbf2;border-color:#aa9278}
.reverseact-room :is(button,textarea):focus-visible {outline:3px solid #226354;outline-offset:3px}

.reverseact-cast {display:grid;gap:14px;margin:18px 0;min-width:0}
.reverseact-guesser {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:8px 14px;
  background:#ffe2b2;
  border:1px solid #bd8c59;
  border-radius:10px;
  color:#284139;
}
.reverseact-guesser strong {font-size:1rem;line-height:1.45}
.reverseact-guesser>small {font-size:.78rem;color:#694628}
.reverseact-person {position:relative;display:block;flex:none;width:46px;height:56px;color:#276052}
.reverseact-person::before {
  content:"";
  position:absolute;
  width:19px;
  height:19px;
  left:calc(50% - 9.5px);
  top:1px;
  border:2px solid currentColor;
  background:#fff5dd;
  border-radius:50%;
}
.reverseact-person::after {
  content:"";
  position:absolute;
  inset:19px 1px 0;
  background:currentColor;
  clip-path:polygon(42% 4%,59% 4%,75% 23%,90% 0,99% 7%,81% 43%,64% 32%,64% 62%,86% 93%,76% 100%,52% 72%,32% 98%,21% 92%,39% 61%,38% 34%,17% 56%,5% 52%,29% 20%);
}
.reverseact-person.guesser {width:29px;height:29px;color:#88522c}
.reverseact-person.guesser::before {width:12px;height:12px;left:calc(50% - 6px)}
.reverseact-person.guesser::after {inset:13px 4px 1px;border-radius:12px 12px 3px 3px;clip-path:none}
.reverseact-actors {min-width:0}
.game-shell .play .reverseact-room .reverseact-actors>p {margin:0 0 8px;font-size:.89rem;color:#394840;font-weight:700}
.reverseact-actors>div {display:flex;justify-content:center;flex-wrap:wrap;gap:10px clamp(8px,2vw,20px)}
.reverseact-actors>div>div {display:grid;justify-items:center;gap:4px;min-width:42px}
.reverseact-actors>div>div:nth-child(even) .reverseact-person {transform:scaleX(-1)}
.reverseact-actors small {font-size:.79rem;color:#294239;font-weight:700;text-align:center}

.reverseact-live-desk {display:grid;grid-template-columns:minmax(0,1.64fr) minmax(265px,1fr);gap:clamp(22px,4vw,58px);align-items:center}
.reverseact-stage {
  position:relative;
  isolation:isolate;
  min-height:300px;
  display:grid;
  align-items:center;
  padding:clamp(20px,2.5vw,33px) clamp(36px,5.5vw,80px);
  overflow:hidden;
  border-bottom:6px solid #965c38;
  border-radius:10px;
  background:
    radial-gradient(ellipse at 50% 75%,#fff1bd 12%,transparent 69%),
    linear-gradient(#ffe4c2,#f6bb87 85%,#e29058 85%);
  box-shadow:0 10px 22px #94482c21;
}
.reverseact-stage::before,.reverseact-stage::after {
  content:"";
  position:absolute;
  inset:0 auto 8% 0;
  z-index:-1;
  width:17%;
  background:repeating-linear-gradient(78deg,#a7342790 0 10%,#ef8f6799 16% 23%,#bf4b36a0 29% 34%),#cf573e;
  border-radius:0 0 50% 0;
  transform:skewX(-9deg) translateX(-23%);
}
.reverseact-stage::after {transform:scaleX(-1) skewX(-9deg) translateX(-23%);left:auto;right:0}
.reverseact-stage .reverseact-cast {margin:0;gap:15px}
.reverseact-stage .reverseact-guesser {justify-self:center;background:#fff0cc;box-shadow:0 3px 0 #bc885e77}
.reverseact-stage .reverseact-actors {
  background:radial-gradient(ellipse at 50% 16%,#fff1c8 18%,#ffdeaa 72%);
  border:1px solid #bf8053;
  border-radius:48% 48% 16px 16px / 13% 13% 12px 12px;
  box-shadow:0 7px 0 #b87145;
  padding:14px 9px 20px;
}
.game-shell .play .reverseact-room .reverseact-stage .reverseact-actors>p {text-align:center}
.reverseact-stage .reverseact-actors small {padding:2px 6px;border-radius:4px;background:#fff2d5}
.reverseact-stage .reverseact-actors>div {gap:10px clamp(12px,3.5vw,48px)}
.reverseact-stage .reverseact-actors .reverseact-person {width:64px;height:76px}
.reverseact-stage .reverseact-actors:has(>div>div:nth-child(5))>div {column-gap:clamp(7px,1.35vw,18px)}
.reverseact-stage .reverseact-actors:has(>div>div:nth-child(5)) .reverseact-person {width:37px;height:48px}
.reverseact-clock {width:100%;max-width:none}
.reverseact-live-desk aside {padding-inline-start:clamp(12px,2vw,26px);border-inline-start:1px solid var(--ra-line)}
.reverseact-clock>span {font-size:.98rem;color:var(--ra-ink);font-weight:700}
.reverseact-clock strong {
  display:block;
  font-size:clamp(4rem,9vw,7.5rem);
  font-weight:780;
  line-height:.95;
  color:var(--ra-ink);
  margin:6px 0 15px;
}
.reverseact-clock progress {appearance:none;width:100%;height:8px;border:0;border-radius:10px;background:#edd6b3;accent-color:var(--ra-accent)}
.reverseact-clock progress::-webkit-progress-bar {background:#edd6b3;border-radius:10px}
.reverseact-clock progress::-webkit-progress-value {background:var(--ra-accent);border-radius:10px}
.reverseact-clock progress::-moz-progress-bar {background:var(--ra-accent);border-radius:10px}
.reverseact-live-desk aside>.actions>.cta {width:100%;text-align:center}
.game-shell .play .reverseact-room .reverseact-clock-help {margin:12px 0 0;font-size:.92rem}
.reverseact-room[data-reverseact-phase=paused] .reverseact-stage {filter:saturate(.55)}
.reverseact-room[data-reverseact-phase=timeout] .reverseact-clock {max-width:350px}
.reverseact-room[data-reverseact-phase=timeout] .reverseact-clock strong {color:var(--ra-accent)}

.reverseact-secret {
  font-family:Georgia,'Noto Serif SC',serif;
  font-size:clamp(1.5rem,4vw,3.1rem);
  line-height:1.25;
  color:#253f35;
  background:#ffedc9;
  border-block:2px solid #c88f61;
  margin:20px 0;
  padding:clamp(16px,3vw,33px);
  overflow-wrap:anywhere;
}
.reverseact-judgement {display:grid;grid-template-columns:minmax(0,1.17fr) minmax(240px,1fr);gap:clamp(20px,4vw,55px);align-items:start}
.reverseact-judgement aside {background:#f7e6d1;border-radius:10px;padding:clamp(14px,2vw,23px)}
.game-shell .play .reverseact-room .reverseact-ended-role {font-weight:750;color:var(--ra-ink);margin-top:0}
.reverseact-elapsed strong {font-size:1.5rem;font-weight:750;color:var(--ra-accent);margin-inline-start:8px}
.reverseact-verdicts {display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.game-shell .play .reverseact-room .reverseact-verdicts [aria-pressed=true] {background:#dcead7;border-color:#456e48;color:#234729;box-shadow:inset 0 -2px #456e48}
.game-shell .play .reverseact-room .reverseact-verdicts [data-reverseact-verdict=miss][aria-pressed=true] {background:#f8dfd3;border-color:#a64325;color:#84351f;box-shadow:inset 0 -2px #a64325}
.reverseact-room label {display:grid;gap:8px;font-size:.94rem;line-height:1.55;color:var(--ra-ink)}
.reverseact-room textarea {width:100%;font:inherit;line-height:1.6;resize:vertical;min-height:105px;background:#fffcf5;color:var(--ra-ink);border:1px solid #a58e75;border-radius:5px;padding:9px}
.game-shell .play .reverseact-room .reverseact-small {font-size:.88rem}
.game-shell .play .reverseact-room [data-reverseact-error] {color:#892d21;font-size:.89rem}
.reverseact-room [data-reverseact-error]:empty {display:none}
.reverseact-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0}
.reverseact-totals>div {display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-block-start:2px solid var(--ra-line);padding-top:10px;font-size:1.08rem;color:var(--ra-ink);font-weight:700}
.reverseact-totals strong {font-size:clamp(2.4rem,6vw,4rem);color:var(--ra-accent)}
.reverseact-archive {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.reverseact-archive>h3 {grid-column:1/-1;font-size:1rem;margin:0}
.reverseact-record {border-top:1px solid var(--ra-line);padding:13px 0;min-width:0}
.reverseact-record header {display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.reverseact-record h3 {font-size:1rem;font-weight:700;margin:0}
.reverseact-record header>strong {font-size:1.3rem;color:var(--ra-accent);white-space:nowrap}
.game-shell .play .reverseact-room .reverseact-record-word {font-family:Georgia,'Noto Serif SC',serif;font-size:1.3rem;color:var(--ra-ink);margin:10px 0 6px;overflow-wrap:anywhere}
.game-shell .play .reverseact-room .reverseact-record p:not(.reverseact-record-word) {font-size:.92rem;margin:4px 0;overflow-wrap:anywhere}
@media (max-width:850px) {
  .reverseact-live-desk,.reverseact-judgement {grid-template-columns:minmax(0,1fr);gap:16px}
  .reverseact-live-desk aside {padding:12px 0 0;border:0;border-top:1px solid var(--ra-line)}
  .reverseact-stage {min-height:0;padding:14px clamp(16px,7vw,58px) 17px}
  .reverseact-clock strong {font-size:clamp(3rem,10vw,4.2rem);margin-bottom:7px}
}
@media (max-width:480px) {
  .reverseact-archive {grid-template-columns:1fr}
  .reverseact-stage .reverseact-guesser>small {display:none}
  .reverseact-stage .reverseact-actors .reverseact-person {width:40px;height:51px}
}
@media (prefers-reduced-motion:no-preference) {
  .reverseact-room[data-reverseact-phase=running] .reverseact-actors>div>div {animation:reverseact-onstage .24s ease-out}
}
@keyframes reverseact-onstage {from {opacity:.65;translate:0 5px}}
@media (prefers-reduced-motion:reduce) {.reverseact-room .button {transition:none}}
