@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-300.TTF) format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: swap
}

@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-400.TTF) format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap
}

@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-500.TTF) format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap
}

@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-600.TTF) format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap
}

@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-700.TTF) format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap
}

@font-face {
	font-family: GILROY;
	src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-800.TTF) format("truetype");
	font-weight: 800;
	font-style: normal;
	font-display: swap
}

:root {
  --bg: #0B0B0C;
  --card: rgba(255, 255, 255, 0.04);
  --accent: #53FC18;
  --accent-2: #00b34e;
  --text: #e8ecf1;
  --muted: #8da0b1;
  --danger: #ff6b6b;
  --radius: 10px;
  --glow: 0 15px 60px rgba(83, 252, 24, 0.18);
  --primary-gradient: linear-gradient(135deg, #00ff7c, #008107);
}

* {
  box-sizing: border-box;
  font-family: GILROY, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: GILROY, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  position: relative;
  min-height: 100vh;
}

.lava-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.6;
  z-index: 0;
  mix-blend-mode: screen;
}

.lava-blob {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(var(--angle, 135deg), #00ff7c, #008107);
  transition: opacity 0.4s ease;
  will-change: transform;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient {
  position: absolute;
  width: 70vw;
  height: 70vw;
  filter: blur(120px);
  opacity: 0.4;
  border-radius: 50%;
}

.gradient-1 {
  top: -10%;
  left: -10%;
}

.leader-card{
	position: absolute;
	right: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 30px;
}

.leader-card .label{
	margin: 0;
}

.leader-card #stat-rank{
	margin: 0;
}

.gradient-2 {
  bottom: -20%;
  right: -10%;
}

.grid-lines {
}

.orbs {display: none;}

.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  filter: blur(8px);
  animation: float 12s ease-in-out infinite;
}

.orb-1 { top: 12%; left: 15%; }
.orb-2 { bottom: 18%; right: 10%; animation-duration: 14s; }
.orb-3 { top: 45%; left: 55%; animation-duration: 16s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.panel {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 4vw, 64px) clamp(18px, 5vw, 80px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.panel.active {
  display: flex;
  animation: fadeIn 0.9s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  background: var(--primary-gradient);
  width: min(1100px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: clamp(18px, 3vw, 25px);
  backdrop-filter: blur(10px);
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: WHITE;
  border-radius: 999px;
  font-size: clamp(11px, 1.6vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0c;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 14px;
  letter-spacing: -1px;
}

.hero-title .accent {
  color: #0b0b0c;
  text-shadow: 0 0 20px rgba(103, 255, 156, 0.35);
}

.hero-subtitle {
  margin: 0 0 26px;
  color: white;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.6;
  max-width: 820px;
}

.username-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0b0b0c;
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgb(0 0 0);
  color: white;
  font-size: 16px;
  min-width: 0;
  outline: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.primary-btn {
  position: relative;
  padding: 16px;
  border-radius: 15px;
  border: 0;
  background: white;
  color: #1b2816;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
}

.primary-btn .pulse {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 45%);
  animation: pulse 2.6s infinite;
}

.primary-btn span {
  position: relative;
  z-index: 2;
}

.primary-btn:active {
  transform: translateY(1px);
}

.primary-btn.small {
  padding: 12px 14px;
  font-size: 14px;
}


@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

.helper {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  display: none;
}

.hint {
  display: none;
}

.loading-card {
  width: min(520px, 100%);
  text-align: center;
  background: var(--primary-gradient);
  padding: clamp(24px, 4vw, 36px);
  border-radius: clamp(18px, 3vw, 25px);
  position: relative;
}

.ring {
  width: clamp(180px, 40vw, 220px);
  height: clamp(130px, 32vw, 160px);
  margin: 0 auto 18px;
  border-radius: 50%;
  position: relative;
}

.avatar-wrap {
  width: clamp(120px, 28vw, 160px);
  height: clamp(120px, 28vw, 160px);
  border-radius: 50%;
  overflow: hidden;
  margin: calc(-1 * clamp(140px, 30vw, 190px)) auto 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.avatar-wrap img, .recap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loading-text h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}

.loading-text p {
  margin: 0 0 16px;
  color: white;
}

.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  width: 60%;
  height: 100%;
  background: white;
  border-radius: inherit;
  animation: progress 1.6s ease-in-out infinite;
}

@keyframes progress {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(120%); }
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(103, 255, 156, 0.12);
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
}

.mini-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.mini-step {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  color: white;
}

.mini-step.done {
  border-color: rgb(255 255 255 / 74%);
  color: var(--accent);
}

.recap-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  position: relative;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(83, 252, 24, 0.55);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recap-card {
  position: relative;
  width: min(600px, 100%);
  height: auto;
  background: var(--primary-gradient);
  padding: clamp(24px, 4vw, 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: clamp(20px, 3vw, 25px);
  gap: 20px;
}

.recap-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 90%, rgba(83, 252, 24, 0.18), transparent 50%);
  pointer-events: none;
}

.recap-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.recap-logo {
  height: clamp(38px, 5vw, 50px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.recap-logo img{
	height: 40px;
}

.recap-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.recap-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.recap-avatar.big {
  width: clamp(150px, 35vw, 180px);
  height: clamp(150px, 35vw, 180px);
}

.recap-meta {
  text-align: center;
  color: #fff;
}

.recap-meta .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.recap-meta h2 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.4px;
}

.recap-meta .tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.recap-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-card {
  display: flex;
  background: rgb(255 255 255);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  min-height: clamp(130px, 28vw, 150px);
  padding: clamp(16px, 3vw, 22px);
  position: relative;
  overflow: hidden;
  color: #161616;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-card.glow::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0.6;
  animation: float 10s ease-in-out infinite;
}

.stat-card .label {
  margin: 0 0 8px;
  color: rgb(0 0 0 / 72%);
  font-size: 14px;
  font-weight: 600;
}

.stat-card h3 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 36px);
  letter-spacing: -0.3px;
  font-weight: 900;
}

.recap-footer {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  padding: 8px 0 4px;
  position: relative;
  z-index: 1;
}

.foot-note {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.error-card {
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(24px, 4vw, 34px);
  border-radius: clamp(10px, 2.5vw, var(--radius));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: min(420px, 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.error-card h2 {
  margin: 0 0 10px;
}

.error-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .recap-header {
    max-width: 960px;
  }
  .actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .panel {
    padding: 26px 32px;
  }
  .hero {
    width: 100%;
  }
  .recap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .stage {
    height: auto;
    min-height: 100vh;
  }
  .panel {
    position: relative;
    padding: 22px 18px 28px;
    align-items: stretch;
  }
  .hero {
    padding: 22px;
  }
  .recap-card {
    padding: 22px;
  }
  .recap-hero {
    gap: 16px;
  }
  .recap-meta .eyebrow {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .panel {
    gap: 14px;
  }
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-btn,
  .primary-btn.small {
    width: 100%;
    text-align: center;
  }
  .loading-card,
  .recap-card,
  .error-card {
    width: 100%;
  }
  .recap-header {
    gap: 8px;
  }
  .actions {
    gap: 8px;
  }
  .recap-stats {
    grid-template-columns: 1fr;
  }
  .recap-meta h2 {
    font-size: 32px;
  }
  .stat-card h3 {
    font-size: 30px;
  }
  .error-card {
    padding: 26px 18px;
  }
	.stat-card {
	    display: flex;
	    background: rgb(255 255 255);
	    border: 1px solid rgba(255, 255, 255, 0.25);
	    border-radius: 25px;
	    min-height: clamp(50px, 28vw, 50px);
	    padding: clamp(16px, 3vw, 22px);
	    position: relative;
	    overflow: hidden;
	    color: #161616;
	    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	    flex-direction: column;
	    align-items: center;
	    justify-content: center;
	    text-align: center;
	}
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-badge {
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .ring {
    width: 180px;
    height: 140px;
  }
  .avatar-wrap {
    margin: -140px auto 14px;
  }
  .recap-meta h2 {
    font-size: 28px;
  }
}
