
:root{
  --bg:#080c11;
  --surface:#0d131a;
  --surface-2:#101821;
  --line:#1b2835;
  --line-strong:#2b4055;
  --text:#f2f5f8;
  --muted:#9ba8b7;
  --muted-2:#647487;
  --blue:#219eff;
  --blue-soft:#172b3e;
  --danger:#e89b9b;
  --success:#8fd7a5;
  --max:1040px;
}

*{box-sizing:border-box}
[hidden]{display:none!important}

html{
  background:var(--bg);
  color-scheme:dark;
}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(700px 360px at 18% -120px,rgba(33,158,255,.08),transparent 70%),
    var(--bg);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit}
button,input{font:inherit}

.site-header,
.page,
.site-footer{
  width:min(var(--max),calc(100% - 40px));
  margin-inline:auto;
}

.site-header{
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.site-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.site-brand img{
  display:block;
  width:210px;
  height:auto;
}

.header-note{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted-2);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--blue);
  box-shadow:0 0 16px rgba(33,158,255,.55);
}

.page{
  min-height:calc(100vh - 168px);
}

.home-view{
  max-width:820px;
  margin:0 auto;
  padding:104px 0 72px;
}

.home-copy{
  max-width:690px;
}

.brand-symbol{
  width:68px;
  height:68px;
  margin-bottom:28px;
}

.brand-symbol img{
  display:block;
  width:100%;
  height:100%;
}

.section-kicker{
  margin:0 0 12px;
  color:#6f8297;
  font-size:9px;
  font-weight:800;
  letter-spacing:.18em;
}

.home-copy h1,
.identity-copy h1{
  margin:0;
  letter-spacing:-.055em;
  font-weight:720;
}

.home-copy h1{
  font-size:clamp(44px,7vw,68px);
  line-height:.98;
}

.lede{
  max-width:650px;
  margin:20px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
}

.lookup-area{
  margin-top:42px;
}

.lookup-form,
.profile-lookup-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.lookup-field{
  min-width:0;
  height:60px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:0 16px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#0a1016;
  transition:border-color .14s ease,background .14s ease;
}

.lookup-field:focus-within{
  border-color:#476985;
  background:#0b1219;
}

.lookup-label{
  flex:0 0 auto;
  padding-right:13px;
  border-right:1px solid var(--line);
  color:#6f8297;
  font-size:8px;
  font-weight:800;
  letter-spacing:.15em;
}

.lookup-field input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:13px;
}

.lookup-field input::placeholder{
  color:#596a7d;
}

.primary-button,
.secondary-button{
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
  transition:background .14s ease,border-color .14s ease,transform .14s ease;
}

.primary-button{
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:0 18px;
  border:1px solid #eef4f8;
  background:#eef4f8;
  color:#081019;
  font-size:12px;
}

.primary-button:hover{
  background:#fff;
  border-color:#fff;
  transform:translateY(-1px);
}

.primary-button:disabled{
  opacity:.65;
  cursor:wait;
  transform:none;
}

.button-arrow{
  font-size:15px;
  color:#506173;
}

.secondary-button{
  min-height:40px;
  padding:0 13px;
  border:1px solid var(--line-strong);
  background:#0d141c;
  color:#dce5ed;
  font-size:11px;
}

.secondary-button:hover{
  border-color:#3c5771;
  background:#121b24;
}

.form-error{
  min-height:22px;
  padding-top:8px;
  color:var(--danger);
  font-size:11px;
}

.route-tip{
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.055);
  display:grid;
  grid-template-columns:auto 1fr;
  gap:7px 15px;
  align-items:center;
}

.route-tip-label{
  color:#5e7186;
  font-size:8px;
  font-weight:800;
  letter-spacing:.16em;
}

.route-example{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#76879a;
  font-size:10px;
}

.route-example code,
.route-tip-text code,
.identity-meta code,
.profile-route code{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.route-example code{
  color:#a7b4c2;
  font-size:10px;
}

.route-tip-text{
  grid-column:2;
  color:#657588;
  font-size:10px;
}

.route-tip-text code{
  color:#94a3b4;
}

.source-strip{
  margin-top:56px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.055);
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  color:#536478;
  font-size:10px;
}

.search-results{
  display:grid;
  gap:8px;
  margin-top:4px;
}

.search-results button{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#0b1118;
  color:var(--text);
  cursor:pointer;
  text-align:left;
}

.search-results button:hover{
  border-color:#38536d;
  background:#101821;
}

.search-results img{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  object-fit:cover;
  background:#121821;
}

.search-result-copy,
.profile-lookup-result-copy{
  min-width:0;
  flex:1;
}

.search-result-copy strong,
.profile-lookup-result-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

.search-result-copy span,
.profile-lookup-result-copy span{
  display:block;
  margin-top:3px;
  color:var(--muted-2);
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:9px;
}

.profile-view{
  padding:42px 0 72px;
}

.profile-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.text-link{
  color:#8392a3;
  font-size:11px;
  text-decoration:none;
}

.text-link:hover{
  color:var(--text);
}

.plus{
  margin-left:8px;
  color:#7f90a2;
  font-size:14px;
  transition:transform .14s ease;
}

.secondary-button.is-open .plus{
  transform:rotate(45deg);
}

.profile-lookup-panel{
  padding:16px 0 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.lookup-field.compact{
  height:46px;
}

.compact-button{
  min-height:46px;
  padding-inline:15px;
}

.profile-error{
  min-height:18px;
}

.profile-results{
  margin-top:2px;
}

.profile-identity{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:36px 0 30px;
}

.avatar-wrap{
  width:104px;
  height:104px;
  position:relative;
}

.avatar{
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.09);
  background:#0d131a;
}

.loading-dot{
  position:absolute;
  right:2px;
  bottom:7px;
  width:13px;
  height:13px;
  border:3px solid var(--bg);
  border-radius:50%;
  background:#738398;
}

.loading-dot.ready{background:var(--success)}
.loading-dot.error{background:#d78f8f}

.identity-copy{
  min-width:0;
}

.identity-copy h1{
  font-size:clamp(34px,5vw,52px);
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.steam-profile-link{
  display:inline-block;
  max-width:100%;
  margin-top:10px;
  color:#8d9cac;
  font-size:11px;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.steam-profile-link:hover{
  color:var(--text);
}

.identity-meta{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.meta-label{
  color:#627386;
  font-size:8px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.identity-meta code{
  color:#cbd5df;
  font-size:11px;
}

.profile-actions{
  display:grid;
  gap:8px;
  min-width:150px;
}

.action-button{
  min-height:40px;
  width:100%;
  justify-content:center;
  gap:10px;
  padding-inline:12px;
  font-size:10px;
}

.status-message{
  margin-bottom:18px;
  padding:11px 13px;
  border-left:2px solid #526981;
  background:#0c1218;
  color:#9ca9b8;
  font-size:11px;
  line-height:1.55;
}

.profile-route{
  padding:13px 0;
  border-top:1px solid rgba(255,255,255,.055);
  border-bottom:1px solid rgba(255,255,255,.055);
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:#5d6f82;
  font-size:9px;
}

.profile-route code{
  color:#8494a7;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.sources-section{
  padding-top:34px;
}

.sources-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding-bottom:15px;
}

.sources-header h2{
  margin:0;
  font-size:21px;
  letter-spacing:-.03em;
}

.sources-note{
  color:#637488;
  font-size:9px;
}

.source-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--line);
}

.source-list a{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 14px;
  border-bottom:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  transition:background .14s ease;
}

.source-list a:nth-child(odd){
  border-right:1px solid var(--line);
}

.source-list a:hover{
  background:#0c131a;
}

.source-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.source-main strong{
  font-size:12px;
  font-weight:700;
}

.source-main small{
  color:#617286;
  font-size:9px;
}

.source-arrow{
  flex:0 0 auto;
  color:#63758a;
  font-size:12px;
}

.site-footer{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#526376;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:30;
  transform:translate(-50%,10px);
  padding:9px 12px;
  border:1px solid var(--line-strong);
  border-radius:7px;
  background:#111922;
  color:#e7edf4;
  box-shadow:0 18px 50px rgba(0,0,0,.4);
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease,transform .15s ease;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

@media(max-width:760px){
  .site-header,
  .page,
  .site-footer{
    width:min(100% - 28px,var(--max));
  }

  .site-header{
    height:72px;
  }

  .site-brand img{
    width:176px;
  }

  .header-note{
    display:none;
  }

  .home-view{
    padding:70px 0 54px;
  }

  .brand-symbol{
    width:58px;
    height:58px;
    margin-bottom:22px;
  }

  .lookup-form,
  .profile-lookup-form{
    grid-template-columns:1fr;
  }

  .primary-button{
    justify-content:space-between;
  }

  .route-tip{
    grid-template-columns:1fr;
  }

  .route-tip-text{
    grid-column:1;
  }

  .source-strip{
    margin-top:42px;
  }

  .profile-identity{
    grid-template-columns:auto minmax(0,1fr);
    align-items:start;
  }

  .profile-actions{
    grid-column:1/-1;
    display:flex;
    min-width:0;
  }

  .profile-actions>*{
    flex:1;
  }

  .source-list{
    grid-template-columns:1fr;
  }

  .source-list a:nth-child(odd){
    border-right:0;
  }

  .sources-header{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
}

@media(max-width:480px){
  .home-view{
    padding-top:52px;
  }

  .home-copy h1{
    font-size:42px;
  }

  .lede{
    font-size:13px;
  }

  .lookup-field{
    height:56px;
  }

  .route-example{
    flex-wrap:wrap;
  }

  .profile-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .profile-toolbar .secondary-button{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .profile-identity{
    grid-template-columns:1fr;
  }

  .avatar-wrap{
    width:88px;
    height:88px;
  }

  .profile-actions{
    grid-column:auto;
    flex-direction:column;
  }

  .site-footer{
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:6px;
  }
}

@media(prefers-reduced-motion:reduce){
  *{transition:none!important}
}
