/* Artwork-led home screen. All member values and routes remain live DOM content. */
:root { --royal-dock-height:clamp(88px,22vw,104px); }
/* Keep the same viewport canvas when switching between long and short pages. */
html:has(.mobile-app:not([hidden])) { overflow-y:scroll; }
@media (min-width:481px) {
 body:has(.mobile-app:not([hidden])) { background-attachment:fixed; }
}
.royal-home[hidden] { display:none !important; }
.mobile-app.lobby-view { background:#001b37; padding-bottom:calc(var(--royal-dock-height) + env(safe-area-inset-bottom,0px)); }
.mobile-app.lobby-view > .header,
.mobile-app.lobby-view > .home-carousel,
.mobile-app.lobby-view > #lobby,
.mobile-app.lobby-view > .site-footer,
.mobile-app.lobby-view > .bottom-nav { display:none !important; }
.mobile-app .royal-home { width:100%; overflow:hidden; background:#001b37; color:#f8df87; container-type:inline-size; }
.mobile-app .royal-home::after { content:""; display:block; height:16px; background:radial-gradient(ellipse at 50% 100%,#17436a66,transparent 70%); }
.mobile-app .royal-home img { display:block; width:100%; height:auto; max-width:none; }
.mobile-app .royal-home img[hidden] { display:none !important; }
.mobile-app .royal-hero { position:relative; }
.mobile-app .royal-brand { position:absolute; z-index:2; left:4.5%; top:.6%; width:31.5%; aspect-ratio:5/2; }
.mobile-app .royal-brand::before { content:""; position:absolute; inset:4% -2% 7% -2%; border-radius:42%; background:linear-gradient(90deg,#001634 0%,#001b3d 78%,#001b3d00 100%); filter:blur(3px); }
.mobile-app .royal-brand .header-logo-animation { position:relative; width:100%; height:100%; transform:none; filter:drop-shadow(0 1px 3px #ffd77466); }
.mobile-app .royal-hero-member,
.mobile-app .royal-member-panel { display:none; }
.mobile-app .royal-home.is-member .royal-hero-guest,
.mobile-app .royal-home.is-member .royal-login-hit { display:none; }
.mobile-app .royal-home.is-member .royal-hero-member,
.mobile-app .royal-home.is-member .royal-member-panel { display:flex; }
.mobile-app .royal-member-panel[hidden] { display:none !important; }
.mobile-app .royal-login-hit,
.mobile-app .royal-member-hit { position:absolute; z-index:2; padding:0; border:0; border-radius:12px; background:transparent; cursor:pointer; }
.mobile-app .royal-login-hit { left:80%; top:4.5%; width:17%; height:15%; }
.mobile-app .royal-member-panel { position:absolute; z-index:3; left:55.58%; top:6.5%; width:42.83%; height:19.5%; align-items:center; gap:3%; padding:2.5% 3%; background:url("assets/royal-mobile/04_member_panel/member_panel_blank.webp") center / 100% 100% no-repeat; color:#f8df87; }
.mobile-app .royal-member-panel .royal-member-avatar { flex:0 0 20%; width:20%; height:auto; aspect-ratio:76/74; object-fit:contain; }
.mobile-app .royal-member-details { display:flex; flex:1; flex-direction:column; justify-content:center; gap:3px; min-width:0; height:100%; text-shadow:0 1px 3px #00152d; }
.mobile-app .royal-member-top { display:flex; align-items:center; justify-content:space-between; gap:3px; min-width:0; }
.mobile-app .royal-member-name { flex:1; min-width:0; overflow:hidden; color:#fff0bd; font-size:clamp(8px,2.4cqw,12px); font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.mobile-app .royal-balance-label { display:inline-flex; flex:none; align-items:center; gap:2px; color:#ffe7a7; font-size:clamp(7px,1.8cqw,9px); font-weight:600; white-space:nowrap; }
.mobile-app .royal-balance-label img { width:clamp(10px,2.8cqw,14px); height:auto; max-width:none; }
.mobile-app .royal-member-balance { display:block; width:100%; color:#fff0bd; font-size:clamp(10px,2.9cqw,14px); font-weight:750; line-height:1.1; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.mobile-app .royal-member-hit { inset:0; width:100%; height:100%; }
.mobile-app .royal-hot-title-wrap { position:relative; }
/* The exact title slice joins the hero without repeating its chips or gold trim. */
.mobile-app .royal-game-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 10px; padding:0 3.7% 14px; background:radial-gradient(ellipse at 50% 90%,#07386655,transparent 65%),#001b37; }
.mobile-app .royal-game-grid button { display:block; min-width:0; padding:0; border:0; border-radius:0; background:transparent; line-height:0; cursor:pointer; }
.mobile-app .royal-game-grid button:hover { filter:brightness(1.08); transform:none; }
.mobile-app .royal-game-grid button:active { filter:brightness(.95); transform:scale(.98); }
.mobile-app .royal-catalog-items { display:contents; }
.mobile-app .royal-catalog-status { grid-column:1/-1; margin:14px 0; padding:14px; color:#ffe5ac; font-size:13px; text-align:center; }
.mobile-app .royal-catalog-card { min-width:0; aspect-ratio:4/5; }
.mobile-app .royal-game-grid .royal-catalog-button { position:relative; display:block; width:100%; height:100%; overflow:visible; border:0; border-radius:0; background:none; box-shadow:none; color:#fff0bd; line-height:1.15; }
.mobile-app .royal-game-grid .royal-catalog-button::after { content:""; display:block; position:absolute; z-index:3; inset:0; border:0; border-radius:0; background:url("assets/royal-mobile/catalog-art/sapphire-frame-v2.webp") center / 100% 100% no-repeat; filter:drop-shadow(0 3px 4px #0008); pointer-events:none; }
.mobile-app .royal-catalog-card .provider-game-art { position:absolute; inset:4% 4.5% 3%; display:block; width:91%; height:93%; aspect-ratio:auto; background:#071b31; clip-path:polygon(5% 0,95% 0,100% 5%,100% 95%,95% 100%,5% 100%,0 95%,0 5%); }
.mobile-app .royal-catalog-card .provider-game-art::after { z-index:1; inset:auto 0 0; width:100%; height:58%; background:linear-gradient(transparent,#071a30b3 38%,#051425f5 73%,#030e1b 100%); }
.mobile-app .royal-catalog-card .provider-game-image { display:block; width:100%; height:100%; object-fit:cover; object-position:center 35%; transition:transform .25s ease; }
.mobile-app .royal-catalog-card .royal-catalog-button > strong { position:absolute; z-index:2; left:9%; right:9%; bottom:24%; display:-webkit-box; overflow:hidden; margin:0; color:#fff3d5; font-size:clamp(10px,2.7cqw,13px); font-weight:750; line-height:1.25; text-align:center; text-shadow:0 2px 4px #000b; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.mobile-app .royal-catalog-card .royal-catalog-button > small { display:none; }
.mobile-app .royal-catalog-card .game-enter { position:absolute; z-index:2; left:9%; right:9%; bottom:9%; display:flex; align-items:center; justify-content:center; gap:5px; width:auto; max-width:none; height:12px; margin:0; padding:0; transform:none; border:0; border-radius:0; background:none; box-shadow:none; color:#c8ad75; font-size:clamp(8px,1.9cqw,9px); font-weight:500; line-height:1; letter-spacing:.12em; white-space:nowrap; text-shadow:none; }
.mobile-app .royal-catalog-card .game-enter::before,.mobile-app .royal-catalog-card .game-enter::after { content:""; display:block; flex:none; width:10px; height:1px; background:#ba945366; }
.mobile-app .royal-catalog-button:disabled .game-enter { color:#94a2b2; }
.mobile-app .royal-game-grid .royal-catalog-button:hover { transform:translateY(-2px); filter:brightness(1.06); }
.mobile-app .royal-game-grid .royal-catalog-button:hover .provider-game-image { transform:scale(1.025); }
.mobile-app .royal-game-grid .royal-catalog-button:active { transform:scale(.98); }
.mobile-app .royal-catalog-button:disabled { opacity:.55; }
.royal-nav { position:fixed; z-index:50; left:50%; bottom:0; width:min(100%,480px); height:calc(var(--royal-dock-height) + env(safe-area-inset-bottom,0px)); margin:0; padding:17px 8px calc(7px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); background:linear-gradient(180deg,#001b3700,#001b37ed 22%,#001b37 65%); color:#eaf2ff; }
.royal-nav-shell { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); height:100%; border:1px solid #e7c26e; border-radius:18px; background:radial-gradient(ellipse at 50% 0,#16456888,transparent 65%),linear-gradient(180deg,#082947,#03172e); box-shadow:inset 0 0 0 3px #d7ae4715,inset 0 1px 0 #fff1b948,0 5px 15px #0009,0 0 12px #e8b94b22; }
.royal-nav .royal-nav-button { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; min-height:44px; padding:6px 2px; border:0; border-radius:15px; background:transparent; color:#d9e9fc; font-size:clamp(10px,2.5vw,12px); font-weight:600; line-height:1.2; cursor:pointer; }
.royal-nav .royal-nav-button:not(:last-child)::after { content:""; position:absolute; right:0; top:25%; height:50%; width:1px; background:linear-gradient(transparent,#ddb86a88,transparent); }
.royal-nav .royal-nav-button > img { display:block; width:clamp(24px,6vw,29px); height:clamp(24px,6vw,29px); object-fit:contain; filter:drop-shadow(0 2px 3px #0005); }
.royal-nav .royal-nav-button:hover { transform:none; color:#fff0b6; background:#32618728; }
.royal-nav .royal-nav-button:hover > img { transform:none; }
.royal-nav .royal-nav-button:active { transform:none; background:#496c863d; }
/* Primary navigation stays still, including during the shared tap feedback. */
.royal-nav .royal-nav-button,
.royal-nav .royal-nav-button.tap-feedback { animation:none; transform:none; transition:background var(--motion),color var(--motion),filter var(--motion); }
.royal-nav .royal-nav-home { justify-content:flex-end; padding-bottom:9px; color:#ffe397; text-shadow:0 0 8px #e2b93e55; }
.royal-nav-home-emblem { position:absolute; top:-15px; left:50%; display:grid; place-items:center; width:60px; height:56px; transform:translateX(-50%); border:1px solid #e7c26e; border-radius:50%; background:radial-gradient(circle at 50% 28%,#174a71,#04213d 70%); box-shadow:inset 0 0 0 3px #ddb9571a,0 2px 8px #0008; }
.royal-nav .royal-nav-logo { display:block; width:53px; height:46px; background:url("assets/07_bottom_navigation/home-logo-animated.webp") center / contain no-repeat; pointer-events:none; }
.royal-nav button:focus-visible { outline:2px solid #fff0b7; outline-offset:-3px; }
.mobile-app .provider-game-image { display:block; width:100%; height:100%; object-fit:cover; }
.mobile-app .featured-dialog .games { grid-auto-rows:auto; gap:12px; }
.mobile-app .featured-dialog .game-card { aspect-ratio:274/301; border-radius:16px; }
.mobile-app .featured-dialog .game-card > .provider-game-button { position:relative; display:block; width:100%; height:100%; min-height:0; border:3px solid #f8c967; border-radius:16px; background:#001b37; box-shadow:0 0 0 1px #814813,0 0 12px #ffb7389c,inset 0 0 6px #fff0b4; }
.mobile-app .featured-dialog .game-card > .provider-game-button::after { content:""; display:block; position:absolute; z-index:3; inset:2px; border:1px solid #fff1b777; border-radius:12px; pointer-events:none; }
.mobile-app .featured-dialog .provider-game-art,
.mobile-app .featured-dialog .game-card:nth-child(even) .provider-game-art { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; background:none; }
.mobile-app .featured-dialog .provider-game-art::after { z-index:1; inset:auto 0 0; width:100%; height:50%; background:linear-gradient(transparent,#00182de6 67%,#001326 100%); }
.mobile-app .featured-dialog .provider-game-button > strong { position:absolute; z-index:2; left:4%; right:4%; bottom:42px; margin:0; color:#fff0bd; font-size:clamp(12px,3.8cqw,18px); line-height:1.15; text-align:center; text-shadow:0 2px 5px #000,0 0 8px #000; }
.mobile-app .featured-dialog .provider-game-button > small { display:none; }
.mobile-app .featured-dialog .game-enter { position:absolute; z-index:2; left:50%; bottom:8px; display:flex; align-items:center; justify-content:center; gap:0; width:74%; max-width:110px; height:24px; margin:0; padding:0 4px; transform:translateX(-50%); border:1px solid #ffe6ac; border-radius:7px; background:linear-gradient(180deg,#ffe5ac,#d5aa5c); box-shadow:inset 0 1px 0 #fff8ddaa,0 2px 5px #0006; color:#102c44; font-size:11px; line-height:1; letter-spacing:.04em; white-space:nowrap; text-shadow:none; }
.mobile-app .featured-dialog .provider-game-button:disabled { opacity:.58; }
.mobile-app .royal-home :is(button,a):focus-visible { outline:2px solid #fff0b7; outline-offset:-3px; }
.mobile-app.lobby-view .featured-dialog { overflow-x:hidden; overflow-y:auto; }
@media (max-width:360px) {
  .mobile-app .royal-game-grid { gap:6px; }
}
