/* Explicit display choice. Games share the same logical viewport as this frame. */
html[data-display-mode=mobile]{overflow:hidden!important;background:#151b25!important}
html[data-display-mode=mobile] body{position:relative!important;width:var(--rplay-device-width)!important;max-width:100vw!important;height:var(--rplay-device-height)!important;max-height:100dvh!important;min-height:0!important;margin:var(--rplay-device-top) auto 0!important;transform:translateZ(0);contain:layout paint;overflow:auto!important}
html[data-display-framed=true] body{border-radius:24px;box-shadow:0 0 0 1px #a8884d55,0 20px 65px #0008}
html[data-display-mode=mobile] .tx-v2,html[data-display-mode=mobile] [data-xd-v2]{height:100%;min-height:0}
.display-settings{margin:24px 0;padding:18px;border:1px solid #c7a15c44;border-radius:16px;background:#101720}
.display-settings h3{margin:0 0 12px}.display-choices{display:flex;gap:6px;padding:5px;border-radius:12px;background:#050a11}
.display-choices button{flex:1;min-height:48px;padding:10px;border:1px solid transparent;border-radius:9px;background:none;color:#e9e0ce;font:inherit;cursor:pointer}
.display-choices button[aria-pressed=true]{background:#deb964;color:#171109;border-color:#ffe8b1;font-weight:700}
.display-choices button:focus-visible{outline:3px solid #fff1b7;outline-offset:2px}.display-settings p{font-size:12px;line-height:1.6;color:#bfb49f;margin:12px 0 0}
html[data-display-mode=mobile] .sidebar{transform:translateX(-100%);width:230px;transition:.2s}
html[data-display-mode=mobile] .sidebar.open{transform:none}
html[data-display-mode=mobile] .main-wrap{margin-left:0;width:100%}
html[data-display-mode=mobile] .mobile-menu{display:block}
html[data-display-mode=mobile] .top-tagline,html[data-display-mode=mobile] .profile-pill span:not(.avatar){display:none}
html[data-display-mode=mobile] .topbar{padding:0 12px}
html[data-display-mode=mobile] .content{padding:14px}
html[data-display-mode=mobile] .hero{padding:22px;min-height:auto}
html[data-display-mode=mobile] .hero img{max-height:220px}
html[data-display-mode=mobile] .game-grid{grid-template-columns:1fr}
html[data-display-mode=mobile] .game-card{min-height:240px}
html[data-display-mode=mobile] .game-card img{height:200px}
html[data-display-mode=mobile] .info-grid{grid-template-columns:1fr}
html[data-display-mode=mobile] .wallet-pill strong{font-size:11px}
html[data-display-mode=mobile] body.sidebar-open{overflow:hidden!important}
html[data-display-mode=mobile] .sidebar{width:min(280px,calc(100vw - 48px));visibility:hidden;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
html[data-display-mode=mobile] .sidebar.open{visibility:visible}
html[data-display-mode=mobile] .sidebar nav span,html[data-display-mode=mobile] .sidebar .brand span{display:inline}
html[data-display-mode=mobile] .sidebar nav a{justify-content:flex-start;min-height:48px}
html[data-display-mode=mobile] .sidebar .brand{padding-right:34px;font-size:20px}
html[data-display-mode=mobile] .sidebar-close{display:grid;place-items:center;position:absolute;right:12px;top:max(24px,env(safe-area-inset-top));width:40px;height:40px;border:1px solid #594421;border-radius:10px;color:#ffe0a0;background:#1a150c;font-size:28px;cursor:pointer}
html[data-display-mode=mobile] .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:19;width:100%;height:100%;padding:0;border:0;background:#0009;cursor:pointer}
html[data-display-mode=mobile] .sidebar.sidebar--v26{width:min(300px,calc(100vw - 40px));padding:calc(22px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));box-shadow:16px 0 55px #0008}
html[data-display-mode=mobile] .sidebar--v26~.main-wrap{margin-left:0;width:100%}
html[data-display-mode=mobile] .sidebar--v26 .brand{padding:0 42px 16px 9px;font-size:24px;gap:10px}
html[data-display-mode=mobile] .sidebar--v26 .brand span,html[data-display-mode=mobile] .sidebar--v26 .sidebar-label{display:block}
html[data-display-mode=mobile] .sidebar--v26 .sidebar-close{display:grid;place-items:center;width:44px;height:44px;right:14px;top:calc(25px + env(safe-area-inset-top));padding:10px;border:1px solid #a5874b40;border-radius:11px;background:#b7903610;color:#e7c987}
html[data-display-mode=mobile] .sidebar--v26 .sidebar-close:hover{background:#d3ab4820;color:#fff0c4}
html[data-display-mode=mobile] .sidebar--v26 nav a.sidebar-game{min-height:80px;font-size:15px}
html[data-display-mode=mobile] .sidebar--v26 .sidebar-account{padding-top:25px}
html[data-display-mode=mobile] .sidebar-backdrop:not([hidden]){background:#000b;backdrop-filter:blur(3px)}
html[data-display-mode=mobile] .app-shell .topbar{height:auto;min-height:116px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px 10px;padding:8px 14px 12px;padding-top:max(8px,env(safe-area-inset-top));background:#0a1119}
html[data-display-mode=mobile] .app-shell .mobile-wordmark{display:block;font-family:Georgia,serif;font-size:25px;letter-spacing:2px;color:#eccb85;font-weight:bold}
html[data-display-mode=mobile] .app-shell .top-actions{display:contents}
html[data-display-mode=mobile] .app-shell .lang-switch{grid-column:3;grid-row:1;margin-right:46px}
html[data-display-mode=mobile] .app-shell .profile-pill{grid-column:3;grid-row:1;justify-self:end;border:0;background:none;padding:0;max-width:36px}
html[data-display-mode=mobile] .app-shell .wallet-pill{grid-column:1 / -1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;border:1px solid #b78c4b;border-radius:12px;background:linear-gradient(120deg,#15202b,#090f15);padding:8px 14px}
html[data-display-mode=mobile] .app-shell .wallet-pill small{font-size:12px;text-transform:uppercase;color:#e3d2ad}
html[data-display-mode=mobile] .app-shell .wallet-pill strong{font-size:18px;color:#efc875;overflow-wrap:anywhere;text-align:right}
html[data-display-mode=mobile] .lobby-heading{margin:0 0 14px;gap:10px}
html[data-display-mode=mobile] .lobby-heading h1{font-size:19px}
html[data-display-mode=mobile] .lobby-grid{gap:7px}
html[data-display-mode=mobile] .lobby-card{padding:5px 5px 10px;border-radius:15px}
html[data-display-mode=mobile] .lobby-card h2{font-size:13px;margin:5px 0 10px}
html[data-display-mode=mobile] .lobby-play{width:94%;font-size:11px;gap:4px;padding:5px 3px;min-height:44px}
html[data-display-mode=mobile] .app-shell .content{padding:16px 12px}
html[data-display-mode=mobile] .app-shell footer{padding:16px 12px;text-align:center}
html[data-display-mode=mobile] .sidebar.sidebar--v26{width:min(300px,calc(var(--rplay-device-width) - 40px));height:100%;max-height:100%}
html[data-display-mode=mobile] .sidebar--v26~.main-wrap{width:100%;margin-left:0}
html[data-display-mode=mobile] .profile-page .info-grid{grid-template-columns:1fr;overflow-wrap:anywhere}
html[data-display-mode=pc] .display-settings{max-width:720px}
