/* Play page layout — toolbar + embed frame + fullscreen states */

.play-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.play-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  background: rgba(21, 19, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-grime);
}

.play-toolbar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.play-toolbar__back {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--bone-dim);
  white-space: nowrap;
}

.play-toolbar__back:hover,
.play-toolbar__back:focus-visible {
  color: var(--rust);
}

.play-toolbar__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fullscreen-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.play-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 0;
}

.game-frame {
  position: relative;
  width: 100%;
  max-width: 78rem;
  height: min(78vh, 900px);
  background: #0a0906;
  border: 2px solid var(--verdigris-dim);
  border-radius: 2px;
  box-shadow:
    0 0 0 6px var(--umber),
    0 0 0 7px var(--steel-dim),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* corner bolts — supply-crate viewport detail */
.game-frame::before,
.game-frame::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verdigris-dim);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  z-index: 2;
  top: 10px;
}

.game-frame::before {
  left: 10px;
}

.game-frame::after {
  right: 10px;
}

.game-frame__badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(21, 19, 15, 0.85);
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  padding: 0.25em 0.6em;
}

.game-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0906;
}

.game-frame__iframe:fullscreen {
  border-radius: 0;
}

.game-frame__iframe:-webkit-full-screen {
  border-radius: 0;
}

.play-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--steel-dim);
  padding: 0 1.5rem 2rem;
}
