/* v18.3 redo games — big taps, no precise drag. */
.redo-wrap{max-width:100%;min-width:0}
.redo-stage{margin:8px auto;max-width:400px}
.redo-stage canvas{
  width:100%;height:auto;display:block;
  border:4px solid #141428;border-radius:16px;background:#0B1220;
  touch-action:manipulation;
}
.redo-pad{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:center;
  margin:10px 0 4px;
}
.redo-btn{
  min-width:72px;min-height:52px;padding:8px 14px;
  border:3px solid #141428;border-radius:16px;
  background:#fff;color:#141428;font-weight:800;font-size:1rem;
  cursor:pointer;
}
.redo-btn.go{background:#FFE600}
.redo-btn.wide{min-width:min(100%,160px);flex:1 1 140px}
.redo-btn[aria-pressed="true"]{background:#2BB8A8;color:#141428;box-shadow:4px 4px 0 #141428}
.song-board{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0;
}
.song-stone{
  min-height:96px;border:4px solid #141428;border-radius:22px;
  font-weight:800;font-size:1.1rem;cursor:pointer;
}
.song-stone.lit{transform:scale(1.04);box-shadow:0 0 0 5px rgba(43,184,168,.45)}
.chamber-room{
  position:relative;min-height:280px;border:4px solid #141428;border-radius:20px;
  overflow:hidden;background:#2A1A08;margin:8px 0;
}
.chamber-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,#3A2410 0%,#1A1008 100%),
    repeating-linear-gradient(90deg,rgba(0,0,0,.08) 0 12px,transparent 12px 24px);
}
.chamber-door{
  position:absolute;right:8%;top:28%;width:72px;height:120px;
  border:4px solid #141428;border-radius:10px 10px 0 0;
  background:#5A3A18;color:#FFE600;font-weight:800;
  display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;
  min-width:72px;cursor:pointer;
}
.chamber-door.open{background:#0B1220;color:#3DFF8A}
.chamber-item{
  position:absolute;min-width:72px;min-height:52px;padding:8px 10px;
  border:3px solid #141428;border-radius:14px;
  background:#FFE600;color:#141428;font-weight:800;cursor:pointer;
  z-index:1;
}
.chamber-item.lamp{background:#FFD166}
.chamber-item.scroll{background:#F4F0E0}
.chamber-item.pot{background:#E0A24A}
.chamber-item.chest{background:#C48A4A}
.chamber-item.curtain{background:#7C5CFF;color:#fff}
.chamber-item.got{background:#3DFF8A}
.chamber-item.is-hid{display:none}
.chamber-signs{
  position:absolute;left:8px;bottom:8px;z-index:2;
  background:rgba(255,255,255,.92);border:3px solid #141428;border-radius:12px;
  padding:6px 10px;font-weight:800;font-size:.82rem;color:#141428;
}
body.theme-g45 .redo-btn,body.theme-g45 .song-stone,body.theme-g45 .chamber-item,body.theme-g45 .chamber-signs{
  border-color:#2A3550;
}
body.theme-g45 .redo-btn{background:#141C2E;color:#E8EEF8}
body.theme-g45 .redo-btn.go{background:#F5C518;color:#141428}

.redo-wrap .pz-head, .sling-play .sling-bar, .sling-hub .pz-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:8px;
  min-width:0;
}
.redo-wrap .pz-head > div, .sling-play .sling-bar > div, .sling-hub .pz-head > div{
  min-width:0;flex:1;
}
.redo-wrap .pz-head h1, .sling-play h1, .sling-hub h1{
  margin:0;font-size:clamp(1.35rem,6.6vw,2rem);
  overflow-wrap:anywhere;max-width:100%;
}
.redo-wrap .diff-row .diff, .redo-wrap .bug-btn, .sling-play .bug-btn{
  min-height:48px;min-width:48px;padding:8px 12px;
}
