@font-face{font-family:'Archivo';font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(fonts/archivo-latin-wdth-normal.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+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archivo';font-style:italic;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:italic;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(fonts/archivo-latin-wdth-italic.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+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Ludic Activism — risografía de dos tintas sobre papel frío */
:root {
  --paper: #EEF1F4;
  --paper-2: #E2E7EE;
  --ink: #2B3A8C;
  --ink-deep: #151C48;
  --pink: #FF3E9A;
  --yellow: #FFD23F;
  --line: rgba(43, 58, 140, .22);
  --muted: #4A5486;
  --radius: 4px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

/* grano de impresión */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17  0 0 0 0 .23  0 0 0 0 .55  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; }

/* ---------- tinta corrida (riso) ---------- */
.riso {
  position: relative; display: inline-block;
  color: var(--ink);
  isolation: isolate;
}
.riso::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--pink);
  z-index: -1;
  transform: translate(.045em, .035em);
  transition: transform .35s var(--ease);
  white-space: inherit;
}
.riso > span { mix-blend-mode: multiply; }
.riso.settle::before { animation: settle 1.1s var(--ease) both .15s; }
@keyframes settle {
  from { transform: translate(.32em, -.18em); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translate(.045em, .035em); }
}
@media (prefers-reduced-motion: reduce) { .riso.settle::before { animation: none; } }

/* ---------- cabecera ---------- */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.mark { text-decoration: none; font-variation-settings: "wdth" 125; font-weight: 850; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1; }
.mark:hover .riso::before { transform: translate(-.07em, .06em); }
.nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; font-variation-settings: "wdth" 88; font-size: .98rem; padding: .2rem 0; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 .38em no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-deep); background-size: 100% .38em; }
@media (max-width: 760px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: .2rem; }
  .nav a { white-space: nowrap; }
}

/* ---------- tipografía ---------- */
h1, h2, h3 { color: var(--ink); line-height: 1.04; margin: 0 0 .5em; }
.display { font-variation-settings: "wdth" 125; font-weight: 880; letter-spacing: -.025em; }
h2 { font-variation-settings: "wdth" 118; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.018em; }
h3 { font-variation-settings: "wdth" 110; font-weight: 750; font-size: 1.32rem; }
.lead { font-size: clamp(1.18rem, 1.8vw, 1.42rem); line-height: 1.45; color: var(--ink-deep); max-width: 40ch; }
.small { font-size: .9rem; color: var(--muted); }
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); }
.page-head p { max-width: 62ch; font-size: 1.15rem; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 2px solid var(--ink); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 700; font-variation-settings: "wdth" 100;
  color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .72rem 1.15rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 var(--pink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { color: var(--paper); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--pink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--ink); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- portada ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9.6rem); line-height: .86; margin-bottom: .35em; }
.hero h1 .riso { display: block; }
.hero .count { margin-top: 1.2rem; max-width: 46ch; color: var(--muted); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.dice-zone { position: relative; padding: 1.4rem; }
.dice-zone::before {
  content: ""; position: absolute; inset: 0 0 18% 22%;
  background-image: radial-gradient(var(--pink) 1.3px, transparent 1.6px);
  background-size: 10px 10px; opacity: .55; z-index: 0;
}
.dice-zone > * { position: relative; z-index: 1; }
.die-btn { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 1rem; font: inherit; font-weight: 700; color: var(--ink); }
.die {
  width: 84px; height: 84px; flex: none;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 11px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s var(--ease);
}
.die i { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); place-self: center; opacity: 0; }
.die[data-face="1"] i:nth-child(5),
.die[data-face="2"] i:is(:nth-child(1), :nth-child(9)),
.die[data-face="3"] i:is(:nth-child(1), :nth-child(5), :nth-child(9)),
.die[data-face="4"] i:is(:nth-child(1), :nth-child(3), :nth-child(7), :nth-child(9)),
.die[data-face="5"] i:is(:nth-child(1), :nth-child(3), :nth-child(5), :nth-child(7), :nth-child(9)),
.die[data-face="6"] i:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(9)) { opacity: 1; }
.die-btn:hover .die { transform: rotate(-6deg); }
.die.rolling { animation: roll .7s var(--ease); }
@keyframes roll {
  0% { transform: rotate(0) translateY(0); }
  30% { transform: rotate(-200deg) translateY(-26px) scale(1.06); }
  60% { transform: rotate(-330deg) translateY(4px); }
  100% { transform: rotate(-360deg) translateY(0); }
}
.die-label { font-variation-settings: "wdth" 115; font-size: 1.15rem; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: .14em; text-underline-offset: .2em; }
.pick {
  margin-top: 1.6rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem; box-shadow: 8px 8px 0 var(--yellow);
  min-height: 12.5rem;
}
.pick.reveal { animation: reveal .45s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pick .where { font-size: .92rem; color: var(--muted); margin: 0 0 .35rem; }
.pick h3 { margin-bottom: .35rem; }
.pick p { margin: 0 0 .7rem; font-size: .98rem; }
@media (prefers-reduced-motion: reduce) { .die.rolling, .pick.reveal { animation: none; } }

.definition { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 2.5rem; }
.definition blockquote { margin: 0; font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.38; font-style: italic; font-variation-settings: "wdth" 96; color: var(--ink-deep); max-width: 44ch; }
.definition cite { display: block; margin-top: 1rem; font-style: normal; font-size: 1rem; color: var(--muted); }
@media (max-width: 760px) { .definition { grid-template-columns: 1fr; gap: 1rem; } }

/* tablero de regiones */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); margin-top: 2rem; }
.space {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 9.5rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--paper); transition: background .2s, color .2s;
}
.space:nth-child(4n) { border-right: 0; }
.space:nth-last-child(-n+4) { border-bottom: 0; }
.space .n { font-variation-settings: "wdth" 125; font-weight: 880; font-size: 2.6rem; line-height: 1; }
.space .r { font-weight: 650; font-variation-settings: "wdth" 92; line-height: 1.2; }
.space:hover { background: var(--ink); color: var(--paper); }
.space:hover .n { color: var(--yellow); }
.space.hl { background: var(--yellow); }
.space.hl:hover { background: var(--ink); }
@media (max-width: 880px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space:nth-child(4n) { border-right: 2px solid var(--ink); }
  .space:nth-child(2n) { border-right: 0; }
  .space:nth-last-child(-n+4) { border-bottom: 2px solid var(--ink); }
  .space:nth-last-child(-n+2) { border-bottom: 0; }
}

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1.8rem; }
.token {
  display: block; text-decoration: none; color: var(--ink-deep);
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  padding: 1rem 1.1rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.token:hover { color: var(--ink-deep); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--pink); }
.token strong { display: block; color: var(--ink); font-variation-settings: "wdth" 112; font-size: 1.12rem; margin-bottom: .25rem; }
.token span { font-size: .95rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- filtros ---------- */
.filters {
  position: sticky; top: var(--head-h, 62px); z-index: 30;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  padding: .9rem 0;
}
.filters .wrap { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; }
.field { display: flex; flex-direction: column; gap: .15rem; }
.field label { font-size: .8rem; font-weight: 650; color: var(--muted); font-variation-settings: "wdth" 88; }
input[type="search"], select {
  font: inherit; font-size: .98rem; color: var(--ink-deep);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .45rem .6rem; min-height: 42px;
}
input[type="search"] { width: min(320px, 78vw); }
select { padding-right: 2rem; max-width: 240px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-size: .92rem; font-weight: 650; background: transparent; color: var(--ink); border: 0; padding: .45rem .75rem; cursor: pointer; min-height: 38px; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.check { display: inline-flex; gap: .45rem; align-items: center; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.result-count { margin-left: auto; font-weight: 650; font-variation-settings: "wdth" 92; }
@media (max-width: 760px) { .result-count { margin-left: 0; width: 100%; } }

/* ---------- catastro ---------- */
.group-title { margin: 2.8rem 0 .2rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.group-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.group-title span { color: var(--muted); font-weight: 600; }
.entry { border-bottom: 1px solid var(--line); }
.entry > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: .95rem .2rem;
  transition: background .2s;
}
.entry > summary::-webkit-details-marker { display: none; }
.entry > summary:hover { background: var(--paper-2); }
.entry .yr { font-variation-settings: "wdth" 80; font-weight: 700; color: var(--muted); font-size: .95rem; }
.entry .tt { font-variation-settings: "wdth" 112; font-weight: 760; font-size: 1.16rem; color: var(--ink); line-height: 1.2; }
.entry .by { display: block; font-size: .93rem; color: var(--muted); margin-top: .2rem; }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: .78rem; font-weight: 650; font-variation-settings: "wdth" 85; border: 1.5px solid var(--ink); border-radius: 999px; padding: .08rem .55rem; white-space: nowrap; color: var(--ink); }
.tag.analog { background: var(--yellow); }
.tag.method { background: var(--paper-2); }
.tag.flag { border-color: var(--pink); color: #B0105F; }
.entry[open] > summary { background: var(--paper-2); }
.entry[open] .tt { color: var(--ink-deep); }
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1.6rem; padding: .4rem .2rem 1.6rem 5.8rem; }
.entry-body.noimg { grid-template-columns: minmax(0, 1fr); }
.entry-body p { margin: 0 0 .8rem; max-width: 68ch; }
.entry-body .why { font-size: .97rem; color: var(--muted); border-left: 3px solid var(--pink); padding-left: .8rem; }
.entry-body .facts { font-size: .9rem; color: var(--muted); }
.entry-body figure { margin: 0; }
.entry-body figure img { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--yellow); }
.links { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .4rem; }
.links a { font-size: .93rem; font-weight: 650; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: .32rem .7rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.links a:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); }
.entry > summary .tw { min-width: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .entry::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
  .entry[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .entry::details-content { transition: none; } }
@media (max-width: 760px) {
  .entry > summary { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .entry > summary .tags { grid-column: 2; justify-content: flex-start; }
  .entry-body { grid-template-columns: 1fr; padding-left: .2rem; }
}
.empty { padding: 3rem 0; font-size: 1.1rem; }
.is-hidden { display: none !important; }

/* ---------- recursos / listas ---------- */
.rows { margin-top: 1rem; }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 1.2rem; padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
.row .nm { font-weight: 760; font-variation-settings: "wdth" 110; font-size: 1.08rem; }
.row .meta { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }
.row p { margin: 0; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: .3rem; } }
.biblio li { margin-bottom: .9rem; max-width: 80ch; }
.biblio { padding-left: 1.2rem; }
.oa { display: inline-block; background: var(--yellow); font-weight: 700; font-size: .78rem; padding: 0 .4rem; border-radius: 3px; margin-left: .2rem; }

/* ---------- pie ---------- */
.site-foot { border-top: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding: 3rem 0 2.2rem; margin-top: 0; }
.site-foot a { color: var(--paper); }
.site-foot a:hover { color: var(--yellow); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.foot-grid h3 { color: var(--yellow); font-size: 1.05rem; }
.foot-grid p { margin: 0 0 .6rem; font-size: .95rem; }
.foot-mark { font-variation-settings: "wdth" 125; font-weight: 880; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: .9; color: var(--paper); margin-bottom: 1rem; }
.foot-mark .riso { color: var(--paper); }
.foot-mark .riso::before { color: var(--pink); }
.foot-mark .riso > span { mix-blend-mode: normal; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.entry { scroll-margin-top: calc(var(--head-h, 62px) + 96px); }
.hero + section { border-top: 0; }
@media (max-width: 760px) {
  .filters { position: static; }
  .filters .wrap { gap: .6rem .8rem; }
  .field { width: 100%; }
  input[type="search"], select { width: 100%; max-width: none; }
  .entry { scroll-margin-top: calc(var(--head-h, 62px) + 12px); }
  .page-head { padding-top: 2rem; }
}

/* ---------- idioma ---------- */
.head-right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
.lang-pick { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .1rem .2rem .1rem .55rem; }
.lang-pick select { border: 0; background: transparent; min-height: 30px; padding: .1rem 1.4rem .1rem .2rem; font-weight: 650; font-size: .92rem; max-width: none; cursor: pointer; }
.lang-pick:focus-within { outline: 3px solid var(--pink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flabel { font-size: .8rem; font-weight: 650; color: var(--muted); font-variation-settings: "wdth" 88; }
.section-display { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.spaced { margin-top: 2rem; }
@media (max-width: 760px) { .head-right { width: 100%; justify-content: space-between; } .lang-pick { order: -1; } }

/* CJK: Archivo no tiene esos glifos; usamos tipografías del sistema */
html[lang|="zh"] body { font-family: "Archivo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: 1.75; }
html[lang="ja"] body { font-family: "Archivo", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; line-height: 1.75; }
html[lang|="zh"] .display, html[lang="ja"] .display { letter-spacing: 0; font-weight: 900; }
html[lang|="zh"] .hero h1, html[lang="ja"] .hero h1 { font-size: clamp(3rem, 8.5vw, 7.6rem); line-height: 1.02; }
html[lang|="zh"] .lead, html[lang="ja"] .lead { max-width: 30em; }
html[lang|="zh"] .entry .tt, html[lang="ja"] .entry .tt { line-height: 1.35; }
.entry { scroll-margin-top: calc(var(--head-h, 62px) + 150px); }
@media (max-width: 760px) { .entry { scroll-margin-top: calc(var(--head-h, 62px) + 12px); } }
html[lang="ja"] .hero h1, html[lang|="zh"] .hero h1 { font-size: clamp(2.6rem, 6.2vw, 6rem); }
html[lang="ja"] .hero h1 .riso, html[lang|="zh"] .hero h1 .riso { word-break: keep-all; line-break: strict; }

/* ---------- contribuir ---------- */
.nav a.nav-cta { background: var(--pink); color: #fff; padding: .22rem .7rem; border-radius: 999px; background-size: auto; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.page-head .suggest { margin-top: 1.2rem; }
.page-head .resp { font-size: 1rem; color: var(--muted); }
.form-section { padding-top: 2.5rem; }
.contrib { max-width: 860px; }
.contrib fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.contrib legend { font-variation-settings: "wdth" 112; font-weight: 760; font-size: 1.25rem; color: var(--ink); margin-bottom: .8rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: .45rem .95rem; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, transform .15s var(--ease), box-shadow .15s var(--ease); }
.choice span:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; margin-bottom: 1.4rem; }
.grid2 .wide { grid-column: 1 / -1; }
.contrib .field label { font-size: .95rem; color: var(--ink-deep); }
.contrib input[type="text"], .contrib input[type="url"], .contrib input[type="email"], .contrib textarea {
  font: inherit; color: var(--ink-deep); background: var(--paper); width: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: .6rem .7rem;
}
.contrib textarea { resize: vertical; min-height: 8rem; }
.contrib input:focus, .contrib textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--yellow); }
.contrib input:user-invalid, .contrib textarea:user-invalid { border-color: var(--pink); }
.req { color: var(--muted); font-size: .85rem; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 650; min-height: 1.5rem; }
.form-status.ok { color: var(--ink); border-left: 4px solid var(--yellow); padding-left: .7rem; }
.form-status.bad { color: #B0105F; border-left: 4px solid var(--pink); padding-left: .7rem; }
button.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* =========================================================
   Identidad Ludic Activism (logo D-pad, violeta + negro)
   Esta capa reemplaza la paleta riso anterior y conserva
   la estructura, el dado y el desfase de tinta.
   ========================================================= */
@font-face{font-family:'Alike Angular';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/alike-angular-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Alike Angular';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/alike-angular-latin-400-normal.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+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --paper: #FFFFFF;
  --paper-2: #F3F3F3;
  --ink: #000000;
  --ink-deep: #000000;
  --violet: #7C72F7;
  --violet-deep: #4E44D6;
  --lilac: #E6E5FE;
  --pink: #7C72F7;      /* acento: ahora violeta */
  --yellow: #E6E5FE;    /* resaltado: ahora lila */
  --line: rgba(0, 0, 0, .13);
  --muted: #55556A;
  --radius: 14px;
  --serif: "Alike Angular", Georgia, serif;
}
body::after { opacity: .05; }
a { color: var(--ink); text-decoration-color: var(--violet); }
a:hover { color: var(--violet-deep); }
:focus-visible { outline-color: var(--violet); }

/* titulares en serif angular, en diálogo con el logotipo */
h1, h2, h3, .display, .page-head h1, .hero h1, .group-title h2, .foot-brand {
  font-family: var(--serif); font-weight: 400; font-variation-settings: normal; letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(3.4rem, 9.6vw, 8.8rem); line-height: .92; }
.page-head h1 { font-size: clamp(3rem, 7.6vw, 6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
.riso { color: var(--ink); }
.riso::before { color: var(--violet); transform: translate(.05em, .045em); }
.riso > span { mix-blend-mode: normal; }
@keyframes settle {
  from { transform: translate(.28em, -.16em); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translate(.05em, .045em); }
}

/* cabecera con logo */
.site-head { border-bottom: 1.5px solid var(--ink); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); }
.mark { display: inline-flex; align-items: center; }
.mark img { height: 48px; width: auto; transition: transform .35s var(--ease); }
.mark:hover img { transform: rotate(-2deg) scale(1.02); }
.nav a { background-image: linear-gradient(var(--violet), var(--violet)); background-size: 0 .22em; background-position: 0 100%; }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% .22em; color: var(--ink); }
.nav a.nav-cta { background: var(--violet); color: #000; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: #000; color: #fff; }
.lang-pick { border-width: 1.5px; }

/* motivo D-pad del logo como trama */
.hero, .page-head {
  background-color: var(--paper);
  background-image: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,0) 78%), url(brand/pattern-256.png);
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
}
.hero, .page-head, section + section { border-color: var(--ink); border-width: 1.5px; }
section + section { border-top: 1.5px solid var(--ink); }
.page-head { border-bottom: 1.5px solid var(--ink); }
@media (max-width: 760px) {
  .hero, .page-head { background-image: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.9) 100%), url(brand/pattern-256.png); }
}

/* botones y fichas redondeadas, sombra dura violeta */
.btn { border-radius: 999px; border-width: 1.5px; background: #000; border-color: #000; }
.btn:hover { box-shadow: 5px 5px 0 var(--violet); }
.btn.ghost { background: #fff; color: #000; }
.token, .pick, .links a, input[type="search"], select, .seg, .contrib input[type="text"], .contrib input[type="url"], .contrib input[type="email"], .contrib textarea { border-radius: var(--radius); border-width: 1.5px; }
.links a { border-radius: 999px; }
.token:hover, .links a:hover { box-shadow: 5px 5px 0 var(--violet); }
.pick { box-shadow: 8px 8px 0 var(--violet); }
.dice-zone::before { background-image: none; background: var(--lilac); border-radius: 28px; inset: 0 0 22% 18%; opacity: 1; }

/* dado = baldosa violeta del isotipo */
.die { background: var(--violet); border: 0; border-radius: 22px; box-shadow: 6px 6px 0 #000; padding: 13px; }
.die i { background: #fff; width: 14px; height: 14px; }
.die-label { text-decoration-color: var(--violet); }

/* tablero de regiones */
.board { border: 1.5px solid #000; border-radius: 20px; overflow: hidden; }
.space { border-color: #000 !important; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.space .n { font-family: var(--serif); font-weight: 400; font-variation-settings: normal; font-size: 3rem; }
.space:hover { background: var(--violet); color: #000; }
.space:hover .n { color: #000; }
.space.hl { background: var(--lilac); }
.space.hl:hover { background: var(--violet); }

/* catastro */
.filters { border-bottom: 1.5px solid #000; background: rgba(255,255,255,.96); }
.seg button + button { border-left-width: 1.5px; }
.seg button[aria-pressed="true"] { background: #000; color: #fff; }
.check input { accent-color: var(--violet); }
.group-title { border-bottom: 1.5px solid #000; }
.entry .tt { font-variation-settings: "wdth" 105; }
.entry > summary { border-radius: 10px; }
.entry > summary:hover, .entry[open] > summary { background: var(--paper-2); }
.tag { border-width: 1.5px; border-color: #000; color: #000; }
.tag.analog { background: var(--lilac); border-color: var(--violet-deep); }
.tag.method { background: var(--paper-2); }
.tag.flag { border-color: var(--violet-deep); color: var(--violet-deep); background: #fff; }
.entry-body .why { border-left-color: var(--violet); }
.entry-body figure img { border-width: 1.5px; border-radius: var(--radius); box-shadow: 6px 6px 0 var(--violet); }
.oa { background: var(--lilac); color: #000; }

/* formulario */
.choice span { border-width: 1.5px; }
.choice span:hover { box-shadow: 4px 4px 0 var(--violet); }
.contrib input:focus, .contrib textarea:focus { box-shadow: 5px 5px 0 var(--violet); }
.contrib input:user-invalid, .contrib textarea:user-invalid { border-color: var(--violet-deep); }
.form-status.ok { border-left-color: var(--violet); }
.form-status.bad { color: var(--violet-deep); border-left-color: var(--violet-deep); }

/* pie violeta con isotipo negro, como la baldosa del manual */
.site-foot { background: var(--violet); color: #000; border-top: 1.5px solid #000; }
.site-foot a { color: #000; text-decoration-color: #000; }
.site-foot a:hover { color: #fff; }
.foot-grid h3 { color: #000; font-family: var(--serif); font-size: 1.3rem; }
.foot-mark { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.foot-mark img { height: clamp(70px, 9vw, 110px); width: auto; }
.foot-brand { font-size: clamp(1.8rem, 4vw, 3rem); color: #000; line-height: 1; }

/* CJK: el serif no tiene esos glifos */
html[lang|="zh"] h1, html[lang|="zh"] h2, html[lang|="zh"] h3, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: "Alike Angular", "Songti SC", "Noto Serif SC", "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif; }
.mark img { height: 56px; }
@media (max-width: 760px) { .mark img { height: 46px; } }
.foot-brand:empty { display: none; }

/* =========================================================
   v3: logotipo protagonista, sin sombras en las letras
   ========================================================= */
.riso::before { content: none; display: none; }
.riso.settle::before { animation: none; }

/* portada: baldosa violeta del manual con el logotipo grande */
.hero {
  position: relative; isolation: isolate;
  background: var(--violet);
  border-bottom: 1.5px solid #000;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(brand/pattern-256.png) 0 0 / 190px 190px repeat;
  opacity: .22; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 38%, #000 80%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 38%, #000 80%);
}
.hero-grid { align-items: center; }
.hero-logo { margin: 0 0 1.6rem; line-height: 0; }
.hero-logo img {
  width: min(100%, 640px); height: auto;
  transform-origin: 18% 50%;
  animation: logo-in .9s var(--ease) both .1s;
}
@keyframes logo-in { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-logo img { animation: none; } }
.hero-name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; margin: -.4rem 0 1.2rem; color: #000; }
.hero .lead { color: #000; max-width: 36ch; }
.hero .count { color: #1b1640; }
.hero .btn { box-shadow: none; }
.hero .btn:hover { box-shadow: 5px 5px 0 #fff; }
.hero .btn.ghost { background: transparent; border-color: #000; color: #000; }
.hero .btn.ghost:hover { background: #fff; }

/* el dado sobre violeta: baldosa negra con puntos violeta, como el isotipo en positivo */
.dice-zone::before { content: none; }
.die { background: #000; box-shadow: 6px 6px 0 #fff; }
.die i { background: var(--violet); }
.die-btn { color: #000; }
.die-label { text-decoration-color: #000; }
.pick { border: 1.5px solid #000; box-shadow: 8px 8px 0 #000; background: #fff; }

/* titulares sin efecto: negro limpio, serif angular */
.page-head h1, h1, h2, h3 { color: #000; text-shadow: none; }
.page-head { background-image: linear-gradient(90deg, #fff 0%, #fff 46%, rgba(255,255,255,0) 82%), url(brand/pattern-256.png); }

@media (max-width: 880px) {
  .hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 100%); }
  .hero-logo img { width: 100%; }
}
