/* Premium standalone iframe presentation for third-party portals. */
html,body{margin:0;width:100%;height:100%;min-height:0;overflow:hidden}
body.embed-page{display:flex;flex-direction:column;min-height:0;height:100vh;height:100dvh;color:#e9f4ff;background:radial-gradient(circle at top,#102147 0%,#071126 52%,#040916 100%);font-family:Outfit,system-ui,-apple-system,sans-serif}
.embed-game-shell{box-sizing:border-box;display:flex;flex:1 1 auto;min-height:0;flex-direction:column;padding:8px 8px 0}
.embed-page .game-layout{width:100%!important;flex:1 1 auto;min-height:0;display:flex;margin:0!important;max-width:none!important}
.embed-page .game-card{width:100%;display:flex;min-height:0;flex-direction:column;flex:1 1 auto;border:1px solid rgba(116,204,255,.6)!important;border-radius:18px 18px 0 0;overflow:hidden;box-shadow:0 16px 52px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.05);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01))}
.embed-page .game-card .hud{flex:0 0 auto;min-height:0;padding:8px;background:linear-gradient(180deg,#7fd1ff 0%,#64b7ff 100%)!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:7px;border-bottom:1px solid rgba(4,13,30,.18)}
.embed-page .game-card .hud>.stat:nth-child(4),.embed-page .game-card .hud>.stat:nth-child(5){display:none!important}
.embed-page .game-card .hud .stat{padding:6px 8px;min-width:0;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 2px 10px rgba(10,22,43,.12)}
.embed-page .stat-label{font-size:9px;letter-spacing:.12em}
.embed-page .stat-value{font-size:clamp(12px,2vw,19px)}
.embed-page .hud-actions{display:flex;gap:5px;margin:0}
.embed-page .hud-actions .icon-btn{width:40px;height:42px;min-height:42px;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 2px 10px rgba(10,22,43,.12)}
.embed-page .arena-wrap,.embed-page #arenaWrap{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;flex:1 1 auto;width:100%;position:relative;background:linear-gradient(180deg,#081327 0%,#060f22 100%)}
.embed-page #gameCanvas{width:100%;height:100%}
.embed-page .game-foot,.embed-page .game-mode-ribbon{display:none!important}
.embed-page .save-score-panel,.embed-page .save-score-panel.visible{display:none!important}
.embed-page .arena-overlay{padding:16px}
.embed-page .overlay-card{padding:22px 18px;max-height:calc(100% - 4px);width:min(360px,100%);border-radius:24px;background:linear-gradient(180deg,rgba(250,252,255,.97),rgba(234,241,252,.96));box-shadow:0 28px 80px rgba(4,11,26,.46),inset 0 1px 0 rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.65)}
.embed-page .overlay-card h2{font-size:clamp(24px,4vw,34px);line-height:.98}
.embed-page .overlay-card p{font-size:14px;margin-bottom:14px;line-height:1.5;color:#687694}
.embed-page .overlay-kicker{color:#1597b6;letter-spacing:.16em}
.embed-page .overlay-card .primary-btn{box-shadow:0 12px 28px rgba(120,166,255,.28),inset 0 1px 0 rgba(255,255,255,.65)}
.embed-page .start-hint{font-size:11px;color:#60708f}
.embed-brand-footer{box-sizing:border-box;flex:0 0 auto;display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:39px;padding:7px 14px;background:linear-gradient(180deg,#0b1730 0%,#0a162c 100%);border-top:1px solid rgba(108,170,255,.28);color:#8ea7cc;font-size:11px;font-weight:700}
.embed-brand-footer strong{color:#9cdef6;letter-spacing:.12em;font-size:10px}
.embed-brand-footer a{color:#9bddff;text-decoration:none;white-space:nowrap}
.embed-brand-footer a:hover{text-decoration:underline}
.embed-only-support{display:none!important}
@media(max-width:720px){
  .embed-game-shell{padding:0}
  .embed-page .game-card{border-radius:0}
  .embed-page .game-card .hud{grid-template-columns:repeat(3,minmax(0,1fr)) repeat(3,36px);gap:4px;padding:6px}
  .embed-page .game-card .hud>.stat{padding:5px 4px;border-radius:12px}
  .embed-page .game-card .hud-actions{display:contents}
  .embed-page .hud-actions .icon-btn{width:36px;height:38px;min-height:38px;border-radius:12px}
  .embed-page .game-card .hud .stat-value{font-size:clamp(11px,2.8vw,14px)}
  .embed-page .game-card .hud .stat-label{font-size:8px}
  .embed-page .overlay-card{padding:18px 16px;border-radius:20px}
  .embed-page .overlay-card p{font-size:13px}
  .embed-brand-footer{min-height:34px;padding:4px 9px;font-size:10px}
}
@media(max-height:430px){.embed-page .overlay-card{padding:11px 12px}.embed-page .overlay-card p{margin-bottom:8px}.embed-page .start-hint{display:none}.embed-brand-footer{min-height:28px}}
@media(prefers-reduced-motion:reduce){.embed-page *{transition:none!important;animation:none!important}}

/* Distributor-specific polish: frameless on small embeds, readable overlays. */
.embed-page .overlay-card{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.embed-page .overlay-card h2{line-height:1.06;letter-spacing:-.044em}
.embed-page .primary-btn{min-height:50px;border-radius:14px}
.embed-page .start-hint{line-height:1.35}
.embed-mobile-tip{display:none;color:#60728f;font-size:12px;margin-top:10px}
.embed-page.partner-playkovo .embed-brand-footer{display:none}
.embed-page.partner-playkovo .embed-game-shell{padding-bottom:0}
.embed-page.partner-playkovo .game-card{border-radius:14px}
@media(max-width:720px){
 .embed-page .start-hint{display:none}
 .embed-mobile-tip{display:block}
 .embed-page.partner-playkovo .game-card{border-radius:0}
}
@media(max-height:490px){
 .embed-page .overlay-card{padding:12px 16px}
 .embed-page .overlay-card h2{font-size:24px}
 .embed-page .overlay-card p{font-size:12px;line-height:1.35;margin-bottom:9px}
 .embed-page .primary-btn{min-height:39px}
 .embed-mobile-tip{display:none}
}
