/* ─────────────────────────────────────────────────────────────
   FOOLIES PIXEL UI MODULE (pixel-ui.css)
   Chunky 4px Curved Pixel-Art Design System (True Circular Arcs)
   Palette: #d6ff00 (Neon Lime) / #070905 (Void Black)
   Typography: 04B_03 / Kiwi Soda
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: '04B_03';
  src: url('fonts/04B_03.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: '04B03';
  src: url('fonts/04B_03.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --px-lime: #d6ff00;
  --px-lime-dim: #9ab800;
  --px-black: #070905;
  --px-dark: #0e120b;
  --px-dark-2: #12180e;
  --px-dark-3: #182013;
  --px-white: #ffffff;
  --px-gray: #c8d6df;
  --px-muted: #718096;
  --px-font: '04B_03', '04B03', monospace;
  --px-glow: 0 0 16px rgba(214, 255, 0, 0.35);
  --px-glow-strong: 0 0 24px rgba(214, 255, 0, 0.6);
}

/* ─── PIXEL RESET & SMOOTHING PREVENTION ─── */
.pixel-ui,
.btn-pixel,
.pixel-btn,
.pixel-pill,
.pixel-badge,
.pixel-card,
.pixel-box,
.pixel-avatar,
.pixel-toast,
.stat-pill,
.hero__badge,
.wallet-card,
.detail-box,
.toast,
.nav,
.nav--static {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 1. TRUE CIRCULAR PIXEL ARCS (Curved 8:4:8 Pixel Ratio) ─── */

/* 16px Curved Pixel Arc (Buttons, Pills, Badges, Timer, Avatar, Tasks) */
.pixel-corners-sm,
.pixel-pill,
.stat-pill,
.hero__badge,
.network-badge,
.btn-pixel,
.pixel-btn,
.btn,
.btn-icon,
.profile-btn,
.pixel-avatar,
.spec-prompt-box,
.task-card,
.task-action-btn,
.task-input-box,
.prompt-feedback-box {
  clip-path: polygon(
    0 16px,
    4px 16px,
    4px 8px,
    8px 8px,
    8px 4px,
    16px 4px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 4px,
    calc(100% - 8px) 4px,
    calc(100% - 8px) 8px,
    calc(100% - 4px) 8px,
    calc(100% - 4px) 16px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 4px) calc(100% - 16px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 16px) calc(100% - 4px),
    calc(100% - 16px) 100%,
    16px 100%,
    16px calc(100% - 4px),
    8px calc(100% - 4px),
    8px calc(100% - 8px),
    4px calc(100% - 8px),
    4px calc(100% - 16px),
    0 calc(100% - 16px)
  ) !important;
  border-radius: 0 !important;
}

/* 20px Curved Pixel Arc (Nav, Cards, Detail Boxes, Toast) */
.pixel-corners-lg,
.pixel-card,
.wallet-card,
.detail-box,
.toast,
.nav,
.nav--static {
  clip-path: polygon(
    0 20px,
    4px 20px,
    4px 12px,
    8px 12px,
    8px 8px,
    12px 8px,
    12px 4px,
    20px 4px,
    20px 0,
    calc(100% - 20px) 0,
    calc(100% - 20px) 4px,
    calc(100% - 12px) 4px,
    calc(100% - 12px) 8px,
    calc(100% - 8px) 8px,
    calc(100% - 8px) 12px,
    calc(100% - 4px) 12px,
    calc(100% - 4px) 20px,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 4px) calc(100% - 20px),
    calc(100% - 4px) calc(100% - 12px),
    calc(100% - 8px) calc(100% - 12px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 12px) calc(100% - 8px),
    calc(100% - 12px) calc(100% - 4px),
    calc(100% - 20px) calc(100% - 4px),
    calc(100% - 20px) 100%,
    20px 100%,
    20px calc(100% - 4px),
    12px calc(100% - 4px),
    12px calc(100% - 8px),
    8px calc(100% - 8px),
    8px calc(100% - 12px),
    4px calc(100% - 12px),
    4px calc(100% - 20px),
    0 calc(100% - 20px)
  ) !important;
  border-radius: 0 !important;
}

/* ─── 2. EXACT 4PX UNIFORM BORDER ENGINE (Parallel Inner Curves) ─── */

.btn--mint,
.pixel-btn--mint,
.stat-pill,
.hero__badge,
.wallet-card,
.pixel-card,
.arena-card,
.arena-calendar,
.arena-specs,
.detail-box,
.nav,
.nav--static,
.network-badge,
.toast,
.btn-icon,
.task-card,
.task-action-btn,
.task-input-box {
  position: relative !important;
  background-color: var(--px-lime) !important; /* Outer 4px lime border */
  border: none !important;
  isolation: isolate;
}

/* Inner matching curve for buttons, pills, badges, prompt box, task items */
.btn--mint::before,
.pixel-btn--mint::before,
.stat-pill::before,
.hero__badge::before,
.network-badge::before,
.btn-icon::before,
.spec-prompt-box::before,
.task-card::before,
.task-action-btn::before,
.task-input-box::before {
  content: '';
  position: absolute;
  inset: 4px; /* Exact 4px border width */
  background-color: var(--px-dark);
  z-index: -1;
  pointer-events: none;
  /* Parallel inner arc (12px) */
  clip-path: polygon(
    0 12px,
    4px 12px,
    4px 4px,
    12px 4px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 4px,
    calc(100% - 4px) 4px,
    calc(100% - 4px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 4px) calc(100% - 12px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 12px) calc(100% - 4px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 4px),
    4px calc(100% - 4px),
    4px calc(100% - 12px),
    0 calc(100% - 12px)
  ) !important;
}

/* Inner matching curve for nav, cards, detail boxes, toasts (16px inner) */
.wallet-card::before,
.pixel-card::before,
.arena-card::before,
.arena-calendar::before,
.arena-specs::before,
.detail-box::before,
.nav::before,
.nav--static::before,
.toast::before {
  content: '';
  position: absolute;
  inset: 4px; /* Exact 4px border width */
  background-color: var(--px-dark);
  z-index: -1;
  pointer-events: none;
  /* Parallel inner arc (16px) */
  clip-path: polygon(
    0 16px,
    4px 16px,
    4px 8px,
    8px 8px,
    8px 4px,
    16px 4px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 4px,
    calc(100% - 8px) 4px,
    calc(100% - 8px) 8px,
    calc(100% - 4px) 8px,
    calc(100% - 4px) 16px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 4px) calc(100% - 16px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 16px) calc(100% - 4px),
    calc(100% - 16px) 100%,
    16px 100%,
    16px calc(100% - 4px),
    8px calc(100% - 4px),
    8px calc(100% - 8px),
    4px calc(100% - 8px),
    4px calc(100% - 16px),
    0 calc(100% - 16px)
  ) !important;
}

/* Background overrides for inner layers (#0e120b) */
.nav::before,
.nav--static::before,
.wallet-card::before,
.pixel-card::before,
.arena-card::before,
.arena-calendar::before,
.arena-specs::before,
.detail-box::before,
.network-badge::before,
.btn-icon::before {
  background-color: #0e120b !important;
}

.wallet-pill::before {
  background-color: var(--px-dark) !important;
}

/* ─── 3. PIXEL NAVBAR ─── */

.nav {
  box-shadow: none !important;
  filter: drop-shadow(0 0 16px rgba(214, 255, 0, 0.3)) !important;
  white-space: nowrap !important;
  padding: 10px 20px 10px 26px !important;
}

.nav--static {
  position: static !important;
  transform: none !important;
  display: flex !important;
  margin: 20px auto 36px !important;
  max-width: 900px !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 28px !important;
}

.nav__logo {
  font-family: 'KiwiSoda', monospace !important;
  color: var(--px-lime) !important;
  text-decoration: none !important;
  letter-spacing: 1px !important;
  position: relative !important;
  z-index: 1 !important;
}

.nav__links {
  position: relative !important;
  z-index: 1 !important;
}

.nav__links a {
  color: var(--px-gray) !important;
  font-family: var(--px-font) !important;
  font-size: 1.65rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.nav__links a:hover {
  color: var(--px-lime) !important;
}

/* ─── 4. PIXEL BUTTONS (Clean 2D Flat) ─── */

.pixel-btn,
.btn-pixel,
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-family: var(--px-font) !important;
  font-size: 1.75rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  padding: 14px 34px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--px-dark) !important;
  color: var(--px-lime) !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease, transform 0.1s ease !important;
  user-select: none !important;
  -webkit-text-stroke: 0 !important;
}

.btn > *,
.pixel-btn > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Primary Button (Solid Lime Flat) */
.pixel-btn--primary,
.btn-pixel--primary,
.btn--primary {
  background: var(--px-lime) !important;
  color: var(--px-black) !important;
  box-shadow: none !important;
}

.pixel-btn--primary::before,
.btn-pixel--primary::before,
.btn--primary::before {
  display: none !important;
}

.pixel-btn--primary:hover,
.btn-pixel--primary:hover,
.btn--primary:hover {
  background: #e5ff33 !important;
  filter: drop-shadow(0 0 14px rgba(214, 255, 0, 0.6)) !important;
  transform: translateY(-2px) !important;
}

.pixel-btn--primary:active,
.btn-pixel--primary:active,
.btn--primary:active {
  transform: translateY(1px) !important;
  filter: none !important;
}

/* Mint / Secondary Button (Dark with Seamless Lime Border) */
.pixel-btn--mint,
.btn-pixel--mint,
.btn--mint {
  background-color: var(--px-lime) !important;
  color: var(--px-lime) !important;
  box-shadow: none !important;
}

.pixel-btn--mint:hover,
.btn-pixel--mint:hover,
.btn--mint:hover {
  background-color: #ffffff !important;
  color: #ffffff !important;
  filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.4)) !important;
  transform: translateY(-2px) !important;
}

.pixel-btn--mint:hover::before,
.btn-pixel--mint:hover::before,
.btn--mint:hover::before {
  background-color: var(--px-dark-3) !important;
}

.pixel-btn--mint:active,
.btn-pixel--mint:active,
.btn--mint:active {
  transform: translateY(1px) !important;
}

/* Small Button */
.pixel-btn--small,
.btn-pixel--small,
.btn--small {
  font-size: 1.45rem !important;
  padding: 8px 22px !important;
}

/* Large Button */
.pixel-btn--large,
.btn-pixel--large,
.btn--large {
  font-size: 2rem !important;
  padding: 16px 42px !important;
}

/* Icon / Copy Button */
.btn-icon,
.pixel-btn--icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  color: var(--px-lime) !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  transition: filter 0.15s, transform 0.1s !important;
}

.btn-icon:hover,
.pixel-btn--icon:hover {
  background-color: #ffffff !important;
  color: var(--px-white) !important;
  transform: scale(1.08) !important;
}

/* ─── 5. PIXEL PILLS & HERO BADGE ─── */

.hero {
  padding: 130px 24px 105px !important;
  min-height: 100svh !important;
}

.pixel-badge,
.hero__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--px-font) !important;
  font-size: 1.55rem !important;
  font-weight: 400 !important;
  color: var(--px-lime) !important;
  padding: 8px 26px !important;
  box-shadow: none !important;
  margin-bottom: 34px !important;
  transform: translateY(-24px) !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.25)) !important;
}

.hero__badge > *,
.stat-pill > * {
  position: relative !important;
  z-index: 1 !important;
}

.pixel-pill,
.stat-pill,
.hero__stats li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  box-shadow: none !important;
  transition: transform 0.15s, filter 0.15s !important;
  min-width: unset !important;
  transform: none !important;
}

.stat-pill:hover,
.hero__stats li:hover {
  background-color: #ffffff !important;
  filter: drop-shadow(0 0 14px rgba(214, 255, 0, 0.45)) !important;
  transform: translateY(-2px) !important;
}

.wallet-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--px-gray) !important;
  font-family: var(--px-font) !important;
  font-size: 1.35rem !important;
  padding: 4px 12px !important;
  line-height: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  clip-path: none !important;
}

.wallet-pill::before {
  display: none !important;
}

.wallet-pill.is-connected {
  color: var(--px-lime) !important;
}

.network-badge {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--px-lime) !important;
  font-family: var(--px-font) !important;
  font-size: 1.25rem !important;
  padding: 4px 14px !important;
}

/* ─── 6. MARQUEE POSITION ─── */

.marquee {
  background: #d6ff00 !important;
  color: #000000 !important;
  font-weight: 400 !important;
  border-top: 3px solid #9ab800 !important;
  border-bottom: 3px solid #9ab800 !important;
  font-family: '04B_03', '04B03', monospace !important;
  margin-top: -10px !important;
  position: relative !important;
  top: -6px !important;
  z-index: 10 !important;
}

/* ─── 7. SQUARE PIXEL STATUS DOT ─── */

.status-dot,
.pixel-dot {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 0 !important;
  background-color: #718096 !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.status-dot.is-connected,
.pixel-dot--active {
  background-color: var(--px-lime) !important;
  box-shadow: 0 0 8px var(--px-lime) !important;
  animation: pixel-blink 1.5s steps(2, start) infinite !important;
}

@keyframes pixel-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── 8. PIXEL CARDS & PANELS ─── */

.pixel-card,
.wallet-card {
  box-shadow: none !important;
  padding: 32px 36px !important;
  font-family: var(--px-font) !important;
  position: relative !important;
}

.wallet-card > * {
  position: relative !important;
  z-index: 1 !important;
}

.detail-box,
.pixel-detail-box {
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.detail-box > * {
  position: relative !important;
  z-index: 1 !important;
}

.detail-box__label {
  font-family: var(--px-font) !important;
  font-size: 1.25rem !important;
  color: var(--px-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.address-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.address-text {
  font-family: var(--px-font) !important;
  font-size: 1.85rem !important;
  color: var(--px-lime) !important;
  letter-spacing: 1px !important;
}

/* ─── 9. CHUNKY PIXEL PROFILE AVATAR ─── */

.profile-btn,
.pixel-avatar {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 50 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  height: 76px !important;
  background-color: var(--px-lime) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: background-color 0.15s ease, filter 0.15s ease, transform 0.15s ease !important;
}

.profile-btn__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  image-rendering: pixelated !important;
  /* 12px inner arc */
  clip-path: polygon(
    0 12px,
    4px 12px,
    4px 4px,
    12px 4px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 4px,
    calc(100% - 4px) 4px,
    calc(100% - 4px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 4px) calc(100% - 12px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 12px) calc(100% - 4px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 4px),
    4px calc(100% - 4px),
    4px calc(100% - 12px),
    0 calc(100% - 12px)
  ) !important;
}

.profile-btn:hover,
.pixel-avatar:hover {
  background-color: #ffffff !important;
  filter: drop-shadow(0 0 16px rgba(214, 255, 0, 0.7)) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

/* ─── 10. PIXEL TOAST NOTIFICATION ─── */

.toast,
.pixel-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: var(--px-lime) !important;
  font-family: var(--px-font) !important;
  font-size: 1.55rem !important;
  padding: 12px 28px !important;
  z-index: 9999 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 16px rgba(214, 255, 0, 0.4)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.toast > * {
  position: relative !important;
  z-index: 1 !important;
}

.toast.hidden {
  display: none !important;
}

/* ─── 10.5. SITE HEADER WITH LOGO & INTRO ─── */
.site-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 44px 20px 16px !important;
  position: relative !important;
  z-index: 20 !important;
  text-align: center !important;
}

.site-logo {
  font-family: var(--font-title, 'KiwiSoda', monospace) !important;
  font-size: 6.8rem !important;
  color: var(--px-lime) !important;
  -webkit-text-stroke: 2.5px var(--px-lime) !important;
  text-decoration: none !important;
  letter-spacing: 3px !important;
  line-height: 1 !important;
  text-shadow: 0 0 32px rgba(214, 255, 0, 0.75) !important;
  user-select: none !important;
  margin-bottom: 24px !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease !important;
}

.site-logo:hover {
  transform: scale(1.05) rotate(-1deg) !important;
  filter: drop-shadow(0 0 24px rgba(214, 255, 0, 0.9)) !important;
}

.header-intro {
  max-width: 720px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

.header-intro__title {
  font-family: var(--px-font) !important;
  font-size: 2.3rem !important;
  color: var(--px-lime) !important;
  letter-spacing: 1px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  text-shadow: 0 0 14px rgba(214, 255, 0, 0.4) !important;
}

.header-intro__text {
  font-family: var(--px-font) !important;
  font-size: 1.5rem !important;
  line-height: 1.55 !important;
  color: #cfdbca !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.header-intro__text p {
  margin: 0 !important;
}

.header-intro__highlight {
  color: var(--px-lime) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(214, 255, 0, 0.35) !important;
}

.header-intro__luck {
  color: var(--px-lime) !important;
  margin-top: 4px !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .site-logo {
    font-size: 4.6rem !important;
    -webkit-text-stroke: 2px var(--px-lime) !important;
  }
  .header-intro__title {
    font-size: 1.85rem !important;
  }
  .header-intro__text {
    font-size: 1.25rem !important;
  }
}

/* ─── 11. ARENA CALENDAR & SKEPTIC/JUDGE SPECS ─── */

.arena-section {
  max-width: 1320px;
  margin: 20px auto 70px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.arena-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px !important;
}

@media (max-width: 960px) {
  .arena-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── CALENDAR (1X PANEL) ─── */
.arena-calendar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 20px !important;
}

.cal-topbar {
  margin-bottom: 16px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}

.cal-title {
  font-family: var(--px-font);
  font-size: 1.35rem;
  color: var(--px-lime);
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cal-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-size: 1.25rem !important;
  flex-shrink: 0;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-family: var(--px-font);
  font-size: 1.2rem;
  color: var(--px-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(214, 255, 0, 0.15);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: rgba(214, 255, 0, 0.4) !important;
  color: var(--px-gray) !important;
  font-family: var(--px-font) !important;
  font-size: 1.35rem !important;
  cursor: pointer !important;
  user-select: none !important;
  border: none !important;
  border-radius: 0 !important;
  isolation: isolate;
  clip-path: polygon(
    0 4px,
    4px 4px,
    4px 0,
    calc(100% - 4px) 0,
    calc(100% - 4px) 4px,
    100% 4px,
    100% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%,
    4px 100%,
    4px calc(100% - 4px),
    0 calc(100% - 4px)
  ) !important;
  transition: transform 0.1s ease, filter 0.12s ease !important;
}

.cal-day::before {
  content: '';
  position: absolute;
  inset: 2px;
  background-color: #0e120b;
  z-index: -1;
  clip-path: polygon(
    0 3px,
    3px 3px,
    3px 0,
    calc(100% - 3px) 0,
    calc(100% - 3px) 3px,
    100% 3px,
    100% calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) 100%,
    3px 100%,
    3px calc(100% - 3px),
    0 calc(100% - 3px)
  ) !important;
  transition: background-color 0.12s ease;
}

.cal-day:hover:not(.is-empty) {
  background-color: #ffffff !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  filter: drop-shadow(0 0 8px rgba(214, 255, 0, 0.6)) !important;
  z-index: 5;
}

.cal-day:hover:not(.is-empty)::before {
  background-color: #1a2214 !important;
}

.cal-day.is-today:not(.is-active) {
  background-color: var(--px-lime) !important;
  color: var(--px-lime) !important;
  filter: drop-shadow(0 0 6px rgba(214, 255, 0, 0.4)) !important;
}

.cal-day.is-today:not(.is-active)::before {
  background-color: #141c0f !important;
}

.cal-day.is-active {
  background-color: var(--px-lime) !important;
  color: var(--px-black) !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
  filter: drop-shadow(0 0 10px rgba(214, 255, 0, 0.6)) !important;
  z-index: 4;
}

.cal-day.is-active::before {
  background-color: var(--px-lime) !important;
}

.cal-day.has-round::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 5px;
  right: 5px;
  height: 3px;
  background: var(--px-lime);
  z-index: 2;
  box-shadow: 0 0 4px rgba(214, 255, 0, 0.4);
  pointer-events: none;
}

.cal-day.is-active.has-round::after {
  background: var(--px-black);
  box-shadow: none;
}

.cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

/* ─── ARENA SPECS (3X PANEL) ─── */
.arena-specs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px 24px !important;
  box-sizing: border-box;
  height: 100%;
}

.spec-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.spec-label {
  font-family: var(--px-font);
  font-size: 1.25rem;
  color: var(--px-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-model-name {
  font-family: var(--px-font);
  font-size: 2.2rem;
  color: var(--px-lime);
  margin: 0;
  letter-spacing: 0.5px;
  -webkit-text-stroke: 0;
  line-height: 1.1;
  transition: opacity 0.15s ease;
}

/* System Prompt Box (Pixelated Rounded Plate with Continuous Dimmer 4px Border) */
.spec-prompt-box {
  background-color: rgba(214, 255, 0, 0.22) !important;
  padding: 16px 22px !important;
  position: relative !important;
  flex: 1;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

.spec-prompt-box::before {
  background-color: #0e120b !important;
}

.prompt-code-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--px-lime) #0e120b;
}

.prompt-code-wrap::-webkit-scrollbar {
  width: 6px;
}

.prompt-code-wrap::-webkit-scrollbar-track {
  background: #0e120b;
}

.prompt-code-wrap::-webkit-scrollbar-thumb {
  background-color: var(--px-lime);
  border-radius: 0;
}

.prompt-code {
  font-family: var(--px-font) !important;
  font-size: 1.45rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  transition: opacity 0.15s ease;
}

.prompt-code code {
  font-family: inherit;
  color: #e2e8f0;
}

/* ─── ROUND SWITCHER (FRAMELESS, FULL WORKING WIDTH) ─── */
.round-switcher {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 36px !important;
  padding: 10px 8px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
}

.round-switcher::before {
  display: none !important;
}

.round-switcher > * {
  position: relative;
  z-index: 1;
}

.round-switcher__btn {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  font-size: 1.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: transform 0.1s ease, filter 0.12s ease !important;
}

.round-switcher__btn:hover:not(:disabled) {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 0 10px rgba(214, 255, 0, 0.7)) !important;
}

.round-switcher__btn:active:not(:disabled) {
  transform: scale(0.96) !important;
}

.round-switcher__btn:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  filter: none !important;
  transform: none !important;
}

.round-switcher__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
}

.round-switcher__meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: var(--px-font) !important;
  font-size: 1.25rem !important;
}

.round-switcher__status {
  color: var(--px-black) !important;
  background-color: var(--px-lime) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px 10px !important;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

.round-switcher__status.is-upcoming {
  background-color: #24301c !important;
  color: var(--px-lime) !important;
  border: 1px solid rgba(214, 255, 0, 0.4) !important;
}

.round-switcher__status.is-concluded {
  background-color: #1a2215 !important;
  color: var(--px-muted) !important;
}

.round-switcher__dot {
  color: var(--px-lime) !important;
  font-size: 0.9rem !important;
  opacity: 0.7;
}

.round-switcher__date {
  color: var(--px-gray) !important;
  letter-spacing: 0.5px !important;
}

.round-switcher__title {
  font-family: var(--px-font) !important;
  font-size: 2.8rem !important;
  color: var(--px-lime) !important;
  letter-spacing: 1px !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 16px rgba(214, 255, 0, 0.45) !important;
  user-select: none !important;
  transition: opacity 0.15s ease;
}

/* ─── NFT SWITCHER (FULL WORKING WIDTH) ─── */
.nft-switcher {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 14px !important;
  padding: 10px 8px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
}

.nft-switcher > * {
  position: relative;
  z-index: 1;
}

.nft-switcher__btn {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  font-size: 1.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: transform 0.1s ease, filter 0.12s ease !important;
}

.nft-switcher__btn:hover:not(:disabled) {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 0 10px rgba(214, 255, 0, 0.7)) !important;
}

.nft-switcher__btn:active:not(:disabled) {
  transform: scale(0.96) !important;
}

.nft-switcher__btn:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  filter: none !important;
  transform: none !important;
}

.nft-switcher__content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  text-align: left !important;
}

.nft-switcher__avatar-box {
  width: 68px !important;
  height: 68px !important;
  background-color: var(--px-lime) !important;
  padding: 3px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  clip-path: polygon(
    0 12px,
    3px 12px,
    3px 6px,
    6px 6px,
    6px 3px,
    12px 3px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 3px,
    calc(100% - 6px) 3px,
    calc(100% - 6px) 6px,
    calc(100% - 3px) 6px,
    calc(100% - 3px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 3px) calc(100% - 12px),
    calc(100% - 3px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 3px),
    calc(100% - 12px) calc(100% - 3px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 3px),
    6px calc(100% - 3px),
    6px calc(100% - 6px),
    3px calc(100% - 6px),
    3px calc(100% - 12px),
    0 calc(100% - 12px)
  ) !important;
  filter: drop-shadow(0 0 10px rgba(214, 255, 0, 0.4)) !important;
}

.nft-switcher__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  image-rendering: pixelated !important;
  clip-path: polygon(
    0 10px,
    3px 10px,
    3px 5px,
    5px 5px,
    5px 3px,
    10px 3px,
    10px 0,
    calc(100% - 10px) 0,
    calc(100% - 10px) 3px,
    calc(100% - 5px) 3px,
    calc(100% - 5px) 5px,
    calc(100% - 3px) 5px,
    calc(100% - 3px) 10px,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 3px) calc(100% - 10px),
    calc(100% - 3px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 3px),
    calc(100% - 10px) calc(100% - 3px),
    calc(100% - 10px) 100%,
    10px 100%,
    10px calc(100% - 3px),
    5px calc(100% - 3px),
    5px calc(100% - 5px),
    3px calc(100% - 5px),
    3px calc(100% - 10px),
    0 calc(100% - 10px)
  ) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.nft-switcher__info {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.nft-switcher__header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.nft-switcher__name {
  font-family: var(--px-font) !important;
  font-size: 2.2rem !important;
  color: var(--px-lime) !important;
  letter-spacing: 0.5px !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 12px rgba(214, 255, 0, 0.4) !important;
  user-select: none !important;
  transition: opacity 0.15s ease;
}

.nft-switcher__tier-tag {
  font-family: var(--px-font) !important;
  font-size: 1.15rem !important;
  color: var(--px-black) !important;
  background-color: var(--px-lime) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 2px 8px !important;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
  transition: opacity 0.15s ease;
}

.nft-switcher__address-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nft-switcher__address-btn {
  background: transparent !important;
  border: none !important;
  padding: 3px 6px !important;
  font-family: var(--px-font) !important;
  font-size: 1.35rem !important;
  color: var(--px-gray) !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 0 !important;
  transition: color 0.12s ease, transform 0.1s ease, text-shadow 0.12s ease !important;
}

.nft-switcher__address-btn:hover {
  color: var(--px-lime) !important;
  text-shadow: 0 0 8px rgba(214, 255, 0, 0.6) !important;
  transform: translateY(-1px) !important;
}

.nft-switcher__address-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

@media (max-width: 768px) {
  .nft-switcher__content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
  .nft-switcher__header {
    justify-content: center !important;
  }
  .nft-switcher__address-row {
    justify-content: center !important;
  }
  .nft-switcher__name {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 600px) {
  .round-switcher,
  .nft-switcher {
    padding: 10px 2px !important;
  }
  .round-switcher__title {
    font-size: 2rem !important;
  }
  .round-switcher__btn,
  .nft-switcher__btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.4rem !important;
  }
}

/* ─── ROUND REQUIREMENTS & SOCIAL TASKS ─── */
.tasks-panel {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  clip-path: none !important;
}

.tasks-panel::before {
  display: none !important;
}

.tasks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tasks-grid__actions-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Base Task Card (4px Uniform Lime Border via Global Engine) */
.task-card {
  padding: 16px 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  background-color: var(--px-lime) !important;
  transition: transform 0.12s ease, filter 0.15s ease !important;
}

.task-card::before {
  background-color: #0e120b !important;
}

.task-card:hover {
  filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.55)) !important;
}

.task-card--action {
  cursor: pointer;
  justify-content: space-between;
}

.task-card--action:hover {
  transform: translateY(-3px) !important;
}

.task-card--action:active {
  transform: translateY(0) scale(0.98) !important;
}

.task-card--completed::before {
  background-color: #172111 !important;
}

.task-card--verifying {
  animation: verifying-pulse 1s steps(2, start) infinite;
}

@keyframes verifying-pulse {
  0% { filter: drop-shadow(0 0 4px rgba(214, 255, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(214, 255, 0, 0.9)); }
  100% { filter: drop-shadow(0 0 4px rgba(214, 255, 0, 0.4)); }
}

.task-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-num {
  font-family: var(--px-font);
  font-size: 1.1rem;
  color: var(--px-muted);
  font-weight: 700;
}

.task-label {
  font-family: var(--px-font);
  font-size: 1.35rem;
  color: var(--px-lime);
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Task Input Box (4px Uniform Lime Border via Global Engine) */
.task-input-box {
  background-color: rgba(214, 255, 0, 0.35) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  transition: background-color 0.15s ease, filter 0.15s ease !important;
}

.task-input-box::before {
  background-color: #070905 !important;
}

.task-input-box:focus-within {
  background-color: var(--px-lime) !important;
  filter: drop-shadow(0 0 10px rgba(214, 255, 0, 0.6)) !important;
}

.task-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--px-lime) !important;
  font-family: var(--px-font) !important;
  font-size: 1.45rem !important;
  padding: 12px 52px 12px 16px !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  z-index: 2 !important;
}

.task-input::placeholder {
  color: #3b4933 !important;
}

.task-check {
  position: absolute;
  right: 16px;
  font-family: var(--px-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--px-lime);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  letter-spacing: 0.5px;
  z-index: 3;
  transition: opacity 0.15s ease;
}

.task-check.is-valid {
  opacity: 1;
}

/* Action Button (4px Uniform Lime Border via Global Engine) */
.task-action-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  font-size: 1.45rem !important;
  font-family: var(--px-font) !important;
  color: var(--px-gray) !important;
  box-sizing: border-box !important;
  background-color: rgba(214, 255, 0, 0.4) !important;
  transition: background-color 0.15s ease, filter 0.15s ease, color 0.15s ease !important;
}

.task-action-btn::before {
  background-color: #0e120b !important;
}

.task-card--action:hover .task-action-btn {
  background-color: var(--px-lime) !important;
  color: var(--px-black) !important;
  filter: drop-shadow(0 0 8px rgba(214, 255, 0, 0.5)) !important;
}

.task-card--action:hover .task-action-btn::before {
  background-color: var(--px-lime) !important;
}

.task-action-btn.is-verifying {
  background-color: #ffaa00 !important;
  color: var(--px-black) !important;
  font-weight: 700 !important;
}

.task-action-btn.is-verifying::before {
  background-color: #ffaa00 !important;
}

.task-action-btn.is-failed {
  background-color: #ff4444 !important;
  color: #ffffff !important;
}

.task-action-btn.is-failed::before {
  background-color: #ff4444 !important;
}

.task-action-btn.is-completed {
  background-color: var(--px-lime) !important;
  color: var(--px-black) !important;
  font-weight: 700 !important;
}

.task-action-btn.is-completed::before {
  background-color: var(--px-lime) !important;
}

@media (max-width: 900px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
  .tasks-grid__actions-row {
    grid-template-columns: 1fr;
  }
}

/* ─── ADVERSARIAL CHALLENGE & PROMPT SUBMISSION PANEL ─── */
.arena-prompt-panel {
  margin-top: 24px !important;
  padding: 28px 32px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.prompt-mission {
  margin-bottom: 22px;
}

.prompt-mission__title {
  font-family: var(--px-font);
  font-size: 2.2rem;
  color: var(--px-lime);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(214, 255, 0, 0.35);
  transition: opacity 0.15s ease;
}

.prompt-mission__desc {
  font-family: var(--px-font);
  font-size: 1.35rem;
  color: var(--px-gray);
  line-height: 1.45;
  margin: 0;
  max-width: 960px;
  transition: opacity 0.15s ease;
}

/* Prompt Input Box */
.prompt-input-box {
  position: relative;
  background-color: rgba(214, 255, 0, 0.22);
  padding: 4px;
  margin-bottom: 20px;
  clip-path: polygon(
    0 16px,
    4px 16px,
    4px 8px,
    8px 8px,
    8px 4px,
    16px 4px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 4px,
    calc(100% - 8px) 4px,
    calc(100% - 8px) 8px,
    calc(100% - 4px) 8px,
    calc(100% - 4px) 16px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 4px) calc(100% - 16px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 16px) calc(100% - 4px),
    calc(100% - 16px) 100%,
    16px 100%,
    16px calc(100% - 4px),
    8px calc(100% - 4px),
    8px calc(100% - 8px),
    4px calc(100% - 8px),
    4px calc(100% - 16px),
    0 calc(100% - 16px)
  );
  box-sizing: border-box;
}

.prompt-textarea {
  width: 100%;
  min-height: 130px;
  background-color: #070905;
  color: #ffffff;
  font-family: var(--px-font);
  font-size: 1.45rem;
  line-height: 1.5;
  padding: 16px 20px;
  border: none;
  outline: none;
  resize: vertical;
  display: block;
  box-sizing: border-box;
  clip-path: polygon(
    0 12px,
    4px 12px,
    4px 4px,
    12px 4px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 4px,
    calc(100% - 4px) 4px,
    calc(100% - 4px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 4px) calc(100% - 12px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 12px) calc(100% - 4px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 4px),
    4px calc(100% - 4px),
    4px calc(100% - 12px),
    0 calc(100% - 12px)
  );
}

.prompt-textarea::placeholder {
  color: #556270;
}

.prompt-textarea:focus {
  background-color: #0b0f08;
}

/* Submitted / Locked State for all Inputs and Tasks */
.task-input:disabled,
.task-input[readonly],
.prompt-textarea:disabled,
.prompt-textarea[readonly] {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none !important;
  color: #a0aec0 !important;
}

.task-input-box.is-locked-box,
.prompt-textarea-wrapper.is-locked-box {
  opacity: 0.75 !important;
  pointer-events: none !important;
  filter: grayscale(0.2) !important;
}

.task-card.is-locked-task {
  opacity: 0.8 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.prompt-char-badge {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-family: var(--px-font);
  font-size: 1.15rem;
  color: var(--px-muted);
  background-color: rgba(7, 9, 5, 0.9);
  padding: 3px 8px;
  pointer-events: none;
  letter-spacing: 0.5px;
  border: none !important;
  clip-path: none !important;
  transition: color 0.15s ease;
  z-index: 2;
}

.prompt-char-badge.is-near-limit {
  color: var(--px-lime);
}

.prompt-char-badge.is-at-limit {
  color: #ff5555;
}

.specs-active-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.prompt-active-content {
  width: 100%;
}

.specs-active-content.hidden,
.prompt-active-content.hidden {
  display: none !important;
}

/* Panel Empty & Upcoming States */
.panel-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  min-height: 220px !important;
  padding: 20px 20px !important;
  box-sizing: border-box !important;
  margin: auto 0 !important;
  animation: prompt-fade-in 0.2s ease-out;
}

.panel-empty-state.hidden {
  display: none !important;
}

.empty-state__face {
  font-family: var(--px-font);
  font-size: 3.6rem;
  color: var(--px-muted);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(113, 128, 150, 0.35);
  user-select: none;
}

.empty-state__msg {
  font-family: var(--px-font);
  font-size: 1.65rem;
  color: var(--px-gray);
  letter-spacing: 1px;
  text-transform: lowercase;
  user-select: none;
}

.empty-state__upcoming {
  font-family: var(--px-font);
  font-size: 2.4rem;
  color: var(--px-lime);
  letter-spacing: 1.5px;
  text-transform: lowercase;
  text-shadow: 0 0 16px rgba(214, 255, 0, 0.45);
  user-select: none;
  animation: pixel-blink 2s steps(2, start) infinite;
}

.prompt-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prompt-req-hint {
  font-family: var(--px-font);
  font-size: 1.25rem;
  color: #ffaa00;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.prompt-req-hint.is-ready {
  color: var(--px-lime);
  text-shadow: 0 0 10px rgba(214, 255, 0, 0.4);
}

.prompt-submit-btn {
  font-size: 1.55rem !important;
  padding: 14px 36px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.prompt-submit-btn.is-locked {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.8) !important;
  background-color: #555555 !important;
}

.prompt-submit-btn.is-locked::before {
  background-color: #121212 !important;
}

.prompt-submit-btn.is-unlocked {
  opacity: 1 !important;
  cursor: pointer !important;
  filter: drop-shadow(0 0 16px rgba(214, 255, 0, 0.75)) !important;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 24px rgba(214, 255, 0, 0.95)); }
  100% { filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.6)); }
}

.prompt-submit-btn:disabled {
  cursor: not-allowed !important;
}

/* Prompt Evaluation Feedback Box */
.prompt-feedback-box {
  margin-top: 20px !important;
  padding: 16px 24px !important;
  background-color: var(--px-lime) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  position: relative !important;
  filter: drop-shadow(0 0 20px rgba(214, 255, 0, 0.8)) !important;
  animation: prompt-fade-in 0.2s ease-out;
}

.prompt-feedback-box::before {
  background-color: var(--px-lime) !important;
}

.prompt-feedback-box.hidden {
  display: none !important;
}

.prompt-feedback-text {
  font-family: var(--px-font) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--px-black) !important;
  letter-spacing: 1px !important;
  text-transform: lowercase !important;
  text-shadow: none !important;
  z-index: 2 !important;
}

@keyframes prompt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .arena-prompt-panel {
    padding: 20px 16px !important;
  }
  .prompt-mission__title {
    font-size: 1.8rem;
  }
  .prompt-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── PROFILE OWNED NFTS INVENTORY ─── */
.profile-inventory-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.inventory-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inventory-header__title {
  font-family: var(--px-font);
  font-size: 2.4rem;
  color: var(--px-lime);
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(214, 255, 0, 0.4);
}

.inventory-header__count {
  font-family: var(--px-font);
  font-size: 1.25rem;
  color: var(--px-black);
  background-color: var(--px-lime);
  padding: 3px 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

.profile-nfts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.profile-nft-card {
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #070905;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.profile-nft-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 12px rgba(214, 255, 0, 0.35));
}

.profile-nft-card__img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #141c0f;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    0 8px,
    4px 8px,
    4px 4px,
    8px 4px,
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 4px,
    calc(100% - 4px) 4px,
    calc(100% - 4px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 4px),
    4px calc(100% - 4px),
    4px calc(100% - 8px),
    0 calc(100% - 8px)
  );
  border: 2px solid rgba(214, 255, 0, 0.2);
}

.profile-nft-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}

.profile-nft-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-nft-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-nft-card__name {
  font-family: var(--px-font);
  font-size: 1.85rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.profile-nft-card__counters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(214, 255, 0, 0.25);
}

.nft-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  clip-path: none !important;
}

.nft-counter__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}

.nft-counter__val {
  font-family: var(--px-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--px-lime);
  line-height: 1;
  letter-spacing: 0.5px;
  text-shadow: none !important;
}

.nft-counter--medals .nft-counter__val {
  color: #ffd700;
  text-shadow: none !important;
}

.nft-counter--gems .nft-counter__val {
  color: #5ce1e6;
  text-shadow: none !important;
}

@media (max-width: 600px) {
  .profile-nfts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .profile-nft-card {
    padding: 10px !important;
  }
  .profile-nft-card__name {
    font-size: 1.6rem;
  }
  .nft-counter {
    gap: 6px;
  }
  .nft-counter__icon {
    width: 22px;
    height: 22px;
  }
  .nft-counter__val {
    font-size: 1.8rem;
  }
}




