/* EXOLAND V17: Top 10 embedded in Star Runner arcade.
 * Responsive: side scoreboard on desktop; accessible expanded panel on touch/mobile.
 */
.arcade-modal-inner{position:relative}
.exo-game-scoreline{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 10px;padding:8px 12px;border:1px solid rgba(91,180,241,.30);border-radius:11px;background:linear-gradient(90deg,#0a284b,#0c1636 76%,#192045);font:750 11px/1.2 'Exo 2',sans-serif;color:#e7f7ff;min-width:0}
.exo-game-scoreline>div{display:flex;align-items:center;gap:9px;min-width:0}
.exo-game-scoreline strong{font-weight:850;font-size:12px;color:#f6df9c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.exo-game-scoreline-label{font-size:10px;color:#79caff;white-space:nowrap;letter-spacing:.7px}
.exo-game-scoreline-me{margin-left:auto;white-space:nowrap;color:#9cffe4;font-size:10px;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.exo-game-rank-toggle{display:none;align-items:center;gap:6px;border:1px solid rgba(128,203,255,.55);border-radius:8px;padding:9px 11px;background:linear-gradient(145deg,#14427e,#101f4b);color:#f3fcff;font:900 10px 'Exo 2',sans-serif;white-space:nowrap;cursor:pointer}
.exo-game-rank-toggle .icon{height:15px;width:15px;color:#ffd16f}
.exo-game-rank-toggle:hover{background:#1b5595}
.exo-game-layout{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:13px;align-items:start}
.exo-game-layout>.game-frame{min-width:0;margin:0}
.arcade-dialog{width:min(1460px,calc(100vw - 32px));max-width:1460px}
.arcade-modal-inner{max-height:96dvh}
.exo-game-leaderboard{min-width:0;display:flex;flex-direction:column;max-height:calc(96dvh - 182px);border-radius:14px;border:1px solid rgba(75,184,249,.52);background:linear-gradient(165deg,#0d224c,#08122d);box-shadow:0 0 0 1px rgba(109,182,245,.08),0 15px 35px rgba(1,6,22,.48);overflow:hidden}
.exo-game-rank-head{display:flex;gap:8px;align-items:center;padding:13px 11px;background:linear-gradient(95deg,rgba(23,71,124,.72),rgba(28,24,78,.55));border-bottom:1px solid rgba(86,180,249,.25)}
.exo-game-rank-emblem{width:35px;height:35px;flex:none;display:grid;place-items:center;border:1px solid rgba(255,203,117,.45);border-radius:10px;background:rgba(237,147,47,.14)}
.exo-game-rank-emblem .icon{width:19px;height:19px;color:#f9c673}
.exo-game-rank-head>div:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.exo-game-rank-head span{font:750 8px 'Exo 2',sans-serif;letter-spacing:1.3px;color:#7ecafa}
.exo-game-rank-head h3{font:900 15px/1 'Exo 2',sans-serif;white-space:nowrap;color:#f7fcff;margin:0}
.exo-game-rank-head h3 em{font-style:normal;color:#ffcf76}
.exo-game-rank-sync,.exo-game-rank-close{display:grid;place-items:center;flex:none;background:#0d2e59;color:#b6eaff;border:1px solid rgba(108,181,249,.36);border-radius:8px;width:30px;height:30px;cursor:pointer}
.exo-game-rank-sync .icon,.exo-game-rank-close .icon{width:15px;height:15px}
.exo-game-rank-sync:disabled{opacity:.5;cursor:wait}
.exo-game-rank-close{display:none}
.exo-game-rank-columns{display:grid;grid-template-columns:29px minmax(0,1fr) 62px;align-items:center;gap:5px;padding:9px 10px;color:#7fafd3;font:850 9px 'Exo 2',sans-serif;letter-spacing:.75px;background:rgba(12,40,76,.55)}
.exo-game-rank-columns span:last-child{text-align:right}
.exo-game-top-ten{list-style:none;display:block;min-height:0;overflow:auto;margin:0;padding:5px 7px;scrollbar-color:#33679d transparent;scrollbar-width:thin;flex:1}
.exo-game-top-ten li{list-style:none}
.exo-game-rank-entry{display:grid;grid-template-columns:29px minmax(0,1fr) 62px;gap:5px;align-items:center;padding:8px 5px;border-bottom:1px solid rgba(103,164,224,.12);border-radius:6px;min-height:40px}
.exo-game-rank-entry:last-child{border-bottom:none}
.exo-game-rank-entry.is-self{border:1px solid rgba(70,229,196,.56);background:rgba(27,144,157,.16);margin:1px 0}
.exo-game-rank-entry.podium{background:linear-gradient(90deg,rgba(241,182,66,.10),transparent 73%)}
.exo-game-rank-position{display:flex;align-items:center;gap:4px;font:900 13px 'Exo 2',sans-serif;color:#90aecc}
.exo-game-rank-entry:nth-child(1) .exo-game-rank-position{color:#ffd270}
.exo-game-rank-entry:nth-child(2) .exo-game-rank-position{color:#d7e6ff}
.exo-game-rank-entry:nth-child(3) .exo-game-rank-position{color:#db9d80}
.exo-game-rank-entry .rank-change{font:900 8px 'Exo 2',sans-serif;white-space:nowrap}
.exo-game-rank-entry .rank-change.up{color:#78ffd3}.exo-game-rank-entry .rank-change.down{color:#ffa6ac}.exo-game-rank-entry .rank-change.new{color:#b6d8ff}
.exo-game-rank-player{display:flex;flex-direction:column;gap:3px;min-width:0}
.exo-game-rank-player strong{font:850 10px 'Exo 2',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ecf9ff}
.exo-game-rank-player small{color:#83a9ce;font:600 9px 'Exo 2',sans-serif}
.exo-game-rank-score{font:900 16px 'Rajdhani',sans-serif;color:#98f5ff;text-align:right}
.exo-game-rank-entry.is-empty .exo-game-rank-score,.exo-game-rank-entry.is-empty .exo-game-rank-player strong{color:#668ab0}
.exo-game-rank-empty{padding:20px 8px;color:#98bbdf;font-size:11px}
.exo-game-rank-your{border-top:1px solid rgba(98,169,235,.24);padding:11px 12px;font:850 11px 'Exo 2',sans-serif;color:#adfdeb;background:rgba(9,65,77,.34);text-align:center}
.exo-game-rank-footer{display:flex;align-items:center;gap:6px;padding:10px 11px;border-top:1px solid rgba(82,153,223,.25);font:750 9px 'Exo 2',sans-serif;color:#86bcde;letter-spacing:.35px}
.exo-game-rank-footer small{margin-left:auto;color:#ffd28c;font-weight:850;font-size:8px}
.rank-live-dot{width:7px;height:7px;border-radius:50%;background:#4dffd1;box-shadow:0 0 0 3px rgba(77,255,209,.13),0 0 11px rgba(44,255,196,.42);flex:none}
@media(min-width:1051px){.arcade-dialog{width:min(1420px,calc(100vw - 28px))}.game-frame{max-height:calc(96dvh - 290px)}.exo-game-layout>.game-frame{aspect-ratio:16/9;height:auto;min-height:0}.exo-game-top-ten{min-height:390px}.exo-game-leaderboard{max-height:calc(96dvh - 173px)}}
@media(max-width:1050px){
  .exo-game-layout{display:block}
  .exo-game-rank-toggle{display:inline-flex}
  .exo-game-leaderboard{display:none;position:absolute;top:105px;left:12px;right:12px;z-index:15;max-height:calc(100dvh - 127px);box-shadow:0 18px 70px rgba(0,0,0,.85),0 0 0 2px rgba(73,199,255,.24)}
  .exo-game-leaderboard.is-expanded{display:flex}
  .exo-game-rank-close{display:grid}
  .exo-game-top-ten{overflow:auto;min-height:0;max-height:min(55vh,530px)}
  .exo-game-scoreline{margin-bottom:8px}
}
@media(max-width:780px){
  .arcade-modal-inner{position:relative}
  .exo-game-scoreline{font-size:9px;padding:7px 9px}
  .exo-game-scoreline-label{display:none}
  .exo-game-scoreline strong{font-size:10px}
  .exo-game-scoreline-me{font-size:9px}
  .exo-game-rank-toggle{font-size:10px;padding:7px 9px}
  .exo-game-leaderboard{top:90px;left:9px;right:9px;border-radius:12px}
  .exo-game-top-ten{max-height:min(60dvh,560px)}
  .exo-game-rank-entry{min-height:44px}
}
@media(max-width:380px){.exo-game-scoreline-me{max-width:90px}.exo-game-rank-toggle{padding:7px}.exo-game-rank-head h3{font-size:13px}}
@media(prefers-reduced-motion:reduce){.rank-live-dot{box-shadow:none}}

/* V19: mobile-only viewport stability and legible header wallet action. */
@media (max-width: 780px) {
  html, body {
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
  }
  body { width: 100%; }
  /* Keep full-width artwork inside its visual viewport, not the page scroll area. */
  .header, main, .hero, .hero-content, .portfolio, .arcade-section, .ecosystem, .footer {
    max-width: 100%;
  }
  .header-tools .wallet-header.join-btn {
    color: #08203b !important;
    background: linear-gradient(115deg,#b9f6ff 0%,#7ce7ff 52%,#b6fff0 100%) !important;
    border: 1px solid #e5fcff;
    text-shadow: none !important;
    box-shadow: 0 3px 18px rgba(27,194,247,.23), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .header-tools .wallet-header.join-btn .icon,
  .header-tools .wallet-header.join-btn .icon use,
  .header-tools .wallet-header.join-btn [data-wallet-label] {
    color: #08203b !important;
    stroke: #08203b !important;
    fill: none;
    opacity: 1 !important;
  }
  .header-tools .wallet-header.join-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
}


/* V20: The EXO Star Runner card must never crop its mobile play action. */
@media (max-width: 780px) {
  #arcade.arcade {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }
  #arcade .arcade-image {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 555 / 283;
    padding: 0;
  }
  #arcade .arcade-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    padding: 22px 16px 26px;
  }
  #arcade #launchGame {
    display: inline-flex;
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 380px;
    min-width: 0;
    min-height: 56px;
    margin: 12px 0 4px;
    padding: 12px 20px;
    border: 1px solid #ffeda7;
    border-radius: 13px;
    background: linear-gradient(110deg, #ffdc78 0%, #ffb54b 54%, #ff9773 100%);
    color: #0c1531;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .85px;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: 0 12px 27px rgba(255, 126, 63, .27), inset 0 1px rgba(255,255,255,.7);
  }
  #arcade #launchGame .icon {
    color: #0c1531;
    width: 21px;
    height: 21px;
  }
  #arcade #launchGame:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }
}


/* V21: Desktop-only repair. The previous fixed-height showcase clipped
   PLAY NOW at the bottom. Let all content determine the card height. */
@media (min-width: 781px) {
  #arcade.arcade {
    height: auto;
    min-height: 480px;
  }
  #arcade .arcade-copy {
    align-self: center;
    padding-top: 26px;
    padding-bottom: 27px;
  }
}

/* V22 — Mobile EXO artwork framing and PLAY NOW visual consistency.
   Only the phone hero illustration and the mobile Star Runner action change. */
@media (max-width: 600px) {
  .hero .hero-art {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: clamp(288px, 81vw, 410px);
    background-size: 100% auto !important;
    background-position: center bottom !important;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  }
}
@media (max-width: 780px) {
  #arcade #launchGame {
    background: linear-gradient(110deg, #ff9326 0%, #ff5738 34%, #d52cdb 72%, #7139f5 100%);
    border-color: #ffbf7b;
    color: #ffffff;
    text-shadow: 0 1px 7px rgba(15, 10, 48, .48);
    box-shadow: 0 10px 28px rgba(166, 46, 228, .29), 0 0 20px rgba(248, 94, 156, .15), inset 0 1px 0 rgba(255,255,255,.45);
  }
  #arcade #launchGame .icon {
    color: #ffffff;
  }
}


/* V23 — Mobile hero spacing: the image follows the content instead of
   sitting at the bottom of an oversized fixed-height section.
   The illustration keeps its complete 1208:728 proportions, so EXO
   remains visible at the sides without leaving a large empty band. */
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: calc(60.265vw + 12px);
  }
  .hero .hero-content {
    height: auto;
    min-height: 0;
    align-items: flex-start;
  }
  .hero .hero-copy {
    padding-bottom: 0;
  }
  .hero .hero-art {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 60.265vw;
    max-height: none;
    background-size: 100% 100% !important;
    background-position: center bottom !important;
    background-repeat: no-repeat;
  }
}
