:root {
  --war-bg: #070507;
  --war-panel: rgba(12, 8, 9, .88);
  --war-panel-2: rgba(27, 16, 12, .84);
  --war-line: rgba(255, 192, 74, .28);
  --war-line-hot: rgba(255, 117, 36, .42);
  --war-gold: #ffd36a;
  --war-amber: #ff9d32;
  --war-red: #d93b2f;
  --war-teal: #54e2d4;
  --war-text: #fff4df;
  --war-muted: #bfae92;
  --war-radius: 8px;
}

body {
  background: var(--war-bg);
}

body:before {
  background:
    linear-gradient(180deg, rgba(4, 2, 4, .4), rgba(4, 2, 4, .92) 72%),
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .78)),
    url('/img/FundoSite.png') center top / cover no-repeat;
  filter: saturate(1.12) contrast(1.08);
  transform: none;
}

body:after {
  background:
    linear-gradient(0deg, rgba(255, 205, 110, .045) 1px, transparent 1px),
    linear-gradient(115deg, rgba(217, 59, 47, .14), transparent 24%, rgba(84, 226, 212, .07) 72%, transparent);
  background-size: 100% 6px, auto;
  opacity: .72;
}

.ambient {
  display: none;
}

.topbar {
  min-height: 74px;
  background:
    linear-gradient(180deg, rgba(8, 5, 7, .98), rgba(8, 5, 7, .86)),
    linear-gradient(90deg, rgba(255, 157, 50, .12), transparent 36%, rgba(217, 59, 47, .1));
  border-bottom: 1px solid var(--war-line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45);
}

.brand {
  min-width: 0;
  gap: .8rem;
}

.brand-mark {
  width: 4.15rem;
  height: 4.15rem;
  border-radius: var(--war-radius);
  background: rgba(255, 211, 106, .06);
  border: 1px solid rgba(255, 211, 106, .22);
  box-shadow: 0 0 28px rgba(255, 157, 50, .22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);
  filter: drop-shadow(0 0 12px rgba(255, 211, 106, .45));
}

.brand strong {
  font-size: 1.05rem;
  color: var(--war-text);
  text-shadow: 0 0 18px rgba(255, 211, 106, .28);
}

.brand small {
  color: var(--war-gold);
}

.nav-links {
  gap: .35rem;
  padding: .25rem;
  border: 1px solid rgba(255, 211, 106, .1);
  background: rgba(0, 0, 0, .24);
  border-radius: var(--war-radius);
}

.nav-links a {
  position: relative;
  overflow: hidden;
  border-radius: var(--war-radius);
  border: 1px solid transparent;
  color: #f2e6d2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .65);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-links a:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 58%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-22deg);
  transition: left .32s ease;
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .28rem;
  height: 2px;
  background: linear-gradient(90deg, var(--war-red), var(--war-gold), var(--war-teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #170c03;
  background: linear-gradient(135deg, var(--war-gold), var(--war-amber));
  border-color: rgba(255, 236, 174, .48);
  box-shadow: 0 0 24px rgba(255, 157, 50, .22), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.nav-links a:hover:before,
.nav-links a.active:before {
  left: 118%;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  transform: scaleX(1);
}

.btn-nav {
  box-shadow: 0 0 22px rgba(255, 157, 50, .22);
}

.section-card,
.panel-card,
.server-card,
.cta-card,
.news-card,
.guide-card,
.drop-card,
.donate-card,
.dash-action {
  border-radius: var(--war-radius);
  border-color: var(--war-line);
  background:
    linear-gradient(145deg, rgba(18, 10, 10, .88), rgba(9, 6, 10, .88)),
    linear-gradient(90deg, rgba(255, 211, 106, .04), transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .52), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.section-card {
  position: relative;
  overflow: hidden;
}

.section-card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 211, 106, .24);
  background: linear-gradient(110deg, rgba(255, 211, 106, .06), transparent 32%, rgba(217, 59, 47, .05));
}

.section-card > * {
  position: relative;
  z-index: 1;
}

.btn,
.filter-bar input,
.filter-bar select,
.stack-form input,
.stack-form textarea,
.grid-form input,
.grid-form textarea,
.mini-edit input,
.inline-form input,
.pix-info textarea,
.ticket-admin-status select,
.ticket-row-status select {
  border-radius: var(--war-radius);
}

.btn {
  min-height: 42px;
  text-transform: none;
  border-color: rgba(255, 211, 106, .24);
}

.btn-primary {
  background: linear-gradient(135deg, var(--war-gold), var(--war-amber) 56%, #ff7a2f);
  box-shadow: 0 0 22px rgba(255, 157, 50, .2);
}

.btn:hover,
.dash-action:hover,
.cta-card:hover,
.donate-card:hover,
.drop-card:hover,
.news-card:hover,
.guide-card:hover {
  border-color: rgba(255, 211, 106, .62);
  box-shadow: 0 22px 68px rgba(0, 0, 0, .58), 0 0 30px rgba(255, 157, 50, .16);
}

.is-clicking {
  animation: war-click .42s ease;
}

@keyframes war-click {
  0% { box-shadow: 0 0 0 rgba(255, 211, 106, 0); }
  45% { box-shadow: 0 0 0 4px rgba(255, 211, 106, .18), 0 0 28px rgba(217, 59, 47, .22); }
  100% { box-shadow: 0 0 0 rgba(255, 211, 106, 0); }
}

.hero-shell {
  min-height: 31rem;
}

.hero-content h1,
.launch-copy h2 {
  font-size: 6.25rem;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #3a1808, 0 0 34px rgba(255, 157, 50, .36);
}

.hero-content p,
.lead,
.panel-card p,
.lore-card p,
.cta-card small,
.dash-action small {
  color: #d9c6a9;
}

.server-card {
  background: linear-gradient(150deg, rgba(12, 8, 9, .9), rgba(30, 17, 11, .74));
}

.server-orb {
  border-radius: 999px;
  background: linear-gradient(135deg, #40ff91, var(--war-teal));
}

.launch-hero {
  min-height: 25rem;
  background:
    linear-gradient(105deg, rgba(12, 8, 9, .94), rgba(12, 8, 9, .7) 48%, rgba(67, 23, 14, .74)),
    url('/img/noticiaprincipal.png') right -2rem center / auto 120% no-repeat,
    url('/img/FundoSite.png') center / cover no-repeat;
}

.myth-card img {
  border-radius: var(--war-radius);
}

.dashboard-hero-card {
  min-height: 15rem;
  padding-right: min(23rem, 30vw);
  background:
    linear-gradient(100deg, rgba(13, 8, 9, .94), rgba(13, 8, 9, .74) 62%, rgba(13, 8, 9, .9)),
    url('/img/footer-bg.png') center / cover no-repeat;
}

.dashboard-hero-card h2 {
  margin: .2rem 0 .4rem;
  font-family: Georgia, serif;
  font-size: 2.9rem;
  letter-spacing: 0;
}

.dashboard-hero-card p {
  max-width: 42rem;
  color: #d9c6a9;
}

.dashboard-god {
  position: absolute;
  bottom: -1.1rem;
  width: 13rem;
  max-width: 22vw;
  opacity: .72;
  filter: drop-shadow(0 0 22px rgba(255, 157, 50, .28));
  pointer-events: none;
}

.dashboard-god-left {
  right: 10rem;
}

.dashboard-god-right {
  right: .5rem;
}

.dashboard-grid .dash-action {
  min-height: 9rem;
}

.dash-action:before,
.cta-card:before,
.donate-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 211, 106, .09), transparent 36%, rgba(84, 226, 212, .05));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.dash-action:hover:before,
.cta-card:hover:before,
.donate-card:hover:before {
  opacity: 1;
}

.donation-head {
  background:
    linear-gradient(115deg, rgba(12, 8, 9, .94), rgba(12, 8, 9, .84) 55%, rgba(52, 22, 12, .74)),
    url('/img/BM.png') right 2rem bottom -2rem / 14rem auto no-repeat;
}

.donate-card {
  min-height: 22rem;
}

.donate-card h3 {
  min-height: 2.8rem;
}

.coin {
  color: var(--war-teal);
  text-shadow: 0 0 18px rgba(84, 226, 212, .3);
}

.pix-qr {
  border-radius: var(--war-radius);
  background:
    linear-gradient(145deg, rgba(255, 211, 106, .08), rgba(84, 226, 212, .05)),
    rgba(0, 0, 0, .24);
}

.droplist-page {
  background:
    linear-gradient(115deg, rgba(12, 8, 9, .94), rgba(12, 8, 9, .78)),
    url('/img/TK.png') right 2rem bottom -3rem / 14rem auto no-repeat;
}

.drop-region {
  background:
    linear-gradient(145deg, rgba(16, 9, 10, .93), rgba(10, 6, 9, .9)),
    url('/img/footer-bg.png') center / cover no-repeat;
}

.drop-card {
  background:
    linear-gradient(150deg, rgba(17, 10, 12, .94), rgba(35, 15, 12, .82)),
    linear-gradient(90deg, rgba(255, 211, 106, .05), transparent);
}

.mob-icon {
  border-radius: var(--war-radius);
  border: 1px solid rgba(255, 211, 106, .18);
  background: rgba(255, 211, 106, .08);
}

.drop-item {
  max-width: 14.5rem;
  border-radius: var(--war-radius);
  border-color: rgba(255, 211, 106, .16);
  background: rgba(0, 0, 0, .24);
}

.drop-item img {
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(255, 211, 106, .16);
  background: rgba(0, 0, 0, .35);
  border-radius: 6px;
}

.auth-card {
  background:
    linear-gradient(135deg, rgba(12, 8, 9, .95), rgba(12, 8, 9, .86)),
    url('/img/FM.png') right -2rem bottom -3rem / 13rem auto no-repeat;
}

.g-recaptcha {
  width: fit-content;
  max-width: 100%;
  padding: .55rem;
  border: 1px solid rgba(255, 211, 106, .22);
  background: linear-gradient(145deg, rgba(255, 211, 106, .08), rgba(0, 0, 0, .38));
  border-radius: var(--war-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: clamp(.75rem, 2vw, 1.4rem);
  z-index: 200;
  display: grid;
  gap: .7rem;
  width: min(24rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast-alert {
  margin: 0;
  pointer-events: auto;
  animation: toast-in .28s ease both;
  backdrop-filter: blur(16px);
}

.toast-hide {
  animation: toast-out .42s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}

.alert-success {
  border-color: rgba(84, 226, 212, .38);
  background: linear-gradient(135deg, rgba(84, 226, 212, .14), rgba(6, 22, 20, .86));
}

.alert-error {
  border-color: rgba(217, 59, 47, .44);
  background: linear-gradient(135deg, rgba(217, 59, 47, .18), rgba(24, 7, 8, .9));
}

.alert-warning,
.alert-web {
  border-color: rgba(255, 211, 106, .4);
  background: linear-gradient(135deg, rgba(255, 211, 106, .14), rgba(27, 15, 7, .9));
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.ticket-meta-grid div {
  padding: .85rem;
  border: 1px solid rgba(255, 211, 106, .16);
  background: rgba(0, 0, 0, .22);
  border-radius: var(--war-radius);
}

.ticket-meta-grid small {
  display: block;
  color: var(--war-muted);
}

.ticket-meta-grid b {
  display: block;
  margin-top: .25rem;
  color: var(--war-gold);
}

.ticket-admin-status,
.ticket-row-status {
  display: flex;
  align-items: end;
  gap: .6rem;
}

.ticket-admin-status {
  flex-wrap: wrap;
  padding: .85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 211, 106, .16);
  background: rgba(0, 0, 0, .22);
  border-radius: var(--war-radius);
}

.ticket-admin-status label {
  display: grid;
  gap: .35rem;
  min-width: 14rem;
  color: var(--war-muted);
  font-weight: 900;
}

.ticket-admin-status select,
.ticket-row-status select {
  min-height: 42px;
  border: 1px solid rgba(255, 211, 106, .24);
  background: rgba(8, 5, 8, .92);
  color: var(--war-text);
  padding: .55rem .75rem;
}

.ticket-row-status {
  min-width: 17rem;
}

.ticket-status-new {
  color: var(--war-teal);
  border-color: rgba(84, 226, 212, .42);
  background: rgba(84, 226, 212, .1);
}

.ticket-status-progress {
  color: #9fc8ff;
  border-color: rgba(159, 200, 255, .4);
  background: rgba(64, 112, 200, .12);
}

.ticket-status-pending {
  color: var(--war-gold);
  border-color: rgba(255, 211, 106, .42);
  background: rgba(255, 211, 106, .1);
}

.ticket-status-closed {
  color: #ffaaa2;
  border-color: rgba(217, 59, 47, .42);
  background: rgba(217, 59, 47, .12);
}

.admin-hero {
  background:
    linear-gradient(115deg, rgba(12, 8, 9, .95), rgba(12, 8, 9, .82)),
    url('/img/HT.png') right 1rem bottom -3rem / 14rem auto no-repeat;
}

.game-table th {
  background: linear-gradient(90deg, rgba(255, 211, 106, .12), rgba(217, 59, 47, .08));
}

.game-table tr:hover td {
  background: rgba(255, 211, 106, .045);
}

.btn-compact {
  min-height: 34px;
  padding: .45rem .68rem;
  font-size: .8rem;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  min-width: 9rem;
}

.admin-data-hero {
  background:
    linear-gradient(115deg, rgba(12, 8, 9, .95), rgba(12, 8, 9, .82)),
    url('/img/BM.png') right 1rem bottom -3rem / 14rem auto no-repeat;
}

.admin-data-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-data-nav {
  position: sticky;
  top: 9rem;
  max-height: calc(100vh - 10rem);
  overflow: auto;
}

.admin-data-group {
  display: grid;
  gap: .4rem;
  padding-bottom: .8rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid rgba(255, 211, 106, .12);
}

.admin-data-group small {
  color: var(--war-gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-data-group a {
  padding: .58rem .7rem;
  border: 1px solid rgba(255, 211, 106, .12);
  background: rgba(0, 0, 0, .22);
  border-radius: var(--war-radius);
  color: #e5d6bf;
  font-weight: 800;
}

.admin-data-group a:hover,
.admin-data-group a.active {
  color: #1d1004;
  border-color: rgba(255, 236, 174, .48);
  background: linear-gradient(135deg, var(--war-gold), var(--war-amber));
  box-shadow: 0 0 22px rgba(255, 157, 50, .18);
}

.admin-data-panel {
  min-width: 0;
}

.admin-data-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.admin-data-scroll {
  border-color: rgba(255, 211, 106, .18);
}

.admin-data-table {
  min-width: 1120px;
}

.admin-data-table th {
  white-space: nowrap;
}

.admin-data-table td {
  vertical-align: top;
}

.admin-data-table code {
  display: inline-block;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ead9bf;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 211, 106, .1);
  border-radius: 6px;
  padding: .22rem .35rem;
}

.create-row td {
  background: rgba(255, 211, 106, .035);
}

.cell-input {
  width: 9rem;
  min-height: 36px;
  border: 1px solid rgba(255, 211, 106, .18);
  background: rgba(7, 5, 8, .86);
  color: var(--war-text);
  border-radius: 6px;
  padding: .45rem .55rem;
  outline: 0;
}

.cell-textarea {
  width: 14rem;
  min-height: 4.25rem;
  resize: vertical;
}

.cell-input:focus {
  border-color: rgba(255, 211, 106, .6);
  box-shadow: 0 0 0 3px rgba(255, 211, 106, .08);
}

@media (max-width: 1100px) {
  .hero-content h1,
  .launch-copy h2 {
    font-size: 4.8rem;
  }

  .dashboard-hero-card {
    padding-right: 1.2rem;
  }

  .dashboard-god {
    opacity: .18;
  }
}

@media (max-width: 780px) {
  .topbar {
    min-height: 66px;
  }

  .brand-mark {
    width: 3.35rem;
    height: 3.35rem;
  }

  .nav-links {
    background: rgba(8, 5, 7, .98);
    border-radius: var(--war-radius);
  }

  .hero-content h1,
  .launch-copy h2 {
    font-size: 3.8rem;
  }

  .dashboard-hero-card h2 {
    font-size: 2.25rem;
  }

  .ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .ticket-row-status {
    min-width: 100%;
  }

  .admin-data-layout {
    grid-template-columns: 1fr;
  }

  .admin-data-nav {
    position: static;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .hero-content h1,
  .launch-copy h2 {
    font-size: 3.1rem;
  }

  .toast-stack {
    top: 76px;
  }
}
