﻿/* ============================================================
   Chakra Idle Brasil - Full In-Game Theme Override
   Aplica o visual do Chakra Idle Brasil sobre o HUD compilado
   ============================================================ */

@font-face {
  font-family: "NarutoFont";
  src: url("/assets/fonts/naruto.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NinjaTitle";
  src: url("/assets/fonts/Bangers-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NinjaUI";
  src: url("/assets/fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NinjaHard";
  src: url("/assets/fonts/BlackOpsOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --n-orange: #FF6B00;
  --n-orange-deep: #C45A10;
  --n-gold: #FFD700;
  --n-gold-soft: #E0AD45;
  --n-cream: #F2E6D0;
  --n-ink: #0A0A0F;
  --n-panel: rgba(10, 8, 14, 0.94);
  --n-border: #85652c;
  --n-chakra: #1E90FF;
}

/* Base */
html, body, #root {
  font-family: "NinjaUI", "Russo One", "Segoe UI", sans-serif !important;
  color: var(--n-cream);
}

/* Titles / pixel panels -> Naruto look */
.pixel-panel,
[class*="Panel"],
[class*="panel"] {
  border-color: var(--n-border) !important;
}

/* ========== TOP HUD ========== */
[class*="_topHud_"] {
  background:
    linear-gradient(180deg, rgba(28, 18, 8, 0.98) 0%, rgba(8, 6, 10, 0.98) 100%) !important;
  border-top: 2px solid #5a3a12 !important;
  border-bottom: 2px solid var(--n-gold-soft) !important;
  box-shadow:
    0 4px 18px rgba(0,0,0,.75),
    inset 0 -2px 0 rgba(255, 180, 40, 0.25),
    0 0 40px rgba(255, 107, 0, 0.12) !important;
  height: 62px !important;
  backdrop-filter: blur(6px);
}

[class*="_topHud_"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--n-orange), var(--n-gold), var(--n-orange), transparent);
  background-size: 200% 100%;
  animation: nBorderFlow 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes nBorderFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

[class*="_topHudCurrency_"] {
  background: linear-gradient(90deg, rgba(30,18,6,.95), rgba(12,10,8,.85)) !important;
  border-right: 1px solid #a07830 !important;
}

[class*="_topHudCurrencyLabel_"],
[class*="_topHudCurrencyValue_"] {
  font-family: "NinjaTitle", "Bangers", cursive !important;
  letter-spacing: 1px !important;
  color: var(--n-gold) !important;
  text-shadow: 0 0 10px rgba(255,180,0,.45), 1px 1px 0 #000 !important;
}

[class*="_topHudCurrencyIcon_"] {
  filter: drop-shadow(0 0 6px rgba(255,200,0,.5)) !important;
  image-rendering: auto !important;
  width: 30px !important;
  height: 30px !important;
}

[class*="_topHudMenuButton_"] {
  background: linear-gradient(180deg, rgba(30,22,12,.7), rgba(8,8,10,.95)) !important;
  border-right: 1px solid rgba(160,120,40,.45) !important;
  transition: background .2s, transform .15s, filter .2s !important;
  gap: 3px !important;
}

[class*="_topHudMenuButton_"]:hover {
  background: linear-gradient(180deg, rgba(80,45,10,.85), rgba(20,12,6,.95)) !important;
  filter: brightness(1.15);
}

[class*="_topHudMenuButtonActive_"] {
  background: linear-gradient(180deg, rgba(90,55,12,.95), rgba(20,12,4,.98)) !important;
  box-shadow: inset 0 -3px 0 var(--n-orange), inset 0 0 20px rgba(255,107,0,.15) !important;
}

[class*="_topHudMenuIcon_"] {
  max-width: 34px !important;
  max-height: 34px !important;
  image-rendering: auto !important;
  filter: drop-shadow(0 2px 2px #000) drop-shadow(0 0 4px rgba(255,160,0,.35)) !important;
  transition: transform .2s !important;
}

[class*="_topHudMenuButton_"]:hover [class*="_topHudMenuIcon_"] {
  transform: translateY(-2px) scale(1.08) !important;
}

[class*="_topHudMenuLabel_"] {
  font-family: "NinjaUI", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.4px !important;
  color: #f5e6c8 !important;
  text-transform: uppercase;
}

[class*="_topHudMenuButtonActive_"] [class*="_topHudMenuLabel_"] {
  color: var(--n-gold) !important;
  text-shadow: 0 0 8px rgba(255,200,0,.5) !important;
}

[class*="_topHudNotification_"] {
  background: linear-gradient(135deg, #e53935, #b71c1c) !important;
  border: 1px solid #ffab91 !important;
  box-shadow: 0 0 8px rgba(229,57,53,.6) !important;
  font-family: "NinjaUI", sans-serif !important;
}

[class*="_topHudActionButton_"] {
  background: linear-gradient(180deg, #2a1c0e, #121010) !important;
  border: 1px solid #a07830 !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 10px rgba(255,160,0,.08) !important;
  transition: transform .15s, box-shadow .2s !important;
}
[class*="_topHudActionButton_"]:hover {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255,107,0,.35) !important;
}

/* ========== LEFT PANEL ========== */
[class*="_leftPanelArea_"] {
  width: auto !important;
  min-width: 280px;
}

/* ========== CHARACTER / PANELS ========== */
[class*="_characterPanel_"],
.admin-panel,
[class*="inventory"],
.pixel-panel {
  box-shadow: 0 8px 30px rgba(0,0,0,.55), 0 0 20px rgba(255,107,0,.08) !important;
}

/* Buttons / common text */
button {
  font-family: inherit;
}

/* Soft orange vignette over game */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,107,0,.06), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(30,144,255,.04), transparent 40%);
}

/* Kill pixel / retro fonts -> Naruto comic fonts */
* {
  font-family: "NinjaUI", "Russo One", "Segoe UI", sans-serif !important;
}
[class*="_titleText_"],
[class*="_topHudCurrency"],
.nrmt-levelup-banner,
.nrmt-jutsu-flash,
h1, h2, h3 {
  font-family: "NinjaTitle", "Bangers", cursive !important;
}

/* Keep icons / canvas unfiltered */
img, canvas, svg, video {
  font-family: inherit !important;
}

/* VIP floating button */
#nrmt-vip-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FFD700, #FF6B00);
  color: #1a0a00;
  font-family: "NinjaTitle", cursive;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #fff3c0;
  box-shadow: 0 0 20px rgba(255,160,0,.45), 0 4px 14px rgba(0,0,0,.5);
  transition: transform .2s, filter .2s;
}
#nrmt-vip-fab:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}
