/* Shared iframe play port — splash floor + match pages. */

.play-port {
  display: none;
  flex-direction: column;
  min-height: 0;
  background: #000;
  border: 1px solid var(--g3, #333);
}
.play-port.open { display: flex; }

.play-port-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  background: var(--g2, #16181c);
  border-bottom: 1px solid var(--g3, #333);
  font-family: var(--font-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--meta, #888);
  flex-shrink: 0;
}
.play-port-label {
  color: var(--signal, #eee);
  letter-spacing: .16em;
}
.play-port-hint {
  margin-right: auto;
  opacity: .7;
  font-weight: 600;
  letter-spacing: .08em;
}
.play-port-toolbar button,
.play-port-toolbar a {
  border: 1px solid var(--g4, #2a2e34);
  background: var(--g3, #1c2026);
  color: var(--prose, #ccc);
  font: inherit;
  letter-spacing: .12em;
  padding: 3px 8px;
  text-decoration: none;
  cursor: pointer;
}
.play-port-toolbar button:hover,
.play-port-toolbar a:hover {
  color: #fff;
  background: var(--g5-hot, #2c323a);
}

.play-port-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  background: #000;
}
.play-port-mount {
  position: absolute;
  inset: 0;
}
.play-port-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.play-port-ready {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 24px;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 6, 8, .88) 78%);
  pointer-events: none;
}
.play-port-ready[hidden] { display: none !important; }
.play-port-ready b {
  font-family: var(--font-ui, sans-serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--live, #e85);
}
.play-port-vs {
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: .95;
  letter-spacing: .03em;
  color: #fff;
  text-transform: uppercase;
}
.play-port-map {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan, #8cf);
}
.play-port-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  pointer-events: auto;
}
.play-port-ready-actions form { display: contents; }
.play-port-enter,
.play-port-keep {
  border: 1px solid;
  padding: 10px 16px;
  font-family: var(--font-ui, sans-serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.play-port-enter {
  background: var(--red-face, #c22);
  border-color: var(--red-hi, #e66) var(--red-lo, #800) var(--red-lo, #800) var(--red-hi, #e66);
  color: #fff;
}
.play-port-enter:hover { background: var(--red-face-hot, #d33); }
.play-port-keep {
  background: transparent;
  border-color: var(--edge-hot, #555);
  color: var(--signal, #eee);
}
.play-port-keep:hover { background: var(--g3, #1c2026); }

.play-port:fullscreen,
.play-port:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}
.play-port:fullscreen .play-port-stage,
.play-port:-webkit-full-screen .play-port-stage {
  min-height: 0;
  height: calc(100% - 36px);
}

.play-port-panel {
  margin: 22px 0 0;
}
.play-port-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.play-port-panel-head h2 {
  margin: 0;
  font-family: var(--font-display, sans-serif);
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.play-port-panel .play-port {
  min-height: 420px;
  aspect-ratio: 16 / 9;
}
.play-port-panel .play-port.open { min-height: 0; }
