
.game-shell .play .paper-strip-room{
  --tape-ink:#3f3834;
  --tape-coral:#a3523c;
  --tape-green:#5e6d4d;
  --tape-cream:#fbf2e8;
  width:min(100%,1110px);
  margin:0 auto;
  text-align:left;
  color:var(--tape-ink);
}
.game-shell .play .paper-strip-room :is(h2,h3,p,.session-banner){max-width:none;text-align:left}
.game-shell .play .paper-strip-room :is(h2,h3,p){margin:0 0 .65rem}
.game-shell .play .paper-strip-room h2{font-size:clamp(1.7rem,3.8vw,2.95rem);line-height:1.12}
.game-shell .play .paper-strip-room h3{font-size:1.05rem}
.game-shell .play .paper-strip-room .actions{justify-content:flex-start;margin:.75rem 0 0;gap:.5rem}
.game-shell .play .paper-strip-room button{min-height:44px}
.tape-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);gap:clamp(1.25rem,5vw,4rem);align-items:center}
.tape-paper{
  position:relative;
  min-height:240px;
  background:#a4614b url('game-cover-tape-v2.webp') center/cover;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 9px 18px #5735202b;
  isolation:isolate;
}
.tape-paper::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 34px #893c302d;pointer-events:none}
.tape-paper.is-torn{background-position:50% 68%}
.game-shell .play .paper-strip-room .table-clock{
  min-height:120px;
  margin:0 0 1.05rem;
  background:#3d5a49;
  color:#fff8ef;
  border-radius:6px;
  box-shadow:none;
}
.game-shell .play .paper-strip-room .table-clock progress{accent-color:#f4d194}
.paper-strip-room .tape-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tape-fields fieldset{
  min-width:0;
  border:0;
  border-top:2px solid #7f9179;
  margin:0;
  padding:.9rem .75rem 1rem;
  background:#edf2e9;
}
.tape-fields fieldset[data-tape-team="1"]{border-color:#a35b46;background:#f7e9dc}
.tape-fields legend{padding:.15rem .5rem;color:#38452f;font-weight:750}
.tape-fields input,.tape-fields select{width:100%;min-height:44px}
.tape-fields label:not(:last-child){margin-bottom:.65rem}
.game-shell .play .paper-strip-room #tape-exact{color:#5b6259;font-size:.84rem}
.game-shell .play .paper-strip-room [data-tape-input-error]{color:#993a26;margin:.65rem 0}
.game-shell .play .paper-strip-room [data-tape-input-error]:empty{display:none}
.tape-comparison{border-top:2px solid #9a9e83;margin:1.15rem 0 .8rem;padding:.8rem 0}
.tape-comparison>div{
  display:grid;
  grid-template-columns:minmax(3.4rem,5rem) minmax(0,1fr) minmax(4.7rem,auto);
  align-items:center;
  gap:clamp(.55rem,2vw,1rem);
  margin:.8rem 0;
}
.tape-comparison strong{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.tape-bar{display:block;position:relative;height:1.25rem;background:#ede2d6;isolation:isolate}
.tape-bar::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--span);
  background:repeating-linear-gradient(90deg,#bf754e 0 3px,#d18f68 3px 8px);
  clip-path:polygon(0 7%,22% 1%,45% 5%,63% 0,82% 5%,100% 0,98.8% 7%,100% 33%,99.2% 47%,100% 77%,98.9% 100%,77% 96%,55% 100%,31% 96%,0 100%);
}
.tape-comparison>div[data-tape-score="1"] .tape-bar::before{background:repeating-linear-gradient(90deg,#6c8060 0 3px,#899b73 3px 8px)}
.tape-archive{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem 1.2rem;
  margin:1.2rem 0 0;
}
.tape-archive h3{grid-column:1/-1}
.tape-archive article{padding:.6rem 0;border-top:1px solid #c9c6bd}
.tape-archive h4{display:inline;margin:0 .65em .4rem 0}
.tape-end-note{font-size:.78rem;color:#686052}
.tape-archive dl{margin:.45rem 0 0}
.tape-archive dl>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  gap:.25rem .65rem;
  padding:.4rem 0;
  border-bottom:1px solid #dfdcd4;
}
.tape-archive dd{margin:0;font-variant-numeric:tabular-nums;font-weight:760}
.tape-archive small{grid-column:1/-1;color:#686052}
.tape-example{width:100%;table-layout:fixed;border-collapse:collapse;margin:1rem 0;text-align:left}
.tape-example :is(th,td){padding:.45rem;border-bottom:1px solid #dcd2c6;vertical-align:top;overflow-wrap:anywhere}
.tape-example th:first-child{width:25%}
.tape-example th[scope=row]{white-space:nowrap;font-size:.84rem;font-weight:650}
.tape-example td b,.tape-example td small{display:block}
.tape-example td b{font-variant-numeric:tabular-nums}
.tape-example td small{margin-top:.12rem;color:#60594f;font-size:.75rem;line-height:1.4}
.tape-example td.best{background:#f3e6d6}
@media(max-width:700px){
  .tape-workbench,.tape-archive{grid-template-columns:1fr}
  .tape-paper{min-height:142px;aspect-ratio:2.25}
  .paper-strip-room .tape-fields{grid-template-columns:1fr}
  .tape-comparison>div{grid-template-columns:3rem minmax(0,1fr) 4.5rem}
  .tape-comparison strong{font-size:.86rem}
}

.page-game .game-shell.theme-tape:has(.paper-strip-room) {
  --tape-ink:#30251e;
  --tape-accent:#994021;
  --tape-edge:#b9a18b;
  --tape-paper:#fff7eb;
  background:radial-gradient(ellipse at 24% 35%,#fff9ef,#f2e5d4);
  color:var(--tape-ink);
}
.page-game .game-shell.theme-tape:has(.paper-strip-room) .game-toolbar {
  background:#f7ebdc;
  border-color:#ceb9a5;
  color:var(--tape-ink);
}
.page-game .game-shell.theme-tape .play .paper-strip-room {
  --tape-ink:#30251e;
  width:min(100%,76rem);
  color:var(--tape-ink);
}
.game-shell .play .paper-strip-room .session-banner .meta {
  color:#794328;
}
.page-game .game-shell.theme-tape .play .paper-strip-room h2 {
  color:var(--tape-ink);
  font-size:clamp(1.8rem,4.5vw,3.8rem);
  letter-spacing:-.045em;
  text-wrap:balance;
}
.game-shell .play .paper-strip-room .tape-workbench {
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(1.25rem,4.4vw,4rem);
}
.tape-workbench>div { min-width:0 }
.tape-paper {
  aspect-ratio:1.78;
  min-height:0;
  border-radius:.7rem;
  box-shadow:0 10px 22px #57352024;
}
.tape-paper::after {
  background:repeating-linear-gradient(90deg,#fff0d4bd 0 1px,transparent 1px 14px) left bottom / 100% .48rem no-repeat;
}
.game-shell.theme-tape .play .paper-strip-room .table-clock {
  background:transparent;
  color:var(--tape-ink);
  border:0;
  min-height:0;
  padding:.25rem 0 .45rem;
}
.game-shell.theme-tape .play .paper-strip-room .table-clock strong {
  font-size:clamp(3.7rem,9vw,7rem);
  line-height:.98;
  letter-spacing:-.06em;
  font-variant-numeric:tabular-nums;
}
.game-shell.theme-tape .play .paper-strip-room .table-clock progress {
  height:.5rem;
  background:#e8d5c1;
  color:var(--tape-accent);
  accent-color:var(--tape-accent);
}
.paper-strip-room .table-clock progress::-webkit-progress-bar { background:#e8d5c1 }
.paper-strip-room .table-clock progress::-webkit-progress-value { background:var(--tape-accent) }
.paper-strip-room .table-clock progress::-moz-progress-bar { background:var(--tape-accent) }
.page-game .game-shell.theme-tape:has(.paper-strip-room) .game-toolbar .button,
.page-game .game-shell.theme-tape .play .paper-strip-room .button {
  color:var(--tape-ink);
  background:var(--tape-paper);
  border-color:var(--tape-edge);
}
.page-game .game-shell.theme-tape .play .paper-strip-room :is(.button.cta,.button[data-action^="measure:"]) {
  color:white;
  background:var(--tape-accent);
  border-color:var(--tape-accent);
}
.page-game .game-shell.theme-tape .play .paper-strip-room :is(.button.cta,.button[data-action^="measure:"]):hover { background:#7d3319 }
.game-shell .play .paper-strip-room form { width:100%;max-width:none;margin-inline:0 }
.tape-fields fieldset {
  border-color:#9b4528;
  background:#fff7eb;
}
.tape-fields fieldset[data-tape-team="1"] {
  border-color:#405d59;
  background:#f2f4e9;
}
.tape-fields legend { color:var(--tape-ink) }
.tape-comparison { border-color:var(--tape-edge) }
.tape-bar { height:1.65rem;background:#eadaca }
.tape-bar::before {
  background:repeating-linear-gradient(90deg,#a34f30 0 1px,transparent 1px 12px) bottom left / 100% .55rem no-repeat,#d7875f;
}
.tape-comparison>div[data-tape-score="1"] .tape-bar::before {
  background:repeating-linear-gradient(90deg,#3a5350 0 1px,transparent 1px 12px) bottom left / 100% .55rem no-repeat,#83a79a;
}
@media (prefers-reduced-motion:no-preference) {
  .paper-strip-room .button { transition:transform 120ms ease,background-color 120ms ease }
  .paper-strip-room .button:active { transform:translateY(1px) }
}
@media(max-width:700px) {
  .game-shell .play .paper-strip-room .tape-workbench { grid-template-columns:1fr }
  .tape-paper { aspect-ratio:2.15 }
  .game-shell.theme-tape .play .paper-strip-room .table-clock strong { font-size:clamp(3.5rem,13vw,5rem) }
}
@media(max-width:540px) {
  .game-shell.theme-tape.wide:has(.paper-strip-room) .game-toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:.35rem;
    padding:.5rem .75rem;
  }
  .game-shell.theme-tape.wide:has(.paper-strip-room) .game-toolbar-title {
    display:flex;
    padding:0;
  }
  .game-shell.theme-tape.wide:has(.paper-strip-room) .game-toolbar-title strong {
    white-space:normal;
  }
  .game-shell.theme-tape.wide:has(.paper-strip-room) .game-toolbar-actions {
    justify-content:flex-start;
    margin:0;
  }
  .page-game .game-shell.theme-tape.wide .play:has(.paper-strip-room) {
    justify-content:flex-start;
    min-height:0;
    margin-block:0;
    padding-block:1.5rem 2rem;
  }
}

