.screen[data-screen="play"] {
  padding: 0;
  flex-direction: column;
}

.screen[data-screen="play"].active {
  display: flex;
}
body[data-screen="play"] .topbar { display: none; }

/* Mission Top Banner */
.mission-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 25;
  backdrop-filter: blur(12px);
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.8vmin, 15px);
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.target-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: clamp(13px, 2vmin, 16px);
  font-weight: 800;
  color: #FFFFFF;
}
.target-pill .icon {
  font-size: 20px;
}

.game-timer {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #F59E0B;
}

/* Arena split into two lanes */
.arena {
  position: absolute;
  inset: 68px 0 0 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.shelf-lane {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: none;
}

.shelf-lane.p1 {
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.08), transparent 70%);
  border-right: 2px solid var(--line);
}
.shelf-lane.p2 {
  background: radial-gradient(circle at 50% 30%, rgba(236, 72, 153, 0.08), transparent 70%);
  border-left: 2px solid var(--line);
}

.lane-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  z-index: 10;
}

.shelf-lane.p1 .who {
  color: #38BDF8;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 16px;
}
.shelf-lane.p2 .who {
  color: #EC4899;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 16px;
}

.lane-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
}

/* Falling zone */
.falling-zone {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Product Card */
.shelf-item {
  position: absolute;
  width: 76px;
  height: 94px;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform .05s ease, box-shadow .15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.shelf-item:active, .shelf-item.dragging {
  cursor: grabbing;
  transform: scale(1.15) !important;
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.4);
  z-index: 50;
}
.shelf-item .item-icon {
  font-size: 34px;
  line-height: 1;
  pointer-events: none;
}
.shelf-item .item-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  pointer-events: none;
}

/* Cart Drop Zone */
.cart-drop-zone {
  height: 110px;
  margin: 10px 16px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 3px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .2s ease;
  pointer-events: none;
}

.shelf-lane.p1 .cart-drop-zone {
  border-color: rgba(56, 189, 248, 0.4);
}
.shelf-lane.p2 .cart-drop-zone {
  border-color: rgba(236, 72, 153, 0.4);
}

.cart-drop-zone.active-drag {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  transform: scale(1.02);
}
.cart-drop-zone.hit-good {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: #22c55e !important;
}
.cart-drop-zone.hit-bad {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
}

.cart-icon {
  font-size: 38px;
  line-height: 1;
}
.cart-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.cart-streak {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}

@media (orientation: portrait) {
  .mission-header {
    height: 60px;
    padding: 0 12px;
  }
  .arena {
    inset: 60px 0 0 0;
    flex-direction: column-reverse;
  }
  .shelf-lane.p1 {
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .shelf-lane.p2 {
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .cart-drop-zone {
    height: 80px;
    margin: 6px 12px 10px;
  }
  .cart-icon { font-size: 28px; }
}
