:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #526178;
  --line: #dbe7f5;
  --level: #2563eb;
  --econ: #f5a623;
  --surface: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

body.guide-index-page {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  font-family: "M PLUS Rounded 1c", "Yu Gothic UI", Meiryo, sans-serif;
}

.guide-index {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.guide-index-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.1);
}

.guide-index-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--level);
  font-size: 0.84rem;
  font-weight: 950;
}

.guide-index-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--econ);
}

.guide-index-title {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.guide-index-lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.75;
}

.guide-index-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.guide-index-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.guide-index-count {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.9rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.guide-card {
  --guide-card-splash: none;
  --guide-card-splash-x: 50%;
  --guide-card-splash-y: 50%;
  --guide-card-splash-scale: 1;
  position: relative;
  display: grid;
  align-content: stretch;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: #0b1424;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(24, 36, 56, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--guide-card-splash);
  background-position: var(--guide-card-splash-x) var(--guide-card-splash-y);
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(var(--guide-card-splash-scale));
  transform-origin: var(--guide-card-splash-x) var(--guide-card-splash-y);
  pointer-events: none;
}

.guide-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(9, 17, 31, 0.72) 34%, rgba(9, 17, 31, 0.18) 52%, transparent 68%);
  pointer-events: none;
}

.guide-card > :not(.guide-card-scrim) {
  position: relative;
  z-index: 2;
}

.guide-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 24px 54px rgba(24, 36, 56, 0.14);
}

.guide-card-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 8px;
  height: 100%;
}

.guide-type {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #f4d8ae;
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.36);
  color: #ffe4b8;
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.guide-type::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--econ);
}

.guide-card-title {
  align-self: center;
  margin: 0;
  color: #ffffff;
  font-size: 1.52rem;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.guide-card-bottom {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.guide-card-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-weight: 650;
}

.guide-champion-row {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  grid-auto-rows: 32px;
  gap: 6px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.guide-champion-icon {
  --cost-color: #9ca3af;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cost-color) 78%, #ffffff), var(--cost-color));
  box-shadow:
    0 5px 12px color-mix(in srgb, var(--cost-color) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.guide-champion-icon.cost-1 {
  --cost-color: #9ca3af;
}

.guide-champion-icon.cost-2 {
  --cost-color: #22c55e;
}

.guide-champion-icon.cost-3 {
  --cost-color: #3b82f6;
}

.guide-champion-icon.cost-4 {
  --cost-color: #a855f7;
}

.guide-champion-icon.cost-5 {
  --cost-color: #f59e0b;
}

.guide-champion-icon img {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  object-fit: cover;
  background: #10233d;
}

.guide-champion-icon.has-items::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--econ);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.34);
}

.guide-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.guide-index-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 850;
}

@media (max-width: 640px) {
  .guide-index {
    width: min(100% - 20px, 1120px);
    margin-top: 18px;
  }

  .guide-index-hero {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 240px;
  }
}
