.guided-mode .tabs,
.guided-mode .side-left,
.guided-mode #arView,
.guided-mode #removeBtn,
.guided-mode #snapBtn,
.guided-mode #placeBtn {
  display: none !important;
}

.guided-mode .bottom-status { display: none; }

.guided-mode .side-right {
  top: auto;
  right: 18px;
  bottom: 238px;
  z-index: 45;
}

.guided-mode #rotateBtn {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 28px;
  background: linear-gradient(180deg, rgba(45,43,40,.92), rgba(18,17,16,.9));
  box-shadow: 0 12px 28px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.22);
}

.guided-mode #rotateBtn span { font-size: 10px; letter-spacing: 0; }

.guided-mode .catalog {
  height: 138px;
  bottom: 12px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,252,246,.98), rgba(236,229,218,.94));
}

.guided-mode .cards {
  height: 116px;
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 10px;
  overflow: hidden;
  padding: 0;
}

.guided-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-content: center;
}

.guided-stepper span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #756b61;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(0,0,0,.06);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.guided-stepper span.current {
  color: #fff;
  background: linear-gradient(135deg, #731eff, #d84dff);
  box-shadow: 0 8px 18px rgba(116,30,220,.28);
}

.guided-stepper span.done {
  color: #fff;
  background: linear-gradient(135deg, #24c445, #54df61);
}

.guided-mode .item-card.guided-unlocked {
  width: 126px;
  height: 116px;
  flex: none;
  display: grid;
  grid-template-rows: 16px 1fr 16px 16px 12px;
  padding: 6px;
  border: 2px solid rgba(137,36,255,.9);
  border-radius: 15px;
  box-shadow: 0 0 0 3px rgba(137,36,255,.13), 0 12px 26px rgba(91,20,170,.28);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.guided-mode .item-card.guided-unlocked.new-card { animation: guidedCardIn .52s cubic-bezier(.2, 1.1, .25, 1); }

.guided-mode .item-card.guided-unlocked:hover,
.guided-mode .item-card.guided-unlocked:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(137,36,255,.2), 0 16px 30px rgba(91,20,170,.34);
}

.guided-mode .item-card.guided-unlocked:active { transform: translateY(0) scale(.98); }

.guided-mode .item-card.guided-unlocked:after {
  content: "NEW";
  top: 5px;
  right: 6px;
  background: linear-gradient(135deg, #ffbf1d, #ff5bd7);
}

.guided-mode .item-card.guided-unlocked span {
  color: #8424ff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.guided-mode .item-card.guided-unlocked img { max-height: 50px; }

.guided-mode .item-card.guided-unlocked b,
.guided-mode .item-card.guided-unlocked strong {
  font-size: 11px;
}

.guided-mode .item-card.guided-unlocked em { color: #6c6259; font-size: 8px; }

.guided-mode .mission-card { width: 238px; top: 76px; }

.guided-mode .mission-card:before {
  content: attr(data-step);
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  color: #2b1807;
  background: linear-gradient(180deg, #ffe071, #ffad24);
  box-shadow: 0 7px 16px rgba(0,0,0,.28);
  font-size: 10px;
  font-weight: 900;
}

.level-rule-badge {
  position: absolute;
  z-index: 43;
  left: 50%;
  top: 148px;
  transform: translateX(-50%);
  max-width: 260px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff7c4;
  background: rgba(25,23,20,.78);
  border: 1px solid rgba(255,215,106,.34);
  box-shadow: 0 8px 18px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.guided-mode .mission-card h1 { font-size: 20px; }

.guided-mode .play-area {
  top: 27%;
  height: 45%;
  pointer-events: auto;
  cursor: crosshair;
}

.guided-mode .role-zone.active {
  border-style: solid;
  border-width: 3px;
  background: rgba(68,255,105,.18);
  box-shadow: 0 0 22px rgba(73,255,95,.68), inset 0 0 18px rgba(73,255,95,.22);
  animation: guidedTargetPulse 1.35s ease-in-out infinite;
  z-index: 999;
  pointer-events: auto;
  cursor: pointer;
}

.guided-mode .role-zone.active:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,255,137,.65), rgba(124,255,137,0) 68%);
  animation: guidedMagnetPulse 1s ease-in-out infinite;
}

.guided-mode .role-zone.acceptable,
.guided-mode .role-zone.blocked {
  border-color: #ff456d;
  background: rgba(255,69,109,.14);
  box-shadow: 0 0 18px rgba(255,69,109,.48);
}

.guided-mode .role-zone span,
.guided-mode #roleZoneText {
  color: #fff;
  text-shadow: 0 2px 7px rgba(0,0,0,.55);
}

.guided-mode .placement-grid.active { display: none; }

.guided-mode .furniture:not(.locked) {
  outline: 2px solid rgba(255,255,255,.72);
  border-radius: 10px;
  cursor: grab;
  transition: filter .12s ease, outline-color .12s ease;
  touch-action: none;
  user-select: none;
}

.guided-mode .furniture.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 18px 14px rgba(0,0,0,.4)) brightness(1.05);
  outline-color: rgba(255,255,255,.95);
}

.guided-mode .furniture.near-target {
  outline-color: #84ff90;
  filter: drop-shadow(0 0 16px rgba(90,255,110,.78)) drop-shadow(0 18px 14px rgba(0,0,0,.38));
}

.guided-mode .furniture:not(.locked).invalid { outline-color: #ff456d; }

.guided-mode .furniture.locked {
  outline: 0;
  filter: drop-shadow(0 16px 12px rgba(0,0,0,.42)) saturate(1.05);
  animation: guidedLockBounce .48s ease-out;
}

.guided-mode .tip-bar {
  width: 282px;
  bottom: 210px;
  text-align: center;
}

.guided-mode .guided-gesture { bottom: 28%; background: rgba(18,17,16,.9); }

@keyframes guidedTargetPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(73,255,95,.48)); }
  50% { filter: drop-shadow(0 0 16px rgba(73,255,95,.92)); }
}

@keyframes guidedMagnetPulse {
  0%, 100% { opacity: .52; transform: translate(-50%, -50%) scale(.85); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.28); }
}

@keyframes guidedCardIn {
  0% { opacity: 0; transform: translateX(28px) scale(.92); }
  58% { opacity: 1; transform: translateX(-4px) scale(1.04); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes guidedLockBounce {
  0% { transform: translate(-50%, -100%) scale(.92); }
  55% { transform: translate(-50%, -100%) scale(1.06); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

@media (max-height: 860px) {
  .guided-mode .mission-card { top: 64px; width: 220px; }
  .level-rule-badge { top: 126px; max-width: 230px; font-size: 10px; }
  .guided-mode .play-area { top: 24%; height: 48%; }
  .guided-mode .catalog { height: 120px; bottom: 10px; }
  .guided-mode .cards { height: 100px; grid-template-columns: 1fr 112px; }
  .guided-stepper span { min-height: 48px; font-size: 9px; }
  .guided-mode .item-card.guided-unlocked { width: 112px; height: 100px; }
  .guided-mode .item-card.guided-unlocked img { max-height: 40px; }
  .guided-mode .tip-bar { bottom: 184px; }
  .guided-mode .side-right { bottom: 200px; }
  .guided-mode #rotateBtn { width: 56px; height: 56px; }
}
