*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial}
body{background:#0b0b0d;color:#fff}

.topbar{
  position:fixed;inset:0 0 auto 0;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 22px;
  z-index:9999;
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.brand{display:flex;align-items:center;gap:10px}
.logo{width:22px;height:22px;object-fit:contain}
.brand-name{font-weight:700;opacity:.95}

.nav{display:flex;align-items:center;gap:18px}
.nav-link{
  color:#fff;text-decoration:none;
  font-size:13px;opacity:.9;
  padding:8px 10px;border-radius:8px;
  background:transparent;border:0;cursor:pointer;
}
.nav-link:hover{opacity:1;background:rgba(255,255,255,.06)}

.nav-dd{position:relative}
.dd-btn{display:flex;align-items:center;gap:6px}
.chev{opacity:.8;font-size:12px}

.nav-dd::after{
  content:"";
  position:absolute;
  left:-10px; right:-10px;
  top:100%;
  height:14px;
}

.dd{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:220px;
  background:rgba(18,18,20,.96);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  padding:8px;
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  display:none;
  z-index:10000;
}

.dd a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:#fff;text-decoration:none;
  opacity:.9;font-size:13px;
}
.dd a:hover{background:rgba(255,255,255,.06);opacity:1}

.nav-dd:hover .dd,
.nav-dd:focus-within .dd{display:block}

.hero{
  min-height:100vh;
  padding-top:70px;
  background:url("/static/img/hero.jpg") center/cover no-repeat;
  position:relative;
}

.hero-overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 700px at 55% 20%, rgba(255,92,107,.10), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58) 38%, rgba(0,0,0,.86));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  max-width:1240px;
  margin:0 auto;
  padding:40px 22px 90px;
  text-align:center;
}

.title{
  margin:60px 0 24px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:48px;
  font-weight:700;
  letter-spacing:.2px;
  text-shadow:0 12px 40px rgba(0,0,0,.6);
}

.page-title{
  margin:48px 0 18px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:44px;
  font-weight:700;
  letter-spacing:.2px;
  text-shadow:0 12px 40px rgba(0,0,0,.65);
}

.panel{
  margin:0 auto;
  max-width:980px;
  background:rgba(10,10,12,.78);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:22px 26px;
  line-height:1.7;
  font-size:16px;
  color:rgba(255,255,255,.88);
  box-shadow:0 22px 70px rgba(0,0,0,.45);
}

.foot{
  margin-top:26px;
  font-size:11px;
  opacity:.7;
}

.hl{color:#ff5c6b;font-weight:900}

.rules-page{
  max-width:1100px;
  margin:0 auto;
}

.rules-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:12px;
  background:rgba(10,10,12,.62);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  color:rgba(255,255,255,.90);
  font-size:13px;
  margin:0 auto 18px;
}

.rules-shell{
  text-align:left;
  background:rgba(10,10,12,.72);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:
    0 26px 90px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,92,107,.06) inset;
  backdrop-filter: blur(4px);
}

.rule{
  border-top:1px solid rgba(255,255,255,.08);
}
.rule:first-child{border-top:0}

.rule-head{
  list-style:none;
  cursor:pointer;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  user-select:none;
}

.rule-head::-webkit-details-marker{display:none}

.rule-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.rule-text{min-width:0}

.rule-name{
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.95);
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rule-sub{
  margin-top:4px;
  font-size:12px;
  color:rgba(255,255,255,.55);
  letter-spacing:.2px;
}

.zmark{
  width:12px;height:12px;border-radius:999px;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.04),
    0 10px 25px rgba(0,0,0,.45);
  flex:0 0 12px;
}

.z-red{background:#ff5c6b}
.z-blue{background:#4ea3ff}
.z-purple{background:#b06bff}

.zicon{
  width:22px;height:22px;
  display:grid;place-items:center;
  font-size:18px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  flex:0 0 22px;
}

.rule-arrow{
  width:10px;height:10px;
  border-right:2px solid rgba(255,255,255,.70);
  border-bottom:2px solid rgba(255,255,255,.70);
  transform:rotate(45deg);
  opacity:.75;
  transition:transform .18s ease, opacity .18s ease;
  margin-right:2px;
}

.rule[open] .rule-arrow{
  transform:rotate(-135deg);
  opacity:1;
}

.rule-head:hover{
  background:rgba(255,255,255,.04);
}

.rule-panel{
  padding:0 22px 22px;
  color:rgba(255,255,255,.90);
  animation:ruleIn .16s ease both;
}

.rule:not([open]) .rule-panel{display:none}

@keyframes ruleIn{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:translateY(0)}
}

.rule-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
  border-left:2px solid rgba(255,92,107,.18);
  padding-left:16px;
}

.rule-list li{
  position:relative;
  padding-left:14px;
  line-height:1.65;
  font-size:16px;
  color:rgba(255,255,255,.88);
}

.rule-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:8px;height:8px;
  border-radius:999px;
  background:#ff5c6b;
  box-shadow:0 10px 22px rgba(0,0,0,.45);
}

@media (max-width: 820px){
  .nav{gap:10px}
  .page-title{font-size:34px}
  .rule-name{font-size:18px}
  .rule-head{padding:18px 16px}
  .rule-panel{padding:0 16px 18px}
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  font-size:12px;
  line-height:1;
  margin-left:8px;
  color:rgba(255,255,255,.92);
}

.tag-warn{
  border-color:rgba(255,92,107,.28);
  background:rgba(255,92,107,.10);
  color:#ff7a86;
}

.tag-gift{
  border-color:rgba(255,92,107,.22);
  background:rgba(255,92,107,.08);
  color:#ff7a86;
}

.subshell{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:16px;
  display:grid;
  gap:12px;
}

.subrule{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}

.sub-head{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  user-select:none;
}

.sub-head::-webkit-details-marker{display:none}

.sub-title{
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:rgba(255,255,255,.92);
}

.sub-arrow{
  width:9px;height:9px;
  border-right:2px solid rgba(255,255,255,.70);
  border-bottom:2px solid rgba(255,255,255,.70);
  transform:rotate(45deg);
  opacity:.75;
  transition:transform .18s ease, opacity .18s ease;
}

.subrule[open] .sub-arrow{
  transform:rotate(-135deg);
  opacity:1;
}

.sub-head:hover{
  background:rgba(255,255,255,.04);
}

.sub-body{
  padding:0 16px 16px;
  animation:subIn .16s ease both;
}

@keyframes subIn{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:translateY(0)}
}

.sub-list{
  margin:0;
  padding:12px 0 0 0;
  list-style:none;
  display:grid;
  gap:10px;
  border-left:2px solid rgba(255,92,107,.14);
  padding-left:14px;
}

.sub-list li{
  position:relative;
  padding-left:14px;
  line-height:1.65;
  font-size:15.5px;
  color:rgba(255,255,255,.86);
}

.sub-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:7px;height:7px;
  border-radius:999px;
  background:#ff5c6b;
  box-shadow:0 10px 22px rgba(0,0,0,.45);
}

.points-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-top:10px;
}


.rule-name,
.rule-sub,
.sub-title{
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

.rules-shell .rule[open] > .rule-head { }
.rules-shell .rule[open] { }

.rules-shell .rule:not([open]) .rule-panel { display:none; }

/* ===== Mobile burger menu ===== */
.mnav-btn{
  display:none;
  width:44px;height:44px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  cursor:pointer;
  padding:10px;
}
.mnav-btn:hover{background:rgba(255,255,255,.10)}
.mnav-btn span{
  display:block;
  height:2px;
  margin:6px 0;
  background:rgba(255,255,255,.92);
  border-radius:2px;
}

.mnav-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:9998;
}
.mnav-overlay.open{
  opacity:1;
  pointer-events:auto;
}

.mnav{
  position:fixed;
  top:0; right:0;
  height:100vh;
  width:min(86vw, 340px);
  background:rgba(12,12,14,.96);
  border-left:1px solid rgba(255,255,255,.10);
  box-shadow:-30px 0 90px rgba(0,0,0,.65);
  transform:translateX(105%);
  transition:transform .20s ease;
  z-index:9999;
  display:flex;
  flex-direction:column;
}
.mnav.open{transform:translateX(0)}

html.mnav-lock, html.mnav-lock body{overflow:hidden}

.mnav-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mnav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mnav-logo{width:26px;height:26px;object-fit:contain}
.mnav-title{
  font-weight:900;
  letter-spacing:.2px;
  opacity:.95;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mnav-close{
  width:40px;height:40px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:18px;
}
.mnav-close:hover{background:rgba(255,255,255,.10)}

.mnav-list{
  padding:14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mnav-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  font-size:14px;
  opacity:.95;
}
.mnav-link:hover{background:rgba(255,255,255,.07)}

.mnav-dd{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  overflow:hidden;
}

.mnav-sum{
  list-style:none;
  cursor:pointer;
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff;
  font-size:14px;
  opacity:.95;
}
.mnav-sum::-webkit-details-marker{display:none}
.mnav-dd > .mnav-sum::after{
  content:"";
  width:9px;height:9px;
  border-right:2px solid rgba(255,255,255,.70);
  border-bottom:2px solid rgba(255,255,255,.70);
  transform:rotate(45deg);
  transition:transform .18s ease;
  opacity:.8;
}
.mnav-dd[open] > .mnav-sum::after{transform:rotate(-135deg);opacity:1}

.mnav-sub{
  padding:6px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mnav-sublink{
  text-decoration:none;
  color:rgba(255,255,255,.92);
  padding:10px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
}
.mnav-sublink:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,92,107,.20);
}

/* Desktop / Mobile switch */
.nav-desktop{display:flex}
@media (max-width: 900px){
  .nav-desktop{display:none}
  .mnav-btn{display:inline-block}
  .topbar{padding:12px 14px}
  .brand-name{font-size:14px}
}

.mnav-close{
  display:grid !important;
  place-items:center !important;
  line-height:1 !important;
  padding:0 !important;
}

