/*
 * MWI site v5 — design-system foundation (Figma "MWI Site v5 — audit" 200:4076, components 200:4077).
 * Tokens, type, buttons, header, footer, game switcher, cards, section heading, media thumb. Every public page loads
 * this file; page bodies add home.css (home) or pages.css (all other pages). Class names: CODE-COMPONENTS.md.
 * Desktop = Figma 1440 (content 1280), phone = Figma 390 (content 350); <=760px is the phone layout.
 * Fluid scale: sizes are rem; above 1440 the root font grows (--k) so wide screens look like the 1440 Figma scaled up.
 */
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-latin-var.woff2) format("woff2");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+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-cyrillic-var.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

:root {
  /* scale: --kw = viewport / 1440 (1..2560), --k = also capped by height (hero = 760 of 1440x900) so each block fits one
     screen; tan(atan2()) turns a length ratio into a number. <=1440 wide both are 1 (Figma 1:1, phone unchanged). */
  --kw: clamp(1, tan(atan2(100vw, 1440px)), 1.7778);
  --k: clamp(1, min(tan(atan2(100vw, 1440px)), tan(atan2(100vh, 760px))), 1.7778);
  --wrap: min(1280px * var(--kw), 100% - 2 * var(--gut));
  font-size: calc(16px * var(--k));
  /* colour (v5 · Components "Colour tokens") */
  --bg: #09070c; --s1: #141019; --s2: #1d1724; --s3: #272030; --line: #2e2636;
  --text: #f7f1f4; --text-2: #c9bfc7; --text-3: #a89eae;
  --acc: #de0f6b; --acc-hover: #f0247e; --acc-hi: #ff6fb5; --gold: #f2c14e; --update: #3fb6d9; --event: #e6a23c;
  --hair: rgba(255, 255, 255, .08); --hair-2: rgba(255, 255, 255, .12); --outline: rgba(255, 255, 255, .32);
  /* layout + spacing (D22): 72 between sections desktop, 44 phone; groups 24 / 32 / 40 */
  --gut: 5rem; --sec: 4.5rem; --hdr: 4.5rem;
  --s-8: 0.5rem; --s-12: 0.75rem; --s-16: 1rem; --s-24: 1.5rem; --s-32: 2rem; --s-40: 2.5rem;
  /* radii */
  --r-btn: 0.625rem; --r-card: 0.75rem; --r-panel: 1rem;
}
@media (max-width: 1100px) { :root { --gut: 2.5rem; } }
@media (max-width: 760px) { :root { --gut: 1.25rem; --sec: 2.75rem; --hdr: 3.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.5625rem "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
img[src=""], img:not([src]) { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0.75rem; top: -3.75rem; z-index: 60; background: var(--acc); color: #fff; padding: 0.625rem 1rem; border-radius: 0.5rem; font-weight: 600; }
.skip:focus { top: 0.75rem; }
main { display: flow-root; padding-bottom: var(--sec); }

/* ---------- type scale (Onest; secondary text never below 13px, D21) ---------- */
.t-display { font-weight: 600; font-size: 2.5rem; line-height: 2.875rem; }            /* hero H1 (Figma hero 40/46) */
.t-h2, .sh h2 { font-weight: 600; font-size: 2.25rem; line-height: 2.5625rem; }
.t-h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.8125rem; }
.t-body { font-size: 1.0625rem; line-height: 1.5625rem; color: var(--text-2); }
.t-body-s { font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
.t-meta { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.eyebrow { display: block; font-weight: 600; font-size: 0.8125rem; line-height: 1.1875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-hi); }
.eyebrow.mut { color: var(--text-3); }
@media (max-width: 760px) {
  .t-display { font-size: 1.5rem; line-height: 1.875rem; }
  .t-h2, .sh h2 { font-size: 1.75rem; line-height: 2rem; }
}

/* ---------- buttons (D06): Play now = primary, Play on Nutaku = secondary, details = text link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.5rem; border: 0; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1rem; line-height: 1.4375rem; white-space: nowrap; cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .12s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--acc); color: var(--text); }
.btn-primary:hover { background: var(--acc-hover); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--outline); }
.btn-secondary:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-s { height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; line-height: 1.375rem; }
.link { display: inline-flex; align-items: center; min-height: 2.5rem; font-weight: 600; font-size: 1rem; line-height: 1.4375rem; color: var(--text); white-space: nowrap; transition: color .2s; }
.link:hover { color: var(--acc-hi); }
.link-s { font-size: 0.9375rem; line-height: 1.375rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
a[href=""].btn, a[href=""].link { display: none; } /* empty CMS link = hidden action */
/* the game does not run on the site yet (Play now hidden): Play on Nutaku takes the primary slot */
.actions:not(:has(.btn-primary:not([hidden]))) .btn-nutaku { background: var(--acc); box-shadow: none; }
.actions:not(:has(.btn-primary:not([hidden]))) .btn-nutaku:hover { background: var(--acc-hover); }
[hidden] { display: none !important; }

/* ---------- header (D07): guest calm / guest with progress / signed in ---------- */
.hdr { position: relative; z-index: 40; height: var(--hdr); background: rgba(9, 7, 12, .94); box-shadow: inset 0 -1px 0 var(--hair);
  -webkit-backdrop-filter: blur(0.75rem); backdrop-filter: blur(0.75rem); }
.hdr-in { position: relative; display: flex; align-items: center; height: 100%; }
/* platform shells (public/platform/*.html) are laid out for a header overlaying their top padding */
.pg-pf .hdr { position: absolute; top: 0; left: 0; right: 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; line-height: 1.625rem; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; }
.nav { position: absolute; left: 27.5rem; display: flex; gap: 2.25rem; }
.nav a { font-weight: 500; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.age { font-weight: 600; font-size: 0.8125rem; line-height: 1.1875rem; color: var(--text-3); margin-right: 1.1875rem; }
.menu-btn { display: none; place-items: center; width: 2.5rem; height: 2.5rem; margin-right: -0.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 1.25rem; height: 2px; border-radius: 1px; background: var(--text); position: relative; transition: transform .2s, background-color .2s; }
.menu-btn span::before { position: absolute; top: -0.4375rem; } .menu-btn span::after { position: absolute; top: 0.4375rem; }
.hdr.open .menu-btn span { background: transparent; }
.hdr.open .menu-btn span::before { transform: translateY(0.4375rem) rotate(45deg); }
.hdr.open .menu-btn span::after { transform: translateY(-0.4375rem) rotate(-45deg); }
/* platform account group (rendered by /assets/platform/pf.js into .pf-hdr) */
.pf-hdr { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 901px) { .hdr .pf-hdr { gap: 1rem; } } /* platform.css sets px after us */
.hdr .pf-signin { font-weight: 600; font-size: 0.9375rem; line-height: 1.5rem; color: var(--text); white-space: nowrap; }
.hdr .pf-signin:hover { color: var(--acc-hi); }
.pf-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); white-space: nowrap; margin-right: 1rem; }
.pf-note::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); }
.hdr .pf-chip { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 0.875rem 0 0.5rem; border-radius: 1.25rem; background: var(--s2); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .35); }
.hdr .pf-chip img { width: 1.5rem; height: 1.5rem; }
.hdr .pf-chip b { font-weight: 600; font-size: 0.9375rem; line-height: 1.375rem; font-variant-numeric: tabular-nums; }
.hdr .pf-chip i { font-style: normal; font-weight: 600; font-size: 0.8125rem; line-height: 1.1875rem; color: var(--gold); }
.hdr .pf-hdr .pf-topup { height: 2.5rem; padding: 0 1rem; gap: 0.5rem; border-radius: var(--r-btn); background: transparent; color: var(--text); font-size: 0.9375rem; line-height: 1.375rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--outline); }
.hdr .pf-hdr .pf-topup:hover { background: rgba(255, 255, 255, .06); }
.hdr .pf-avatar { width: 2.25rem; height: 2.25rem; background: var(--s3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-weight: 600; font-size: 0.875rem; color: var(--text); }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr.open .nav { display: flex; flex-direction: column; gap: 0.25rem; position: absolute; top: calc(var(--hdr) + 0.5rem); left: 0; right: 0; padding: 0.75rem;
    border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--hair), 0 1.5rem 3rem rgba(0, 0, 0, .5); }
  .hdr.open .nav a { padding: 0.625rem 0.75rem; font-size: 1rem; color: var(--text); }
}
@media (max-width: 760px) {
  .brand { gap: 0.5rem; font-size: 1rem; line-height: 1.4375rem; }
  .brand img { width: 1.75rem; height: 1.75rem; }
  .hdr-end, .pf-hdr { gap: 0.75rem; }
  .age, .pf-note, .hdr .pf-hdr .btn, .hdr .pf-chip i, .hdr .pf-topup { display: none; }
  .hdr .pf-hdr .pf-signin { display: inline; }
  .hdr .pf-hdr .pf-menu { display: inline-flex; } /* Figma 'Header / Mobile signed in': GOLD + avatar + menu */
  .hdr .pf-chip { height: 2.25rem; padding-right: 0.875rem; }
  .hdr .pf-avatar { width: 2rem; height: 2rem; font-size: 0.8125rem; }
}

/* ---------- section heading: eyebrow / title + link on one baseline ---------- */
.sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1.5rem; margin-bottom: 3.4375rem; }
.sh .eyebrow { flex-basis: 100%; margin-bottom: 0.5625rem; }
.sh h2 { flex: 1 1 auto; min-width: 0; }
.sh .link { min-height: 0; font-size: 0.9375rem; line-height: 1.375rem; }
@media (max-width: 760px) { .sh { margin-bottom: 1.25rem; } .sh .eyebrow { margin-bottom: 0.4375rem; } }

/* ---------- game switcher (D10): equal tabs, Nutaku icon + full name, one selected state ---------- */
.gsw-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.8125rem; }
.gsw-head .link { min-height: 0; font-size: 0.9375rem; line-height: 1.375rem; }
.gsw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.gtab { display: flex; align-items: center; gap: 0.625rem; height: 4rem; padding: 0 0.75rem; border: 0; border-radius: var(--r-card); background: transparent; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--text-2); font-weight: 500; font-size: 0.9375rem; line-height: 1.25rem; transition: background-color .2s, box-shadow .2s, color .2s; }
.gtab img { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; }
.gtab span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gtab:hover { background: var(--s1); color: var(--text); }
.gtab[aria-selected="true"] { background: var(--s2); box-shadow: inset 0 0 0 1.5px rgba(255, 111, 181, .9); color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .gsw-wrap { position: relative; margin-inline: calc(-1 * var(--gut)); }
  .gsw-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3.5rem; pointer-events: none; background: linear-gradient(90deg, rgba(9, 7, 12, 0), var(--bg)); }
  .gsw { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding-inline: var(--gut); scrollbar-width: none; }
  .gsw::-webkit-scrollbar { display: none; }
  .gtab { flex: none; width: 10rem; height: 3.5rem; gap: 0.625rem; scroll-snap-align: start; font-size: 0.875rem; line-height: 1.125rem; }
  .gtab img { width: 2rem; height: 2rem; }
}

/* ---------- game card (D02/D20): store cover 1200x628 shown whole + title area; sizes L / M / S / wide ---------- */
.gcard { display: block; min-width: 0; }
.gcard-cover { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--s2); aspect-ratio: 1200 / 628; }
.gcard-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gcard:hover .gcard-cover img { transform: scale(1.03); }
.gcard-name { display: block; margin-top: 1rem; font-weight: 600; font-size: 1.25rem; line-height: 1.8125rem; transition: color .2s; }
.gcard:hover .gcard-name { color: var(--acc-hi); }
.gcard-pitch { display: block; margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
.gcard-meta { display: block; margin-top: 0.375rem; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.gcard.l .gcard-name { font-size: 1.375rem; line-height: 2rem; }
.gcard.l .gcard-pitch { font-size: 1rem; line-height: 1.4375rem; }
@media (max-width: 760px) {
  .gcard .gcard-name, .gcard.l .gcard-name { font-size: 1.125rem; line-height: 1.625rem; }
  .gcard .gcard-pitch, .gcard.l .gcard-pitch { margin-top: 2px; font-size: 0.9375rem; line-height: 1.375rem; }
  .gcard .gcard-meta { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.1875rem; }
  .gcard.s .gcard-cover { border-radius: 0.625rem; }
  .gcard.s .gcard-name { font-size: 0.9375rem; line-height: 1.375rem; }
  .gcard.s .gcard-pitch { display: none; }
  .gcard.s .gcard-meta { margin-top: 0.25rem; }
}

/* ---------- news card (D19): 16:9 typed cover (chip + game logo on a local scrim), meta, title ---------- */
.ncard { display: block; min-width: 0; }
.ncard-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--s2); }
.ncard-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.ncard-cover > img:not(.ncard-logo) { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ncard:hover .ncard-cover > img:not(.ncard-logo) { transform: scale(1.03); }
.ncard-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 41.5%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .62)); }
.ncard-cover > .ncard-logo { position: absolute; left: 1rem; bottom: 1rem; width: 9.375rem; height: 2.75rem; object-fit: contain; object-position: left bottom; }
.chip { position: absolute; left: 1rem; top: 1rem; z-index: 1; height: 1.625rem; padding: 0 0.625rem; border-radius: 0.375rem; font-weight: 600; font-size: 0.8125rem; line-height: 1.625rem; background: var(--acc); color: var(--text); }
.chip.update { background: var(--update); color: var(--bg); }
.chip.event { background: var(--event); color: var(--bg); }
.chip.guide { background: var(--text); color: var(--bg); }
.ncard-meta { display: block; margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.ncard-title { display: block; margin-top: 0.5rem; font-weight: 600; font-size: 1.25rem; line-height: 1.8125rem; transition: color .2s; }
.ncard:hover .ncard-title { color: var(--acc-hi); }
.ncard-excerpt { display: block; margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
/* Guide cover = built illustration: laptop + phone with game screens, five game icons, platforms label */
.guide-art { position: absolute; inset: 0; background: linear-gradient(135deg, #1f1828, #120e17); }
.guide-laptop { position: absolute; left: 17%; top: 14.7%; width: 52.2%; aspect-ratio: 214 / 134; padding: 1.5%; border-radius: 0.5rem; background: #0e0b12; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.guide-laptop::after { content: ""; position: absolute; left: -8.4%; right: -8.4%; bottom: -7.5%; height: 7.5%; border-radius: 0.25rem; background: #2d2536; }
.guide-phone { position: absolute; left: 72.2%; top: 28.6%; width: 16.1%; aspect-ratio: 66 / 126; padding: 1%; border-radius: 0.75rem; background: #0e0b12; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.guide-laptop img, .guide-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.25rem; }
.guide-phone img { border-radius: 0.5625rem; }
.guide-icons { position: absolute; left: 4.9%; bottom: 8.2%; display: flex; gap: 0.375rem; }
.guide-icons img { width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; }
.guide-label { position: absolute; right: 4.9%; bottom: 9%; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
@media (max-width: 760px) {
  .ncard-cover > .ncard-logo { left: 0.875rem; bottom: 0.875rem; width: 8.125rem; height: 2.375rem; }
  .chip { left: 0.875rem; top: 0.875rem; }
  .ncard-meta { margin-top: 0.875rem; }
  .ncard-title { margin-top: 0.375rem; font-size: 1.125rem; line-height: 1.625rem; }
  /* News row / Mobile: 128x72 cover + meta/title */
  .ncard.row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .ncard.row .ncard-cover { grid-row: span 2; border-radius: 0.5rem; }
  .ncard.row .ncard-scrim, .ncard.row .ncard-logo, .ncard.row .guide-icons, .ncard.row .guide-label { display: none; }
  .ncard.row .chip { left: 0.375rem; top: 0.375rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 0.25rem; line-height: 1.25rem; }
  .ncard.row .guide-laptop::after { display: none; }
  .ncard.row .ncard-meta { margin-top: 0; font-size: 0.8125rem; line-height: 1.1875rem; }
  .ncard.row .ncard-title { margin-top: 1px; font-size: 0.9375rem; line-height: 1.3125rem; }
}

/* ---------- media thumb (D04/D15): video vs image vs promo visible; caption = kind + what it shows ---------- */
.mthumb { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.mthumb-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 0.625rem; overflow: hidden; background: var(--s2); }
.mthumb-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.mthumb-img img { width: 100%; height: 100%; object-fit: cover; }
.mthumb.promo .mthumb-img img, .mthumb.screen .mthumb-img img { object-fit: contain; } /* never crop UI or baked text */
.mthumb.video { cursor: pointer; }
.mthumb.video .mthumb-img::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%2309070c'/%3E%3C/svg%3E") center / 1.625rem no-repeat; }
.mthumb-badge { position: absolute; left: 0.625rem; bottom: 0.625rem; z-index: 1; height: 1.5rem; padding: 0 0.5rem; border-radius: 0.375rem; background: rgba(0, 0, 0, .7); font-weight: 600; font-size: 0.8125rem; line-height: 1.5rem; }
.mthumb-zoom { position: absolute; right: 0.625rem; bottom: 0.625rem; z-index: 1; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f1f4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 5h5v5M10 19H5v-5M19 5l-6 6M5 19l6-6'/%3E%3C/svg%3E") center / 0.875rem no-repeat; }
.mthumb-kind { display: block; margin-top: 0.75rem; font-weight: 600; font-size: 0.8125rem; line-height: 1.1875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.mthumb-cap { display: block; margin-top: 1px; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }

/* ---------- community item (D13) ---------- */
.citem { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center; height: 4.5rem; padding: 0 0.75rem; border-radius: var(--r-card);
  background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s, background-color .2s; }
.citem:hover { background: var(--s2); box-shadow: inset 0 0 0 1px rgba(255, 111, 181, .4); }
.citem img { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 0.625rem; }
.citem b { align-self: end; font-weight: 600; font-size: 1rem; line-height: 1.4375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem span { align-self: start; margin-top: 1px; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--acc-hi); }

/* ---------- footer ---------- */
.ft { box-shadow: inset 0 1px 0 var(--hair); padding: 2.5rem 0 2rem; }
.ft-top { display: flex; align-items: flex-start; }
.ft-brand { display: flex; align-items: center; gap: 0.75rem; width: 27.5rem; flex: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.375rem; }
.ft-brand img { width: 1.75rem; height: 1.75rem; }
.ft-links { display: grid; row-gap: 0.75rem; padding-top: 0.3125rem; }
.ft-links div { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.ft-links a, .ft .privacy-settings { font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); transition: color .2s; }
.ft-links a:hover, .ft .privacy-settings:hover { color: var(--text); }
.ft .privacy-settings { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.ft-bottom { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 1.1875rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
@media (max-width: 1100px) { .ft-brand { width: 20rem; } }
@media (max-width: 760px) {
  .ft { padding: 2rem 0 1.5rem; }
  .ft-top { flex-direction: column; }
  .ft-brand { width: auto; gap: 0.625rem; }
  .ft-links { margin-top: 1.5rem; padding: 0; grid-template-columns: 11.875rem minmax(0, 1fr); }
  .ft-links div { flex-direction: column; gap: 0.5rem; }
  .ft-bottom { flex-direction: column; gap: 0; margin-top: 0.625rem; }
}

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