:root{
  --bg:#0b1020;
  --panel:#0f1730;
  --text:#eaf0ff;
  --muted:#b9c3e6;
  --line:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 980px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
  line-height:1.7;

  position: relative;
  isolation: isolate;
  min-height: 100%;
}

/* Fixed, seamless background */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 10% 0%, rgba(142,162,255,.22), transparent 60%),
    radial-gradient(900px 550px at 85% 10%, rgba(124,240,214,.18), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(142,162,255,.14), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
}

a{color:inherit}
a:hover{color:#7cf0d6}

.skip{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:16px;top:16px;width:auto;height:auto;padding:10px 12px;
  background:rgba(0,0,0,.75);border:1px solid var(--line);border-radius:12px;
  z-index:999;
}

header{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,16,32,.88), rgba(11,16,32,.50));
  border-bottom:1px solid var(--line);
}

.bar{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;align-items:center;gap:10px;text-decoration:none;
  font-weight:700;letter-spacing:.2px;
}
.mark{
  width:34px;height:34px;border-radius:12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(124,240,214,.95), transparent 60%),
    radial-gradient(22px 22px at 70% 70%, rgba(142,162,255,.95), transparent 60%),
    rgba(255,255,255,.06);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand small{
  display:block;
  font-weight:500;
  color:var(--muted);
  margin-top:1px;
  font-size:12px;
}

nav{
  display:flex;flex-wrap:wrap;gap:10px;
  justify-content:flex-end;
}
nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
nav a:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.04);
}

main{max-width:var(--max); margin:0 auto; padding:28px 18px 60px}

.hero{
  margin-top:18px;
  padding:26px 22px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.15;
  letter-spacing:-.5px;
}
.hero p{
  margin:0;
  color:var(--muted);
  max-width:78ch;
  font-size: 17px;
}

article{
  margin-top:22px;
  padding:22px 20px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

h2{
  margin:26px 0 10px;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing:-.2px;
}
h3{
  margin:18px 0 8px;
  font-size:18px;
  letter-spacing:-.1px;
}
p{margin:12px 0}

.note{
  margin:14px 0 0;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.86);
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.95em;
  background:rgba(0,0,0,.28);
  padding:.15em .35em;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  white-space:nowrap;
}

pre{
  margin:12px 0 0;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  overflow:auto;
  line-height:1.55;
}
pre code{
  white-space:pre;
  padding:0;
  border:none;
  background:transparent;
  border-radius:0;
  font-size:13px;
}

.divider{
  height:1px;
  background:var(--line);
  margin:22px 0;
}

.controls{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.search{
  flex: 1 1 340px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
}
.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
.search input::placeholder{color:rgba(185,195,230,.65)}

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex: 0 0 auto;
}
.chip{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.78);
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  cursor:pointer;
  user-select:none;
}
.chip:hover{color:var(--text); background:rgba(255,255,255,.05)}
.chip[aria-pressed="true"]{
  color:var(--text);
  background:rgba(255,255,255,.07);
  border-color:rgba(124,240,214,.35);
}

.table-wrap{
  margin-top:14px;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
  background:rgba(0,0,0,.14);
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
th, td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
}
th{
  text-align:left;
  color:rgba(255,255,255,.88);
  background:rgba(255,255,255,.03);
  font-weight:600;
  position:sticky;
  top:0;
  z-index:1;
}

th button{
  all:unset;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:2px 0;
}
th button:hover{color:#7cf0d6}
.sort-ind{
  font-size:12px;
  color:rgba(255,255,255,.55);
}

td{
  color:rgba(255,255,255,.80);
}
tr:last-child td{border-bottom:none}

.muted{color:rgba(185,195,230,.78)}
.count{color:rgba(255,255,255,.72); font-size:13px}

/* Popular codes list */
.popular{
  margin-top:14px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.14);
}
.popular h3{
  margin:0 0 8px;
  font-size:15px;
  color:rgba(255,255,255,.92);
}
.popular ul{
  margin:0;
  padding-left:18px;
  color:rgba(255,255,255,.80);
}
.popular li{margin:8px 0}
.popular a{color:rgba(255,255,255,.86); text-decoration:none}
.popular a:hover{color:#7cf0d6; text-decoration:underline}

footer{
  max-width:var(--max);
  margin:0 auto;
  padding:26px 18px 46px;
  color:rgba(255,255,255,.70);
}
footer .box{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 18px;
  background:rgba(255,255,255,.03);
}
footer p{margin:8px 0}
.tiny{font-size:13px;color:rgba(255,255,255,.68)}

@media (max-width: 720px){
  nav{display:none}
  .hero{padding:22px 18px}
  article{padding:18px 16px}
  th,td{padding:10px 10px}
  th{position:static}
}

