html body .nice-catalog-item .iron-card-art{background:radial-gradient(ellipse at center,#b5975220,transparent 80%),#131b20}
html body .nice-catalog-item .iron-card-art>img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;filter:none!important}
html body .nice-catalog-item .iron-catalog-card{border-color:#9c814a;background:#172127}
html body .nice-catalog-item .iron-card-copy>strong{font-size:clamp(13px,3.6vw,18px);white-space:normal;line-height:1.15}
.nice-games-dialog{position:fixed;inset:0;width:min(100vw,900px);height:100dvh;max-width:100vw;max-height:100dvh;margin:0 auto;padding:0;border:1px solid #847044;background:#10191e;color:#ebd7a8;overflow:hidden;box-sizing:border-box}
.nice-games-dialog::backdrop{background:#080d12ed;backdrop-filter:none;-webkit-backdrop-filter:none}
.nice-games-dialog[open]{display:flex;flex-direction:column}
.nice-games-dialog>header{height:54px;min-height:54px;display:flex;gap:12px;align-items:center;padding:0 12px;box-sizing:border-box;border-bottom:1px solid #897344;background:#172127}
.nice-games-dialog>header button{width:38px;height:38px;padding:0;border:1px solid #897344;border-radius:10px;background:#19242b;color:#eed49a;font-size:26px}
.nice-games-dialog>header span{display:grid;gap:3px}
.nice-games-dialog>header small{font-size:9px;letter-spacing:1.5px;color:#b9a472}
.nice-games-dialog>header b{font-size:16px}
#nice-games-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:#10191e}
.nice-game-stage{position:relative;flex:1;min-height:0;overflow:hidden}
.nice-game-stage>#nice-games-frame{height:100%}
.nice-game-loader{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;box-sizing:border-box;background:#101319;color:#e9e6df;text-align:center;font:14px/1.5 system-ui,-apple-system,sans-serif}
.nice-game-loader[hidden]{display:none!important}
.nice-load-mark{display:grid;place-items:center;width:68px;height:68px;border:1px solid #b58b4a80;border-radius:50%;color:#dfc08b;background:#1a2028;font-size:30px}
.nice-load-brand{font-size:26px;font-weight:700;letter-spacing:5px;color:#dfc08b}
.nice-game-loader progress{width:min(260px,80%);height:7px;border:0;border-radius:8px;overflow:hidden;accent-color:#dfc08b;background:#30343c}
.nice-game-loader p{max-width:310px;min-height:36px;margin:0;color:#a5acb6;font-size:12px}
.nice-game-loader button{min-height:44px;padding:10px 20px;border:1px solid #b58b4a80;border-radius:12px;background:#25282e;color:#eed9b6;font:600 13px system-ui}
.nice-game-loader button[hidden]{display:none}
.nice-games-dialog>header [data-nice-round-status]{font-size:10px;letter-spacing:0;line-height:1.1;color:#eed49a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nice-games-dialog>header [data-nice-round-status][hidden]{display:none}
.nice-limit-row{display:grid;grid-template-columns:1fr 110px;gap:10px;align-items:center;padding:6px 0;font-size:13px}
.nice-limit-row input{min-width:0;width:100%;box-sizing:border-box}
.nice-games-dialog>header>span{flex:1;min-width:0}.nice-games-dialog>header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nice-games-dialog>header [data-nice-favorite],.nice-games-dialog>header [data-nice-audio]{width:36px;min-width:36px;font-size:21px}.nice-games-dialog>header [data-nice-favorite][aria-pressed=true]{color:#ffe099;background:#504020}

/* The host consumes navigation space once; inner games receive the remaining height. */
html body dialog.nice-games-dialog,html body dialog.nice-games-dialog.has-bottom-nav{inset:var(--nice-viewport-top,0px) 0 auto;height:var(--nice-viewport-height,100dvh)!important;max-height:var(--nice-viewport-height,100dvh)!important;margin:0 auto!important;max-width:100vw;padding:0!important;}
html body dialog.nice-games-dialog.has-bottom-nav{padding-bottom:var(--iron-bottom-nav-space,60px)!important}
.nice-games-dialog>header{height:50px;min-height:50px;gap:7px;padding:0 8px}.nice-games-dialog>header [data-nice-proof]{width:34px;min-width:34px;font-size:18px}.nice-games-dialog>header b{font-size:14px}.nice-games-dialog>header small{font-size:8px;letter-spacing:1px}.nice-games-dialog>header>button{flex-shrink:0}

html body dialog.nice-games-dialog{width:min(100%,900px)!important;max-width:100%!important}

/* Imported covers share the native slots' proportions and compact copy block. */
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-catalog-card{min-height:0;height:100%;background:linear-gradient(125deg,#101719,#080e10);border-color:#8f7139}
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-card-art{flex:0 0 auto;width:100%;height:auto;min-height:0;aspect-ratio:1;display:grid;place-items:center;background:#101719}
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-card-art>img{position:absolute;inset:0;object-fit:contain!important}
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-card-copy{flex:1;gap:10px;padding:12px 10px;min-height:0}
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-card-copy>strong{font:800 16px/1.2 system-ui,sans-serif;min-height:38px;color:#f0e4c5}
#screen[data-section=games] #slot-previews .nice-catalog-item .iron-card-cta{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;margin-top:auto;background:linear-gradient(125deg,#252823,#1b211f);border:1px solid #89713e;color:#e7c77b;font:800 12px/1.2 system-ui;min-height:36px}

/* A native game owns the play surface; shared site navigation returns on exit. */
html body dialog.nice-games-dialog,html body dialog.nice-games-dialog.has-bottom-nav{width:100vw!important;max-width:100vw!important;padding-bottom:0!important;border:0}
html body dialog.nice-games-dialog>.home-bottom{display:none!important;visibility:hidden!important}
.nice-games-dialog>header [data-nice-fullscreen]{width:32px;min-width:32px;font-size:20px}
.nice-games-dialog>header{display:grid!important;grid-template-columns:38px minmax(0,1fr) repeat(4,32px);gap:6px;padding-inline:8px;width:100%;min-width:0}
.nice-games-dialog>header>button{width:32px!important;min-width:32px!important;max-width:32px;box-sizing:border-box}
.nice-games-dialog>header>button:first-child{width:38px!important;min-width:38px!important;max-width:38px}
html:has(body.iron-nice-game-open){scrollbar-gutter:auto}
html body dialog.nice-games-dialog{gap:0!important}

/* Pause the covered catalog while the native game owns the full viewport. */
body.iron-nice-game-open>:is(main.app,#screen,#developer,.home-bottom){visibility:hidden!important}
body.iron-nice-game-open>:is(main.app,#screen,#developer,.home-bottom),body.iron-nice-game-open>:is(main.app,#screen,#developer,.home-bottom) *{animation-play-state:paused!important}

/* Consume device/Telegram navigation insets once, outside every game iframe.
   A keyboard or already-reduced viewport has already consumed covered-bottom. */
html body dialog.nice-games-dialog,html body dialog.nice-games-dialog.has-bottom-nav{padding-bottom:max(0px,calc(max(var(--nice-safe-bottom,0px),env(safe-area-inset-bottom,0px)) - var(--nice-covered-bottom,0px)))!important;padding-left:max(var(--nice-safe-left,0px),env(safe-area-inset-left,0px))!important;padding-right:max(var(--nice-safe-right,0px),env(safe-area-inset-right,0px))!important}

/* Personal round totals stay in view until dismissed or another wager is accepted. */
.nice-personal-result{position:absolute;z-index:15;top:12px;left:50%;transform:translateX(-50%);width:min(350px,calc(100% - 24px));box-sizing:border-box;padding:16px 46px 16px 16px;border:1px solid #bb9a58;border-radius:16px;background:#17272af5;color:#f4e7c9;box-shadow:0 8px 30px #0008;display:grid;gap:7px;text-align:center}
.nice-personal-result[hidden]{display:none!important}.nice-personal-result>b{font-size:clamp(20px,6vw,30px);overflow-wrap:anywhere;color:#87e3ae;font-variant-numeric:tabular-nums}.nice-personal-result[data-outcome=lose]>b{color:#efaa94}.nice-personal-result>strong{font:700 15px system-ui}.nice-personal-result>small{font:12px/1.5 system-ui;color:#d2cfbc;overflow-wrap:anywhere}.nice-personal-result>button{position:absolute;right:2px;top:2px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:#efdfbb;font:26px system-ui}

/* Approved D1 imported catalog cards: artwork is separate from live controls. */
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-catalog-card{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;grid-template-columns:none;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;border:1px solid #d3a85c;border-radius:16px;background:linear-gradient(140deg,#1b2325,#0c1417);box-shadow:inset 0 1px #fce0a52b,0 5px 16px #0004;color:#fff0d2;text-align:center}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-art{order:0;position:relative;inset:auto;grid-column:auto;grid-row:auto;display:block;flex:1 0 auto;width:100%;height:auto;min-height:0;aspect-ratio:4/3;overflow:hidden;opacity:1;background:#11191b}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-art>img{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;filter:none!important}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-art>img[hidden]{display:none!important}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-copy{order:1;position:static;grid-column:auto;grid-row:auto;display:flex;flex:0 0 auto;flex-direction:column;align-items:stretch;gap:8px;width:100%;height:auto;min-height:0;padding:9px 10px 11px;box-sizing:border-box;border-top:1px solid #b68c4738;background:linear-gradient(135deg,#1b272b,#0e171a)}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-copy>strong{display:flex;align-items:center;justify-content:center;min-height:38px;margin:0;padding:0;width:100%;font:800 clamp(14px,3.7vw,18px)/1.15 system-ui,-apple-system,Segoe UI,sans-serif;color:#fff0d2;white-space:normal;overflow-wrap:anywhere;word-break:normal}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-width:0;min-height:40px;margin:0;padding:8px 10px;box-sizing:border-box;border:1px solid #f4cf7d;border-radius:9px;background:linear-gradient(125deg,#c28a32 0%,#f8d781 43%,#ddb158 62%,#ac752a 100%);box-shadow:inset 0 1px 2px #fff4c580,0 2px 5px #0004;color:#17160f;font:800 14px/1.2 system-ui,sans-serif;text-align:center;white-space:normal}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-tag{position:absolute;z-index:3;left:8px;top:8px;max-width:calc(100% - 58px);align-self:auto;padding:4px 7px;border:1px solid #cda65e;border-radius:8px;background:#11191be8;color:#f5dfb1;font:750 9px/1.2 system-ui,sans-serif;letter-spacing:.3px;text-transform:uppercase;visibility:visible}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item>.iron-catalog-favorite{border-color:#cda65e;background:#11191be8;color:#f5dfb1}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-catalog-card:focus-visible{outline:2px solid #ffe1a0;outline-offset:3px}
@media(max-width:350px){html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-copy{padding:8px;gap:7px}html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-copy>strong{font-size:13px;min-height:34px}html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-cta{min-height:38px;font-size:13px}}

/* Keep imported cards compact beside taller in-house cards; never stretch their artwork. */
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item{align-self:start}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-catalog-card{height:auto}
html body #screen[data-section=games] #slot-previews.iron-cover-lobby .nice-catalog-item .iron-card-art{flex:0 0 auto}
