:root {
  --green: #3ddc97;
  --green-strong: #1fbf7c;
  --green-soft: #8bf5c8;
  --bg-0: #061015;
  --bg-1: #0b1a21;
  --bg-2: #102831;
  --panel: rgba(11, 26, 33, 0.78);
  --panel-solid: #10222b;
  --border: rgba(61, 220, 151, 0.28);
  --text: #ebfff6;
  --muted: #b5d8c8;
  --mono: #baf5d8;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      to bottom,
      rgba(6, 19, 38, 0.22) 0%,
      rgba(7, 18, 34, 0.34) 50%,
      rgba(3, 7, 13, 0.56) 100%
    ),
    radial-gradient(circle at 50% 42%, rgba(8, 26, 44, 0.28) 0%, rgba(4, 10, 18, 0.68) 100%),
    url("assets/images/background.png") center center / auto no-repeat,
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
  background-attachment: fixed;
  padding: 2rem 1rem 2.6rem;
  letter-spacing: 0.01em;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.index-page .wrap {
  min-height: calc(100vh - 4.6rem);
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 1.1rem;
}

.mobile-hero {
  width: min(420px, 100%);
  margin: 0 auto 0.85rem;
  padding: 0.2rem 0 0.2rem;
}

.mobile-hero-logo-image {
  width: min(320px, 92%);
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.hero-wiki-label {
  margin: 0.2rem 0 0.7rem;
  color: rgba(235, 255, 246, 0.9);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-badges {
  margin-top: 0.1rem;
}

.store-footer-section {
  margin-top: auto;
  padding-top: 1.15rem;
}

.index-kpis {
  margin-top: 0.2rem;
}

.index-links {
  align-items: stretch;
}

.quick-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 245, 200, 0.38);
}

.quick-link h3 {
  margin-top: 0.35rem;
}

.quick-link p {
  margin: 0.3rem 0 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  max-width: 74ch;
  margin: 0.55rem auto 1.1rem;
}

.nav {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(16, 40, 49, 0.55);
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: all 180ms ease;
}

.nav a:hover {
  border-color: var(--green);
  background: rgba(61, 220, 151, 0.14);
  transform: translateY(-1px);
}

.grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.project-overview {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 700;
}

.store-block {
  margin-top: 0.3rem;
}

.store-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.store-badge {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(19, 43, 53, 0.9), rgba(10, 28, 35, 0.9));
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  transition: all 180ms ease;
}

.store-badge:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
  transform: translateY(-1px);
}

.kpi {
  font-size: 1.85rem;
  color: var(--green-soft);
  font-weight: 800;
  margin-top: 0.3rem;
}

.muted {
  color: var(--muted);
}

.section {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(6, 16, 21, 0.24);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.62rem;
  border-bottom: 1px solid rgba(139, 245, 200, 0.14);
}

th {
  color: var(--green-soft);
  font-weight: 700;
}

td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
  color: var(--muted);
}

ul,
ol {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.42rem;
}

.class-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 0.75rem;
}

.class-focus {
  background: rgba(6, 16, 21, 0.28);
  border: 1px solid rgba(139, 245, 200, 0.16);
  border-radius: 12px;
  padding: 0.8rem;
}

.class-focus p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.tier-accordion {
  padding: 0.75rem 0.9rem;
}

.tier-accordion + .tier-accordion {
  margin-top: 0.7rem;
}

.tier-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.tier-accordion summary::-webkit-details-marker {
  display: none;
}

.tier-title {
  font-weight: 800;
  color: var(--green-soft);
}

.tier-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.tier-mobs-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.7rem;
}

.mob-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  border: 1px solid rgba(139, 245, 200, 0.16);
  border-radius: 12px;
  padding: 0.62rem;
  background: rgba(6, 16, 21, 0.35);
}

.mob-media {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(139, 245, 200, 0.24);
  background: rgba(16, 40, 49, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mob-media img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mob-content h4 {
  margin: 0;
  font-size: 1rem;
}

.mob-perk-row {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.perk-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  background: rgba(61, 220, 151, 0.12);
  color: var(--green-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.3;
}

.mob-section-title {
  margin: 0.48rem 0 0.2rem;
  color: var(--green-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mob-stats {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.mob-stats span {
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  color: var(--mono);
  border: 1px solid rgba(61, 220, 151, 0.22);
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  background: rgba(6, 16, 21, 0.52);
}

.mob-stats .stat-diamonds {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.mob-stats .stat-diamonds img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mob-stats .diamond-emoji {
  font-size: 0.92rem;
  line-height: 1;
}

.special-rewards-wrap {
  margin-top: 0.18rem;
  display: flex;
  align-items: center;
}

.special-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  background: linear-gradient(180deg, rgba(9, 44, 61, 0.85), rgba(7, 30, 42, 0.9));
  box-shadow: inset 0 0 0 1px rgba(7, 89, 133, 0.25);
  color: #d6f2ff;
}

.special-reward-chip .diamond-emoji {
  font-size: 0.9rem;
}

.special-reward-chip em {
  font-style: normal;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
}

.mob-resists {
  margin-top: 0.45rem;
}

.mob-resists p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.res-list {
  margin-top: 0.46rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.26rem;
}

.res-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  border: 1px solid rgba(139, 245, 200, 0.22);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  background: rgba(8, 23, 29, 0.72);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
}

.res-row-main {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.res-row-main img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45));
}

.res-row b {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.res-row em {
  font-family: "DM Mono", monospace;
  font-style: normal;
}

.res-row-value {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.04rem;
}

.res-row-value small {
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.8;
}

.res-row.weak {
  border-color: rgba(122, 230, 172, 0.45);
  background: linear-gradient(180deg, rgba(92, 176, 130, 0.22), rgba(60, 143, 98, 0.18));
  color: #d7ffe8;
}

.res-row.strong {
  border-color: rgba(255, 220, 132, 0.45);
  background: linear-gradient(180deg, rgba(180, 154, 70, 0.24), rgba(143, 118, 44, 0.2));
  color: #fff3c9;
}

.res-row.immune {
  border-color: rgba(255, 140, 140, 0.5);
  background: linear-gradient(180deg, rgba(177, 73, 73, 0.3), rgba(139, 53, 53, 0.24));
  color: #ffdede;
}

.res-row.neutral {
  border-color: rgba(173, 216, 230, 0.34);
  background: linear-gradient(180deg, rgba(84, 122, 140, 0.22), rgba(62, 96, 113, 0.18));
  color: #e8f6ff;
}


.bestiary-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px);
  gap: 0.7rem;
  align-items: center;
}

.bestiary-filters input,
.bestiary-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 16, 21, 0.6);
  color: var(--text);
  padding: 0.58rem 0.7rem;
  font-family: "DM Sans", sans-serif;
}

.boss-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.boss-card {
  grid-template-columns: 84px 1fr;
}

.boss-media {
  width: 84px;
  height: 84px;
}

.boss-media img {
  width: 76px;
  height: 76px;
}

code,
.mono {
  font-family: "DM Mono", monospace;
  color: var(--mono);
}

footer {
  text-align: center;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  body {
    padding: 1.3rem 0.7rem 1.8rem;
  }

  .panel {
    padding: 0.88rem;
  }

  .nav a {
    font-size: 0.87rem;
  }

  .bestiary-filters {
    grid-template-columns: 1fr;
  }

}

 .store-badge-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.store-badge-image:hover {
  transform: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.store-badges {
  justify-items: start;
}

.store-badge-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge-google img {
  transform: scale(0.96);
}

.store-badge-apple img {
  transform: scale(0.96);
}





.class-priority-list {
  margin-top: 0.5rem;
}

.class-card {
  display: grid;
  gap: 0.45rem;
}

.class-card-label {
  margin: 0.15rem 0 0;
  color: var(--green-soft);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
