:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --card: rgba(18, 18, 22, 0.82);
  --card-2: rgba(28, 8, 10, 0.58);
  --red: #e50000;
  --red-2: #ff2a2a;
  --red-dark: #690000;
  --text: #f4f4f6;
  --muted: #a8a8b0;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(229,0,0,.18), transparent 35%), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(229,0,0,.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 120px);
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 20;
  background: rgba(5,5,5,.68);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: .25s ease;
}
.topbar.scrolled { height: 68px; background: rgba(5,5,5,.9); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 1.5px; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(229,0,0,.45)); }
.brand b { color: var(--red-2); }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  transition: .2s ease;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(229,0,0,.16); }
.menu-toggle { display: none; background: none; color: #fff; border: 0; font-size: 28px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 130px 5vw 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/banner.png') center/cover no-repeat;
  opacity: .5;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.72) 43%, rgba(5,5,5,.92) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%);
}
.hero-content {
  position: relative;
  max-width: 780px;
  z-index: 2;
}
.hero-logo { width: 112px; margin-bottom: 20px; filter: drop-shadow(0 0 35px rgba(229,0,0,.55)); }
.eyebrow, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-2);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 900;
  font-size: 12px;
}
.eyebrow::before, .section-tag::before { content: ""; width: 28px; height: 2px; background: var(--red); }
h1 {
  margin: 14px 0 18px;
  font-size: clamp(54px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -5px;
  text-transform: uppercase;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.85);
  text-shadow: 0 0 40px rgba(229,0,0,.25);
}
.hero p, .intro p, .section-head p, .rule-card li, .safe-card p, .punishment-card p {
  color: var(--muted);
  line-height: 1.75;
}
.hero p { max-width: 650px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--red), #8b0000); color: #fff; box-shadow: 0 12px 35px rgba(229,0,0,.3); border-color: rgba(255, 68, 68, .35); }
.btn.ghost { background: rgba(255,255,255,.04); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.status-card {
  position: absolute;
  right: 5vw;
  bottom: 90px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(10,10,12,.74);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.status-card small { display: block; margin-top: 4px; color: var(--muted); }
.pulse { width: 13px; height: 13px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255,42,42,.85); animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 15px rgba(255,42,42,0); } 100% { box-shadow: 0 0 0 0 rgba(255,42,42,0); } }

.section { width: min(1180px, 90vw); margin: 0 auto; padding: 90px 0; }
.intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}
h2 { margin: 14px 0 0; font-size: clamp(32px, 4vw, 58px); line-height: 1.02; letter-spacing: -2px; }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.rule-card, .safe-card, .punishment-card, .safe-form {
  position: relative;
  background: linear-gradient(180deg, var(--card), rgba(8,8,10,.82));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rule-card::before, .safe-card::before, .punishment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(229,0,0,.2), transparent 35%);
}
.rule-card { padding: 30px; }
.rule-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(229,0,0,.14);
  border: 1px solid rgba(229,0,0,.24);
  color: var(--red-2);
  font-size: 24px;
}
.rule-card h3 { margin: 18px 0 15px; font-size: 28px; }
.rule-card ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 13px; }
.rule-card li { position: relative; padding-left: 25px; }
.rule-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px rgba(229,0,0,.7); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head p { max-width: 680px; }
.safe-form { padding: 24px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
label { color: #fff; font-weight: 800; display: grid; gap: 8px; font-size: 14px; }
input {
  width: 100%;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 15px;
  padding: 13px 14px;
  outline: none;
}
input:focus { border-color: rgba(255,42,42,.65); box-shadow: 0 0 0 4px rgba(229,0,0,.11); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.safe-card img { width: 100%; height: 210px; object-fit: cover; display: block; filter: saturate(.96) contrast(1.02); }
.safe-card-body { padding: 22px; }
.safe-card h3 { margin: 0 0 8px; font-size: 24px; }
.safe-card p { margin: 0; }
.delete-zone {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  color: #fff;
  cursor: pointer;
}

.punish-section { padding-top: 10px; }
.punishment-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}
.punishment-card { padding: 30px; }
.punishment-card h2 { margin-top: 12px; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: #fff; background: rgba(229,0,0,.18); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; }
td { color: var(--muted); }
td strong { color: #fff; }

.footer {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer img { width: 42px; }
.footer a { color: #fff; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 78px;
    left: 5vw;
    right: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(10,10,12,.96);
    border: 1px solid var(--border);
    border-radius: 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .status-card { position: relative; right: auto; bottom: auto; margin-top: 35px; width: fit-content; }
  .intro, .rules-grid, .punishment-wrap { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { padding-top: 115px; }
  h1 { letter-spacing: -2.5px; }
  .section { padding: 60px 0; }
  .safe-grid { grid-template-columns: 1fr; }
  .section-head, .footer { flex-direction: column; align-items: flex-start; }
  th, td { padding: 14px 12px; font-size: 14px; }
}


/* =========================
   Premium animations/effects
   ========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 999;
  background: linear-gradient(90deg, #ff0000, #ff5a5a, #8b0000);
  box-shadow: 0 0 20px rgba(255, 0, 0, .9);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: radial-gradient(circle at center, rgba(229,0,0,.2), transparent 34%), #030303;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader img {
  width: 92px;
  filter: drop-shadow(0 0 32px rgba(255,0,0,.65));
  animation: logoLoad 1.25s ease-in-out infinite alternate;
}
.preloader span {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
}
.preloader.hide { opacity: 0; visibility: hidden; }
@keyframes logoLoad {
  from { transform: scale(.94) rotate(-2deg); opacity: .75; }
  to { transform: scale(1.05) rotate(2deg); opacity: 1; }
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(229,0,0,.16), rgba(229,0,0,.06) 35%, transparent 68%);
  mix-blend-mode: screen;
  z-index: 2;
  opacity: .8;
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
}

.red-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  background: rgba(229,0,0,.18);
  z-index: -2;
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.orb-one { top: 18%; left: -120px; }
.orb-two { right: -140px; bottom: 10%; animation-delay: -2.5s; }
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(55px, -45px, 0) scale(1.18); }
}

.hero-bg {
  animation: heroZoom 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-18px, 10px, 0); }
}
.hero-logo {
  animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.brand img { animation: brandGlow 2.8s ease-in-out infinite alternate; }
@keyframes brandGlow {
  from { filter: drop-shadow(0 0 10px rgba(229,0,0,.35)); }
  to { filter: drop-shadow(0 0 24px rgba(255,42,42,.85)); }
}

.rule-card, .safe-card, .punishment-card, .safe-form, .status-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.rule-card::after, .safe-card::after, .punishment-card::after, .safe-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 20%, rgba(255,255,255,.09), transparent 48%);
  opacity: 0;
  transition: opacity .25s ease;
}
.rule-card:hover::after, .safe-card:hover::after, .punishment-card:hover::after, .safe-form:hover::after { opacity: 1; }

.rule-card:hover, .safe-card:hover, .punishment-card:hover {
  border-color: rgba(255,42,42,.45);
  box-shadow: 0 24px 70px rgba(0,0,0,.62), 0 0 32px rgba(229,0,0,.14);
}

.rule-icon {
  animation: iconPulse 2.4s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(229,0,0,.28); }
  50% { transform: scale(1.06); box-shadow: 0 18px 42px rgba(255,42,42,.38); }
}

.btn.primary {
  position: relative;
  overflow: hidden;
}
.btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
}
.btn.primary:hover::before { left: 130%; }

.nav a { position: relative; overflow: hidden; }
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--red-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  box-shadow: 0 0 12px rgba(255,42,42,.8);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.safe-card img {
  transition: transform .55s ease, filter .35s ease;
}
.safe-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.08) brightness(1.05);
}
.safe-card { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .cursor-glow, .particles, .red-orb, .preloader { display: none !important; }
}

@media (max-width: 900px) {
  .cursor-glow { display: none; }
  .red-orb { width: 240px; height: 240px; }
}


/* ===== Pixel City Arabic content overrides: keep second design shapes, only fit Arabic rules ===== */
body { font-family: "Cairo", Inter, ui-sans-serif, system-ui, sans-serif; }
.brand { direction: ltr; }
.nav { flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: "Cairo", sans-serif; font-weight: 900; }
.preloader { gap: 14px; }
.preloader img { width: 165px; border-radius: 999px; }
.preloader-title {
  margin: 0;
  direction: ltr;
  font-family: "Pacifico", cursive;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: none;
  text-shadow: 0 0 24px rgba(255,0,0,.18);
}
.preloader-title span { color: #fff; }
.preloader-title b { color: var(--red-2); font-weight: 400; }
.hero-content, .intro, .rule-card, .safe-section, .punishment-card { direction: rtl; text-align: right; }
.eyebrow, .section-tag, .brand, h1 span { direction: ltr; }
h1 { letter-spacing: -2px; }
.hero-logo { width: 170px; }
.rules-grid { align-items: start; }
.rule-card { padding: 30px 30px 28px; min-height: 0; }
.rule-card h3 { font-size: 27px; line-height: 1.35; }
.rule-subtitle { margin: -7px 0 18px; color: var(--red-2); font-weight: 900; font-size: 13px; }
.rule-card ul { gap: 12px; }
.rule-card li {
  padding-left: 0;
  padding-right: 25px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}
.rule-card li::before { left: auto; right: 0; top: 12px; }
.rule-card li strong { color: #fff; }
.safe-section h2, .punishment-card h2 { letter-spacing: -1px; }
.section-head { direction: rtl; text-align: right; }
.form-grid label { text-align: left; direction: ltr; }
.form-actions { justify-content: flex-start; direction: ltr; }
.safe-card { direction: ltr; text-align: left; }
.punishment-card table { direction: rtl; }
th, td { text-align: right; }
@media (max-width: 900px) {
  .nav { align-items: stretch; }
  .nav a { text-align: center; }
  .preloader img { width: 135px; }
}


/* ===== Latest layout polish ===== */
body {
  background:
    radial-gradient(circle at 14% 22%, rgba(150,0,0,.24), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(120,0,0,.18), transparent 24%),
    radial-gradient(circle at 36% 74%, rgba(160,0,0,.14), transparent 20%),
    linear-gradient(180deg, #040404 0%, #050507 100%);
}
body::before {
  background:
    linear-gradient(120deg, rgba(229,0,0,.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 118px);
}
.preloader-title {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.preloader-title span {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  color: #fff;
}
.preloader-title b {
  font-family: "Pacifico", cursive;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: .85;
  color: var(--red-2);
}
.rules-grid {
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 26px;
  align-items: start;
}
.rule-card {
  background: linear-gradient(180deg, rgba(13,13,18,.94), rgba(8,8,11,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 28px 28px 24px;
}
.rule-card::before {
  background: radial-gradient(circle at top left, rgba(229,0,0,.22), transparent 36%), linear-gradient(135deg, rgba(255,255,255,.04), transparent 34%);
}
.rule-card::after { transition: opacity .18s ease; }
.rule-card:hover, .safe-card:hover, .punishment-card:hover {
  border-color: rgba(255,42,42,.26);
  box-shadow: 0 18px 44px rgba(0,0,0,.48), 0 0 18px rgba(229,0,0,.10);
}
.rule-card.wide-card { grid-column: 1 / -1; }
.rule-card h3 {
  font-size: 31px;
  margin: 18px 0 8px;
  line-height: 1.2;
}
.rule-subtitle {
  margin: 0 0 16px;
  color: #ff3d33;
  font-size: 13px;
  font-weight: 900;
}
.rule-card ul { gap: 10px; }
.rule-card li {
  font-size: 14px;
  line-height: 1.95;
  padding-right: 22px;
}
.rule-card li::before {
  width: 7px;
  height: 7px;
  top: 11px;
  box-shadow: 0 0 8px rgba(229,0,0,.55);
}
.robbery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 6px;
}
.robbery-item {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.robbery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255,0,0,.14), transparent 40%);
}
.robbery-item h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
  direction: ltr;
  text-align: left;
}
.robbery-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.robbery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
}
.robbery-pill b { color: #fff; }
.robbery-pill.executors { background: rgba(140,12,12,.5); color: #ffd4d1; border: 1px solid rgba(255,70,50,.24); }
.robbery-pill.police { background: rgba(60,60,66,.5); color: #f0f0f3; border: 1px solid rgba(255,255,255,.12); }
.safe-card img { height: 220px; }
.safe-card-body { padding: 20px; }
@media (max-width: 1150px) {
  .robbery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rule-card.wide-card { grid-column: auto; }
}
@media (max-width: 620px) {
  .robbery-grid { grid-template-columns: 1fr; }
  .preloader-title span { font-size: 1.35rem; }
  .preloader-title b { font-size: 3.2rem; }
}


/* ===== final cleanup requested ===== */
.hero { min-height: calc(100vh - 40px); }
.hero-content { max-width: 860px; }
.hero p { max-width: 760px; }
.rules-grid { gap: 24px; }
.rule-card.wide-card { grid-column: 1 / -1; }
.robbery-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.robbery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
}
.robbery-name {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  direction: ltr;
  text-align: left;
}
.robbery-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.penalty-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.penalty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
}
.penalty-label {
  min-width: 95px;
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(140,12,12,.5);
  border: 1px solid rgba(255,70,50,.24);
  color: #fff;
  font-weight: 900;
  direction: ltr;
}
.penalty-value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  flex: 1;
}
.penalty-note {
  margin: 14px 2px 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
}
@media (max-width: 900px) {
  .robbery-row, .penalty-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .robbery-name { width: 100%; }
}


/* ===== Category tabs layout fix ===== */
.rules-tabs-section {
  padding-top: 85px;
}
.tabs-header {
  margin-bottom: 24px;
  text-align: right;
}
.tabs-header h2 {
  margin-top: 12px;
}
.tabs-header p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 780px;
}
.rules-tabs {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background: rgba(5,5,6,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}
.rule-tab {
  position: relative;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  color: #fff;
  cursor: pointer;
  text-align: right;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.rule-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(229,0,0,.2), transparent 42%);
  opacity: 0;
  transition: opacity .2s ease;
}
.rule-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(255,42,42,.3);
}
.rule-tab.active {
  border-color: rgba(255,42,42,.62);
  background: linear-gradient(135deg, rgba(150,0,0,.55), rgba(18,18,22,.78));
  box-shadow: 0 0 26px rgba(229,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.05);
}
.rule-tab.active::before, .rule-tab:hover::before { opacity: 1; }
.rule-tab .tab-icon,
.rule-tab .tab-title,
.rule-tab small { position: relative; z-index: 1; }
.rule-tab .tab-icon { font-size: 22px; filter: drop-shadow(0 0 12px rgba(255,0,0,.45)); }
.rule-tab .tab-title { font-weight: 1000; font-size: 15px; line-height: 1.2; }
.rule-tab small { color: var(--muted); font-weight: 900; font-size: 11px; }
.rule-tab.active small { color: #ffb8b8; }
.rules-panels {
  min-height: 520px;
}
.rule-panel {
  width: 100%;
  max-width: none;
  padding: 34px;
  animation: tabPanelIn .35s ease both;
}
.rule-panel[hidden] { display: none !important; }
.rule-panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.rule-panel-head h3 { margin: 0 0 6px; }
.rule-panel-head .rule-subtitle { margin: 0; }
.rule-panel ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.rule-panel li {
  padding: 12px 28px 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.055);
}
.rule-panel li::before { right: 12px; top: 24px; }
.rule-panel .robbery-list,
.rule-panel .penalty-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@keyframes tabPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(.992); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@media (max-width: 1150px) {
  .rules-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-panel ul,
  .rule-panel .robbery-list,
  .rule-panel .penalty-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rules-tabs {
    position: relative;
    top: auto;
    grid-template-columns: 1fr 1fr;
  }
  .rule-tab { min-height: 78px; padding: 12px; }
  .rule-panel { padding: 24px 18px; }
  .rule-panel-head { align-items: flex-start; }
}
@media (max-width: 460px) {
  .rules-tabs { grid-template-columns: 1fr; }
}


/* ===== Requested fix: cleaner category names + no overlap while scrolling ===== */
.rules-tabs-section {
  scroll-margin-top: 105px;
  padding-top: 72px;
}

.tabs-header {
  margin-bottom: 28px;
}

.tabs-header h2 {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -1px;
}

.rules-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 4;
  margin-bottom: 34px;
}

.rules-panels {
  position: relative;
  z-index: 1;
  min-height: auto;
}

.rule-panel {
  scroll-margin-top: 120px;
}

.rule-tab .tab-title {
  font-size: 16px;
}

.rule-tab small {
  font-size: 12px;
  opacity: .92;
}

@media (max-width: 760px) {
  .rules-tabs-section { padding-top: 52px; }
}

/* ===== Normal scroll fix: no text hiding while scrolling ===== */
.topbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  min-height: 78px;
}
.topbar.scrolled {
  height: 78px !important;
  background: rgba(5,5,5,.78) !important;
}
.hero {
  min-height: calc(100vh - 78px);
  padding-top: 70px;
}
.rules-tabs-section,
.tabs-header,
.rules-tabs,
.rules-panels,
.rule-panel {
  overflow: visible !important;
}
.rules-tabs {
  position: static !important;
  top: auto !important;
  z-index: 1 !important;
  transform: none !important;
}
.tabs-header.reveal,
.rule-panel.reveal {
  opacity: 1 !important;
  transform: none !important;
}
.rule-panel[hidden] {
  display: none !important;
}
.rule-panel.active {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    top: 78px;
  }
}


/* ===== brand wordmark fix requested ===== */
.preloader-title,
.brand-mark,
.hero-brand {
  direction: ltr;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: .34em;
  white-space: nowrap;
}
.brand-pixel,
.brand-city {
  font-family: "Teko", sans-serif !important;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .035em;
  line-height: .9;
  display: inline-block;
  transform: skewX(-10deg);
}
.brand-pixel {
  color: #ff1d1d !important;
  text-shadow: 0 0 18px rgba(255,0,0,.12);
}
.brand-city {
  color: #f2f2f2 !important;
  background: linear-gradient(180deg, #ffffff 0%, #dedede 55%, #b9b9b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255,255,255,.08);
}
.preloader-title {
  margin: 0;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}
.preloader-title .brand-mark {
  font-size: clamp(3rem, 5vw, 4.9rem);
}
.preloader-title .brand-pixel,
.preloader-title .brand-city {
  font-size: 1em;
}
.brand {
  gap: 10px;
}
.brand-mark-nav {
  font-size: 1.8rem;
}
.brand-mark-nav .brand-pixel,
.brand-mark-nav .brand-city {
  font-size: 1em;
}
.hero h1 {
  letter-spacing: -1px;
  line-height: .95;
}
.hero-brand {
  margin-top: 10px;
  display: inline-flex !important;
  align-items: baseline;
  gap: .22em;
  font-size: clamp(4.5rem, 10vw, 8.7rem) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city {
  font-size: 1em;
}
/* neutralize older wordmark styles */
.preloader-title span,
.preloader-title b,
.brand > span,
.brand > span b,
.hero h1 > span {
  font-family: inherit;
}
.hero h1 > span:not(.hero-brand) {
  color: inherit;
}
@media (max-width: 900px) {
  .brand-mark-nav {
    font-size: 1.45rem;
  }
  .hero-brand {
    font-size: clamp(3.1rem, 14vw, 5.5rem) !important;
  }
  .preloader-title .brand-mark {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }
}


/* ===== remove outline and make wordmark smoother ===== */
.brand-mark,
.brand-mark *,
.preloader-title,
.preloader-title *,
.hero-brand,
.hero-brand * {
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.brand-pixel,
.brand-city {
  transform: skewX(-7deg) !important;
  letter-spacing: .02em !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.preloader-title .brand-mark {
  gap: .26em;
}
.preloader-title .brand-pixel,
.preloader-title .brand-city {
  font-size: 1em;
}
.hero-brand {
  gap: .18em !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city {
  text-shadow: none !important;
  filter: none !important;
}
.hero-brand .brand-pixel {
  color: #ff2323 !important;
}
.hero-brand .brand-city {
  background: linear-gradient(180deg, #ffffff 0%, #ececec 52%, #bdbdbd 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.brand-mark-nav {
  font-size: 1.7rem !important;
}
.brand-mark-nav .brand-pixel,
.brand-mark-nav .brand-city {
  transform: skewX(-6deg) !important;
}


/* ===== requested polish v3 ===== */
/* fix brand wordmark / Y shape */
.brand-pixel,
.brand-city {
  font-family: "Barlow Condensed", sans-serif !important;
  font-style: italic !important;
  font-weight: 800 !important;
  transform: none !important;
  letter-spacing: .01em !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.preloader-title .brand-mark { gap: .24em !important; }
.hero-brand { gap: .16em !important; }
.brand-mark-nav { gap: .22em !important; }
/* center nav and move logo to left */
.topbar {
  justify-content: center !important;
  position: fixed;
}
.brand {
  position: absolute;
  left: 5vw;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  direction: ltr !important;
}
.nav {
  justify-content: center !important;
  margin: 0 auto;
  flex-wrap: nowrap;
}
/* remove intro block */
.intro { display: none !important; }
main > .rules-tabs-section { padding-top: 38px !important; }
/* panel tabs font + native emoji style */
.rule-tab {
  align-items: center !important;
  text-align: center !important;
  min-height: 94px;
}
.rule-tab .tab-icon {
  font-size: 24px !important;
  filter: none !important;
  margin-bottom: 2px;
}
.rule-tab .tab-title {
  font-family: "Cairo", sans-serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}
.rule-tab small {
  font-family: "Cairo", sans-serif !important;
  font-size: 11px !important;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .topbar {
    justify-content: space-between !important;
  }
  .brand {
    position: static;
    transform: none;
    order: 1;
  }
  .nav {
    flex-wrap: wrap;
    margin: 0;
  }
}


/* ===== requested revert to previous Pixel City style ===== */
.brand-pixel,
.brand-city {
  font-family: "Teko", sans-serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  transform: skewX(-7deg) !important;
  letter-spacing: .02em !important;
}
.brand-mark { gap: .28em !important; }
.brand-mark-mini { font-size: 1em; gap: .2em !important; }
.inline-brand { font-size: 1em; }
.eyebrow {
  gap: 10px !important;
}
.eyebrow .brand-mark-mini .brand-pixel,
.eyebrow .brand-mark-mini .brand-city {
  font-size: 1.35em;
  line-height: .8;
}
.eyebrow-roleplay {
  color: var(--red-2);
  font-weight: 900;
  letter-spacing: 2px;
}
.hero p {
  max-width: 760px;
}
.footer .brand-mark {
  vertical-align: middle;
}


/* ===== tiny size tweak for Y issue only ===== */
.brand-pixel,
.brand-city {
  line-height: .96 !important;
}
.preloader-title .brand-mark {
  font-size: clamp(2.85rem, 4.8vw, 4.65rem) !important;
}
.brand-mark-nav {
  font-size: 1.6rem !important;
}
.hero-brand {
  font-size: clamp(4.15rem, 9.4vw, 8.15rem) !important;
  line-height: .98 !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city,
.brand-mark-nav .brand-pixel,
.brand-mark-nav .brand-city,
.preloader-title .brand-pixel,
.preloader-title .brand-city {
  font-size: .96em !important;
}


/* ===== slight font reduction only ===== */
.hero-brand {
  font-size: clamp(3.8rem, 8.7vw, 7.45rem) !important;
  line-height: .97 !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city {
  font-size: .94em !important;
}


/* ===== requested v7 tweaks ===== */
.hero-brand {
  gap: .08em !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city {
  font-size: .94em !important;
}
.eyebrow {
  direction: ltr !important;
  color: var(--red-2) !important;
  font-family: "Teko", sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 2.4px !important;
}


/* ===== requested Y-shape fix trial ===== */
.brand-pixel,
.brand-city {
  transform: skewX(-5deg) !important;
  line-height: 1.02 !important;
}
.preloader-title .brand-mark {
  font-size: clamp(2.7rem, 4.6vw, 4.4rem) !important;
  gap: .22em !important;
}
.brand-mark-nav {
  font-size: 1.52rem !important;
  gap: .18em !important;
}
.hero-brand {
  font-size: clamp(3.45rem, 8.1vw, 6.9rem) !important;
  line-height: 1.02 !important;
  gap: .03em !important;
}
.hero-brand .brand-pixel,
.hero-brand .brand-city {
  font-size: .93em !important;
}


/* ===== v9: change Pixel City font only ===== */
.brand-pixel,
.brand-city {
  font-family: "Barlow Semi Condensed", sans-serif !important;
  font-style: italic !important;
  font-weight: 800 !important;
  transform: none !important;
  letter-spacing: .015em !important;
  line-height: 1.02 !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.preloader-title .brand-mark {
  gap: .20em !important;
}
.brand-mark-nav {
  gap: .18em !important;
}
.hero-brand {
  gap: .04em !important;
}


/* ===== admin only system ===== */
.admin-only[hidden] {
  display: none !important;
}
.admin-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.admin-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,15,21,.96), rgba(8,8,12,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.admin-card-head h3 {
  margin-bottom: 8px;
}
.admin-card-head p,
.admin-help,
.admin-modal-tip {
  color: var(--muted);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}
.admin-form-grid .full-span {
  grid-column: 1 / -1;
}
.admin-card label,
.admin-modal-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-modal-card input {
  width: 100%;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.admin-card textarea {
  resize: vertical;
}
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.admin-modal-card input:focus {
  border-color: rgba(255,60,60,.45);
  box-shadow: 0 0 0 3px rgba(255,30,30,.08);
}
.admin-button-row,
.admin-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.danger-btn {
  border-color: rgba(255,70,70,.24) !important;
  color: #ffb1b1 !important;
}
body.admin-authenticated .admin-only {
  display: block;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
}
.admin-modal-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  margin: 10vh auto 0;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17,17,23,.98), rgba(10,10,14,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.admin-modal-card h3 {
  margin-bottom: 8px;
}
.admin-modal-card p {
  color: var(--muted);
  margin-bottom: 18px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.safe-card .delete-zone {
  top: 12px;
  left: 12px;
  right: auto;
}
@media (max-width: 980px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-head {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== v11 preloader and hidden logo trigger fix ===== */
.preloader {
  animation: preloaderAutoHide .7s ease 2.4s forwards;
}
@keyframes preloaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.hero-logo[data-admin-trigger],
.brand img[data-admin-trigger],
.preloader img[data-admin-trigger] {
  user-select: none;
}


/* ===== v13 admin layout + safe zones tools ===== */
.admin-grid-layout {
  grid-template-columns: 1fr !important;
  gap: 22px !important;
}
.admin-card {
  width: 100%;
}
#safe-zones-manager .admin-card:first-child {
  order: 1;
}
#safe-zones-manager .admin-card:last-child {
  order: 2;
}
.safe-zone-public-block {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.safe-zone-public-head h4 {
  margin: 0 0 6px;
  font-size: 22px;
}
.safe-zone-public-head p {
  margin: 0 0 18px;
  color: var(--muted);
}
.safe-zone-public-gallery,
#safeZoneGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.public-safe-card,
.admin-safe-card {
  min-height: 100%;
}
.public-safe-card .safe-card-body,
.admin-safe-card .safe-card-body {
  direction: rtl;
  text-align: right;
}
.admin-safe-card {
  overflow: visible;
}
.safe-admin-tools {
  position: relative;
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-start;
}
.safe-menu-trigger {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.safe-menu-trigger:hover {
  border-color: rgba(255,60,60,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.safe-menu {
  position: absolute;
  bottom: 68px;
  left: 18px;
  min-width: 170px;
  border-radius: 16px;
  background: rgba(8,8,12,.97);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  padding: 8px;
  z-index: 15;
}
.safe-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
}
.safe-menu button:hover {
  background: rgba(255,255,255,.06);
}
.safe-menu button.danger-item {
  color: #ffb2b2;
}
.safe-hidden-input {
  display: none;
}
.safe-card .delete-zone {
  display: none !important;
}
@media (max-width: 1024px) {
  .safe-zone-public-gallery,
  #safeZoneGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .safe-zone-public-gallery,
  #safeZoneGrid {
    grid-template-columns: 1fr;
  }
}


/* ===== v16: flexible images + styled admin selects ===== */
.safe-card img,
.public-safe-card img,
.admin-safe-card img {
  width: 100% !important;
  height: clamp(230px, 24vw, 420px) !important;
  max-height: 520px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: radial-gradient(circle at center, rgba(255,255,255,.035), rgba(0,0,0,.42)), #050506 !important;
  padding: 6px !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.safe-zone-public-gallery .safe-card,
#safeZoneGrid .safe-card {
  overflow: hidden !important;
}
.admin-card select {
  appearance: none !important;
  -webkit-appearance: none !important;
  color: #fff !important;
  background-color: rgba(18,18,24,.98) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.9) 50%),
    linear-gradient(135deg, rgba(255,255,255,.9) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)) !important;
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px),
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}
.admin-card select option,
.admin-card select optgroup {
  background: #111116 !important;
  color: #fff !important;
}
.admin-card select:focus {
  border-color: rgba(255,42,42,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,30,30,.11) !important;
}
#adminUndoRuleBtn {
  border-color: rgba(255,255,255,.16) !important;
  color: #fff !important;
}
@media (max-width: 700px) {
  .safe-card img,
  .public-safe-card img,
  .admin-safe-card img {
    height: 260px !important;
  }
}


/* ===== v17 admin numbering + footer + punish style ===== */
.simple-footer {
  justify-content: center !important;
  text-align: center;
  direction: ltr;
  font-weight: 800;
  letter-spacing: .2px;
}
.simple-footer p {
  margin: 0;
  color: #d6d6dc;
}
.icon-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.icon-clear-btn {
  white-space: nowrap;
  min-height: 44px !important;
}
.admin-number-hint {
  color: var(--red-2);
  font-size: 12px;
  margin-right: 8px;
  font-weight: 900;
}
.rule-tab:not(:has(.tab-icon)) {
  padding-top: 18px;
}
.rule-panel-head:not(:has(.rule-icon)) {
  padding-top: 4px;
}
.rule-panel .penalty-list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  max-width: 920px;
  margin: 10px auto 0;
}
.penalty-row {
  min-height: 62px;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  display: grid !important;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  align-items: center;
  direction: rtl;
}
.penalty-label {
  justify-self: start;
  min-width: 120px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(155, 18, 18, .82), rgba(95, 0, 0, .72)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.penalty-value {
  text-align: right !important;
  font-weight: 900 !important;
  color: #f4f4f6 !important;
}
.penalty-note {
  max-width: 920px;
  margin: 16px auto 0 !important;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}
@media (max-width: 640px) {
  .icon-field-row { grid-template-columns: 1fr; }
  .penalty-row { grid-template-columns: 1fr; gap: 10px; }
}


/* ===== v18 warn/banned section like original ===== */
.rule-panel[data-panel="band-rules"] {
  border-right: 4px solid rgba(255, 30, 30, .8) !important;
  background: linear-gradient(180deg, rgba(20, 18, 22, .96), rgba(8, 8, 11, .98)) !important;
}
.rule-panel[data-panel="band-rules"] .rule-panel-head {
  display: none !important;
}
.warn-policy {
  direction: rtl;
  text-align: right;
  color: #e8e8ed;
}
.warn-policy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.warn-policy-top p {
  flex: 1;
  margin: 0;
  color: #d8d8de;
  font-weight: 800;
  line-height: 1.8;
}
.warn-policy-top strong,
.warn-line b,
.warn-bullets b {
  color: #ff251f;
  font-weight: 1000;
}
.warn-index {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(180deg, #ff2d20, #d80e08);
  color: #0d0d0f;
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(255,0,0,.24);
}
.warn-title {
  margin: 22px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 30, 30, .85);
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  text-align: right;
}
.warn-box {
  margin: 0 auto 22px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  display: grid;
  gap: 16px;
}
.warn-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 24px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.65;
}
.warn-num {
  color: #ff251f;
  font-weight: 1000;
}
.warn-text {
  color: #f2f2f5;
}
.warn-bullets {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 0 0 20px !important;
  padding: 0 22px 0 0 !important;
  list-style: disc !important;
}
.warn-bullets li {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #dcdce2 !important;
  font-size: 1rem;
  line-height: 1.9;
  list-style: disc !important;
}
.warn-bullets li::before {
  display: none !important;
}
.warn-notes {
  margin-bottom: 0 !important;
}
@media (max-width: 760px) {
  .warn-policy-top {
    align-items: flex-start;
  }
  .warn-index {
    width: 44px;
    height: 44px;
  }
  .warn-box {
    padding: 18px;
  }
  .warn-line {
    font-size: .95rem;
    flex-wrap: wrap;
  }
}


/* ===== v19 permanent save system ===== */
.admin-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-save-status[data-type="success"] {
  color: #b6ffcf;
  border-color: rgba(66,255,120,.22);
  background: rgba(22,120,45,.16);
}
.admin-save-status[data-type="error"] {
  color: #ffb6b6;
  border-color: rgba(255,70,70,.24);
  background: rgba(140,12,12,.18);
}
.admin-save-status[data-type="loading"] {
  color: #fff;
  border-color: rgba(255,255,255,.14);
}


/* ===== v20 cleanup ===== */
.admin-save-status, #adminSyncBtn, #adminExportBtn { display:none !important; }


/* v23: remove only the red number box in warn policy */
.warn-index { display: none !important; }
.warn-policy-top { justify-content: flex-start !important; }


/* ===== v24 visual polish ===== */
.hero {
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 170px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,6,0) 0%, rgba(32,0,0,.46) 42%, rgba(72,0,0,.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.rules-tabs-section {
  position: relative;
  margin-top: -30px;
  padding-top: 74px !important;
  background:
    linear-gradient(180deg, rgba(90,0,0,.36) 0%, rgba(38,0,0,.20) 15%, rgba(0,0,0,0) 40%),
    radial-gradient(circle at 20% 0%, rgba(255,0,0,.09), transparent 36%);
  border-top-left-radius: 42px;
  border-top-right-radius: 42px;
}
.tabs-header p,
.rule-tab small,
.rule-subtitle {
  color: #ff4747 !important;
}
.eyebrow,
.section-tag {
  color: #ff3535 !important;
}
.eyebrow {
  gap: 10px;
  align-items: baseline;
}
.eyebrow::before {
  margin-top: 0.2em;
}
.eyebrow-brand {
  gap: .18em !important;
  align-items: baseline !important;
}
.eyebrow-brand .brand-pixel,
.eyebrow-brand .brand-city,
.footer-brand .brand-pixel,
.footer-brand .brand-city {
  font-family: "Teko", sans-serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: .92 !important;
  letter-spacing: .03em !important;
  transform: skewX(-9deg) !important;
  display: inline-block;
}
.eyebrow-brand .brand-pixel,
.footer-brand .brand-pixel {
  font-size: 1.18em !important;
  color: #ff2d2d !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 0 16px rgba(255,0,0,.16);
}
.eyebrow-brand .brand-city,
.footer-brand .brand-city {
  font-size: 1em !important;
  background: none !important;
  -webkit-text-fill-color: #f6f6f6 !important;
  color: #f6f6f6 !important;
  text-shadow: 0 0 10px rgba(255,255,255,.08);
}
.eyebrow-roleplay {
  color: #ff4f4f;
  font-weight: 900;
  letter-spacing: 3px;
}
.simple-footer {
  padding-top: 18px;
  padding-bottom: 18px;
  background: linear-gradient(90deg, rgba(18,0,0,.88), rgba(12,12,16,.92));
}
.simple-footer p {
  color: #ffffff !important;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-brand {
  gap: .15em !important;
  vertical-align: baseline;
}
.footer-brand .brand-pixel,
.footer-brand .brand-city {
  font-size: 1em !important;
}
.footer-brand .brand-pixel {
  font-size: 1.16em !important;
}
