/* One lobby catalog, with the complete account tools opened as focused panels. */
html:not([data-panel=shop]) #shop,html:not([data-panel=history-section]) #history-section,html:not([data-panel=leaderboard]) #leaderboard,html:not([data-panel=friends]) #friends{display:none}
html[data-panel=home] .rail{display:none}
html:not([data-panel=home]) :is(.home-only,#guest-benefits,.ad-slot[data-ad-view=home],#game-detail){display:none}
html[data-view=detail] .home-only{display:none}
html.is-signed-in :is(#how,#guest-benefits){display:none}
.panel-back{margin:24px 0 16px}.panel-status{padding:32px 24px;border:1px solid var(--line);border-radius:20px;margin-bottom:32px;background:var(--surface)}.panel-status p{margin-bottom:14px}
html:not([data-panel=home]) .rail{display:block;padding:0;margin:0 0 40px;border:0}
html:not([data-panel=home]) .rail>section{grid-column:auto;grid-row:auto}
html[data-panel=history-section] #history-section{display:block}
.home-welcome{min-height:260px;padding:28px 32px;margin:24px 0 32px;grid-template-columns:minmax(0,1fr) 240px;gap:24px}
.home-copy h1{font-size:clamp(30px,3.4vw,44px);margin:12px 0;line-height:1.1;overflow-wrap:anywhere}
.home-copy .intro-copy{font-size:13px;max-width:480px}.home-cta{margin:18px 0 12px;gap:8px}
.home-mascot{height:auto;min-height:260px;align-self:center}.mascot-greet{width:160px;max-width:100%;max-height:none}.home-orbit{width:230px}
.home-mascot figcaption{font-size:11px;padding:4px 10px}.home-mascot figcaption small{display:none}
html.is-signed-in .home-welcome{min-height:180px;grid-template-columns:minmax(0,1fr) 150px;padding:20px 28px;margin-bottom:20px}
html.is-signed-in .home-copy h1{font-size:28px}html.is-signed-in .home-copy .intro-copy{font-size:12px}
html.is-signed-in .home-perks{display:none}html.is-signed-in .home-mascot{height:auto;min-height:160px}html.is-signed-in .mascot-greet{width:90px}html.is-signed-in .home-orbit{width:150px}html.is-signed-in .home-mascot figcaption{display:none}html.is-signed-in .home-cta{margin:12px 0 0}
.home-personal,.home-teasers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:32px}
.lobby-panel{min-width:0;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.lobby-panel .section__head{justify-content:space-between;margin-bottom:16px;gap:10px}.lobby-panel h2{font-size:19px;letter-spacing:-.025em}.lobby-panel .section__head>a,.summary-link{font-size:12px;color:var(--blue-400)}
.recent-game{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.recent-game img{width:76px;height:58px;object-fit:cover;border-radius:10px}.recent-game>div{flex:1;min-width:100px}.recent-game h3{font-size:14px}.recent-game .btn{margin-left:auto}
.summary-friends,.summary-ranks,.summary-shop{list-style:none;margin:0;padding:0}.summary-friends{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary-friends li{display:flex;align-items:center;gap:9px;min-width:0}.summary-friends li>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.summary-ranks li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.summary-ranks li:last-child{border:0}.summary-ranks li>span:nth-child(2){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.summary-ranks b{font-size:11px;font-weight:550;color:var(--text-2)}.summary-position{color:var(--blue-400);font-weight:700}
.summary-shop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.summary-shop a{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:10px 4px;border:1px solid var(--line);border-radius:14px;min-height:132px}.summary-shop b{font-size:11px;line-height:1.3}.summary-shop small{font-size:10px;color:var(--text-2)}.summary-shop .look-sample{font-size:26px}.summary-shop a>img{width:68px;height:68px;object-fit:contain}
.join-benefits{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:40px}.join-benefits h2{font-size:20px;margin-bottom:8px}.join-benefits p,.join-benefits li{font-size:12px;color:var(--text-2)}.join-benefits ul{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;padding-left:18px;margin:0}.join-benefits .btn{margin-left:auto}
.main .games{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;transition:border-color .2s}.game-card:hover{border-color:#699ab5}.game-card.is-featured{grid-column:span 2}.game-card__link{display:flex;flex-direction:column;height:100%;color:inherit}.game-card__link:focus-visible{outline-offset:-4px}.game-card .game-art{aspect-ratio:16/10;border:0;border-radius:0}.game-card.is-featured .game-art{aspect-ratio:16/7}.game-card .game-art img{object-fit:cover}.game-card .game-tag{position:absolute;top:12px;left:12px;border:1px solid #7dd3fc70;border-radius:8px;padding:4px 9px;background:#0b2639ed;color:#c5ecff;font-size:10px;font-weight:650}.game-card .game-info{display:flex;flex-direction:column;flex:1;padding:16px}.game-card .game-category{font-size:10px;color:#a4c9df;letter-spacing:.025em;margin:0 0 5px}.game-card h3{font-size:17px;color:var(--text-1);margin:0 0 7px}.game-card .description{font-size:12px;line-height:1.6;color:var(--text-2);margin:0 0 14px}.game-card .game-meta{display:flex;flex-wrap:wrap;gap:6px;margin:auto 0 12px}.game-meta>span{font-size:10px;padding:3px 7px;background:#1b3041;color:#b4cddd;border-radius:6px}.game-card__cta{display:flex;align-items:center;justify-content:space-between;color:var(--blue-400);font-size:12px;font-weight:650}.game-card__cta svg{width:14px;height:14px}.game-card.soon{opacity:.75}
@media(min-width:641px) and (max-width:1000px){.main .games{grid-template-columns:repeat(3,minmax(0,1fr))}.home-welcome{padding:24px;grid-template-columns:minmax(0,1fr) 200px;gap:12px}.home-personal,.home-teasers{gap:14px}.lobby-panel{padding:18px}.summary-friends{grid-template-columns:1fr}.recent-game .btn{margin-left:0}.join-benefits .btn{margin-left:0}}
@media(max-width:640px){
 .home-welcome{grid-template-columns:minmax(0,1fr) 110px;gap:8px;padding:20px 16px;margin:18px 0 26px;min-height:230px;border-radius:20px}.home-copy h1{font-size:28px;line-height:1.12;margin:10px 0}.home-copy .eyebrow{font-size:8px;letter-spacing:.09em}.home-copy .intro-copy{font-size:11px;line-height:1.5}.home-cta{gap:2px;margin:14px 0 8px}.home-cta .btn{padding:8px 10px;font-size:11px;min-height:40px}.home-cta .btn-ghost{font-size:10px;padding:6px 0;min-height:30px}.home-perks{font-size:8px;gap:3px}.home-mascot{height:auto;min-height:180px;margin:0}.mascot-greet{width:96px;max-width:100%;max-height:none}.home-orbit{width:126px}.home-mascot figcaption{display:none}
 html.is-signed-in .home-welcome{grid-template-columns:minmax(0,1fr) 85px;padding:18px 16px;min-height:155px;margin-bottom:16px}html.is-signed-in .home-copy h1{font-size:22px;margin:8px 0}html.is-signed-in .home-mascot{height:auto;min-height:132px}html.is-signed-in .mascot-greet{width:72px}html.is-signed-in .home-orbit{width:100px}html.is-signed-in .home-copy .intro-copy{display:none}
 .home-personal,.home-teasers{grid-template-columns:1fr;gap:12px;margin-bottom:26px}.lobby-panel{padding:18px}.lobby-panel h2{font-size:18px}.lobby-panel .section__head{margin-bottom:12px}.summary-friends{gap:8px}.main .games{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card.is-featured{grid-column:1/-1}.game-card .game-info{padding:12px}.game-card h3{font-size:15px}.game-card .description{font-size:11px}.game-card .game-category{font-size:9px}.game-card .game-meta{gap:4px}.game-meta>span{font-size:9px;padding:3px 5px}.game-card .game-tag{font-size:9px;top:10px;left:10px}.game-card__cta{font-size:11px}.game-card.is-featured .game-art{aspect-ratio:16/8}
 #discover>.section__head{flex-wrap:wrap;gap:8px;margin-bottom:14px}#discover h2{font-size:21px}#discover .search{max-width:none;flex:1;min-width:100px;margin-left:auto}#discover .search input{font-size:11px}#discover #filter-all{padding:6px;font-size:11px}.join-benefits{gap:18px}.join-benefits .btn{margin-left:0}.join-benefits ul{gap:6px 18px}.panel-back{margin:18px 0 12px}
}
@media(max-width:350px){.home-welcome{grid-template-columns:minmax(0,1fr) 90px;padding:18px 14px}.home-copy h1{font-size:25px}.home-copy .intro-copy{display:none}.home-mascot{height:auto;min-height:160px}.mascot-greet{width:84px}.home-orbit{width:110px}.recent-game{gap:8px}.recent-game img{width:60px;height:48px}.recent-game .btn{margin-left:0}.summary-friends{grid-template-columns:1fr}.home-perks span{font-size:8px}}

@media(max-width:640px){.home-copy .intro-copy{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}

.summary-sample{display:grid;place-items:center;width:68px;height:68px;font-size:26px}

/* Complete game posters precede the authentic screenshot gallery. */
.main .game-card .game-art,.main .game-card.is-featured .game-art{aspect-ratio:40/21}
.detail-poster{margin:0 0 24px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}.detail-poster img{display:block;width:100%;height:auto;aspect-ratio:40/21;object-fit:contain}.detail-screenshots-title{font-size:20px;margin:28px 0 16px}

.detail-other img{aspect-ratio:40/21;object-fit:contain}.recent-game img{object-fit:contain;background:var(--surface-2)}
.main .game-card .game-art img{object-fit:contain;transform:none}

@media(min-width:641px){.main .game-card.is-featured{grid-column:auto;border-color:#527e97}}
/* Tombol utama portal: ikon inline, permukaan sama dengan pill header, tanpa bayangan. */
.btn.btn-game{gap:8px;min-height:44px;padding:0 18px 0 14px;border-radius:12px;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap;box-shadow:none;transition:background .15s,border-color .15s,color .15s}
.btn-game__icon{display:contents}
.btn-game__icon svg{width:18px;height:18px;flex:none}
.btn-game--play{background:var(--blue-400);color:#06263a;border:1px solid transparent}
.btn-game--play:hover{background:#b5e7fd;color:#06263a}
.btn-game--soft{background:#7dd3fc0a;color:var(--text-1);border:1px solid #7dd3fc24}
.btn-game--soft:hover{background:#7dd3fc12;border-color:#7dd3fc55;color:#fff}
.btn-game--soft .btn-game__icon svg{color:var(--blue-400)}
.btn.btn-game--sm{min-height:38px;padding:0 14px 0 12px;font-size:12px}
.btn-game--sm .btn-game__icon svg{width:16px;height:16px}
.home-cta{gap:10px}
/* Link kepala panel: ikon + teks, tanpa kotak. */
.lobby-panel .section__head>a.panel-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 4px;color:var(--text-2);font-size:12px;font-weight:700;text-decoration:none;transition:color .15s}
.panel-link svg{width:15px;height:15px;color:var(--blue-400)}
.lobby-panel .section__head>a.panel-link:hover{color:var(--blue-400)}
#recent-content>.btn-game{margin-top:12px}
@media(max-width:350px){.home-cta .btn.btn-game{padding:0 10px;gap:6px;font-size:11.5px}}
