:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #192533; color: #d6d7d8; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(ellipse at top, #29435a 0, #192533 38rem, #101822 100%); }
.site-nav { min-height: 104px; background: #171d25; box-shadow: 0 2px 10px rgb(0 0 0 / 40%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1100px, calc(100% - 2rem)); min-height: 104px; margin: 0 auto; gap: 1.25rem; }
.brand { color: #fff; font-size: 1.34rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: .5rem; border: 2px solid #fff; border-radius: 50%; font-size: .75rem; letter-spacing: 0; vertical-align: -2px; }
.nav-links { display: flex; gap: 1.35rem; margin-right: auto; }
.nav-links a { color: #d6d7d8; font-size: .87rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.nav-links a:first-child { color: #1a9fff; border-bottom: 3px solid #1a9fff; padding-bottom: .35rem; }
.nav-note { color: #8f98a0; font-size: .75rem; text-align: right; }
.shell { width: min(1000px, calc(100% - 2rem)); margin: 0 auto; padding: 3.4rem 0 5rem; }
.hero { max-width: 46rem; margin-bottom: 1.6rem; }
.eyebrow { margin: 0 0 .48rem; color: #67c1f5; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, h4, p { margin-top: 0; } h1 { margin-bottom: .7rem; color: #fff; font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 400; line-height: 1.04; } h2 { color: #fff; font-size: clamp(1.55rem, 4vw, 2.25rem); font-weight: 400; } h3 { color: #fff; font-size: 1.1rem; font-weight: 400; }
.intro { color: #c7d5e0; font-size: 1.08rem; line-height: 1.55; }
.lookup-card { padding: 1.15rem; border: 1px solid #3d4a57; background: linear-gradient(90deg, rgb(27 40 56 / 95%), rgb(20 31 44 / 95%)); box-shadow: 0 .8rem 2rem rgb(0 0 0 / 22%); }
label, dt { display: block; margin-bottom: .48rem; color: #8f98a0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.input-row { display: flex; gap: .65rem; } input { min-width: 0; flex: 1; padding: .9rem .95rem; border: 1px solid #000; outline: 1px solid #44515d; border-radius: 2px; background: #101923; color: #e7f3ff; font: inherit; } input:focus { outline: 2px solid #67c1f5; }
button { padding: .88rem 1rem; border: 0; border-radius: 2px; background: linear-gradient(to right, #47bfff 5%, #1a44c2 95%); color: #d2e885; font-weight: 700; cursor: pointer; } button:hover { background: linear-gradient(to right, #67c1f5 5%, #2766dc 95%); } button:disabled { cursor: wait; filter: grayscale(.5); opacity: .7; }
.hint, #status, .source, .library-caption { margin: .75rem 0 0; color: #8f98a0; font-size: .82rem; } code { color: #c7d5e0; } #result { margin-top: 1.25rem; }
.profile-page { overflow: hidden; border: 1px solid #31465a; background: rgb(24 36 50 / 94%); box-shadow: 0 1.3rem 3rem rgb(0 0 0 / 28%); }
.profile-hero { display: flex; align-items: center; gap: 1.25rem; min-height: 165px; padding: 1.6rem; background: linear-gradient(110deg, rgb(21 48 70 / 98%), rgb(28 83 125 / 78%)), linear-gradient(#29415a, #1b2b3a); border-bottom: 1px solid #54748e; }
.profile-hero img { width: 108px; height: 108px; border: 3px solid #6a94b3; background: #101923; object-fit: cover; } .profile-identity h2 { margin-bottom: .35rem; text-shadow: 1px 1px #000; } .community-link, a { color: #67c1f5; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-bottom: 1px solid #344a5e; } .detail { min-width: 0; padding: 1rem 1.1rem; border-right: 1px solid #344a5e; } .detail:last-child { border-right: 0; } dd { margin: 0; overflow-wrap: anywhere; color: #d6d7d8; }
.account-standing { display: grid; gap: .32rem; margin: 1.25rem 1.1rem 0; padding: .85rem 1rem; border-left: 3px solid #67c1f5; background: #172c3e; } .account-standing span { color: #c7d5e0; font-size: .9rem; }
.badge-section, .recent-section, .library-section { margin: 1.25rem 1.1rem 0; padding: 1rem; background: linear-gradient(135deg, #1b2b3b, #172331); border: 1px solid #314458; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }.section-heading h3 { margin-bottom: 0; }.section-count { color: #8f98a0; font-size: .82rem; }
.xp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #3a4b5b; }.xp-stats > div { display: grid; gap: .28rem; padding: .75rem; background: #142231; }.xp-stats span { color: #8f98a0; font-size: .76rem; }.xp-stats strong { color: #d2e885; font-size: 1.1rem; }
.badge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; padding: 0; margin: .85rem 0 0; list-style: none; }.badge-list li { display: flex; align-items: center; gap: .55rem; padding: .48rem; background: #101b26; color: #9eb8ca; font-size: .78rem; }.badge-medallion { display: inline-grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid #d2e885; border-radius: 50%; color: #d2e885; font-size: .62rem; font-weight: 700; }
.recent-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: 0; margin: 0; list-style: none; }.recent-games li { display: grid; gap: .25rem; padding: .75rem; background: #101b26; border-left: 2px solid #315d80; }.recent-games span { color: #8f98a0; font-size: .8rem; }
.library-search { width: 100%; margin-bottom: .2rem; }.library-list { display: grid; gap: 1px; margin-top: .85rem; background: #101923; }.library-game { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .5rem; background: linear-gradient(90deg, #162737, #14202c); }.library-game:hover { background: linear-gradient(90deg, #23415c, #192d3d); }.library-game img, .game-fallback { width: 92px; height: 43px; background: #0c131a; object-fit: cover; }.game-fallback { display: grid; place-items: center; color: #526d82; font-size: .65rem; font-weight: 700; letter-spacing: .12em; }.game-copy { display: grid; min-width: 0; gap: .23rem; }.game-copy strong { overflow: hidden; color: #e5f1fb; text-overflow: ellipsis; white-space: nowrap; }.game-copy span { color: #8f98a0; font-size: .78rem; }.achievement-button { padding: .5rem .65rem; font-size: .75rem; white-space: nowrap; }
.achievement-panel { grid-column: 1 / -1; padding: .85rem; background: #0d1720; border-top: 1px solid #31465a; }.achievement-panel h4 { margin-bottom: .3rem; color: #fff; font-weight: 400; }.achievement-progress { margin-bottom: .75rem; color: #d2e885; font-size: .85rem; }.achievement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: 0; margin: 0; list-style: none; }.achievement-list li { display: flex; gap: .5rem; padding: .55rem; background: #152331; font-size: .78rem; }.achievement-list li > div { display: grid; gap: .2rem; }.achievement-list span { color: #8f98a0; }.achievement-state { flex: 0 0 auto; color: #627e93 !important; font-size: .68rem; font-weight: 700; text-transform: uppercase; }.achievement-list .unlocked .achievement-state { color: #d2e885 !important; }.achievement-more { grid-column: 1 / -1; color: #8f98a0; }.empty-note, .loading-note { margin-bottom: 0; color: #8f98a0; font-size: .9rem; }.source { padding: 1.25rem 1.1rem; }
@media (max-width: 720px) { .site-nav, .nav-inner { min-height: 74px; }.nav-links, .nav-note { display: none; }.shell { padding-top: 2rem; }.details { grid-template-columns: repeat(2, 1fr); }.detail:nth-child(2n) { border-right: 0; }.detail:nth-child(3) { border-top: 1px solid #344a5e; }.badge-list, .recent-games, .achievement-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .input-row, .profile-hero { flex-direction: column; align-items: flex-start; }.details, .xp-stats { grid-template-columns: 1fr; }.detail { border-right: 0; border-bottom: 1px solid #344a5e; }.detail:last-child { border-bottom: 0; }.detail:nth-child(3) { border-top: 0; }.library-game { grid-template-columns: 68px minmax(0, 1fr); }.library-game img, .game-fallback { width: 68px; height: 38px; }.achievement-button { grid-column: 2; justify-self: start; }.achievement-panel { grid-column: 1 / -1; } }

/* ===== Production lookup shell ===== */
[hidden] {
  display: none !important;
}

.site-nav {
  min-height: 72px;
}

.nav-inner {
  min-height: 72px;
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .65rem;
  border: 1px solid #344657;
  border-radius: 999px;
  background: #101923;
  color: #8f98a0;
  font-size: .72rem;
  font-weight: 700;
}

.api-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f98a0;
}

.api-pill.is-online .api-dot {
  background: #5ba32b;
  box-shadow: 0 0 0 3px rgb(91 163 43 / 12%);
}

.api-pill.is-offline .api-dot {
  background: #d94126;
}

.shell {
  min-height: calc(100vh - 140px);
  padding-top: clamp(4rem, 12vh, 8rem);
}

#landing-stage {
  width: min(100%, 760px);
  margin: 0 auto;
}

.lookup-hero {
  max-width: 650px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.lookup-hero h1 {
  margin-bottom: .8rem;
}

.lookup-hero .intro {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lookup-card {
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
}

.lookup-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lookup-card-head h2 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 700;
}

.lookup-card-head p {
  margin: 0;
  color: #8f98a0;
  font-size: .8rem;
}

.api-chip {
  flex: 0 0 auto;
  padding: .35rem .55rem;
  border: 1px solid #3d4a57;
  border-radius: 4px;
  color: #9eb8ca;
  font-size: .7rem;
  font-weight: 700;
}

.lookup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
  color: #8f98a0;
  font-size: .78rem;
}

.lookup-meta a {
  font-weight: 700;
}

#status {
  min-height: 1.1rem;
}

#result-stage {
  display: none;
  width: min(100%, 1000px);
  margin: 0 auto;
}

#result-stage.is-visible {
  display: block;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .8rem;
}

.secondary-action {
  padding: .6rem .75rem;
  border: 1px solid #3d4a57;
  background: #171d25;
  color: #c7d5e0;
}

.secondary-action:hover {
  background: #223347;
}

.site-footer {
  padding: 0 1rem 1.5rem;
  color: #677583;
  font-size: .72rem;
  text-align: center;
}

@media (max-width: 620px) {
  .brand {
    font-size: 1rem;
  }

  .api-pill {
    font-size: .65rem;
  }

  .shell {
    padding-top: 2.5rem;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }

  .lookup-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.review-notice {
  margin: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(103, 193, 245, .28);
  border-left: 4px solid #67c1f5;
  background:
    linear-gradient(135deg, rgba(26, 159, 255, .08), transparent 55%),
    #142231;
}

.review-notice h3 {
  margin: 0 0 .5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.review-notice p {
  margin: .45rem 0 0;
  color: #b9c8d4;
  line-height: 1.55;
  font-size: .88rem;
}

.review-notice-eyebrow {
  margin: 0 0 .35rem !important;
  color: #67c1f5 !important;
  font-size: .68rem !important;
  font-weight: 800;
  letter-spacing: .12em;
}

.review-notice-disclaimer {
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8f98a0 !important;
  font-size: .8rem !important;
}

.site-footer a {
  color: #67c1f5;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
