:root{
  --bg: #070b14;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;

  /* Aurora + ice vibe (sopii sun bannereihin) */
  --aurora: rgba(0, 255, 153, 0.22);
  --ice: rgba(90, 170, 255, 0.22);
  --gold: rgba(255, 196, 0, 0.14);

  --glow: rgba(120,255,255,0.22);
  --glow2: rgba(0,255,153,0.18);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 650px at 18% 10%, var(--aurora), transparent 60%),
    radial-gradient(900px 650px at 82% 18%, var(--ice), transparent 60%),
    radial-gradient(800px 520px at 50% 100%, var(--gold), transparent 60%),
    var(--bg);
  color: var(--text);
}

a{color:inherit;text-decoration:none}
code, .mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}
.container{width:min(1120px, 92%); margin:0 auto}

.sep{opacity:.55; margin:0 6px}
.arrow{opacity:.9}

/* Topbar */
.topbar{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,11,20,0.55);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0; gap: 14px;
}

.brand{display:flex; align-items:center; gap:10px; min-width: 230px}
.brand__logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 14px 30px rgba(0,0,0,0.35);
}
.brand__text{display:flex; flex-direction:column; line-height:1.05}
.brand__name{font-weight:950; letter-spacing:0.2px}
.brand__tag{font-size:12px; color:var(--muted); font-weight:800}

.nav{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 12px;
}
.nav a:hover{color: var(--text); background: rgba(255,255,255,0.06)}
.nav__active{color: var(--text) !important; background: rgba(255,255,255,0.08)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,0.14)}
.btn--ghost{background: transparent}
.btn--ghost:hover{background: rgba(255,255,255,0.06)}
.btn--small{padding: 9px 12px; font-size: 14px}

.btn--glow{
  background: linear-gradient(90deg, rgba(160,240,255,0.16), rgba(0,255,153,0.12));
  box-shadow: 0 18px 55px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn--glow:hover{
  box-shadow: 0 22px 65px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.14) inset, 0 0 40px var(--glow);
}
/* Valkoinen Kopioi-nappi */
.btn--copyWhite{
  background: rgba(255,255,255,0.95) !important;
  color: rgba(0,0,0,0.88) !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
}

.btn--copyWhite:hover{
  background: rgba(255,255,255,1) !important;
}

/* Mobile menu */
.menuBtn{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.menuBtn span{
  display:block; height: 2px; width: 18px;
  background: rgba(255,255,255,0.85);
  margin: 4px auto; border-radius: 2px;
}
.mobileNav{
  display:none;
  border-top: 1px solid var(--line);
  background: rgba(7,11,20,0.72);
  backdrop-filter: blur(12px);
}
.mobileNav a{
  display:block; padding: 12px 4%;
  color: var(--muted); font-weight: 900;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobileNav a:hover{color: var(--text); background: rgba(255,255,255,0.06)}
.mobileNav--open{display:block}

/* Hero */
.hero{
  position: relative;
  min-height: 78vh;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:-12px;
  width:calc(100% + 24px); height:calc(100% + 24px);
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.70);
  transform: scale(1.02);
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(700px 480px at 20% 15%, rgba(0,255,153,0.18), transparent 60%),
    radial-gradient(700px 480px at 80% 18%, rgba(90,170,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(7,11,20,0.10) 0%, rgba(7,11,20,0.90) 70%, rgba(7,11,20,1) 100%);
  backdrop-filter: blur(2px);
}
.hero__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 65%);
}

.hero__content{
  position: relative;
  padding: 76px 0 52px;
}

.hero__badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  font-weight: 900;
  color: var(--muted);
}
.pixelDot{
  width: 10px; height: 10px;
  background: rgba(0,255,153,0.85);
  box-shadow: 0 0 22px rgba(0,255,153,0.28);
  border-radius: 3px;
}

.hero__title{margin: 14px 0 10px; line-height:1.05}
.hero__titleTop{
  display:block;
  font-family: "Press Start 2P", system-ui;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  letter-spacing: .6px;
}
.hero__titleMain{
  display:block;
  font-weight: 950;
  font-size: clamp(42px, 5.6vw, 70px);
  letter-spacing: -1px;
  text-shadow: 0 18px 55px rgba(0,0,0,0.45);
}
.hero__titleSub{
  display:block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--muted);
  font-size: 16px;
}

.hero__lead{
  max-width: 1040px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.hero__actions{
  display:flex; gap: 14px; align-items: stretch; flex-wrap: wrap;
  margin-top: 16px;
}

.ipcard{
  flex: 1 1 360px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}
.ipcard__label{font-weight:950; font-size: 13px; color: var(--muted)}
.ipcard__row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.ipcard code{
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display:inline-block;
  width: 100%;
}
.ipcard__hint{margin-top:10px; color: var(--muted); font-size: 13px}

.ctaStack{display:flex; flex-direction:column; gap: 10px; align-items:flex-start}
.miniLinks{font-weight:900; color: var(--muted); font-size: 13px}
.miniLinks a:hover{color: var(--text)}
.miniLinks .sep{margin:0 8px}

.hero__stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 780px;
}
.stat{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 14px;
}
.stat__top{color: var(--muted); font-weight: 900; font-size: 12px}
.stat__val{font-weight: 950; font-size: 18px; margin-top: 6px}

/* Scroll cue */
.scrollCue{
  display:flex; align-items:center; gap: 10px;
  margin-top: 26px;
  color: rgba(255,255,255,0.78);
  font-weight: 900;
  width: fit-content;
}
.scrollCue__mouse{
  width: 18px; height: 28px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  position: relative;
}
.scrollCue__mouse::after{
  content:"";
  position:absolute; left:50%; top: 6px;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.3s infinite;
}
@keyframes scrollDot{
  0%{transform: translate(-50%, 0); opacity: 1}
  100%{transform: translate(-50%, 10px); opacity: 0}
}

/* Sections */
.section{padding: 58px 0}
.section--alt{
  background: rgba(255,255,255,0.02);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}

.sectionHead{max-width: 820px}
h2{margin:0 0 10px; font-size: 32px; letter-spacing:-0.4px}
.muted{color: var(--muted)}
.small{font-size: 13px}
.center{text-align:center}

/* Cards & grids */
.grid3{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 18px}
.grid2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 18px}
.mt{margin-top: 14px}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.28);
}
.card h3{margin: 8px 0 8px; font-size: 18px}
.card p{margin: 0; color: var(--muted); line-height: 1.65}

.card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
}

.icon{
  width: 42px; height: 42px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  font-size: 18px;
}

.list{margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.9}
.pillRow{display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px}
.pill{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.split{display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; margin-top: 14px}
.btnRow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px}

/* Steps */
.steps{margin:0; padding-left: 18px; color: var(--muted); line-height:1.95}
.stepTag{
  display:inline-grid; place-items:center;
  width: 22px; height: 22px; margin-right: 10px;
  border-radius: 7px;
  background: rgba(0,255,153,0.14);
  border: 1px solid rgba(0,255,153,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 950;
}

/* Rules */
.rulesBig{margin:0; padding-left: 18px; color: var(--muted); line-height: 1.95}
.callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
}

/* Embed */
.pixelTitle{
  font-family: "Press Start 2P", system-ui;
  font-size: 12px;
  letter-spacing: .6px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 10px;
}
.embed{
  position: relative;
  width:100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}
.embed iframe{width:100%; height:100%}

/* Next cards */
.nextGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}
.nextCard{
  display:block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 14px 44px rgba(0,0,0,0.28);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.nextCard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45), 0 0 40px var(--glow2);
}
.nextCard__top{display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px}
.nextCard__icon{font-size: 20px}
.nextCard__title{font-weight: 950; font-size: 18px}
.nextCard__text{margin-top: 8px; color: var(--muted); line-height:1.6}
.nextCard__go{margin-top: 12px; font-weight: 950; color: rgba(255,255,255,0.85)}

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
}
.badge--warn{background: rgba(255,196,0,0.10); border-color: rgba(255,196,0,0.20)}
.badge--ice{background: rgba(90,170,255,0.10); border-color: rgba(90,170,255,0.20)}

/* Page hero (subpages) */
.pageHero{padding: 42px 0 16px}
.pageHero__inner{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 14px 44px rgba(0,0,0,0.28);
}
.pageHero__kicker{
  font-family: "Press Start 2P", system-ui;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.pageHero h1{margin: 12px 0 8px; font-size: 34px; letter-spacing:-0.4px}
.pageHero p{margin:0}

/* IP bar on info page */
.ipBar{
  display:flex; align-items:center; gap: 10px; flex-wrap:wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.24);
}
.ipBar__label{font-weight:950; color: var(--muted)}
.ipBar code{
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Staff cards */
.staffCard{text-align:center}
.staffCard__avatar{
  width: 56px; height: 56px;
  border-radius: 18px;
  display:grid; place-items:center;
  margin: 0 auto 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 24px;
}
.staffCard__name{font-weight: 950; font-size: 18px}
.staffCard__role{color: var(--muted); font-weight: 900; margin-top: 6px}
.staffCard__meta{margin-top: 8px}

/* Links */
.linkGrid{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 10px}
.linkCard{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 950;
}
.linkCard:hover{background: rgba(255,255,255,0.10); color: var(--text)}

/* Footer */
.footer{padding: 22px 0; border-top: 1px solid var(--line)}
.footer__inner{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
.footer__left{display:flex; align-items:center; gap:10px}
.footer__logo{width:34px; height:34px; border-radius:12px; object-fit:cover}
.footer__title{font-weight: 950}

/* Reveal anim */
.reveal{opacity:0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease}
.reveal.is-visible{opacity:1; transform: translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .menuBtn{display:inline-flex; flex-direction:column; justify-content:center}
  .split{grid-template-columns: 1fr}
}
@media (max-width: 840px){
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .hero__stats{grid-template-columns: 1fr}
  .nextGrid{grid-template-columns: 1fr}
  .linkGrid{grid-template-columns: 1fr}
}
/* ===== Premium Staff Card ===== */

.staffPremium{
  position: relative;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 25px 70px rgba(0,0,0,0.45),
    0 0 50px rgba(0,255,153,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.staffPremium:hover{
  transform: translateY(-6px);
  box-shadow:
    0 35px 90px rgba(0,0,0,0.6),
    0 0 60px rgba(0,255,153,0.18);
}

/* Glow taustalle */
.staffPremium::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(0,255,153,0.15),
    transparent 60%
  );
  pointer-events:none;
}

/* Avatar */
.staffPremium__avatar{
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow:hidden;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 35px rgba(0,255,153,0.25);
}

.staffPremium__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Nimi */
.staffPremium__name{
  text-align:center;
  font-weight: 950;
  font-size: 22px;
  margin-bottom: 6px;
}

/* Rooli badge */
.staffPremium__role{
  display:inline-block;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(
    90deg,
    rgba(255,215,0,0.25),
    rgba(255,196,0,0.15)
  );
  border: 1px solid rgba(255,196,0,0.4);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 0 25px rgba(255,196,0,0.2);
}

.staffPremium__desc{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
}
/* ===== Role variants for Premium Staff Cards ===== */

.staffPremium__roleTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 0 24px rgba(255,255,255,0.08);
}

/* Owner / Admin (gold) */
.role--owner{
  background: linear-gradient(90deg, rgba(255,215,0,0.22), rgba(255,196,0,0.12));
  border-color: rgba(255,196,0,0.35);
  box-shadow: 0 0 28px rgba(255,196,0,0.18);
}

/* Dev / Admin (aqua/aurora) */
.role--dev{
  background: linear-gradient(90deg, rgba(120,255,255,0.16), rgba(0,255,153,0.12));
  border-color: rgba(120,255,255,0.30);
  box-shadow: 0 0 30px rgba(120,255,255,0.14);
}

/* Moderator / Valvoja (blue) */
.role--mod{
  background: linear-gradient(90deg, rgba(90,170,255,0.18), rgba(120,255,255,0.10));
  border-color: rgba(90,170,255,0.32);
  box-shadow: 0 0 28px rgba(90,170,255,0.14);
}

/* Builder / Rakentaja (green) */
.role--builder{
  background: linear-gradient(90deg, rgba(0,255,153,0.16), rgba(0,255,153,0.08));
  border-color: rgba(0,255,153,0.28);
  box-shadow: 0 0 28px rgba(0,255,153,0.14);
}

/* Little “status line” under name */
.staffPremium__meta{
  margin-top: 10px;
  text-align:center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

/* Optional: small pixel divider */
.staffPremium__divider{
  height: 1px;
  margin: 14px 0 12px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  border-radius: 999px;
}
.role--owner{
  background: linear-gradient(90deg, rgba(255,215,0,0.22), rgba(255,196,0,0.12));
  border-color: rgba(255,196,0,0.35);
  box-shadow: 0 0 28px rgba(255,196,0,0.18);
}

/* ===== Staff application page styles ===== */

.hidden{ display:none !important; }

.roleList{ display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.roleItem{ padding:12px; border-radius:16px; border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); }
.roleItem__top{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; }

.applyBar{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
}
.applyBar__label{ font-weight: 950; color: rgba(255,255,255,0.86); }
.applyBar__hint{ flex: 1 1 320px; }

.label{ display:block; font-weight: 900; font-size: 13px; color: rgba(255,255,255,0.82); margin-bottom: 6px; }

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}
.input:focus{
  border-color: rgba(120,255,255,0.28);
  box-shadow: 0 0 0 3px rgba(120,255,255,0.10);
}

.textarea{ min-height: 110px; resize: vertical; }

.applyForm{ margin-top: 14px; }
.applyGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.applyGrid .full{ grid-column: 1 / -1; }

.formActions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 14px;
}

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

/* ===== Premium Rules Page ===== */

.rulesHero{
  padding: 42px 0 18px;
}
.rulesHero__inner{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(0,255,153,0.14), transparent 60%),
    radial-gradient(700px 320px at 80% 20%, rgba(90,170,255,0.14), transparent 60%),
    rgba(255,255,255,0.06);
  box-shadow: 0 14px 44px rgba(0,0,0,0.28);
}
.rulesHero__chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px }
.rulesHero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px }

.rulesGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

/* Dropdown card */
.ruleCard{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
  overflow:hidden;
}
.ruleCard[open]{
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35), 0 0 40px rgba(120,255,255,0.10);
}
.ruleCard summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.ruleCard summary::-webkit-details-marker{ display:none; }
.ruleCard__icon{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.ruleCard__title{ flex: 1 1 auto; }
.ruleCard__hint{
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.62);
}

.ruleCard__body{
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.ruleList{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}
.ruleList li{ margin: 4px 0; }

/* Table */
.tableWrap{ overflow:auto; border-radius: 16px; }
.punishTable{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}
.punishTable th, .punishTable td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  text-align:left;
  vertical-align: top;
}
.punishTable thead th{
  position: sticky;
  top: 0;
  background: rgba(7,11,20,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-weight: 950;
}
.punishTable tbody tr:hover td{
  background: rgba(255,255,255,0.04);
}
.punishTable td:first-child{
  font-weight: 900;
  color: rgba(255,255,255,0.86);
}

/* Responsive */
@media (max-width: 900px){
  .rulesGrid{ grid-template-columns: 1fr; }
}

/* Role selector cards (replace dropdown) */
.rolePick{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}

.rolePickBtn{
  text-align:left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  color: rgba(255,255,255,0.92);
}

.rolePickBtn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.rolePickBtn.is-active{
  border-color: rgba(120,255,255,0.30);
  box-shadow: 0 0 0 3px rgba(120,255,255,0.10), 0 18px 60px rgba(0,0,0,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
}

.rolePickBtn__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rolePickBtn__title{
  font-weight: 950;
  font-size: 16px;
}

.rolePickBtn__desc{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}

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

/* ===== Staff-haku visual upgrade ===== */

.rolePickBtn{
  position: relative;
  overflow: hidden;
}
.rolePickBtn::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 180px at 20% 10%, rgba(120,255,255,0.14), transparent 60%),
              radial-gradient(500px 180px at 80% 20%, rgba(0,255,153,0.12), transparent 60%);
  opacity: 0;
  transition: opacity .18s ease;
}
.rolePickBtn:hover::before{ opacity: 1; }

.rolePickBtn.is-active{
  transform: translateY(-2px);
}

.applyBar{
  background:
    radial-gradient(600px 180px at 10% 30%, rgba(90,170,255,0.12), transparent 60%),
    radial-gradient(600px 180px at 90% 40%, rgba(0,255,153,0.10), transparent 60%),
    rgba(0,0,0,0.20);
}

/* Make inputs feel more premium */
.input{
  backdrop-filter: blur(10px);
}
.input::placeholder{
  color: rgba(255,255,255,0.45);
}