/* ============================================================================
   JOGO — Astrubia: PvP, PvM e um mundo em evolução
   ========================================================================== */

/* ---- hero ------------------------------------------------------------------ */
.uni-hero {
  position: relative;
  min-height: min(92svh, 940px);
  display: grid;
  align-items: center;
  padding-block: clamp(8rem, 14vw, 11rem) clamp(4rem, 8vw, 6rem);
  isolation: isolate;
  overflow: hidden;
}

.uni-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--ink-850);
  background-image:
    url('/img/art/universo-hero.jpg'),
    radial-gradient(900px 500px at 60% 30%, rgba(240, 154, 62, .2), transparent 65%),
    linear-gradient(to bottom, #2e1e0d, #170e06);
  background-size: cover, auto, auto;
  background-position: center 38%;
  filter: saturate(1.18) brightness(1.03) contrast(1.04);
}

.uni-hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 66% at 50% 52%, rgba(10, 21, 17, .28), transparent 76%),
    linear-gradient(to bottom, rgba(4, 22, 19, .55), rgba(4, 20, 17, .2) 36%, var(--ink-900) 98%);
}

.uni-hero-body {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 1160px;
  text-align: center;
}

.uni-hero-body::before {
  content: '';
  position: absolute;
  inset: -22% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 64% at 50% 48%, rgba(3, 22, 18, .7), transparent 76%);
}

.uni-hero-body .h-display {
  max-width: 1160px;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  color: var(--text-strong);
  text-shadow: 0 4px 20px rgba(0, 12, 10, .94);
  text-wrap: balance;
}

.uni-hero-body .lead {
  max-width: 750px;
  margin-inline: auto;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 12, 10, .95);
}

.uni-hero-actions,
.evolution-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: .45rem;
}

.uni-hero-actions .btn--ghost {
  background: linear-gradient(to bottom, #78edf4, var(--arcane-400) 45%, var(--arcane-600));
  border-color: #7debf2;
  color: #04272c;
  box-shadow: inset 0 1px 0 rgba(230, 255, 255, .72), 0 12px 26px -10px rgba(24, 184, 207, .72);
}

/* ---- proposta de jogo ------------------------------------------------------ */
.uni-gameplay {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background:
    radial-gradient(760px 620px at 0% 45%, rgba(121, 202, 71, .14), transparent 70%),
    radial-gradient(820px 620px at 100% 55%, rgba(24, 184, 207, .13), transparent 70%),
    linear-gradient(to bottom, var(--ink-900), #09251f 48%, var(--ink-900));
}

.uni-gameplay::before,
.uni-ready::before,
.uni-economy::before,
.uni-evolution::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--noise);
  opacity: .58;
}

.gameplay-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.gameplay-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 690px;
  box-shadow: var(--shadow-panel), 0 0 48px -20px rgba(121, 202, 71, .5);
}

.gameplay-art img,
.economy-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) brightness(1.03) contrast(1.03);
}

.gameplay-art img { object-position: 56% center; }

.art-note {
  position: absolute;
  right: -1rem;
  bottom: 2.2rem;
  padding: .75rem 1.15rem;
  border: 1px solid rgba(255, 225, 128, .45);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 14px 30px rgba(0, 12, 10, .42);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #342003;
}

.gameplay-copy,
.economy-copy {
  display: grid;
  justify-items: start;
  gap: 1.35rem;
}

.gameplay-title,
.economy-title {
  font-size: clamp(2.35rem, 5.3vw, 4.65rem);
  line-height: 1.08;
  color: var(--text-strong);
  text-wrap: balance;
}

.gameplay-text,
.economy-lead {
  max-width: 42rem;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.72;
  color: var(--text-muted);
}

.game-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: .45rem;
}

.game-mode {
  position: relative;
  min-height: 205px;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(104, 227, 239, .24);
  background: linear-gradient(145deg, rgba(13, 75, 70, .86), rgba(4, 34, 31, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 38px rgba(0, 10, 9, .24);
}

.game-mode::after {
  content: '';
  position: absolute;
  width: 140px;
  aspect-ratio: 1;
  right: -65px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--mode-glow, rgba(24, 184, 207, .2));
  filter: blur(3px);
}

.game-mode--pvp {
  --mode-glow: rgba(255, 181, 27, .24);
  border-color: rgba(255, 212, 90, .28);
}

.game-mode-label {
  display: inline-block;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--arcane-300);
}

.game-mode--pvp .game-mode-label { color: var(--gold-300); }
.game-mode h3 { margin-bottom: .55rem; color: var(--text-strong); }
.game-mode p { color: var(--text-muted); line-height: 1.6; }

/* ---- sistemas funcionando -------------------------------------------------- */
.uni-ready {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 181, 27, .11), transparent 70%),
    linear-gradient(180deg, #061b19, #0a3029 52%, #061c19);
}

.ready-heading {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.ready-heading h2,
.evolution-inner h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  color: var(--text-strong);
  text-wrap: balance;
}

.ready-heading p,
.evolution-inner > p {
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.ready-numbers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: clamp(3rem, 6vw, 5rem) 1.25rem;
  border: 1px solid rgba(104, 227, 239, .22);
  background: rgba(3, 34, 30, .72);
  box-shadow: var(--shadow-panel);
}

.ready-number {
  min-height: 145px;
  display: grid;
  place-content: center;
  gap: .35rem;
  padding: 1.4rem;
  text-align: center;
}

.ready-number + .ready-number { border-left: 1px solid rgba(104, 227, 239, .17); }

.ready-number strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 1;
  color: var(--gold-300);
  text-shadow: 0 0 20px rgba(255, 181, 27, .2);
}

.ready-number:nth-child(3) strong { color: var(--leaf-300); }
.ready-number:nth-child(4) strong { color: var(--arcane-300); }

.ready-number span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.systems-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.system-card {
  position: relative;
  min-height: 390px;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  overflow: hidden;
  border: 1px solid rgba(104, 227, 239, .19);
  background: linear-gradient(145deg, rgba(13, 70, 64, .8), rgba(3, 31, 28, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 42px rgba(0, 10, 9, .22);
}

.system-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -100px auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(24, 184, 207, .09);
}

.system-card--dofus {
  border-color: rgba(255, 212, 90, .24);
  background: linear-gradient(145deg, rgba(76, 67, 26, .56), rgba(24, 44, 30, .94));
}

.system-card--dofus::after { background: rgba(255, 181, 27, .11); }

.system-index {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(104, 227, 239, .14);
}

.system-card--dofus .system-index { color: rgba(255, 212, 90, .16); }

.system-card h3 {
  max-width: calc(100% - 3rem);
  margin-bottom: .55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.system-card > p {
  max-width: 30rem;
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: .85rem;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.5;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .05em;
  display: grid;
  place-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(121, 202, 71, .15);
  color: var(--leaf-300);
  font-size: .7rem;
  font-weight: 900;
}

.feature-list--dofus { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-list--dofus li::before {
  background: rgba(255, 181, 27, .14);
  color: var(--gold-300);
}

/* ---- economia -------------------------------------------------------------- */
.uni-economy {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background:
    radial-gradient(800px 580px at 0% 70%, rgba(255, 181, 27, .11), transparent 70%),
    linear-gradient(180deg, var(--ink-900), #09241f, var(--ink-900));
}

.economy-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.economy-emphasis {
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-300);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-200);
}

.economy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: .65rem;
  list-style: none;
}

.economy-flow li {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: .95rem .65rem;
  border-top: 1px solid rgba(255, 212, 90, .32);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text);
}

.economy-flow li:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-300);
}

.economy-flow span { color: var(--gold-400); font-size: .68rem; }

.economy-art {
  position: relative;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-panel), 0 0 48px -20px rgba(255, 181, 27, .4);
}

.brasil-stamp {
  position: absolute;
  left: -1.4rem;
  bottom: 1.7rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 310px;
  padding: .85rem 1rem;
  border: 1px solid rgba(178, 232, 97, .45);
  background: rgba(3, 42, 34, .94);
  box-shadow: 0 16px 35px rgba(0, 12, 10, .5);
}

.brasil-flag {
  flex: none;
  display: grid;
  place-content: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #f8d64e;
  background: linear-gradient(145deg, #62bc42, #24723d);
  font-weight: 900;
  color: white;
}

.brasil-stamp div { display: grid; gap: .16rem; }
.brasil-stamp strong { color: var(--text-strong); }
.brasil-stamp small { color: var(--text-muted); line-height: 1.35; }

/* ---- evolução -------------------------------------------------------------- */
.uni-evolution {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5.5rem, 9vw, 8rem);
  overflow: hidden;
  background:
    linear-gradient(rgba(2, 27, 23, .83), rgba(2, 24, 21, .93)),
    url('/img/art/universo-dungeon.jpg') center 42% / cover;
}

.uni-evolution::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(24, 184, 207, .12), transparent 65%);
}

.evolution-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  max-width: 860px;
  text-align: center;
}

/* ---- responsivo ------------------------------------------------------------ */
@media (max-width: 960px) {
  .gameplay-grid { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 3rem; }
  .gameplay-title, .economy-title { font-size: clamp(2.2rem, 5.2vw, 3.65rem); }
  .game-modes { grid-template-columns: 1fr; }
  .game-mode { min-height: auto; }
  .economy-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 3rem; }
  .ready-number { min-height: 125px; }
}

@media (max-width: 760px) {
  .uni-hero { min-height: 88svh; }
  .uni-hero-art { background-position: 58% center; }
  .uni-hero-body .h-display { font-size: clamp(2.55rem, 11vw, 4rem); }
  .uni-hero-body .lead { font-size: 1.05rem; }
  .uni-hero-actions { width: 100%; }
  .uni-hero-actions .btn { width: 100%; }

  .gameplay-grid,
  .economy-grid { grid-template-columns: 1fr; }

  .gameplay-copy { order: 1; }
  .gameplay-art { order: 2; width: min(100%, 470px); justify-self: center; max-height: none; }
  .art-note { right: .8rem; }

  .ready-numbers { grid-template-columns: repeat(2, 1fr); }
  .ready-number + .ready-number { border-left: 0; }
  .ready-number:nth-child(even) { border-left: 1px solid rgba(104, 227, 239, .17); }
  .ready-number:nth-child(n + 3) { border-top: 1px solid rgba(104, 227, 239, .17); }

  .systems-grid { grid-template-columns: 1fr; }
  .system-card { min-height: auto; }

  .economy-art { width: min(100%, 560px); justify-self: center; }
  .brasil-stamp { left: .8rem; }
}

@media (max-width: 480px) {
  .uni-hero-body .h-display { font-size: clamp(2.15rem, 9.5vw, 3.25rem); }
  .gameplay-title br { display: none; }
  .ready-numbers { grid-template-columns: 1fr; }
  .ready-number:nth-child(even) { border-left: 0; }
  .ready-number + .ready-number { border-top: 1px solid rgba(104, 227, 239, .17); }
  .feature-list--dofus { grid-template-columns: 1fr; }
  .economy-flow { grid-template-columns: repeat(2, 1fr); }
  .economy-flow li:nth-child(2)::after { display: none; }
  .brasil-stamp { position: relative; left: auto; bottom: auto; margin: -1rem .75rem 0; }
  .evolution-actions { width: 100%; }
  .evolution-actions .btn { width: 100%; }
}
