/* ============================================================================
   mgakasinot.me — design layer
   A licence REFERENCE WORK, not a comparison site. The visual language is an
   archive / almanac: limestone ground, forest ink, brass rules. Deliberately
   unlike the lead's navy-and-gold card deck.

   Loaded AFTER base.css and site.css. Presentation only — no markup or copy
   depends on this file, so it can be edited without touching the generator.
   ========================================================================= */

/* ---------------------------------------------------------------- rhythm */
body.theme-mgame{
  --rule:1px solid var(--line);
  --rule-strong:2px solid var(--forest-700);
  --paper:#fbfaf6;
  --paper-2:#f4f2ea;
  background:var(--paper);
}

body.theme-mgame .content{background:var(--paper)}

/* A hairline brass rule under every H2 — the single strongest "reference work"
   cue, and it costs nothing in weight. */
body.theme-mgame .content .wrap > section > h2{
  padding-bottom:.42em;
  border-bottom:2px solid var(--brass);
  letter-spacing:-.011em;
}
body.theme-mgame .content .wrap h3{
  color:var(--forest-700);
  letter-spacing:-.006em;
}

/* Numbered sections, almanac style. Counter is presentation-only. */
body.theme-mgame .content .wrap{counter-reset:secno}
body.theme-mgame .content .wrap > section{counter-increment:secno}
body.theme-mgame .content .wrap > section > h2::before{
  content:counter(secno,decimal-leading-zero);
  display:inline-block;
  min-width:2.1em;
  margin-right:.55em;
  font-family:var(--font-body);
  font-size:.52em;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--brass);
  vertical-align:.32em;
}

/* ---------------------------------------------------------------- hero */
body.theme-mgame .hero{
  background:var(--forest-900);
  border-bottom:4px solid var(--brass);
}
body.theme-mgame .hero__bg img{
  filter:saturate(.72) contrast(1.04) brightness(.62);
}
body.theme-mgame .hero h1{
  letter-spacing:-.022em;
  text-wrap:balance;
}
body.theme-mgame .hero .eyebrow{
  color:var(--brass-2);
  letter-spacing:.17em;
  font-size:.72rem;
}

/* ---------------------------------------------------------------- keyfacts */
body.theme-mgame .keyfacts{
  background:var(--paper-2);
  border:var(--rule);
  border-left:4px solid var(--brass);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
body.theme-mgame .keyfacts li::marker{color:var(--brass)}

/* ---------------------------------------------------------------- toplist */
body.theme-mgame .rec-list{counter-reset:rec}
body.theme-mgame .rec-card{
  background:#fff;
  border:var(--rule);
  border-radius:var(--radius);
  box-shadow:0 1px 2px rgba(13,31,25,.05);
  transition:box-shadow .18s var(--ease), transform .18s var(--ease);
}
body.theme-mgame .rec-card:hover{
  box-shadow:0 10px 30px rgba(13,31,25,.10);
  transform:translateY(-2px);
}
/* rank badge in brass, drawn with CSS so it adds no requests */
body.theme-mgame .rec-card::before{
  counter-increment:rec;
  content:counter(rec);
  position:absolute;
  top:-10px; left:18px;
  width:30px; height:30px;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--forest-700);
  color:var(--brass-2);
  font:700 .82rem/1 var(--font-body);
  border:2px solid var(--brass);
}
body.theme-mgame .rec-card{position:relative}

/* the non-EEA labels must read as a warning, not decoration */
body.theme-mgame .pill--no{
  background:var(--no-bg);
  border:1px solid var(--no-line);
  color:#8c2f28;
  font-weight:600;
}

/* ---------------------------------------------------------------- figures */
body.theme-mgame figure img{
  border-radius:var(--radius-sm);
  border:var(--rule);
}
body.theme-mgame figcaption{
  border-left:3px solid var(--brass);
  padding-left:.7rem;
  margin-top:.55rem;
  color:var(--ink-soft);
  font-size:.88rem;
  line-height:1.45;
}

/* ---------------------------------------------------------------- tables */
body.theme-mgame table{border-collapse:collapse;width:100%}
body.theme-mgame caption{
  caption-side:top;
  text-align:left;
  font-weight:700;
  color:var(--forest-700);
  padding-bottom:.5rem;
  border-bottom:2px solid var(--brass);
  margin-bottom:.6rem;
}
body.theme-mgame thead th{
  background:var(--forest-800);
  color:#fff;
  font-size:.86rem;
  letter-spacing:.02em;
}
body.theme-mgame tbody tr:nth-child(even){background:var(--paper-2)}
body.theme-mgame td,body.theme-mgame th{border:var(--rule);padding:.62rem .7rem}

/* ---------------------------------------------------------------- steps */
body.theme-mgame ol.steps{list-style:none;counter-reset:st;padding-left:0}
body.theme-mgame ol.steps > li{
  counter-increment:st;
  position:relative;
  padding:0 0 1rem 3rem;
  margin:0;
}
body.theme-mgame ol.steps > li::before{
  content:counter(st);
  position:absolute; left:0; top:-2px;
  width:2rem; height:2rem;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--paper-2);
  border:2px solid var(--brass);
  color:var(--forest-700);
  font:700 .88rem/1 var(--font-body);
}
/* connecting spine between steps */
body.theme-mgame ol.steps > li:not(:last-child)::after{
  content:"";
  position:absolute; left:calc(1rem - 1px); top:2rem; bottom:.35rem;
  width:2px; background:var(--line-strong);
}

/* ---------------------------------------------------------------- notes */
body.theme-mgame .note{
  background:var(--paper-2);
  border:var(--rule);
  border-left:4px solid var(--line-strong);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
body.theme-mgame .note--warn{
  background:var(--warn-bg);
  border-left-color:var(--brass);
}

/* ---------------------------------------------------------------- toc */
body.theme-mgame .toc-wrap{
  background:var(--paper-2);
  border:var(--rule);
  border-radius:var(--radius-sm);
  padding:.55rem .9rem;
}
body.theme-mgame .toc-wrap summary{
  cursor:pointer;
  font-weight:650;
  color:var(--forest-700);
  letter-spacing:.01em;
}
body.theme-mgame .toc{border:0;background:transparent;padding:.4rem 0 0}
body.theme-mgame .toc ol{columns:2;column-gap:2rem}
@media (max-width:640px){body.theme-mgame .toc ol{columns:1}}

/* ---------------------------------------------------------------- chips */
body.theme-mgame .chips ul{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;padding:0}
body.theme-mgame .chips a{
  display:inline-block;
  padding:.3rem .7rem;
  border:var(--rule);
  border-radius:999px;
  background:#fff;
  font-size:.84rem;
  color:var(--forest-700);
  text-decoration:none;
}
body.theme-mgame .chips a:hover{border-color:var(--brass);background:var(--paper-2)}

/* ---------------------------------------------------------------- footer */
body.theme-mgame .site-footer{
  background:var(--forest-900);
  color:#cfd8d2;
  border-top:4px solid var(--brass);
}
body.theme-mgame .site-footer a{color:#e7ece8}
body.theme-mgame .site-footer h3{color:var(--brass-2);letter-spacing:.04em;font-size:.9rem}

/* ---------------------------------------------------------------- header */
body.theme-mgame .site-header{
  background:var(--forest-900);
  border-bottom:1px solid rgba(255,255,255,.10);
}
body.theme-mgame .site-header .brand__text{color:#fff}
body.theme-mgame .site-header .brand__text small{color:var(--brass-2);letter-spacing:.09em}
body.theme-mgame .nav a{color:#dfe6e1}
body.theme-mgame .nav a:hover,body.theme-mgame .nav a[aria-current]{color:var(--brass-2)}

/* ---------------------------------------------------------------- print */
@media print{
  body.theme-mgame .site-header,body.theme-mgame .site-footer,
  body.theme-mgame .chips,body.theme-mgame .rec-list{display:none}
  body.theme-mgame .content .wrap > section > h2{border-bottom:1px solid #000}
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion:reduce){
  body.theme-mgame .rec-card{transition:none}
  body.theme-mgame .rec-card:hover{transform:none}
}
