/* [dscast_game]: a poster that starts the game (popup window on PC, full page on phones) */
.dscast-embed { margin: 1.5em 0; }
.dscast-embed__stage { position: relative; aspect-ratio: var(--dscast-aspect, 16/9); background: #000; border-radius: 2px; overflow: hidden; }
.dscast-embed__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.dscast-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.dscast-embed__poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s, transform .4s; }
.dscast-embed__poster:hover img, .dscast-embed__poster:focus-visible img { opacity: 1; transform: scale(1.02); }
.dscast-embed__start { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); padding: .5em 1.2em; background: rgba(0,0,0,.7); color: #fff; font: 700 clamp(14px, 2.4vw, 22px)/1 "Press Start 2P", "Oswald", sans-serif; letter-spacing: .12em; white-space: nowrap; border: 2px solid var(--dscast-accent, #ff3d7f); border-radius: 2px; animation: dscast-blink 1.1s steps(2, start) infinite; }
@keyframes dscast-blink { to { visibility: hidden; } }
.dscast-embed__bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.dscast-embed__btn { width: 13em; padding: .6em 0; text-align: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--dscast-accent, #ff3d7f); border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; }
.dscast-embed__btn:hover { filter: brightness(1.1); }
@media (max-width: 767px) { .dscast-embed__btn { flex: 1; width: auto; } }

/* PC-only / phone-only text (embed.js puts .dscast-is-pc on <html>) */
.dscast-pc { display: none; }
.dscast-is-pc .dscast-pc { display: inline; }
.dscast-is-pc .dscast-sp { display: none; }

/* the window size select */
.dscast-size { display: inline-flex; align-items: center; gap: .5em; font-size: 13px; }
.dscast-size[hidden] { display: none; }
.dscast-size__sel { padding: .45em .6em; font: inherit; color: inherit; background: rgba(0, 0, 0, .35); border: 1px solid currentColor; border-radius: 2px; }
.dscast-size__sel option { color: #111; background: #fff; }
html:not(.dscast-is-pc) .dscast-size { display: none; }

/* shown when the browser blocks the popup */
.dscast-blocked { flex-basis: 100%; margin: 6px 0 0; padding: .6em .8em; font-size: 13px; background: rgba(255, 210, 63, .14); border-left: 3px solid #ffd23f; }
.dscast-blocked a { margin-left: .5em; font-weight: 700; color: inherit; }
