.page-game .game-shell.theme-tripleuse:has(.tripleuse-room) {
  --work-ink:#193b5a;
  --work-blue:#2a5d84;
  --work-muted:#3e576b;
  --work-line:#84a8c0;
  --work-orange:#a33f17;
  --work-paper:#fff0bd;
  color:var(--work-ink);
  background:
    linear-gradient(0deg,#47769813 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,#47769813 1px,transparent 1px) 0 0/24px 24px,
    radial-gradient(ellipse at 28% 10%,#edf7fd 0%,#d5ebf8 68%,#c7e4f6);
}
.page-game .game-shell.theme-tripleuse:has(.tripleuse-room) .game-toolbar {
  background:#e8f3fa;
  border-bottom:1px solid #88acc3;
  color:var(--work-ink);
}
.page-game .game-shell.theme-tripleuse:has(.tripleuse-room) .game-toolbar .button {
  min-height:44px;
  color:var(--work-ink);
  background:#f6fbfe;
  border-color:#7294b0;
}
.tripleuse-room {width:min(100%,1230px);margin-inline:auto;color:var(--work-ink);text-align:left}
.game-shell .play .tripleuse-room .session-banner {
  max-width:none;
  margin:0 0 clamp(17px,3vw,33px);
  text-align:left;
}
.game-shell .play .tripleuse-room .session-banner>:is(h2,.meta) {
  max-width:none;
  margin-inline:0;
  text-align:left;
  color:var(--work-ink);
}
.game-shell .play .tripleuse-room .session-banner h2 {
  font-size:clamp(1.45rem,3.75vw,3.5rem);
  line-height:1.13;
  text-wrap:balance;
}
.game-shell .play .tripleuse-room .session-banner .meta {font-weight:740;color:var(--work-blue)}
.game-shell .play .tripleuse-room p {margin:.45rem 0 .9rem;text-align:left;color:var(--work-muted)}
.game-shell .play .tripleuse-room .actions {justify-content:flex-start;gap:.55rem;margin:.75rem 0}
.game-shell .play .tripleuse-room .button {min-height:44px;white-space:normal;color:var(--work-ink)}
.game-shell .play .tripleuse-room .button.secondary {background:#f7fbfe;border-color:#789db7}
.game-shell .play .tripleuse-room .button.cta,
.game-shell .play .tripleuse-room .actions .button:not(.secondary) {
  color:#fff9f2;
  background:var(--work-orange);
  border-color:var(--work-orange);
}
.game-shell .play .tripleuse-room .button.cta:hover,
.game-shell .play .tripleuse-room .actions .button:not(.secondary):hover {background:#823011;border-color:#823011}
.tripleuse-room :is(input,button,summary):focus-visible {outline:3px solid #2c6392;outline-offset:3px}

.tripleuse-object {
  position:relative;
  width:min(100%,52rem);
  min-width:0;
  padding:clamp(18px,2.9vw,38px);
  margin-bottom:1rem;
  border:1px solid #cfaa60;
  border-radius:9px;
  background:linear-gradient(125deg,#fff7d5,var(--work-paper));
  box-shadow:0 5px 0 #b99f5933,0 10px 22px #2f536b19;
  overflow-wrap:anywhere;
}
.tripleuse-object::before {
  content:"";
  position:absolute;
  top:-8px;
  right:12%;
  width:clamp(50px,11vw,100px);
  height:17px;
  background:#f8ecd1e8;
  clip-path:polygon(0 0,100% 0,96% 28%,100% 51%,96% 72%,100% 100%,0 100%,4% 68%,0 47%,4% 23%);
  transform:rotate(2deg);
  pointer-events:none;
}
.tripleuse-object strong {display:block;color:var(--work-ink);font-size:clamp(1.55rem,4.45vw,4.4rem);line-height:1.1}
.game-shell .play .tripleuse-object p {font-size:.94rem;margin:.64rem 0 0;color:#584925}
.tripleuse-object p span {font-weight:720;display:block;color:#403b27}
.tripleuse-live {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);
  grid-template-areas:"object clock" "content controls";
  gap:clamp(10px,1.6vw,20px) clamp(20px,4vw,55px);
  align-items:start;
}
.tripleuse-live .tripleuse-object {grid-area:object;width:100%;margin:0}
.tripleuse-live .tripleuse-clock {grid-area:clock}
.tripleuse-work-content {grid-area:content;min-width:0}
.tripleuse-work-controls {grid-area:controls;min-width:0}
.tripleuse-live :is(.tripleuse-clock,.tripleuse-work-controls) {border-inline-start:1px solid var(--work-line);padding-inline-start:clamp(13px,2.3vw,26px)}
.tripleuse-clock {
  display:grid;
  align-content:start;
  width:min(100%,25rem);
  color:var(--work-ink);
  font-weight:700;
  gap:.2rem;
}
.tripleuse-clock strong {font-size:clamp(3rem,8vw,7.1rem);line-height:1;font-variant-numeric:tabular-nums}
.tripleuse-clock>progress {width:100%;height:7px;appearance:none;border:0;background:#aecade;border-radius:9px;margin-top:.4rem}
.tripleuse-clock>progress::-webkit-progress-bar {background:#aecade;border-radius:9px}
.tripleuse-clock>progress::-webkit-progress-value {background:#315d89;border-radius:9px}
.tripleuse-clock>progress::-moz-progress-bar {background:#315d89;border-radius:9px}
.tripleuse-work-controls .actions>.button:not(.secondary) {width:100%}
.tripleuse-pieces {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(100%,52rem);
  gap:clamp(5px,1.2vw,13px);
  list-style:none;
  padding:0;
  margin:0 0 1rem;
}
.tripleuse-pieces>li {
  display:grid;
  gap:.4rem;
  padding:clamp(.5rem,1.4vw,1rem) .2rem;
  border:1px solid #82a7bf;
  border-bottom-width:3px;
  border-radius:7px 15px 15px 7px;
  margin:0;
  font-size:clamp(.75rem,1.2vw,.96rem);
  font-weight:700;
  line-height:1.3;
  background:#eaf5fb;
  color:#2d506e;
  text-align:center;
}
.tripleuse-pieces>li span {font:750 clamp(1.55rem,4vw,3.55rem)/1 Georgia,serif}
.tripleuse-pieces>li[data-state=active] {color:#fffbef;background:var(--work-orange);border-color:#743012;box-shadow:0 4px 0 #9c563e32}
.tripleuse-pieces>li[data-state=done] {color:#234e47;background:#d3ede4;border-color:#6c9c91}
.tripleuse-pieces>li[data-state=done] span::after {content:" ✓";font-size:.48em;vertical-align:middle}
.tripleuse-plan-pads {display:grid;gap:.65rem;width:min(100%,52rem)}
.tripleuse-plan-pads label,.tripleuse-observations fieldset>label,.tripleuse-observations dd label {
  min-width:0;
  display:grid;
  gap:.3rem;
  font-size:.88rem;
  color:var(--work-ink);
}
.tripleuse-room input[type=text] {
  width:100%;
  min-width:0;
  min-height:44px;
  padding:.5rem .65rem;
  border:1px solid #7296b2;
  border-radius:5px;
  font:inherit;
  font-size:1rem;
  color:var(--work-ink);
  background:#fafdff;
}
.game-shell .play .tripleuse-room [data-table-form] {width:100%;max-width:none;margin:0}
.tripleuse-observations {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.6rem,2vw,1.15rem);margin:1rem 0}
.tripleuse-observations fieldset {min-width:0;margin:0;padding:.65rem .85rem .85rem;border:1px solid #96b6cd;background:#f5fbfe;border-radius:7px}
.tripleuse-observations legend {padding:.18rem .55rem;border-radius:5px;color:var(--work-ink);background:#d2e7f4;font-weight:750;font-size:.9rem}
.tripleuse-observations dl {margin:.15rem 0 .5rem;overflow-wrap:anywhere}
.tripleuse-observations dt {font-size:.8rem;color:var(--work-muted);margin:.22rem 0}
.tripleuse-observations dd {margin:0 0 .6rem;font-size:.94rem;font-weight:640;color:var(--work-ink)}
.tripleuse-binary {display:flex;flex-wrap:wrap;gap:.3rem .6rem;margin:0 0 .5rem}
.tripleuse-binary label {display:flex;align-items:center;gap:.32rem;min-width:44px;min-height:44px;padding-inline-end:.25rem;font-size:.88rem;color:var(--work-ink);cursor:pointer}
.tripleuse-binary input[type=radio] {margin:0;width:18px;height:18px;min-height:0;accent-color:#2a5d84}
.tripleuse-ruling {border-top:1px dashed #96b6cd;padding:.5rem 0 .1rem;font-size:.86rem;color:var(--work-ink)}
.tripleuse-ruling b {display:block;color:#85381e;padding:.45rem 0}
.tripleuse-error:empty {display:none}
.game-shell .play .tripleuse-room .tripleuse-error {color:#922e22;font-weight:740}
.tripleuse-record {width:100%;margin:.8rem 0}
.tripleuse-record h3 {font-size:1.2rem;color:var(--work-ink);margin:.45rem 0}
.tripleuse-record>ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;list-style:none;margin:0;padding:0}
.tripleuse-record>ol>li {margin:0;padding:.7rem .75rem;border-top:3px solid #a56b42;background:#fff2df;overflow-wrap:anywhere}
.tripleuse-record>ol>li[data-point="1"] {background:#e8f4eb;border-color:#548979}
.game-shell .play .tripleuse-record>ol>li p {font-size:.88rem;margin:.35rem 0}
.tripleuse-record ul {list-style:none;padding:0;margin:0;font-size:.83rem}
.tripleuse-record [data-tripleuse-check] {border-top:1px dashed #9ab4bb;padding:.42rem 0;display:flex;gap:.55rem;justify-content:space-between;margin:0}
.tripleuse-record [data-valid=false] b {color:#873918}
.tripleuse-totals {display:flex;flex-wrap:wrap;gap:1rem 2rem;color:var(--work-ink);font-weight:750;margin:.7rem 0 1rem}
.tripleuse-totals div {display:flex;align-items:baseline;gap:.5rem}
.tripleuse-totals strong {font-size:clamp(2rem,4.2vw,4.4rem);font-variant-numeric:tabular-nums;color:var(--work-orange)}
.tripleuse-archive summary {cursor:pointer;border-bottom:1px solid var(--work-line);min-height:44px;padding:.7rem 0;color:var(--work-ink);font-weight:680}
@media (max-width:760px) {
  .tripleuse-live {grid-template-columns:minmax(0,1fr);grid-template-areas:"object" "clock" "content" "controls";gap:.75rem}
  .tripleuse-live :is(.tripleuse-clock,.tripleuse-work-controls) {padding-inline-start:0;border-inline-start:0}
  .tripleuse-clock {width:100%;grid-template-columns:auto auto minmax(2rem,1fr);align-items:center;gap:.55rem}
  .tripleuse-clock strong {font-size:2.65rem}
  .tripleuse-clock>progress {margin:0}
  .tripleuse-observations,.tripleuse-record>ol {grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:no-preference) {
  .tripleuse-room[data-tripleuse-phase=show] .tripleuse-pieces>li[data-state=active] {animation:tripleuse-stage-in .22s ease-out}
}
@keyframes tripleuse-stage-in {from {opacity:.7;translate:0 4px}}
