:root {
  color-scheme: dark;
  --sky-top: #55f5ff;
  --sky-mid: #7cf7ff;
  --sky-low: #b8fbff;
  --soil-top: #182015;
  --soil-mid: #141a12;
  --soil-deep: #10150e;
  --panel-bg: #171d14;
  --panel-elev: #20281c;
  --panel-border: #38452e;
  --text: #eae4d6;
  --text-muted: #adb59e;
  --link: #99adff;
  --link-hover: #cbd6ff;
  --gold: #ffcb5c;
  --gold-deep: #7a4319;
  --moss: #729c3f;
  --moss-dark: #2f431b;
  --horizon-y: 430px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--soil-deep);
  color: var(--text);
  font: 14px/1.6 Verdana, Geneva, Tahoma, sans-serif;
  overflow-x: hidden;
}

img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* =========================================================
   FULL-BLEED PIXEL WORLD BACKGROUND (SKY -> GRASS -> SOIL)
   ========================================================= */
.world {
  position: absolute;
  inset: 0 0 auto 0;
  height: 980px;
  pointer-events: none;
  overflow: hidden;
}

.world-sky {
  position: relative;
  height: calc(var(--horizon-y) + 20px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%);
  overflow: hidden;
}

.world-clouds,
.stage-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.world-butterflies,
.stage-butterflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.butterfly-actor {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("assets/butterflies.png");
  background-size: 144px 24px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  will-change: transform, background-position;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

.dyn-cloud {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  image-rendering: pixelated;
}

.world-mountains {
  position: absolute;
  inset: auto -16px 8px -16px;
  height: 235px;
  background: url("assets/montanhas.png") center bottom / auto 220px repeat-x;
  filter: blur(3.5px) saturate(0.7) brightness(0.88);
  opacity: 0.65;
  z-index: 0;
}

.world-forest-back {
  position: absolute;
  inset: auto -16px 4px -16px;
  height: 220px;
  background: url("assets/forest-back.png") center bottom / auto 212px repeat-x;
  filter: blur(2.4px) brightness(0.85);
  opacity: 0.88;
  z-index: 2;
}

.world-forest-mid {
  position: absolute;
  inset: auto -16px 2px -16px;
  height: 196px;
  background: url("assets/forest-mid.png") center bottom / auto 188px repeat-x;
  filter: blur(1px) brightness(0.95);
  opacity: 0.96;
  z-index: 2;
}

.world-horizon {
  position: absolute;
  top: var(--horizon-y);
  left: 0;
  right: 0;
  height: 38px;
  background: url("assets/grass-strip.png") left top / auto 38px repeat-x;
  image-rendering: pixelated;
  z-index: 3;
}

.world-soil {
  position: absolute;
  top: calc(var(--horizon-y) + 34px);
  left: 0;
  right: 0;
  height: 540px;
  background:
    radial-gradient(circle 4px at 14% 16%, rgba(124, 152, 74, 0.25) 0 80%, transparent 100%),
    radial-gradient(circle 3px at 28% 28%, rgba(124, 152, 74, 0.2) 0 80%, transparent 100%),
    radial-gradient(circle 4px at 82% 20%, rgba(124, 152, 74, 0.22) 0 80%, transparent 100%),
    radial-gradient(circle 3px at 74% 38%, rgba(124, 152, 74, 0.18) 0 80%, transparent 100%),
    linear-gradient(180deg, var(--soil-top) 0%, var(--soil-mid) 40%, var(--soil-deep) 88%);
  z-index: 2;
}

/* =========================================================
   CENTERED PORTAL WRAPPER & FLANKING SCENERY
   ========================================================= */
.portal-wrap {
  position: relative;
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

/* Left & right grass-line scenery anchored right behind the spiky grass blades */
.flank {
  position: absolute;
  top: calc(var(--horizon-y) + 12px);
  pointer-events: none;
  z-index: 2;
}

.flank-left {
  right: calc(100% + 4px);
  width: 340px;
  height: 0;
}

.flank-right {
  left: calc(100% + 4px);
  width: 340px;
  height: 0;
}

.flank img {
  position: absolute;
  bottom: 0;
}

.flank-tree-far-left {
  right: 175px;
  width: 175px;
  bottom: -2px;
  filter: blur(1.2px) brightness(0.92);
}

.flank-tree-left {
  right: 78px;
  width: 185px;
  bottom: -2px;
  filter: blur(0.6px);
}

.flank-bush-large-left {
  right: 145px;
  width: 150px;
  bottom: -2px;
}

.flank-bush-left {
  right: 12px;
  width: 112px;
  bottom: -2px;
}

.flank-bush-flowers-left {
  right: 108px;
  width: 80px;
  bottom: -1px;
}

.flank-stump {
  right: 268px;
  width: 28px;
  bottom: -1px;
}

.flank-flowers {
  right: 204px;
  width: 42px;
  bottom: -1px;
}

.flank-lamp {
  right: 14px;
  width: 24px;
  bottom: -1px;
}

.flank-tree-far-right {
  left: 168px;
  width: 175px;
  bottom: -2px;
  transform: scaleX(-1);
  filter: blur(1.2px) brightness(0.92);
}

.flank-tree-right {
  left: 72px;
  width: 196px;
  bottom: -2px;
  filter: blur(0.6px);
}

.flank-bush-large-right {
  left: 142px;
  width: 152px;
  bottom: -2px;
}

.flank-bush-right {
  left: 14px;
  width: 110px;
  bottom: -2px;
}

.flank-bush-flowers-right {
  left: 104px;
  width: 82px;
  bottom: -1px;
}

.flank-flowers-right {
  left: 238px;
  width: 40px;
  bottom: -1px;
}

.flank-log {
  left: 28px;
  width: 70px;
  bottom: -2px;
}

/* Animated 4x4 spritesheet lobby chicken actor (32x32 native -> 36x36 display) */
.chicken-actor {
  position: absolute;
  width: 36px;
  height: 36px;
  background-image: url("assets/chicken-sheet.png");
  background-size: 144px 144px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  will-change: transform, background-position;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

.flank-chicken-actor {
  bottom: -4px;
  left: 0;
  z-index: 5;
}

/* =========================================================
   2-COLUMN PORTAL GRID (MAIN STONE COLUMN + RIGHT PILLAR)
   ========================================================= */
.portal-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 24px;
  align-items: start;
}

/* =========================================================
   STONE-FRAMED MAIN COLUMN
   ========================================================= */
.stone-frame {
  padding: 0;
  border: 24px solid #2b351e;
  border-image-source: url("assets/stone-frame-border.png");
  border-image-slice: 16;
  border-image-repeat: round;
  background-color: var(--panel-bg);
  image-rendering: pixelated;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

/* Main Hero Stage inside Stone Frame (Atisq Lobby depth + blur) */
.stage {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 2px solid #0e130c;
  background: linear-gradient(180deg, #55f5ff 0%, #7cf7ff 55%, #b8fbff 100%);
  display: grid;
  place-items: center;
}

.stage-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage-mountains {
  position: absolute;
  inset: auto -14px 20px -14px;
  height: 280px;
  background: url("assets/montanhas.png") center bottom / auto 240px repeat-x;
  filter: blur(3.5px) saturate(0.68) brightness(0.88);
  opacity: 0.65;
  z-index: 0;
}

.stage-forest-back {
  position: absolute;
  inset: auto -14px 18px -14px;
  height: 230px;
  background: url("assets/forest-back.png") center bottom / auto 220px repeat-x;
  filter: blur(2.2px) brightness(0.84);
  opacity: 0.88;
  z-index: 2;
}

.stage-forest-mid {
  position: absolute;
  inset: auto -14px 18px -14px;
  height: 205px;
  background: url("assets/forest-mid.png") center bottom / auto 195px repeat-x;
  filter: blur(0.9px) brightness(0.95);
  opacity: 0.96;
  z-index: 2;
}

/* Crisp foreground props — tucked right behind the spiky grass tips (z-index: 3 < floor z-index: 4) */
.stage-house {
  position: absolute;
  left: 14px;
  bottom: 26px;
  width: 146px;
  z-index: 3;
}

.stage-bush {
  position: absolute;
  bottom: 26px;
  z-index: 3;
}

.stage-bush-left {
  left: 152px;
  width: 96px;
}

.stage-bush-right {
  right: 16px;
  width: 108px;
}

.stage-flowers {
  position: absolute;
  left: 254px;
  bottom: 27px;
  width: 34px;
  z-index: 3;
}

.stage-bench {
  position: absolute;
  right: 128px;
  bottom: 26px;
  width: 58px;
  z-index: 3;
}

.stage-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  background: url("assets/grass-strip.png") left top / auto 36px repeat-x, linear-gradient(180deg, transparent 0 42%, #182015 42% 100%);
  image-rendering: pixelated;
  z-index: 4;
}

/* Floating mossy platforms — tucked cleanly in upper left & right corners away from logo */
.stage-ledge {
  position: absolute;
  width: 128px;
  height: 28px;
  background: url("assets/plataforma.png") center / 100% 100% no-repeat;
  z-index: 3;
}

.stage-ledge-left {
  left: 34px;
  top: 136px;
}

.stage-ledge-right {
  right: 34px;
  top: 124px;
}

.stage-sprite {
  position: absolute;
  bottom: 22px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.sprite-iris {
  left: 38px;
  height: 64px;
  animation: bob 2.4s ease-in-out infinite;
}

.sprite-fole {
  right: 34px;
  height: 64px;
  transform: scaleX(-1);
  animation: bob-flip 2.7s ease-in-out infinite;
}

/* Grounded characters — feet planted cleanly on the grass rim */
.stage-ground-char {
  position: absolute;
  bottom: 28px;
  z-index: 5;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}

.sprite-rubi {
  left: 196px;
  height: 58px;
}

.sprite-evil {
  right: 204px;
  height: 64px;
  transform: scaleX(-1);
}

.stage-chicken-actor {
  bottom: 26px;
  left: 0;
  z-index: 5;
}

/* Stage Foreground Copy + Official Pixel Logo — centered in open sky above ground characters */
.stage-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px 108px;
  width: 100%;
  background: radial-gradient(ellipse 64% 58% at 50% 42%, rgba(16, 22, 14, 0.62) 0%, rgba(16, 22, 14, 0.22) 56%, transparent 76%);
}

.hero-logo {
  width: clamp(200px, 34vw, 276px);
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(16, 12, 10, 0.55));
  margin-bottom: 10px;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: bold;
  color: #fff6dc;
  text-shadow: 0 2px 0 #131c15, 1px 0 0 #131c15, -1px 0 0 #131c15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  font: bold 13px/1 Verdana, Geneva, Tahoma, sans-serif;
  text-decoration: none;
  border: 2px solid #23160d;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #ffda7a 0%, #eca234 100%);
  color: #24150c;
  box-shadow: inset 0 2px 0 #fff1b8, 0 3px 0 #23160d;
}

.btn-primary:hover {
  color: #24150c;
}

.btn-secondary {
  background: linear-gradient(180deg, #4b692f 0%, #31481d 100%);
  color: #f6f2df;
  box-shadow: inset 0 2px 0 #769f4b, 0 3px 0 #18230e;
}

.btn-secondary:hover {
  color: #ffffff;
}

/* Embedded Unity WebGL Game inside the Stone Frame */
.game-embed {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #0b0e14;
}

.game-embed[hidden] {
  display: none;
}

.game-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Notice Bar directly under stage (Transformice cookie/notice strip tribute) */
.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  background: #100d0b;
  border-inline: 2px solid #120f0d;
  border-bottom: 2px solid #2b231d;
  font-size: 12.5px;
  color: #d8cebf;
}

.notice-bar p {
  margin: 0;
}

.notice-actions {
  display: flex;
  gap: 8px;
}

.mini-btn {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 3px;
  color: #fff;
}

.mini-btn-green {
  background: #2f8b2f;
  border: 1px solid #49b249;
}

.mini-btn-green:hover {
  color: #fff;
  background: #389f38;
}

.mini-btn-blue {
  background: #2758bd;
  border: 1px solid #4d7ee6;
}

.mini-btn-blue:hover {
  color: #fff;
  background: #3368d4;
}

/* =========================================================
   DEVLOG / PORTAL FEED (INSIDE STONE FRAME)
   ========================================================= */
.feed {
  background: var(--panel-bg);
  border: 2px solid #120f0d;
  border-top: 0;
  padding: 8px 22px 26px;
}

.post {
  padding: 20px 0 22px;
  border-bottom: 1px solid #2e2620;
}

.post:last-child {
  border-bottom: 0;
  padding-bottom: 6px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2f2822;
  margin-bottom: 14px;
}

.post-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: #120f0d;
  border: 2px solid #594b3d;
  box-shadow: inset 0 0 0 2px #261f1a;
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.post-avatar-sprite img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.post-meta h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
  color: #9ba7ff;
  font-weight: bold;
}

.post-byline {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.post-byline .author {
  color: #63c7b2;
  font-weight: bold;
}

.post-body p {
  margin: 0 0 11px;
  color: #d6cab8;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--gold);
  font-weight: bold;
}

.inline-link:hover {
  color: #ffe299;
}

/* =========================================================
   INTERACTIVE CHARACTER INSPECTOR & GRID
   ========================================================= */
.char-inspector {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  margin: 14px 0;
  background: var(--panel-elev);
  border: 2px solid var(--panel-border);
}

.char-preview-box {
  height: 132px;
  background:
    radial-gradient(circle at 50% 62%, rgba(114, 156, 63, 0.22), transparent 68%),
    #14100d;
  border: 1px solid #4a3d31;
  display: grid;
  place-items: center;
}

.char-preview-box img {
  height: 92px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}

.char-details-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.char-details h3 {
  margin: 0;
  font-size: 17px;
  color: var(--gold);
}

.char-role {
  font-size: 11.5px;
  padding: 2px 8px;
  background: #2f3b22;
  border: 1px solid #566e3a;
  color: #d7eeaf;
  font-weight: bold;
}

.char-details p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #d8ccba;
}

.stat-bars {
  display: grid;
  gap: 6px;
}

.stat-row {
  display: grid;
  grid-template-columns: 78px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.stat-row strong {
  text-align: right;
  color: #f3e8d5;
}

.stat-track {
  height: 10px;
  background: #120e0c;
  border: 1px solid #3f342a;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  transition: width 0.25s ease;
}

.stat-atk { background: linear-gradient(90deg, #c74f2c, #f29d38); }
.stat-spd { background: linear-gradient(90deg, #2d87b8, #63d4ec); }
.stat-hp  { background: linear-gradient(90deg, #4b8d32, #8fd14f); }

.char-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.char-card {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  background: #15110e;
  border: 2px solid #3c3128;
  color: #d9cebe;
  font: bold 12px/1.2 Verdana, sans-serif;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}

.char-card img {
  height: 52px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
}

.char-card:hover {
  border-color: #7c6750;
  background: #221b16;
  transform: translateY(-2px);
}

.char-card.is-active {
  border-color: var(--gold);
  background: #2b221a;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 203, 92, 0.35);
}

/* =========================================================
   ARENA CARDS
   ========================================================= */
.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.arena-card {
  margin: 0;
  background: #14100d;
  border: 2px solid #3f342a;
  overflow: hidden;
}

.arena-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-bottom: 2px solid #2b231d;
}

.arena-card figcaption {
  padding: 8px 10px 10px;
  display: grid;
  gap: 2px;
}

.arena-card strong {
  font-size: 13px;
  color: var(--gold);
}

.arena-card span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* =========================================================
   RIGHT SIDEBAR — ICONIC MOSSY EARTH PILLAR (TRANSFORMICE STYLE)
   ========================================================= */
.sidebar {
  position: relative;
}

.pillar {
  position: relative;
  padding: 0;
  border: 24px solid #2b351e;
  border-image-source: url("assets/stone-frame-border.png");
  border-image-slice: 16;
  border-image-repeat: round;
  background-color: var(--panel-bg);
  image-rendering: pixelated;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.pillar-body {
  padding: 18px 14px 22px;
  border: 2px solid #0e130c;
  background: var(--panel-bg);
}

.side-heading {
  margin: 22px 0 10px;
  font-size: 13.5px;
  text-align: center;
  color: #e4d5be;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.side-heading:first-child {
  margin-top: 4px;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: grid;
  gap: 8px;
}

.side-nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.side-nav li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #ffe699, #d98218 70%, #5c2d09 100%);
  border-radius: 50%;
  box-shadow: 0 1px 0 #000;
}

.side-nav a {
  color: #8f9fff;
  text-decoration: none;
}

.side-nav a:hover {
  color: #c8d2ff;
  text-decoration: underline;
}

.side-stats li {
  color: #c6b8a4;
}

.side-stats li::before {
  background: radial-gradient(circle at 35% 35%, #b5e66c, #5c8a29 72%, #263b11 100%);
}

/* Footer */
.site-footer {
  padding: 18px 8px 18px;
  text-align: center;
  font-size: 12px;
  color: #c9a799;
  text-shadow: 0 1px 0 #120606;
}

.site-footer p {
  margin: 0;
}

/* =========================================================
   BOTTOM ABYSS: SEAMLESS FADE INTO HELL / DEMON ARENA
   ========================================================= */
.hell-realm {
  position: absolute;
  inset: auto 0 0 0;
  height: 980px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(
    180deg,
    var(--soil-deep) 0%,
    #11130e 16%,
    #140e0e 32%,
    #210b0e 50%,
    #3d1010 68%,
    #701c11 84%,
    #b53615 95%,
    #d64c19 100%
  );
}

.hell-cavern {
  position: absolute;
  inset: auto 0 28px 0;
  height: 520px;
  background: url("assets/hell-bg.png") center bottom / auto 460px repeat-x;
  image-rendering: pixelated;
  filter: blur(1.4px);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.72) 56%, #000 88%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.72) 56%, #000 88%);
  z-index: 1;
}

.hell-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background: linear-gradient(
    180deg,
    var(--soil-deep) 0%,
    var(--soil-deep) 14%,
    rgba(16, 21, 14, 0.92) 32%,
    rgba(20, 14, 14, 0.65) 54%,
    rgba(30, 10, 12, 0.28) 76%,
    transparent 100%
  );
  z-index: 2;
}

.hell-lava-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: radial-gradient(ellipse 85% 70% at 50% 100%, rgba(255, 106, 24, 0.48) 0%, rgba(196, 40, 18, 0.22) 55%, transparent 80%);
  animation: lava-pulse 4.5s ease-in-out infinite alternate;
  z-index: 2;
}

.hell-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
}

.hell-soul {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background-image: url("assets/hell-souls.png");
  background-size: 224px 56px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  will-change: transform, opacity, background-position;
  filter: drop-shadow(0 0 8px rgba(255, 118, 52, 0.55));
}

.hell-soul.is-ember {
  filter: hue-rotate(-78deg) saturate(1.45) brightness(1.08) drop-shadow(0 0 8px rgba(255, 110, 36, 0.65));
}

.hell-mote {
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 0 6px currentColor;
}

.hell-rocks {
  position: absolute;
  inset: auto 0 28px 0;
  height: 0;
  z-index: 3;
}

.hell-rock {
  position: absolute;
  bottom: 0;
  width: 48px;
}

.rock-1 { left: 4%; width: 56px; }
.rock-2 { left: 13%; width: 38px; }
.rock-3 { right: 12%; width: 42px; transform: scaleX(-1); }
.rock-4 { right: 3%; width: 60px; transform: scaleX(-1); }

.hell-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  background: url("assets/hell-floor.png") left top / 36px 36px repeat-x;
  image-rendering: pixelated;
  z-index: 4;
  box-shadow: 0 -6px 24px rgba(255, 92, 24, 0.35);
}

@keyframes lava-pulse {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(36px); }
  100% { transform: translateX(0); }
}

@keyframes drift-soft {
  from { transform: translateX(-10px); }
  to   { transform: translateX(14px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes bob-flip {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50%      { transform: scaleX(-1) translateY(-5px); }
}

@keyframes hop {
  0%, 84%, 100% { transform: translateY(0); }
  92%           { transform: translateY(-5px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .flank {
    display: none;
  }
}

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

  .pillar-body {
    min-height: auto;
    padding: 18px 14px 22px;
  }

  .side-nav ul {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .char-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arena-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stone-frame,
  .pillar {
    border-width: 16px;
  }

  .stage {
    min-height: 410px;
  }

  .stage-ledge,
  .stage-bench,
  .stage-ground-char,
  .stage-ground-chicken {
    display: none;
  }

  .feed {
    padding: 8px 14px 20px;
  }

  .char-inspector {
    grid-template-columns: 1fr;
  }

  .char-preview-box {
    height: 104px;
  }
}
