:root {
  --rg-black: #030302;
  --rg-abyss: #080706;
  --rg-ink: #11100c;
  --rg-coal: #19140a;
  --rg-panel: rgba(13, 11, 7, .94);
  --rg-panel-2: rgba(28, 20, 8, .92);
  --rg-gold: #f7c84b;
  --rg-gold-soft: #ffe8a0;
  --rg-gold-dark: #8b5a08;
  --rg-bronze: #5c3511;
  --rg-amber: #d19124;
  --rg-red: #8f2920;
  --rg-green: #83c06b;
  --rg-blue: #80d8ff;
  --rg-purple: #b28cff;
  --rg-text: #fff4d4;
  --rg-muted: #c8b587;
  --rg-line: rgba(247, 200, 75, .38);
  --rg-shadow: 0 0 0 4px rgba(0,0,0,.58), 0 28px 90px rgba(247, 200, 75, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { image-rendering: pixelated; }

body.rg-body {
  margin: 0;
  min-height: 100vh;
  color: var(--rg-text);
  font-family: Rajdhani, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(247, 200, 75, .20), transparent 18rem),
    radial-gradient(circle at 18% 18%, rgba(139, 90, 8, .28), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(143, 41, 32, .12), transparent 26rem),
    linear-gradient(145deg, #010101 0%, #070604 42%, #151006 100%);
  overflow-x: hidden;
}

body.rg-body::before,
body.rg-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body.rg-body::before {
  z-index: -4;
  background-image:
    linear-gradient(rgba(247,200,75,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,200,75,.032) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,232,160,.12) 0 1px, transparent 2px);
  background-size: 34px 34px, 34px 34px, 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.84), transparent 90%);
  animation: rgMapDrift 22s linear infinite;
}
body.rg-body::after {
  z-index: -3;
  background:
    linear-gradient(to top, rgba(3,3,2,1) 0 14%, transparent 32%),
    repeating-linear-gradient(90deg, rgba(247,200,75,.06) 0 1px, transparent 1px 36px);
}

.rg-particles,
.rg-scanlines,
.rg-ro-bg { position: fixed; inset: 0; pointer-events: none; }
.rg-particles { z-index: -1; opacity: .95; }
.rg-scanlines {
  z-index: 60;
  opacity: .05;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
}
.rg-ro-bg { z-index: -2; overflow: hidden; }
.rg-bg-rune {
  position: absolute;
  color: rgba(255, 232, 160, .08);
  font-family: Cinzel, serif;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(247,200,75,.18));
  animation: rgRuneFloat 10s ease-in-out infinite alternate;
}
.rg-rune-one { left: 7%; top: 18%; font-size: 160px; }
.rg-rune-two { right: 8%; top: 24%; font-size: 190px; animation-delay: -2s; }
.rg-rune-three { left: 44%; bottom: 9%; font-size: 140px; animation-delay: -4s; }

.rg-header,
.rg-alert,
.rg-shell,
.rg-footer { width: min(1220px, calc(100% - 32px)); }

.rg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 2px solid rgba(247, 200, 75, .62);
  background: linear-gradient(180deg, rgba(19, 15, 8, .92), rgba(6, 5, 3, .82));
  backdrop-filter: blur(16px);
  box-shadow: var(--rg-shadow);
  clip-path: polygon(0 14px,14px 14px,14px 0,calc(100% - 14px) 0,calc(100% - 14px) 14px,100% 14px,100% calc(100% - 14px),calc(100% - 14px) calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,14px calc(100% - 14px),0 calc(100% - 14px));
}

.rg-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 248px; }
.rg-brand strong {
  display: block;
  font-family: Cinzel, serif;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(247,200,75,.72);
}
.rg-brand small {
  display: block;
  margin-top: 4px;
  color: var(--rg-muted);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 11px;
}
.rg-emperium-logo {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: linear-gradient(135deg, #fff5c5 0%, var(--rg-gold) 42%, var(--rg-gold-dark) 100%);
  box-shadow:
    0 0 0 4px #030302,
    0 0 0 6px var(--rg-gold-dark),
    0 0 30px rgba(247,200,75,.72),
    inset -8px -8px rgba(0,0,0,.24);
  clip-path: polygon(50% 0, 63% 16%, 88% 14%, 74% 42%, 94% 72%, 66% 72%, 50% 100%, 34% 72%, 6% 72%, 26% 42%, 12% 14%, 37% 16%);
  animation: rgEmperium 1.9s steps(2, end) infinite;
}
.rg-emperium-logo::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 8px;
  top: 8px;
  background: #fff8d7;
  box-shadow: 0 0 16px #fff8d7;
}

.rg-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.rg-nav a,
.rg-button,
.rg-nav-toggle,
.rg-filter select,
.rg-theme-switch select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 2px solid rgba(184, 134, 11, .78);
  background: linear-gradient(180deg, rgba(38, 26, 8, .92), rgba(8, 6, 3, .94));
  color: var(--rg-text);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: inset 0 -5px rgba(0,0,0,.42), 0 0 18px rgba(247,200,75,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.rg-nav a:hover,
.rg-button:hover,
.rg-nav-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--rg-gold-soft);
  color: #fffbdc;
  box-shadow: inset 0 -5px rgba(0,0,0,.42), 0 0 30px rgba(247,200,75,.35);
}
.rg-nav-cta,
.rg-button-primary {
  background: linear-gradient(135deg, var(--rg-gold-soft), var(--rg-gold) 48%, var(--rg-gold-dark)) !important;
  border-color: var(--rg-gold-soft) !important;
  color: #140c02 !important;
  text-shadow: none;
}
.rg-nav-toggle { display: none; cursor: pointer; }

.rg-alert {
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 2px solid var(--rg-gold);
  background: rgba(247, 200, 75, .12);
  color: #fff1b4;
  box-shadow: 0 0 28px rgba(247, 200, 75, .18);
}

.rg-shell { margin: 22px auto 56px; }
.rg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .98fr);
  gap: 28px;
  align-items: center;
  min-height: 590px;
}
.rg-hero-copy { animation: rgSlideUp .8s cubic-bezier(.2,.8,.2,1) both; }
.rg-kicker,
.rg-kicker-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.rg-kicker span {
  width: 12px;
  height: 12px;
  background: var(--rg-gold);
  box-shadow: 18px 0 var(--rg-gold-soft), 36px 0 var(--rg-gold-dark);
  animation: rgBlink 1s steps(2, end) infinite;
}
.rg-hero h1,
.rg-page-title h1 {
  margin: 18px 0;
  font-family: Cinzel, serif;
  font-weight: 900;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .92;
  letter-spacing: -.02em;
  color: #ffe9a1;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 #000, 0 0 32px rgba(247, 200, 75, .55);
}
.rg-hero p,
.rg-page-title p {
  max-width: 760px;
  color: var(--rg-muted);
  font-size: 22px;
  line-height: 1.52;
  margin: 0 0 24px;
}
.rg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rg-button { min-width: 176px; }
.rg-glitch { position: relative; }
.rg-glitch::before,
.rg-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
}
.rg-glitch::before { transform: translate(3px, -2px); color: var(--rg-gold-soft); clip-path: inset(0 0 64% 0); animation: rgGlitch 2.4s infinite steps(2, end); }
.rg-glitch::after { transform: translate(-3px, 2px); color: var(--rg-red); clip-path: inset(58% 0 0 0); animation: rgGlitch 3s infinite steps(2, end) reverse; }

.rg-hero-stage {
  position: relative;
  min-height: 520px;
  border: 2px solid rgba(247,200,75,.38);
  background:
    radial-gradient(circle at 51% 25%, rgba(247, 200, 75, .22), transparent 9rem),
    linear-gradient(to top, rgba(80, 46, 12, .36), transparent 48%),
    linear-gradient(180deg, rgba(25,19,9,.74), rgba(2,2,2,.86));
  box-shadow: var(--rg-shadow);
  overflow: hidden;
  clip-path: polygon(0 20px,20px 20px,20px 0,calc(100% - 20px) 0,calc(100% - 20px) 20px,100% 20px,100% calc(100% - 20px),calc(100% - 20px) calc(100% - 20px),calc(100% - 20px) 100%,20px 100%,20px calc(100% - 20px),0 calc(100% - 20px));
}
.rg-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 68%, rgba(0,0,0,.48)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(247,200,75,.09) 30px 32px);
  animation: rgMapDrift 10s linear infinite;
}
.rg-prontera-skyline {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 108px;
  height: 118px;
  opacity: .58;
  background:
    linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.08)),
    linear-gradient(90deg, transparent 0 4%, #1c1205 4% 8%, transparent 8% 13%, #211705 13% 20%, transparent 20% 24%, #1d1405 24% 33%, transparent 33% 38%, #251907 38% 48%, transparent 48% 52%, #1c1305 52% 60%, transparent 60% 66%, #241808 66% 75%, transparent 75% 81%, #1b1205 81% 90%, transparent 90% 100%);
  clip-path: polygon(0 100%,0 66%,6% 66%,6% 36%,9% 36%,9% 66%,15% 66%,15% 24%,18% 24%,18% 66%,27% 66%,27% 42%,30% 42%,30% 66%,40% 66%,40% 18%,44% 18%,44% 66%,54% 66%,54% 39%,58% 39%,58% 66%,69% 66%,69% 26%,73% 26%,73% 66%,84% 66%,84% 38%,88% 38%,88% 66%,100% 66%,100% 100%);
}
.rg-emperium-crystal {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 86px;
  height: 110px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fff8c8 0%, var(--rg-gold) 38%, var(--rg-gold-dark) 100%);
  clip-path: polygon(50% 0, 78% 18%, 100% 50%, 72% 100%, 28% 100%, 0 50%, 22% 18%);
  box-shadow: 0 0 0 6px rgba(0,0,0,.48), 0 0 50px rgba(247,200,75,.72);
  animation: rgCrystalHover 2.8s ease-in-out infinite;
}
.rg-emperium-crystal::before {
  content: "";
  position: absolute;
  inset: 14px 28px 38px 18px;
  background: rgba(255,255,255,.58);
  clip-path: polygon(0 0,100% 20%,45% 100%);
}
.rg-cast-bar,
.rg-exp-bar {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 18px;
  border: 2px solid rgba(247,200,75,.65);
  background: rgba(0,0,0,.64);
  box-shadow: inset 0 -4px rgba(0,0,0,.38);
}
.rg-cast-bar { bottom: 32px; }
.rg-exp-bar { bottom: 58px; }
.rg-cast-bar::after,
.rg-exp-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rg-gold-dark), var(--rg-gold), var(--rg-gold-soft));
  box-shadow: 0 0 16px rgba(247,200,75,.45);
}
.rg-cast-bar::after { width: 74%; animation: rgBarPulse 2.1s ease-in-out infinite; }
.rg-exp-bar::after { width: 88%; animation: rgBarPulse 2.6s ease-in-out infinite; }
.rg-cast-label {
  position: absolute;
  left: 30px;
  bottom: 78px;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--rg-gold-soft);
  text-shadow: 2px 2px 0 #000;
}
.rg-floor {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 0;
  height: 110px;
  background:
    repeating-linear-gradient(90deg, #3b250c 0 34px, #241506 34px 68px),
    linear-gradient(to top, #0a0602, transparent);
  border-top: 4px solid rgba(247,200,75,.42);
  box-shadow: inset 0 20px rgba(0,0,0,.28);
}
.rg-sprite-label {
  position: absolute;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 2px solid var(--rg-gold-dark);
  background: rgba(0,0,0,.72);
  color: var(--rg-gold-soft);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-shadow: 2px 2px 0 #000;
}
.rg-label-smith { left: 28%; bottom: 210px; }
.rg-label-alche { left: 69%; bottom: 196px; }

.rg-pixel-blacksmith,
.rg-pixel-alchemist,
.rg-pixel-poring,
.rg-anvil,
.rg-potion {
  position: absolute;
  z-index: 2;
  image-rendering: pixelated;
}
.rg-pixel-blacksmith {
  left: 23%;
  bottom: 112px;
  width: 16px;
  height: 16px;
  transform: scale(6);
  transform-origin: bottom left;
  background: transparent;
  box-shadow:
    6px 0 #f1c27d, 7px 0 #f1c27d, 8px 0 #f1c27d,
    5px 1px #5f3512,6px 1px #f1c27d,7px 1px #f1c27d,8px 1px #f1c27d,9px 1px #5f3512,
    5px 2px #5f3512,6px 2px #ffe0aa,7px 2px #111,8px 2px #ffe0aa,9px 2px #5f3512,
    4px 3px #5f3512,5px 3px #c88320,6px 3px #c88320,7px 3px #c88320,8px 3px #c88320,9px 3px #c88320,10px 3px #5f3512,
    3px 4px #c88320,4px 4px #c88320,5px 4px #2a2a2a,6px 4px #2a2a2a,7px 4px #2a2a2a,8px 4px #2a2a2a,9px 4px #c88320,10px 4px #c88320,11px 4px #c88320,
    2px 5px #a86d1a,3px 5px #2a2a2a,4px 5px #2a2a2a,5px 5px #3c3c3c,6px 5px #3c3c3c,7px 5px #3c3c3c,8px 5px #3c3c3c,9px 5px #2a2a2a,10px 5px #2a2a2a,11px 5px #a86d1a,
    1px 6px #a86d1a,2px 6px #a86d1a,3px 6px #3c3c3c,4px 6px #3c3c3c,5px 6px #d4a13a,6px 6px #d4a13a,7px 6px #d4a13a,8px 6px #3c3c3c,9px 6px #3c3c3c,10px 6px #a86d1a,
    0px 7px #705018,1px 7px #a86d1a,2px 7px #705018,4px 7px #d4a13a,5px 7px #d4a13a,6px 7px #d4a13a,7px 7px #d4a13a,8px 7px #d4a13a,10px 7px #705018,
    4px 8px #4d2d12,5px 8px #4d2d12,7px 8px #4d2d12,8px 8px #4d2d12,
    4px 9px #4d2d12,5px 9px #4d2d12,7px 9px #4d2d12,8px 9px #4d2d12,
    3px 10px #2b1a0b,4px 10px #2b1a0b,5px 10px #2b1a0b,7px 10px #2b1a0b,8px 10px #2b1a0b,9px 10px #2b1a0b;
  animation: rgHammerBob 1.1s steps(2, end) infinite;
}
.rg-pixel-blacksmith::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 10px;
  left: -3px;
  top: 2px;
  background: #555;
  box-shadow: -1px -2px #aaa, -2px -2px #aaa, -3px -2px #777, 0 -2px #777;
  transform-origin: 8px 9px;
  animation: rgHammerSwing .55s steps(2, end) infinite;
}
.rg-anvil {
  left: 38%;
  bottom: 86px;
  width: 16px;
  height: 10px;
  transform: scale(5);
  background: #242424;
  box-shadow: 2px 0 #464646, 4px 0 #464646, 6px 0 #464646, 8px 0 #464646, 10px 0 #242424, 12px 0 #111,
              3px 2px #333,4px 2px #555,5px 2px #555,6px 2px #555,7px 2px #555,8px 2px #333,
              5px 4px #222,6px 4px #222,7px 4px #222,
              4px 6px #111,5px 6px #111,6px 6px #111,7px 6px #111,8px 6px #111;
}
.rg-pixel-alchemist {
  left: 65%;
  bottom: 106px;
  width: 16px;
  height: 16px;
  transform: scale(5.7);
  transform-origin: bottom left;
  box-shadow:
    6px 0 #fff0bb,7px 0 #fff0bb,8px 0 #fff0bb,
    5px 1px #774b13,6px 1px #fff0bb,7px 1px #fff0bb,8px 1px #fff0bb,9px 1px #774b13,
    5px 2px #774b13,6px 2px #f1c27d,7px 2px #111,8px 2px #f1c27d,9px 2px #774b13,
    4px 3px #e7e0bd,5px 3px #e7e0bd,6px 3px #e7e0bd,7px 3px #e7e0bd,8px 3px #e7e0bd,9px 3px #e7e0bd,10px 3px #e7e0bd,
    3px 4px #284a2b,4px 4px #e7e0bd,5px 4px #39733d,6px 4px #39733d,7px 4px #39733d,8px 4px #39733d,9px 4px #e7e0bd,10px 4px #284a2b,
    2px 5px #284a2b,3px 5px #39733d,4px 5px #39733d,5px 5px #e7e0bd,6px 5px #e7e0bd,7px 5px #e7e0bd,8px 5px #39733d,9px 5px #39733d,10px 5px #284a2b,
    2px 6px #39733d,3px 6px #39733d,4px 6px #e7e0bd,5px 6px #f7c84b,6px 6px #f7c84b,7px 6px #e7e0bd,8px 6px #39733d,9px 6px #39733d,
    3px 7px #284a2b,4px 7px #284a2b,5px 7px #e7e0bd,6px 7px #e7e0bd,7px 7px #284a2b,8px 7px #284a2b,
    4px 8px #2b1a0b,5px 8px #2b1a0b,7px 8px #2b1a0b,8px 8px #2b1a0b,
    4px 9px #2b1a0b,5px 9px #2b1a0b,7px 9px #2b1a0b,8px 9px #2b1a0b,
    3px 10px #111,4px 10px #111,5px 10px #111,7px 10px #111,8px 10px #111,9px 10px #111;
  animation: rgPotionBob 1.4s steps(2, end) infinite;
}
.rg-potion {
  left: 58%;
  bottom: 96px;
  width: 8px;
  height: 12px;
  transform: scale(5);
  background: #c8f7ff;
  box-shadow: 1px -2px #fff,2px -2px #fff,1px 1px var(--rg-blue),2px 1px var(--rg-blue),3px 1px var(--rg-blue),1px 2px var(--rg-purple),2px 2px var(--rg-purple),3px 2px var(--rg-purple),0 3px #ffe8a0,1px 3px #ffe8a0,2px 3px #ffe8a0,3px 3px #ffe8a0,4px 3px #ffe8a0;
  animation: rgPotionGlow 1.8s ease-in-out infinite;
}
.rg-pixel-poring {
  right: 14%;
  bottom: 93px;
  width: 12px;
  height: 9px;
  transform: scale(5.2);
  border-radius: 50% 50% 45% 45%;
  background: #e4b85b;
  box-shadow: inset -3px -2px #a4681c, 0 0 0 1px #211306, 0 -2px #ffe9a1;
  animation: rgPoringHop .9s ease-in-out infinite;
}
.rg-pixel-poring::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  left: 3px;
  top: 4px;
  background: #101010;
  box-shadow: 5px 0 #101010, 2px 2px #7a2d1b, 3px 2px #7a2d1b;
}

.rg-floating-card {
  position: absolute;
  z-index: 4;
  min-width: 128px;
  padding: 14px 16px;
  border: 2px solid rgba(247,200,75,.52);
  background: rgba(6, 5, 3, .80);
  box-shadow: 0 0 28px rgba(247,200,75,.18);
  font-family: "Press Start 2P", monospace;
  color: var(--rg-muted);
  font-size: 9px;
  text-transform: uppercase;
  animation: rgFloat 3s ease-in-out infinite;
}
.rg-floating-card strong { display: block; margin-top: 7px; color: var(--rg-gold-soft); font-size: 18px; }
.rg-card-a { left: 22px; top: 26px; }
.rg-card-b { right: 22px; top: 74px; animation-delay: -.8s; }
.rg-card-c { left: 34px; bottom: 126px; animation-delay: -1.4s; }
.rg-card-d { right: 28px; bottom: 156px; animation-delay: -2s; }

.rg-stats,
.rg-rank-grid,
.rg-craft-grid {
  display: grid;
  gap: 18px;
}
.rg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; }
.rg-stat,
.rg-panel {
  position: relative;
  border: 2px solid rgba(247,200,75,.34);
  background: linear-gradient(180deg, rgba(23, 17, 8, .92), rgba(6, 5, 3, .92));
  box-shadow: var(--rg-shadow);
  overflow: hidden;
  clip-path: polygon(0 14px,14px 14px,14px 0,calc(100% - 14px) 0,calc(100% - 14px) 14px,100% 14px,100% calc(100% - 14px),calc(100% - 14px) calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,14px calc(100% - 14px),0 calc(100% - 14px));
}
.rg-stat::before,
.rg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 0%, rgba(247,200,75,.12), transparent 13rem), repeating-linear-gradient(90deg, transparent 0 26px, rgba(247,200,75,.035) 26px 28px);
}
.rg-stat { padding: 20px; min-height: 132px; }
.rg-stat span { display: block; font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--rg-muted); text-transform: uppercase; }
.rg-stat strong { display: block; margin: 10px 0 5px; font-family: Cinzel, serif; font-size: 38px; color: var(--rg-gold-soft); text-shadow: 3px 3px 0 #000; }
.rg-stat small { color: var(--rg-muted); font-size: 16px; }

.rg-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.rg-craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.rg-panel { padding: 22px; }
.rg-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rg-panel-head h2 { margin: 7px 0 0; font-family: Cinzel, serif; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; }
.rg-panel-head a { color: var(--rg-gold-soft); font-weight: 800; }
.rg-panel-head a:hover { color: #fff; }

.rg-rank-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-rank-list li {
  display: grid;
  grid-template-columns: auto 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(247,200,75,.20);
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 -4px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.rg-rank-list li:hover { transform: translateX(5px); border-color: rgba(247,200,75,.62); background: rgba(247,200,75,.08); }
.rg-rank-number {
  display: inline-flex;
  min-width: 46px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rg-gold-dark);
  background: linear-gradient(180deg, rgba(247,200,75,.18), rgba(0,0,0,.38));
  color: var(--rg-gold-soft);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}
.rg-avatar,
.rg-coin,
.rg-smith-icon,
.rg-alche-icon { width: 34px; height: 34px; image-rendering: pixelated; }
.rg-avatar { background: linear-gradient(#ffe1a6 0 40%, #7c4a1a 40% 62%, #34436b 62%); box-shadow: inset -7px -5px rgba(0,0,0,.25), 0 0 0 3px #080603, 0 0 0 5px rgba(247,200,75,.45); border-radius: 50% 50% 34% 34%; }
.rg-coin { border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff6be, var(--rg-gold) 42%, var(--rg-gold-dark) 72%); box-shadow: 0 0 0 3px #080603, 0 0 0 5px rgba(247,200,75,.4), 0 0 18px rgba(247,200,75,.3); }
.rg-smith-icon { background: #555; clip-path: polygon(10% 10%,70% 10%,70% 26%,100% 26%,100% 50%,72% 50%,72% 90%,28% 90%,28% 50%,0 50%,0 26%,28% 26%,28% 10%); box-shadow: 0 0 0 3px #080603, 0 0 0 5px rgba(247,200,75,.42); }
.rg-alche-icon { background: linear-gradient(#fff 0 20%, #83dfff 20% 44%, #b28cff 44% 66%, #ffe8a0 66%); clip-path: polygon(32% 0,68% 0,68% 18%,58% 18%,58% 34%,82% 78%,72% 100%,28% 100%,18% 78%,42% 34%,42% 18%,32% 18%); box-shadow: 0 0 0 3px #080603, 0 0 0 5px rgba(247,200,75,.42); }
.rg-rank-main strong { display: block; color: #fff8d8; font-size: 18px; }
.rg-rank-main small { display: block; margin-top: 3px; color: var(--rg-muted); font-size: 14px; }
.rg-rank-score { color: var(--rg-gold-soft); font-family: "Press Start 2P", monospace; font-size: 10px; text-align: right; text-shadow: 2px 2px 0 #000; }
.rg-gold-text { color: var(--rg-gold-soft); }
.rg-fame-text { color: #fff1b8; }

.rg-page-title { padding: 36px 0 18px; }
.rg-page-title h1 { max-width: 980px; }
.rg-table-panel { margin-top: 18px; }
.rg-table-wrap { position: relative; z-index: 1; overflow-x: auto; }
.rg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(0,0,0,.18);
}
.rg-table th,
.rg-table td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(247,200,75,.18);
  text-align: left;
}
.rg-table th {
  color: var(--rg-gold-soft);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  text-transform: uppercase;
  background: rgba(247,200,75,.08);
}
.rg-table td { color: var(--rg-text); font-size: 16px; }
.rg-table tr:hover td { background: rgba(247,200,75,.055); }
.rg-empty { position: relative; z-index: 1; color: var(--rg-muted); font-size: 18px; }
.rg-board-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.rg-board-links a { min-width: auto; }
.rg-filter { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.rg-filter label { color: var(--rg-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.rg-filter select { min-height: 38px; cursor: pointer; }

.rg-news-shell { margin-top: 18px; }
.rg-news-content { position: relative; z-index: 1; display: grid; gap: 14px; }
.rg-news-item { padding: 16px; border: 1px solid rgba(247,200,75,.22); background: rgba(0,0,0,.24); }
.rg-news-item h3 { margin: 0 0 6px; color: #fff6cf; font-family: Cinzel, serif; font-size: 24px; }
.rg-news-meta { margin: 0 0 10px; color: var(--rg-muted); font-size: 14px; }

.rg-sidebar-panel { display: grid; gap: 8px; padding: 16px; border: 2px solid rgba(247,200,75,.34); background: rgba(8,6,3,.92); box-shadow: var(--rg-shadow); }
.rg-sidebar-panel h3 { margin: 0 0 8px; color: var(--rg-gold-soft); font-family: Cinzel, serif; text-transform: uppercase; }
.rg-sidebar-panel a { padding: 10px 12px; border: 1px solid rgba(247,200,75,.2); background: rgba(0,0,0,.24); }
.rg-sidebar-panel a:hover { border-color: rgba(247,200,75,.58); color: var(--rg-gold-soft); }

.rg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 26px;
  color: var(--rg-muted);
}
.rg-footer-card { display: flex; align-items: center; gap: 10px; }
.rg-footer-card p { margin: 0; }
.rg-footer a { color: var(--rg-gold-soft); }
.rg-footer-glyph { color: var(--rg-gold); text-shadow: 0 0 16px var(--rg-gold); }
.rg-theme-switch { display: flex; align-items: center; gap: 8px; }
.rg-theme-switch label { color: var(--rg-muted); font-weight: 800; }
.rg-theme-switch select { min-height: 34px; padding: 8px; }

@keyframes rgMapDrift { to { background-position: 34px 34px, 34px 34px, 96px 96px; } }
@keyframes rgRuneFloat { to { transform: translateY(-18px) rotate(4deg); opacity: .14; } }
@keyframes rgEmperium { 50% { filter: brightness(1.18); transform: translateY(-1px); } }
@keyframes rgBlink { 50% { opacity: .35; } }
@keyframes rgSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rgGlitch { 0%, 90%, 100% { transform: translate(0); } 92% { transform: translate(4px,-2px); } 94% { transform: translate(-3px,2px); } 96% { transform: translate(2px,1px); } }
@keyframes rgCrystalHover { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-12px); filter: brightness(1.14); } }
@keyframes rgBarPulse { 50% { filter: brightness(1.25); } }
@keyframes rgHammerBob { 50% { transform: scale(6) translateY(-1px); } }
@keyframes rgHammerSwing { 50% { transform: rotate(-28deg); } }
@keyframes rgPotionBob { 50% { transform: scale(5.7) translateY(-2px); } }
@keyframes rgPotionGlow { 50% { filter: brightness(1.4); transform: scale(5) translateY(-4px); } }
@keyframes rgPoringHop { 0%,100% { transform: scale(5.2) translateY(0); } 50% { transform: scale(5.2) translateY(-10px); } }
@keyframes rgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 1060px) {
  .rg-nav-toggle { display: inline-flex; }
  .rg-nav { display: none; width: 100%; flex-basis: 100%; justify-content: stretch; }
  .rg-header { flex-wrap: wrap; }
  .rg-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-hero { grid-template-columns: 1fr; min-height: auto; }
  .rg-hero-stage { min-height: 480px; }
  .rg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rg-rank-grid, .rg-craft-grid { grid-template-columns: 1fr; }
  .rg-panel-head { flex-direction: column; }
  .rg-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .rg-shell, .rg-header, .rg-alert, .rg-footer { width: min(100% - 20px, 1220px); }
  .rg-nav.is-open { grid-template-columns: 1fr; }
  .rg-brand { min-width: 0; }
  .rg-brand strong { font-size: 15px; }
  .rg-brand small { font-size: 9px; }
  .rg-hero h1, .rg-page-title h1 { font-size: 38px; }
  .rg-hero p, .rg-page-title p { font-size: 18px; }
  .rg-stats { grid-template-columns: 1fr; }
  .rg-rank-list li { grid-template-columns: auto 34px minmax(0, 1fr); }
  .rg-rank-score { grid-column: 3; text-align: left; }
  .rg-pixel-blacksmith { transform: scale(4.7); left: 18%; }
  .rg-pixel-alchemist { transform: scale(4.5); left: 60%; }
  .rg-pixel-poring { transform: scale(4.2); }
  .rg-floating-card { display: none; }
}

/* ArkangelSEA professional alignment update */
.rg-header {
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  align-items: center;
}
.rg-nav { justify-self: end; }
.rg-hero-polished {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
}
.rg-hero-copy { max-width: 760px; }
.rg-server-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.rg-server-overview span {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 14px 12px;
  border: 1px solid rgba(247,200,75,.32);
  background: linear-gradient(180deg, rgba(247,200,75,.105), rgba(0,0,0,.24));
  box-shadow: inset 0 -4px rgba(0,0,0,.22);
}
.rg-server-overview strong {
  display: block;
  color: var(--rg-gold-soft);
  font-family: Cinzel, serif;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}
.rg-server-overview small {
  display: block;
  margin-top: 6px;
  color: var(--rg-muted);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.45;
  text-transform: uppercase;
}
.rg-actions-pro,
.rg-social-actions,
.rg-board-links-centered {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.rg-actions-pro .rg-button,
.rg-social-actions .rg-social-button,
.rg-board-links-centered .rg-button { width: 100%; min-width: 0; }
.rg-social-actions { margin-top: 12px; }
.rg-social-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 13px;
  border: 2px solid rgba(247,200,75,.72);
  background: linear-gradient(180deg, rgba(26, 17, 5, .94), rgba(4, 4, 3, .96));
  color: #fff4cf;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 -5px rgba(0,0,0,.42), 0 0 18px rgba(247,200,75,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rg-social-button:hover {
  transform: translateY(-3px);
  border-color: var(--rg-gold-soft);
  box-shadow: inset 0 -5px rgba(0,0,0,.42), 0 0 26px rgba(247,200,75,.32);
}
.rg-social-rms { background: linear-gradient(135deg, rgba(247,200,75,.22), rgba(0,0,0,.92)); }
.rg-social-discord { background: linear-gradient(135deg, rgba(128,216,255,.18), rgba(0,0,0,.92)); }
.rg-social-facebook { background: linear-gradient(135deg, rgba(178,140,255,.16), rgba(0,0,0,.92)); }
.rg-stat-grid { align-items: stretch; }
.rg-stat-grid .rg-stat {
  display: grid;
  align-content: center;
  min-height: 148px;
}
.rg-grid-polished .rg-panel { min-height: 100%; }
.rg-grid-polished .rg-rank-list li { min-height: 74px; }
.rg-board-links-centered { margin: 22px 0; }
.rg-board-links-centered .rg-button { min-height: 48px; }

@media (max-width: 1060px) {
  .rg-header { display: flex; }
  .rg-hero-polished { grid-template-columns: 1fr; }
  .rg-server-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rg-actions-pro,
  .rg-social-actions,
  .rg-board-links-centered { grid-template-columns: 1fr; }
  .rg-server-overview { grid-template-columns: 1fr; }
}

.rg-status-group { position: relative; z-index: 1; margin-top: 16px; }
.rg-status-group h3 { margin: 0 0 10px; color: var(--rg-gold-soft); font-family: Cinzel, serif; font-size: 24px; text-transform: uppercase; }
.rg-status-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 7px 9px; border: 1px solid rgba(247,200,75,.28); font-family: "Press Start 2P", monospace; font-size: 8px; text-transform: uppercase; }
.rg-status-badge.is-online { color: #dfffd2; background: rgba(131,192,107,.14); border-color: rgba(131,192,107,.5); }
.rg-status-badge.is-offline { color: #ffd0ca; background: rgba(143,41,32,.16); border-color: rgba(143,41,32,.55); }


/* ArkangelSEA champion strip update */
.rg-champion-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 22px;
}
.rg-champion-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: 158px;
  padding: 24px 18px;
}
.rg-champion-card span {
  max-width: 100%;
  color: var(--rg-gold);
  line-height: 1.65;
  letter-spacing: .04em;
}
.rg-champion-card strong {
  width: 100%;
  margin: 13px 0 7px;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.04;
  word-break: break-word;
}
.rg-champion-card small {
  max-width: 270px;
  margin: 0 auto;
  line-height: 1.35;
}
.rg-champion-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 70px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--rg-gold-soft), transparent);
  opacity: .75;
}
@media (max-width: 1060px) {
  .rg-champion-strip { grid-template-columns: 1fr; }
}


/* Agit Lord Season 2 redesign + professional alignment */

.rg-hero-polished {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  gap: 32px;
  align-items: center;
}
.rg-hero-copy,
.rg-panel,
.rg-stat,
.rg-video-panel,
.rg-champion-card { text-align: left; }
.rg-hero-stage.rg-agit-stage {
  min-height: 620px;
  display: block;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,233,161,.20), transparent 12rem),
    radial-gradient(circle at 50% 70%, rgba(247,200,75,.14), transparent 18rem),
    linear-gradient(180deg, rgba(16,12,6,.96), rgba(5,4,2,.98));
}
.rg-agit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 66%, rgba(0,0,0,.58)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(247,200,75,.08) 28px 30px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(247,200,75,.05) 26px 28px);
}
.rg-stage-glow {
  position: absolute;
  inset: 11% 16% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,200,75,.28), rgba(247,200,75,.06) 40%, transparent 68%);
  filter: blur(8px);
  animation: rgPulseGlow 3s ease-in-out infinite;
}
.rg-stage-banner {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 460px);
  padding: 18px 22px 16px;
  text-align: center;
  border: 2px solid rgba(247,200,75,.55);
  background: linear-gradient(180deg, rgba(24,18,8,.94), rgba(8,6,3,.90));
  box-shadow: 0 0 36px rgba(247,200,75,.18), inset 0 -6px rgba(0,0,0,.26);
}
.rg-stage-banner::before,
.rg-stage-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rg-gold-soft));
}
.rg-stage-banner::before { left: -34px; }
.rg-stage-banner::after { right: -34px; transform: scaleX(-1); }
.rg-stage-banner span,
.rg-stage-banner small {
  display: block;
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}
.rg-stage-banner span {
  color: var(--rg-gold);
  font-size: 9px;
  letter-spacing: .08em;
}
.rg-stage-banner strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(247,200,75,.22);
}
.rg-stage-banner small {
  color: var(--rg-muted);
  font-size: 8px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.rg-stage-ornament {
  position: absolute;
  z-index: 1;
  top: 108px;
  bottom: 120px;
  width: 52px;
  border: 2px solid rgba(247,200,75,.24);
  background: linear-gradient(180deg, rgba(247,200,75,.10), rgba(0,0,0,0));
  opacity: .75;
}
.rg-stage-ornament-left { left: 24px; }
.rg-stage-ornament-right { right: 24px; }
.rg-stage-castle {
  position: absolute;
  z-index: 2;
  bottom: 110px;
  width: 110px;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(245,220,163,.18), rgba(65,46,14,.55)),
    linear-gradient(90deg, #130d05 0 18%, #2b1c08 18% 32%, #1d1406 32% 100%);
  box-shadow: inset -16px 0 rgba(0,0,0,.28), 0 0 0 3px rgba(247,200,75,.20);
  clip-path: polygon(0 100%,0 18%,14% 18%,14% 0,32% 0,32% 18%,48% 18%,48% 6%,66% 6%,66% 18%,82% 18%,82% 0,100% 0,100% 100%);
  opacity: .68;
}
.rg-stage-castle::after {
  content: "";
  position: absolute;
  left: 38%;
  bottom: 0;
  width: 24%;
  height: 38%;
  background: rgba(0,0,0,.48);
}
.rg-stage-castle-left { left: 52px; }
.rg-stage-castle-right { right: 52px; transform: scaleX(-1); }
.rg-emperium-crystal-xl {
  top: 180px;
  width: 148px;
  height: 208px;
  box-shadow: 0 0 0 8px rgba(0,0,0,.45), 0 0 80px rgba(247,200,75,.75);
}
.rg-emperium-crystal-xl::before {
  inset: 24px 42px 70px 28px;
}
.rg-emperium-pedestal {
  position: absolute;
  left: 50%;
  bottom: 106px;
  transform: translateX(-50%);
  width: 220px;
  height: 74px;
  z-index: 2;
  background: linear-gradient(180deg, #614015, #2a1a08 48%, #140d04 100%);
  box-shadow: inset 0 10px rgba(255,236,182,.12), inset 0 -10px rgba(0,0,0,.30), 0 0 0 3px rgba(247,200,75,.24);
  clip-path: polygon(8% 100%,0 36%,14% 36%,20% 0,80% 0,86% 36%,100% 36%,92% 100%);
}
.rg-emperium-sigil {
  position: absolute;
  left: 50%;
  top: 244px;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(247,200,75,.24);
  box-shadow: 0 0 0 14px rgba(247,200,75,.05), inset 0 0 60px rgba(247,200,75,.05);
}
.rg-emperium-sigil::before,
.rg-emperium-sigil::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(247,200,75,.22);
}
.rg-emperium-sigil::after {
  inset: 60px;
  border-style: solid;
  opacity: .5;
}
.rg-emperium-shard {
  position: absolute;
  z-index: 4;
  top: 238px;
  width: 44px;
  height: 64px;
  background: linear-gradient(180deg, #fff7d1, var(--rg-gold) 50%, var(--rg-gold-dark));
  clip-path: polygon(50% 0, 100% 34%, 68% 100%, 0 52%);
  box-shadow: 0 0 24px rgba(247,200,75,.42);
  animation: rgShardFloat 2.6s ease-in-out infinite;
}
.rg-shard-left { left: 28%; transform: rotate(-18deg); }
.rg-shard-right { right: 28%; transform: rotate(18deg); animation-delay: -.8s; }
.rg-agit-stage .rg-prontera-skyline {
  left: 8%;
  right: 8%;
  bottom: 118px;
  height: 126px;
  opacity: .28;
}
.rg-agit-stage .rg-cast-label {
  left: 50%;
  transform: translateX(-50%);
  bottom: 82px;
  padding: 0 12px;
  white-space: nowrap;
}
.rg-agit-stage .rg-exp-bar,
.rg-agit-stage .rg-cast-bar {
  left: 56px;
  right: 56px;
}
.rg-video-panel {
  margin-top: 22px;
}
.rg-video-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px solid rgba(247,200,75,.30);
  background: #050402;
  box-shadow: inset 0 0 0 1px rgba(247,200,75,.12), 0 0 28px rgba(247,200,75,.10);
}
.rg-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(247,200,75,.44);
  background: rgba(0,0,0,.74);
  color: var(--rg-gold-soft);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-transform: uppercase;
}
.rg-intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}
.rg-video-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--rg-muted);
  font-size: 15px;
  line-height: 1.5;
}
.rg-video-note code {
  color: #fff0bc;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
}
.rg-champion-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rg-champion-card {
  min-height: 172px;
  padding: 28px 20px;
}
.rg-board-links-centered {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rg-rank-grid,
.rg-craft-grid { gap: 22px; }
.rg-rank-list li { min-height: 78px; }
@keyframes rgPulseGlow { 0%,100% { opacity: .62; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rgShardFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; filter: brightness(1.14); } }
@media (max-width: 1180px) {
  .rg-board-links-centered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .rg-hero-stage.rg-agit-stage { min-height: 560px; }
  .rg-stage-banner { width: min(90%, 440px); }
  .rg-stage-castle-left { left: 24px; }
  .rg-stage-castle-right { right: 24px; }
}
@media (max-width: 760px) {
  .rg-stage-banner strong { font-size: 34px; }
  .rg-stage-banner::before,
  .rg-stage-banner::after,
  .rg-stage-castle { display: none; }
  .rg-agit-stage .rg-exp-bar,
  .rg-agit-stage .rg-cast-bar { left: 24px; right: 24px; }
}
@media (max-width: 560px) {
  .rg-hero-stage.rg-agit-stage { min-height: 500px; }
  .rg-stage-banner { top: 18px; padding: 14px 14px 12px; }
  .rg-stage-banner strong { font-size: 28px; }
  .rg-emperium-crystal-xl { top: 176px; width: 114px; height: 158px; }
  .rg-emperium-pedestal { width: 170px; }
  .rg-emperium-sigil { width: 220px; height: 220px; top: 232px; }
  .rg-stage-ornament { display: none; }
}


/* ArkangelSEA Agit Lord Season 2 final polish */
.rg-hero-polished {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 570px);
  gap: 34px;
  align-items: center;
}
.rg-hero-copy {
  max-width: 760px;
}
.rg-hero-stage.rg-agit-stage {
  min-height: 640px;
  display: block;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,236,182,.22), transparent 12rem),
    radial-gradient(circle at 50% 68%, rgba(247,200,75,.18), transparent 20rem),
    linear-gradient(180deg, rgba(17,12,5,.98), rgba(5,4,2,.98));
}
.rg-agit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 66%, rgba(0,0,0,.60)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(247,200,75,.08) 28px 30px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(247,200,75,.05) 26px 28px);
  animation: rgMapDrift 12s linear infinite;
}
.rg-stage-glow {
  position: absolute;
  inset: 10% 14% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,200,75,.32), rgba(247,200,75,.07) 42%, transparent 70%);
  filter: blur(8px);
  animation: rgPulseGlow 3s ease-in-out infinite;
}
.rg-stage-banner {
  position: absolute;
  z-index: 6;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 470px);
  padding: 18px 22px 16px;
  text-align: center;
  border: 2px solid rgba(247,200,75,.60);
  background: linear-gradient(180deg, rgba(24,18,8,.96), rgba(8,6,3,.93));
  box-shadow: 0 0 36px rgba(247,200,75,.22), inset 0 -6px rgba(0,0,0,.26);
}
.rg-stage-banner::before,
.rg-stage-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rg-gold-soft));
}
.rg-stage-banner::before { left: -34px; }
.rg-stage-banner::after { right: -34px; transform: scaleX(-1); }
.rg-stage-banner span,
.rg-stage-banner small {
  display: block;
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}
.rg-stage-banner span {
  color: var(--rg-gold);
  font-size: 9px;
  letter-spacing: .08em;
}
.rg-stage-banner strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(247,200,75,.28);
}
.rg-stage-banner small {
  color: var(--rg-muted);
  font-size: 8px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.rg-stage-ornament {
  position: absolute;
  z-index: 1;
  top: 108px;
  bottom: 122px;
  width: 52px;
  border: 2px solid rgba(247,200,75,.24);
  background: linear-gradient(180deg, rgba(247,200,75,.10), rgba(0,0,0,0));
  opacity: .75;
}
.rg-stage-ornament-left { left: 24px; }
.rg-stage-ornament-right { right: 24px; }
.rg-stage-castle {
  position: absolute;
  z-index: 2;
  bottom: 112px;
  width: 112px;
  height: 172px;
  background:
    linear-gradient(180deg, rgba(245,220,163,.18), rgba(65,46,14,.58)),
    linear-gradient(90deg, #130d05 0 18%, #2b1c08 18% 32%, #1d1406 32% 100%);
  box-shadow: inset -16px 0 rgba(0,0,0,.28), 0 0 0 3px rgba(247,200,75,.20);
  clip-path: polygon(0 100%,0 18%,14% 18%,14% 0,32% 0,32% 18%,48% 18%,48% 6%,66% 6%,66% 18%,82% 18%,82% 0,100% 0,100% 100%);
  opacity: .68;
}
.rg-stage-castle::after {
  content: "";
  position: absolute;
  left: 38%;
  bottom: 0;
  width: 24%;
  height: 38%;
  background: rgba(0,0,0,.48);
}
.rg-stage-castle-left { left: 50px; }
.rg-stage-castle-right { right: 50px; transform: scaleX(-1); }
.rg-emperium-crystal-xl {
  top: 182px;
  width: 154px;
  height: 216px;
  z-index: 5;
  box-shadow: 0 0 0 8px rgba(0,0,0,.45), 0 0 84px rgba(247,200,75,.78);
}
.rg-emperium-crystal-xl::before {
  inset: 24px 42px 70px 28px;
}
.rg-emperium-pedestal {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  width: 228px;
  height: 76px;
  z-index: 3;
  background: linear-gradient(180deg, #614015, #2a1a08 48%, #140d04 100%);
  box-shadow: inset 0 10px rgba(255,236,182,.12), inset 0 -10px rgba(0,0,0,.30), 0 0 0 3px rgba(247,200,75,.24);
  clip-path: polygon(8% 100%,0 36%,14% 36%,20% 0,80% 0,86% 36%,100% 36%,92% 100%);
}
.rg-emperium-sigil {
  position: absolute;
  left: 50%;
  top: 244px;
  width: 286px;
  height: 286px;
  transform: translateX(-50%);
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(247,200,75,.25);
  box-shadow: 0 0 0 14px rgba(247,200,75,.05), inset 0 0 60px rgba(247,200,75,.05);
}
.rg-emperium-sigil::before,
.rg-emperium-sigil::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(247,200,75,.24);
}
.rg-emperium-sigil::after {
  inset: 60px;
  border-style: solid;
  opacity: .52;
}
.rg-emperium-shard {
  position: absolute;
  z-index: 4;
  top: 242px;
  width: 44px;
  height: 64px;
  background: linear-gradient(180deg, #fff7d1, var(--rg-gold) 50%, var(--rg-gold-dark));
  clip-path: polygon(50% 0, 100% 34%, 68% 100%, 0 52%);
  box-shadow: 0 0 24px rgba(247,200,75,.42);
  animation: rgShardFloat 2.6s ease-in-out infinite;
}
.rg-shard-left { left: 28%; transform: rotate(-18deg); }
.rg-shard-right { right: 28%; transform: rotate(18deg); animation-delay: -.8s; }
.rg-agit-stage .rg-prontera-skyline {
  left: 8%;
  right: 8%;
  bottom: 120px;
  height: 128px;
  opacity: .28;
}
.rg-agit-stage .rg-cast-label {
  left: 50%;
  transform: translateX(-50%);
  bottom: 84px;
  padding: 0 12px;
  white-space: nowrap;
  text-align: center;
}
.rg-agit-stage .rg-exp-bar,
.rg-agit-stage .rg-cast-bar {
  left: 56px;
  right: 56px;
}
.rg-video-panel {
  margin-top: 24px;
  padding: 24px;
}
.rg-youtube-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px solid rgba(247,200,75,.32);
  background: #050402;
  box-shadow: inset 0 0 0 1px rgba(247,200,75,.12), 0 0 28px rgba(247,200,75,.12);
}
.rg-youtube-shell::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.rg-youtube-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rg-youtube-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--rg-muted);
}
.rg-youtube-missing strong {
  color: var(--rg-gold-soft);
  font-family: Cinzel, serif;
  font-size: 28px;
  text-transform: uppercase;
}
.rg-video-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--rg-muted);
  font-size: 15px;
  line-height: 1.5;
}
.rg-video-note code,
.rg-youtube-missing code {
  color: #fff0bc;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
}
.rg-champion-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rg-champion-card {
  min-height: 172px;
  padding: 28px 20px;
  text-align: center;
}
.rg-board-links-centered {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rg-rank-grid,
.rg-craft-grid { gap: 22px; }
.rg-rank-list li { min-height: 78px; }

@keyframes rgPulseGlow {
  0%,100% { opacity: .62; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes rgShardFloat {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -10px; filter: brightness(1.14); }
}

@media (max-width: 1180px) {
  .rg-board-links-centered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .rg-hero-polished { grid-template-columns: 1fr; }
  .rg-hero-stage.rg-agit-stage { min-height: 560px; }
  .rg-stage-banner { width: min(90%, 440px); }
  .rg-stage-castle-left { left: 24px; }
  .rg-stage-castle-right { right: 24px; }
}
@media (max-width: 760px) {
  .rg-stage-banner strong { font-size: 34px; }
  .rg-stage-banner::before,
  .rg-stage-banner::after,
  .rg-stage-castle { display: none; }
  .rg-agit-stage .rg-exp-bar,
  .rg-agit-stage .rg-cast-bar { left: 24px; right: 24px; }
  .rg-champion-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rg-hero-stage.rg-agit-stage { min-height: 500px; }
  .rg-stage-banner { top: 18px; padding: 14px 14px 12px; }
  .rg-stage-banner strong { font-size: 28px; }
  .rg-emperium-crystal-xl { top: 176px; width: 114px; height: 158px; }
  .rg-emperium-pedestal { width: 170px; }
  .rg-emperium-sigil { width: 220px; height: 220px; top: 232px; }
  .rg-stage-ornament { display: none; }
}


/* Champion character lookup cards */
.rg-character-champions {
  align-items: stretch;
}
.rg-character-card {
  justify-items: stretch;
  text-align: left;
  min-height: 230px;
  padding: 22px;
}
.rg-character-card > span {
  text-align: center;
  color: var(--rg-gold);
  line-height: 1.55;
}
.rg-character-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  margin-top: 16px;
}
.rg-character-avatar {
  position: relative;
  width: 112px;
  height: 142px;
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 12px rgba(0,0,0,.35));
}
.rg-character-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 94px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,200,75,.45), rgba(0,0,0,.12) 62%, transparent 70%);
}
.rg-character-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 48% 48% 42% 42%;
  background: #f1c27d;
  box-shadow:
    inset -10px -4px rgba(0,0,0,.18),
    0 -12px 0 2px #6b4217,
    12px -6px 0 #6b4217,
    -12px -6px 0 #6b4217;
}
.rg-character-avatar i {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 74px;
  height: 78px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e0d8bd 0 18%, #4b4b4b 18% 58%, #242424 58% 100%);
  clip-path: polygon(25% 0,75% 0,94% 30%,82% 100%,18% 100%,6% 30%);
  box-shadow:
    inset -14px -10px rgba(0,0,0,.26),
    0 0 0 3px rgba(0,0,0,.35);
}
.rg-job-swordman i { background: linear-gradient(180deg, #f0d7a0 0 16%, #455a8d 16% 56%, #1f2a50 56% 100%); }
.rg-job-mage i { background: linear-gradient(180deg, #efe6bd 0 16%, #5a3f93 16% 56%, #2c174e 56% 100%); }
.rg-job-archer i { background: linear-gradient(180deg, #e8d09a 0 16%, #2f7650 16% 56%, #1a3d2b 56% 100%); }
.rg-job-acolyte i { background: linear-gradient(180deg, #fff2c8 0 16%, #e3dcc2 16% 56%, #b09652 56% 100%); }
.rg-job-merchant i { background: linear-gradient(180deg, #f1c27d 0 16%, #c88125 16% 56%, #45301b 56% 100%); }
.rg-job-thief i { background: linear-gradient(180deg, #d0b18b 0 16%, #3c3c3c 16% 56%, #171717 56% 100%); }
.rg-job-novice i { background: linear-gradient(180deg, #fff1c2 0 16%, #a9a9a9 16% 56%, #494949 56% 100%); }

.rg-character-details {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.rg-character-details strong {
  margin: 0;
  color: #fff1b8;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.04;
  word-break: break-word;
}
.rg-character-details small,
.rg-character-details em,
.rg-character-details b {
  display: block;
  font-style: normal;
}
.rg-character-details small {
  color: var(--rg-muted);
  font-size: 15px;
  line-height: 1.35;
}
.rg-character-details em {
  color: var(--rg-gold-soft);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.55;
  text-transform: uppercase;
}
.rg-character-details b {
  color: #fff8d8;
  font-size: 15px;
  line-height: 1.35;
}
.rg-character-card.is-character-empty .rg-character-avatar {
  opacity: .45;
  filter: grayscale(.6) drop-shadow(0 16px 12px rgba(0,0,0,.35));
}
.rg-character-card.is-character-empty .rg-character-details strong {
  font-size: clamp(24px, 2.4vw, 36px);
}

@media (max-width: 1180px) {
  .rg-character-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rg-character-card { text-align: center; }
}
@media (max-width: 760px) {
  .rg-character-showcase {
    grid-template-columns: 112px minmax(0, 1fr);
    text-align: left;
  }
  .rg-character-card { text-align: left; }
}
@media (max-width: 520px) {
  .rg-character-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rg-character-card { text-align: center; }
}

/* Exact logo fit inside Agit Lord box */
.rg-logo-banner {
  width: 760px !important;
  height: 460px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.rg-logo-banner::before,
.rg-logo-banner::after {
  display: none !important;
}

.rg-stage-main-logo {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  background: transparent !important;
  border: none !important;

  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(0 0 24px rgba(247, 200, 75, .45));
}

/* Mobile size */
@media (max-width: 760px) {
  .rg-logo-banner {
    width: 300px !important;
    height: 135px !important;
  }
}

@media (max-width: 520px) {
  .rg-logo-banner {
    width: 240px !important;
    height: 110px !important;
  }
}

/* 8 guild logos auto-aligned row */
.rg-guild-logo-strip {
  position: relative;
  padding: 34px 0 42px;
  overflow: hidden;
}

.rg-guild-logo-row-8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(70px, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(14px, 2vw, 34px);
  width: 100%;
}

.rg-guild-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rg-guild-logo-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(72px, 7vw, 120px);
  max-height: clamp(72px, 7vw, 120px);
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(0 0 18px rgba(247, 200, 75, .30));
  transition: transform .25s ease, filter .25s ease;
}

.rg-guild-logo-item img:hover {
  transform: translateY(-5px) scale(1.06);
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(0 0 28px rgba(247, 200, 75, .55));
}

/* Tablet */
@media (max-width: 980px) {
  .rg-guild-logo-row-8 {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 22px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .rg-guild-logo-row-8 {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 18px;
  }

  .rg-guild-logo-item img {
    max-width: 82px;
    max-height: 82px;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .rg-guild-logo-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rg-guild-logo-main {
    order: -1;
    margin: 0 auto;
  }

  .rg-guild-logo-side {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .rg-guild-logo-strip {
    padding: 24px 0 30px;
  }

  .rg-guild-logo-side {
    gap: 18px;
  }

  .rg-guild-logo-item {
    flex-basis: 82px;
  }

  .rg-guild-logo-item img {
    max-width: 76px;
    max-height: 76px;
  }

  .rg-guild-logo-main {
    width: 150px;
  }
}
/* Custom header logo */
.rg-header-logo {
  display: block;
  width: 102px;
  height: 102px;
  object-fit: contain;
  background: transparent !important;
  flex: 0 0 52px;
  image-rendering: auto;
  filter:
    drop-shadow(3px 3px 0 #000)
    drop-shadow(0 0 12px rgba(247, 200, 75, .35));
}

.rg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ArkangelSEA download page */
.rg-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}

.rg-download-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 300px;
  padding: 26px;
  text-align: center;
}

.rg-download-card span {
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.rg-download-card h2 {
  margin: 0;
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: 34px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}

.rg-download-card p {
  margin: 0;
  color: var(--rg-muted);
  font-size: 17px;
  line-height: 1.5;
}

.rg-download-card .rg-button {
  margin-top: auto;
  width: 100%;
}

.rg-download-guide {
  margin-top: 22px;
  padding: 26px;
}

.rg-download-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: var(--rg-muted);
  font-size: 18px;
  line-height: 1.5;
}

.rg-download-steps li::marker {
  color: var(--rg-gold-soft);
  font-weight: 900;
}

@media (max-width: 980px) {
  .rg-download-grid {
    grid-template-columns: 1fr;
  }
}

/* Global falling gold petals - fixed version */
.rg-global-gold-petals {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.rg-global-gold-petals i {
  position: absolute;
  top: -40px;
  left: 50%;

  width: 10px;
  height: 16px;

  background:
    radial-gradient(circle at 35% 25%, #fff6c8 0 12%, transparent 14%),
    linear-gradient(135deg, #fff1a8 0%, #f7c84b 45%, #b8860b 100%);

  border-radius: 80% 20% 80% 20%;

  box-shadow:
    0 0 10px rgba(247, 200, 75, .85),
    0 0 22px rgba(247, 200, 75, .35);

  opacity: 0;
  animation-name: rgGlobalGoldPetalFallFixed;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Position + size */
.rg-global-gold-petals i:nth-child(1)  { left: 4%;  --s: .8;  animation-duration: 8s;  animation-delay: 0s; }
.rg-global-gold-petals i:nth-child(2)  { left: 10%; --s: 1;   animation-duration: 9s;  animation-delay: 1s; }
.rg-global-gold-petals i:nth-child(3)  { left: 16%; --s: .7;  animation-duration: 7s;  animation-delay: 2s; }
.rg-global-gold-petals i:nth-child(4)  { left: 22%; --s: 1.1; animation-duration: 10s; animation-delay: .5s; }
.rg-global-gold-petals i:nth-child(5)  { left: 29%; --s: .9;  animation-duration: 8s;  animation-delay: 3s; }
.rg-global-gold-petals i:nth-child(6)  { left: 35%; --s: 1.2; animation-duration: 11s; animation-delay: 1.5s; }
.rg-global-gold-petals i:nth-child(7)  { left: 42%; --s: .75; animation-duration: 9s;  animation-delay: 2.8s; }
.rg-global-gold-petals i:nth-child(8)  { left: 48%; --s: 1;   animation-duration: 8s;  animation-delay: .8s; }
.rg-global-gold-petals i:nth-child(9)  { left: 55%; --s: .85; animation-duration: 10s; animation-delay: 2.2s; }
.rg-global-gold-petals i:nth-child(10) { left: 61%; --s: 1.05;animation-duration: 9s;  animation-delay: 4s; }
.rg-global-gold-petals i:nth-child(11) { left: 67%; --s: .7;  animation-duration: 7s;  animation-delay: 1.2s; }
.rg-global-gold-petals i:nth-child(12) { left: 73%; --s: .95; animation-duration: 11s; animation-delay: 3.4s; }
.rg-global-gold-petals i:nth-child(13) { left: 79%; --s: .8;  animation-duration: 8s;  animation-delay: 2.5s; }
.rg-global-gold-petals i:nth-child(14) { left: 84%; --s: 1.1; animation-duration: 10s; animation-delay: .4s; }
.rg-global-gold-petals i:nth-child(15) { left: 89%; --s: .75; animation-duration: 9s;  animation-delay: 3.2s; }
.rg-global-gold-petals i:nth-child(16) { left: 94%; --s: 1;   animation-duration: 12s; animation-delay: 1.8s; }
.rg-global-gold-petals i:nth-child(17) { left: 98%; --s: .9;  animation-duration: 8s;  animation-delay: 4.4s; }
.rg-global-gold-petals i:nth-child(18) { left: 52%; --s: 1.15;animation-duration: 13s; animation-delay: 5s; }

@keyframes rgGlobalGoldPetalFallFixed {
  0% {
    opacity: 0;
    transform: translate3d(0, -40px, 0) rotate(0deg) scale(var(--s));
  }

  10% {
    opacity: 1;
  }

  45% {
    transform: translate3d(35px, 45vh, 0) rotate(180deg) scale(var(--s));
  }

  80% {
    opacity: .85;
  }

  100% {
    opacity: 0;
    transform: translate3d(-35px, 110vh, 0) rotate(360deg) scale(var(--s));
  }
}

/* Donation System */
.rg-donation-panel {
  padding: 26px;
}

.rg-donation-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rg-donation-form label {
  display: grid;
  gap: 8px;
}

.rg-donation-form label span {
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.rg-donation-form input,
.rg-donation-form select,
.rg-donation-form textarea,
.rg-review-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid rgba(247, 200, 75, .35);
  background: rgba(0, 0, 0, .45);
  color: #fff8d8;
  outline: none;
}

.rg-donation-form textarea {
  resize: vertical;
}

.rg-donation-full {
  grid-column: 1 / -1;
}

.rg-donation-success,
.rg-donation-error {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 2px solid rgba(247, 200, 75, .45);
  background: rgba(247, 200, 75, .10);
  color: #fff1b8;
}

.rg-donation-error {
  border-color: rgba(255, 80, 80, .55);
  background: rgba(255, 80, 80, .10);
  color: #ffd0d0;
}

.rg-status-pending {
  color: #ffe19a;
}

.rg-status-approved {
  color: #b9ffb9;
}

.rg-status-rejected {
  color: #ffb3b3;
}

.rg-review-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
  margin-bottom: 10px;
}

.rg-review-form .rg-button {
  width: 100%;
}

.rg-donation-review-table small {
  color: var(--rg-muted);
}

@media (max-width: 760px) {
  .rg-donation-form {
    grid-template-columns: 1fr;
  }
}

/* GM all donations summary */
.rg-donation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.rg-donation-summary-card {
  min-height: 150px;
  padding: 22px;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 10px;
}

.rg-donation-summary-card span {
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-transform: uppercase;
  line-height: 1.5;
}

.rg-donation-summary-card strong {
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
}

.rg-donation-summary-card small {
  color: var(--rg-muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .rg-donation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rg-donation-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ArkangelSEA Shop Finder */
.rg-shopfinder-filter {
  padding: 24px;
  margin-bottom: 22px;
}

.rg-shopfinder-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto auto;
  gap: 14px;
  align-items: end;
}

.rg-shopfinder-form label {
  display: grid;
  gap: 8px;
}

.rg-shopfinder-form label span {
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-transform: uppercase;
  line-height: 1.5;
}

.rg-shopfinder-form input,
.rg-shopfinder-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid rgba(247, 200, 75, .35);
  background: rgba(0, 0, 0, .45);
  color: #fff8d8;
  outline: none;
}

.rg-shopfinder-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.rg-shopfinder-stat {
  padding: 22px;
  text-align: center;
  display: grid;
  gap: 8px;
}

.rg-shopfinder-stat span {
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.rg-shopfinder-stat strong {
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
}

.rg-shopfinder-grid {
  display: grid;
  gap: 22px;
}

.rg-shop-card {
  padding: 24px;
}

.rg-shop-card-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.rg-shop-card h2 {
  margin: 8px 0 6px;
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}

.rg-shop-card p {
  margin: 0;
  color: var(--rg-muted);
}

.rg-shop-card p strong {
  color: var(--rg-gold-soft);
}

.rg-shop-location {
  border: 2px solid rgba(247, 200, 75, .35);
  padding: 14px;
  background: rgba(0,0,0,.32);
  text-align: center;
}

.rg-shop-location span {
  display: block;
  color: var(--rg-muted);
  font-size: 13px;
}

.rg-shop-location strong {
  display: block;
  color: var(--rg-gold);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.6;
  margin: 4px 0;
}

.rg-shop-location b {
  display: block;
  color: #fff1b8;
  font-size: 16px;
}

.rg-shop-map-line {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--rg-gold);
  background: rgba(247, 200, 75, .08);
  color: var(--rg-muted);
}

.rg-shop-map-line code {
  color: #fff1b8;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}

.rg-shop-items {
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.rg-shop-table small {
  color: var(--rg-muted);
}

.rg-empty-market {
  padding: 32px;
  text-align: center;
}

.rg-empty-market h2 {
  color: #fff1b8;
  font-family: Cinzel, serif;
  font-size: 34px;
}

.rg-empty-market p {
  color: var(--rg-muted);
}

@media (max-width: 980px) {
  .rg-shopfinder-form {
    grid-template-columns: 1fr;
  }

  .rg-shop-card-head {
    grid-template-columns: 1fr;
  }

  .rg-shop-location {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .rg-shopfinder-summary {
    grid-template-columns: 1fr;
  }
}