@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

@font-face {
  font-family: 'KiwiSoda';
  src: url('KiwiSoda.ttf') format('truetype');
  font-weight: normal;
}

::selection {
  background: #57A711;
  color: #f0f0f0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; 
}

body {
  background: #0a0a0a;
  color: #f0f0f0;
  font-family: 'Source Code Pro', monospace;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}



body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */

.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ── */

.sidebar {
  width: 20%;
  background: #111111;
  border-right: 1px solid #222222;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid #222222;
}

.sidebar-logo h1 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1.8rem;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.sidebar-logo span {
  font-size: 0.68rem;
  color: #444444;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #222222;
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.8rem;
  background: #0a0a0a;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-search input:focus { border-color: #555; }
.sidebar-search input::placeholder { color: #444444; }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 1.25rem;
  right: 1.25rem;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}

.search-results.visible { display: block; }

.search-result-item {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid #222222;
  color: #f0f0f0;
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #222222; }

.search-result-item .result-section {
  font-size: 0.65rem;
  color: #444444;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav { padding: 1rem 0; flex: 1; }

.nav-section {
  padding: 0.75rem 1.5rem 0.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #444444;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: #888888;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

nav a:hover {
  color: #f0f0f0;
  background: #1a1a1a;
  border-left-color: #555;
}

nav a.active {
  color: #f0f0f0;
  background: #1a1a1a;
  border-left-color: #f0f0f0;
  font-weight: 500;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #444444;
  flex-shrink: 0;
  transition: background 0.15s;
}

nav a:hover .nav-dot,
nav a.active .nav-dot { background: #f0f0f0; }

/* ── Discord Link ── */

.sidebar-discord {
  padding: 1rem 1.25rem;
  border-top: 1px solid #222222;
  margin-top: auto;
}

.sidebar-discord a {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #888888;
  text-decoration: none;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  background: #1a1a1a;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  justify-content: center;
}

.sidebar-discord a:hover {
  color: #f0f0f0;
  background: #222222;
  border-color: #555;
}

.fa-discord {
  font-size: 1rem;
}

/* ── Main ── */

.main {
  margin-left: 20%;
  flex: 1;
  width: 80%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */

.hero {
  padding: 4rem 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #444444;
}

.hero h1 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 3.5rem;
  color: #f0f0f0;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: #888888;
  max-width: 540px;
  line-height: 1.8;
  font-style: italic;
}

/* ── Cards area ── */

.cards-area {
  padding: 2.5rem 3.5rem;
  flex: 1;
}

.cards-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cards-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #222222;
}

/* ── Section grid ── */

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #222222;
  border: 1px solid #222222;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8rem;
}

.section-card {
  background: #111111;
  padding: 1.6rem;
  text-decoration: none;
  color: #f0f0f0;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
}

.section-card:hover { background: #1a1a1a; }

.card-num {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #444444;
}

.section-card h3 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1.05rem;
  color: #f0f0f0;
  line-height: 1.2;
}

.section-card p {
  font-size: 0.78rem;
  color: #888888;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-size: 0.7rem;
  color: #444444;
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: color 0.15s;
}

.section-card:hover .card-link { color: #f0f0f0; }

/* ── Summary grid ── */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #222222;
  border: 1px solid #222222;
  border-radius: 12px;
  overflow: hidden;
}

.summary-block {
  background: #111111;
  padding: 1.5rem;
}

.summary-block h2 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.summary-block p {
  font-size: 0.82rem;
  color: #888888;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #444444;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}

.learn-more:hover { color: #f0f0f0; gap: 8px; }

/* ── Pills ── */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.75rem 0;
}

.pill {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid #2e2e2e;
  color: #888888;
  background: #1a1a1a;
}

.pill.highlight {
  border-color: #888888;
  color: #f0f0f0;
}

/* ── Quote block ── */

.quote-block {
  border-left: 2px solid #444444;
  padding: 0.6rem 1.25rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: #888888;
  font-style: italic;
  line-height: 1.8;
}

/* ── Tables ── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.75rem 0;
}

th {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222222;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222222;
  color: #888888;
}

tr:last-child td { border-bottom: none; }
td:first-child { color: #f0f0f0; font-weight: 500; }

/* ── Page header (inner pages) ── */

.page-header {
  border-bottom: 1px solid #222222;
  padding: 3rem 3.5rem 2rem;
}

.page-header h1 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 2.5rem;
  color: #f0f0f0;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.page-header .subtitle {
  font-size: 0.85rem;
  color: #888888;
  font-style: italic;
}

.page-content {
  padding: 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-block {
  background: #111111;
  border: 1px solid #222222;
  border-radius: 0;
  padding: 1.75rem;
  margin-bottom: 1px;
}

.content-block:first-child { border-radius: 12px 12px 0 0; }
.content-block:last-child  { border-radius: 0 0 12px 12px; }
.content-block:only-child  { border-radius: 12px; }

.content-block h2 {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 0.75rem;
}

.content-block p {
  font-size: 0.85rem;
  color: #888888;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.content-block p:last-of-type { margin-bottom: 0; }



/* ── Map ── */

.map-container {
  position: relative;
  border-bottom: 1px solid #222222;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  display: block;
}
/* ── Lightbox ── */

.map-container {
  cursor: zoom-in;
}

.map-container img {
  transition: opacity 0.2s;
}

.map-container:hover img { opacity: 0.85; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 105vw;
  max-height: 105vh;
  object-fit: cover;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.lightbox-close:hover { color: #f0f0f0; }
/* ── Creatures ── */

.creature-filters {
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.filter-btn {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid #2e2e2e;
  background: #111111;
  color: #888888;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { color: #f0f0f0; border-color: #555; }
.filter-btn.active { color: #57A711; border-color: #57A711; background: #1a1a1a; }

.creature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.creature-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #444444;
  font-size: 0.82rem;
  padding: 3rem 0;
  letter-spacing: 0.05em;
}

.creature-card {
  background: #111111;
  border: 1px solid #222222;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.creature-header {
  background: #1a1a1a;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #222222;
}

.creature-id {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 3px;
}

.creature-name {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1.4rem;
  color: #f0f0f0;
  line-height: 1;
}

.creature-rang {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid #2e2e2e;
  color: #888888;
  background: #111111;
  margin-top: 4px;
  white-space: nowrap;
}

.rang-E  { color: #888888; border-color: #333333; }
.rang-D  { color: #7a9e7a; border-color: #3a5a3a; background: rgba(80,140,80,0.08); }
.rang-C  { color: #7a9eb8; border-color: #3a5a6a; background: rgba(80,120,160,0.08); }
.rang-B  { color: #b8a87a; border-color: #6a5a3a; background: rgba(160,140,80,0.08); }
.rang-A  { color: #b87a7a; border-color: #6a3a3a; background: rgba(160,80,80,0.08); }
.rang-S  { color: #c87a50; border-color: #7a4a2a; background: rgba(180,100,60,0.1); }
.rang-SS { color: #d4a030; border-color: #8a6020; background: rgba(200,150,40,0.1); }

.creature-desc {
  padding: 0.9rem 1.25rem;
  font-size: 0.78rem;
  color: #888888;
  line-height: 1.7;
  border-bottom: 1px solid #222222;
  font-style: italic;
}

.creature-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #222222;
  border-bottom: 1px solid #222222;
}

.creature-stat {
  background: #0d0d0d;
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.creature-stat.stat-pv { border-left: 2px solid #57A711; }

.stat-label {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 3px;
}

.stat-value {
  font-family: 'KiwiSoda', sans-serif;
  font-size: 1.3rem;
  color: #f0f0f0;
  line-height: 1;
}

.stat-pv .stat-value { color: #57A711; }

.stat-bar-track {
  height: 3px;
  background: #222222;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 5px;
}

.bar-fill       { height: 100%; background: #57A71175; border-radius: 99px; }
.bar-fill.high  { background: #57A711; }
.bar-fill.low   { background: #57A71150; }

.creature-capacities {
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.capacities-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 2px;
}

.creature-capacity {
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.capacity-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #f0f0f0;
}

.capacity-tags {
  display: flex;
  gap: 6px;
}

.capacity-tag {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 99px;
}

.tag-attack  { background: #b89a3a10;  color: #b89a3a; border: 1px solid #b89a3a25; }
.tag-passive { background: #57A71110;   color: #57A711; border: 1px solid #57A71125; }
.tag-technique { background: #4f9ed610;   color: #4f9ed6; border: 1px solid #4f9ed625; }
.tag-capacity { background: #fd42af10;   color: #fd42af; border: 1px solid #fd42af25; }
.tag-limited { background: #c43a3a10;   color: #c43a3a; border: 1px solid #c43a3a25; }

.capacity-desc {
  font-size: 0.75rem;
  color: #888888;
  line-height: 1.6;
}

.creature-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid #222222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d0d0d;
}

.shido-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
}

.shido-value {
  font-size: 0.72rem;
  color: #888888;
  font-style: italic;
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .sidebar { width: 25%; }
  .main { margin-left: 25%; width: 75%; }
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .creature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sidebar { display: none; }
  .main { margin-left: 0; width: 100%; }
  .hero { padding: 2rem 1.6rem; }
  .cards-area { padding: 1.6rem; }
  .section-grid { grid-template-columns: 1fr; margin-bottom: 4rem; }
}