:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body { background: #000; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #83f6eb; outline-offset: 5px; }
.app { max-width: 1240px; padding: 0 28px 48px; }
#home > * { min-width: 0; }
.top-status-row { justify-content: flex-start; }
#home { gap: 24px; }
.header { display: flex; align-items: center; gap: 28px; padding: 25px 0; border-bottom: 1px solid #ffffff18; }
.header .logo { width: 175px; margin: 0; }
.header-rail { position: static; margin-left: auto; gap: 10px; }
.header-icon { width: 38px; height: 38px; box-shadow: none; border-color: #ffffff30; }
.desktop-nav { display: flex; gap: 24px; }
.desktop-nav a { color: #c8c5d4; font-size: 14px; text-decoration: none; }
.desktop-nav a:hover { color: #fff; }
.desktop-hero { order: 2; padding: 30px 0 12px; }
.eyebrow { color: #a69cbd; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.desktop-hero h1 { font-size: clamp(38px, 5.5vw, 74px); line-height: 1.04; letter-spacing: -.055em; margin: 18px 0; max-width: 770px; }
.desktop-hero h1 span { color: #c0f54c; }
.desktop-hero p { max-width: 520px; color: #b1adbf; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border-radius: 10px; border: 1px solid #ffffff26; color: #fff; background: #ffffff06; text-decoration: none; font: 700 13px Arial,sans-serif; cursor: pointer; }
.home-button.primary { background: #c0f54c; border-color: #c0f54c; color: #172107; }
.home-button:hover { filter: brightness(1.1); }
.top-status-card { order: 3; padding: 26px; border: 1px solid #ffffff1c; border-radius: 18px; background: linear-gradient(145deg,#242033,#14121e); align-self: center; }
.top-status-card .points-pill { display: flex; flex-direction: column; align-items: flex-start; padding: 0; margin: 18px 0; background: none; font-size: 12px; color: #aaa3ba; gap: 9px; }
.points-pill strong { font-size: 32px; color: #c0f54c; letter-spacing: -.04em; }
.nickname-display-card { text-align: left; padding: 0; border: 0; background: none; font-size: 14px; color: #d5cfdf; }
.account-link { display: inline-block; font-size: 12px; color: #aaf1eb; margin-top: 22px; }
.desktop-games { order: 4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 15px 0 20px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.section-heading a { color: #b1adbf; text-decoration: none; font-size: 12px; }
.desktop-game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.desktop-game { display: block; border: 1px solid #ffffff17; border-radius: 16px; background: #101019; overflow: hidden; color: #fff; text-decoration: none; transition: transform .2s, border-color .2s; }
.desktop-game:hover { transform: translateY(-4px); border-color: #c0f54c80; }
.desktop-game img { width: 100%; aspect-ratio: 350/180; object-fit: contain; display: block; background: #030305; padding: 12px; }
.game-caption { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.game-caption span { color: #c0f54c; }
.game-row { display: none; }
.image-actions { order: 5; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding-top: 12px; border-top: 1px solid #ffffff17; }
.image-action { animation: none; border-color: #ffffff12; border-radius: 12px; }
.social-actions { order: 7; justify-content: flex-start; gap: 12px; margin: 0; }
.social-action { max-width: 68px; }
.price-card { order: 8; margin: 0; align-self: center; }
.install-card { order: 6; padding: 28px; border: 1px solid #67518760; background: linear-gradient(110deg,#261c38,#12121d); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.install-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; }
.install-card p { color: #bab2ca; font-size: 14px; line-height: 1.6; margin: 0; max-width: 570px; }
.install-dialog { width: min(480px,calc(100vw - 32px)); padding: 28px; color: #fff; background: #1b1726; border: 1px solid #78608f; border-radius: 18px; }
.install-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.install-dialog h2 { margin: 0 0 16px; font-size: 24px; }
.install-dialog p { color: #c6bed4; line-height: 1.65; }
.install-dialog .close-install { margin-top: 12px; }
@media (min-width: 900px) {
 #home { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; }
 .header,.desktop-games,.image-actions,.install-card { grid-column: 1/-1; }
 .desktop-hero { grid-column: 1 / -1; }
 .top-status-card { grid-column: span 4; }
 .social-actions { grid-column: span 8; }
 .price-card { grid-column: span 4; }
}
@media (max-width: 899px) {
 .desktop-nav { display: none; }
 .desktop-hero { padding-top: 10px; }
 .top-status-card { align-self: stretch; }
 .desktop-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .image-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .install-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
 .app { padding: 0 16px 32px; }
 #home { gap: 20px; }
 .header { gap: 10px; padding: 20px 0; }
 .header .logo { width: 140px; }
 .header-rail { gap: 6px; }
 .header-icon { width: 32px; height: 32px; }
 .desktop-hero h1 { font-size: 44px; }
 .desktop-game-grid { gap: 10px; }
 .desktop-game img { padding: 4px; }
 .game-caption { padding: 12px 10px; font-size: 12px; }
 .image-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .top-status-card,.install-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *,*::before,*::after { animation: none !important; transition: none !important; }
}

.header-rail { align-items: center; }
.account-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.account-button { padding: 10px 17px; border: 1px solid #ffffff30; border-radius: 10px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.account-button:hover { background: #ffffff10; }
.account-status-line { color: #aaa3ba; font-size: 11px; max-width: 180px; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 480px) { .header .logo { width: 110px; } .account-button { padding: 8px 12px; } .account-status-line { max-width: 100px; font-size: 10px; } }

.header-rail .account-button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; }
@media (max-width: 480px) { .header-rail .account-button { width: 32px; height: 32px; } .account-button svg { width: 19px; height: 19px; } }

/* Keep the three icons on one baseline; account status does not affect spacing. */
.header-install { margin-left: auto; flex-shrink: 0; }
.header-rail { margin-left: 0; align-items: center; gap: 12px; flex-shrink: 0; }
.account-menu { position: relative; width: 38px; height: 38px; flex: 0 0 38px; }
.account-status-line { position: absolute; top: calc(100% + 7px); right: 0; width: max-content; max-width: 190px; line-height: 1.3; }
.header-rail .header-icon, .header-rail .account-button { width: 38px; height: 38px; flex: 0 0 38px; margin: 0; }
@media (max-width: 600px) {
 .header { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 20px; }
 .header .logo { grid-column: 1; grid-row: 1; }
 .header-rail { grid-column: 2; grid-row: 1; gap: 12px; }
 .header-install { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; min-height: 38px; padding: 8px 15px; }
 .account-menu { width: 32px; height: 32px; flex-basis: 32px; }
 .header-rail .header-icon, .header-rail .account-button { width: 32px; height: 32px; flex-basis: 32px; }
 .account-status-line { max-width: 140px; }
}

.header-install[hidden] + .header-rail { margin-left: auto; }
@media (display-mode: standalone) { [data-install-app], .install-card { display: none !important; } .header-rail { margin-left: auto; } }

/* Original artwork is the button; no surrounding card or caption. */
.desktop-game { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.desktop-game img { padding: 0; background: transparent; aspect-ratio: 350 / 200; object-fit: contain; }
.game-caption { display: none; }
.image-actions .image-action { border: 0; border-radius: 0; background: transparent; }
