/* V131 — same-page third-party game shell (1goplus header + iframe) */

html.co-play-open,
html.co-play-open body {
  overflow: hidden;
  background: #000;
}

html.co-play-open #app {
  visibility: hidden !important;
}

.co-play {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.co-play *,
.co-play *::before,
.co-play *::after {
  box-sizing: border-box;
}

.co-play-header {
  flex: 0 0 56px;
  height: 56px;
  width: 100%;
  background: #000;
  border: 0;
  color: #fff;
}

.co-play-header-inner {
  width: 100%;
  max-width: 10rem;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.co-play-header-left,
.co-play-header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.co-play-header-left {
  gap: 4px;
}

.co-play-header-right {
  gap: 14px;
}

.co-play-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.co-play-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-play-btn.is-on svg {
  fill: #f5c542;
  stroke: #f5c542;
}

.co-play-deposit {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7CFFB2;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.co-play-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.co-play-frame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 10rem;
  height: 100%;
  border: 0;
  background: #000;
}

.co-play-loading {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 10rem;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.co-play-loading::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: #3ee0a0;
  animation: co-play-load 0.9s ease-in-out infinite;
}

.co-play.is-ready .co-play-loading {
  display: none;
}

.co-play-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  text-align: center;
  color: #9aa4b5;
  font-size: 0.26rem;
}

.co-play.is-empty .co-play-empty {
  display: flex;
}

.co-play.is-empty .co-play-loading,
.co-play.is-empty .co-play-frame {
  display: none;
}

@keyframes co-play-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
