/* ==========================================================
   TAPWORLD WIKI V2 — GAME CODEX / CINEMATIC PREMIUM
   Lightweight frontend for shortcode [tapworld_wiki]
   ========================================================== */
.twwiki-v2,
.twwiki-v2 *{box-sizing:border-box}
.twwiki-v2{
  --tw-accent:#01BBA2;
  --tw-accent-soft:#BDEFE7;
  --tw-yellow:#FFD75E;
  --tw-ink:#173746;
  --tw-ink-2:#294652;
  --tw-text:#59747D;
  --tw-muted:#789098;
  --tw-bg:#EDF7F6;
  --tw-bg-2:#F8FBFB;
  --tw-surface:#FFFFFF;
  --tw-border:rgba(24,54,64,.09);
  --tw-shadow:0 26px 64px rgba(16,56,67,.11);
  position:relative;
  width:100%;
  overflow:clip;
  color:var(--tw-ink);
  background:var(--tw-bg);
}
html[data-tw-theme="dark"] .twwiki-v2{
  --tw-ink:#EFF9FA;
  --tw-ink-2:#DCEBED;
  --tw-text:#B1C8CE;
  --tw-muted:#9CB5BC;
  --tw-bg:#071D24;
  --tw-bg-2:#0B2730;
  --tw-surface:#10313B;
  --tw-border:rgba(255,255,255,.08);
  --tw-shadow:0 26px 64px rgba(0,0,0,.22);
}
.twwiki-v2 a{text-decoration:none!important;color:inherit}
.twwiki-v2 button,.twwiki-v2 input,.twwiki-v2 select{font:inherit}
.twwiki-v2 button{cursor:pointer}
.twwiki-v2__shell{position:relative;z-index:2;width:100%;max-width:1460px;margin:0 auto;padding-left:24px;padding-right:24px}
.twwiki-v2__overline{margin:0;color:#3F9F61;font-size:12px;line-height:1.2;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
html[data-tw-theme="dark"] .twwiki-v2__overline{color:#7ED6A0}

/* HERO */
.twwiki-v2__hero{position:relative;isolation:isolate;min-height:520px;display:flex;align-items:flex-end;overflow:hidden;background:#DCEFED}
.twwiki-v2__hero-bg{position:absolute;inset:-2%;z-index:-4;background-image:linear-gradient(90deg,rgba(247,252,251,.96) 0%,rgba(247,252,251,.88) 45%,rgba(247,252,251,.56) 72%,rgba(247,252,251,.38) 100%),url("https://www.tapworld.it/wp-content/uploads/2026/08/Bosco-dei-Petali-Lucenti.png");background-position:center;background-repeat:no-repeat;background-size:cover}
.twwiki-v2__hero::after{content:"";position:absolute;inset:auto 0 0;height:34%;z-index:-2;background:linear-gradient(180deg,transparent,var(--tw-bg));pointer-events:none}
.twwiki-v2__hero-glow{position:absolute;z-index:-1;border-radius:50%;filter:blur(70px);opacity:.12;pointer-events:none}
.twwiki-v2__hero-glow--a{width:430px;height:430px;left:-170px;top:-180px;background:var(--tw-accent)}
.twwiki-v2__hero-glow--b{width:390px;height:390px;right:9%;top:-210px;background:var(--tw-yellow)}
html[data-tw-theme="dark"] .twwiki-v2__hero{background:#061A21}
html[data-tw-theme="dark"] .twwiki-v2__hero-bg{background-image:linear-gradient(90deg,rgba(6,26,33,.96) 0%,rgba(6,26,33,.90) 45%,rgba(6,26,33,.64) 72%,rgba(6,26,33,.48) 100%),url("https://www.tapworld.it/wp-content/uploads/2026/08/Foresta-Lunare.png")}
.twwiki-v2__hero-inner{width:100%;padding-top:124px;padding-bottom:76px;display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.72fr);gap:70px;align-items:end}
.twwiki-v2__hero-copy{max-width:820px}
.twwiki-v2__hero-copy h1{margin:13px 0 20px;color:var(--tw-ink);font-size:clamp(52px,5.8vw,88px);line-height:.94;font-weight:700;letter-spacing:-.06em;text-wrap:balance}
.twwiki-v2__hero-copy h1 span{display:block;background:linear-gradient(100deg,#0A9B87,#01BBA2 48%,#54B87A);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-tw-theme="dark"] .twwiki-v2__hero-copy h1 span{background:linear-gradient(100deg,#7BE7D7,#01BBA2 52%,#FFD75E);-webkit-background-clip:text;background-clip:text}
.twwiki-v2__lead{max-width:760px;margin:0;color:var(--tw-text);font-size:clamp(18px,1.5vw,22px);line-height:1.64;font-weight:300}
.twwiki-v2__hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.twwiki-v2__hero-meta span{padding:8px 11px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.67);border:1px solid rgba(255,255,255,.72);color:var(--tw-ink-2);font-size:10px;font-weight:750;box-shadow:0 8px 22px rgba(16,56,67,.05)}
.twwiki-v2__hero-meta i{width:6px;height:6px;border-radius:50%;background:var(--tw-accent);box-shadow:0 0 0 4px rgba(1,187,162,.09)}
html[data-tw-theme="dark"] .twwiki-v2__hero-meta span{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.08)}
.twwiki-v2__search-panel{padding:24px;border-radius:28px;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.78);box-shadow:0 28px 70px rgba(16,56,67,.14);backdrop-filter:blur(16px)}
html[data-tw-theme="dark"] .twwiki-v2__search-panel{background:rgba(13,44,54,.84);border-color:rgba(255,255,255,.08);box-shadow:0 28px 70px rgba(0,0,0,.26)}
.twwiki-v2__search-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.twwiki-v2__search-head span{color:var(--tw-accent);font-size:10px;font-weight:850;letter-spacing:.11em}
.twwiki-v2__search-head small{color:var(--tw-muted);font-size:10px}
.twwiki-v2__search{height:62px;padding:0 14px 0 16px;display:grid;grid-template-columns:24px 1fr auto;gap:12px;align-items:center;border-radius:18px;background:var(--tw-surface);border:1px solid var(--tw-border);transition:border-color .2s ease,box-shadow .2s ease}
.twwiki-v2__search:focus-within{border-color:var(--tw-accent);box-shadow:0 0 0 4px rgba(1,187,162,.11)}
.twwiki-v2__search svg{width:22px;height:22px;fill:none;stroke:var(--tw-accent);stroke-width:2;stroke-linecap:round}
.twwiki-v2__search input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--tw-ink);font-size:15px}
.twwiki-v2__search input::placeholder{color:var(--tw-muted)}
.twwiki-v2__search kbd{padding:6px 8px;border-radius:9px;background:var(--tw-bg);border:1px solid var(--tw-border);color:var(--tw-muted);font-size:11px;font-family:inherit}
.twwiki-v2__search-panel>p{margin:11px 2px 0;color:var(--tw-muted);font-size:11px;line-height:1.45}

/* NAVIGATOR */
.twwiki-v2__navigator{position:sticky;top:0;z-index:40;padding:18px 0 16px;background:rgba(247,252,251,.91);border-bottom:1px solid var(--tw-border);backdrop-filter:blur(18px)}
html[data-tw-theme="dark"] .twwiki-v2__navigator{background:rgba(7,29,36,.91)}
.twwiki-v2__nav-top{display:flex;align-items:center;justify-content:space-between;gap:18px}
.twwiki-v2__nav-label span,.twwiki-v2__nav-label strong{display:block}
.twwiki-v2__nav-label span{color:var(--tw-accent);font-size:9px;font-weight:850;letter-spacing:.11em}
.twwiki-v2__nav-label strong{margin-top:3px;font-size:13px}
.twwiki-v2__reset{padding:8px 11px;border-radius:11px;background:transparent;border:1px solid var(--tw-border);color:var(--tw-muted);font-size:10px;font-weight:750;transition:.2s ease}
.twwiki-v2__reset:hover{color:var(--tw-ink);border-color:rgba(1,187,162,.32)}
.twwiki-v2__filters{display:flex;gap:7px;overflow-x:auto;padding:12px 0 4px;scrollbar-width:thin;scroll-snap-type:x proximity}
.twwiki-v2__filters button{flex:0 0 auto;min-height:38px;padding:7px 11px;display:inline-flex;align-items:center;gap:8px;scroll-snap-align:start;white-space:nowrap;border:1px solid var(--tw-border);border-radius:12px;background:var(--tw-surface);color:var(--tw-ink-2);font-size:11px;font-weight:750;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.twwiki-v2__filters button:hover{transform:translateY(-2px);border-color:rgba(1,187,162,.22)}
.twwiki-v2__filters button.is-active{background:var(--tw-accent);border-color:var(--tw-accent);color:#0E2A31;box-shadow:0 8px 20px rgba(1,187,162,.14)}
.twwiki-v2__filter-mark{width:9px;height:9px;border-radius:3px;background:linear-gradient(145deg,var(--tw-accent-soft),var(--tw-accent));box-shadow:0 0 0 3px rgba(1,187,162,.07)}
.twwiki-v2__filters button.is-active .twwiki-v2__filter-mark{background:#0E2A31;box-shadow:none;opacity:.72}
.twwiki-v2__filter-mark[data-kind="personaggi"]{border-radius:50%}
.twwiki-v2__filter-mark[data-kind="valute-risorse"]{border-radius:50%;background:var(--tw-yellow)}
.twwiki-v2__filter-mark[data-kind="zone-mondo"]{transform:rotate(45deg);border-radius:2px}
.twwiki-v2__filter-mark[data-kind="oggetti-collezione"]{border-radius:2px}
.twwiki-v2__filter-mark[data-kind="sistemi-gioco"]{border-radius:50%;border:2px solid var(--tw-accent);background:transparent}
.twwiki-v2__filter-mark[data-kind="missioni-eventi"]{background:var(--tw-yellow);transform:rotate(45deg)}
.twwiki-v2__filter-mark[data-kind="social-ecosistema"]{border-radius:50%;box-shadow:10px 0 0 -2px var(--tw-accent-soft)}
.twwiki-v2__advanced{margin-top:10px;display:flex;align-items:end;gap:9px}
.twwiki-v2__advanced label{display:grid;gap:5px}
.twwiki-v2__advanced label>span{color:var(--tw-muted);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.twwiki-v2__advanced select{min-height:36px;padding:0 32px 0 10px;border:1px solid var(--tw-border);border-radius:10px;background:var(--tw-surface);color:var(--tw-ink);font-size:10px;font-weight:700;outline:0}
.twwiki-v2__results{margin-left:auto;padding-bottom:8px;color:var(--tw-muted);font-size:10px;font-weight:750}

/* CATALOG */
.twwiki-v2__catalog{position:relative;isolation:isolate;padding:92px 0 120px;background:linear-gradient(180deg,var(--tw-bg),var(--tw-bg-2))}
.twwiki-v2__catalog-ambient{position:absolute;inset:0;z-index:-1;opacity:.34;background-image:radial-gradient(circle at 1px 1px,rgba(24,54,64,.06) 1px,transparent 1.2px);background-size:30px 30px;mask-image:linear-gradient(180deg,#000,transparent 90%)}
html[data-tw-theme="dark"] .twwiki-v2__catalog-ambient{background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.035) 1px,transparent 1.2px)}
.twwiki-v2__catalog-head{margin-bottom:42px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.58fr);gap:50px;align-items:end}
.twwiki-v2__catalog-head h2{max-width:850px;margin:10px 0 0;color:var(--tw-ink);font-size:clamp(40px,4.7vw,68px);line-height:.98;font-weight:700;letter-spacing:-.052em}
.twwiki-v2__catalog-head>p{margin:0;color:var(--tw-text);font-size:14px;line-height:1.66}
.twwiki-v2__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;transition:opacity .16s ease}
.twwiki-v2.is-loading .twwiki-v2__grid{opacity:.46}
.twwiki-v2__card{position:relative;min-width:0;overflow:hidden;border-radius:26px;background:var(--tw-surface);border:1px solid var(--tw-border);box-shadow:0 18px 42px rgba(16,56,67,.075);transition:transform .3s cubic-bezier(.16,.84,.32,1),box-shadow .3s ease,border-color .3s ease}
.twwiki-v2__card:hover{transform:translateY(-7px);border-color:rgba(1,187,162,.20);box-shadow:0 28px 60px rgba(16,56,67,.13)}
.twwiki-v2__card-link{height:100%;display:flex;flex-direction:column}
.twwiki-v2__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(145deg,#DDF4F0,#F7F0D8)}
html[data-tw-theme="dark"] .twwiki-v2__media{background:linear-gradient(145deg,#0D3540,#183743)}
.twwiki-v2__media>img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .65s cubic-bezier(.16,.84,.32,1)}
.twwiki-v2__card:hover .twwiki-v2__media>img{transform:scale(1.045)}
.twwiki-v2__media-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,26,33,.04),transparent 38%,rgba(6,26,33,.18));pointer-events:none}
.twwiki-v2__media-top{position:absolute;z-index:3;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.twwiki-v2__scope,.twwiki-v2__state{min-height:26px;padding:5px 8px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;background:rgba(9,36,44,.78);border:1px solid rgba(255,255,255,.13);color:#fff;font-size:8px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;backdrop-filter:blur(10px)}
.twwiki-v2__state i{width:6px;height:6px;border-radius:50%;background:#CBD6D9}
.twwiki-v2__state.is-definito i{background:#72E39A}
.twwiki-v2__state.is-in-sviluppo i{background:#FFD75E}
.twwiki-v2__state.is-concept i{background:#75CFF0}
.twwiki-v2__state.is-previsto i{background:#D6C4FF}
.twwiki-v2__placeholder{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:7px;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.92),rgba(189,239,231,.55) 48%,rgba(255,215,94,.18));color:var(--tw-ink)}
html[data-tw-theme="dark"] .twwiki-v2__placeholder{background:radial-gradient(circle at 50% 40%,rgba(34,91,101,.70),rgba(11,39,48,.86) 55%,rgba(8,29,36,.96))}
.twwiki-v2__placeholder span{color:var(--tw-accent);font-size:20px;font-weight:900;letter-spacing:.08em}
.twwiki-v2__placeholder b{font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.65}
.twwiki-v2__cardcopy{flex:1;padding:20px;display:flex;flex-direction:column}
.twwiki-v2__cardcopy>small{color:#3F9F61;font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
html[data-tw-theme="dark"] .twwiki-v2__cardcopy>small{color:#7ED6A0}
.twwiki-v2__card h3{margin:9px 0 0;color:var(--tw-ink);font-size:25px;line-height:1.05;font-weight:680;letter-spacing:-.035em}
.twwiki-v2__card h4{margin:5px 0 0;color:var(--tw-accent);font-size:11px;line-height:1.4;font-weight:750}
.twwiki-v2__card p{margin:12px 0 0;color:var(--tw-text);font-size:12px;line-height:1.58}
.twwiki-v2__card-foot{margin-top:auto;padding-top:19px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--tw-muted);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.twwiki-v2__card-foot b{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:rgba(1,187,162,.10);color:#0E8F7C;font-size:14px;transition:transform .2s ease,background .2s ease}
.twwiki-v2__card:hover .twwiki-v2__card-foot b{transform:translateX(3px);background:var(--tw-accent);color:#0E2A31}
.twwiki-v2__empty{grid-column:1/-1;min-height:280px;padding:44px;border-radius:28px;display:grid;place-items:center;align-content:center;text-align:center;background:var(--tw-surface);border:1px dashed var(--tw-border)}
.twwiki-v2__empty span{color:var(--tw-accent);font-size:9px;font-weight:850;letter-spacing:.12em}
.twwiki-v2__empty strong{margin-top:8px;font-size:24px}
.twwiki-v2__empty p{max-width:520px;margin:8px 0 0;color:var(--tw-text);font-size:13px}

/* TABLET */
@media(max-width:1100px){
  .twwiki-v2__hero-inner{grid-template-columns:1fr;gap:34px;padding-top:110px}
  .twwiki-v2__search-panel{max-width:760px}
  .twwiki-v2__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .twwiki-v2__catalog-head{grid-template-columns:1fr;gap:18px}
}

/* MOBILE */
@media(max-width:767px){
  .twwiki-v2__shell{padding-left:10px;padding-right:10px}
  .twwiki-v2__hero{min-height:auto}
  .twwiki-v2__hero-bg{inset:0;background-image:linear-gradient(180deg,rgba(247,252,251,.88),rgba(247,252,251,.97)),url("https://www.tapworld.it/wp-content/uploads/2026/08/Bosco-dei-Petali-Lucenti.png");background-position:center top}
  html[data-tw-theme="dark"] .twwiki-v2__hero-bg{background-image:linear-gradient(180deg,rgba(6,26,33,.82),rgba(6,26,33,.98)),url("https://www.tapworld.it/wp-content/uploads/2026/08/Foresta-Lunare.png")}
  .twwiki-v2__hero-inner{padding-top:92px;padding-bottom:44px;gap:28px}
  .twwiki-v2__hero-copy{text-align:center}
  .twwiki-v2__hero-copy h1{font-size:clamp(42px,13vw,62px);line-height:.95}
  .twwiki-v2__lead{font-size:17px;line-height:1.55}
  .twwiki-v2__hero-meta{justify-content:center}
  .twwiki-v2__search-panel{padding:15px;border-radius:20px}
  .twwiki-v2__search-head{display:block}
  .twwiki-v2__search-head small{display:block;margin-top:4px}
  .twwiki-v2__search{height:56px;padding-left:12px;grid-template-columns:20px 1fr}
  .twwiki-v2__search kbd{display:none}
  .twwiki-v2__search input{font-size:14px}
  .twwiki-v2__navigator{position:relative;padding-top:15px}
  .twwiki-v2__nav-top{align-items:end}
  .twwiki-v2__advanced{display:grid;grid-template-columns:1fr 1fr;align-items:end}
  .twwiki-v2__advanced label{min-width:0}
  .twwiki-v2__advanced select{width:100%;min-width:0}
  .twwiki-v2__results{grid-column:1/-1;margin:0;padding:3px 0 0;text-align:right}
  .twwiki-v2__catalog{padding:68px 0 86px}
  .twwiki-v2__catalog-head{margin-bottom:28px;text-align:center}
  .twwiki-v2__catalog-head h2{font-size:42px}
  .twwiki-v2__catalog-head>p{font-size:13px}
  .twwiki-v2__grid{grid-template-columns:1fr;gap:12px}
  .twwiki-v2__card{border-radius:22px}
  .twwiki-v2__cardcopy{padding:17px}
  .twwiki-v2__card h3{font-size:24px}
}

@media(max-width:390px){
  .twwiki-v2__hero-copy h1{font-size:40px}
  .twwiki-v2__hero-meta span{font-size:9px}
  .twwiki-v2__filters button{font-size:10px}
  .twwiki-v2__advanced{grid-template-columns:1fr}
  .twwiki-v2__results{grid-column:auto}
}

@media(prefers-reduced-motion:reduce){
  .twwiki-v2__card,.twwiki-v2__card img,.twwiki-v2__filters button,.twwiki-v2__card-foot b{transition:none!important}
}
.twwiki-v2__state.is-draft i{background:#FF9A7A}

/* ==========================================================
   v1.0.5 — TYPOGRAPHY SYNC WITH TAPWORLD HOMEPAGE V2
   Elementor/Hello can apply Global Typography to headings with
   higher specificity than a generic component selector.
   These selectors keep Wiki typography identical to the homepage
   without using !important, so explicit Elementor inline overrides
   remain possible when intentionally configured.
   ========================================================== */
.twwiki-v2{
  font-family:"Inter",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body .elementor .twwiki-v2,
body .elementor .twwiki-v2 :where(h1,h2,h3,h4,h5,h6,p,a,span,small,strong,b,button,input,select,textarea,label,div,li,kbd){
  font-family:"Inter",Arial,sans-serif;
}

/* ==========================================================
   v1.0.9 — SEO H1 hierarchy
   Exact primary topic remains visible while preserving the
   cinematic headline used by the Wiki V2.
   ========================================================== */
.twwiki-v2__hero-copy h1>small{
  display:block;
  margin-bottom:12px;
  color:#3F9F61;
  font-family:"Inter",Arial,sans-serif;
  font-size:12px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
html[data-tw-theme="dark"] .twwiki-v2__hero-copy h1>small{color:#7ED6A0}
@media(max-width:767px){.twwiki-v2__hero-copy h1>small{font-size:10px;margin-bottom:10px}}

/* ==========================================================
   v1.0.14 — CODEX UX / SEARCH / SCALE
   ========================================================== */
.twwiki-v2__advanced{display:grid;grid-template-columns:auto auto auto minmax(120px,1fr);align-items:end}
.twwiki-v2__advanced select{transition:border-color .18s ease,box-shadow .18s ease}
.twwiki-v2__advanced select:focus{border-color:var(--tw-accent);box-shadow:0 0 0 3px rgba(1,187,162,.10)}
.twwiki-v2__results{justify-self:end;align-self:end;margin-left:0;white-space:nowrap}

.twwiki-v2__active{margin-top:10px;padding-top:10px;border-top:1px solid var(--tw-border);display:flex;align-items:center;gap:10px}
.twwiki-v2__active[hidden]{display:none!important}
.twwiki-v2__active>span{flex:0 0 auto;color:var(--tw-muted);font-size:8px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.twwiki-v2__active>div{display:flex;flex-wrap:wrap;gap:6px}
.twwiki-v2__active button{min-height:29px;padding:5px 8px 5px 9px;border-radius:999px;border:1px solid rgba(1,187,162,.17);background:rgba(1,187,162,.07);color:var(--tw-ink-2);font-size:9px;font-weight:750}
.twwiki-v2__active button b{margin-left:6px;color:var(--tw-accent);font-size:12px}
.twwiki-v2__active button:hover{background:rgba(1,187,162,.13)}

.twwiki-v2__editor-note{margin:0 0 28px;padding:13px 15px;border-radius:17px;display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:center;background:rgba(255,215,94,.10);border:1px solid rgba(205,166,30,.20)}
.twwiki-v2__editor-note>span{padding:6px 8px;border-radius:8px;background:var(--tw-yellow);color:#4D3C00;font-size:8px;font-weight:900;letter-spacing:.08em;white-space:nowrap}
.twwiki-v2__editor-note p{margin:0;color:var(--tw-text);font-size:11px;line-height:1.5}

.twwiki-v2__card::before{content:"";position:absolute;z-index:5;left:0;right:0;top:0;height:3px;background:var(--tw-card-accent,var(--tw-accent));opacity:.85;pointer-events:none}
.twwiki-v2__card[data-card-category="companion-animali"]{--tw-card-accent:#01BBA2}
.twwiki-v2__card[data-card-category="personaggi"]{--tw-card-accent:#55C8B4}
.twwiki-v2__card[data-card-category="valute-risorse"]{--tw-card-accent:#FFD75E}
.twwiki-v2__card[data-card-category="zone-mondo"]{--tw-card-accent:#64B8DB}
.twwiki-v2__card[data-card-category="oggetti-collezione"]{--tw-card-accent:#E7B85E}
.twwiki-v2__card[data-card-category="sistemi-gioco"]{--tw-card-accent:#5BCFB9}
.twwiki-v2__card[data-card-category="missioni-eventi"]{--tw-card-accent:#E9CA63}
.twwiki-v2__card[data-card-category="social-ecosistema"]{--tw-card-accent:#79C8DE}
.twwiki-v2__state-group{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.twwiki-v2__media-top>div:first-child{display:flex;gap:5px}
.twwiki-v2__card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.twwiki-v2__card p.is-muted{opacity:.64;font-style:italic}

.twwiki-v2__placeholder{padding:18px;text-align:center}
.twwiki-v2__placeholder span{max-width:90%;font-size:12px;line-height:1.25;font-weight:850;letter-spacing:.02em}
.twwiki-v2__sigil{position:relative;width:64px;height:64px;border-radius:22px;display:block;background:linear-gradient(145deg,rgba(1,187,162,.16),rgba(1,187,162,.04));border:1px solid rgba(1,187,162,.16);box-shadow:0 16px 34px rgba(16,56,67,.08)}
.twwiki-v2__sigil::before,.twwiki-v2__sigil::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--tw-card-accent,var(--tw-accent))}
.twwiki-v2__sigil::before{width:22px;height:22px;border-radius:50%}
.twwiki-v2__sigil::after{width:34px;height:2px;border-radius:2px;opacity:.48}
.twwiki-v2__sigil[data-kind="valute-risorse"]::before{background:var(--tw-yellow);box-shadow:0 0 0 6px rgba(255,215,94,.16)}
.twwiki-v2__sigil[data-kind="zone-mondo"]::before{border-radius:5px;transform:translate(-50%,-50%) rotate(45deg)}
.twwiki-v2__sigil[data-kind="oggetti-collezione"]::before{border-radius:5px}
.twwiki-v2__sigil[data-kind="sistemi-gioco"]::before{background:transparent;border:4px solid var(--tw-accent)}
.twwiki-v2__sigil[data-kind="missioni-eventi"]::before{border-radius:3px;transform:translate(-50%,-50%) rotate(45deg);background:var(--tw-yellow)}
.twwiki-v2__sigil[data-kind="social-ecosistema"]::before{width:16px;height:16px;box-shadow:18px 0 0 rgba(1,187,162,.55),-18px 0 0 rgba(1,187,162,.55)}

.twwiki-v2__loadmore-wrap{padding-top:34px;display:flex;justify-content:center}
.twwiki-v2__loadmore-wrap[hidden]{display:none!important}
.twwiki-v2__loadmore{min-height:50px;padding:11px 16px 11px 18px;border-radius:15px;border:1px solid var(--tw-border);display:inline-flex;align-items:center;gap:13px;background:var(--tw-surface);color:var(--tw-ink);font-size:12px;font-weight:800;box-shadow:0 14px 32px rgba(16,56,67,.07);transition:transform .2s ease,border-color .2s ease}
.twwiki-v2__loadmore:hover{transform:translateY(-3px);border-color:rgba(1,187,162,.25)}
.twwiki-v2__loadmore b{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:rgba(1,187,162,.10);color:var(--tw-accent);font-size:14px}
.twwiki-v2__loadmore:disabled{opacity:.55;cursor:wait;transform:none}

.twwiki-v2__skeleton{min-height:390px;border-radius:26px;overflow:hidden;background:var(--tw-surface);border:1px solid var(--tw-border);box-shadow:0 18px 42px rgba(16,56,67,.045)}
.twwiki-v2__skeleton i{display:block;width:100%;aspect-ratio:16/10;background:linear-gradient(100deg,rgba(120,144,152,.08) 20%,rgba(120,144,152,.16) 38%,rgba(120,144,152,.08) 56%);background-size:240% 100%;animation:twwikiSkeleton 1.25s ease-in-out infinite}
.twwiki-v2__skeleton span{display:block;height:12px;margin:18px 20px 0;border-radius:99px;background:rgba(120,144,152,.12)}
.twwiki-v2__skeleton span:nth-of-type(1){width:34%}
.twwiki-v2__skeleton span:nth-of-type(2){width:72%;height:22px}
.twwiki-v2__skeleton span:nth-of-type(3){width:88%;height:46px}
@keyframes twwikiSkeleton{0%{background-position:100% 0}100%{background-position:-100% 0}}

@media(max-width:1100px){
  .twwiki-v2__advanced{grid-template-columns:auto auto auto 1fr}
}
@media(max-width:767px){
  .twwiki-v2__filters{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px;scrollbar-width:none}
  .twwiki-v2__filters::-webkit-scrollbar{display:none}
  .twwiki-v2__advanced{grid-template-columns:1fr 1fr;gap:8px}
  .twwiki-v2__advanced label:nth-child(3){grid-column:1/-1}
  .twwiki-v2__results{grid-column:1/-1;justify-self:end}
  .twwiki-v2__active{align-items:flex-start;flex-direction:column;gap:7px}
  .twwiki-v2__editor-note{grid-template-columns:1fr;gap:8px;text-align:left}
  .twwiki-v2__editor-note>span{width:max-content}
  .twwiki-v2__media-top{top:9px;left:9px;right:9px}
  .twwiki-v2__scope,.twwiki-v2__state{min-height:24px;padding:4px 7px;font-size:7px}
  .twwiki-v2__skeleton{min-height:365px;border-radius:22px}
}
@media(max-width:390px){
  .twwiki-v2__advanced{grid-template-columns:1fr}
  .twwiki-v2__advanced label:nth-child(3),.twwiki-v2__results{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.twwiki-v2__skeleton i{animation:none}}

/* ==========================================================
   v1.0.15 — FEATURED / 5×3 CODEX / NEWSLETTER / HERO SEO
   ========================================================== */
.twwiki-v2__hero-copy h1 span{display:inline}
.twwiki-v2__hero-tagline{
  margin:-4px 0 18px;
  color:var(--tw-accent);
  font-size:clamp(22px,2vw,30px);
  line-height:1.15;
  font-weight:620;
  letter-spacing:-.03em;
}
.twwiki-v2__hero-copy .twwiki-v2__overline{margin-bottom:13px}

/* FEATURED — one slide at a time */
.twwiki-v2__featured{
  position:relative;
  padding:78px 0 72px;
  background:linear-gradient(180deg,var(--tw-bg),var(--tw-bg-2));
  border-bottom:1px solid var(--tw-border);
}
.twwiki-v2__featured-head{
  margin-bottom:25px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
}
.twwiki-v2__featured-head h2{
  margin:8px 0 0;
  color:var(--tw-ink);
  font-size:clamp(36px,4vw,58px);
  line-height:1;
  font-weight:700;
  letter-spacing:-.05em;
}
.twwiki-v2__featured-head>div:first-child>p:last-child{
  max-width:700px;
  margin:12px 0 0;
  color:var(--tw-text);
  font-size:13px;
  line-height:1.6;
}
.twwiki-v2__featured-controls{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.twwiki-v2__featured-controls>span{
  min-width:66px;
  margin-right:5px;
  color:var(--tw-muted);
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
  text-align:right;
}
.twwiki-v2__featured-controls button{
  width:42px;height:42px;padding:0;border-radius:13px;
  border:1px solid var(--tw-border);
  display:grid;place-items:center;
  background:var(--tw-surface);color:var(--tw-ink);
  font-size:18px;line-height:1;
  box-shadow:0 10px 24px rgba(16,56,67,.06);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.twwiki-v2__featured-controls button:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(1,187,162,.28);background:rgba(1,187,162,.08)}
.twwiki-v2__featured-controls button:disabled{opacity:.36;cursor:default}
.twwiki-v2__featured-frame{overflow:hidden;border-radius:32px}
.twwiki-v2__featured-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.twwiki-v2__featured-track::-webkit-scrollbar{display:none}
.twwiki-v2__featured-slide{
  flex:0 0 100%;
  min-width:0;
  scroll-snap-align:start;
  overflow:hidden;
  border-radius:32px;
  background:var(--tw-surface);
  border:1px solid var(--tw-border);
  box-shadow:var(--tw-shadow);
}
.twwiki-v2__featured-slide>a{
  min-height:410px;
  display:grid;
  grid-template-columns:minmax(360px,.92fr) minmax(0,1.08fr);
}
.twwiki-v2__featured-media{position:relative;min-height:410px;overflow:hidden;background:linear-gradient(145deg,#DDF4F0,#F7F0D8)}
html[data-tw-theme="dark"] .twwiki-v2__featured-media{background:linear-gradient(145deg,#0D3540,#183743)}
.twwiki-v2__featured-media>img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .7s cubic-bezier(.16,.84,.32,1)}
.twwiki-v2__featured-slide:hover .twwiki-v2__featured-media>img{transform:scale(1.035)}
.twwiki-v2__featured-media .twwiki-v2__placeholder{min-height:410px}
.twwiki-v2__featured-copy{padding:42px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.twwiki-v2__featured-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.twwiki-v2__featured-copy>small{color:#3F9F61;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
html[data-tw-theme="dark"] .twwiki-v2__featured-copy>small{color:#7ED6A0}
.twwiki-v2__featured-copy h3{margin:9px 0 0;color:var(--tw-ink);font-size:clamp(36px,3.5vw,54px);line-height:.98;font-weight:690;letter-spacing:-.05em}
.twwiki-v2__featured-copy h4{margin:8px 0 0;color:var(--tw-accent);font-size:13px;line-height:1.4;font-weight:750}
.twwiki-v2__featured-copy p{max-width:660px;margin:18px 0 0;color:var(--tw-text);font-size:15px;line-height:1.65}
.twwiki-v2__featured-foot{margin-top:28px;padding-top:18px;border-top:1px solid var(--tw-border);display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--tw-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.twwiki-v2__featured-foot b{color:var(--tw-accent);font-size:11px}
.twwiki-v2__featured-dots{min-height:24px;margin-top:15px;display:flex;justify-content:center;align-items:center;gap:7px}
.twwiki-v2__featured-dots button{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:rgba(120,144,152,.32);transition:width .2s ease,background .2s ease}
.twwiki-v2__featured-dots button.is-active{width:25px;background:var(--tw-accent)}
.twwiki-v2__featured-empty{flex:0 0 100%;min-height:220px;padding:40px;border-radius:28px;display:grid;place-items:center;text-align:center;background:var(--tw-surface);border:1px dashed var(--tw-border);color:var(--tw-muted);font-size:13px}
.twwiki-v2__featured-skeleton{flex:0 0 100%;min-height:410px;border-radius:32px;display:grid;grid-template-columns:.92fr 1.08fr;overflow:hidden;background:var(--tw-surface);border:1px solid var(--tw-border)}
.twwiki-v2__featured-skeleton>i{display:block;background:linear-gradient(100deg,rgba(120,144,152,.08) 20%,rgba(120,144,152,.16) 38%,rgba(120,144,152,.08) 56%);background-size:240% 100%;animation:twwikiSkeleton 1.25s ease-in-out infinite}
.twwiki-v2__featured-skeleton>div{padding:48px;display:flex;flex-direction:column;justify-content:center;gap:15px}
.twwiki-v2__featured-skeleton span{display:block;height:15px;border-radius:99px;background:rgba(120,144,152,.12)}
.twwiki-v2__featured-skeleton span:nth-child(1){width:25%}.twwiki-v2__featured-skeleton span:nth-child(2){width:70%;height:42px}.twwiki-v2__featured-skeleton span:nth-child(3){width:92%;height:70px}

/* CODEX — 15 per load, 5 columns × 3 rows on desktop */
.twwiki-v2__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.twwiki-v2__card{border-radius:22px}
.twwiki-v2__cardcopy{padding:16px}
.twwiki-v2__card h3{font-size:21px}
.twwiki-v2__card h4{font-size:10px}
.twwiki-v2__card p{font-size:11px;line-height:1.52;-webkit-line-clamp:2}
.twwiki-v2__card-foot{padding-top:15px;font-size:8px}
.twwiki-v2__card-foot b{width:29px;height:29px;border-radius:10px}
.twwiki-v2__skeleton{min-height:330px;border-radius:22px}

/* NEWSLETTER — same language as Homepage V2, intentionally prominent */
.twwiki-v2__newsletter{position:relative;isolation:isolate;padding:96px 0;background:#0B2832;color:#EFF9FA;overflow:hidden}
html[data-tw-theme="dark"] .twwiki-v2__newsletter{background:#050F14}
.twwiki-v2__newsletter-glow{position:absolute;z-index:-1;width:620px;height:620px;right:-210px;top:-300px;border-radius:50%;background:var(--tw-accent);filter:blur(90px);opacity:.12;pointer-events:none}
.twwiki-v2__newsletter-inner{display:grid;grid-template-columns:minmax(0,.85fr) minmax(430px,1.15fr);gap:72px;align-items:center}
.twwiki-v2__newsletter-copy .twwiki-v2__overline{color:#7ED6A0}
.twwiki-v2__newsletter-copy h2{max-width:630px;margin:10px 0 0;color:#EFF9FA;font-size:clamp(40px,4.6vw,66px);line-height:.98;font-weight:700;letter-spacing:-.052em}
.twwiki-v2__newsletter-copy>p{max-width:650px;margin:20px 0 0;color:#B2C8CE;font-size:16px;line-height:1.68;font-weight:300}
.twwiki-v2__newsletter-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.twwiki-v2__newsletter-tags span{padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);color:#DCEBED;font-size:9px;font-weight:800}
.twwiki-v2__newsletter-form{padding:28px;border-radius:28px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.09);box-shadow:0 30px 70px rgba(0,0,0,.16);backdrop-filter:blur(14px)}
.twwiki-v2__newsletter-form .wpcf7 form{margin:0}
.twwiki-v2__newsletter-form .wpcf7 p{margin:0 0 12px;color:#DCEBED;font-size:12px;line-height:1.5}
.twwiki-v2__newsletter-form .wpcf7 label{color:#DCEBED;font-size:11px;font-weight:700}
.twwiki-v2__newsletter-form .wpcf7 input:not([type="checkbox"]):not([type="radio"]),
.twwiki-v2__newsletter-form .wpcf7 select,
.twwiki-v2__newsletter-form .wpcf7 textarea{width:100%;min-height:50px;margin-top:6px;padding:12px 14px;border:1px solid rgba(255,255,255,.11);border-radius:14px;outline:0;background:rgba(255,255,255,.93);color:#173746;font-size:14px;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease}
.twwiki-v2__newsletter-form .wpcf7 input:focus,.twwiki-v2__newsletter-form .wpcf7 select:focus,.twwiki-v2__newsletter-form .wpcf7 textarea:focus{border-color:var(--tw-accent);box-shadow:0 0 0 4px rgba(1,187,162,.12)}
.twwiki-v2__newsletter-form .wpcf7 input[type="submit"],.twwiki-v2__newsletter-form .wpcf7 button[type="submit"]{width:100%;min-height:50px;margin-top:4px;padding:12px 17px;border:1px solid var(--tw-accent);border-radius:14px;background:var(--tw-accent);color:#0E2A31;font-size:13px;font-weight:850;cursor:pointer;transition:transform .18s ease,filter .18s ease}
.twwiki-v2__newsletter-form .wpcf7 input[type="submit"]:hover,.twwiki-v2__newsletter-form .wpcf7 button[type="submit"]:hover{transform:translateY(-2px);filter:brightness(1.04)}
.twwiki-v2__newsletter-form .wpcf7-list-item{margin-left:0}
.twwiki-v2__newsletter-form .wpcf7-response-output{margin:14px 0 0!important;padding:10px 12px!important;border-radius:12px;color:#EFF9FA;font-size:11px}
.twwiki-v2__newsletter-legal{margin-top:15px;padding-top:15px;border-top:1px solid rgba(255,255,255,.08)}
.twwiki-v2__newsletter-legal p{margin:0;color:#94ADB5;font-size:10px;line-height:1.55}
.twwiki-v2__newsletter-legal a{display:inline-block;margin-top:7px;color:#7BE7D7!important;font-size:10px;font-weight:800;text-decoration:underline!important;text-underline-offset:3px}
.twwiki-v2__newsletter-missing{margin:0;padding:13px;border-radius:12px;background:rgba(255,215,94,.10);color:#FFE58A;font-size:11px}

@media(max-width:1180px){
  .twwiki-v2__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .twwiki-v2__featured-slide>a{grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr)}
  .twwiki-v2__newsletter-inner{gap:42px}
}
@media(max-width:900px){
  .twwiki-v2__featured-slide>a{grid-template-columns:1fr;min-height:0}
  .twwiki-v2__featured-media{min-height:330px}
  .twwiki-v2__featured-media .twwiki-v2__placeholder{min-height:330px}
  .twwiki-v2__featured-copy{padding:30px}
  .twwiki-v2__newsletter-inner{grid-template-columns:1fr;gap:30px}
  .twwiki-v2__newsletter-copy{text-align:center}.twwiki-v2__newsletter-copy h2,.twwiki-v2__newsletter-copy>p{margin-left:auto;margin-right:auto}.twwiki-v2__newsletter-tags{justify-content:center}
}
@media(max-width:767px){
  .twwiki-v2__hero-copy h1 span{display:inline}
  .twwiki-v2__hero-tagline{font-size:21px;margin-top:-6px;margin-bottom:15px}
  .twwiki-v2__featured{padding:55px 0 48px}
  .twwiki-v2__featured-head{align-items:flex-end;gap:12px}
  .twwiki-v2__featured-head h2{font-size:36px}
  .twwiki-v2__featured-head>div:first-child>p:last-child{font-size:12px}
  .twwiki-v2__featured-controls>span{display:none}
  .twwiki-v2__featured-controls button{width:38px;height:38px;border-radius:12px}
  .twwiki-v2__featured-frame,.twwiki-v2__featured-slide{border-radius:22px}
  .twwiki-v2__featured-media{min-height:235px}
  .twwiki-v2__featured-media .twwiki-v2__placeholder{min-height:235px}
  .twwiki-v2__featured-copy{padding:22px}
  .twwiki-v2__featured-copy h3{font-size:32px}
  .twwiki-v2__featured-copy p{font-size:13px;line-height:1.55}
  .twwiki-v2__featured-foot{margin-top:20px}
  .twwiki-v2__featured-skeleton{grid-template-columns:1fr;min-height:500px}
  .twwiki-v2__featured-skeleton>i{min-height:235px}
  .twwiki-v2__featured-skeleton>div{padding:24px}

  /* Requested 2 columns × 4 rows = 8 items per mobile load. */
  .twwiki-v2__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .twwiki-v2__card{border-radius:17px}
  .twwiki-v2__cardcopy{padding:12px}
  .twwiki-v2__cardcopy>small{font-size:7px;letter-spacing:.08em}
  .twwiki-v2__card h3{margin-top:6px;font-size:17px;line-height:1.08}
  .twwiki-v2__card h4{font-size:8px}
  .twwiki-v2__card p{margin-top:8px;font-size:9px;line-height:1.45;-webkit-line-clamp:2}
  .twwiki-v2__card-foot{padding-top:11px;font-size:7px}
  .twwiki-v2__card-foot b{width:25px;height:25px;border-radius:8px;font-size:11px}
  .twwiki-v2__media-top{top:6px;left:6px;right:6px}
  .twwiki-v2__scope,.twwiki-v2__state{min-height:20px;padding:3px 5px;font-size:6px;letter-spacing:.03em}
  .twwiki-v2__state i{width:4px;height:4px}
  .twwiki-v2__skeleton{min-height:265px;border-radius:17px}
  .twwiki-v2__skeleton span{margin-left:12px;margin-right:12px}

  .twwiki-v2__newsletter{padding:70px 0}
  .twwiki-v2__newsletter-copy h2{font-size:40px}
  .twwiki-v2__newsletter-copy>p{font-size:14px}
  .twwiki-v2__newsletter-form{padding:17px;border-radius:21px}
}
@media(max-width:390px){
  .twwiki-v2__featured-head h2{font-size:31px}
  .twwiki-v2__featured-controls button{width:34px;height:34px}
  .twwiki-v2__grid{gap:7px}
  .twwiki-v2__cardcopy{padding:10px}
  .twwiki-v2__card h3{font-size:16px}
  .twwiki-v2__card p{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
  .twwiki-v2__featured-track{scroll-behavior:auto}
  .twwiki-v2__featured-slide img,.twwiki-v2__featured-controls button,.twwiki-v2__featured-dots button{transition:none!important}
  .twwiki-v2__featured-skeleton>i{animation:none}
}

/* ==========================================================
   v1.0.16 — SEARCH AUTOCOMPLETE / RECENT CAROUSEL / CODEX FLOW
   ========================================================== */

/* Search suggestions stay visually attached to the search field. */
.twwiki-v2__search-wrap{position:relative;z-index:55}
.twwiki-v2__suggestions{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:70;
  padding:6px;
  overflow:hidden;
  border:1px solid var(--tw-border);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 56px rgba(16,56,67,.18);
  backdrop-filter:blur(18px);
}
html[data-tw-theme="dark"] .twwiki-v2__suggestions{
  background:rgba(12,42,51,.98);
  box-shadow:0 28px 60px rgba(0,0,0,.34);
}
.twwiki-v2__suggestions[hidden]{display:none!important}
.twwiki-v2__suggestion{
  min-height:64px;
  padding:7px 9px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 28px;
  gap:10px;
  align-items:center;
  border-radius:13px;
  transition:background .16s ease,transform .16s ease;
}
.twwiki-v2__suggestion + .twwiki-v2__suggestion{border-top:1px solid var(--tw-border)}
.twwiki-v2__suggestion:hover,.twwiki-v2__suggestion:focus-visible{background:rgba(1,187,162,.075);transform:translateX(2px);outline:0}
.twwiki-v2__suggestion-media{width:48px;height:48px;overflow:hidden;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#DDF4F0,#F7F0D8);border:1px solid var(--tw-border)}
html[data-tw-theme="dark"] .twwiki-v2__suggestion-media{background:linear-gradient(145deg,#0D3540,#183743)}
.twwiki-v2__suggestion-media img{width:100%;height:100%;object-fit:cover;display:block}
.twwiki-v2__suggestion-sigil{width:21px;height:21px;border-radius:7px;background:linear-gradient(145deg,var(--tw-accent-soft),var(--tw-accent));box-shadow:0 0 0 6px rgba(1,187,162,.08)}
.twwiki-v2__suggestion-copy{min-width:0}
.twwiki-v2__suggestion-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--tw-ink);font-size:13px;line-height:1.2;font-weight:780}
.twwiki-v2__suggestion-copy small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--tw-muted);font-size:9px;line-height:1.3;font-weight:650}
.twwiki-v2__suggestion>b{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:rgba(1,187,162,.09);color:var(--tw-accent);font-size:12px}

/* Recent additions: compact carousel, three cards per desktop view, max nine. */
.twwiki-v2__featured{padding:72px 0 64px;background:linear-gradient(180deg,var(--tw-bg),rgba(255,255,255,.18))}
html[data-tw-theme="dark"] .twwiki-v2__featured{background:linear-gradient(180deg,var(--tw-bg),rgba(255,255,255,.018))}
.twwiki-v2__featured-head{margin-bottom:26px}
.twwiki-v2__featured-head h2{font-size:clamp(38px,4vw,58px)}
.twwiki-v2__featured-frame{overflow:hidden;border-radius:0}
.twwiki-v2__featured-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  scroll-behavior:smooth;
}
.twwiki-v2__featured-track::-webkit-scrollbar{display:none}
.twwiki-v2__featured-slide{
  flex:0 0 calc((100% - 32px)/3);
  min-width:0;
  min-height:430px;
  overflow:hidden;
  scroll-snap-align:start;
  border-radius:24px;
  background:var(--tw-surface);
  border:1px solid var(--tw-border);
  box-shadow:0 18px 42px rgba(16,56,67,.075);
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.twwiki-v2__featured-slide:hover{transform:translateY(-5px);border-color:rgba(1,187,162,.19);box-shadow:0 26px 54px rgba(16,56,67,.12)}
.twwiki-v2__featured-slide>a{height:100%;display:flex;flex-direction:column;min-height:0;grid-template-columns:none}
.twwiki-v2__featured-media{min-height:0;height:220px;aspect-ratio:auto;flex:0 0 220px}
.twwiki-v2__featured-media .twwiki-v2__placeholder{min-height:220px;height:220px}
.twwiki-v2__featured-copy{flex:1;min-width:0;padding:20px;display:flex;flex-direction:column;justify-content:flex-start}
.twwiki-v2__featured-badges{margin-bottom:12px;gap:5px}
.twwiki-v2__featured-copy>small{font-size:8px}
.twwiki-v2__featured-copy h3{margin-top:7px;font-size:clamp(23px,2vw,31px);line-height:1.02;letter-spacing:-.04em}
.twwiki-v2__featured-copy h4{font-size:10px}
.twwiki-v2__featured-copy p{margin-top:12px;font-size:11px;line-height:1.52;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.twwiki-v2__featured-foot{margin-top:auto;padding-top:15px;font-size:8px}
.twwiki-v2__featured-foot b{font-size:9px}
.twwiki-v2__featured-skeleton{flex:0 0 calc((100% - 32px)/3);min-height:430px;display:flex;flex-direction:column;border-radius:24px}
.twwiki-v2__featured-skeleton>i{min-height:220px;flex:0 0 220px}
.twwiki-v2__featured-skeleton>div{padding:22px;gap:12px}
.twwiki-v2__featured-skeleton span:nth-child(2){height:29px}
.twwiki-v2__featured-skeleton span:nth-child(3){height:54px}
.twwiki-v2__featured-empty{flex:0 0 100%}

/* Game Codex now belongs directly below the Database TapWorld heading. */
.twwiki-v2__catalog{scroll-margin-top:12px}
.twwiki-v2__catalog-head{margin-bottom:28px}
.twwiki-v2__navigator{
  position:sticky;
  top:12px;
  z-index:40;
  margin:0 0 34px;
  padding:18px;
  border:1px solid var(--tw-border);
  border-radius:24px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 44px rgba(16,56,67,.085);
  backdrop-filter:blur(18px);
}
html[data-tw-theme="dark"] .twwiki-v2__navigator{background:rgba(10,36,44,.92);border-color:var(--tw-border)}
.twwiki-v2__editor-note{margin:0 0 24px}

@media(max-width:767px){
  .twwiki-v2__suggestions{top:calc(100% + 6px);padding:5px;border-radius:15px}
  .twwiki-v2__suggestion{min-height:58px;grid-template-columns:42px minmax(0,1fr) 26px;padding:6px 7px;gap:9px}
  .twwiki-v2__suggestion-media{width:42px;height:42px;border-radius:10px}
  .twwiki-v2__suggestion-copy strong{font-size:12px}
  .twwiki-v2__suggestion-copy small{font-size:8px}
  .twwiki-v2__suggestion>b{width:26px;height:26px}

  /* Keep the original one-card mobile reading experience. */
  .twwiki-v2__featured{padding:55px 0 48px}
  .twwiki-v2__featured-slide{flex:0 0 100%;min-height:0;border-radius:22px}
  .twwiki-v2__featured-slide>a{display:flex;flex-direction:column}
  .twwiki-v2__featured-media{height:235px;flex-basis:235px;min-height:235px}
  .twwiki-v2__featured-media .twwiki-v2__placeholder{height:235px;min-height:235px}
  .twwiki-v2__featured-copy{padding:22px}
  .twwiki-v2__featured-copy h3{font-size:32px}
  .twwiki-v2__featured-copy p{font-size:13px;line-height:1.55;-webkit-line-clamp:4}
  .twwiki-v2__featured-skeleton{flex:0 0 100%;min-height:500px}
  .twwiki-v2__featured-skeleton>i{min-height:235px;flex-basis:235px}
  .twwiki-v2__featured-skeleton>div{padding:24px}

  .twwiki-v2__navigator{position:relative;top:auto;margin-bottom:26px;padding:14px;border-radius:19px}
}

@media(prefers-reduced-motion:reduce){
  .twwiki-v2__suggestion,.twwiki-v2__featured-slide{transition:none!important}
}
/* Autocomplete can extend below the hero without being clipped. */
.twwiki-v2__hero{overflow:visible;z-index:3}
.twwiki-v2__featured{position:relative;z-index:1}

/* v1.0.17 — categoria Cornici di gioco */
.twwiki-v2__filter-mark[data-kind="cornici-gioco"]{background:transparent;border:2px solid var(--tw-accent);border-radius:3px;box-shadow:inset 0 0 0 2px rgba(1,187,162,.12)}
.twwiki-v2__sigil[data-kind="cornici-gioco"]::before{background:transparent;border:4px double var(--tw-accent);border-radius:8px;box-shadow:none}
.twwiki-v2__hero-meta>span>span{padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;color:inherit;font:inherit;display:inline}

/* ==========================================================
   v1.0.18 — CATEGORY SELECT / SEARCH CTA / AMPERSAND LABELS
   ========================================================== */
/* Categories now use the same compact selector pattern on desktop and mobile. */
.twwiki-v2__advanced{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  align-items:end;
}
.twwiki-v2__advanced label{min-width:0}
.twwiki-v2__advanced select{width:100%;min-width:0;min-height:40px}
.twwiki-v2__results{
  grid-column:1/-1;
  justify-self:end;
  align-self:center;
  margin:2px 0 0;
  padding:0;
  white-space:normal;
  text-align:right;
}

/* Final autocomplete row: search all / verify matching content. */
.twwiki-v2__suggestion--all{
  width:100%;
  border:0;
  border-top:1px solid var(--tw-border)!important;
  background:rgba(1,187,162,.045);
  color:inherit;
  text-align:left;
}
.twwiki-v2__suggestion--all:hover,.twwiki-v2__suggestion--all:focus-visible{
  background:rgba(1,187,162,.105);
}
.twwiki-v2__suggestion-media--search{background:rgba(1,187,162,.08)}
.twwiki-v2__suggestion-media--search svg{
  width:21px;height:21px;fill:none;stroke:var(--tw-accent);stroke-width:2;stroke-linecap:round;
}
.twwiki-v2__suggestion--all .twwiki-v2__suggestion-copy strong{white-space:normal;line-height:1.3}
.twwiki-v2__suggestion--all .twwiki-v2__suggestion-copy small{white-space:normal}

@media(max-width:767px){
  .twwiki-v2__advanced{grid-template-columns:1fr 1fr;gap:8px}
  .twwiki-v2__advanced label:nth-child(3),
  .twwiki-v2__advanced label:nth-child(4){grid-column:auto}
  .twwiki-v2__results{grid-column:1/-1;justify-self:end}
}
@media(max-width:390px){
  .twwiki-v2__advanced{grid-template-columns:1fr}
  .twwiki-v2__advanced label:nth-child(3),
  .twwiki-v2__advanced label:nth-child(4),
  .twwiki-v2__results{grid-column:auto}
}

/* ==========================================================
   v1.0.19 — FLOATING GAME CODEX FILTERS
   The inline Game Codex remains in normal document flow.
   After it scrolls out of view, a compact floating control
   opens the same filters without pinning the full filter box.
   ========================================================== */
.twwiki-v2__navigator{
  position:relative!important;
  top:auto!important;
}

.twwiki-v2__floating-filter-ui{position:relative;z-index:9990}
.twwiki-v2__floating-filter-trigger{
  position:fixed;
  z-index:9992;
  right:24px;
  bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));
  width:58px;
  height:58px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.82);
  border-radius:19px;
  background:var(--tw-accent);
  color:#0E2A31;
  box-shadow:0 18px 44px rgba(16,56,67,.22),0 0 0 6px rgba(1,187,162,.08);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.twwiki-v2__floating-filter-trigger:hover{transform:translateY(-3px);box-shadow:0 23px 52px rgba(16,56,67,.26),0 0 0 7px rgba(1,187,162,.10)}
.twwiki-v2__floating-filter-trigger:focus-visible{outline:3px solid rgba(255,215,94,.76);outline-offset:3px}
.twwiki-v2__floating-filter-trigger svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.twwiki-v2__floating-filter-badge{
  position:absolute;
  top:-6px;
  right:-5px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:grid;
  place-items:center;
  border:2px solid var(--tw-bg);
  border-radius:999px;
  background:var(--tw-yellow);
  color:#173746;
  font-size:9px;
  line-height:1;
  font-weight:900;
  box-shadow:0 5px 14px rgba(16,56,67,.18);
}
html[data-tw-theme="dark"] .twwiki-v2__floating-filter-trigger{border-color:rgba(255,255,255,.13);box-shadow:0 20px 48px rgba(0,0,0,.38),0 0 0 6px rgba(1,187,162,.08)}
html[data-tw-theme="dark"] .twwiki-v2__floating-filter-badge{border-color:#071D24}

.twwiki-v2__floating-filter-panel{
  position:fixed;
  z-index:9991;
  right:24px;
  bottom:max(94px,calc(env(safe-area-inset-bottom) + 88px));
  width:min(390px,calc(100vw - 32px));
  max-height:min(620px,calc(100vh - 130px));
  overflow:auto;
  padding:19px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:24px;
  background:rgba(255,255,255,.95);
  color:var(--tw-ink);
  box-shadow:0 30px 80px rgba(16,56,67,.24);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}
html[data-tw-theme="dark"] .twwiki-v2__floating-filter-panel{background:rgba(10,36,44,.97);border-color:rgba(255,255,255,.09);box-shadow:0 30px 80px rgba(0,0,0,.48)}
.twwiki-v2__floating-filter-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.twwiki-v2__floating-filter-head>div>span,.twwiki-v2__floating-filter-head>div>strong{display:block}
.twwiki-v2__floating-filter-head>div>span{color:var(--tw-accent);font-size:9px;font-weight:900;letter-spacing:.12em}
.twwiki-v2__floating-filter-head>div>strong{margin-top:4px;color:var(--tw-ink);font-size:18px;line-height:1.1;letter-spacing:-.025em}
.twwiki-v2__floating-filter-head>button{
  width:36px;height:36px;flex:0 0 36px;padding:0;display:grid;place-items:center;
  border:1px solid var(--tw-border);border-radius:12px;background:var(--tw-bg);color:var(--tw-ink-2);font-size:22px;line-height:1
}
.twwiki-v2__floating-filter-desc{margin:10px 0 16px;color:var(--tw-muted);font-size:11px;line-height:1.5}
.twwiki-v2__floating-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.twwiki-v2__floating-filter-grid label{display:grid;gap:6px;min-width:0}
.twwiki-v2__floating-filter-grid label>span{color:var(--tw-muted);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.twwiki-v2__floating-filter-grid select{
  width:100%;min-width:0;min-height:43px;padding:0 34px 0 11px;
  border:1px solid var(--tw-border);border-radius:12px;background:var(--tw-surface);color:var(--tw-ink);font-size:10px;font-weight:750;outline:0
}
.twwiki-v2__floating-filter-grid select:focus{border-color:var(--tw-accent);box-shadow:0 0 0 3px rgba(1,187,162,.10)}
.twwiki-v2__floating-filter-foot{margin-top:16px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--tw-border)}
.twwiki-v2__floating-filter-foot>span{color:var(--tw-muted);font-size:9px;font-weight:750;line-height:1.3}
.twwiki-v2__floating-filter-foot>button{min-height:36px;padding:8px 11px;border:1px solid var(--tw-border);border-radius:11px;background:transparent;color:var(--tw-ink-2);font-size:9px;font-weight:800}
.twwiki-v2__floating-filter-foot>button:hover{border-color:rgba(1,187,162,.32);color:var(--tw-accent)}

@media(max-width:767px){
  .twwiki-v2__floating-filter-trigger{
    right:14px;
    bottom:max(82px,calc(env(safe-area-inset-bottom) + 76px));
    width:54px;height:54px;border-radius:18px
  }
  .twwiki-v2__floating-filter-panel{
    right:10px;
    bottom:max(148px,calc(env(safe-area-inset-bottom) + 140px));
    width:calc(100vw - 20px);
    max-height:min(560px,calc(100vh - 175px));
    padding:17px;
    border-radius:22px
  }
  .twwiki-v2__floating-filter-grid{grid-template-columns:1fr}
  .twwiki-v2__floating-filter-foot{align-items:flex-start;flex-direction:column}
  .twwiki-v2__floating-filter-foot>button{width:100%}
}

@media(prefers-reduced-motion:reduce){
  .twwiki-v2__floating-filter-trigger{transition:none!important}
}
.twwiki-v2__floating-filter-trigger[hidden],.twwiki-v2__floating-filter-panel[hidden]{display:none!important}

/* ==========================================================
   v1.0.20 — TAPWORLD BUTTON PALETTE / ELEMENTOR OVERRIDE
   Elementor Global Button styles may otherwise recolor native
   <button> elements. These rules are intentionally scoped only
   to the floating Game Codex filter UI.
   ========================================================== */

/* Floating search/filter trigger — TapWorld teal */
.twwiki-v2 .twwiki-v2__floating-filter-trigger,
.twwiki-v2 button.twwiki-v2__floating-filter-trigger{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:rgba(255,255,255,.84)!important;
}

/* Header-style hover: dark TapWorld, never Elementor pink */
.twwiki-v2 .twwiki-v2__floating-filter-trigger:hover,
.twwiki-v2 button.twwiki-v2__floating-filter-trigger:hover{
  background:#182A32!important;
  background-color:#182A32!important;
  color:#FFFFFF!important;
  border-color:#182A32!important;
  transform:translateY(-3px);
  box-shadow:0 23px 52px rgba(16,56,67,.26),0 0 0 7px rgba(1,187,162,.12)!important;
}

/* When the filter panel is open, use the TapWorld yellow state */
.twwiki-v2 .twwiki-v2__floating-filter-trigger[aria-expanded="true"],
.twwiki-v2 button.twwiki-v2__floating-filter-trigger[aria-expanded="true"]{
  background:#FFD75E!important;
  background-color:#FFD75E!important;
  color:#182A32!important;
  border-color:#FFD75E!important;
  box-shadow:0 20px 48px rgba(16,56,67,.24),0 0 0 7px rgba(255,215,94,.14)!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-trigger[aria-expanded="true"]:hover,
.twwiki-v2 button.twwiki-v2__floating-filter-trigger[aria-expanded="true"]:hover{
  background:#182A32!important;
  background-color:#182A32!important;
  color:#FFFFFF!important;
  border-color:#182A32!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-trigger:focus-visible{
  outline:3px solid #FFD75E!important;
  outline-offset:3px!important;
}

/* Close control — dark / teal */
.twwiki-v2 .twwiki-v2__floating-filter-head>button,
.twwiki-v2 .twwiki-v2__floating-filter-head>button[type="button"]{
  background:#294652!important;
  background-color:#294652!important;
  color:#FFFFFF!important;
  border-color:#294652!important;
  box-shadow:none!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-head>button:hover,
.twwiki-v2 .twwiki-v2__floating-filter-head>button[type="button"]:hover{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:#01BBA2!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-head>button:focus-visible{
  outline:3px solid rgba(255,215,94,.72)!important;
  outline-offset:2px!important;
}

/* Reset filter — neutral until interaction, then teal */
.twwiki-v2 .twwiki-v2__floating-filter-foot>button,
.twwiki-v2 .twwiki-v2__floating-filter-foot>button[type="button"]{
  background:transparent!important;
  background-color:transparent!important;
  color:#294652!important;
  border-color:rgba(24,54,64,.12)!important;
  box-shadow:none!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-foot>button:hover,
.twwiki-v2 .twwiki-v2__floating-filter-foot>button[type="button"]:hover{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:#01BBA2!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-foot>button:focus-visible{
  outline:3px solid rgba(255,215,94,.72)!important;
  outline-offset:2px!important;
}

/* Select interaction states remain in TapWorld teal */
.twwiki-v2 .twwiki-v2__floating-filter-grid select:hover{
  border-color:rgba(1,187,162,.42)!important;
}
.twwiki-v2 .twwiki-v2__floating-filter-grid select:focus{
  border-color:#01BBA2!important;
  box-shadow:0 0 0 3px rgba(1,187,162,.12)!important;
}

/* Night mode keeps the same brand hierarchy, with accessible contrast */
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-trigger{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:rgba(255,255,255,.13)!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-trigger:hover{
  background:#EEF8FA!important;
  background-color:#EEF8FA!important;
  color:#182A32!important;
  border-color:#EEF8FA!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-trigger[aria-expanded="true"]{
  background:#FFD75E!important;
  background-color:#FFD75E!important;
  color:#182A32!important;
  border-color:#FFD75E!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-head>button{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:#01BBA2!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-head>button:hover{
  background:#EEF8FA!important;
  background-color:#EEF8FA!important;
  color:#182A32!important;
  border-color:#EEF8FA!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-foot>button{
  color:#DCEBED!important;
  border-color:rgba(255,255,255,.12)!important;
}
html[data-tw-theme="dark"] .twwiki-v2 .twwiki-v2__floating-filter-foot>button:hover{
  background:#01BBA2!important;
  background-color:#01BBA2!important;
  color:#0F2931!important;
  border-color:#01BBA2!important;
}


/* ==========================================================
   v1.0.24 — Categorie TapWorld / category hub
   ========================================================== */
.twwiki-v2__featured-slide.is-category .twwiki-v2__featured-copy{justify-content:flex-start}
.twwiki-v2__featured-slide.is-category .twwiki-v2__featured-copy>small{color:var(--tw-accent);font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.twwiki-v2__featured-slide.is-category .twwiki-v2__featured-copy p{min-height:50px}
.twwiki-v2__featured-slide.is-category .twwiki-v2__featured-foot span{text-transform:none;letter-spacing:0;font-size:9px}
.twwiki-v2__category-focus{margin:0 0 18px;padding:24px 26px;border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,rgba(1,187,162,.095),rgba(255,255,255,.62));border:1px solid rgba(1,187,162,.15);box-shadow:0 16px 34px rgba(16,56,67,.06)}
.twwiki-v2__category-focus[hidden]{display:none!important}
html[data-tw-theme="dark"] .twwiki-v2__category-focus{background:linear-gradient(120deg,rgba(1,187,162,.10),rgba(255,255,255,.035));border-color:rgba(1,187,162,.16)}
.twwiki-v2__category-focus .twwiki-v2__overline{margin-bottom:7px}
.twwiki-v2__category-focus h3{margin:0;color:var(--tw-ink);font-size:clamp(25px,2.5vw,36px);line-height:1.02;letter-spacing:-.04em}
.twwiki-v2__category-focus p:not(.twwiki-v2__overline){max-width:860px;margin:8px 0 0;color:var(--tw-text);font-size:13px;line-height:1.6}
.twwiki-v2__category-focus>span{flex:0 0 auto;padding:10px 13px;border-radius:999px;background:var(--tw-surface-solid);border:1px solid var(--tw-border);color:var(--tw-muted);font-size:10px;font-weight:800;box-shadow:0 8px 20px rgba(16,56,67,.05)}
@media(max-width:767px){.twwiki-v2__category-focus{padding:19px 18px;align-items:flex-start;flex-direction:column;gap:13px}.twwiki-v2__category-focus>span{align-self:flex-start}.twwiki-v2__category-focus h3{font-size:28px}}

/* ==========================================================
   v1.0.28 — TRUE CATEGORY HUBS
   /wiki/ keeps the global Wiki landing.
   /wiki/{categoria}/ gets its own hero + filtered Codex.
   ========================================================== */
.twwiki-v2__category-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:560px;
  display:flex;
  align-items:center;
  padding:112px 0 74px;
  background:
    radial-gradient(circle at 12% 18%,rgba(1,187,162,.11),transparent 26%),
    radial-gradient(circle at 88% 20%,rgba(255,215,94,.10),transparent 25%),
    linear-gradient(180deg,#F3FAF9 0%,var(--tw-bg) 100%);
}
html[data-tw-theme="dark"] .twwiki-v2__category-hero{
  background:
    radial-gradient(circle at 12% 18%,rgba(1,187,162,.10),transparent 26%),
    radial-gradient(circle at 88% 20%,rgba(255,215,94,.05),transparent 25%),
    linear-gradient(180deg,#0B2730 0%,var(--tw-bg) 100%);
}
.twwiki-v2__category-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,var(--tw-bg));
}
.twwiki-v2__category-hero-glow{
  position:absolute;
  z-index:-1;
  width:520px;
  height:520px;
  right:-190px;
  top:-210px;
  border-radius:50%;
  background:var(--tw-accent);
  filter:blur(100px);
  opacity:.08;
}
.twwiki-v2__category-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,.78fr);
  gap:clamp(52px,7vw,105px);
  align-items:center;
}
.twwiki-v2__category-hero-copy{max-width:800px}
.twwiki-v2__category-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:26px;
  color:var(--tw-muted);
  font-size:11px;
  line-height:1.4;
  font-weight:700;
}
.twwiki-v2__category-breadcrumb a{color:var(--tw-muted)!important;transition:color .18s ease}
.twwiki-v2__category-breadcrumb a:hover{color:var(--tw-accent)!important}
.twwiki-v2__category-breadcrumb strong{color:var(--tw-ink-2);font-weight:800}
.twwiki-v2__category-hero-copy h1{
  margin:12px 0 20px;
  color:var(--tw-ink);
  font-size:clamp(58px,6vw,94px);
  line-height:.94;
  font-weight:700;
  letter-spacing:-.062em;
  text-wrap:balance;
}
.twwiki-v2__category-hero-lead{
  max-width:720px;
  margin:0;
  color:var(--tw-text);
  font-size:clamp(18px,1.45vw,22px);
  line-height:1.64;
  font-weight:300;
}
.twwiki-v2__category-home-link{
  width:max-content;
  max-width:100%;
  min-height:43px;
  margin-top:28px;
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border-radius:14px;
  border:1px solid var(--tw-border);
  background:rgba(255,255,255,.62);
  color:var(--tw-ink-2)!important;
  font-size:11px;
  font-weight:800;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.twwiki-v2__category-home-link:hover{transform:translateY(-2px);border-color:rgba(1,187,162,.30);background:var(--tw-surface)}
html[data-tw-theme="dark"] .twwiki-v2__category-home-link{background:rgba(255,255,255,.045)}
.twwiki-v2__category-hero-media{
  position:relative;
  min-height:430px;
  overflow:hidden;
  border-radius:34px;
  background:linear-gradient(145deg,rgba(189,239,231,.72),rgba(255,247,217,.78));
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 32px 76px rgba(16,56,67,.14);
}
html[data-tw-theme="dark"] .twwiki-v2__category-hero-media{background:linear-gradient(145deg,#10313B,#0B2730);border-color:rgba(255,255,255,.08);box-shadow:0 32px 76px rgba(0,0,0,.28)}
.twwiki-v2__category-hero-media>img{width:100%;height:100%;min-height:430px;display:block;object-fit:cover;transition:transform .7s cubic-bezier(.16,.84,.32,1)}
.twwiki-v2__category-hero-media:hover>img{transform:scale(1.025)}
.twwiki-v2__category-hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 58%,rgba(7,29,36,.18))}
.twwiki-v2__category-hero-chip{
  position:absolute;
  z-index:2;
  left:18px;
  bottom:18px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(23,55,70,.92);
  color:#fff;
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.11em;
}
.twwiki-v2__category-hero-placeholder{min-height:430px;height:100%;display:grid;place-items:center;align-content:center;gap:12px;color:var(--tw-ink-2);background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.72),transparent 28%)}
.twwiki-v2__category-hero-placeholder span{width:96px;height:96px;display:grid;place-items:center;border-radius:28px;background:var(--tw-accent);color:#0E2A31;font-size:27px;font-weight:900;box-shadow:0 20px 38px rgba(1,187,162,.18)}
.twwiki-v2__category-hero-placeholder strong{font-size:16px}

/* On a real category hub the filter/database starts immediately after the hero. */
.twwiki-v2__catalog.is-hub-catalog{padding-top:42px}
.twwiki-v2.is-category-hub .twwiki-v2__navigator{margin-top:0}
.twwiki-v2__hub-search{
  margin-bottom:15px;
  padding-bottom:15px;
  display:grid;
  grid-template-columns:minmax(190px,.42fr) minmax(0,1fr);
  gap:18px;
  align-items:center;
  border-bottom:1px solid var(--tw-border);
}
.twwiki-v2__hub-search-copy span,.twwiki-v2__hub-search-copy strong{display:block}
.twwiki-v2__hub-search-copy span{color:var(--tw-accent);font-size:9px;font-weight:900;letter-spacing:.11em}
.twwiki-v2__hub-search-copy strong{margin-top:4px;color:var(--tw-ink);font-size:14px;line-height:1.2}
.twwiki-v2__hub-search .twwiki-v2__search{height:52px}

@media(max-width:1024px){
  .twwiki-v2__category-hero{padding-top:104px;min-height:0}
  .twwiki-v2__category-hero-inner{grid-template-columns:1fr;gap:36px}
  .twwiki-v2__category-hero-copy{max-width:850px}
  .twwiki-v2__category-hero-media{width:min(100%,760px);min-height:380px}
  .twwiki-v2__category-hero-media>img,.twwiki-v2__category-hero-placeholder{min-height:380px}
}
@media(max-width:767px){
  .twwiki-v2__category-hero{padding:92px 0 46px}
  .twwiki-v2__category-hero-inner{gap:26px}
  .twwiki-v2__category-breadcrumb{margin-bottom:18px;font-size:9px}
  .twwiki-v2__category-hero-copy h1{font-size:clamp(47px,14vw,66px);margin:10px 0 15px}
  .twwiki-v2__category-hero-lead{font-size:16px;line-height:1.58}
  .twwiki-v2__category-home-link{margin-top:20px}
  .twwiki-v2__category-hero-media{min-height:285px;border-radius:24px}
  .twwiki-v2__category-hero-media>img,.twwiki-v2__category-hero-placeholder{min-height:285px}
  .twwiki-v2__category-hero-placeholder span{width:78px;height:78px;border-radius:23px;font-size:23px}
  .twwiki-v2__catalog.is-hub-catalog{padding-top:24px}
  .twwiki-v2__hub-search{grid-template-columns:1fr;gap:10px}
}
@media(prefers-reduced-motion:reduce){
  .twwiki-v2__category-hero-media>img,.twwiki-v2__category-home-link{transition:none!important}
}


/* ==========================================================
   v1.0.31 — HERO / CATEGORY SEAM FIX
   L'autocomplete richiede overflow visibile sulla Hero.
   Il background, però, non deve estendersi sotto il limite
   della Hero: era quello a generare la fascia panoramica.
   ========================================================== */
.twwiki-v2:not(.is-category-hub) .twwiki-v2__hero-bg{
  top:-2%;
  right:-2%;
  bottom:0;
  left:-2%;
}
.twwiki-v2:not(.is-category-hub) .twwiki-v2__hero::after{
  bottom:-1px;
  height:38%;
}
.twwiki-v2:not(.is-category-hub) .twwiki-v2__hero + .twwiki-v2__featured{
  margin-top:0!important;
  border-top:0!important;
  box-shadow:none!important;
}
@media(max-width:767px){
  .twwiki-v2:not(.is-category-hub) .twwiki-v2__hero-bg{inset:0}
}

/* 1.0.43: equal, stable media frames; contain prevents accidental clipping. */
.twwiki-v2 .twwiki-v2__media{position:relative;width:100%;aspect-ratio:4/3;flex:0 0 auto;min-height:0}
.twwiki-v2 .twwiki-v2__media>img{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none;object-fit:contain;padding:8px;object-position:center center;transform:none}
.twwiki-v2 .twwiki-v2__media>img[data-fit="cover"]{object-fit:cover;padding:0}
.twwiki-v2 .twwiki-v2__card:hover .twwiki-v2__media>img{transform:none}
.twwiki-v2 .twwiki-v2__card-link{min-height:100%;height:100%}
.twwiki-v2__suggestion-media img,.twwiki-dyn-related__media img{object-fit:contain;object-position:center}

/* 1.0.49 — Square category covers and direct carousel interaction. */
.twwiki-v2__featured-track{position:relative;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;-webkit-user-select:none}
.twwiki-v2__featured-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.twwiki-v2__featured-track img{-webkit-user-drag:none;user-select:none}
.twwiki-v2__featured-track.is-dragging .twwiki-v2__featured-slide{transform:none;transition:none}
.twwiki-v2 .twwiki-v2__featured-slide.is-category .twwiki-v2__featured-media{height:auto;min-height:0;aspect-ratio:1;flex:0 0 auto}
.twwiki-v2 .twwiki-v2__featured-slide.is-category .twwiki-v2__featured-media>img{position:absolute;inset:0;width:100%;height:100%;padding:2%;object-fit:contain;transform:none;transition:none;box-sizing:border-box}
.twwiki-v2 .twwiki-v2__featured-slide.is-category .twwiki-v2__featured-media .twwiki-v2__placeholder{position:absolute;inset:0;min-height:0;height:100%}
.twwiki-v2 .twwiki-v2__category-hero-media{min-height:0;aspect-ratio:1}
.twwiki-v2 .twwiki-v2__category-hero-media>img{position:absolute;inset:0;min-height:0;width:100%;height:100%;box-sizing:border-box;transition:none}
.twwiki-v2__featured-track:focus-visible{outline:3px solid var(--tw-accent);outline-offset:5px}

@media(prefers-reduced-motion:reduce){.twwiki-v2__featured-track{scroll-behavior:auto}}

/* 1.0.50 — Unshaded category covers, without the dark shadow below the slider. */
.twwiki-v2 .twwiki-v2__featured-slide,.twwiki-v2 .twwiki-v2__featured-slide:hover{box-shadow:none}
.twwiki-v2 .twwiki-v2__category-hero-media::after{display:none}

/* 1.0.51 — Category Database: rows, no horizontal carousel. */
.twwiki-v2 .twwiki-v2__category-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:stretch}
.twwiki-v2__category-grid>.is-category{min-width:0;min-height:0;width:auto;margin:0}
.twwiki-v2__category-grid>.is-category>a{height:100%;min-height:0;display:flex;flex-direction:column}
.twwiki-v2__category-grid .twwiki-v2__featured-copy{padding:20px;gap:0}
.twwiki-v2__category-grid .twwiki-v2__featured-copy h3{font-size:clamp(19px,2.1vw,30px);line-height:1.13;overflow-wrap:anywhere}
.twwiki-v2__category-grid .twwiki-v2__featured-copy p{display:block;min-height:0;-webkit-line-clamp:unset;overflow:visible}
.twwiki-v2__category-grid .twwiki-v2__featured-foot{flex-wrap:wrap;gap:10px;font-size:9px}
.twwiki-v2__category-grid .twwiki-v2__featured-foot b{font-size:9px}
.twwiki-v2__category-grid .twwiki-v2__featured-empty{grid-column:1/-1;min-height:180px}
.twwiki-v2__category-grid a:focus-visible{outline:3px solid var(--tw-accent);outline-offset:-3px;border-radius:inherit}
@media(min-width:400px){.twwiki-v2 .twwiki-v2__category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(min-width:1100px){.twwiki-v2 .twwiki-v2__category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
/* Large touch tablets keep two columns even in landscape. */
@media(min-width:400px) and (hover:none),(min-width:400px) and (pointer:coarse){.twwiki-v2 .twwiki-v2__category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.twwiki-v2 .twwiki-v2__category-grid{gap:12px}.twwiki-v2__category-grid .twwiki-v2__featured-copy{padding:13px}.twwiki-v2__category-grid .twwiki-v2__featured-foot{gap:7px}}
@media(hover:none){.twwiki-v2__category-grid>.is-category:hover{transform:none}}

/* 1.0.54 — The last reserved grid cell is deliberately not a link or a category. */
.twwiki-v2 .twwiki-v2__category-reserved{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;padding:24px;border:1px dashed rgba(120,144,152,.45);border-radius:24px;background:var(--tw-bg-2);color:var(--tw-text);text-align:center}
.twwiki-v2 .twwiki-v2__category-reserved small{font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.twwiki-v2 .twwiki-v2__category-reserved span{font-size:clamp(16px,1.6vw,22px);font-weight:600;color:var(--tw-ink-2)}
.twwiki-v2 .twwiki-v2__entry-preview{display:block;margin-top:12px;color:var(--tw-text);font-size:11px;line-height:1.5}

/* 1.0.53: the title leads; non-interactive placement tags follow the description. */
.twwiki-v2 .twwiki-v2__cardcopy>h3{margin-top:0}
.twwiki-v2 .twwiki-v2__card-foot{align-items:flex-end;text-transform:none;letter-spacing:normal;gap:10px}
.twwiki-v2 .twwiki-v2__card-foot .twwiki-placement-tags{margin:0;flex:1;font-size:10px;line-height:1.5}
.twwiki-v2 .twwiki-v2__card-foot>b{flex-shrink:0;margin-left:auto}
