
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050713;
  --panel: rgba(7, 15, 35, .88);
  --line: #12345c;
  --blue: #168bff;
  --cyan: #20eaff;
  --purple: #a24dff;
  --pink: #ff36d4;
  --green: #23f89b;
  --yellow: #ffd83d;
  --text: #eaf4ff;
  --muted: #91a9ce;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.background-glow {
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse at 48% 22%, #15205c44, transparent 40%),
    radial-gradient(ellipse at 5% 60%, #6818a522, transparent 35%),
    radial-gradient(ellipse at 95% 70%, #005caa22, transparent 35%);
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .6;
  background-image: radial-gradient(#45a8ff 1px, transparent 1px),
                    radial-gradient(#8c5cff 1px, transparent 1px);
  background-size: 97px 97px, 137px 137px;
  background-position: 0 0, 41px 61px;
  animation: starMove 90s linear infinite;
}

@keyframes starMove { to { background-position: 400px 600px, -500px 300px; } }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  border-bottom: 1px solid #15325b;
  background: rgba(3, 7, 19, .94);
  backdrop-filter: blur(20px);
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-weight: 900;
  font-size: 38px;
  line-height: .8;
  letter-spacing: -3px;
  color: var(--cyan);
  text-shadow: 0 0 18px #00bfff;
  min-width: 120px;
}

.logo span {
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 7px;
  color: #b4caff;
}

.top-nav { display: flex; align-self: stretch; gap: 4px; }

.nav-btn, .side-link {
  border: 0;
  background: transparent;
  transition: .2s;
}

.nav-btn {
  padding: 12px 15px;
  color: #83bfff;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
  color: white;
  background: linear-gradient(0deg, #087aff26, transparent);
  border-bottom-color: var(--cyan);
}

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

#search {
  width: 190px;
  max-width: 25vw;
  background: #0c1426;
  color: white;
  border: 1px solid #213553;
  padding: 11px 14px;
  border-radius: 24px;
}

.icon-btn {
  border: 1px solid #243f6b;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #0c1931;
  font-size: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 270px;
  gap: 22px;
  padding: 24px;
  max-width: 1800px;
  margin: auto;
}

.panel {
  border: 1px solid #16365e;
  border-radius: 16px;
  background: linear-gradient(145deg, #081329ed, #040916f5);
  box-shadow: inset 0 0 25px #071c3a45;
}

.sidebar { padding: 18px 12px; align-self: start; position: sticky; top: 94px; }
.sidebar h3, .panel h3 { margin: 0 0 16px; color: #49b9ff; }
.side-link { display: block; text-align: left; width: 100%; padding: 13px 12px; border-radius: 10px; margin-bottom: 4px; color: #b7d2ff; }
.side-link:hover, .side-link.active { color: white; background: #1744a477; box-shadow: inset 0 0 0 1px #4779ff; }

.side-bottom { margin-top: 30px; padding: 16px 8px 4px; border-top: 1px solid #1b3152; display: grid; justify-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.side-bottom strong { color: var(--cyan); }
.mini-orb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 27px; font-weight: 900; background: radial-gradient(circle at 30% 20%, #4dfbff, #2676ff 50%, #8a22fa); box-shadow: 0 0 25px #257dff99; color: white; }

.content { min-width: 0; }

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 1px solid #16365e;
  border-radius: 20px;
  background: radial-gradient(ellipse at center 48%, #102b7055, transparent 57%);
}

.hero-number {
  z-index: 1;
  font-size: clamp(115px, 18vw, 205px);
  font-weight: 900;
  letter-spacing: -15px;
  line-height: .95;
  color: transparent;
  background: linear-gradient(125deg, #21eaff 10%, #458dff 42%, #b66bff 66%, #ff42ce 88%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 13px #397aff88);
  animation: numberFloat 4s ease-in-out infinite;
}

@keyframes numberFloat { 50% { transform: translateY(-9px) scale(1.025); } }

.eyebrow { font-size: 11px; letter-spacing: 2px; color: #73bfff; font-weight: 800; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 6px; }

.hero h1 { margin: 12px 0 5px; font-size: clamp(24px, 3vw, 39px); }
.rainbow-text {
  color: transparent;
  background: linear-gradient(90deg, #1de9ff, #a75bff, #ff54c9, #ffe65b, #37fda5);
  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: rainbow 5s linear infinite;
}
@keyframes rainbow { to { background-position: 250% center; } }

.hero p { color: #a9bde7; line-height: 1.8; margin: 6px 0 17px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.primary-btn, .secondary-btn {
  border-radius: 24px;
  padding: 11px 21px;
  border: 1px solid var(--cyan);
  background: linear-gradient(110deg, #075bcb, #123f91);
  box-shadow: 0 0 18px #087cff27;
  color: white;
  font-weight: 700;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.secondary-btn { background: #0a1730; border-color: #4b69ad; }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); filter: brightness(1.2); box-shadow: 0 0 23px #159dff55; }
.primary-btn span { margin-left: 9px; }
.full-btn { width: 100%; }

.orbit { position: absolute; left: 50%; top: 34%; width: 65%; height: 85px; border: 2px solid #246fff; border-radius: 50%; transform: translateX(-50%) rotate(-8deg); opacity: .65; box-shadow: 0 0 17px #345bff44; pointer-events: none; }
.orbit-two { top: 40%; width: 48%; transform: translateX(-50%) rotate(9deg); border-color: #fa35ff; }
.floating-number { position: absolute; color: var(--cyan); font-weight: 900; font-size: 23px; text-shadow: 0 0 15px currentColor; animation: drift 5s ease-in-out infinite; }
.n1 { top: 18%; left: 12%; }
.n2 { top: 23%; right: 14%; color: var(--pink); animation-delay: -1s; }
.n3 { bottom: 25%; left: 18%; color: var(--green); animation-delay: -2s; }
.n4 { bottom: 22%; right: 19%; color: var(--yellow); animation-delay: -3s; }
@keyframes drift { 50% { transform: translateY(-17px) rotate(8deg); } }

.hero-stats { display: flex; gap: 40px; margin-top: 25px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { color: var(--cyan); font-size: 18px; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.section-block { margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { margin: 4px 0 0; font-size: 23px; }
.tiny-label { color: #5877a5; font-size: 10px; letter-spacing: 1px; text-align: right; }
.text-btn { background: none; border: none; color: var(--cyan); padding: 8px 0; }

.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-card { min-width: 0; border: 1px solid var(--accent); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 15%, #06101f), #040813); display: flex; flex-direction: column; align-items: center; padding: 15px 5px; gap: 5px; transition: .2s; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 0 23px color-mix(in srgb, var(--accent) 30%, transparent); }
.category-card > span { font-size: 27px; }
.category-card strong { font-size: 27px; color: var(--accent); }
.category-card b { font-size: 12px; color: white; }
.category-card small { font-size: 10px; color: var(--muted); text-align: center; }
.blue { --accent: #338bff; }
.pink { --accent: #ff40d2; }
.cyan { --accent: #1deaff; }
.green { --accent: #24f8a0; }
.yellow { --accent: #ffd73d; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid #17375f; border-radius: 14px; background: #060d1c; transition: .2s; }
.project-card:hover { border-color: #277dff; transform: translateY(-3px); }
.project-art { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; gap: 4px; }
.project-art > span { font-size: 65px; font-weight: 900; line-height: 1; text-shadow: 0 0 24px currentColor; }
.project-art small { font-size: 10px; letter-spacing: 2px; }
.art-clicker { color: #ff56d7; background: radial-gradient(circle, #632175, #140a29 70%); }
.art-calc { color: #1deaff; background: radial-gradient(circle, #094c92, #07152d 70%); }
.art-draw { color: #ffd64c; background: radial-gradient(circle, #6a3e0c, #1d1222 70%); }
.art-guess { color: #32ffab; background: radial-gradient(circle, #095b47, #061c20 70%); }
.project-info { padding: 13px; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 700; }
.pink-pill { color: #ff5cdb; }
.cyan-pill { color: var(--cyan); }
.yellow-pill { color: var(--yellow); }
.green-pill { color: var(--green); }
.project-info h3 { margin: 10px 0 4px; font-size: 16px; }
.project-info p { color: var(--muted); font-size: 12px; line-height: 1.6; min-height: 20px; }
.card-btn { background: transparent; border: 0; color: var(--cyan); padding: 5px 0; font-weight: 700; font-size: 12px; }

.widget-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.widget { padding: 17px; min-width: 0; }
.widget h3 { font-size: 14px; }
.widget p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.random-result { font-size: 62px; font-weight: 900; text-align: center; padding: 13px; color: var(--cyan); text-shadow: 0 0 22px #1deaff66; }
.widget blockquote { margin: 22px 0; font-size: 17px; line-height: 1.6; color: #e5d8ff; }
.calc-row { display: flex; gap: 5px; }
.calc-row input, .calc-row select { min-width: 0; width: 33%; background: #050b19; color: white; border: 1px solid #244a77; padding: 9px 5px; border-radius: 7px; }
.calc-result { margin-top: 12px; color: var(--green); font-size: 24px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }

.playground { text-align: center; padding: 28px 18px; }
.play-icon { font-size: 42px; }
.playground h3 { font-size: 21px; margin: 12px 0; }
.playground p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.play-result { margin-top: 18px; color: var(--cyan); font-weight: 700; min-height: 24px; overflow-wrap: anywhere; }

.news-list { padding: 7px 16px; }
.news-list p { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 10px 0; border-bottom: 1px solid #142846; color: #c8dbf8; }
.news-list p:last-child { border-bottom: 0; }
.news-list b { margin-left: auto; color: var(--cyan); }
.news-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

.rightbar { display: flex; flex-direction: column; gap: 16px; }
.rightbar .panel { padding: 17px; }
.rightbar h3 { font-size: 16px; }
.stat-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #152745; }
.stat-row:last-child { border-bottom: 0; }
.stat-icon { width: 45px; height: 45px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cyan); font-size: 22px; box-shadow: 0 0 13px #00c8ff25; }
.stat-row div { display: flex; flex-direction: column; gap: 4px; }
.stat-row strong { color: var(--cyan); font-size: 23px; }
.stat-row span:last-child { font-size: 11px; color: var(--muted); }
.side-67 { text-align: center; font-size: 75px; font-weight: 900; color: transparent; background: linear-gradient(130deg, #25efff, #f05bff); background-clip: text; -webkit-background-clip: text; text-shadow: 0 0 25px #168aff44; }
.random-panel p { text-align: center; font-size: 12px; color: var(--muted); }
.news-panel p { font-size: 12px; padding: 9px 0; margin: 0; color: #b9cbe8; border-bottom: 1px solid #172844; }
.news-panel p:last-child { border: 0; }
.quote-mini { color: #d5c5ff; }
.quote-mini > span { font-size: 38px; color: var(--purple); }
.quote-mini p { line-height: 1.7; }
.quote-mini b { color: #8e9fca; font-size: 11px; }

footer { border-top: 1px solid #153052; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #7592bd; font-size: 11px; }
footer strong { color: var(--cyan); letter-spacing: 6px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #101e39; border: 1px solid var(--cyan); color: white; border-radius: 25px; padding: 12px 20px; z-index: 20; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 0 24px #008cff44; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.mode-67 {
  --line: #ff40d2;
  --cyan: #ff54db;
  --blue: #ffbd38;
  --purple: #26f9ff;
}
body.mode-67 .panel, body.mode-67 .project-card { animation: modeGlow 3s ease-in-out infinite alternate; }
@keyframes modeGlow { to { box-shadow: 0 0 24px #ff35dd27, inset 0 0 18px #27eaff16; } }

body.high-67 .hero-number { animation-duration: 1s; }
body.high-67 .stars { opacity: 1; }

[hidden] { display: none !important; }

@media (max-width: 1250px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); }
  .rightbar { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { flex-wrap: wrap; }
  .top-nav { order: 3; width: 100%; overflow-x: auto; }
  .nav-btn { flex: 1; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px; gap: 12px; }
  .logo { min-width: 80px; font-size: 32px; }
  .top-actions { gap: 5px; }
  #search { width: 125px; max-width: 40vw; }
  .top-nav { gap: 0; }
  .nav-btn { padding: 11px 12px; font-size: 12px; }
  .layout { display: flex; flex-direction: column; padding: 12px; gap: 14px; }
  .sidebar { position: static; padding: 12px; }
  .sidebar h3, .side-bottom { display: none; }
  .side-link { display: inline-block; width: auto; margin: 2px; padding: 10px; font-size: 12px; }
  .hero { min-height: 350px; padding: 24px 12px; }
  .hero-number { font-size: 125px; letter-spacing: -9px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }
  .hero-stats { gap: 22px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card:last-child { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: 1fr; }
  .project-art { height: 155px; }
  .widget-grid { grid-template-columns: 1fr; }
  .rightbar { display: grid; grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 20px; }
  .tiny-label { display: none; }
  footer { flex-direction: column; text-align: center; }
  footer strong { letter-spacing: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
