.play-area {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 48px);
}

.play-stage {
  width: min(100%, 1180px);
  overflow: hidden;
  border: 1px solid #65715d;
  border-radius: 17px;
  background: #14382b;
  box-shadow: 0 20px 52px #0b0e0cb3;
}

.game-frame {
  display: block;
  width: 100%;
  height: clamp(315px, 76vh, 720px);
  height: clamp(315px, 76dvh, 720px);
  border: 0;
  background: #14382b;
}

.play-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: 4px 12px;
  border-top: 1px solid #3b4a3c;
  background: #212c23;
}

.play-brand, .play-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-brand {
  font-size: .91rem;
  font-weight: 650;
  min-width: 0;
}

.play-brand img { border-radius: 6px; }
.play-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #18231c;
  color: var(--ink);
  font-size: .83rem;
  text-wrap: balance;
  line-height: 1.2;
}

.play-button .site-icon { width: 17px; height: 17px; color: var(--gold); }
.play-button:hover { border-color: #68765e; color: var(--gold); }
.play-button:focus-visible { outline-offset: -2px; }
.play-support { display: none; }
.game-expanded .play-support { display: inline-flex; min-width: 44px; }

body.game-expanded { overflow: hidden; }
.play-stage:is(.is-expanded, :fullscreen) {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.play-stage:is(.is-expanded, :fullscreen) .game-frame { height: 100%; max-height: none; }
.play-stage:is(.is-expanded, :fullscreen) .play-controls {
  padding: 4px max(12px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body.game-expanded .site-drawer {
  inset-inline-start: 0;
  width: min(326px, calc(100vw - 16px));
  padding-inline-start: env(safe-area-inset-left);
}

@media (max-width: 680px) {
  .play-area {
    padding: calc(7px + env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) 7px;
  }

  .play-stage { border-radius: 11px; }
  .play-controls { padding-inline: 7px; }
  .play-actions { gap: 4px; }
  .play-actions { max-width: 79%; }
  .play-button { gap: 4px; padding-inline: 6px; }
  .game-frame {
    height: auto;
    aspect-ratio: 760 / 1650;
    max-height: max(290px, calc(100vh - 70px));
    max-height: max(290px, calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  }
}

@media (max-width: 360px) {
  .play-brand span { display: none; }
}
