/* NaruBonk Wiki - stessi colori, caratteri e materiali del gioco (style.css): inchiostro caldo,
   spirali, cornici dorate, placca del coprifronte, carta bomba e sigilli */
:root {
  --bg: #17120f;
  --card: #241d19;
  --card-2: #2e2520;
  --card-3: #3a2f28;
  --line: rgba(255, 220, 170, 0.08);
  --line-2: rgba(255, 220, 170, 0.16);
  --text: #fbf1e2;
  --muted: #b5a28c;
  --ink: #17120f;
  --orange: #ff9a2e;
  --yellow: #ffc93c;
  --green: #3fd47a;
  --blue: #3d8bff;
  --purple: #8a5cff;
  --red: #ff4d5e;
  --cyan: #46d6e8;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M11 11a1.5 1.5 0 1 1 1.5 1.5a3.5 3.5 0 0 1-3.5-3.5a5.5 5.5 0 0 1 5.5-5.5a7.5 7.5 0 0 1 7.5 7.5'/%3E%3Cpath d='M33 33a1.5 1.5 0 1 1 1.5 1.5a3.5 3.5 0 0 1-3.5-3.5a5.5 5.5 0 0 1 5.5-5.5a7.5 7.5 0 0 1 7.5 7.5'/%3E%3C/g%3E%3C/svg%3E");
  --stripes-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M11 11a1.5 1.5 0 1 1 1.5 1.5a3.5 3.5 0 0 1-3.5-3.5a5.5 5.5 0 0 1 5.5-5.5a7.5 7.5 0 0 1 7.5 7.5'/%3E%3Cpath d='M33 33a1.5 1.5 0 1 1 1.5 1.5a3.5 3.5 0 0 1-3.5-3.5a5.5 5.5 0 0 1 5.5-5.5a7.5 7.5 0 0 1 7.5 7.5'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 600 15px/1.5 'Nunito', system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
img.px { image-rendering: pixelated; }
svg.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.22em; flex: none; overflow: visible; }
.hidden { display: none !important; }

/* ---------- barra in alto ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #201a16, #1c1613);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 24px var(--display); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { color: var(--orange); font-size: 0.75em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange); color: #17120f; font: 22px 'Shojumaru', serif; box-shadow: 0 3px 0 #c86a12;
}
.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.search input {
  width: 100%; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); font: inherit; outline: none;
}
.search input:focus { border-color: var(--orange); }
.results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 60vh; overflow: auto;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.results a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.results a:hover, .results a.on { background: var(--card-3); text-decoration: none; }
.results a small { margin-left: auto; color: var(--muted); }
.results img { width: 28px; height: 28px; object-fit: contain; }
.results .empty { padding: 10px; color: var(--muted); }
.play {
  padding: 8px 18px; border-radius: 999px; background: var(--green); color: #10301c; font: 17px var(--display);
  box-shadow: 0 3px 0 #1f9a51; white-space: nowrap;
}
.play:hover { text-decoration: none; filter: brightness(1.08); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- menu laterale ---------- */
.layout { display: flex; align-items: flex-start; }
.nav {
  position: sticky; top: 57px; width: 240px; flex: none; height: calc(100vh - 57px); overflow-y: auto;
  padding: 14px 10px 40px; border-right: 1px solid var(--line);
}
.nav h4 { margin: 14px 10px 4px; color: var(--muted); font: 13px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.nav a:hover { background: var(--card); text-decoration: none; }
.nav a.on { background: var(--card-2); color: var(--yellow); box-shadow: inset 3px 0 0 var(--orange); }
.nav a small { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ---------- pagina ---------- */
.page { flex: 1; min-width: 0; padding: 22px 32px 80px; max-width: 1200px; }
.loading { color: var(--muted); }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
h1 { font: 38px/1.1 var(--display); margin: 0 0 6px; }
h2 {
  font: 24px var(--display); margin: 34px 0 12px; padding: 6px 14px; border-radius: 10px;
  background: var(--stripes), var(--card-2); border-left: 5px solid var(--hc, var(--orange));
}
h3 { font: 19px var(--display); margin: 22px 0 8px; color: var(--yellow); }
.lead { color: #e2d4be; max-width: 820px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
p { max-width: 900px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: #17120f; background: var(--c, #c9c9d4); white-space: nowrap;
}
.chip.ghost { background: transparent; color: var(--c, var(--text)); box-shadow: inset 0 0 0 1.5px var(--c, var(--line-2)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* griglia di schede */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 220px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text);
}
a.card:hover { text-decoration: none; border-color: var(--c, var(--orange)); transform: translateY(-1px); }
.card .head { display: flex; align-items: center; gap: 10px; }
.card .head b { font: 17px/1.15 var(--display); }
.card .head small { display: block; color: var(--muted); font-size: 12.5px; }
.card p { margin: 0; font-size: 13.5px; color: #e2d4be; }
.card .ico-big { font-size: 26px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card-3); flex: none; }
.card .pic { width: 64px; height: 64px; object-fit: contain; flex: none; background: var(--card-3); border-radius: 12px; }
.card.rar { border-top: 3px solid var(--c); }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--yellow); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* scheda ninja nell'elenco */
.ninja-card { align-items: center; text-align: center; border-bottom: 4px solid var(--c); }
.ninja-card img { width: 112px; height: 96px; object-fit: contain; }
.ninja-card b { font: 20px var(--display); }
.ninja-card { position: relative; }
.ninja-card .nc-tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.ninja-group { margin: 14px 0 22px; padding-left: 12px; border-left: 4px solid var(--c); }
.ninja-group h3 { margin: 0 0 4px; color: var(--c); }
.ninja-group > p { margin: 0 0 10px; }

/* infobox stile wiki */
.article { display: flex; gap: 26px; align-items: flex-start; }
.article .body { flex: 1; min-width: 0; }
.article .body > .lead:first-child { margin-top: 0; }
.infobox {
  width: 300px; flex: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  position: sticky; top: 76px;
}
.infobox .ib-title { padding: 10px 14px; background: var(--c, var(--orange)); color: #17120f; font: 21px var(--display); text-align: center; }
.infobox .ib-pic { display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 60%, #4a3a30, #241d19 70%); }
.infobox .ib-pic img { max-width: 100%; height: 150px; object-fit: contain; }
.infobox table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.infobox th { text-align: left; color: var(--muted); font-weight: 700; padding: 6px 12px; width: 42%; vertical-align: top; }
.infobox td { padding: 6px 12px 6px 0; }
.infobox tr + tr { border-top: 1px solid var(--line); }

/* tabelle */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  position: sticky; top: 0; text-align: left; padding: 9px 12px; background: var(--card-2); color: var(--muted);
  font: 13px var(--display); letter-spacing: 0.04em; white-space: nowrap; cursor: default;
}
.tbl th[data-sort] { cursor: pointer; }
.tbl th[data-sort]:hover { color: var(--text); }
.tbl td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.04); }
.tbl td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl .name { display: flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.tbl .name img { width: 42px; height: 42px; object-fit: contain; }
.tbl td.wide { min-width: 240px; }
.tbl td > img.px { width: 42px; height: 42px; object-fit: contain; }
.tbl small { color: var(--muted); }

/* filtri */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; align-items: center; }
.filters .lbl { color: var(--muted); font-size: 13px; margin-right: 4px; }
.filters button {
  border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 13px;
  padding: 3px 12px; border-radius: 999px; cursor: pointer;
}
.filters button.on { background: var(--c, var(--orange)); color: #17120f; border-color: transparent; }
.filters input { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }

/* statistiche */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); }
a.stat:hover { border-color: var(--orange); text-decoration: none; }
.stat b { display: block; font: 30px var(--display); color: var(--c, var(--yellow)); }
.stat span { color: var(--muted); font-size: 13px; }

.bar { height: 8px; border-radius: 99px; background: var(--card-3); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; background: var(--c, var(--green)); }

/* dialoghi della saga */
.dialog { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.line { display: flex; gap: 10px; align-items: flex-start; }
.line img { width: 40px; height: 40px; object-fit: contain; background: var(--card-3); border-radius: 10px; flex: none; }
.line div { background: var(--card); border-radius: 12px; padding: 6px 12px; font-size: 14px; }
.line b { display: block; font-size: 12px; color: var(--orange); }
.line.narr div { background: transparent; font-style: italic; color: var(--muted); padding-left: 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 8px 0; }
details summary { cursor: pointer; font-weight: 800; }

.evo { display: flex; gap: 12px; align-items: center; }
.evo img { width: 84px; height: 72px; object-fit: contain; background: var(--card-3); border-radius: 12px; flex: none; }
.recipe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recipe .op { color: var(--muted); font: 20px var(--display); }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--card-2); color: var(--text); font-weight: 800; font-size: 13.5px; }
a.pill:hover { background: var(--card-3); text-decoration: none; }
.pill.fused { background: linear-gradient(90deg, #4b2f88, #2f3f88); }
.cycle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.cycle .arrow { color: var(--muted); }
ul.clean { padding-left: 18px; }
ul.clean li { margin: 3px 0; }
kbd {
  display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 6px; text-align: center;
  background: var(--card-3); box-shadow: 0 2px 0 #0f0b09; font: 800 13px 'Nunito', sans-serif;
}
.patch { border-left: 3px solid var(--orange); padding-left: 14px; margin: 18px 0; }
.patch h3 { margin: 0; }
.wheel-seg { display: flex; align-items: center; gap: 8px; }

/* ---------- telefono ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .play { display: none; }
  .brand > span:last-child { font-size: 18px; }
  .top { padding: 8px 12px; gap: 8px; }
  .nav {
    position: fixed; top: 53px; left: 0; z-index: 15; height: calc(100vh - 53px); background: var(--bg);
    transform: translateX(-100%); transition: transform 0.2s; box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .nav.open { transform: none; }
  .page { padding: 16px 16px 60px; }
  h1 { font-size: 30px; }
  .article { flex-direction: column-reverse; }
  .infobox { width: 100%; position: static; }
}
.infobox .pill { white-space: normal; }

/* ---------- spoiler ---------- */
.spoil-btn {
  border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.spoil-btn.on { background: var(--purple); color: #fff; border-color: transparent; }
.spoiler { filter: blur(6px); cursor: pointer; user-select: none; transition: filter 0.2s; border-radius: 6px; }
.spoiler:not(.open) * { pointer-events: none; }
.spoiler.open, .show-spoilers .spoiler { filter: none; cursor: auto; user-select: auto; }
.show-spoilers .spoiler * { pointer-events: auto; }
.spoiler.open * { pointer-events: auto; }
.spoiler.block { position: relative; filter: none; }
.spoiler.block > * { filter: blur(10px); transition: filter 0.2s; }
.spoiler.block.open > *, .show-spoilers .spoiler.block > * { filter: none; }
.spoiler.block:not(.open)::after {
  content: '🔒 ' attr(data-label) ' · clicca per vedere'; position: absolute; inset: 0; display: grid; place-items: center;
  padding: 8px; text-align: center; font-size: 13px; font-weight: 800; color: var(--yellow);
  background: rgba(23, 18, 15, 0.55); border-radius: 10px;
}
.show-spoilers .spoiler.block::after { display: none; }
@media (max-width: 860px) {
  .spoil-btn { padding: 6px 10px; font-size: 12px; }
  .spoil-btn .st { display: none; }
  .search { min-width: 0; }
  .brand small { display: none; }
}

/* ---------- partita collegata ---------- */
.sync-btn.on { background: var(--green); color: #10301c; }
.sync-btn:disabled { opacity: 0.5; cursor: default; }
.miss { opacity: 0.55; }
.miss:hover { opacity: 0.9; }
tr.miss td { opacity: 0.6; }
tr.miss { opacity: 1; }
tr.cur td { background: rgba(63, 212, 122, 0.08) !important; }
.chip.prog { margin-top: 2px; }
.ninja-card .chip.prog { align-self: center; }
.prog-grid .stat b small { font-size: 0.55em; color: var(--muted); }
.prog-grid .stat .bar { margin-top: 8px; }
@media (max-width: 480px) { .brand > span:last-child { display: none; } .top { gap: 6px; } }

/* forme che seguono la saga */
.era-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.era-row .card.era { flex: 1 1 220px; }
.era-row .card.era.now { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.era-row .evo b, .era-row .card.era > b { display: block; }
.era-row .evo p { margin: 0; font-size: 13px; color: #e2d4be; }
.era-arrow { align-self: center; color: var(--muted); font: 20px var(--display); }

/* ---------- scoperta ---------- */
.card.veiled { border-style: dashed; border-color: var(--line-2); background: var(--stripes-soft), var(--card); }
.card.veiled .ico-big.q, .q { font: 22px var(--display); color: var(--muted); }
.card.veiled .head b { color: var(--muted); }
.card.veiled.big { max-width: 620px; padding: 18px 20px; }
.hint { color: #e2d4be; font-size: 13.5px; margin: 2px 0; }
.hint svg { color: var(--yellow); }
.reveal {
  align-self: flex-start; border: 1px solid var(--line-2); background: var(--card-2); color: var(--yellow); font: inherit; font-size: 12.5px;
  padding: 3px 12px; border-radius: 999px; cursor: pointer;
}
.reveal:hover { background: var(--card-3); }
tr.veiled-row td { background: var(--stripes-soft) !important; }
tr.veiled-row .hint { margin: 0 8px; }
.pill.unknown { color: var(--muted); border: 1px dashed var(--line-2); background: transparent; }
h1.veiled-title { color: var(--muted); }
.card.callout { border-left: 4px solid var(--yellow); max-width: 820px; }
.card.callout p { margin: 4px 0 0; }
a.card.step b { font: 16px var(--display); }
a.card.step:hover { border-color: var(--green); }
details.tech { background: transparent; border-style: dashed; }
details.tech summary { color: var(--muted); font-size: 13px; }
.build-in { display: flex; gap: 8px; max-width: 620px; margin: 12px 0; }
.build-in input { flex: 1; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; }

/* ---------- guide pratiche ---------- */
ol.howto { counter-reset: step; list-style: none; padding: 0; max-width: 860px; }
ol.howto li { counter-increment: step; position: relative; padding: 8px 12px 8px 46px; margin: 6px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
ol.howto li::before { content: counter(step); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #17120f; font: 15px var(--display); }
.card.tip { border-left: 4px solid var(--green); max-width: 860px; margin: 12px 0; }
.card.tip p { margin: 2px 0 0; }
.card.tip b { color: var(--green); }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.guide-nav .card { flex: 0 1 300px; }
.guide-nav .card:last-child { text-align: right; }
a.card.callout.start { display: block; color: var(--text); }
a.card.callout.start:hover { text-decoration: none; border-color: var(--yellow); }
.guide-card .head small.muted { display: block; }

/* Le tecniche segrete in azione (ultGallery) */
.ult-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.ult-shot { margin: 0; background: var(--card-2, #241d19); border-radius: 12px; overflow: hidden; }
.ult-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: pixelated; }
.ult-shot figcaption { padding: 7px 10px 9px; display: flex; flex-direction: column; gap: 2px; }
.ult-shot figcaption b { font-size: 14px; }
.ult-shot figcaption small { color: var(--muted, #b5a28c); font-size: 12px; }


/* ---------- Pelle Konoha (come il gioco) ---------- */
.top { background: linear-gradient(180deg, #241d19, #1c1613); border-bottom: 3px solid var(--ink); box-shadow: 0 2px 0 rgba(232, 188, 110, .25); }
/* marchio: la O a spirale del logo */
.brand-mark { background: none; box-shadow: none; width: 38px; height: 38px; }
.brand-mark svg { width: 38px; height: 38px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.brand-mark circle { fill: #ff8a1e; stroke: var(--ink); stroke-width: 9; }
.brand-mark path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; transform-origin: 50% 50%; transform-box: view-box; animation: brand-spin 9s linear infinite; }
.brand:hover .brand-mark path { animation-duration: .9s; }
@keyframes brand-spin { to { transform: rotate(360deg); } }
.brand span:last-child { color: #ff8a1e; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.brand small { color: #fff; }
/* Gioca: pulsante a placca arancione */
.play { border-radius: 8px; border: 3px solid var(--ink); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, #ffaa50, #ff8a1e 55%, #d8620a); box-shadow: inset 0 0 0 2px rgba(255, 236, 200, .35), 0 4px 0 #7a3406; }
.nav a.on { background: var(--card-2); color: #ffcf8a; box-shadow: inset 4px 0 0 #c8372d; }
.search input, .build-in input, .filters input { border-radius: 8px; border: 2px solid rgba(232, 188, 110, .25); }
.search input:focus { border-color: #ff8a1e; }
/* titolo della pagina con il timbro rosso */
h1 { text-shadow: 0 3px 0 rgba(0,0,0,.45); }
/* sezioni: placca del coprifronte sulla fascia blu, come i titoli dei sotto menu.
   La fascia (::before, z-index -1) va dietro la placca: il contesto di impilamento e .page */
.page { isolation: isolate; }
h2 {
  position: relative; display: table; margin: 34px 0 14px 22px; padding: 5px 18px 6px; border: 0; border-radius: 9px;
  color: var(--ink); text-shadow: 0 2px 0 rgba(255,255,255,.5);
  background: linear-gradient(180deg, #f4f7fa, #c3ccd5 42%, #8f9aa6 56%, #cdd5dc);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 6px 0 3px rgba(255,255,255,.3), 0 4px 0 rgba(0,0,0,.45);
}
h2::before { content: ''; position: absolute; left: -22px; right: -22px; top: 50%; height: 20px; margin-top: -10px; z-index: -1; border-radius: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 14%, transparent 86%, rgba(0,0,0,.5)), linear-gradient(180deg, #3a4f8a, #1f2d5e 60%, #141c3a); }
h2::after { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hc, #c8372d); box-shadow: 0 0 0 1.5px var(--ink); }
h3 { color: #ffcf8a; }
/* riquadri di stoffa con contorno scuro e cornice dorata */
.card, .stat, details, .infobox, ol.howto li, .line div { border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(240, 204, 130, .3), 0 3px 0 rgba(0,0,0,.35); }
.card:hover { box-shadow: inset 0 0 0 2px rgba(255, 220, 150, .6), 0 4px 0 rgba(0,0,0,.4); }
.infobox .ib-title { border-bottom: 3px solid var(--ink); text-shadow: none; }
.infobox .ib-title + * { border-top: 0; }
.infobox { position: relative; }
.tbl-wrap { border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(240, 204, 130, .25); }
.card .ico-big, .card .pic, .line img, .evo img { border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #c9a24a55; }
.card .pic, .evo img, .line img { border-radius: 10px; }
/* passi numerati come timbri */
ol.howto li::before { border-radius: 4px; background: #c8372d; color: #fff; border: 2px solid #f6e3c8; rotate: -6deg; }
/* filtri e pulsanti di stato come cartellini di carta bomba */
.filters button, .spoil-btn {
  border: 0; border-left: 4px solid #8a7a68; border-radius: 2px; color: var(--ink); font-weight: 800;
  background: linear-gradient(180deg, #f6ead0, #e3cf9f); box-shadow: 0 2px 0 rgba(0,0,0,.4); opacity: .8;
}
.filters button:hover, .spoil-btn:hover { opacity: 1; }
.filters button.on, .spoil-btn.on, .sync-btn.on { opacity: 1; color: var(--ink); background: linear-gradient(180deg, #fff4dc, #ecdcb0); border-left-color: #c8372d; rotate: -2deg; }
