html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#101019;color:white;font:12px system-ui}body{display:flex;flex-direction:column}header{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;padding:7px 12px;background:#251735;flex-shrink:0}header b{color:#f0b5ff}header label{display:flex;align-items:center;gap:7px}select,button{font:inherit;color:#fff;background:#4c2d69;border:1px solid #8967a9;border-radius:4px;padding:5px}select{max-width:280px}button{cursor:pointer}header a{color:#e5baf8}#balance{margin-left:auto}#hint{background:#352344;color:#ecdcf7;padding:6px 12px;font-size:11px}iframe{width:100%;min-height:0;flex:1;border:0}#error,#notice{position:fixed;top:110px;left:10%;right:10%;padding:18px;background:#301c40f5;border:1px solid #edc2ff;white-space:pre-wrap;z-index:10}#error{color:#ffd1d1}#dismiss{float:right;margin-left:10px}@media(max-width:600px){header{gap:5px 8px;padding:5px 8px}header b{font-size:11px}header label{flex:1}select{max-width:210px}#hint{font-size:10px}}

iframe.portrait{max-width:390px;align-self:center;width:100%}
@media(max-aspect-ratio:1/1){iframe{max-width:390px;align-self:center}}

/* Player pages reserve the full viewport for the native game. */
header[hidden],#hint[hidden]{display:none}

/* Player-facing Push Gaming error dialog, aligned with the original game layout. */
#error[hidden]{display:none}
#error{position:fixed;inset:0;z-index:40;padding:0;color:#fff;background:rgba(0,0,0,.79);backdrop-filter:blur(5px);border:0;white-space:normal}
#error .error-dialog{position:absolute;inset:0;padding:148px 22px 48px;color:#fff;text-align:center;background:transparent;box-shadow:none}
#error h2{margin:0 0 114px;font-size:60px;line-height:1;font-weight:800;letter-spacing:-.04em}
#error p{margin:0 0 94px;font-size:clamp(28px,3vw,40px);line-height:1.22;font-weight:400;white-space:nowrap}
#error button{width:min(383px,100%);min-height:96px;border:0;border-radius:0;color:#fff;background:rgba(255,255,255,.20);font:inherit;font-size:37px;cursor:pointer;transition:background .16s ease,transform .16s ease}
#error button:hover{background:rgba(255,255,255,.30)}
#error button:focus-visible{outline:2px solid #fff;outline-offset:4px}
#error button:active{transform:scale(.985)}
@media(max-width:900px){#error .error-dialog{padding-top:13vh}#error h2{margin-bottom:13vh;font-size:clamp(46px,8vw,60px)}#error p{margin-bottom:12vh;white-space:normal;font-size:clamp(25px,5vw,38px)}#error button{min-height:76px;font-size:32px}}
