@font-face {
  font-family: 'NRT Reg';
  src: url('assets/NRT-Reg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030712;
  --bg2: #071429;
  --panel: rgba(10, 18, 37, 0.62);
  --panel-2: rgba(6, 12, 26, 0.75);
  --line: rgba(255,255,255,.09);
  --text: #f4f8ff;
  --muted: #95a6c4;
  --cyan: #55deff;
  --blue: #4ab2ff;
  --gold: #ffc44d;
  --orange: #ff8b3d;
  --shadow: 0 25px 80px rgba(0,0,0,.45);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'NRT Reg', Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(85,222,255,.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255,196,77,.13), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
html, body, button, input, textarea, select, option { font-family: 'NRT Reg', Inter, system-ui, sans-serif; }
button { cursor: pointer; }
input, textarea, select {
  width: 100%; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: var(--text); border-radius: 18px; padding: 14px 16px; outline: none;
}
textarea { resize: vertical; }
.container { width: min(1200px, calc(100% - 28px)); margin-inline: auto; }
#scene3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -2; opacity: .075;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.6) .5px, transparent .7px);
  background-size: 16px 16px;
}
.cursor-glow {
  position: fixed; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(85,222,255,.14), transparent 60%);
  transform: translate(-50%, -50%);
}
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.header {
  position: sticky; top: 12px; z-index: 50; width: min(1240px, calc(100% - 24px)); margin: 14px auto 0;
  border-radius: 24px;
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; padding: 14px 18px; gap: 14px; }
.brand { display:flex; align-items:center; gap: 14px; }
.brand strong { display:block; font-size: 1.05rem; }
.brand small { color: var(--muted); }
.brand-logo-wrap {
  width: 68px; height: 68px; border-radius: 24px; display:grid; place-items:center; padding: 8px;
  background: radial-gradient(circle at top, rgba(85,222,255,.22), rgba(255,196,77,.08));
  border: 1px solid rgba(255,255,255,.14);
}
.small-logo { width: 58px; height: 58px; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.nav { display:flex; align-items:center; gap: 12px; }
.nav a, .nav button {
  padding: 10px 14px; border-radius: 14px; border: 0; background: transparent; color: var(--text);
}
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.06); }
.nav-btn { background: linear-gradient(135deg, rgba(85,222,255,.18), rgba(255,196,77,.12)); }
.music-btn {
  min-width: 136px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(7,18,38,.96), rgba(17,34,63,.88));
  box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.music-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.12);
  border-color: rgba(85,222,255,.32);
  background: linear-gradient(135deg, rgba(10,24,48,.98), rgba(18,42,78,.92));
}
.music-btn:focus-visible {
  outline: none;
  border-color: rgba(255,196,77,.48);
  box-shadow: 0 0 0 4px rgba(255,196,77,.12), 0 16px 34px rgba(0,0,0,.24);
}
.music-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,196,77,.24), rgba(85,222,255,.18));
  color: #fff2c2;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  flex: 0 0 auto;
}
.music-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
}
.music-btn-copy strong {
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.music-btn-copy small {
  font-size: .68rem;
  letter-spacing: .22em;
  color: rgba(196, 214, 241, .84);
}
.music-btn.is-on {
  border-color: rgba(255,196,77,.34);
  background: linear-gradient(135deg, rgba(43,29,2,.92), rgba(82,50,8,.86));
}
.music-btn.is-on .music-btn-icon {
  background: linear-gradient(135deg, rgba(255,196,77,.42), rgba(255,139,61,.24));
  color: #fff7dd;
}
.music-btn.is-on .music-btn-copy small {
  color: rgba(255,230,171,.92);
}
.music-btn.is-error {
  border-color: rgba(255,119,119,.35);
}
.ghost-btn { border: 1px solid rgba(255,255,255,.08); }
.menu-btn {
  display:none; width: 48px; height: 48px; padding: 0; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); align-items:center; justify-content:center; flex-direction:column; gap: 5px;
}
.menu-btn span { display:block; width: 18px; height: 2px; background: white; }
.hero {
  min-height: 92vh; display:grid; grid-template-columns: 1.03fr .97fr; gap: 28px; align-items:center; padding: 58px 0 24px;
}
.eyebrow, .section-head span, .section-mini-head span {
  display:inline-block; padding: 8px 12px; border-radius: 999px; font-size: .78rem; letter-spacing: .18em;
  color: #bceeff; background: rgba(85,222,255,.08); border: 1px solid rgba(85,222,255,.18);
}
.hero h1 { font-size: clamp(2.35rem, 7vw, 5rem); line-height: 1.04; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); display:block; font-size: .55em; margin-top: 8px; }
.hero h1 span { background: linear-gradient(90deg, #fff, #d4f2ff 48%, #ffd776); -webkit-background-clip:text; color: transparent; }
.hero p, .section-head p, .panel p { color: var(--muted); line-height: 1.75; }
.profile-showcase {
  margin: 18px 0 26px;
  padding: 22px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
.profile-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,196,77,.20), transparent 32%), radial-gradient(circle at 85% 20%, rgba(85,222,255,.18), transparent 34%);
  pointer-events: none;
}
.profile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,196,77,.24), rgba(85,222,255,.18));
  border: 1px solid rgba(255,255,255,.14);
}
.profile-avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.34));
}
.profile-avatar.discord-avatar-wrap {
  border-radius: 24px;
  overflow: hidden;
}
.profile-avatar img.discord-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: none;
}
.profile-online {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #69ff9e;
  box-shadow: 0 0 0 5px rgba(6, 12, 26, .85), 0 0 20px rgba(105,255,158,.65);
}
.profile-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  color: #ffe4a8;
  border: 1px solid rgba(255,196,77,.24);
  background: rgba(255,196,77,.08);
}
.profile-showcase h3 {
  margin: 10px 0 6px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}
.profile-status {
  margin: 0;
  color: var(--muted);
}
.profile-authline {
  margin: 6px 0 0;
  color: #dff5ff;
  font-size: .88rem;
}
.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.profile-stats div {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.profile-stats strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.profile-stats span {
  color: var(--muted);
  font-size: .82rem;
}
.profile-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.profile-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #deecff;
  font-size: .86rem;
}
.profile-edit-trigger {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.hero-actions, .auth-grid, .footer-links, .join-actions { display:flex; flex-wrap:wrap; gap: 12px; }
.btn {
  border: 0; border-radius: 18px; padding: 14px 20px; font-weight: 800; transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #131313; }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.08); }
.hero-meta-grid, .features-grid, .showcase-grid, .staff-grid, .shop-grid, .dual-grid { display:grid; gap: 18px; }
.hero-meta-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.meta-card, .panel, .staff-card, .shop-card { padding: 20px; border-radius: 24px; }
.meta-card span, .muted-note, .status-pill { color: var(--muted); }
.meta-card strong { display:block; margin-top: 8px; font-size: 2rem; }
.hero-visual { perspective: 1400px; }
.logo-stage {
  position: relative; min-height: 680px; border-radius: 40px; overflow: hidden; display:grid; place-items:center;
  transform-style: preserve-3d; background: radial-gradient(circle at 50% 30%, rgba(73,183,255,.18), rgba(255,255,255,.02) 45%, transparent 65%);
}
.flag-backdrop {
  position: absolute;
  inset: 12% 10%;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.flag-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(circle at center, rgba(255,255,255,.06), rgba(3,7,18,.16) 70%);
}
.flag-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  opacity: .38;
  filter: saturate(1.15) brightness(.95) blur(.4px) drop-shadow(0 26px 46px rgba(0,0,0,.35));
  transform: perspective(1100px) rotateX(10deg) scale(1.08);
}
.ultra-stage::before {
  content:""; position:absolute; inset: 18% 12%; border-radius: 50%; background: radial-gradient(circle, rgba(85,222,255,.14), transparent 58%);
  filter: blur(10px);
}
.logo-wrap {
  position: relative; z-index: 5; display:grid; place-items:center; width: min(74%, 580px); aspect-ratio: 1/1;
  transform-style: preserve-3d;
}
.huge-logo { animation: floatLogo 6s ease-in-out infinite; }
.main-logo { width: 100%; object-fit: contain; filter: drop-shadow(0 28px 60px rgba(0,0,0,.55)); }
.ring, .holo-beam, .light-columns { position:absolute; inset: 50%; transform-style: preserve-3d; z-index: 2; }
.ring { border-radius: 50%; border: 1px solid rgba(85,222,255,.22); width: 470px; height: 470px; margin: -235px; }
.ring-a { animation: spinA 16s linear infinite; }
.ring-b { width: 620px; height: 620px; margin: -310px; border-color: rgba(255,196,77,.18); border-style: dashed; animation: spinA 22s linear infinite reverse; }
.ring-c { width: 760px; height: 760px; margin: -380px; border-color: rgba(255,255,255,.09); animation: pulseRing 4s ease-in-out infinite; }
.holo-beam {
  width: 360px; height: 500px; margin: -130px -180px; top: 56%; background: linear-gradient(180deg, rgba(85,222,255,.22), rgba(85,222,255,0));
  filter: blur(14px); transform: perspective(800px) rotateX(72deg);
}
.light-columns::before, .light-columns::after {
  content:""; position:absolute; width: 16px; height: 360px; top: 120px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,196,77,.55), transparent); filter: blur(4px);
}
.light-columns::before { right: 140px; }
.light-columns::after { left: 140px; background: linear-gradient(180deg, rgba(85,222,255,.55), transparent); }
.floating-card {
  position:absolute; padding: 16px 18px; border-radius: 22px; min-width: 160px; z-index: 7; animation: bob 4.8s ease-in-out infinite;
}
.info-card span { display:block; color: var(--muted); font-size: .78rem; letter-spacing: .14em; }
.info-card strong { display:block; margin-top: 6px; }
.card-a { top: 12%; right: 4%; }
.card-b { left: 6%; bottom: 18%; animation-delay: 1.1s; }
.card-c { right: 14%; bottom: 10%; animation-delay: 1.9s; }
.marquee-wrap { overflow:hidden; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.marquee { display:flex; gap: 42px; width:max-content; padding: 14px 0; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee span { font-weight: 800; letter-spacing: .14em; color: #d9e6ff; }
.section { padding: 84px 0 0; }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head h2, .section-head h1 { font-size: clamp(1.9rem, 4.3vw, 3.6rem); margin: 18px 0 0; }
.section-mini-head h3 { margin: 12px 0 10px; font-size: 1.45rem; }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 22px; border-radius: 24px; }
.feature-icon, .role-badge, .label-pill {
  display:inline-grid; place-items:center; min-width: 58px; min-height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(85,222,255,.16), rgba(255,196,77,.10));
}
.feature h3, .staff-card h3, .shop-card h3 { margin: 14px 0 10px; }
.dual-grid { grid-template-columns: 1.15fr .85fr; }
.stack-form { display:grid; gap: 12px; }
.two-cols { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feed-list { display:grid; gap: 14px; margin-top: 18px; }
.post-card {
  padding: 16px 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.post-head { display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.post-role { padding: 7px 10px; border-radius: 999px; background: rgba(85,222,255,.12); color: #bceeff; font-size: .82rem; }
.chip-list { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.status-pill, .label-pill { display:inline-flex; align-items:center; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.showcase-grid, .staff-grid, .shop-grid { grid-template-columns: repeat(3, 1fr); }
.staff-card, .shop-card { min-height: 220px; }
.staff-card strong, .shop-card strong { display:block; margin-top: 12px; font-size: 1.25rem; }
.role-badge { min-width: auto; min-height: auto; padding: 8px 12px; font-size: .84rem; }
.owner { background: linear-gradient(135deg, rgba(255,196,77,.28), rgba(255,139,61,.18)); color: #ffdca0; }
.admin { background: linear-gradient(135deg, rgba(115,92,255,.26), rgba(85,222,255,.16)); color: #ddd6ff; }
.mod { background: linear-gradient(135deg, rgba(85,222,255,.24), rgba(74,178,255,.14)); color: #bcf3ff; }
.support { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,196,77,.12)); color: #fff; }
.hot { outline: 1px solid rgba(255,196,77,.35); }
.footer { display:flex; justify-content:space-between; gap: 20px; align-items:center; padding: 48px 0 70px; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.52); display:none; align-items:center; justify-content:center; z-index: 90; padding: 18px;
}
.modal-backdrop.open { display:flex; }
.modal { width:min(620px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 28px; padding: 24px; position: relative; }
.close-modal {
  position:absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 14px; border: 0; background: rgba(255,255,255,.06); color:#fff; font-size:1.4rem;
}
.auth-grid { margin: 18px 0 10px; }
.auth-btn {
  flex:1; min-height: 58px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); color: #fff;
  background: rgba(255,255,255,.05);
}
.google-btn { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,196,77,.08)); }
.discord-btn { background: linear-gradient(135deg, rgba(115,92,255,.28), rgba(85,222,255,.10)); }
.or-line { display:flex; align-items:center; gap: 12px; margin: 18px 0; color: var(--muted); }
.or-line::before, .or-line::after { content:""; flex:1; height:1px; background: rgba(255,255,255,.08); }
.profile-edit-form { margin-top: 4px; }
.profile-note { margin-top: 6px; }
.profile-modal-actions { margin-top: 6px; }
.sub-hero { padding-bottom: 48px; }
.top-space { padding-top: 42px; }
.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .14s; }
.delay-2 { transition-delay: .28s; }
.tilt-card { transform-style: preserve-3d; transition: transform .18s ease, box-shadow .18s ease; }
.pulse-gif { animation: pulseGif 2.8s ease-in-out infinite; }
.static-nav { display:flex !important; }
@keyframes spinA { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseRing { 0%,100% { transform: scale(1); opacity:.8; } 50% { transform: scale(1.05); opacity:1; } }
@keyframes floatLogo { 0%,100% { transform: translateY(0) rotateZ(0deg); } 50% { transform: translateY(-16px) rotateZ(1.4deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseGif { 0%,100% { filter: drop-shadow(0 0 0 rgba(85,222,255,.2)); transform: scale(1); } 50% { filter: drop-shadow(0 0 24px rgba(255,196,77,.34)); transform: scale(1.03); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1080px) {
  .hero, .dual-grid, .showcase-grid, .features-grid, .staff-grid, .shop-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: 36px; }
  .logo-stage { min-height: 560px; }
}
@media (max-width: 760px) {
  .menu-btn { display:flex; }
  .nav {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0; margin: 0 auto; width: min(96%, 420px); display:none;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: 22px;
    background: rgba(7, 15, 29, .94); border: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display:flex; }
  .static-nav { position: static; width: auto; display:flex; background: transparent; border: 0; }
  .hero, .hero-meta-grid, .dual-grid, .showcase-grid, .features-grid, .staff-grid, .shop-grid, .two-cols, .profile-stats { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .logo-stage { min-height: 500px; }
  .ring-a { width: 330px; height: 330px; margin: -165px; }
  .ring-b { width: 430px; height: 430px; margin: -215px; }
  .ring-c { width: 540px; height: 540px; margin: -270px; }
  .floating-card { min-width: 135px; padding: 12px 14px; }
}


.decision-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.status-result {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}


.profile-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(85,222,255,.08));
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  min-width: 185px;
  justify-content: flex-start;
}
.profile-nav-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.profile-nav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.profile-nav-dot {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #69ff9e;
  border: 2px solid rgba(6, 12, 26, .95);
}
.profile-nav-copy {
  display: grid;
  gap: 1px;
  text-align: right;
}
.profile-nav-copy strong {
  font-size: .92rem;
  color: #fff;
}
.profile-nav-copy small {
  color: #9dc5ff;
  font-size: .72rem;
}
.luxury-profile-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 80px rgba(3,7,18,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.profile-cover {
  --profile-banner-accent: rgba(85,222,255,.30);
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  background-image: linear-gradient(135deg, rgba(3,7,18,.18), rgba(3,7,18,.55)), url("assets/kurdistan-flag.gif");
  background-size: cover;
  background-position: center;
  opacity: .98;
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,.05), rgba(3,7,18,.78) 90%), radial-gradient(circle at 20% 15%, var(--profile-banner-accent), transparent 36%);
}
.profile-cover.is-discord-banner {
  filter: saturate(1.08) contrast(1.02);
}
.profile-top {
  position: relative;
  z-index: 1;
  margin-top: 68px;
}
.profile-showcase-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.profile-modal-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  margin: 16px 0 18px;
  background: linear-gradient(135deg, rgba(85,222,255,.10), rgba(255,196,77,.10));
  border: 1px solid rgba(255,255,255,.08);
}
.profile-modal-banner {
  --profile-banner-accent: rgba(85,222,255,.30);
  height: 160px;
  background-image: linear-gradient(135deg, rgba(3,7,18,.24), rgba(3,7,18,.58)), url("assets/kurdistan-flag.gif");
  background-size: cover;
  background-position: center;
}
.profile-modal-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  background: linear-gradient(180deg, rgba(3,7,18,.02), rgba(3,7,18,.72) 92%), radial-gradient(circle at 18% 18%, var(--profile-banner-accent), transparent 34%);
  pointer-events: none;
}
.profile-modal-banner.is-discord-banner {
  filter: saturate(1.08) contrast(1.02);
}
.profile-modal-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px 18px;
  margin-top: -36px;
}
.profile-modal-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.12));
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
}
.profile-modal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
#profilePreviewName {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}
#profilePreviewRole {
  margin: 0;
  color: var(--muted);
}
.btn-danger {
  background: linear-gradient(135deg, rgba(255,96,96,.95), rgba(255,145,92,.92));
  color: #fff;
}
@media (max-width: 900px) {
  .profile-nav-btn {
    min-width: 100%;
    justify-content: center;
  }
  .profile-modal-hero-content {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -28px;
  }
}

.admin-hidden {
  display: none !important;
}
.admin-login-panel {
  max-width: 620px;
}
.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.user-role-card {
  display: grid;
  gap: 12px;
}
.user-role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inline-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.inline-role-actions select {
  flex: 1 1 180px;
}
.error-pill {
  background: rgba(255, 96, 96, 0.18);
  color: #ffd7d7;
  border: 1px solid rgba(255, 96, 96, 0.28);
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-page-main {
  padding-bottom: 72px;
}

.shop-page-head p {
  max-width: 760px;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.shop-spotlight,
.shop-featured-panel,
.shop-toolbar,
.shop-cart-panel,
.shop-benefit,
.shop-toast,
.shop-card-premium {
  position: relative;
  overflow: hidden;
}

.shop-featured-panel,
.shop-toolbar,
.shop-cart-panel,
.shop-benefit,
.shop-card-premium {
  background: linear-gradient(180deg, rgba(4, 10, 22, .92), rgba(6, 13, 27, .84));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.shop-spotlight {
  padding: 32px;
  border-radius: 32px;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  isolation: isolate;
}

.shop-spotlight::before,
.shop-featured-panel::before,
.shop-card-premium::before,
.shop-cart-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 14, .34), rgba(2, 6, 14, .12)),
    radial-gradient(circle at 12% 18%, rgba(255, 196, 77, .10), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(85, 222, 255, .10), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.shop-spotlight::after,
.shop-featured-panel::after,
.shop-card-premium::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.shop-spotlight-copy,
.shop-spotlight-stats,
.shop-featured-content,
.shop-card-premium > * ,
.shop-cart-panel > * {
  position: relative;
  z-index: 1;
}

.shop-mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .76rem;
  letter-spacing: .18em;
  color: #d7f4ff;
  background: rgba(85,222,255,.10);
  border: 1px solid rgba(85,222,255,.18);
  text-transform: uppercase;
}

.shop-spotlight h2,
.shop-toolbar h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.shop-spotlight p,
.shop-featured-panel p,
.shop-benefit p,
.shop-card-premium p,
.shop-check-item p,
.shop-cart-note {
  color: #b8c8e6;
  line-height: 1.8;
}

.shop-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.shop-spotlight-stats {
  display: grid;
  align-self: end;
  gap: 14px;
}

.shop-stat-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.shop-stat-card strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  margin-bottom: 6px;
}

.shop-stat-card span {
  color: #9fb3d7;
  font-size: .88rem;
}

.shop-featured-panel {
  border-radius: 32px;
  padding: 26px;
  min-height: 360px;
}

.shop-featured-content {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 18px;
  height: 100%;
}

.shop-featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.shop-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-badge-stack .label-pill {
  background: rgba(255,255,255,.06);
}

.shop-featured-title {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: 1.08;
}

.shop-featured-desc {
  margin: 0;
}

.shop-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-price-row strong {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
}

.shop-price-row del {
  color: #7e93b4;
  font-size: 1rem;
}

.shop-featured-perks,
.shop-card-perks {
  display: grid;
  gap: 10px;
}

.shop-featured-perks div,
.shop-card-perks div,
.shop-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shop-featured-perks span,
.shop-card-perks span,
.shop-check-item strong {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.14));
  border: 1px solid rgba(255,255,255,.08);
}

.shop-featured-perks p,
.shop-card-perks p {
  margin: 0;
}

.shop-featured-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.shop-toolbar {
  padding: 20px 22px;
  border-radius: 28px;
  margin-bottom: 18px;
}

.shop-toolbar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.shop-search-wrap {
  min-width: min(100%, 320px);
}

.shop-search-wrap input {
  min-height: 56px;
  border-radius: 20px;
  padding-inline: 18px;
  background: rgba(255,255,255,.05);
}

.shop-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-filter {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #eaf3ff;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.shop-filter:hover,
.shop-filter.is-active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.14));
  border-color: rgba(255,255,255,.16);
  color: #fff;
}

.shop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.shop-products-pane {
  display: grid;
  gap: 16px;
}

.shop-products-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-inline-note {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-grid-premium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-card-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  border-radius: 28px;
  min-height: 100%;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(3, 8, 18, .94), rgba(7, 14, 28, .88));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.40);
}

.shop-card-premium:hover {
  transform: translateY(-4px);
}

.shop-card-premium.is-sold-out,
.shop-featured-content.is-sold-out {
  border-color: rgba(255, 84, 84, .28);
}

.shop-card-premium.is-sold-out::after,
.shop-featured-content.is-sold-out::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,20,.08), rgba(8,12,20,.42));
  pointer-events: none;
  z-index: 0;
}

.shop-card-premium > *,
.shop-featured-content > * {
  position: relative;
  z-index: 1;
}

.shop-soldout-banner {
  position: absolute;
  top: 18px;
  left: -42px;
  min-width: 170px;
  padding: 12px 46px;
  text-align: center;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .28em;
  color: #fff6f6;
  background: linear-gradient(135deg, #ff4a4a, #b40000);
  box-shadow: 0 18px 32px rgba(180, 0, 0, .34);
  transform: rotate(-38deg);
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.22);
  z-index: 3;
}

.shop-soldout-banner-featured {
  top: 24px;
  left: -38px;
}

.shop-stock-bar.is-sold-out {
  background: rgba(255, 84, 84, .14);
}

.shop-stock-bar.is-sold-out span {
  background: linear-gradient(90deg, rgba(255, 78, 78, .98), rgba(177, 0, 0, .94));
}

.shop-stock-soldout-text {
  color: #ff9e9e;
  font-weight: 800;
  letter-spacing: .04em;
}

.status-pill.is-danger {
  background: rgba(255, 84, 84, .14);
  color: #ffd3d3;
  border-color: rgba(255, 84, 84, .28);
}

.btn.is-disabled,
.btn:disabled {
  opacity: .72;
  cursor: not-allowed;
  filter: saturate(.7);
}

.btn.is-disabled:hover,
.btn:disabled:hover {
  transform: none;
}

.shop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.shop-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.14));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.shop-card-premium h3 {
  margin: 10px 0 6px;
  font-size: 1.35rem;
}

.shop-card-sub {
  margin: 0;
  color: #9fb3d7;
  font-size: .92rem;
}

.shop-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-card-price strong {
  font-size: 1.8rem;
  line-height: 1;
}

.shop-card-price del {
  color: #7d92b1;
}

.shop-stock-bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.shop-stock-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,196,77,.95), rgba(85,222,255,.95));
}

.shop-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9fb3d7;
  font-size: .88rem;
}

.shop-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.shop-card-actions .btn {
  flex: 1 1 160px;
}

.shop-cart-panel {
  padding: 22px;
  border-radius: 28px;
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
}

.shop-cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.shop-cart-head h3 {
  margin: 10px 0 0;
  font-size: 1.55rem;
}

.shop-cart-count {
  min-width: 58px;
  min-height: 58px;
  padding: 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.14));
  border: 1px solid rgba(255,255,255,.08);
}

.shop-cart-list {
  display: grid;
  gap: 12px;
}

.shop-cart-item {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 12px;
}

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

.shop-cart-line strong {
  display: block;
  margin-bottom: 4px;
}

.shop-cart-line span {
  color: #9fb3d7;
  font-size: .88rem;
}

.shop-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-qty-chip,
.shop-remove-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.shop-remove-btn:hover,
.shop-qty-chip:hover {
  background: rgba(255,255,255,.09);
}

.shop-cart-total {
  padding: 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-cart-total span {
  color: #9fb3d7;
}

.shop-cart-total strong {
  font-size: 1.7rem;
}

.shop-cart-actions {
  display: grid;
  gap: 12px;
}

.shop-empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.shop-empty-state p {
  margin: 0;
  color: #9fb3d7;
}

.shop-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.14));
  border: 1px solid rgba(255,255,255,.08);
}

.shop-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.shop-benefit {
  padding: 24px;
  border-radius: 28px;
}

.shop-benefit h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

.shop-bottom-grid {
  margin-top: 18px;
}

.shop-check-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.shop-check-item p {
  margin: 0;
}

.shop-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  min-width: 240px;
  max-width: min(92vw, 360px);
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,196,77,.18), rgba(85,222,255,.16));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 50px rgba(0,0,0,.32);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 120;
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-toast strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 1180px) {
  .shop-hero-grid,
  .shop-spotlight {
    grid-template-columns: 1fr;
  }

  .shop-shell {
    grid-template-columns: 1fr;
  }

  .shop-cart-panel {
    position: static;
  }

  .shop-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-toolbar-head,
  .shop-products-meta,
  .shop-featured-top,
  .shop-cart-line {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-spotlight,
  .shop-featured-panel,
  .shop-toolbar,
  .shop-card-premium,
  .shop-cart-panel,
  .shop-benefit {
    border-radius: 24px;
  }

  .shop-grid-premium,
  .shop-benefits-grid {
    grid-template-columns: 1fr;
  }

  .shop-card-actions .btn,
  .shop-featured-actions .btn {
    width: 100%;
  }

  .shop-toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-width: 0;
    max-width: none;
  }
}


.rules-highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.rules-highlight-card {
  padding: 24px;
  border-radius: 28px;
}

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

.rule-card {
  padding: 22px;
  border-radius: 26px;
}

.rule-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rule-number {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255,196,77,.22), rgba(85,222,255,.18));
  border: 1px solid rgba(255,255,255,.1);
}

.compact-head {
  margin-bottom: 8px;
}

.rule-desc {
  margin: 12px 0 0;
  line-height: 1.8;
}

.btn-danger {
  background: linear-gradient(135deg, rgba(255,92,92,.24), rgba(255,132,132,.16));
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

@media (max-width: 960px) {
  .rules-highlight-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }
}


body::before {
  content: "";
  position: fixed;
  width: min(62vw, 900px);
  aspect-ratio: 1 / 1;
  top: 4%;
  right: -10%;
  background: url('assets/logo.png') center/contain no-repeat;
  opacity: .08;
  filter: blur(3px) drop-shadow(0 40px 90px rgba(0,0,0,.45));
  pointer-events: none;
  z-index: -2;
}

body.rules-entry-open {
  overflow: hidden;
}

.square-hero-stage {
  background:
    radial-gradient(circle at 50% 16%, rgba(85,222,255,.20), transparent 28%),
    radial-gradient(circle at 52% 84%, rgba(255,196,77,.15), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}

.square-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.square-blur,
.entry-square {
  position: absolute;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(85,222,255,.24), rgba(255,196,77,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.14);
}

.square-blur {
  filter: blur(2px);
  opacity: .92;
}

.square-1 { width: 170px; height: 170px; top: 12%; right: 12%; transform: rotate(11deg); }
.square-2 { width: 130px; height: 130px; bottom: 16%; right: 18%; transform: rotate(-8deg); }
.square-3 { width: 190px; height: 190px; top: 18%; left: 8%; transform: rotate(-12deg); }
.square-4 { width: 150px; height: 150px; bottom: 10%; left: 12%; transform: rotate(7deg); }

.hero-logo-wrap {
  width: min(88%, 760px);
  aspect-ratio: unset;
}

.hero-logo-wrap .main-logo {
  transform: perspective(1200px) rotateX(8deg) rotateY(-10deg);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)) drop-shadow(0 0 46px rgba(85,222,255,.12));
}

.rules-preview-home {
  padding-top: 20px;
}

.rules-preview-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
}

.rules-preview-shell::before,
.square-blur-card::before,
.entry-logo-card::before,
.rules-entry-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(85,222,255,.12), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(255,196,77,.14), transparent 28%);
  pointer-events: none;
}

.rules-preview-grid,
.rules-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.preview-rule-card {
  position: relative;
  padding: 20px;
  border-radius: 28px;
  min-height: 190px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.preview-rule-number {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,196,77,.28), rgba(85,222,255,.16));
}

.preview-rule-card h4,
.rule-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.preview-rule-card p {
  margin: 0 0 16px;
  color: #c9d7ef;
  line-height: 1.8;
}

.rules-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #dff4ff;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rule-chip-warn {
  background: rgba(255,196,77,.12);
  color: #ffe29e;
}

.rules-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.rules-entry-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.rules-entry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,7,18,.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.rules-entry-shell {
  position: relative;
  width: min(1180px, 100%);
  padding: 28px;
  border-radius: 40px;
  overflow: hidden;
}

.rules-entry-content,
.rules-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 22px;
  align-items: center;
}

.rules-entry-copy {
  position: relative;
  z-index: 1;
}

.rules-entry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(85,222,255,.10);
  border: 1px solid rgba(85,222,255,.22);
  color: #d4f6ff;
  letter-spacing: .16em;
  font-size: .76rem;
}

.rules-entry-copy h2,
.rules-hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.08;
}

.rules-entry-copy p,
.rules-hero-copy p {
  color: #c4d4ee;
  line-height: 1.9;
}

.rules-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rules-entry-close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.6rem;
}

.entry-logo-card {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(85,222,255,.20), transparent 26%),
    radial-gradient(circle at 48% 82%, rgba(255,196,77,.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}

.entry-square {
  filter: blur(8px);
  opacity: .9;
}

.entry-square-a { width: 150px; height: 150px; top: 14%; right: 14%; transform: rotate(10deg); }
.entry-square-b { width: 210px; height: 210px; bottom: 10%; right: 8%; transform: rotate(-8deg); }
.entry-square-c { width: 180px; height: 180px; top: 24%; left: 10%; transform: rotate(-12deg); }
.entry-square-d { width: 140px; height: 140px; bottom: 18%; left: 16%; transform: rotate(12deg); }

.entry-logo-hero {
  position: relative;
  z-index: 1;
  width: min(86%, 560px);
  object-fit: contain;
  transform: perspective(1200px) rotateX(8deg) rotateY(-12deg);
  filter: drop-shadow(0 42px 70px rgba(0,0,0,.46)) drop-shadow(0 0 54px rgba(85,222,255,.12));
  animation: floatLogo 6.5s ease-in-out infinite;
}

.entry-logo-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 24px;
}

.entry-logo-badge span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .14em;
}

.entry-logo-badge strong {
  display: block;
  margin-top: 6px;
}

.rules-page-main {
  padding-bottom: 70px;
}

.rules-hero-copy {
  border-radius: 34px;
}

.rules-logo-card {
  min-height: 420px;
}

.rules-note-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.entry-mini-card {
  padding: 16px 18px;
  border-radius: 22px;
}

.entry-mini-card strong,
.entry-mini-card span {
  display: block;
}

.entry-mini-card span {
  color: var(--muted);
  margin-top: 6px;
}

.rules-highlight-card {
  position: relative;
  overflow: hidden;
}

.rule-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 28px;
}

.rule-number {
  border-radius: 18px;
  width: 52px;
  height: 52px;
}

@media (max-width: 1100px) {
  .rules-entry-content,
  .rules-hero-shell,
  .hero {
    grid-template-columns: 1fr;
  }

  .entry-logo-card,
  .logo-stage {
    min-height: 420px;
  }
}

@media (max-width: 960px) {
  .rules-preview-grid,
  .rules-entry-grid,
  .rules-highlight-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-entry-shell {
    padding: 22px;
  }

  .rules-entry-copy h2,
  .rules-hero-copy h1 {
    font-size: clamp(1.6rem, 7vw, 2.6rem);
  }

  body::before {
    width: min(80vw, 520px);
    right: -20%;
    top: 8%;
  }
}

@media (max-width: 720px) {
  .rules-entry-overlay {
    padding: 14px;
  }

  .rules-entry-shell {
    border-radius: 28px;
    padding: 18px;
  }

  .entry-logo-card,
  .rules-logo-card,
  .logo-stage {
    min-height: 340px;
  }

  .preview-rule-card,
  .rule-card {
    min-height: auto;
  }
}


/* refined rules page styling + cleaner navbar without changing the home hero */
#home {
  scroll-margin-top: 110px;
}

.rules-page .rules-clean-hero {
  align-items: center;
}

.rules-page .rules-main-grid-shell,
.rules-page .staff-decisions-shell {
  position: relative;
}

.rules-page .rules-grid-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.rules-page .rule-card-main {
  min-height: 255px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.92), rgba(5, 12, 28, 0.82));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.rules-page .rule-card-main h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin: 10px 0 0;
}

.rules-page .rule-card-main .rule-number {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}

.rules-page .rule-card-main .rule-desc {
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(237, 243, 255, 0.9);
}

.rules-page .staff-decisions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rules-page .staff-decision-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.9), rgba(7, 12, 24, 0.76));
  min-height: 170px;
}

.rules-page .staff-decision-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.rules-page .staff-decision-number {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 202, 77, 0.25), rgba(85, 222, 255, 0.16));
  border: 1px solid rgba(255,255,255,.1);
  color: var(--gold);
  font-weight: 800;
}

.rules-page .staff-decision-card h4 {
  margin: 8px 0 0;
  font-size: 1.02rem;
}

.rules-page .staff-decision-card p {
  margin: 10px 0 0;
  line-height: 1.75;
  color: rgba(231, 237, 249, .82);
  font-size: .95rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-wrap {
  flex-wrap: nowrap;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.nav a,
.nav button {
  white-space: nowrap;
  font-size: .92rem;
  padding: 9px 12px;
}

.music-btn {
  flex: 0 0 auto;
}

.rules-page .rules-single-hero {
  grid-template-columns: 1fr;
}

.rules-page .rules-hero-copy-wide {
  max-width: 980px;
}

.rules-page .rules-only-shell {
  padding-bottom: 32px;
}

.rules-page .rules-page-note {
  margin: 14px 0 0;
  max-width: 860px;
}

.rule-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.rule-number {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,196,77,.22), rgba(85,222,255,.16));
  border: 1px solid rgba(255,255,255,.1);
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .header-tools {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .rules-page .rules-grid-main,
  .rules-page .staff-decisions-grid {
    grid-template-columns: 1fr;
  }

  .rules-page .rule-card-main {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .header-tools {
    width: auto;
    order: 2;
  }

  .music-btn {
    min-width: 122px;
    padding: 7px 12px;
  }

  .music-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .music-btn-copy strong {
    font-size: .8rem;
  }

  .music-btn-copy small {
    font-size: .62rem;
  }
}

.shop-card-premium h3,
.shop-card-price strong,
.shop-card-perks p,
.shop-stock-row,
.shop-cart-head h3,
.shop-cart-total strong {
  text-shadow: 0 2px 10px rgba(0,0,0,.32);
}

.shop-card-premium p,
.shop-card-sub,
.shop-cart-line span,
.shop-empty-state p,
.shop-cart-total span {
  color: #d9e6fb;
}

.shop-cart-item,
.shop-empty-state,
.shop-cart-total {
  background: linear-gradient(180deg, rgba(5, 11, 23, .88), rgba(7, 14, 28, .78));
  border-color: rgba(255,255,255,.09);
}
