:root{
  --bg:#0a0a0a;
  --bg-alt:#0d0d0d;
  --card:#161616;
  --card-border:#2a2a2a;
  --field:#0f0f0f;
  --field-border:#2c2c2c;
  --text:#f2f2f2;
  --text-muted:#9a9a9a;
  --text-dim:#6f6f6f;
  --orange:#ff9d1a;
  --orange-dark:#e2820a;
  --yellow:#ffc93c;
  --green:#3ddc61;
  --badge-count:#ffde00;
}

*{box-sizing:border-box;margin:0;padding:0;}

html{
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:var(--orange-dark) var(--bg-alt);
}

::-webkit-scrollbar{width:12px;height:12px;}
::-webkit-scrollbar-track{background:var(--bg-alt);}
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  border:3px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover{background:var(--orange);}

@media (min-width:1014px){
  html{zoom:1.125;}
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Noto Sans',sans-serif;
  line-height:1.5;
  overflow-x:hidden;
}

h1,h2,h3,h4,nav,.btn,.field-label,.badge{
  font-family:'Noto Sans',sans-serif;
  font-weight:800;
  text-transform:uppercase;
}

a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:none;}

.container{
  max-width:1240px;
  margin:0 auto;
  padding:0 32px;
}

/* ---------- HEADER ---------- */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,10,10,0.85);
  backdrop-filter:blur(8px);
  transition:transform .3s ease;
}

header.header-hidden{
  transform:translateY(-100%);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1240px;
  margin:0 auto;
  padding:22px 32px;
}

.nav-links{
  display:flex;
  gap:40px;
  list-style:none;
}

.nav-links a{
  font-size:17px;
  font-weight:800;
  letter-spacing:0.5px;
  color:var(--text);
  transition:color .15s ease;
  position:relative;
}

.nav-links a:hover{color:var(--orange);}

.nav-links a.active{
  font-weight:900;
  color:var(--orange);
}

.btn{
  font-weight:800;
  letter-spacing:0.5px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}

.btn-primary{
  background:linear-gradient(180deg,var(--orange) 0%,var(--orange-dark) 100%);
  color:#fff;
  padding:12px 26px;
  font-size:14px;
  box-shadow:0 4px 14px rgba(255,157,26,0.25);
}

.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,157,26,0.35);}

.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  padding:6px;
}
.burger span{width:24px;height:2px;background:var(--text);display:block;border-radius:2px;}

/* ---------- HERO ---------- */
.hero{
  text-align:center;
  max-width:1240px;
  margin:0 auto;
  padding: 85px 32px 60px;
  min-height:calc(100vh - 84px);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
}

@media (max-width:1013px){
  .hero{min-height:calc(100vh - 74px);}
}

.logo-wrap{
  position:relative;
  display:block;
  width:100%;
  margin-bottom:28px;
  padding:20px 40px;
}

.logo-glow{
  position:absolute;
  inset:-40px;
  background:radial-gradient(ellipse at center, rgba(255,157,26,0.28) 0%, rgba(255,157,26,0) 70%);
  z-index:0;
  pointer-events:none;
}

.hero-logo{
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
  height:auto;
  display:block;
  margin:0 auto;
  filter:drop-shadow(0 14px 30px rgba(0,0,0,0.55));
}

@media (max-width:720px){
  .logo-wrap{padding:10px 10px;}
  .hero-logo{max-width:400px;}
}

.hero p{
  max-width:680px;
  margin:0 auto 32px;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.7;
}

.btn-players-wrap{
  position:relative;
  display:inline-flex;
}

.online-badge{
  position:absolute;
  top:-14px;
  right:-10px;
  background:var(--badge-count);
  color:#1a0d00;
  font-weight:800;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  box-shadow:0 4px 10px rgba(0,0,0,0.35);
  border:2px solid var(--bg);
  z-index:1;
}
.online-badge .bi{font-size:12px;}

.btn-players{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:14px 30px;
  border-radius:30px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 6px 18px rgba(255,157,26,0.25);
  transition:transform .15s ease;
}
.btn-players:hover{transform:translateY(-2px);}

.dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(61,220,97,0.2);
}
.dot.offline{
  background:var(--text-dim);
  box-shadow:0 0 0 4px rgba(255,255,255,0.08);
}

/* ---------- JOIN SECTION ---------- */
.join{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  padding:40px 32px 120px;
}

.join-text h2{
  font-size:clamp(26px,3.4vw,34px);
  line-height:1.25;
  font-weight:900;
  margin-bottom:18px;
}
.join-text h2 .accent{color:var(--orange);}

.join-text p{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.75;
  margin-bottom:28px;
  max-width:480px;
}

.btn-copy{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  color:#fff;
  font-weight:800;
  font-size:13.5px;
  height:48px;
  padding:0 26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-copy:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,157,26,0.3);}

.btn-copy .bi{
  font-size:20px;
  font-weight:700;
  -webkit-text-stroke:0.5px currentColor;
}

.cta-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.btn-lunar{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  color:#fff;
  width:48px;
  height:48px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-lunar:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,157,26,0.3);}

.lunar-icon{width:18px;height:18px;flex-shrink:0;}
.btn-lunar .lunar-icon{width:22px;height:22px;}

.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:32px;
}

.card-bee{
  position:absolute;
  top:-34px;
  right:-22px;
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,0.45));
  animation:bee-float 3.2s ease-in-out infinite;
  pointer-events:none;
}

@keyframes bee-float{
  0%, 100%{ transform:translate(0,0) rotate(-4deg); }
  50%{ transform:translate(-4px,-8px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce){
  .card-bee{ animation:none; }
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:26px;
}

.card-head h3{
  font-size:19px;
  font-weight:800;
  letter-spacing:0.5px;
}

.badge{
  background:var(--orange);
  color:#1a0d00;
  font-size:11.5px;
  font-weight:800;
  padding:6px 14px;
  border-radius:20px;
  letter-spacing:0.5px;
}

.card-head-badges{
  display:flex;
  align-items:center;
  gap:8px;
}

.badge-online{
  background:var(--field);
  color:var(--text-muted);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.badge-online .badge-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 3px rgba(61,220,97,0.2);
}

.field{margin-bottom:20px;}
.field:last-child{margin-bottom:0;}

.field-label{
  font-size:11.5px;
  color:var(--orange);
  font-weight:700;
  letter-spacing:1px;
  margin-bottom:10px;
  display:block;
}

.field-box{
  background:var(--field);
  border:1px solid var(--field-border);
  border-radius:10px;
  padding:15px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:'Noto Sans',sans-serif;
  font-size:15px;
  font-weight:600;
}

.copy-icon{
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  width:34px;
  height:34px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:background .15s ease;
}
.copy-icon:hover{background:#3a2510;}
.copy-icon svg{width:16px;height:16px;}

/* ---------- SHOWCASE SLIDER ---------- */
.showcase{
  padding:0 32px 120px;
}

.showcase-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:20px;
  padding:48px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
  overflow:hidden;
}

.showcase-text h2{
  font-size:clamp(26px,3.4vw,34px);
  line-height:1.25;
  font-weight:900;
  margin-bottom:18px;
  min-height:2.5em;
}
.showcase-text h2 .accent{color:var(--orange);}

.showcase-text p{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.75;
  margin-bottom:28px;
  min-height:4.9em;
}

.showcase-dots{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}

.showcase-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#3a3a3a;
  padding:0;
  transition:background .2s ease, width .2s ease;
}
.showcase-dot.active{
  width:26px;
  border-radius:6px;
  background:var(--orange);
}

.showcase-progress-track{
  width:100%;
  max-width:340px;
  height:4px;
  border-radius:4px;
  background:#2a2a2a;
  overflow:hidden;
}

.showcase-progress-bar{
  height:100%;
  width:0%;
  border-radius:4px;
  background:linear-gradient(90deg, var(--orange), var(--yellow));
}
.showcase-progress-bar.animate{
  width:100%;
  transition:width 5s linear;
}

.showcase-media{
  display:flex;
  justify-content:center;
}

.showcase-screenshot{
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
  background:
    linear-gradient(160deg, rgba(255,157,26,0.18), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(135deg, #1c1c1c 0 24px, #181818 24px 48px);
  border:1px solid var(--card-border);
  box-shadow:0 20px 45px rgba(0,0,0,0.45);
  transform:rotate(1.5deg);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-dim);
  font-size:14px;
  font-weight:600;
  text-align:center;
  transition:transform .3s ease;
}
.showcase-card:hover .showcase-screenshot{transform:rotate(0deg) scale(1.02);}

@media (max-width:1013px){
  .showcase-card{grid-template-columns:1fr;gap:36px;padding:36px;}
  .showcase-media{order:-1;}
}

@media (max-width:630px){
  .showcase-card{padding:26px;}
}

/* ---------- DISCORD CTA ---------- */
.discord{
  padding:0 32px 120px;
}

.discord-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:20px;
  padding:48px;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  align-items:center;
}

.discord-text h2{
  font-size:clamp(26px,3.4vw,34px);
  line-height:1.25;
  font-weight:900;
  margin-bottom:18px;
}
.discord-text h2 .accent{color:var(--orange);}

.discord-text p{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.75;
  margin-bottom:28px;
  max-width:440px;
}

.btn-discord{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:14px 26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-transform:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-discord:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,157,26,0.3);}
.btn-discord .bi{font-size:19px;}

.discord-media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
}

.discord-glow{
  position:absolute;
  inset:-20px;
  background:radial-gradient(ellipse at center, rgba(255,157,26,0.2) 0%, rgba(255,157,26,0) 70%);
  z-index:0;
  pointer-events:none;
}

.discord-wampus{
  position:relative;
  z-index:1;
  width:100%;
  max-width:240px;
  height:auto;
  display:block;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,0.5));
}

@media (max-width:1013px){
  .discord-card{grid-template-columns:1fr;gap:32px;padding:36px;text-align:center;}
  .discord-text p{margin-left:auto;margin-right:auto;}
  .discord-media{order:-1;}
}

@media (max-width:630px){
  .discord-card{padding:26px;}
}

/* ---------- LEADERBOARD ---------- */
.leaderboard{
  padding:0 32px 150px;
}

.leaderboard-head{
  text-align:center;
  max-width:560px;
  margin:0 auto 48px;
}

.leaderboard-head h2{
  font-size:clamp(28px,3.6vw,38px);
  font-weight:900;
  margin-bottom:12px;
}
.leaderboard-head h2 .accent{color:var(--orange);}

.leaderboard-head p{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.7;
}

.podium{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:18px;
  margin:0 auto 36px;
}

.podium-place{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
}

.podium-crown{
  font-size:26px;
  margin-bottom:6px;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

.podium-avatar{
  width:58px;
  height:58px;
  border-radius:12px;
  border:3px solid var(--card-border);
  background:var(--field);
  margin-bottom:10px;
  image-rendering:pixelated;
}

.place-1 .podium-avatar{
  width:78px;
  height:78px;
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,157,26,0.2);
}
.place-2 .podium-avatar{border-color:#c7c7c7;}
.place-3 .podium-avatar{border-color:#cd7f32;}

.podium-name{
  font-weight:800;
  font-size:15px;
  margin-bottom:2px;
  text-align:center;
}

.podium-votes{
  color:var(--orange);
  font-size:12.5px;
  font-weight:700;
  margin-bottom:14px;
}

.podium-bar{
  width:100%;
  max-width:230px;
  border-radius:12px 12px 0 0;
  background:var(--card);
  border:1px solid var(--card-border);
  border-bottom:none;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:12px;
  font-family:'Noto Sans',sans-serif;
  font-weight:900;
  font-size:26px;
  color:var(--text-dim);
}

.place-1 .podium-bar{
  height:120px;
  color:var(--orange);
  background:linear-gradient(180deg, rgba(255,157,26,0.14) 0%, var(--card) 100%);
  box-shadow:0 -6px 24px rgba(255,157,26,0.15);
}
.place-2 .podium-bar{height:88px;}
.place-3 .podium-bar{height:68px;}

.leaderboard-list{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  overflow:hidden;
}

.leaderboard-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 22px;
}
.leaderboard-row + .leaderboard-row{
  border-top:1px solid var(--card-border);
}

.lb-rank{
  font-family:'Noto Sans',sans-serif;
  font-weight:900;
  font-size:16px;
  color:var(--text-dim);
  width:20px;
  flex-shrink:0;
}

.lb-avatar{
  width:36px;
  height:36px;
  border-radius:8px;
  border:2px solid var(--card-border);
  image-rendering:pixelated;
  flex-shrink:0;
}

.lb-name{
  font-weight:700;
  font-size:14.5px;
  flex:1;
}

.lb-votes{
  color:var(--orange);
  font-weight:700;
  font-size:13.5px;
}

@media (max-width:630px){
  .podium{gap:10px;}
  .podium-avatar{width:46px;height:46px;}
  .place-1 .podium-avatar{width:60px;height:60px;}
  .podium-name{font-size:12.5px;}
  .podium-votes{font-size:11px;}
  .podium-bar{font-size:20px;}
  .place-1 .podium-bar{height:100px;}
  .place-2 .podium-bar{height:74px;}
  .place-3 .podium-bar{height:58px;}
}

/* ---------- CLASSEMENTS (page /classements.php) ---------- */
.ranks-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:24px;
  padding:0 32px 120px;
}

.rank-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:24px;
  transition:transform .15s ease, border-color .15s ease;
}
.rank-card:hover{transform:translateY(-4px);border-color:var(--orange-dark);}

.rank-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--card-border);
}

.rank-card-row.is-me{
  background:rgba(255,157,26,0.1);
  border:1px solid rgba(255,157,26,0.3);
  border-radius:8px;
  margin:2px 0;
  padding:8px 10px;
}
.rank-card-row.is-me .rank-card-rank,
.rank-card-row.is-me .rank-card-name{color:var(--orange);}

.rank-card-ellipsis{
  text-align:center;
  color:var(--text-dim);
  font-size:13px;
  line-height:1;
  letter-spacing:2px;
  padding:2px 0;
  height:17px;
}

.rank-card-icon{
  width:42px;
  height:42px;
  flex-shrink:0;
  border-radius:10px;
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.rank-card-head h3{
  font-size:15.5px;
  font-weight:800;
  letter-spacing:0.3px;
}

.rank-card-sub{
  display:block;
  color:var(--text-dim);
  font-size:12px;
  font-weight:600;
  margin-top:2px;
}

.rank-card-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.rank-card-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
}
.rank-card-row + .rank-card-row{
  border-top:1px solid #1e1e1e;
}

.rank-card-rank{
  width:18px;
  flex-shrink:0;
  font-family:'Noto Sans',sans-serif;
  font-weight:900;
  font-size:13px;
  color:var(--text-dim);
}
.rank-card-rank.place-1{color:var(--orange);}
.rank-card-rank.place-2{color:#c7c7c7;}
.rank-card-rank.place-3{color:#cd7f32;}

.rank-card-avatar{
  width:26px;
  height:26px;
  border-radius:6px;
  flex-shrink:0;
  image-rendering:pixelated;
}

.rank-card-name{
  flex:1;
  min-width:0;
  font-weight:700;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rank-card-value{
  color:var(--orange);
  font-weight:700;
  font-size:12px;
  text-align:right;
  white-space:nowrap;
  flex-shrink:0;
}

@media (max-width:630px){
  .ranks-grid{grid-template-columns:1fr;}
}

/* ---------- FOOTER ---------- */
footer{
  background:var(--bg);
  padding:90px 0 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid #1a1a1a;
}

.footer-logo{
  width:100%;
  max-width:220px;
  height:auto;
  display:block;
  margin-bottom:18px;
}

.footer-brand p{
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.7;
  max-width:300px;
  margin-bottom:22px;
}

.footer-brand .field-box{
  max-width:280px;
  font-size:14px;
  padding:12px 14px;
}

.socials{display:flex;gap:10px;}
.socials a{
  width:38px;height:38px;
  border-radius:8px;
  background:var(--card);
  border:1px solid var(--card-border);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease, border-color .15s ease;
}
.socials a:hover{background:#221305;border-color:var(--orange-dark);}
.socials svg{width:16px;height:16px;fill:var(--text-muted);}
.socials a:hover svg{fill:var(--orange);}

.footer-col h4{
  font-family:'Noto Sans',sans-serif;
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:1px;
  margin-bottom:20px;
  color:var(--text);
}

.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:13px;}
.footer-col a{
  color:var(--text-muted);
  font-size:14px;
  transition:color .15s ease;
}
.footer-col a:hover{color:var(--orange);}


.footer-bottom{
  padding-top:26px;
  padding-bottom:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.footer-bottom p{
  color:var(--text-dim);
  font-size:12.5px;
}
.footer-bottom .legal{display:flex;gap:22px;}
.footer-bottom a{color:var(--text-dim);font-size:12.5px;}
.footer-bottom a:hover{color:var(--orange);}

.toast{
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translateX(-50%) translateY(20px);
  background:var(--card);
  border:1px solid var(--orange-dark);
  color:var(--text);
  padding:12px 22px;
  border-radius:10px;
  font-size:13.5px;
  font-family:'Noto Sans',sans-serif;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:200;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* ---------- VOTE PAGE ---------- */
.page-hero{
  text-align:center;
  max-width:720px;
  margin:0 auto;
  padding:70px 32px 50px;
}

.page-hero h1{
  font-size:clamp(32px,4.4vw,46px);
  font-weight:900;
  margin-bottom:16px;
}
.page-hero h1 .accent{color:var(--orange);}

.page-hero p{
  color:var(--text-muted);
  font-size:15px;
  line-height:1.7;
}

.vote{
  padding:0 32px 120px;
}

.vote-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:24px;
  max-width:1100px;
  margin:0 auto;
}

.vote-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:28px;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, border-color .15s ease;
}
.vote-card:hover{transform:translateY(-4px);border-color:var(--orange-dark);}

.vote-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}

.vote-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.vote-site-number{
  display:block;
  font-family:'Noto Sans',sans-serif;
  font-weight:700;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--orange);
  margin-bottom:6px;
}

.vote-card h3{
  font-size:16px;
  font-weight:800;
  margin-bottom:8px;
}

.vote-card p{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.65;
  margin-bottom:22px;
  flex:1;
}

.vote-btn{
  width:100%;
  justify-content:center;
}

.vote-btn.is-cooldown{
  background:var(--field);
  color:var(--text-dim);
  pointer-events:none;
  box-shadow:none;
  cursor:not-allowed;
}

.leaderboard-more{
  display:block;
  text-align:center;
  color:var(--orange);
  font-weight:700;
  font-size:14px;
  margin-top:24px;
  transition:opacity .15s ease;
}
.leaderboard-more:hover{opacity:0.8;}

.rewards-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:24px 32px;
  display:flex;
  gap:20px;
  margin-bottom:40px;
}

.reward-item{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
  padding-left:20px;
  border-left:1px solid var(--card-border);
}
.reward-item:first-child{padding-left:0;border-left:none;}

.reward-medal{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.reward-medal.gold{background:rgba(255,215,0,0.12);border-color:rgba(255,215,0,0.3);}
.reward-medal.silver{background:rgba(199,199,199,0.12);border-color:rgba(199,199,199,0.3);}
.reward-medal.bronze{background:rgba(205,127,50,0.12);border-color:rgba(205,127,50,0.3);}

.reward-text{display:flex;flex-direction:column;gap:2px;}

.reward-tier{
  font-family:'Noto Sans',sans-serif;
  font-weight:800;
  font-size:11.5px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:var(--text-dim);
}

.reward-value{
  font-weight:800;
  font-size:14.5px;
  color:var(--text);
}

@media (max-width:1013px){
  .rewards-card{flex-wrap:wrap;}
  .reward-item{flex:1 1 45%;}
}

@media (max-width:630px){
  .vote-grid{grid-template-columns:1fr;}
  .rewards-card{flex-direction:column;padding:24px;}
  .reward-item{padding-left:0;border-left:none;padding-top:16px;border-top:1px solid var(--card-border);}
  .reward-item:first-child{padding-top:0;border-top:none;}
}

/* ---------- APPLY PAGE ---------- */
.apply{
  padding:0 32px 120px;
}

.apply-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:20px;
  padding:48px;
  display:flex;
  flex-direction:column;
  gap:24px;
  max-width:820px;
  margin:0 auto;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr 140px;
  gap:20px;
}

.form-field{
  display:flex;
  flex-direction:column;
}

.form-field .field-label{margin-bottom:8px;}

.req{color:var(--orange);}

.form-input{
  background:var(--field);
  border:1px solid var(--field-border);
  border-radius:10px;
  padding:13px 16px;
  color:var(--text);
  font-family:'Noto Sans',sans-serif;
  font-size:14.5px;
  font-weight:500;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-input::placeholder{color:var(--text-dim);}
.form-input:focus{
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(255,157,26,0.15);
}
.form-input[readonly]{
  color:var(--orange);
  border-color:var(--orange-dark);
  cursor:default;
}

.form-textarea{
  resize:vertical;
  line-height:1.6;
  font-family:'Noto Sans',sans-serif;
}

.form-hint{
  margin-top:6px;
  font-size:12px;
  color:var(--text-dim);
}

.apply-submit{
  align-self:flex-end;
  margin-top:8px;
}

.cf-turnstile{
  max-width:100%;
  overflow:hidden;
  margin-top:4px;
}
.cf-turnstile iframe{
  max-width:100%;
}

.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

@media (max-width:1013px){
  .apply-card{padding:36px;}
  .form-row{grid-template-columns:1fr 1fr;}
  .form-field-sm{grid-column:span 2;}
}

@media (max-width:630px){
  .apply-card{padding:24px;}
  .form-row{grid-template-columns:1fr;}
  .form-field-sm{grid-column:auto;}
  .apply-submit{align-self:stretch;justify-content:center;}
}

/* ---------- IDENTITY (pseudo login) ---------- */
.identity-wrap{
  position:relative;
  margin-left:auto;
  margin-right:16px;
}

@media (max-width:1013px){
  .identity-wrap{margin-left:0;}
}

.btn-login{
  background:var(--card);
  border:1px solid var(--card-border);
  color:var(--text);
  font-family:'Noto Sans',sans-serif;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  padding:10px 16px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:border-color .15s ease, color .15s ease;
  max-width:160px;
}
.btn-login span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.btn-login:hover{border-color:var(--orange);}
.btn-login.is-connected{color:var(--orange);border-color:var(--orange-dark);}

.login-avatar{
  display:none;
  width:20px;
  height:20px;
  border-radius:5px;
  image-rendering:pixelated;
  flex-shrink:0;
}
.btn-login.is-connected .login-avatar{display:block;}
.btn-login.is-connected .login-icon{display:none;}

.identity-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:200px;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:10px;
  padding:6px;
  flex-direction:column;
  gap:2px;
  z-index:150;
  box-shadow:0 12px 30px rgba(0,0,0,0.4);
}
.identity-menu.open{display:flex;}
.identity-menu button{
  background:none;
  color:var(--text-muted);
  font-family:'Noto Sans',sans-serif;
  font-size:13.5px;
  font-weight:600;
  text-align:left;
  padding:10px 12px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:10px;
  transition:background .15s ease, color .15s ease;
}
.identity-menu button:hover{background:#1c1c1c;color:var(--text);}

.identity-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
  backdrop-filter:blur(4px);
  align-items:center;
  justify-content:center;
  z-index:300;
  padding:24px;
}
.identity-modal-overlay.open{display:flex;}

.identity-modal{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:32px;
  max-width:380px;
  width:100%;
}
.identity-modal h3{
  font-size:18px;
  font-weight:800;
  margin-bottom:10px;
}
.identity-modal p{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.6;
  margin-bottom:18px;
}
.identity-modal .form-input{width:100%;margin-bottom:20px;}

.identity-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.identity-cancel{
  background:none;
  color:var(--text-muted);
  font-weight:700;
  font-size:13.5px;
  padding:12px 16px;
}
.identity-cancel:hover{color:var(--text);}

.hero-greeting{
  display:none;
  color:var(--orange);
  font-weight:700;
  font-size:13.5px;
  letter-spacing:0.5px;
  margin-bottom:14px;
}
.hero-greeting.show{display:block;}

.vote-greeting{
  display:none;
  text-align:center;
  color:var(--text-muted);
  font-size:13.5px;
  margin-bottom:24px;
}
.vote-greeting.show{display:block;}
.vote-greeting b{color:var(--orange);}

/* ---------- PALIERS PAGE ---------- */
.tiers{
  padding:0 32px 120px;
}

.tiers-progress{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:28px 32px;
  margin-bottom:32px;
}

.tiers-progress-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}

.tiers-count{
  font-family:'Noto Sans',sans-serif;
  font-weight:900;
  font-size:32px;
  color:var(--orange);
}
.tiers-count span{
  font-size:14px;
  font-weight:700;
  color:var(--text-muted);
  text-transform:uppercase;
}

.tiers-next{
  color:var(--text-dim);
  font-size:11.5px;
  text-align:right;
}
.tiers-next b{color:var(--orange);}

.tiers-reset-note{
  color:var(--text-muted);
  font-size:13.5px;
  text-align:right;
  margin-top:4px;
}

.tiers-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
  margin-bottom:24px;
}

.tier-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:24px 18px;
  text-align:center;
  opacity:0.55;
  transition:opacity .2s ease, border-color .2s ease;
}
.tier-card.unlocked{
  opacity:1;
  border-color:var(--orange-dark);
}

.tier-icon{
  width:48px;
  height:48px;
  margin:0 auto 14px;
  border-radius:12px;
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tier-threshold{
  font-family:'Noto Sans',sans-serif;
  font-weight:800;
  font-size:13px;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-bottom:6px;
}

.tier-label{
  font-weight:700;
  font-size:13.5px;
  line-height:1.4;
  margin-bottom:16px;
  min-height:2.6em;
}

.tier-claim{
  width:100%;
  justify-content:center;
  font-size:12.5px;
  padding:10px 14px;
  opacity:0.5;
  cursor:not-allowed;
}

.tier-locked{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--text-dim);
  font-size:12.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.tiers-note{
  text-align:center;
  color:var(--text-dim);
  font-size:12.5px;
  margin-bottom:24px;
}
.tiers-login-link{
  background:none;
  color:var(--orange);
  font-weight:700;
  font-size:12.5px;
  text-decoration:underline;
}
.tiers-login-link:hover{opacity:0.8;}
.tiers-note code{
  background:var(--field);
  border:1px solid var(--field-border);
  border-radius:5px;
  padding:2px 6px;
  color:var(--text-muted);
}

.vote-test-result{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:820px;
  margin:0 auto 24px;
  padding:16px 20px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
}
.vote-test-result.ok{
  background:rgba(61,220,97,0.1);
  border:1px solid rgba(61,220,97,0.35);
  color:var(--green);
}
.vote-test-result.error{
  background:rgba(220,61,61,0.1);
  border:1px solid rgba(220,61,61,0.35);
  color:#ff6b6b;
}
.vote-test-result i{font-size:18px;flex-shrink:0;}

@media (max-width:1013px){
  .tiers-grid{grid-template-columns:repeat(3,1fr);}
}

@media (max-width:630px){
  .tiers-grid{grid-template-columns:1fr 1fr;}
}

/* ---------- SCROLL REVEAL ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
.reveal-delay-1{transition-delay:.12s;}

.footer-grid > div{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .6s ease, transform .6s ease;
}
.footer-grid.is-visible > div{
  opacity:1;
  transform:translateY(0);
}
.footer-grid > div:nth-child(1){transition-delay:0s;}
.footer-grid > div:nth-child(2){transition-delay:.08s;}
.footer-grid > div:nth-child(3){transition-delay:.16s;}
.footer-grid > div:nth-child(4){transition-delay:.24s;}

@media (prefers-reduced-motion: reduce){
  .reveal, .footer-grid > div{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* ---------- BOUTIQUE (page /boutique.php) ---------- */
.shop{
  padding:0 32px 120px;
}

.shop-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:40px;
}

.shop-tab{
  background:var(--card);
  border:1px solid var(--card-border);
  color:var(--text-muted);
  font-weight:700;
  font-size:13.5px;
  padding:11px 20px;
  border-radius:30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.shop-tab:hover{border-color:var(--orange-dark);color:var(--text);}
.shop-tab.active{
  background:linear-gradient(180deg,var(--orange) 0%, var(--orange-dark) 100%);
  color:#fff;
  border-color:transparent;
}

.shop-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
}

.shop-card{
  position:relative;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:28px;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, border-color .15s ease;
}
.shop-card:hover{transform:translateY(-4px);border-color:var(--orange-dark);}

.shop-card-badge{
  position:absolute;
  top:16px;
  right:16px;
  background:var(--badge-count);
  color:#1a0d00;
  font-size:10.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.5px;
  padding:5px 10px;
  border-radius:20px;
}

.shop-card-icon{
  width:48px;
  height:48px;
  margin-bottom:18px;
  border-radius:12px;
  background:#2a1a0a;
  border:1px solid #3a2510;
  color:var(--orange);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.shop-card h3{
  font-size:16.5px;
  font-weight:800;
  margin-bottom:10px;
}

.shop-card p{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.6;
  margin-bottom:24px;
  flex:1;
}

.shop-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.shop-card-price{
  font-family:'Noto Sans',sans-serif;
  font-weight:900;
  font-size:19px;
  color:var(--orange);
}

.shop-card-buy{
  font-size:12.5px;
  padding:0 18px;
  height:42px;
}

.shop-card-buy-soon{
  background:var(--field);
  color:var(--text-dim);
  cursor:not-allowed;
}

@media (max-width:630px){
  .shop-tabs{gap:8px;margin-bottom:28px;}
  .shop-tab{padding:9px 16px;font-size:12.5px;}
}

/* ---------- WIKI (page /wiki.php) ---------- */
.wiki{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:32px;
  align-items:start;
  padding:0 32px 120px;
}

.wiki-sidebar{
  position:sticky;
  top:100px;
  display:flex;
  flex-direction:column;
  gap:24px;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:20px;
}

.wiki-nav-group{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.wiki-nav-group-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--orange);
  font-family:'Noto Sans',sans-serif;
  font-weight:800;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  padding:8px 10px 6px;
}

.wiki-nav-link{
  background:none;
  text-align:left;
  color:var(--text-muted);
  font-size:13.5px;
  font-weight:600;
  padding:9px 10px 9px 30px;
  border-radius:8px;
  transition:background .15s ease, color .15s ease;
}
.wiki-nav-link:hover{background:#1c1c1c;color:var(--text);}
.wiki-nav-link.active{
  background:#2a1a0a;
  color:var(--orange);
  font-weight:700;
}

.wiki-content{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:40px;
  min-height:420px;
}

.wiki-article{display:none;}
.wiki-article.active{display:block;}

.wiki-article-crumb{
  display:block;
  color:var(--orange);
  font-weight:700;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:10px;
}

.wiki-content h2{
  font-size:26px;
  font-weight:900;
  margin-bottom:20px;
}

.wiki-article-body{
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.8;
}
.wiki-article-body p{margin-bottom:16px;}
.wiki-article-body p:last-child{margin-bottom:0;}
.wiki-article-body a{color:var(--orange);text-decoration:underline;}
.wiki-article-body b{color:var(--text);}

.wiki-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
}
.wiki-list li{padding-left:18px;position:relative;}
.wiki-list li::before{
  content:'';
  position:absolute;
  left:0;
  top:9px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--orange);
}

.wiki-article-body code{
  background:var(--field);
  border:1px solid var(--field-border);
  border-radius:5px;
  padding:2px 7px;
  color:var(--orange);
  font-size:13px;
}

@media (max-width:1013px){
  .wiki{grid-template-columns:1fr;}
  .wiki-sidebar{position:static;}
  .wiki-content{padding:28px;}
}

@media (max-width:630px){
  .wiki-content{padding:22px;}
  .wiki-content h2{font-size:21px;}
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1013px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .join{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:630px){
  .footer-grid{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
  .nav-inner{padding:18px;}
}
