@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  color: #f0eee8;
  background: #10161c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #929ba2;
  --line: #2b353d;
  --surface: #171f26;
  --accent: #c6a76c;
  --accent-bright: #e0c58e;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 74% 8%, rgb(33 52 60 / 28%), transparent 31rem),
    #10161c;
}

button,
input {
  font: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 78px;
  border-bottom: 1px solid rgb(160 175 182 / 12%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2f0e9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.wordmark-accent {
  color: var(--accent-bright);
}

.header-label,
.site-footer {
  color: #838e95;
  font-size: 10px;
  letter-spacing: 0.14em;
}

main {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 4px 39px;
}

.hero::after {
  position: absolute;
  right: 21%;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  opacity: 0.42;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 17px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.48;
}

h1 span {
  color: var(--accent-bright);
}

.hero-description {
  margin: 0;
  color: #a4adb1;
  font-size: 13px;
  letter-spacing: 0.015em;
}

.hero-emblem {
  position: relative;
  display: grid;
  width: 185px;
  height: 185px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 60px;
  color: var(--accent);
  opacity: 0.8;
}

.emblem-ring,
.emblem-ring::before,
.emblem-ring::after {
  position: absolute;
  border: 1px solid rgb(198 167 108 / 35%);
  border-radius: 50%;
  content: "";
}

.emblem-ring {
  inset: 12px;
}

.emblem-ring::before {
  inset: 12px;
}

.emblem-ring::after {
  inset: -10px;
  border-style: dashed;
  opacity: 0.5;
}

.emblem-letter {
  font-family: Georgia, serif;
  font-size: 95px;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 0 35px rgb(198 167 108 / 24%);
}

.emblem-caption {
  position: absolute;
  bottom: 19px;
  padding: 3px 7px;
  background: #10161c;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.search-panel {
  padding: 30px 34px 25px;
  border: 1px solid #303a41;
  background: linear-gradient(135deg, rgb(29 39 46 / 96%), rgb(21 29 35 / 96%));
  box-shadow: 0 18px 55px rgb(0 0 0 / 12%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lane-pill {
  padding: 6px 11px;
  border: 1px solid rgb(198 167 108 / 37%);
  color: var(--accent-bright);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lane-pill span {
  margin-right: 5px;
  font-size: 8px;
}

.champion-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: end;
}

.champion-field label {
  display: block;
  margin-bottom: 9px;
  color: #c0c6c7;
  font-size: 12px;
}

.champion-input-wrap {
  position: relative;
}

.champion-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid #39454c;
  border-radius: 0;
  outline: none;
  background: #12191f;
  color: #f0eee8;
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.champion-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(198 167 108 / 12%);
}

.champion-input-wrap input:disabled {
  color: #778188;
  cursor: wait;
}

.champion-input-wrap input.has-icon {
  padding-left: 52px;
}

.champion-input-wrap input::placeholder {
  color: #69747b;
}

.champion-preview {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgb(198 167 108 / 60%);
  object-fit: cover;
}

.input-chevron {
  position: absolute;
  top: 13px;
  right: 14px;
  color: var(--accent);
  font-size: 20px;
  pointer-events: none;
}

.versus {
  padding-bottom: 16px;
  color: #737f84;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.champion-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 270px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid #46535a;
  background: #151e24;
  box-shadow: 0 12px 25px rgb(0 0 0 / 35%);
  list-style: none;
}

.champion-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #e9e9e4;
  cursor: pointer;
  text-align: left;
}

.champion-option:hover,
.champion-option[aria-selected="true"] {
  background: #29353b;
}

.champion-option img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.champion-option span {
  font-size: 12px;
}

.no-options {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.data-status {
  margin: 0;
  color: #88949a;
  font-size: 11px;
  line-height: 1.7;
}

.data-status.error {
  color: #e29a8d;
}

.search-button {
  display: inline-flex;
  min-width: 188px;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #171a1a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.search-button:hover:not(:disabled) {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.search-button:disabled {
  border-color: #4a4b43;
  background: #4a4b43;
  color: #a6a69e;
  cursor: not-allowed;
}

.result-section {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: rgb(23 31 38 / 85%);
}

.search-history {
  margin-top: 26px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  background: rgb(23 31 38 / 72%);
}

.search-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-history h2 {
  margin-top: 6px;
}

.clear-search-history {
  padding: 7px 10px;
  border: 1px solid #46535a;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.clear-search-history:hover,
.clear-search-history:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.search-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.search-history-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #303b41;
  background: transparent;
  color: #d6d7d1;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.search-history-item:hover,
.search-history-item:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.search-history-patch {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.search-history-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.search-history-status.error {
  color: #e29a8d;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.result-matchup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.result-matchup img {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(198 167 108 / 55%);
  object-fit: cover;
}

.result-vs {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.patch-badge {
  color: var(--accent-bright);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.result-body {
  padding: 24px 26px 28px;
}

.matchup-title {
  margin: 0 0 12px;
  color: #f0eee8;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.result-overview {
  margin-bottom: 25px;
  color: #c4c9c8;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}

.result-perspectives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 23px;
}

.quick-card {
  padding: 16px;
  border: 1px solid #303b41;
  background: #131b21;
}

.perspective-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 600;
}

.quick-point {
  padding-top: 12px;
  border-top: 1px solid #303b41;
}

.quick-point + .quick-point {
  margin-top: 12px;
}

.perspective-heading img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.quick-point h3 {
  margin: 0 0 5px;
  color: #d7d2c3;
  font-size: 11px;
  font-weight: 600;
}

.quick-point.win-condition h3 {
  color: var(--accent-bright);
}

.quick-point p {
  margin: 0;
  color: #c2c8c8;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

.quick-point.danger {
  padding: 11px 10px 0;
  border-left: 2px solid #c97868;
  background: rgb(127 54 45 / 12%);
}

.quick-point.danger h3 {
  color: #e6a093;
}

.quick-point.timing {
  border-top-color: rgb(198 167 108 / 45%);
}

.timing-line + .timing-line {
  margin-top: 5px;
}

.timing-line strong {
  color: var(--accent-bright);
}

.power-spike {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #303b41;
}

.power-spike-label {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgb(198 167 108 / 40%);
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 600;
}

.power-spike p {
  margin: 1px 0 0;
  color: #c2c8c8;
  font-size: 11px;
  line-height: 1.7;
}

.skill-reference {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.skill-reference-heading {
  margin-bottom: 14px;
}

.skill-reference-heading h2 {
  margin-bottom: 6px;
}

.skill-reference-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.skill-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-reference-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #303b41;
  background: #131b21;
}

.skill-reference-card .perspective-heading {
  margin-bottom: 11px;
}

.skill-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-item {
  display: grid;
  grid-template-columns: 23px 40px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #303b41;
}

.skill-key {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgb(198 167 108 / 45%);
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
}

.skill-item img {
  width: 40px;
  height: 40px;
  border: 1px solid #3b474e;
  object-fit: cover;
}

.skill-details {
  min-width: 0;
}

.skill-details h4 {
  margin: 1px 0 4px;
  color: #ded9cb;
  font-size: 11px;
  font-weight: 600;
}

.skill-details p,
.skill-reference-status {
  margin: 0;
  color: #aeb8b9;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.skill-reference-status.error {
  color: #e29a8d;
}

.result-message {
  padding: 30px;
  color: #c3c9c8;
  font-size: 13px;
  line-height: 1.9;
}

.result-message strong {
  display: block;
  margin-bottom: 6px;
  color: #f0eee8;
  font-size: 15px;
}

.result-message p {
  margin: 0;
}

.result-message a {
  color: var(--accent-bright);
}

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 27px 2px 52px;
  color: #8f999e;
  font-size: 11px;
  line-height: 1.8;
}

.guide-note p {
  margin: 0;
}

.note-icon {
  color: var(--accent);
  font-size: 15px;
}

.site-footer {
  min-height: 63px;
  border-top: 1px solid rgb(160 175 182 / 12%);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.footer-divider {
  padding-inline: 5px;
  color: var(--accent);
}

@media (max-width: 650px) {
  .site-header,
  .site-footer {
    width: calc(100% - 36px);
  }

  .header-label {
    font-size: 8px;
  }

  main {
    width: calc(100% - 36px);
  }

  .hero {
    min-height: 245px;
    padding-block: 34px 29px;
  }

  .hero-description {
    max-width: 270px;
    font-size: 12px;
    line-height: 1.8;
  }

  .hero-emblem {
    position: absolute;
    right: -62px;
    bottom: 25px;
    width: 150px;
    height: 150px;
    margin: 0;
    opacity: 0.35;
  }

  .emblem-letter {
    font-size: 76px;
  }

  .search-panel {
    padding: 23px 18px 20px;
  }

  .champion-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .versus {
    padding: 0;
  }

  .search-footer {
    align-items: stretch;
    flex-direction: column;
    margin-top: 17px;
  }

  .search-button {
    width: 100%;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .result-body {
    padding: 18px;
  }

  .search-history {
    padding: 20px 18px;
  }

  .search-history-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .matchup-title {
    font-size: 16px;
  }

  .result-perspectives {
    grid-template-columns: minmax(0, 1fr);
  }

  .skill-reference-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
