.mechamon-page {
  color-scheme: dark;
  --mc-text: #eef2f8;
  --mc-muted: #b8c6da;
  --mc-line: #29384c;
  --mc-panel: #0d1522;
  --mc-gold: #f5c873;
  --mc-blue: #91c1ff;
  margin: 0;
  background: radial-gradient(ellipse 70rem 35rem at 84% 3%, #152336 0, transparent 74%), #05070b;
  color: var(--mc-text);
  font: 500 16px/1.75 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}
.mechamon-page *, .mechamon-page *::before, .mechamon-page *::after { box-sizing: border-box; }
.mechamon-page img { display: block; max-width: 100%; }
.mechamon-page a { color: var(--mc-blue); text-underline-offset: 4px; }
.mechamon-page :focus-visible { outline: 3px solid var(--mc-blue); outline-offset: 4px; }
.mc-skip { position: fixed; z-index: 300; top: -9rem; left: 1rem; padding: .8rem; background: var(--mc-panel); }
.mc-skip:focus { top: 1rem; }
.mc-wrap { max-width: 1280px; margin-inline: auto; padding: 0 clamp(18px, 4vw, 54px) 72px; }
.mc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; padding: 26px 0 16px; font-size: .8rem; color: var(--mc-muted); }
.mc-breadcrumb > * { overflow-wrap: anywhere; }
.mc-game { display: grid; grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--mc-line); border-radius: 16px; background: var(--mc-panel); }
.mc-game .mc-still { position: relative; min-height: 300px; overflow: hidden; isolation: isolate; background: #182a40; }
.mc-game .mc-still-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-game .mc-still::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(130deg, #06122265, transparent 67%); pointer-events: none; }
.mc-game .mc-still-title { position: absolute; z-index: 2; inset: 3% auto auto -1%; width: 79%; height: auto; filter: drop-shadow(0 5px 8px #050814aa); }
.mc-game-copy { min-width: 0; align-content: center; padding: clamp(23px, 4vw, 52px); }
.mc-kicker { margin: 0 0 9px; color: var(--mc-gold); font: 750 .72rem/1.45 Bahnschrift, 'Yu Gothic UI', sans-serif; letter-spacing: .14em; }
.mc-wrap h1 { margin: 0; font-size: clamp(2rem, 3.75vw, 3.95rem); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.mc-lead { max-width: 60ch; margin: 15px 0 0; color: var(--mc-muted); }
.mc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mc-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 800; text-decoration: none; }
.mc-actions .mc-primary { background: var(--mc-gold); color: #17130c; }
.mc-actions .mc-primary:hover { background: #ffe2a8; }
.mc-actions .mc-secondary { border-color: #58769b; color: var(--mc-text); }
.mc-actions .mc-secondary:hover { background: #182944; }
.mc-archive { overflow: hidden; position: relative; display: grid; align-items: center; min-height: 320px; margin: 0 0 24px; padding: clamp(22px, 5vw, 62px); border: 1px solid var(--mc-line); border-top-color: #a48249; border-radius: 16px; background: radial-gradient(ellipse at 85% 5%, #213349, transparent 58%), var(--mc-panel); }
.mc-series { width: clamp(140px, 25vw, 255px); height: 72px; object-fit: cover; object-position: center; margin: 0 0 14px; }
.mc-name-en { display: inline-block; margin-inline-start: .85rem; color: var(--mc-blue); font: 750 clamp(.92rem, 2.25vw, 1.45rem)/1.2 Bahnschrift, sans-serif; letter-spacing: .06em; }
.mc-dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.mc-dex-entry { display: grid; grid-template-columns: 1fr auto; overflow: hidden; align-items: center; border: 1px solid var(--mc-line); border-radius: 12px; background: var(--mc-panel); text-decoration: none; }
.mc-dex-entry > img { display: block; grid-column: 1/-1; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: 50% 50%; }
.mc-entry-copy { padding: 14px 17px 18px; color: var(--mc-text); }
.mc-entry-copy h2 { margin: 0; font-size: 1.4rem; }
.mc-entry-copy p:last-child { margin: 4px 0 0; font-size: .84rem; color: var(--mc-muted); }
.mc-dex-entry > span { padding-inline-end: 18px; }
.mc-dex-entry:hover { border-color: var(--mc-blue); background: #111e2f; }
.mc-pair { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.7vw, 28px); }
.mc-pair figure { margin: 0; overflow: hidden; border: 1px solid var(--mc-line); border-radius: 12px; background: var(--mc-panel); }
.mc-pair img { display: block; width: 100%; height: auto; }
.mc-pair figcaption { padding: 14px 18px 17px; font-weight: 750; }
.mc-pair figcaption p { margin: 5px 0 0; color: var(--mc-muted); font-size: .9rem; font-weight: 500; }
.mc-back { margin-top: 22px; }
@media (max-width: 720px) {
  .mc-wrap { padding-bottom: 48px; }
  .mc-game, .mc-pair { grid-template-columns: minmax(0, 1fr); }
  .mc-game .mc-still { min-height: 0; aspect-ratio: 16/9; }
  .mc-actions a { flex-grow: 1; }
  .mc-archive { min-height: 0; }
}
