/* JoltMyth — gallery-wall visual system. One file, deliberately: the whole
   site shares one stylesheet, so a review page and the homepage never drift. */

@font-face {
  font-family: 'Wall Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2?v=1') format('woff2'); /* keep in sync with ASSET_V in .build/data.js */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Wall Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2?v=1') format('woff2'); /* keep in sync with ASSET_V in .build/data.js */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched local fallback so the swap from system font to Wall Sans
   doesn't reflow wrapped titles/meta lines in the card grid (measured
   against the actual shipped Inter files with fontTools, not guessed) */
@font-face {
  font-family: 'Wall Sans Fallback';
  src: local('Arial');
  ascent-override: 96.88%;
  descent-override: 24.12%;
  line-gap-override: 0%;
  size-adjust: 105.3%;
}

:root {
  --ink: #101010;
  --paper: #ffffff;
  --ash: #6f6f6f;
  --crimson: #e3001c;
  --wash-bakery: #fdf1f9;
  --wash-puzzle: #eaf6fc;
  --line-bakery: #f0c9e4;
  --line-puzzle: #bfe3f6;
  --band: #faf9f7;
  --radius: 0;
  --container: 1180px;
  --gutter: 20px;
  font-size: 100%;
}

/* mid-brightness pause between the deep gutter-shadow buttons still reads on
   a 4K panel the same as it does on a phone; kept as px on purpose */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Wall Sans', 'Wall Sans Fallback', Arial, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--band); padding: .1em .35em; }

.jm-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 780px) { :root { --gutter: 32px; } }

.jm-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .8em 1.2em;
}
.jm-skip:focus { left: 12px; top: 12px; }

/* -------------------------- header / nav -------------------------- */
/* separated from the hero by a background shift, not a rule — P18.1 keeps the
   navbar and footer free of a full-width border */
.jm-strip { background: var(--band); }
.jm-strip__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.jm-mark { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; }
.jm-mark span { color: var(--crimson); }
.jm-burger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.jm-burger svg { width: 20px; height: 15px; }
@media (min-width: 900px) { .jm-burger { display: none; } }
.jm-nav__list { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.jm-nav__link {
  display: inline-block; padding: .3em 0; text-decoration: none;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border-bottom: 2px solid transparent;
}
.jm-nav__link:hover, .jm-nav__link[aria-current="page"] { border-bottom-color: var(--crimson); }
.jm-nav__link:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
@media (max-width: 899px) {
  .jm-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    max-height: 0; overflow: hidden;
  }
  .jm-nav.is-open { max-height: 420px; }
  .jm-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
  .jm-nav__link { display: block; padding: .7em 0; }
}

/* -------------------------- buttons / tags -------------------------- */
.jm-spark {
  display: inline-flex; align-items: center; gap: .5em;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .8em 1.4em; font-weight: 600; font-size: .95rem;
  background: var(--paper); color: var(--ink);
  box-shadow: 5px 5px 0 0 var(--crimson);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.jm-spark:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 0 var(--crimson); }
.jm-spark:active { transform: translate(1px, 1px); box-shadow: 3px 3px 0 0 var(--crimson); }
.jm-spark:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; }
.jm-spark--primary { background: var(--ink); color: var(--paper); }
.jm-spark--ghost { box-shadow: 4px 4px 0 0 var(--ash); }
.jm-spark--ghost:hover { box-shadow: 6px 6px 0 0 var(--ash); }
.jm-spark svg { width: 16px; height: 16px; }

.jm-tag {
  display: inline-block; border: 1px solid var(--ink); padding: .3em .7em;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: var(--paper);
}
.jm-tag--bakery { background: var(--wash-bakery); border-color: var(--line-bakery); }
.jm-tag--puzzle { background: var(--wash-puzzle); border-color: var(--line-puzzle); }

.jm-verdict {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6em; padding: .2em .3em; border: 2px solid var(--ink);
  font-weight: 600; font-size: .95rem;
}
.jm-ico { width: 16px; height: 16px; flex: none; }
.jm-ico--star { color: var(--crimson); }

/* -------------------------- sections -------------------------- */
.jm-panel { padding-block: 64px; }
.jm-panel--tint { background: var(--band); }
.jm-panel--ink { background: var(--ink); color: var(--paper); }
.jm-panel--ink .jm-panel__head p { color: #cfcfcf; }
.jm-panel--ink a { color: var(--paper); }
.jm-panel--ink .jm-contact-lead { font-size: 1.1rem; }
.jm-panel--ink .jm-contact-lead a { text-decoration: underline; }
.jm-panel--roomy { padding-block: 96px; }
.jm-panel--snug { padding-block: 44px; }
.jm-panel__eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--crimson); margin-bottom: .8em;
}
.jm-panel__head { max-width: 62ch; margin-bottom: 2em; }
.jm-panel__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.jm-panel__head p { color: var(--ash); font-size: 1.02rem; }

/* -------------------------- hero -------------------------- */
.jm-hero { padding-block: 84px 64px; text-align: center; }
.jm-hero__inner { max-width: 760px; margin-inline: auto; }
.jm-hero__eyebrow { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--crimson); margin-bottom: 1em; }
.jm-hero__title { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.015em; margin-bottom: .5em; }
.jm-hero__lead { font-size: 1.15rem; color: var(--ash); max-width: 56ch; margin-inline: auto 1.6em; }
.jm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1.6em; }
.jm-hero__stat { font-size: .85rem; color: var(--ash); letter-spacing: .02em; }

/* -------------------------- genre showcase -------------------------- */
.jm-showcase { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jm-showcase { grid-template-columns: 1fr 1fr; } }
.jm-showcase__card { display: block; text-decoration: none; color: inherit; background: var(--paper); }
.jm-showcase__frame { aspect-ratio: 16 / 9; overflow: hidden; }
.jm-showcase__frame img { width: 100%; height: 100%; object-fit: cover; }
.jm-showcase__body { padding-top: 1.1em; }
.jm-showcase__count { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ash); }
.jm-showcase__title { font-size: 1.4rem; margin: .25em 0 .4em; }
.jm-showcase__desc { color: var(--ash); margin-bottom: .6em; }
.jm-showcase__go { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; }
.jm-showcase__card:hover .jm-showcase__go { text-decoration: underline; }

/* -------------------------- gallery game grid -------------------------- */
/* a plain grid, not CSS multicol: column-balancing in `columns:` layouts
   reflows after paint and was costing real CLS on card-heavy pages */
.jm-grid--wall {
  display: grid; align-items: start; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.jm-frame { background: var(--paper); }
.jm-frame__link { display: block; text-decoration: none; color: inherit; }
.jm-frame__cover { display: block; overflow: hidden; }
.jm-frame__img { width: 100%; height: auto; display: block; }
.jm-frame__body { display: block; padding-top: .8em; }
.jm-frame__tag { margin-bottom: .55em; }
.jm-frame__title { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: .2em; }
.jm-frame__meta { display: block; font-size: .85rem; color: var(--ash); margin-bottom: .5em; }
.jm-frame__score { display: flex; align-items: center; gap: .7em; font-size: .85rem; }
.jm-frame__playr { color: var(--ash); }
.jm-frame:hover .jm-frame__title { text-decoration: underline; }

/* related-games strip: fixed small size, differs from the wall masonry */
.jm-grid--related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 720px) { .jm-grid--related { grid-template-columns: repeat(4, 1fr); } }
.jm-frame--small .jm-frame__cover { aspect-ratio: 4 / 3; }
.jm-frame--small .jm-frame__img { width: 100%; height: 100%; object-fit: cover; }
.jm-frame--small .jm-frame__title { font-size: .95rem; }

/* -------------------------- tables -------------------------- */
.jm-table { width: 100%; overflow-x: auto; margin-bottom: .6em; }
.jm-table__el { min-width: 640px; }
.jm-table__el caption { text-align: left; font-weight: 600; font-size: 1.05rem; margin-bottom: .7em; }
.jm-table__el th, .jm-table__el td { text-align: left; padding: .7em .9em; font-size: .92rem; }
.jm-table__el thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.jm-table__el tbody tr:nth-child(odd) { background: var(--band); }
.jm-table__el tbody th { font-weight: 600; }
.jm-table__note { color: var(--ash); font-size: .9rem; max-width: 72ch; }

/* -------------------------- breadcrumbs -------------------------- */
.jm-crumbs { padding-top: 22px; }
.jm-crumbs__list { display: flex; flex-wrap: wrap; gap: .4em; font-size: .85rem; color: var(--ash); }
.jm-crumbs__item a { text-decoration: none; }
.jm-crumbs__item a:hover { text-decoration: underline; }
.jm-crumbs__sep { padding-right: .4em; }
.jm-crumbs__current { color: var(--ink); font-weight: 600; }

/* -------------------------- review page -------------------------- */
.jm-review__head { padding-top: 18px; padding-bottom: 20px; }
.jm-review__title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.jm-review__verdict {
  font-size: 1.15rem; max-width: 64ch; border-left: 3px solid var(--crimson);
  padding-left: 1em; color: var(--ink);
}
.jm-review__layout { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 2.4em; }
@media (min-width: 860px) { .jm-review__layout { grid-template-columns: 2fr 1fr; align-items: start; } }
.jm-review__cover { max-width: 380px; }
.jm-review__cover img { width: 100%; }

.jm-fact { border: 1px solid var(--ink); padding: 22px; }
.jm-fact__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.jm-fact__icon { width: 44px; height: 44px; flex: none; }
.jm-fact__hub a { font-size: .82rem; font-weight: 600; text-decoration: underline; }
.jm-fact__row { display: flex; justify-content: space-between; gap: 12px; padding: .5em 0; font-size: .9rem; }
.jm-fact__row + .jm-fact__row { border-top: 1px solid var(--band); }
.jm-fact__key { color: var(--ash); }
.jm-fact__val { font-weight: 600; text-align: right; }

.jm-body { max-width: 72ch; }
.jm-body h2 { font-size: 1.35rem; margin-top: 1.7em; }
.jm-body p { color: #222; }
.jm-body figure { margin: 1.6em 0; max-width: 360px; }
.jm-body figure img { width: 100%; }
.jm-body figcaption { font-size: .82rem; color: var(--ash); margin-top: .5em; }

.jm-proscons { margin-top: 2.4em; }
.jm-proscons h2 { font-size: 1.15rem; }
.jm-pros ul, .jm-cons ul { display: flex; flex-direction: column; gap: .6em; }
.jm-pros li, .jm-cons li { display: flex; gap: .6em; align-items: flex-start; }
.jm-pros .jm-ico { color: var(--crimson); margin-top: .2em; }
.jm-cons .jm-ico--x { color: var(--ash); margin-top: .2em; }

.jm-side { margin-top: 3em; padding-top: 2.4em; }
.jm-side h2 { font-size: 1.15rem; margin-bottom: 1em; }

/* -------------------------- hub page -------------------------- */
.jm-hub-head { padding-top: 18px; }
.jm-hub-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.jm-hub-head__tagline { color: var(--crimson); font-weight: 600; margin-bottom: .6em; }
.jm-hub-head__intro { max-width: 72ch; }
.jm-hub-head__intro p { color: #222; }

/* -------------------------- collection (top picks) -------------------------- */
.jm-list { counter-reset: pick; }
.jm-list__item {
  counter-increment: pick; display: grid; grid-template-columns: auto 96px 1fr; gap: 18px;
  align-items: start; padding-block: 26px;
}
.jm-list__item + .jm-list__item { border-top: 1px solid var(--band); }
.jm-list__num {
  font-size: 2rem; font-weight: 600; color: var(--crimson); line-height: 1;
  min-width: 1.4ch;
}
.jm-list__num::before { content: counter(pick); }
.jm-list__thumb { aspect-ratio: 1; overflow: hidden; }
.jm-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.jm-list__title { font-size: 1.15rem; margin-bottom: .3em; }
.jm-list__title a { text-decoration: none; }
.jm-list__title a:hover { text-decoration: underline; }
.jm-list__why { color: #222; }
@media (max-width: 560px) {
  .jm-list__item { grid-template-columns: auto 72px 1fr; }
}

/* -------------------------- reference / FAQ -------------------------- */
.jm-faq { max-width: 78ch; }
.jm-faq details { border-top: 1px solid var(--band); padding-block: 1.1em; }
.jm-faq details:last-child { border-bottom: 1px solid var(--band); }
.jm-faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1em;
}
.jm-faq summary::-webkit-details-marker { display: none; }
.jm-faq summary::after { content: '+'; font-size: 1.3rem; color: var(--crimson); flex: none; }
.jm-faq details[open] summary::after { content: '\2212'; }
.jm-faq .jm-faq__a { padding-top: .8em; color: #222; max-width: 72ch; }

/* -------------------------- legal pages -------------------------- */
.jm-legal { max-width: 78ch; }
.jm-legal__updated { color: var(--ash); font-size: .9rem; margin-bottom: 2em; }
.jm-legal section { margin-bottom: 2em; }
.jm-legal h2 { font-size: 1.2rem; }
.jm-legal p { color: #222; }
.jm-legal table { margin-block: 1em; }
.jm-legal .jm-table__el th, .jm-legal .jm-table__el td { font-size: .85rem; }

/* -------------------------- about / contact -------------------------- */
.jm-prose { max-width: 68ch; }
.jm-prose p { color: #222; font-size: 1.02rem; }
.jm-contact-card {
  border: 1px solid var(--ink); padding: 28px; max-width: 520px; margin-top: 1.6em;
}
.jm-contact-card p { color: #222; }
.jm-contact-card .jm-spark { margin-top: .8em; }

/* -------------------------- sitemap.html -------------------------- */
.jm-sitemap { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jm-sitemap { grid-template-columns: repeat(3, 1fr); } }
.jm-sitemap__group h2 { font-size: 1.1rem; }
.jm-sitemap__group ul { display: flex; flex-direction: column; gap: .5em; }
.jm-sitemap__group a { text-decoration: none; }
.jm-sitemap__group a:hover { text-decoration: underline; }

/* -------------------------- 404 -------------------------- */
.jm-404 { padding-block: 110px; text-align: center; }
.jm-404__code { font-size: 5rem; font-weight: 600; line-height: 1; color: var(--crimson); }
.jm-404 .jm-hero__actions { margin-top: 1.4em; }

/* -------------------------- footer -------------------------- */
.jm-foot { background: var(--ink); color: var(--paper); margin-top: 0; }
.jm-foot .jm-mark { color: var(--paper); }
.jm-foot .jm-mark span { color: #ff6a7c; }
.jm-foot__inner { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 56px 36px; }
@media (min-width: 720px) { .jm-foot__inner { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.jm-foot__brand p { color: #b9b9b9; max-width: 30ch; }
.jm-foot__heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; color: #cfcfcf; }
.jm-foot__list { display: flex; flex-direction: column; gap: .6em; }
.jm-foot__list a { text-decoration: none; color: #e8e8e8; font-size: .92rem; }
.jm-foot__list a:hover { text-decoration: underline; }
.jm-foot__email a { color: var(--paper); text-decoration: underline; }
.jm-foot__base {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-block: 20px 30px; color: #a2a2a2; font-size: .8rem;
}
.jm-top {
  width: 42px; height: 42px; border: 1px solid #4a4a4a; display: flex;
  align-items: center; justify-content: center; color: var(--paper);
}
.jm-top:hover { border-color: var(--paper); }
.jm-top svg { width: 16px; height: 16px; }

/* -------------------------- cookie banner -------------------------- */
.jm-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink); color: var(--paper); border-top: 1px solid #3a3a3a;
}
.jm-banner__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 18px; }
.jm-banner p { margin: 0; max-width: 62ch; font-size: .9rem; color: #e7e7e7; }
.jm-banner a { color: var(--paper); text-decoration: underline; }
.jm-banner__actions { display: flex; gap: 10px; flex: none; }
.jm-banner .jm-spark { padding: .6em 1.1em; font-size: .85rem; box-shadow: 4px 4px 0 0 var(--crimson); }
.jm-banner .jm-spark--primary { background: var(--paper); color: var(--ink); }
.jm-banner .jm-spark--ghost { background: transparent; color: var(--paper); border-color: #6a6a6a; box-shadow: none; }

/* -------------------------- reveal-on-scroll -------------------------- */
[data-reveal] { opacity: 1; transform: none; }
.jm-reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.jm-reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jm-reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 619px) {
  .jm-review__cover { max-width: 100%; }
}
