/* elemixies.com — Sunny Meadow design (reference: §20.45 mockup, 2026-08-22).
   Cream ground, white cards, chunky rounded display type, element-colored
   chips, hard-shadow orange Play pill, ink footer. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --bg: #fff9f0;
  --bg-wiki: #fdfbf7;
  --card: #ffffff;
  --ink: #14141e;
  --muted: #4a4656;
  --faint: #8a8694;
  --line: #e8e2d8;
  --line-wiki: #ece6da;
  --accent: #c75a1e;
  --accent-dark: #a34712;
  --play: #ff7832;
  --play-shadow: #d95a18;
  --footer-bg: #14141e;
  --footer-text: #edeaf2;
  --footer-faint: #a9a4b8;
  --footer-line: #2c2838;
  --shadow-card: 0 5px 18px rgba(20, 20, 30, 0.08);
  --radius-card: 18px;
  --radius-big: 22px;
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body-font: "Nunito", "Trebuchet MS", Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
body.wiki { background: var(--bg-wiki); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.btn-play {
  background: var(--play);
  color: #fff;
  box-shadow: 0 3px 0 var(--play-shadow);
}
.btn-play:hover { background: #ff8a4d; color: #fff; }
.btn-play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--play-shadow); }
.btn-small { font-size: 16px; padding: 10px 22px; }
.btn-big { font-size: 21px; padding: 16px 34px; box-shadow: 0 4px 0 var(--play-shadow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 17px;
  padding: 14px 26px;
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 800;
}
.chip-sm { font-size: 12.5px; padding: 3px 11px; }
a.chip:hover { filter: brightness(1.08); }

.dot { display: inline-block; border-radius: 50%; flex-shrink: 0; }

/* ----------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-dots { display: inline-flex; gap: 5px; }
.logo-dots i { width: 13px; height: 13px; border-radius: 50%; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.5px; }
.brand-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  transform: rotate(-2deg);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { font-weight: 800; font-size: 16px; color: var(--ink); }
.site-nav > a:hover, .site-nav > a.active { color: var(--accent); }
.site-nav > a.btn-play { color: #fff; }

/* ------------------------------------------------------------------- hero */

main { display: block; }
/* The hero shows the FULL 3:2 artwork (no crop — owner call 2026-08-23:
   cropping hid the bottom creatures). The headline sits in the art's open
   middle band, where the logo sat in the logo version. */
.hero {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 680px;
  max-width: calc(680px * 1.5);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
}
@media (max-width: 1070px) { .hero { margin: 0 16px; } }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 28px 24px 0;
}
.hero-cta h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
.hero-buttons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin: 0; font-weight: 700; font-size: 15px; color: var(--faint); }
.hero-cta .btn-ghost { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }

/* --------------------------------------------------------------- sections */

.section { max-width: 1280px; margin: 0 auto; padding: 56px 24px 8px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.section-title.center { text-align: center; }
.section-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 8px;
  margin-top: 6px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="74" height="8" viewBox="0 0 74 8"><path d="M2 5.5c8-4 14 3 22-1s14 3 22-1 14 3 26-1" fill="none" stroke="%23FF7832" stroke-width="3" stroke-linecap="round"/></svg>') no-repeat;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section .section-title.center { margin-bottom: 26px; }
.section-link { font-weight: 800; font-size: 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* feature band */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.feature-card { border-radius: var(--radius-big); display: flex; flex-direction: column; }
.feature-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.feature-egg {
  height: 210px;
  background: linear-gradient(160deg, #78508c 0%, #a096be 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-egg img { height: 165px; width: auto; filter: drop-shadow(0 6px 14px rgba(20, 20, 30, 0.35)); }
.feature-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.feature-body h3 { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.feature-body p { margin: 0; color: var(--muted); }
.mix-equation { display: inline-flex; align-items: center; gap: 5px; }
.mix-equation b { color: var(--faint); font-family: var(--body-font); }

/* meet strip */
.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.meet-grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 760px; }
.species-card { display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.species-card:hover { transform: translateY(-3px); box-shadow: 0 9px 24px rgba(20, 20, 30, 0.12); }
.species-card img { width: 100%; height: 185px; object-fit: cover; display: block; }
.species-card picture img { height: 185px; }
.species-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px;
}
.species-card-name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.element-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 0 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.element-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* news */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.news-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; color: var(--ink); }
.news-card:nth-child(even) { transform: rotate(0.4deg); }
.news-card:nth-child(odd) { transform: rotate(-0.35deg); }
.news-card:hover { transform: translateY(-3px); color: var(--ink); }
.news-card h3 { font-size: 21px; font-weight: 700; }
.news-card p { margin: 0; color: var(--muted); font-size: 16px; }
.news-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------------------------------------------------------- narrow pages */

.page-narrow { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }
.page-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin: 6px 0 18px; }
.center-page { text-align: center; padding-top: 64px; padding-bottom: 96px; }
.article h2 { font-size: 26px; font-weight: 700; margin: 30px 0 10px; }
.article h3 { font-size: 20px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { color: var(--muted); }
.article li { margin: 6px 0; }
.breadcrumb { font-size: 14px; font-weight: 700; color: var(--faint); margin: 0 0 4px; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }
.news-grid-page { margin-top: 10px; }
.article .news-date { display: block; margin-bottom: 2px; }
.article img { border-radius: var(--radius-card); }
.faq-q { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 22px 0 4px; }

/* ------------------------------------------------------------------- wiki */

.wiki-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line-wiki);
}
.wiki-badge { background: #5a9646; color: #fff; }
.wiki-search { position: relative; flex: 0 1 420px; }
.wiki-search input {
  width: 100%;
  border: none;
  background: #f4efe6;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 15px var(--body-font);
  color: var(--ink);
}
.wiki-search input::placeholder { color: var(--faint); }
.wiki-search input:focus { outline: 2px solid var(--play); }
#wiki-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  max-height: 330px;
  overflow-y: auto;
  z-index: 10;
}
#wiki-search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 15px;
}
#wiki-search-results a:hover, #wiki-search-results a.selected { background: #f4efe6; }
#wiki-search-results a b { font-weight: 700; }
#wiki-search-results a span {
  color: var(--faint);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#wiki-search-results .search-empty {
  display: block;
  padding: 12px 16px;
  color: var(--faint);
  font-weight: 600;
  font-size: 14px;
}

.wiki-layout {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 64px;
}
.wiki-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}
.wiki-nav-head {
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--faint);
  padding: 14px 14px 6px;
}
.wiki-nav-head:first-child { padding-top: 6px; }
.wiki-nav-item {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
}
.wiki-nav-item:hover { background: #f4efe6; color: var(--ink); }
.wiki-nav-item.active { background: #f0e9dc; font-weight: 800; }

.wiki-article { flex: 1; min-width: 0; max-width: 860px; }
.wiki-h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin: 2px 0 10px; }
.wiki-h2 { font-size: 26px; font-weight: 700; margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
.wiki-h2 .count { font-family: var(--body-font); font-size: 14px; font-weight: 700; color: var(--faint); }
.wiki-lead { font-size: 18px; line-height: 1.65; color: var(--muted); }
.wiki-article h3 { font-size: 20px; font-weight: 700; margin: 24px 0 8px; }
.wiki-article p, .wiki-article li { color: var(--muted); }
.wiki-article li { margin: 6px 0; }
.wiki-article ol, .wiki-article ul { padding-left: 24px; }
.wiki-footnote {
  font-size: 14px;
  color: var(--faint);
  border-top: 1px solid var(--line-wiki);
  padding-top: 16px;
  margin-top: 40px;
}

.wiki-table {
  border-collapse: collapse;
  margin: 14px 0 8px;
  min-width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15.5px;
}
.wiki-table th, .wiki-table td { padding: 9px 16px; text-align: left; }
.wiki-table th {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--faint);
  background: #f7f2e9;
}
.wiki-table tr + tr td { border-top: 1px solid var(--line-wiki); }
.wiki-table td { color: var(--muted); font-weight: 600; }
.wiki-table td:first-child { color: var(--ink); font-weight: 700; }
.wiki-table td img { vertical-align: middle; margin-right: 6px; }
.table-scroll { overflow-x: auto; }
.matchup-table { font-variant-numeric: tabular-nums; }
.matchup-table td { text-align: center; white-space: nowrap; }
.matchup-table td:first-child { text-align: left; white-space: nowrap; }
.mu-strong { background: #e7f4dd; color: #3c6428 !important; font-weight: 800 !important; }
.mu-weak { background: #fbe9e4; color: #a1442c !important; }
.mu-neutral { color: var(--faint) !important; }
.mu-zero { color: var(--line) !important; text-align: center; }
.wiki-table td img { background: #f0e9dc; border-radius: 8px; padding: 3px 5px; }

/* matchup checker */
.matchup-checker {
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 14px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checker-row label { font-weight: 700; font-size: 17px; color: var(--ink); }
.matchup-checker select {
  font: 800 16px var(--display);
  color: var(--ink);
  background: #f4efe6;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 4px;
}
.checker-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 12px;
  padding: 14px 18px;
}
.checker-result b { font-family: var(--display); font-size: 21px; font-weight: 800; }
.checker-result span { font-weight: 600; font-size: 15px; }
.checker-strong { background: #e7f4dd; color: #3c6428; }
.checker-weak { background: #fbe9e4; color: #a1442c; }
.checker-neutral { background: #f4efe6; color: var(--muted); }

/* per-element matchup lists */
.matchup-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 8px; }
.matchup-list {
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: var(--radius-card);
  padding: 16px 18px 6px;
}
.matchup-list h3 { margin: 0 0 10px !important; }
.mu-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px !important; }
.mu-tag {
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
span.mu-tag.mu-neutral { background: #f4efe6; color: var(--muted) !important; }
.mu-none { color: var(--faint); font-weight: 600; font-size: 14px; }

/* by-element directory */
.byelement-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.byelement-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: 14px;
  padding: 12px 16px;
}
.byelement-row .chip { flex-shrink: 0; }
.byelement-links { font-weight: 700; font-size: 15.5px; line-height: 1.9; }
.byelement-links a { color: var(--ink); }
.byelement-links a:hover { color: var(--accent); }

.mix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.mix-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: 14px;
  padding: 13px 16px;
}
.mix-row b { color: var(--faint); }
.mix-name { font-weight: 700; min-width: 48px; }

.element-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.element-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.12s ease;
}
.element-tile:hover { transform: translateY(-2px); }
.element-tile b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.element-tile span { font-size: 12.5px; font-weight: 700; opacity: 0.85; }

.element-banner { border-radius: var(--radius-card); padding: 26px 28px; margin-bottom: 16px; }
.element-banner h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }

.rarity-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 22px; }
.rarity-list-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.species-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: 12px;
  padding: 9px 16px;
}
.species-row a { font-weight: 700; color: var(--ink); }
.species-row a:hover { color: var(--accent); }

.species-hero { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.species-hero picture { flex: 0 1 380px; }
.species-hero img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.species-hero-info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.species-desc {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
  border-left: 4px solid var(--line);
  padding-left: 16px;
}
.species-how { font-size: 16px; }
.species-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  font-weight: 800;
  font-size: 15px;
}

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 64px; }
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 8px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.footer-brand .brand-name { color: #fff; font-size: 24px; }
.footer-brand p { margin: 0; font-size: 15px; color: var(--footer-faint); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h3 {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--footer-faint);
  margin: 0 0 2px;
}
.footer-col a { color: var(--footer-text); font-weight: 600; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 20px 24px 34px;
  border-top: 1px solid var(--footer-line);
  font-size: 14px;
  color: var(--footer-faint);
}
.footer-legal a { color: var(--footer-faint); margin-left: 24px; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: #fff; }

/* ----------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .site-header { justify-content: center; }
  .wiki-topbar { flex-wrap: wrap; }
  .wiki-search { order: 3; flex-basis: 100%; }
  .wiki-layout { flex-direction: column; gap: 8px; padding-top: 20px; }
  .wiki-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .wiki-nav-head { padding: 0 6px 0 2px; white-space: nowrap; }
  .wiki-nav-item { white-space: nowrap; background: var(--card); border: 1px solid var(--line-wiki); }
  .hero { margin: 0 12px; border-radius: 20px; }
  .hero-cta { gap: 12px; padding-top: 20px; }
  .section { padding-top: 44px; }
  .species-pager { font-size: 14px; }
}

/* world map (Getting Started) */
.worldmap {
  background: var(--card);
  border: 1px solid var(--line-wiki);
  border-radius: var(--radius-card);
  padding: 10px;
  margin: 14px 0 6px;
}
.map-caption { font-size: 14.5px; color: var(--faint); font-weight: 600; }
