:root {
  --bg: #f4f7fc;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: #edf4ff;
  --text: #17243c;
  --muted: #65718a;
  --line: #dce5f2;
  --primary: #0b67e8;
  --primary-2: #4e31d9;
  --accent: #ffd64d;
  --danger: #f04f62;
  --success: #18a76f;
  --shadow: 0 20px 60px rgba(41, 72, 133, 0.14);
  --shadow-small: 0 10px 28px rgba(41, 72, 133, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #071226;
  --surface: rgba(13, 27, 52, 0.94);
  --surface-strong: #10213e;
  --surface-soft: #11294e;
  --text: #eef5ff;
  --muted: #a8b8d0;
  --line: #253a5f;
  --primary: #4c9cff;
  --primary-2: #8c72ff;
  --accent: #ffd95f;
  --danger: #ff7688;
  --success: #48d59d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-small: 0 12px 32px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(42, 132, 255, 0.11), transparent 34%),
    radial-gradient(circle at 100% 14%, rgba(255, 210, 65, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-shell { width: min(100%, 1440px); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  margin: 14px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-small);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand strong { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; }
.brand-ball {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 4px solid #1b2943;
  border-radius: 50%;
  background: linear-gradient(#f55668 0 46%, #1b2943 46% 56%, #fff 56%);
  box-shadow: 0 6px 14px rgba(12, 31, 65, 0.18);
}
.brand-ball::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 4px solid #1b2943;
  border-radius: 50%;
  background: white;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.brand-ball.mini { width: 24px; height: 24px; border-width: 3px; }
.brand-ball.mini::after { width: 6px; height: 6px; border-width: 3px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .install-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}
.icon-button { min-width: 42px; padding: 0; font-size: 1.12rem; }
.install-button { color: white; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

main { width: min(calc(100% - 28px), var(--max)); margin: 18px auto 0; }
.hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(5, 74, 209, .98), rgba(64, 37, 184, .96)),
    #0b67e8;
  color: white;
  box-shadow: var(--shadow);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .28;
}
.hero::before { width: 420px; height: 420px; background: #55b8ff; right: -160px; top: -170px; }
.hero::after { width: 300px; height: 300px; background: #ffd84a; left: -180px; bottom: -210px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 900;
  color: var(--primary);
}
.hero .eyebrow { color: #d6e9ff; }
.hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: clamp(2.2rem, 5.8vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--accent); }
.hero p { max-width: 700px; margin: 0; color: #dbe8ff; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button {
  border: 0;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.primary-button { color: #18304f; background: var(--accent); box-shadow: 0 10px 24px rgba(255, 206, 55, .24); }
.secondary-button { color: var(--text); background: var(--surface-strong); border: 1px solid var(--line); }
.hero .secondary-button { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.secondary-button.compact { min-height: 42px; white-space: nowrap; }
.hero-orbit { min-height: 320px; position: relative; z-index: 2; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.ring-one { width: 290px; height: 290px; animation: spin 18s linear infinite; }
.ring-two { width: 210px; height: 210px; border-style: dashed; animation: spin 12s linear infinite reverse; }
.hero-ball {
  position: relative;
  width: 150px;
  height: 150px;
  border: 14px solid #17233a;
  border-radius: 50%;
  background: linear-gradient(#ff5d6d 0 45%, #17233a 45% 56%, #fff 56%);
  box-shadow: 0 28px 70px rgba(4, 19, 55, .4);
}
.hero-ball::after {
  content: "";
  position: absolute;
  width: 44px; height: 44px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 12px solid #17233a;
  border-radius: 50%;
  background: #fff;
}
.spark { position: absolute; color: var(--accent); font-size: 2rem; animation: pulse 2.2s ease-in-out infinite; }
.spark-a { top: 18%; left: 10%; }
.spark-b { right: 14%; bottom: 20%; animation-delay: .6s; }
.spark-c { right: 7%; top: 12%; animation-delay: 1.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.32) rotate(15deg); opacity: .65; } }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}
.stats-strip article {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}
.stats-strip strong { display: block; font-size: clamp(1.35rem, 3vw, 2.25rem); line-height: 1; color: var(--primary); }
.stats-strip span { color: var(--muted); font-size: .86rem; }

.tabs {
  position: sticky;
  top: 82px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  margin: 20px 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-small);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1;
  min-width: max-content;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}
.tab.is-active { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 18px rgba(30, 92, 216, .22); }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .72rem; }

.panel { min-height: 500px; }
.eevee-feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #ead27a;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 231, 129, .32), rgba(255,255,255,.04)),
    var(--surface);
  box-shadow: var(--shadow-small);
}
.eevee-feature h2 { margin: 5px 0 6px; line-height: 1.16; letter-spacing: -.03em; }
.eevee-feature p { margin: 0; color: var(--muted); }
.eevee-art {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 2.3rem;
  font-weight: 1000;
  color: #6b3d1f;
  background: radial-gradient(circle at 35% 28%, #fff2b6, transparent 24%), linear-gradient(135deg, #d89858, #8c4d2c);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.36), 0 10px 24px rgba(112, 67, 30, .18);
}
.warning-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0 20px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.warning-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: white; background: var(--danger);
  border-radius: 50%; font-weight: 1000;
}
.warning-card p { margin: 2px 0 0; color: var(--muted); }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-small);
}
.search-box span { color: var(--primary); font-size: 1.45rem; line-height: 1; }
.search-box input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.search-box button { border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; }
.filter-toggle {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 900;
  box-shadow: var(--shadow-small);
}
.filter-toggle span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 999px; color: white; background: var(--primary); font-size: .72rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.filter-chip, .event-filter {
  border: 1px solid var(--line);
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-strong);
  font-weight: 800;
}
.filter-chip.is-active, .event-filter.is-active { color: white; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.results-header, .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 16px;
}
.results-header h2, .section-heading h2 { margin: 4px 0 0; font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading p { max-width: 720px; color: var(--muted); margin: 10px 0 0; }
.results-header select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 800;
}
.evolution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.evolution-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.evolution-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.evolution-card::before {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -58px; top: -58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.method-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  font-size: .72rem;
  font-weight: 900;
}
.favorite-button {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 1.15rem;
}
.favorite-button.is-active { color: #d99a00; border-color: #efca52; background: #fff7cf; }
html[data-theme="dark"] .favorite-button.is-active { background: #5a4710; }
.card-visual { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; margin: 14px 0 10px; }
.sprite-wrap {
  position: relative;
  width: 88px; height: 88px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 13%, var(--surface-soft)), var(--surface-strong));
  border: 1px solid var(--line);
}
.sprite-wrap img { width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(10, 31, 68, .18)); }
.sprite-fallback { font-weight: 1000; font-size: 1.65rem; color: var(--primary); }
.evolution-arrow { color: var(--primary); font-weight: 1000; font-size: 1.2rem; }
.evolution-name small { color: var(--muted); font-weight: 800; }
.evolution-name h3 { margin: 2px 0 0; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.025em; }
.type-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.type-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 999px; color: #fff; background: #73809a; font-size: .68rem; font-weight: 900; }
.type-eau { background: #3388dd; } .type-électrik { background: #d8a600; } .type-feu { background: #e85938; }
.type-psy { background: #da4f8e; } .type-ténèbres { background: #4d465f; } .type-plante { background: #45a457; }
.type-glace { background: #4bb9c7; } .type-fée { background: #dd77c8; } .type-roche { background: #a48745; }
.type-normal { background: #8d8d84; } .type-vol { background: #748fd0; } .type-combat { background: #c4463b; }
.type-acier { background: #6e8d9e; } .type-insecte { background: #7e9b23; } .type-dragon { background: #604ed7; }
.type-spectre { background: #665da0; } .type-sol { background: #c28a46; } .type-poison { background: #9b49a8; }
.type-objet { background: #64748b; } .type-échange { background: #0d9488; } .type-méga { background: #a43ce0; } .type-primo { background: #e25c2e; }
.card-method { margin: 0; color: var(--text); font-weight: 700; }
.card-cost { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.card-cost::before { content: "●"; color: var(--accent); text-shadow: 0 0 0 #000; }
.card-tip { margin: 12px 0 0; padding: 11px 12px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .84rem; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.card-actions button { flex: 1; min-height: 40px; border-radius: 11px; font-weight: 900; }
.details-button { color: white; border: 0; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.copy-button { flex: 0 0 42px !important; border: 1px solid var(--line); color: var(--text); background: var(--surface-strong); }
.priority-pill { display: inline-flex; align-self: flex-start; margin-top: 10px; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: color-mix(in srgb, #8a6100 90%, var(--text)); font-size: .69rem; font-weight: 900; }
html[data-theme="dark"] .priority-pill { color: #ffe8a1; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 22px; background: var(--surface); }
.empty-state h3 { margin: 14px 0 4px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-ball { width: 64px; height: 64px; margin: 0 auto; border: 6px solid var(--muted); border-radius: 50%; background: linear-gradient(var(--danger) 0 46%, var(--muted) 46% 56%, var(--surface-strong) 56%); opacity: .6; }
.empty-heart { font-size: 4rem; color: var(--muted); }

.live-clock { min-width: 170px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); font-weight: 900; text-align: center; box-shadow: var(--shadow-small); }
.event-highlight {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 30px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, #0f6be8, #4b2cc9);
  box-shadow: var(--shadow);
}
.event-highlight::after { content:""; position:absolute; width:260px; height:260px; right:-90px; top:-110px; border-radius:50%; background:rgba(255,255,255,.13); }
.event-highlight h3 { margin: 8px 0 4px; max-width: 760px; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.event-highlight p { max-width: 760px; color: #deebff; }
.event-countdown { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.count-unit { min-width: 72px; padding: 10px; border-radius: 13px; text-align: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); }
.count-unit strong { display: block; font-size: 1.35rem; }
.count-unit span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #d7e6ff; }
.event-highlight .event-location { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 800; }
.event-filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0; padding-bottom: 2px; scrollbar-width: none; }
.event-filters::-webkit-scrollbar { display:none; }
.event-timeline { display: grid; gap: 12px; }
.event-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.event-date {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 10px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  text-align: center;
}
.event-date strong { display:block; font-size: 1.7rem; line-height: 1; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing:.07em; }
.event-card h3 { margin: 2px 0 4px; font-size: 1.25rem; }
.event-card p { margin: 0; color: var(--muted); }
.event-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.event-meta span, .status-badge { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:999px; font-size:.7rem; font-weight:900; background: var(--surface-soft); color: var(--muted); }
.status-active { background: color-mix(in srgb, var(--success) 16%, var(--surface)); color: var(--success); }
.status-upcoming { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.status-ended { background: var(--surface-soft); color: var(--muted); }
.status-conditional { background: color-mix(in srgb, #8a5cff 16%, var(--surface)); color: #7a54d8; }
.event-details { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.event-details li + li { margin-top: 5px; }
.event-actions { display:flex; flex-direction:column; gap:8px; min-width: 118px; }
.event-actions a, .event-actions button { min-height: 40px; display:grid; place-items:center; border-radius:11px; padding:0 12px; text-decoration:none; font-weight:900; }
.event-actions a { color:white; background:linear-gradient(135deg,var(--primary),var(--primary-2)); }
.event-actions button { border:1px solid var(--line); background:var(--surface-strong); color:var(--text); }

.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.source-card { display:flex; gap:14px; align-items:flex-start; padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-small); text-decoration:none; }
.source-card:hover { border-color:color-mix(in srgb,var(--primary) 45%,var(--line)); }
.source-icon { flex:0 0 auto; width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--surface-soft); color:var(--primary); font-weight:1000; }
.source-card strong { display:block; }
.source-card p { margin:4px 0 0; color:var(--muted); font-size:.88rem; }
.disclaimer { margin-top:16px; padding:20px; border:1px dashed var(--line); border-radius:18px; background:var(--surface); }
.disclaimer p { margin:4px 0 0; color:var(--muted); }

footer { width:min(calc(100% - 28px),var(--max)); margin:34px auto 20px; padding:24px; border-radius:22px; background:var(--surface); border:1px solid var(--line); color:var(--muted); text-align:center; }
.footer-brand { display:flex; justify-content:center; align-items:center; gap:8px; color:var(--text); }
footer p { margin:8px auto; max-width:720px; }
footer a { color:var(--primary); font-weight:900; }

.detail-modal {
  width: min(680px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  overflow:auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 36px 100px rgba(0,0,0,.35);
}
.detail-modal::backdrop { background: rgba(3, 11, 28, .68); backdrop-filter: blur(5px); }
.modal-close { position: sticky; float:right; top:14px; right:14px; z-index:2; width:42px; height:42px; margin:14px 14px 0 0; border:1px solid var(--line); border-radius:13px; background:var(--surface-strong); color:var(--text); font-size:1.3rem; }
.modal-body { padding: 26px; }
.modal-hero { display:grid; grid-template-columns:120px 1fr; gap:18px; align-items:center; margin-bottom:18px; }
.modal-hero .sprite-wrap { width:120px; height:120px; }
.modal-hero .sprite-wrap img { width:112px; height:112px; }
.modal-body h2 { margin:4px 0; font-size:2rem; line-height:1.05; letter-spacing:-.04em; }
.modal-method { padding:16px; border-radius:16px; background:var(--surface-soft); font-weight:800; }
.example-list { display:grid; gap:8px; margin:16px 0 0; padding:0; list-style:none; }
.example-list li { padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.modal-note { margin-top:16px; padding:14px; border-left:4px solid var(--accent); background:color-mix(in srgb,var(--accent) 13%,var(--surface)); border-radius:0 12px 12px 0; color:var(--muted); }
.toast { position:fixed; left:50%; bottom:24px; z-index:100; transform:translate(-50%,20px); opacity:0; pointer-events:none; min-width:220px; max-width:calc(100% - 28px); padding:12px 16px; border-radius:14px; color:white; background:#17243c; box-shadow:0 15px 40px rgba(0,0,0,.3); text-align:center; font-weight:800; transition:.2s ease; }
.toast.is-visible { opacity:1; transform:translate(-50%,0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-orbit { min-height: 250px; }
  .evolution-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-card { grid-template-columns: 92px 1fr; }
  .event-actions { grid-column: 2; flex-direction:row; }
  .source-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { width:calc(100% - 16px); margin-top:8px; }
  main, footer { width:calc(100% - 16px); }
  .hero { padding:28px 22px; border-radius:24px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .hero-orbit { min-height: 210px; }
  .ring-one { width:220px; height:220px; }
  .ring-two { width:160px; height:160px; }
  .hero-ball { width:118px; height:118px; border-width:11px; }
  .hero-ball::after { width:34px; height:34px; border-width:9px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip article { display:flex; align-items:center; gap:12px; }
  .stats-strip strong { min-width:80px; }
  .tabs { top:70px; }
  .eevee-feature { grid-template-columns:auto 1fr; }
  .eevee-feature .secondary-button { grid-column:1 / -1; }
  .toolbar { grid-template-columns:1fr; }
  .filter-toggle { width:100%; }
  .filters { display:none; }
  .filters.is-open { display:flex; }
  .results-header, .section-heading { align-items:flex-start; flex-direction:column; }
  .results-header select, .live-clock { width:100%; }
  .evolution-grid { grid-template-columns:1fr; }
  .evolution-card { min-height:0; }
  .event-card { grid-template-columns:1fr; }
  .event-date { min-height:70px; grid-template-columns:auto auto; justify-content:center; gap:8px; }
  .event-actions { grid-column:1; }
  .modal-hero { grid-template-columns:90px 1fr; }
  .modal-hero .sprite-wrap { width:90px; height:90px; }
  .modal-hero .sprite-wrap img { width:84px; height:84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
