:root{
    --bg:#0f1114;
    --card:#17181b;
    --muted:#98a0b3;
    --accent:#a04cff;
    --tile:#1f2327;
  }
  
  
  
  *{box-sizing:border-box}
  body{
    background: radial-gradient(ellipse at top left, rgba(160,76,255,0.06), transparent 15%), var(--bg);
    color:#e6eef8;
    font-family: Inter, system-ui, sans-serif;
    margin:0;
    padding:20px;
  }
  .container{max-width:1200px;margin:0 auto}
  .hero{text-align:center;padding:12px 0}
  .logo{width:72px;height:72px;object-fit:contain;border-radius:12px;margin-bottom:6px}
  h1{font-size:56px;margin:6px 0;color:var(--accent);letter-spacing: -1px}
  .subtitle{color:var(--muted);margin-top:0}
  .panel{display:none;margin-top:28px}
  .panel.active{display:block}
  .streams{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:20px}
  .stream-btn{
    display:flex;gap:12px;align-items:center;padding:22px;border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
 border:1px solid rgba(255,255,255,0.03);cursor:pointer
    
  }
  .icon{width:64px;height:64px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;color:white}
  .icon.backend{background:linear-gradient(180deg,#6a4cff,#a04cff)}
  .icon.frontend{background:linear-gradient(180deg,#ff8a4c,#ff5a4c)}
  .icon.ailm{background:linear-gradient(180deg,#2bd7a3,#2bd7a3)}
  .icon.cloud{background:linear-gradient(180deg,#4cb7ff,#4c8cff)}
  .icon.general {
    background: linear-gradient(180deg, #ffb74c, #ff9800); /* Orange gradient for General */
    color: white;
}
  .title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.7);
}





  .muted{color:var(--muted);margin-top:6px}
  
  .footer{display:flex;justify-content:center;padding:28px}
  .primary{background:linear-gradient(90deg,#9f4cff,#8a3cff);border:none;padding:14px 28px;border-radius:14px;color:white;font-weight:700;cursor:pointer}
  
  .topbar{display:flex;align-items:center;justify-content:space-between;padding:10px}
  .link{background:none;border:none;color:var(--muted);cursor:pointer;padding:6px}
  .game-area{display:flex;gap:24px;margin-top:18px}
  .grid-wrapper{flex:1;background:var(--card);padding:18px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
  .grid{display:grid;grid-template-columns:repeat(10,1fr);gap:10px;padding:10px}
  .tile{width:48px;height:48px;border-radius:8px;background:var(--tile);display:flex;align-items:center;justify-content:center;user-select:none;cursor:pointer;font-weight:700;color:#dfe9ff}
  .tile.selected{outline:3px solid rgba(160,76,255,0.18)}
  .tile.found{background:linear-gradient(90deg,rgba(160,76,255,0.2),rgba(225, 214, 237, 0.06));color:white;opacity:0.95}
  
  .sidebar{width:320px;background:var(--card);padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
  .word-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
  .word-list li{background:#101214;padding:10px;border-radius:8px;color:var(--muted);font-weight:700}
  .word-list li.found{text-decoration:line-through;color:#9be0ff;opacity:0.9}
  
  .controls{margin-top:12px;display:flex;gap:8px}
  .controls button{padding:8px 12px;border-radius:10px;border:none;background:rgba(255,255,255,0.03);color:var(--muted);cursor:pointer}
  
  .input{padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.04)}
  #username{padding:6px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:#0d0e10;color:#fff}
  .footer small{color:var(--muted)}
  
  @media(max-width:900px){
    .game-area{flex-direction:column}
    .sidebar{width:100%}
  }
  .controls button {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
  }
  
  .controls button:hover {
    background: rgba(255,255,255,0.12);
  }
  
  .controls button:active {
    transform: scale(0.92);
    background: rgba(160,76,255,0.25);
    color: white;
  }
  

/* Title */
.lb-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    color: #b497ff;
    text-shadow: 0 0 10px rgba(180,151,255,0.8);
}


.icon i {
  font-size: 24px;
  color: white;
}

.stream-btn .icon.general i {
  width: 26px;
  height: 26px;
  stroke: white;   /* icon color */
  margin-right: 12px;
}
.streams {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
  position: relative;
}

.general-btn {
  grid-column: 1 / 3;        /* span both columns */
  justify-self: center;       /* center horizontally */
  width: 50%;             
  margin-top: 20px;     /* makes it centered & not full width */
}
.game-info {
  background: #111;           
  color: #fff;
  padding: 14px 16px;
  margin: 20px auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
  border: 1px solid #222;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.game-info div {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.game-info span {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
  color: #826fdb; /* cool cyan highlight */
}

/* Input style (username) */

#username {
  padding: 6px 10px;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all .2s ease;
}

#username::placeholder {
  color: #aaa;
}

#username:focus {
  border-color: #932de6;
  box-shadow: 0 0 8px rgba(0, 234, 255, 0.4);
}

/* Container styling */
#leaderboard {
  width: 400px;
  margin: 50px auto; /* Center horizontally */
  background-color: #0a0a0a; /* Deep black background */
  border: 2px solid #8a2be2; /* Neon purple border */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px #8a2be2, 0 0 40px #8a2be2 inset;
  font-family: 'Arial', sans-serif;
  color: #fff;
}

/* Title styling */
.leaderboard-title {
  text-align: center;
  color: #fff;;
  font-size: 24px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2;
}

/* Header styling */
.leaderboard-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  padding: 10px 0;
  border-bottom: 1px solid #8a2be2;
  text-transform: uppercase;
  font-weight: bold;
  color: #bb86fc;
}

/* Scrollable list */
.leaderboard-scroll {
  max-height: 250px; /* Roughly fits 5 items */
  overflow-y: auto;
  margin-top: 10px;
}

/* Scrollbar styling */
.leaderboard-scroll::-webkit-scrollbar {
  width: 8px;
}

.leaderboard-scroll::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.leaderboard-scroll::-webkit-scrollbar-thumb {
  background-color: #8a2be2;
  border-radius: 4px;
  border: 2px solid #0a0a0a;
}

/* List items */
.leaderboard-list li {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  padding: 10px 0;
  border-bottom: 1px solid #3a0ca3;
  transition: background 0.3s, transform 0.2s;
}

.leaderboard-list li:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: scale(1.02);
}

/* Neon text glow for names */
.leaderboard-list li span {
  color: #ebe6f0;
  text-shadow: 0 0 5px #8a2be2, 0 0 10px #8a2be2;
}
.leaderboard-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
}
.badge-wrapper {
  display: flex;
  justify-content: flex-end; /* RIGHT side */
  width: 100%;
}

/* remove link underline */
.catalyst-link {
  text-decoration: none;
}

/* badge style */
.catalyst-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  
  background: #fff;           /* fully white */
  border-radius: 40px;

  color: #000;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;

  transition: 0.2s ease;
}

/* hover effect (optional) */
.catalyst-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.catalyst-icon {
  height: 18px;
}


