.shelf {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 8px;
  padding: 14px 18px 10px;
  border: 12px solid #774d2f;
  border-bottom-width: 18px;
  border-radius: 16px 16px 11px 11px;
  background:
    repeating-linear-gradient(94deg, #ffffff08 0 4px, #7048270a 4px 7px, transparent 7px 19px),
    linear-gradient(100deg, #bd9368, #e0bd8d 47%, #b78558);
  box-shadow:
    inset 0 10px 24px #3d221a6b,
    inset 9px 0 12px #3d221a36,
    inset -9px 0 12px #3d221a36,
    0 20px 29px #48321f2b,
    0 5px 0 #5c3b27;
}

.shelf-cell { position: relative; }

.slot {
  height: 132px;
  border: 0;
  border-bottom: 13px solid #855333;
  border-radius: 2px 2px 4px 4px;
  background:
    linear-gradient(90deg, #5b3b2552, transparent 13%, transparent 87%, #5b3b253b),
    linear-gradient(180deg, #9b704d 0, #c8a177 24%, #d9b489 74%, #eac79c 100%);
  box-shadow:
    inset 0 11px 16px #53371f69,
    inset 0 -5px 4px #fff2d95c,
    0 6px 0 #58341f;
  overflow: visible;
  transition: box-shadow .16s, background .16s;
}

.slot.target.empty,
.slot.target.filled,
.slot.target.empty:hover,
.slot.target.filled:hover {
  border: 0;
  border-bottom: 13px solid #855333;
  background:
    linear-gradient(90deg, #5b3b2552, transparent 13%, transparent 87%, #5b3b253b),
    linear-gradient(180deg, #9b704d 0, #c8a177 24%, #d9b489 74%, #eac79c 100%);
}

.slot.target.empty {
  color: #704f37;
  box-shadow:
    inset 0 11px 16px #53371f69,
    inset 0 0 0 2px #f2dcbdad,
    0 6px 0 #58341f;
}

.slot.target.empty .empty-glyph { color: #fff2da; text-shadow: 0 1px 3px #543721b3; }
.slot.target.empty .empty-label { color: #4b3728; }
.slot.target:hover,
.slot.drop-hover {
  box-shadow:
    inset 0 11px 16px #53371f69,
    inset 0 0 0 4px #e6a166,
    0 6px 0 #58341f;
}
.slot.drop-hover { background-color: #ffe0a2; }
.slot.correct { outline: 3px solid #5b9b6f; outline-offset: -3px; }
.slot.missed { outline: 3px solid #d46e57; outline-offset: -3px; }

.slot-number {
  color: #513927;
  font-size: 10px;
  text-shadow: 0 1px #ead0a9;
}

.slot .object {
  width: min(94%, 112px);
  height: 100px;
  background: transparent;
  border-radius: 0;
  justify-content: flex-end;
  filter: drop-shadow(3px 7px 4px #3f291f70);
}
.slot .object-icon { font-size: 56px; line-height: 1; }
.slot .object-name {
  padding: 3px 7px;
  margin-top: 3px;
  border-radius: 3px;
  background: #f7edd9e6;
  color: #3d352d;
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px #54331c38;
}

.tray-panel {
  background: linear-gradient(155deg, #fffdf8, #f4ebdc);
  box-shadow: inset 0 2px 8px #9474531a, 0 9px 20px #35291812;
}
.tray-panel.drop-hover { box-shadow: inset 0 0 0 4px #df9b65, 0 9px 20px #35291812; }
.tray-item,
.slot[data-placed] { cursor: grab; touch-action: none; }
.tray-item:active,
.slot[data-placed]:active { cursor: grabbing; }
.tray-item .object { box-shadow: inset 0 -4px 8px #72554320, 0 4px 7px #4938281a; }
.drag-source { opacity: .35; }
.shelf-drag-ghost {
  position: fixed;
  width: 112px;
  height: 112px;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -80%) rotate(-5deg);
  display: grid;
  place-items: center;
  border: 2px solid #e4b58b;
  border-radius: 18px;
  background: #fff9eda6;
  box-shadow: 0 18px 32px #2b211e55;
}
.shelf-drag-ghost .object { background: transparent; }
.shelf-drag-ghost .object-icon { font-size: 56px; filter: drop-shadow(3px 5px 2px #35272259); }

.hero-preview {
  position: relative;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(2deg);
}
.hero-preview .preview-note {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 2px;
}
.hero-preview .shelf {
  padding: 9px 10px 6px;
  border-width: 9px;
  border-bottom-width: 13px;
  gap: 0 5px;
}
.hero-preview .slot,
.hero-preview .slot.target.filled { height: 105px; border-bottom-width: 9px; }
.hero-preview .slot .object { height: 76px; }
.hero-preview .slot .object-icon { font-size: 38px; }
.hero-preview .slot .object-name { font-size: 8px; }
.hero-preview .slot-number { height: 19px; font-size: 8px; }
.hero-preview .preview-caption { padding-top: 17px; }

@media (max-width: 800px) {
  .shelf { padding: 10px 12px 8px; border-width: 9px; border-bottom-width: 14px; gap: 0 5px; }
  .slot, .slot.target.empty, .slot.target.filled, .slot.target.empty:hover, .slot.target.filled:hover { height: 114px; border-bottom-width: 10px; }
  .slot .object { height: 88px; }
  .slot .object-icon { font-size: 46px; }
}
@media (max-width: 520px) {
  .shelf { padding: 7px 6px 5px; border-width: 7px; border-bottom-width: 11px; gap: 0 3px; }
  .slot, .slot.target.empty, .slot.target.filled, .slot.target.empty:hover, .slot.target.filled:hover { height: 102px; border-bottom-width: 8px; }
  .slot .object { height: 78px; }
  .slot .object-icon { font-size: 38px; }
  .slot .object-name { font-size: 8px; padding: 2px 4px; }
  .slot-number { height: 19px; font-size: 8px; }
}

.versus-screen .versus-status { margin: 0 0 18px; }
.versus-progress {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #607467;
  font-size: 11px;
  font-weight: 700;
}
.versus-progress-dots { display: inline-flex; gap: 3px; }
.versus-progress-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e5db;
  box-shadow: inset 0 0 0 1px #b9c4b9;
}
.versus-progress-dots i.filled { background: #66a27a; box-shadow: none; }
.versus-player.you .versus-progress-dots i.filled { background: #dc845e; }
.versus-screen .tray-panel { margin-top: 16px; }

.versus-restore-screen { max-width: 1200px; }
.versus-playfield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  align-items: start;
  gap: 20px;
}
.versus-own-board { min-width: 0; }
.versus-own-board > h2 { font-size: 20px; margin: 0 0 10px 3px; }
.versus-monitor {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3dccd;
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: 0 10px 24px #3c2c1717;
}
.versus-monitor .section-label { display: block; margin: 0 0 5px; font-size: 10px; }
.versus-monitor h2 { font-size: 23px; overflow-wrap: anywhere; }
.versus-monitor-heading p { display: flex; align-items: center; gap: 7px; margin: 7px 0 14px; color: #738176; font-size: 12px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fb29a; }
.activity-dot.moving { background: #dd8056; animation: shelf-pulse .8s ease-in-out infinite alternate; }
@keyframes shelf-pulse { to { transform: scale(1.55); opacity: .5; } }
.monitor-shelf { padding: 6px 6px 4px; border-width: 7px; border-bottom-width: 10px; gap: 0 3px; border-radius: 9px; }
.monitor-shelf .slot,
.monitor-shelf .slot.target.empty,
.monitor-shelf .slot.target.filled { height: 78px; border-bottom-width: 7px; padding: 3px; }
.monitor-shelf .slot-number { height: 18px; font-size: 8px; }
.monitor-landmark { font-size: 28px; line-height: 1; filter: drop-shadow(2px 4px 2px #3b271a66); }
.masked-object { display: grid; place-items: center; width: 36px; height: 36px; border: 2px dashed #d4bd9b; border-radius: 11px; color: #6f5942; font: 700 22px Georgia, serif; }
.masked-object.filled { border: 0; background: #597462; color: #fff; box-shadow: 2px 5px 5px #332b2140; }
.monitor-note { margin: 12px 3px 0; color: #7e8279; font-size: 11px; line-height: 1.4; }

.versus-reveal-screen { max-width: 1160px; }
.versus-answer-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.versus-answer-board { min-width: 0; padding: 15px; border: 1px solid #e7dfd1; border-radius: 19px; background: #fffaf2; }
.answer-board-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 3px 13px; }
.answer-board-heading .section-label { display: block; margin: 0 0 4px; font-size: 10px; }
.answer-board-heading h2 { font-size: 25px; overflow-wrap: anywhere; }
.answer-board-heading strong { flex: none; font: 700 30px Georgia, serif; color: #315441; }
.answer-board-heading small { font-size: 12px; color: #93a292; }
.versus-answer-board .shelf { padding: 8px 8px 5px; border-width: 8px; border-bottom-width: 11px; gap: 0 4px; }
.versus-answer-board .slot,
.versus-answer-board .slot.target.empty,
.versus-answer-board .slot.target.filled { height: 105px; border-bottom-width: 9px; }
.versus-answer-board .slot .object { height: 77px; margin-bottom: 11px; }
.versus-answer-board .slot .object-icon { font-size: 36px; }
.versus-answer-board .slot .object-name { font-size: 9px; }
.versus-answer-board .slot-number { height: 20px; font-size: 8px; }
.versus-answer-board .status-badge { width: 20px; height: 20px; top: 3px; right: 3px; font-size: 12px; }
.slot-answer { position: absolute; bottom: 2px; left: 3px; right: 3px; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 3px; background: #fff1e7; color: #86472f; font-size: 9px; font-weight: 700; line-height: 1.35; }
.versus-answer-board > p { margin: 12px 3px 0; color: #69766c; font-size: 12px; }

@media (max-width: 850px) {
  .versus-playfield { grid-template-columns: minmax(0, 1fr); }
  .versus-monitor { position: static; }
}
@media (max-width: 720px) {
  .versus-answer-boards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .versus-answer-board { padding: 10px; }
  .versus-answer-board .slot,
  .versus-answer-board .slot.target.empty,
  .versus-answer-board .slot.target.filled { height: 99px; border-bottom-width: 8px; }
  .versus-answer-board .slot .object-icon { font-size: 32px; }
  .versus-answer-board .slot .object-name { font-size: 8px; }
}
