/* landing.css — start screen in the game's pixel style (on top of styles.css) */
body.landing { margin: 0; overflow: hidden; background: #05060c; font-family: 'Press Start 2P', monospace; color: #e8ecf5; }

#bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; image-rendering: pixelated; filter: saturate(1.05) contrast(1.05); z-index: 0; }

#landing-overlay {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 50% 40%, rgba(8,12,24,0.1) 0%, rgba(5,6,12,0.84) 80%),
    linear-gradient(180deg, rgba(5,6,12,0.9) 0%, rgba(5,6,12,0.18) 26%, rgba(5,6,12,0.2) 58%, rgba(5,6,12,0.94) 100%);
  padding: 16px 26px;
}

/* ── top bar ── */
#topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-glove { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6a52, #b8241a); box-shadow: inset -4px -4px 0 rgba(0,0,0,0.35), 0 0 0 2px #7a1812; }
.brand-name { font-size: 13px; color: #f5c542; letter-spacing: 2px; }

.wallet-cta {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 10px; color: #fff;
  background: linear-gradient(180deg, #5a3fc0, #3a2a8f); border: 2px solid #7a5fe0;
  border-radius: 8px; padding: 10px 14px; box-shadow: 0 3px 0 #2a1f6a;
}
.wallet-cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 #2a1f6a; }
#wallet-pill { display: flex; align-items: center; gap: 8px; background: rgba(10,14,24,0.9); border: 2px solid #2a9a5a; border-radius: 8px; padding: 8px 10px; }
#wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ad06a; box-shadow: 0 0 6px #3ad06a; }
#wallet-addr { font-size: 9px; color: #c8f0d8; }
#wallet-pill button { font-family: inherit; cursor: pointer; color: #8a93ab; background: none; border: none; font-size: 11px; }
.hidden { display: none !important; }

/* ── hero ── */
#hero { align-self: center; text-align: center; width: 100%; max-width: 980px; margin-top: -6px; }
.title { font-size: 50px; letter-spacing: 4px; margin: 4px 0 6px; color: #f5c542; text-shadow: 0 0 2px #000, 4px 4px 0 #8f2018, 8px 8px 0 rgba(0,0,0,0.5); }
.tagline { font-size: 11px; color: #c8d0e0; letter-spacing: 3px; margin: 0 0 22px; }

/* ── dashboard ── */
#dash { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 16px; align-items: stretch; }
.dash-card { background: rgba(10,14,24,0.86); border: 2px solid #2a3350; border-radius: 12px; padding: 16px; text-align: left; }
.dash-card h3 { font-size: 9px; color: #f5c542; letter-spacing: 1px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
#season-badge { font-size: 7px; color: #8a93ab; border: 1px solid #2a3350; border-radius: 4px; padding: 3px 5px; }
#season-badge.online { color: #4caf50; border-color: #2a6a3a; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid div { background: rgba(20,26,43,0.7); border-radius: 8px; padding: 10px; text-align: center; }
.stat-grid b { display: block; font-size: 20px; color: #fff; }
.stat-grid span { font-size: 7px; color: #8a93ab; }
.winrate { margin-top: 14px; height: 16px; background: #0a0e18; border-radius: 4px; position: relative; overflow: hidden; }
#wr-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #e2402f, #f5c542); }
#wr-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff; }

/* actions column */
.dash-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.abtn { font-family: inherit; font-size: 13px; text-decoration: none; text-align: center; padding: 16px; border-radius: 10px; cursor: pointer; transition: transform .05s; }
.abtn.primary { color: #2a1402; background: linear-gradient(180deg, #ffd24a, #e0a020); border: 3px solid #7a5410; box-shadow: 0 5px 0 #6e4a0e; }
.abtn.online { color: #fff; background: linear-gradient(180deg, #5a3fc0, #3a2a8f); border: 3px solid #7a5fe0; box-shadow: 0 5px 0 #2a1f6a; }
.abtn.ghost { color: #fff; background: rgba(20,26,43,0.9); border: 3px solid #3a78d6; box-shadow: 0 5px 0 #1f3f7a; font-size: 11px; padding: 13px; }
.abtn:hover { transform: translateY(2px); }
.abtn.primary:hover { box-shadow: 0 3px 0 #6e4a0e; } .abtn.online:hover { box-shadow: 0 3px 0 #2a1f6a; } .abtn.ghost:hover { box-shadow: 0 3px 0 #1f3f7a; }

/* top3 */
#top3 { list-style: none; margin: 0; padding: 0; counter-reset: r; }
#top3 li { counter-increment: r; display: flex; justify-content: space-between; align-items: center; font-size: 8px; color: #c8d0e0; padding: 9px 6px; border-bottom: 1px solid rgba(42,51,80,0.5); }
#top3 li::before { content: '#' counter(r); color: #f5c542; margin-right: 8px; }
#top3 li.empty { color: #5a6378; justify-content: center; }
#top3 li::before { } #top3 li b { color: #fff; }
.reward-note { font-size: 7px; color: #6a7390; margin: 12px 0 0; line-height: 1.5; }

#botbar { display: flex; justify-content: center; gap: 12px; font-size: 8px; color: #5a6378; align-items: center; }
#botbar i { color: #2a3350; font-style: normal; }

/* ── wallet modal ── */
#wallet-modal { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(2,3,8,0.78); }
.wm-box { position: relative; width: 380px; max-width: 92vw; background: #11182b; border: 2px solid #3a4870; border-radius: 16px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
#wm-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: #8a93ab; font-size: 16px; cursor: pointer; font-family: inherit; }
.wm-box h2 { font-size: 14px; color: #f5c542; margin: 0 0 6px; }
.wm-box > p { font-size: 9px; color: #8a93ab; margin: 0 0 20px; }
.wm-opt { display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer; font-family: inherit; text-align: left; background: rgba(20,26,43,0.8); border: 2px solid #2a3350; border-radius: 12px; padding: 14px; margin-bottom: 12px; transition: border-color .1s, transform .05s; }
.wm-opt:hover { border-color: #f5c542; transform: translateY(-1px); }
.wm-ico { display: flex; border-radius: 10px; overflow: hidden; }
.wm-meta { display: flex; flex-direction: column; gap: 5px; }
.wm-meta b { color: #fff; font-size: 12px; }
.wm-meta i { color: #8a93ab; font-size: 8px; font-style: normal; }
.wm-status { font-size: 8px; color: #f0a83c; min-height: 12px; margin: 6px 0 0; text-align: center; }

@media (max-width: 900px) {
  #dash { grid-template-columns: 1fr; }
  .title { font-size: 32px; }
}
