Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* SpiritVale Wiki — Common.css */
  SpiritVale Wiki – Site CSS
/* Role: shared tokens, primitives, utilities, and interactive anatomy */
   ============================================================
/* Scope: sitewide SpiritVale UI foundations only */
  This file is intentionally split into two safe, predictable zones:
/* -------------------------------------------------------------------------- */
/* Canonical ownership map                                                    */
/* -------------------------------------------------------------------------- */
/* Common.css is the sitewide foundation layer. It owns:                      */
/* - canonical breakpoint definitions and responsive policy comments          */
/* - shared design tokens and utility primitives                              */
/* - reusable interactive anatomy used by multiple modules/templates          */
/* - global parser-output treatments that should behave the same everywhere   */
/*                                                                            */
/* Common.css does NOT own:                                                    */
/* - Citizen skin theme/chrome styling (Citizen.css)                          */
/* - module-specific card/layout rules (GameInfo, PatchHighlights, etc.)      */
/* - template-specific presentation rules (Definitions, ClassInfobox, etc.)  */
/*                                                                            */
/* Responsive cleanup note: this file is the source of truth for breakpoint    */
/* meaning. Its own responsive selectors should model the canonical ladder    */
/* and shared UI should follow that ladder everywhere else.                    */
/* -------------------------------------------------------------------------- */
/* Responsive policy (canonical)                                              */
/* -------------------------------------------------------------------------- */
/* SpiritVale uses a mobile-first six-viewpoint ladder aligned to Tailwind's  */
/* defaults.                                                                  */
/*                                                                            */
/* Viewpoints                                                                  */
/* - default: 0px-639px  (phones / smallest layout)                          */
/* - sm:      640px-767px (large phones / small tablets)                      */
/* - md:      768px-1023px(tablets / narrow landscape)                        */
/* - lg:      1024px-1279px(laptop / desktop start)                            */
/* - xl:      1280px-1535px(wide desktop)                                      */
/* - 2xl:    1536px+      (very wide desktop)                                */
/*                                                                            */
/* Implementation rule: write defaults for the smallest layout whenever        */
/* practical, then layer upward with canonical breakpoints.                    */
/* -------------------------------------------------------------------------- */


  1) Global custom additions (HARDENED)
      - Scoped to .mw-parser-output so it cannot affect the Citizen skin header/top bar.
      - Uses ONLY hyphenated class names to avoid matching generic site classes.


  2) HERO TEMPLATE (Shared Infobox System)
/* -------------------------------------------------------------------------- */
      - Used by Skills + Passives (and future templates).
/* 1) SpiritVale tokens */
      - Dark mode is the “design truth.”
/* -------------------------------------------------------------------------- */
      - For now: module colors intentionally stay dark in BOTH themes.
  ========================================================== */


:root{
  /* Surface ladder.
    bg0 = site background only
    bg1 = main component surface
    bg2 = nested/grouped panel surface
    bg3 = deep inset / pill surface
    bg4 = highest emphasis / selected / strong highlight surface
  */
  --sv-ui-bg0:#0f172a;
  --sv-ui-bg1:#1f2937;
  --sv-ui-bg2:#273449;
  --sv-ui-bg3:#2e3f59;
  --sv-ui-bg4:#4e6d97;


/* ============================================================
  /* Border / frame ladder. */
  1) Global custom additions (HARDENED)
  --sv-ui-line1:#3b4b63;
  ========================================================== */
  --sv-ui-line2:#4b6388;
  --sv-ui-line3:#7d93b5;


/* Playtest info box */
  /* Text ladder. */
.mw-parser-output .playtest-info-box {
  --sv-ui-text1:#f5f9ff;
   max-width: 100%;
  --sv-ui-text2:#d7e2f4;
   margin: 0 0 10px 0;
  --sv-ui-text3:#b6c6e0;
   border: 1px solid #ccc;
  --sv-ui-text4:#7f9fcc;
   border-radius: 6px;
 
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Accent ladder. */
   background: #f0f2f8;
  --sv-ui-accent:#6aa6ff;
   padding: 10px;
  --sv-ui-accent2:#8cbcff;
   text-align: center;
  --sv-ui-accent3:#e6f0ff;
   color: #333;
 
   overflow-wrap: anywhere;
  /* Popover tokens. */
   word-break: break-word;
  --sv-ui-pop-bg:var(--sv-ui-bg2);
   --sv-ui-pop-line:var(--sv-ui-line2);
   --sv-ui-pop-shadow:0 10px 30px rgba(0,0,0,0.35);
 
  /* Radius tokens. */
  --sv-ui-rad-sm:10px;
   --sv-ui-rad-md:14px;
   --sv-ui-rad-lg:18px;
   --sv-ui-rad-pill:999px;
 
  /* Shared shadow tokens. */
  --sv-ui-shadow1:0 10px 28px rgba(0,0,0,0.40);
 
  /* Shared pill tokens. */
  --sv-ui-pill-bg:var(--sv-ui-bg3);
  --sv-ui-pill-line:var(--sv-ui-line2);
  --sv-ui-pill-shadow:inset 0 1px 0 rgba(255,255,255,0.06);
  --sv-ui-pill-text:var(--sv-ui-text1);
}
 
/* Fallback light skin mapping. */
.mw-theme-light{
  --sv-ui-bg0:#1f2937;
  --sv-ui-bg1:#273449;
  --sv-ui-bg2:#2e3f59;
  --sv-ui-bg3:#364a69;
  --sv-ui-bg4:#6888b4;
 
  --sv-ui-line1:#4b6388;
  --sv-ui-line2:#5f7fb4;
   --sv-ui-line3:#8ea7ca;
 
   --sv-ui-text1:#f5f9ff;
  --sv-ui-text2:#d7e2f4;
   --sv-ui-text3:#b6c6e0;
   --sv-ui-text4:#8ba8d1;
 
   --sv-ui-accent:#8cbcff;
   --sv-ui-accent2:#b0d0ff;
  --sv-ui-accent3:#f2f7ff;
}
}


/* Header container band (your custom page header template wrapper) */
/* -------------------------------------------------------------------------- */
.mw-parser-output .header-container-outer {
/* 2) Sitewide link treatment */
   max-width: 100%;
/* -------------------------------------------------------------------------- */
   margin: 1px;
 
   border: 2px solid #372b54;
.mw-parser-output a{
   border-radius: 10px;
  color:var(--color-link, var(--sv-ui-accent));
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
   text-decoration:underline;
  background: #f0f2f8;
   text-decoration-thickness:2px;
   text-underline-offset:2px;
   text-decoration-skip-ink:auto;
   transition:
    color 120ms ease,
    text-decoration-thickness 120ms ease,
    text-underline-offset 120ms ease;
}
}


.mw-parser-output .header-container-middle {
.mw-parser-output a:visited{
   background: #f0f2f8;
   color:var(--color-visited, var(--sv-ui-accent2));
  color: white;
  text-align: center;
  padding: 1px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


.mw-parser-output .header-container-inner {
.mw-parser-output a:hover{
  background: linear-gradient(180deg, #5a4e7c, #372b54);
   text-decoration-thickness:3px;
  color: white;
   text-underline-offset:3px;
   text-align: center;
  padding: 1px;
  border-radius: 8px;
   overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 300%;
}
}


/* Generic custom table (yours) */
.mw-parser-output a:focus-visible{
.mw-parser-output table.custom-table {
   outline:2px solid var(--sv-ui-accent3);
   float: none;
   outline-offset:2px;
   border: 2px solid #372b54;
   border-radius:6px;
   border-radius: 10px;
   box-shadow:0 0 0 3px rgba(230,240,255,0.12);
  padding: 2px;
}
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
 
   margin: 1em auto;
/* -------------------------------------------------------------------------- */
   text-align: center;
/* 3) Shared primitives */
   border-collapse: separate;
/* -------------------------------------------------------------------------- */
   border-spacing: 0;
 
   overflow: hidden;
.sv-card,
  -webkit-user-select: text;
.mw-parser-output .sv-card{
  user-select: text;
   background:var(--sv-ui-bg1);
   border:1px solid var(--sv-ui-line1);
   border-radius:var(--sv-ui-rad-md);
   box-shadow:var(--sv-ui-shadow1);
   color:var(--color-base, var(--sv-ui-text2));
}
}


.mw-parser-output table.custom-table > tbody > tr:nth-child(1) > th {
.sv-card :where(h1,h2,h3,h4,h5,h6,th,summary,.mw-headline),
  background: linear-gradient(180deg, #7a6fb0, #5a4e7c);
.mw-parser-output .sv-card :where(h1,h2,h3,h4,h5,h6,th,summary,.mw-headline){
   color: white;
   color:var(--color-emphasized, var(--sv-ui-text1));
  text-align: center;
  padding: 6px;
  font-size: 120%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


.mw-parser-output table.custom-table > tbody > tr:nth-child(2) > th {
.sv-tile,
   text-align: center;
.mw-parser-output .sv-tile{
   padding: 4px;
  background:var(--sv-ui-bg2);
   border-bottom: 1px solid #555;
   border:1px solid var(--sv-ui-line2);
   border-radius:var(--sv-ui-rad-sm);
   color:var(--color-emphasized, var(--sv-ui-text1));
}
}


.mw-parser-output table.custom-table > tbody > tr > td {
.sv-pill,
   text-align: center;
.mw-parser-output .sv-pill{
   padding: 4px;
   display:inline-flex;
   border-bottom: 1px solid #555;
  align-items:center;
  justify-content:center;
   padding:0.18em 0.40em;
   border-radius:var(--sv-ui-rad-sm);
  background:var(--sv-ui-pill-bg);
  border:1px solid var(--sv-ui-pill-line);
  box-shadow:var(--sv-ui-pill-shadow);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  color:var(--sv-ui-pill-text);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.03em;
  font-size:0.72em;
  line-height:1.15;
  white-space:nowrap;
}
}


.mw-parser-output table.custom-table > tbody > tr.middle-header > th {
.sv-pill--compact,
   background: linear-gradient(180deg, #7a6fb0, #5a4e7c);
.mw-parser-output .sv-pill--compact{
   color: white;
   padding:0.15em 0.38em;
  text-align: center;
   border-radius:var(--sv-ui-rad-pill);
  padding: 6px;
  font-size: 110%;
}
}


/* Citizen search hover (safe: already targets a specific Citizen class) */
.sv-pill--value,
.citizen-search-trigger {
.mw-parser-output .sv-pill--value{
   transition: transform 0.15s ease-in-out;
   border-radius:var(--sv-ui-rad-pill);
  font-weight:900;
  text-transform:none;
  letter-spacing:0.01em;
}
}
.citizen-search-trigger:hover {
 
   transform: translateY(-2px);
.sv-focus-ring:focus-visible,
.mw-parser-output .sv-focus-ring:focus-visible{
   outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:var(--sv-ui-rad-sm);
}
}


/* -------------------------------------------------------------------------- */
/* 3a) Hover lift utility */
/* -------------------------------------------------------------------------- */


/* ============================================================
.sv-hover-lift{
  2) HERO TEMPLATE (Shared Infobox System)
  transition:transform 0.15s ease-in-out;
  ============================================================
  will-change:transform;
  Used by:
}
    - table.spiritvale-skill-infobox
    - table.spiritvale-passive-infobox


  Theme strategy:
.sv-hover-lift:hover{
    - Dark mode: default styling
  transform:translateY(-2px);
    - Light mode: ONLY adjusts zebra/separators for readability
}
    - Modules: STAY dark in light mode (by design, for now)
  ========================================================== */


/* ------------------------------------------------------------
/* -------------------------------------------------------------------------- */
  Global sizing + color tokens
/* 3b) Right infobox wrapper */
  --------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
:root {
  /* Shared sizing */
  --sv-infobox-max: 620px;
  --sv-skill-width: 660px;
  --sv-passive-width: 540px;


  /* Module palette (kept dark across themes) */
.sv-card.sv-infobox-right{
  --sv-module-box-a: #5a4e7c; /* top */
  float:right !important;
   --sv-module-box-b: #372b54; /* bottom */
  width:100%;
   --sv-module-box:     #5A4E7C; /* washed tile fill (muted dark purple) */
  max-width:200px;
   --sv-module-gridline: rgba(255, 255, 255, 0.10);
   margin:0 0 2em 2em;
  box-sizing:border-box;
   border-radius:var(--sv-ui-rad-lg);
  overflow:hidden;
   clear:right;
}
}


/* ------------------------------------------------------------
.sv-card.sv-infobox-right.sv-infobox-right--md{max-width:260px;}
  Shared base: both Skill + Passive tables
.sv-card.sv-infobox-right.sv-infobox-right--lg{max-width:320px;}
  --------------------------------------------------------- */
table.spiritvale-skill-infobox,
table.spiritvale-passive-infobox {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: var(--sv-infobox-max);
  margin: 1.5em auto;


  border-radius: 12px;
/* -------------------------------------------------------------------------- */
  overflow: hidden;
/* 4) Shared utilities */
  border: 1px solid rgba(55, 43, 84, 0.65);
/* -------------------------------------------------------------------------- */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);


   font-size: 0.95em;
.sv-hidden,
.mw-parser-output .sv-hidden{
   display:none !important;
}
}


/* Hero (title + description) band background */
[hidden]{display:none !important;}
table.spiritvale-skill-infobox > tbody > tr.spiritvale-infobox-main > th,
 
table.spiritvale-skill-infobox > tbody > tr.spiritvale-infobox-main > td,
.sv-miss,
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th,
.mw-parser-output .sv-miss{
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td,
  display:inline-flex;
table.spiritvale-skill-infobox > tbody > tr.sv-hero-title-row > th,
  align-items:center;
table.spiritvale-skill-infobox > tbody > tr.sv-hero-desc-row > td,
  justify-content:center;
table.spiritvale-passive-infobox > tbody > tr.sv-hero-title-row > th,
  width:18px;
table.spiritvale-passive-infobox > tbody > tr.sv-hero-desc-row > td {
  height:18px;
  background: linear-gradient(135deg, #7a6fb0, #372b54);
  border-radius:var(--sv-ui-rad-pill);
   color: #fff;
  border:1px solid var(--sv-ui-line2);
   padding: 0.9em 1.1em;
  background:var(--sv-ui-bg3);
  text-align: center;
  color:var(--sv-ui-text1);
   vertical-align: middle;
   font-weight:900;
   font-size:12px;
   line-height:1;
}
}


/* Row separators */
.sv-img,
table.spiritvale-skill-infobox > tbody > tr,
.mw-parser-output .sv-img{
table.spiritvale-passive-infobox > tbody > tr {
   display:inline-flex;
   border-bottom: 1px solid rgba(148, 163, 184, 0.40);
  align-items:center;
  justify-content:center;
}
}
table.spiritvale-skill-infobox > tbody > tr:last-child,
 
table.spiritvale-passive-infobox > tbody > tr:last-child {
.sv-img img,
   border-bottom: none;
.mw-parser-output .sv-img img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:var(--sv-ui-rad-sm);
}
 
.sv-img--shadow img,
.mw-parser-output .sv-img--shadow img{
   box-shadow:0 10px 18px rgba(0,0,0,0.35);
}
}


/* Label/value rows (shared default) */
/* -------------------------------------------------------------------------- */
table.spiritvale-skill-infobox > tbody > tr:not(.spiritvale-infobox-main) > th:not(.spiritvale-infobox-section-header),
/* 5) Shared level selector */
table.spiritvale-passive-infobox > tbody > tr:not(.spiritvale-infobox-main) > th:not(.spiritvale-infobox-section-header) {
/* -------------------------------------------------------------------------- */
   width: 26%;
 
   padding: 0.45em 0.85em;
.sv-level-ui,
   text-align: left;
.mw-parser-output .sv-level-ui{
   font-weight: 600;
   display:flex;
   white-space: nowrap;
   align-items:center;
   justify-content:center;
  gap:8px;
   flex-wrap:wrap;
   text-align:center;
  margin:0;
}
}


table.spiritvale-skill-infobox > tbody > tr > td,
.sv-level-label,
table.spiritvale-passive-infobox > tbody > tr > td {
.mw-parser-output .sv-level-label{
   padding: 0.45em 0.85em;
   margin:0;
  text-align: left;
}
}


/* Zebra striping (subtle by default) */
.sv-level-label[data-sv-helper-text],
table.spiritvale-skill-infobox > tbody > tr:nth-child(odd) > td,
.sv-level-ui .sv-level-label:not([data-sv-helper-text]),
table.spiritvale-skill-infobox > tbody > tr:nth-child(odd) > th:not(.spiritvale-infobox-section-header),
.mw-parser-output .sv-level-label[data-sv-helper-text],
table.spiritvale-passive-infobox > tbody > tr:nth-child(odd) > td,
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text]){
table.spiritvale-passive-infobox > tbody > tr:nth-child(odd) > th:not(.spiritvale-infobox-section-header) {
   display:inline-block;
   background-color: rgba(148, 163, 184, 0.05);
  margin:0;
  padding:0;
  font-size:0;
  line-height:0;
}
}


/* Hero helper classes (icon + title + description) */
.sv-level-ui .sv-level-label:not([data-sv-helper-text]),
.spiritvale-infobox-main-left-inner {
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text]){
   display: flex;
   position:static;
   flex-direction: column;
  top:auto;
   align-items: center;
   right:auto;
   justify-content: center;
   bottom:auto;
   gap: 0.35em;
   left:auto;
   transform:none;
}
}


.spiritvale-infobox-title {
.sv-level-label[data-sv-helper-text]::after,
   font-size: 1.25em;
.mw-parser-output .sv-level-label[data-sv-helper-text]::after{
   font-weight: 600;
  content:attr(data-sv-helper-text);
  display:inline-block;
  font-weight:900;
   font-size:12px;
  line-height:1.25;
   letter-spacing:0.15px;
  color:var(--sv-ui-text1);
}
}


.spiritvale-infobox-main-right-inner {
.sv-level-ui .sv-level-label:not([data-sv-helper-text])::after,
   display: flex;
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after{
   align-items: center;
  content:"Slide to set level";
   justify-content: center;
   display:inline-block;
  font-weight:900;
  font-size:12px;
   line-height:1.25;
   letter-spacing:0.15px;
  color:var(--sv-ui-text1);
}
}


.spiritvale-infobox-description {
.sv-level-slider,
   font-size: 1.05em;
.mw-parser-output .sv-level-slider{
   font-style: italic;
   position:relative;
   text-align: center;
  display:flex;
   max-width: 42em;
   flex-direction:row;
   margin: 0 auto;
   align-items:center;
   opacity: 0.95;
   gap:10px;
  width:100%;
   flex-wrap:nowrap;
   direction:ltr;
}
}


/* Skill hero split-row tuning */
.sv-level-slider input.sv-level-range[type="range"],
table.spiritvale-skill-infobox > tbody > tr.sv-hero-title-row {
.sv-level-slider .sv-level-range--custom,
   border-bottom: none !important;
.sv-level-slider .sv-level-range[data-sv-slider="1"],
.mw-parser-output .sv-level-slider input.sv-level-range[type="range"],
.mw-parser-output .sv-level-slider .sv-level-range--custom,
.mw-parser-output .sv-level-slider .sv-level-range[data-sv-slider="1"]{
   flex:1 1 auto;
  min-width:0;
  width:auto;
  box-sizing:border-box;
  margin:0;
  order:1;
}
}
table.spiritvale-skill-infobox > tbody > tr.sv-hero-title-row > th {
 
   padding-bottom: 0.55em;
.sv-level-endvalue,
.mw-parser-output .sv-level-endvalue{
  flex:0 0 auto;
  order:2;
  min-width:28px;
   padding:1px 7px;
  border-radius:var(--sv-ui-rad-pill);
  border:1px solid var(--sv-ui-pill-line);
  background:var(--sv-ui-pill-bg);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
  box-shadow:var(--sv-ui-pill-shadow);
  color:var(--sv-ui-text2);
  font-weight:900;
  font-size:12px;
  line-height:1.25;
  letter-spacing:0.15px;
  text-align:center;
  white-space:nowrap;
}
}
table.spiritvale-skill-infobox > tbody > tr.sv-hero-desc-row > td {
 
  padding-top: 0.55em;
.sv-level--hide-ticks .sv-level-ticklabels,
   padding-bottom: 0.55em;
[data-sv-level-hide-ticks="1"] .sv-level-ticklabels,
.mw-parser-output .sv-level--hide-ticks .sv-level-ticklabels,
.mw-parser-output [data-sv-level-hide-ticks="1"] .sv-level-ticklabels{
   display:none;
}
}


.sv-level-range--custom,
.sv-level-range[data-sv-slider="1"]{
  display:block;
  position:relative;
  height:26px;
  border-radius:var(--sv-ui-rad-pill);
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg1);
  cursor:pointer;
  box-sizing:border-box;
}


/* ------------------------------------------------------------
.sv-level-track{
  SKILLS: sizing + list wrapper behavior
  position:absolute;
  --------------------------------------------------------- */
  left:8px;
table.spiritvale-skill-infobox {
  right:8px;
   max-width: var(--sv-skill-width);
  top:50%;
   margin: 1.25em auto;
  margin-top:-4px;
  table-layout: fixed;
  height:8px;
  border-radius:var(--sv-ui-rad-pill);
   background:var(--sv-ui-bg2);
   overflow:hidden;
}
}


/* List-mode wrapper: one outer panel, skills become rows inside it */
.sv-level-fill{
.sv-skill-collection {
  display:block;
   width: 100%;
  height:100%;
   max-width: var(--sv-skill-width);
   width:0%;
   margin: 0 auto !important;
   border-radius:var(--sv-ui-rad-pill);
  padding: 0 !important;
   background:linear-gradient(90deg, var(--sv-ui-accent), rgba(245,249,255,0.22));
}


   border: 2px solid #372b54;
.sv-level-thumb{
   border-radius: 10px;
  position:absolute;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  left:0%;
  background: transparent !important;
  top:50%;
  margin-top:-9px;
  margin-left:-9px;
  width:18px;
  height:18px;
  border-radius:var(--sv-ui-rad-pill);
   border:2px solid var(--sv-ui-line3);
   background:rgba(245,249,255,0.92);
   box-shadow:0 10px 18px rgba(0,0,0,0.35);
}


   overflow: hidden;
.sv-level-ticklabels{
   display: block !important;
  display:flex;
  justify-content:space-between;
  gap:10px;
   margin-top:7px;
   font-weight:900;
  font-size:12px;
  color:var(--sv-ui-text3);
  line-height:1.1;
  min-height:12px;
}
}


/* Neutralize Citizen wrappers inside the collection */
.sv-level-tick{
.sv-skill-collection .mw-table-wrapper,
   display:inline-flex;
.sv-skill-collection .table-overflow,
   align-items:center;
.sv-skill-collection .table-scroll,
   justify-content:center;
.sv-skill-collection .citizen-table {
   min-width:18px;
   border: none !important;
   box-shadow: none !important;
   background: transparent !important;
   padding: 0 !important;
  margin: 0 !important;
}
}


/* Remove each skill’s individual border/shadow when inside the list wrapper */
.sv-level-range--custom .sv-level-bubble,
.sv-skill-collection table.spiritvale-skill-infobox {
.sv-level-range[data-sv-slider="1"] .sv-level-bubble{
   width: 100%;
   position:absolute;
   max-width: 100%;
  top:-45px;
   margin: 0 !important;
  left:0%;
   transform:translateX(-50%);
  padding:9px 15px;
  border-radius:36px;
  border:1px solid var(--sv-ui-line3);
  background:var(--sv-ui-bg3);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
   box-shadow:0 10px 18px rgba(0,0,0,0.35);
  font-weight:900;
  font-size:36px;
  line-height:1;
  color:var(--sv-ui-text1);
  pointer-events:none;
  white-space:nowrap;
}


   border: none !important;
.sv-level-range--custom .sv-level-bubble:after,
   box-shadow: none !important;
.sv-level-range[data-sv-slider="1"] .sv-level-bubble:after{
   border-radius: 0 !important;
   content:"";
  position:absolute;
  left:50%;
  bottom:-9px;
  width:14px;
  height:14px;
  margin-left:-7px;
  background:var(--sv-ui-bg3);
   border-left:1px solid var(--sv-ui-line3);
   border-bottom:1px solid var(--sv-ui-line3);
  transform:rotate(45deg);
}
}


/* Divider between skill entries in list mode */
.sv-level-range--custom:focus-visible,
.sv-skill-collection > * + * {
.sv-level-range[data-sv-slider="1"]:focus-visible{
   border-top: 1px solid rgba(148, 163, 184, 0.25);
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
   border-radius:var(--sv-ui-rad-sm);
}
}


/* -------------------------------------------------------------------------- */
/* 6) Shared tabs */
/* -------------------------------------------------------------------------- */


/* ------------------------------------------------------------
.sv-tabs,
  SKILLS: Hero Modules (4-slot scaffold)
.mw-parser-output .sv-tabs{
  - One row contains a 2x2 grid of module boxes.
   margin:10px 0 0;
  - Modules are intentionally dark across themes for now.
  --------------------------------------------------------- */
table.spiritvale-skill-infobox tr.hero-modules-row > td.hero-modules-cell {
   padding: 0 !important;
  background: linear-gradient(135deg, var(--sv-modules-band-a), var(--sv-modules-band-b)) !important;
  color: #fff;
}
}


/* 2x2 grid of module boxes */
.sv-tabs-list,
table.spiritvale-skill-infobox .hero-modules-grid {
.mw-parser-output .sv-tabs-list{
   display: grid;
   display:flex;
   grid-template-columns: 1fr 1fr;
  gap:8px;
   gap: 0;
   flex-wrap:wrap;
  margin:0 0 10px 0;
   padding:0;
}
}


.mw-parser-output table.spiritvale-skill-infobox .hero-module {
.sv-tab,
   padding: 0.40em 0.40em;
.mw-parser-output .sv-tab{
   box-sizing: border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--sv-ui-rad-pill);
   padding:7px 10px;
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg2);
  color:var(--sv-ui-text1);
  font-weight:900;
   font-size:13px;
  cursor:pointer;
  user-select:none;
}


   background: #372b54 !important; /* solid dark purple */
.sv-tab:hover,
  color: #fff !important;
.mw-parser-output .sv-tab:hover{
   background:var(--sv-ui-bg3);
}


   border-top: 1px solid var(--sv-module-gridline);
.sv-tab[aria-selected="true"],
   border-left: 1px solid var(--sv-module-gridline);
.mw-parser-output .sv-tab[aria-selected="true"]{
   background:var(--sv-ui-bg3);
   border-color:var(--sv-ui-accent);
}
}


/* Grid borders: remove top border on first row; remove left border on first column */
.sv-tabpanel,
table.spiritvale-skill-infobox .hero-module:nth-child(-n + 2) {
.mw-parser-output .sv-tabpanel{
   border-top: none;
  padding:10px 12px;
}
  border-radius:var(--sv-ui-rad-md);
table.spiritvale-skill-infobox .hero-module:nth-child(odd) {
   border:1px solid var(--sv-ui-line1);
   border-left: none;
   background:var(--sv-ui-bg1);
}
}


/* Empty slots still reserve vertical space for future modules */
.sv-tab:focus-visible,
table.spiritvale-skill-infobox .hero-module-empty .hero-module-body {
.mw-parser-output .sv-tab:focus-visible,
   min-height: 3.2em;
.sv-disclose-btn:focus-visible,
.mw-parser-output .sv-disclose-btn:focus-visible{
   outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:var(--sv-ui-rad-sm);
}
}


/* -------------------------------------------------------------------------- */
/* 7) Shared tip trigger */
/* -------------------------------------------------------------------------- */


/* ------------------------------------------------------------
.sv-tip,
  SKILLS: Module 1 – Level Selector (self-contained)
.mw-parser-output .sv-tip{
  --------------------------------------------------------- */
   position:relative;
table.spiritvale-skill-infobox .module-level-selector .sv-level-ui {
   display:inline-flex;
   width: 100%;
   align-items:center;
  margin: 0 !important;
   flex:0 0 auto;
   display: flex;
   flex-direction: column;
   gap: 0.3em;
}
}


table.spiritvale-skill-infobox .module-level-selector .sv-level-title {
.sv-tip-btn,
   font-weight: 700;
.mw-parser-output .sv-tip-btn{
   text-transform: uppercase;
   display:inline-flex;
   letter-spacing: 0.05em;
  align-items:center;
   font-size: 0.8em;
   justify-content:center;
   opacity: 0.95;
   border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg2);
   color:var(--sv-ui-text1);
  cursor:pointer;
   user-select:none;
}
}


table.spiritvale-skill-infobox .module-level-selector .sv-level-label {
.sv-tip-btn:hover,
   font-weight: 600;
.mw-parser-output .sv-tip-btn:hover{
   background:var(--sv-ui-bg3);
}
}


table.spiritvale-skill-infobox .module-level-selector .sv-level-slider input[type="range"] {
.sv-tip-btn:focus-visible,
   width: 100%;
.mw-parser-output .sv-tip-btn:focus-visible{
  box-sizing: border-box;
   outline:2px solid var(--sv-ui-accent3);
   margin: 0;
   outline-offset:2px;
}
}


/* Slot 1: center the Level Selector vertically within the module tile */
.sv-tip-btn--icon,
table.spiritvale-skill-infobox .hero-module.module-level-selector {
.sv-tip-btn:not(.sv-tip-btn--pill),
   display: flex; /* ensures the body can fill the tile */
.mw-parser-output .sv-tip-btn--icon,
.mw-parser-output .sv-tip-btn:not(.sv-tip-btn--pill){
   width:28px;
  height:28px;
  border-radius:var(--sv-ui-rad-pill);
}
}


table.spiritvale-skill-infobox .hero-module.module-level-selector .hero-module-body {
.sv-tip-btn--pill,
   flex: 1;
.sv-overcap-btn,
   display: flex;
.mw-parser-output .sv-tip-btn--pill,
   align-items: center;     /* vertical center */
.mw-parser-output .sv-overcap-btn{
   justify-content: center; /* horizontal center */
   width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  padding:1px 8px;
  border-radius:var(--sv-ui-rad-pill);
  font-weight:900;
  font-size:13px;
  line-height:1.25;
  letter-spacing:0.15px;
  white-space:nowrap;
  background:var(--sv-ui-pill-bg);
   background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
   box-shadow:var(--sv-ui-pill-shadow);
   border-color:var(--sv-ui-pill-line);
  color:var(--sv-ui-text2);
}
}


/* ------------------------------------------------------------
.sv-ico--info,
  SKILLS: Module 2 – Skill Type (2x2 grid)
.mw-parser-output .sv-ico--info{
  - Values: not bold, slightly larger
  width:18px;
  - Centered module contents
   height:18px;
  - No internal divider lines (use spacing instead)
  border-radius:999px;
  - More breathing room between label + value
   display:flex;
  --------------------------------------------------------- */
   align-items:center;
 
   justify-content:center;
/* Center the entire module contents within the tile */
   font-style:normal;
table.spiritvale-skill-infobox .hero-module.module-skill-type .hero-module-body {
  font-weight:900;
   height: 100%;
  font-size:12px;
   display: flex;
  line-height:1;
   align-items: center;
   justify-content: center;
   width: 100%;
}
}


/* Grid: keep 2x2 always, add spacing instead of borders */
/* -------------------------------------------------------------------------- */
table.spiritvale-skill-infobox .module-skill-type .sv-type-grid {
/* 8) Shared disclosure */
  width: 100%;
/* -------------------------------------------------------------------------- */
  margin: 0 !important;
  box-sizing: border-box;


  display: grid;
.sv-disclose,
  grid-template-columns: 1fr 1fr; /* stays 2 columns on mobile */
.mw-parser-output .sv-disclose{
  gap: 0.5em;                    /* replaces divider lines */
   position:relative;
   padding: 0.4em;                 /* keeps grid off edges */
}
}


/* Each chunk stays centered */
.sv-disclose-btn,
table.spiritvale-skill-infobox .module-skill-type .sv-type-chunk {
.mw-parser-output .sv-disclose-btn{
   display: flex;
   display:flex;
   flex-direction: column;
   align-items:center;
   align-items: center;
  justify-content:space-between;
   justify-content: center;
  gap:12px;
  width:100%;
  padding:10px 12px;
  border-radius:var(--sv-ui-rad-md);
  border:1px solid var(--sv-ui-line1);
  background:var(--sv-ui-bg1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
  color:var(--sv-ui-text1);
   font-weight:900;
  cursor:pointer;
   user-select:none;
}


   text-align: center;
.sv-disclose-btn:hover,
.mw-parser-output .sv-disclose-btn:hover{
   background:var(--sv-ui-bg2);
}


   border: none !important;       /* removes the central dividers */
.sv-disclose-btn--compact,
   padding: 0.25em 0.45em;
.mw-parser-output .sv-disclose-btn--compact{
   gap: 0.6em;                     /* pushes label/value apart */
   border-radius:var(--sv-ui-rad-pill);
   min-height:36px;
   padding:0 12px;
}
}


table.spiritvale-skill-infobox .module-skill-type .sv-type-label {
.sv-disclose-count,
   width: 100%;
.mw-parser-output .sv-disclose-count{
   padding: 0.18em 0.35em;
   font-weight:800;
   border-radius: 6px;
  font-size:13px;
   color:var(--sv-ui-text3);
   white-space:nowrap;
}


  font-weight: 800;
/* -------------------------------------------------------------------------- */
  text-transform: uppercase;
/* 9) Universal popups */
  letter-spacing: 0.03em;
/* -------------------------------------------------------------------------- */
  font-size: 0.72em;
  line-height: 1.15;


  background: linear-gradient(
.sv-tip-btn,
    180deg,
.sv-disclose-btn,
    rgba(122, 111, 176, 0.35),
.sv-def,
    rgba(90, 78, 124, 0.20)
.sv-uipop-head,
   );
.sv-uipop-title,
.sv-uipop-title-link{
   -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  touch-action:manipulation;
}
}


/* Values: slightly bigger, NOT bold */
.sv-tip-btn *,
table.spiritvale-skill-infobox .module-skill-type .sv-type-value {
.sv-disclose-btn *,
  margin-top: 0 !important; /* spacing handled by gap */
.sv-uipop-head *{
  font-weight: 400;
   -webkit-user-select:none;
  font-size: 1.02em;        /* bump this up if you want it “taller” */
   user-select:none;
   line-height: 1.25;
 
  white-space: normal;
  overflow-wrap: anywhere;
   word-break: break-word;
}
}


/* ------------------------------------------------------------
.sv-uipop{
  SKILLS: Module 3 – Skill Source (Basis + Source + Scaling)
  position:fixed;
  - 3 columns, all centered
  z-index:9000;
  - Source/Scaling titles use the same “pill” treatment as Module 2
  top:0;
  --------------------------------------------------------- */
  left:0;
 
  box-sizing:border-box;
/* Center the entire module contents within the tile */
  border-radius:var(--sv-ui-rad-lg);
table.spiritvale-skill-infobox .hero-module.skill-source-module .hero-module-body {
  border:1px solid var(--sv-ui-pop-line, var(--sv-ui-line2));
  height: 100%;
  background:var(--sv-ui-pop-bg, var(--sv-ui-bg2));
   display: flex;
  background-image:
  align-items: center;      /* vertical center */
    radial-gradient(900px 260px at 35% 0, rgba(106,166,255,0.14), rgba(0,0,0,0) 60%),
  justify-content: center; /* horizontal center */
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
  color:var(--sv-ui-text1);
  box-shadow:
    var(--sv-ui-pop-shadow, 0 10px 30px rgba(0,0,0,0.35)),
    inset 0 1px 0 rgba(255,255,255,0.04);
   overflow:hidden;
}
}


/* 3-column layout */
.sv-uipop[aria-hidden="true"]{display:none;}
table.spiritvale-skill-infobox .skill-source-module .sv-source-grid {
  width: 100%;
  box-sizing: border-box;
 
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr; /* Basis | Source | Scaling */
  gap: 0.55em;


   align-items: center;
.sv-uipop--sm,
   justify-items: center;
.sv-uipop--lg{
   width:240px;
   max-width:calc(100vw - 20px);
}
}


/* Each column is centered */
.sv-uipop--sm{max-height:min(45vh, 320px);}
table.spiritvale-skill-infobox .skill-source-module .sv-source-col {
.sv-uipop--lg{max-height:min(70vh, 560px);}
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* Basis word: plain (no pill), clean + readable */
.sv-uipop-head{
table.spiritvale-skill-infobox .skill-source-module .sv-basis-word {
   display:flex;
   font-weight: 650;
  align-items:center;
   font-size: 0.95em;
   justify-content:center;
   line-height: 1.1;
  padding:12px 12px;
   opacity: 0.95;
   border-bottom:1px solid var(--sv-ui-line2);
   background:var(--sv-ui-bg3);
}
}


/* Pill styling: match Module 2 label treatment */
.sv-uipop-head--clickable{cursor:pointer;}
table.spiritvale-skill-infobox .skill-source-module .sv-source-pill {
  width: 100%;
  padding: 0.18em 0.35em;
  border-radius: 6px;


   font-weight: 800;
.sv-uipop-title{
   text-transform: uppercase;
   width:100%;
   letter-spacing: 0.03em;
   text-align:center;
   font-size: 0.72em;
   font-weight:900;
   line-height: 1.15;
   font-size:16px;
 
   letter-spacing:0.02em;
   background: linear-gradient(
   color:var(--color-emphasized, var(--sv-ui-text1));
    180deg,
    rgba(122, 111, 176, 0.35),
    rgba(90, 78, 124, 0.20)
  );
}
}


/* Source %: as large as possible without blowing up the tile */
.sv-uipop-title a.sv-uipop-title-link{
table.spiritvale-skill-infobox .skill-source-module .sv-source-value {
   color:inherit;
   margin-top: 0.35em;
   text-decoration:none;
   font-weight: 800;
  line-height: 1.05;
  font-size: clamp(1.05em, 2.2vw, 1.35em);
}
}


/* Scaling: slightly smaller than source */
.sv-uipop-title a.sv-uipop-title-link:hover{
table.spiritvale-skill-infobox .skill-source-module .sv-scaling-list {
   text-decoration:underline;
   margin-top: 0.35em;
   text-decoration-thickness:2px;
   display: flex;
   text-underline-offset:2px;
   flex-direction: column;
  gap: 0.22em;
  align-items: center;
}
}


table.spiritvale-skill-infobox .skill-source-module .sv-scaling-item {
.sv-uipop-body{
   font-weight: 500;
   padding:10px 12px 12px;
   font-size: 0.88em;
   font-size:13px;
   line-height: 1.15;
   line-height:1.4;
   opacity: 0.95;
  color:var(--sv-ui-text2);
  overflow:auto;
   overflow-wrap:anywhere;
  word-break:break-word;
  -webkit-user-select:text;
  user-select:text;
}
}


/* If you ever want mobile to keep 3 columns, do nothing.
.sv-uipop-body--pre{white-space:pre-line;}
  If you prefer it to stack later, we can add a breakpoint. */


.sv-uipop-body p,
.sv-uipop-body ul,
.sv-uipop-body ol{margin:0;}


/* ------------------------------------------------------------
.sv-uipop-body ul,
  Mobile behavior
.sv-uipop-body ol{padding-left:1.15em;}
  - The OUTER module grid (4-slot scaffold) stacks to 1 column.
  - The Skill Type module INTERNALLY stays 2x2.
  --------------------------------------------------------- */
@media (max-width: 560px) {
  table.spiritvale-skill-infobox .hero-modules-grid {
    grid-template-columns: 1fr;
  }


  table.spiritvale-skill-infobox .hero-module {
.sv-uipop-body li{margin:0;}
    border-left: none;
  }


   table.spiritvale-skill-infobox .hero-module:first-child {
.sv-uipop a{
    border-top: none;
   color:var(--color-link, var(--sv-ui-accent));
  }
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}


  /* Slightly tighter type chunk spacing on mobile */
.sv-uipop a:hover{
   table.spiritvale-skill-infobox .module-skill-type .sv-type-chunk {
   text-decoration-thickness:3px;
    padding: 0.15em 0.15em;
  text-underline-offset:3px;
  }
}


  table.spiritvale-skill-infobox .module-skill-type .sv-type-label {
.sv-uipop a:focus-visible,
    font-size: 0.68em;
.sv-uipop-title a.sv-uipop-title-link:focus-visible{
   }
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
   border-radius:6px;
}
}


.sv-uipop :where(.sv-disclose-list, .sv-uipop-list){
  margin:0;
  padding:0;
  list-style:none;
}


/* ------------------------------------------------------------
.sv-uipop :where(.sv-disclose-list, .sv-uipop-list) > li{
  PASSIVES (kept as-is for now)
   padding:6px 0;
  --------------------------------------------------------- */
  border-top:1px solid var(--sv-ui-line1);
table.spiritvale-passive-infobox {
   font-size:13px;
   width: var(--sv-passive-width);
  color:var(--sv-ui-text2);
   max-width: var(--sv-passive-width);
  margin: 1em auto;
  table-layout: fixed;
}
}


/* Passive split hero rows (match Skills) */
.sv-uipop :where(.sv-disclose-list, .sv-uipop-list) > li:first-child{
table.spiritvale-passive-infobox > tbody > tr.sv-hero-title-row {
   border-top:none;
   border-bottom: none !important;
  padding-top:0;
}
}
table.spiritvale-passive-infobox > tbody > tr.sv-hero-title-row > th {
 
   padding-bottom: 0.55em;
.sv-uipop :where(.sv-disclose-group-title, .sv-uipop-group-title){
   padding-top:10px;
  font-weight:900;
  font-size:12px;
  letter-spacing:0.02em;
  color:var(--sv-ui-text1);
}
}
table.spiritvale-passive-infobox > tbody > tr.sv-hero-desc-row > td {
 
   padding-top: 0.55em;
.sv-uipop .sv-disclose-sections{
   padding-bottom: 0.55em;
   display:flex;
  flex-direction:column;
   gap:10px;
}
}


/* Center + wrap passive body rows */
.sv-uipop .sv-disclose-sec + .sv-disclose-sec{
table.spiritvale-passive-infobox > tbody > tr:not(.spiritvale-infobox-main) > th,
   padding-top:10px;
table.spiritvale-passive-infobox > tbody > tr:not(.spiritvale-infobox-main) > td {
   border-top:1px solid var(--sv-ui-line1);
   text-align: center;
   vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


/* Passive section headers centered */
.sv-uipop .sv-disclose-sec-title{
table.spiritvale-passive-infobox .spiritvale-infobox-section-header {
   font-weight:900;
   text-align: center;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--sv-ui-text1);
  margin:0 0 4px 0;
}
}


/* Passive list layout */
.sv-uipop .sv-disclose-sec-items{
.spiritvale-passive-list {
   font-size:13px;
   display: flex;
   line-height:1.45;
  flex-direction: column;
   color:var(--sv-ui-text2);
   align-items: center;
   gap: 1.25em;
}
}


/* Remove Citizen wrapper borders/spacing around passive tables in lists */
.sv-uipop .sv-disclose-item{display:inline;}
.spiritvale-passive-list .mw-table-wrapper,
.sv-uipop .sv-disclose-sfx{opacity:0.78;}
.spiritvale-passive-list .table-overflow,
.sv-uipop .sv-tip-pop-body{white-space:pre-line;}
.spiritvale-passive-list .table-scroll,
 
.spiritvale-passive-list .citizen-table {
/* -------------------------------------------------------------------------- */
  border: none !important;
/* 10) Motion */
   box-shadow: none !important;
/* -------------------------------------------------------------------------- */
   background: transparent !important;
 
  padding: 0 !important;
@media (prefers-reduced-motion: reduce){
  margin: 0 !important;
   .sv-hover-lift{transition:none;}
   .sv-hover-lift:hover{transform:none;}
}
}


/* -------------------------------------------------------------------------- */
/* 11) Responsive                                                              */
/* -------------------------------------------------------------------------- */
/* default (<640px): compact end value and helper text.                        */
/* sm and up (>=640px): restore the standard control sizing.                  */


/* ------------------------------------------------------------
@media (min-width:640px){
  LIGHT MODE OVERRIDES
  .sv-level-endvalue,
  - Keep modules DARK for now (no module background overrides).
  .mw-parser-output .sv-level-endvalue{
  - Only increase zebra/separator contrast so body rows read cleanly.
    padding:2px 8px;
  --------------------------------------------------------- */
    min-width:30px;
.mw-theme-light table.spiritvale-skill-infobox > tbody > tr:nth-child(odd) > td,
    font-size:13px;
.mw-theme-light table.spiritvale-skill-infobox > tbody > tr:nth-child(odd) > th:not(.spiritvale-infobox-section-header),
    line-height:1.25;
.mw-theme-light table.spiritvale-passive-infobox > tbody > tr:nth-child(odd) > td,
  }
.mw-theme-light table.spiritvale-passive-infobox > tbody > tr:nth-child(odd) > th:not(.spiritvale-infobox-section-header) {
  background-color: rgba(148, 163, 184, 0.12);
}


.mw-theme-light table.spiritvale-skill-infobox > tbody > tr,
  .sv-level-label[data-sv-helper-text]::after,
.mw-theme-light table.spiritvale-passive-infobox > tbody > tr {
  .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after,
   border-bottom: 1px solid rgba(55, 43, 84, 0.18);
  .mw-parser-output .sv-level-label[data-sv-helper-text]::after,
   .mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after{
    font-size:13px;
  }
}
}

Latest revision as of 22:41, 7 March 2026

/* SpiritVale Wiki — Common.css */
/* Role: shared tokens, primitives, utilities, and interactive anatomy */
/* Scope: sitewide SpiritVale UI foundations only */
/* -------------------------------------------------------------------------- */
/* Canonical ownership map                                                     */
/* -------------------------------------------------------------------------- */
/* Common.css is the sitewide foundation layer. It owns:                       */
/* - canonical breakpoint definitions and responsive policy comments           */
/* - shared design tokens and utility primitives                              */
/* - reusable interactive anatomy used by multiple modules/templates          */
/* - global parser-output treatments that should behave the same everywhere    */
/*                                                                            */
/* Common.css does NOT own:                                                    */
/* - Citizen skin theme/chrome styling (Citizen.css)                          */
/* - module-specific card/layout rules (GameInfo, PatchHighlights, etc.)      */
/* - template-specific presentation rules (Definitions, ClassInfobox, etc.)   */
/*                                                                            */
/* Responsive cleanup note: this file is the source of truth for breakpoint    */
/* meaning. Its own responsive selectors should model the canonical ladder     */
/* and shared UI should follow that ladder everywhere else.                    */
/* -------------------------------------------------------------------------- */
/* Responsive policy (canonical)                                              */
/* -------------------------------------------------------------------------- */
/* SpiritVale uses a mobile-first six-viewpoint ladder aligned to Tailwind's   */
/* defaults.                                                                   */
/*                                                                            */
/* Viewpoints                                                                  */
/* - default: 0px-639px   (phones / smallest layout)                           */
/* - sm:      640px-767px (large phones / small tablets)                       */
/* - md:      768px-1023px(tablets / narrow landscape)                         */
/* - lg:      1024px-1279px(laptop / desktop start)                            */
/* - xl:      1280px-1535px(wide desktop)                                      */
/* - 2xl:     1536px+      (very wide desktop)                                 */
/*                                                                            */
/* Implementation rule: write defaults for the smallest layout whenever        */
/* practical, then layer upward with canonical breakpoints.                    */
/* -------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------- */
/* 1) SpiritVale tokens */
/* -------------------------------------------------------------------------- */

:root{
  /* Surface ladder.
     bg0 = site background only
     bg1 = main component surface
     bg2 = nested/grouped panel surface
     bg3 = deep inset / pill surface
     bg4 = highest emphasis / selected / strong highlight surface
  */
  --sv-ui-bg0:#0f172a;
  --sv-ui-bg1:#1f2937;
  --sv-ui-bg2:#273449;
  --sv-ui-bg3:#2e3f59;
  --sv-ui-bg4:#4e6d97;

  /* Border / frame ladder. */
  --sv-ui-line1:#3b4b63;
  --sv-ui-line2:#4b6388;
  --sv-ui-line3:#7d93b5;

  /* Text ladder. */
  --sv-ui-text1:#f5f9ff;
  --sv-ui-text2:#d7e2f4;
  --sv-ui-text3:#b6c6e0;
  --sv-ui-text4:#7f9fcc;

  /* Accent ladder. */
  --sv-ui-accent:#6aa6ff;
  --sv-ui-accent2:#8cbcff;
  --sv-ui-accent3:#e6f0ff;

  /* Popover tokens. */
  --sv-ui-pop-bg:var(--sv-ui-bg2);
  --sv-ui-pop-line:var(--sv-ui-line2);
  --sv-ui-pop-shadow:0 10px 30px rgba(0,0,0,0.35);

  /* Radius tokens. */
  --sv-ui-rad-sm:10px;
  --sv-ui-rad-md:14px;
  --sv-ui-rad-lg:18px;
  --sv-ui-rad-pill:999px;

  /* Shared shadow tokens. */
  --sv-ui-shadow1:0 10px 28px rgba(0,0,0,0.40);

  /* Shared pill tokens. */
  --sv-ui-pill-bg:var(--sv-ui-bg3);
  --sv-ui-pill-line:var(--sv-ui-line2);
  --sv-ui-pill-shadow:inset 0 1px 0 rgba(255,255,255,0.06);
  --sv-ui-pill-text:var(--sv-ui-text1);
}

/* Fallback light skin mapping. */
.mw-theme-light{
  --sv-ui-bg0:#1f2937;
  --sv-ui-bg1:#273449;
  --sv-ui-bg2:#2e3f59;
  --sv-ui-bg3:#364a69;
  --sv-ui-bg4:#6888b4;

  --sv-ui-line1:#4b6388;
  --sv-ui-line2:#5f7fb4;
  --sv-ui-line3:#8ea7ca;

  --sv-ui-text1:#f5f9ff;
  --sv-ui-text2:#d7e2f4;
  --sv-ui-text3:#b6c6e0;
  --sv-ui-text4:#8ba8d1;

  --sv-ui-accent:#8cbcff;
  --sv-ui-accent2:#b0d0ff;
  --sv-ui-accent3:#f2f7ff;
}

/* -------------------------------------------------------------------------- */
/* 2) Sitewide link treatment */
/* -------------------------------------------------------------------------- */

.mw-parser-output a{
  color:var(--color-link, var(--sv-ui-accent));
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
  text-decoration-skip-ink:auto;
  transition:
    color 120ms ease,
    text-decoration-thickness 120ms ease,
    text-underline-offset 120ms ease;
}

.mw-parser-output a:visited{
  color:var(--color-visited, var(--sv-ui-accent2));
}

.mw-parser-output a:hover{
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}

.mw-parser-output a:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:6px;
  box-shadow:0 0 0 3px rgba(230,240,255,0.12);
}

/* -------------------------------------------------------------------------- */
/* 3) Shared primitives */
/* -------------------------------------------------------------------------- */

.sv-card,
.mw-parser-output .sv-card{
  background:var(--sv-ui-bg1);
  border:1px solid var(--sv-ui-line1);
  border-radius:var(--sv-ui-rad-md);
  box-shadow:var(--sv-ui-shadow1);
  color:var(--color-base, var(--sv-ui-text2));
}

.sv-card :where(h1,h2,h3,h4,h5,h6,th,summary,.mw-headline),
.mw-parser-output .sv-card :where(h1,h2,h3,h4,h5,h6,th,summary,.mw-headline){
  color:var(--color-emphasized, var(--sv-ui-text1));
}

.sv-tile,
.mw-parser-output .sv-tile{
  background:var(--sv-ui-bg2);
  border:1px solid var(--sv-ui-line2);
  border-radius:var(--sv-ui-rad-sm);
  color:var(--color-emphasized, var(--sv-ui-text1));
}

.sv-pill,
.mw-parser-output .sv-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.18em 0.40em;
  border-radius:var(--sv-ui-rad-sm);
  background:var(--sv-ui-pill-bg);
  border:1px solid var(--sv-ui-pill-line);
  box-shadow:var(--sv-ui-pill-shadow);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  color:var(--sv-ui-pill-text);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.03em;
  font-size:0.72em;
  line-height:1.15;
  white-space:nowrap;
}

.sv-pill--compact,
.mw-parser-output .sv-pill--compact{
  padding:0.15em 0.38em;
  border-radius:var(--sv-ui-rad-pill);
}

.sv-pill--value,
.mw-parser-output .sv-pill--value{
  border-radius:var(--sv-ui-rad-pill);
  font-weight:900;
  text-transform:none;
  letter-spacing:0.01em;
}

.sv-focus-ring:focus-visible,
.mw-parser-output .sv-focus-ring:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:var(--sv-ui-rad-sm);
}

/* -------------------------------------------------------------------------- */
/* 3a) Hover lift utility */
/* -------------------------------------------------------------------------- */

.sv-hover-lift{
  transition:transform 0.15s ease-in-out;
  will-change:transform;
}

.sv-hover-lift:hover{
  transform:translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* 3b) Right infobox wrapper */
/* -------------------------------------------------------------------------- */

.sv-card.sv-infobox-right{
  float:right !important;
  width:100%;
  max-width:200px;
  margin:0 0 2em 2em;
  box-sizing:border-box;
  border-radius:var(--sv-ui-rad-lg);
  overflow:hidden;
  clear:right;
}

.sv-card.sv-infobox-right.sv-infobox-right--md{max-width:260px;}
.sv-card.sv-infobox-right.sv-infobox-right--lg{max-width:320px;}

/* -------------------------------------------------------------------------- */
/* 4) Shared utilities */
/* -------------------------------------------------------------------------- */

.sv-hidden,
.mw-parser-output .sv-hidden{
  display:none !important;
}

[hidden]{display:none !important;}

.sv-miss,
.mw-parser-output .sv-miss{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:var(--sv-ui-rad-pill);
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg3);
  color:var(--sv-ui-text1);
  font-weight:900;
  font-size:12px;
  line-height:1;
}

.sv-img,
.mw-parser-output .sv-img{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.sv-img img,
.mw-parser-output .sv-img img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:var(--sv-ui-rad-sm);
}

.sv-img--shadow img,
.mw-parser-output .sv-img--shadow img{
  box-shadow:0 10px 18px rgba(0,0,0,0.35);
}

/* -------------------------------------------------------------------------- */
/* 5) Shared level selector */
/* -------------------------------------------------------------------------- */

.sv-level-ui,
.mw-parser-output .sv-level-ui{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  text-align:center;
  margin:0;
}

.sv-level-label,
.mw-parser-output .sv-level-label{
  margin:0;
}

.sv-level-label[data-sv-helper-text],
.sv-level-ui .sv-level-label:not([data-sv-helper-text]),
.mw-parser-output .sv-level-label[data-sv-helper-text],
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text]){
  display:inline-block;
  margin:0;
  padding:0;
  font-size:0;
  line-height:0;
}

.sv-level-ui .sv-level-label:not([data-sv-helper-text]),
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text]){
  position:static;
  top:auto;
  right:auto;
  bottom:auto;
  left:auto;
  transform:none;
}

.sv-level-label[data-sv-helper-text]::after,
.mw-parser-output .sv-level-label[data-sv-helper-text]::after{
  content:attr(data-sv-helper-text);
  display:inline-block;
  font-weight:900;
  font-size:12px;
  line-height:1.25;
  letter-spacing:0.15px;
  color:var(--sv-ui-text1);
}

.sv-level-ui .sv-level-label:not([data-sv-helper-text])::after,
.mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after{
  content:"Slide to set level";
  display:inline-block;
  font-weight:900;
  font-size:12px;
  line-height:1.25;
  letter-spacing:0.15px;
  color:var(--sv-ui-text1);
}

.sv-level-slider,
.mw-parser-output .sv-level-slider{
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  width:100%;
  flex-wrap:nowrap;
  direction:ltr;
}

.sv-level-slider input.sv-level-range[type="range"],
.sv-level-slider .sv-level-range--custom,
.sv-level-slider .sv-level-range[data-sv-slider="1"],
.mw-parser-output .sv-level-slider input.sv-level-range[type="range"],
.mw-parser-output .sv-level-slider .sv-level-range--custom,
.mw-parser-output .sv-level-slider .sv-level-range[data-sv-slider="1"]{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  box-sizing:border-box;
  margin:0;
  order:1;
}

.sv-level-endvalue,
.mw-parser-output .sv-level-endvalue{
  flex:0 0 auto;
  order:2;
  min-width:28px;
  padding:1px 7px;
  border-radius:var(--sv-ui-rad-pill);
  border:1px solid var(--sv-ui-pill-line);
  background:var(--sv-ui-pill-bg);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
  box-shadow:var(--sv-ui-pill-shadow);
  color:var(--sv-ui-text2);
  font-weight:900;
  font-size:12px;
  line-height:1.25;
  letter-spacing:0.15px;
  text-align:center;
  white-space:nowrap;
}

.sv-level--hide-ticks .sv-level-ticklabels,
[data-sv-level-hide-ticks="1"] .sv-level-ticklabels,
.mw-parser-output .sv-level--hide-ticks .sv-level-ticklabels,
.mw-parser-output [data-sv-level-hide-ticks="1"] .sv-level-ticklabels{
  display:none;
}

.sv-level-range--custom,
.sv-level-range[data-sv-slider="1"]{
  display:block;
  position:relative;
  height:26px;
  border-radius:var(--sv-ui-rad-pill);
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg1);
  cursor:pointer;
  box-sizing:border-box;
}

.sv-level-track{
  position:absolute;
  left:8px;
  right:8px;
  top:50%;
  margin-top:-4px;
  height:8px;
  border-radius:var(--sv-ui-rad-pill);
  background:var(--sv-ui-bg2);
  overflow:hidden;
}

.sv-level-fill{
  display:block;
  height:100%;
  width:0%;
  border-radius:var(--sv-ui-rad-pill);
  background:linear-gradient(90deg, var(--sv-ui-accent), rgba(245,249,255,0.22));
}

.sv-level-thumb{
  position:absolute;
  left:0%;
  top:50%;
  margin-top:-9px;
  margin-left:-9px;
  width:18px;
  height:18px;
  border-radius:var(--sv-ui-rad-pill);
  border:2px solid var(--sv-ui-line3);
  background:rgba(245,249,255,0.92);
  box-shadow:0 10px 18px rgba(0,0,0,0.35);
}

.sv-level-ticklabels{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:7px;
  font-weight:900;
  font-size:12px;
  color:var(--sv-ui-text3);
  line-height:1.1;
  min-height:12px;
}

.sv-level-tick{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
}

.sv-level-range--custom .sv-level-bubble,
.sv-level-range[data-sv-slider="1"] .sv-level-bubble{
  position:absolute;
  top:-45px;
  left:0%;
  transform:translateX(-50%);
  padding:9px 15px;
  border-radius:36px;
  border:1px solid var(--sv-ui-line3);
  background:var(--sv-ui-bg3);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  box-shadow:0 10px 18px rgba(0,0,0,0.35);
  font-weight:900;
  font-size:36px;
  line-height:1;
  color:var(--sv-ui-text1);
  pointer-events:none;
  white-space:nowrap;
}

.sv-level-range--custom .sv-level-bubble:after,
.sv-level-range[data-sv-slider="1"] .sv-level-bubble:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-9px;
  width:14px;
  height:14px;
  margin-left:-7px;
  background:var(--sv-ui-bg3);
  border-left:1px solid var(--sv-ui-line3);
  border-bottom:1px solid var(--sv-ui-line3);
  transform:rotate(45deg);
}

.sv-level-range--custom:focus-visible,
.sv-level-range[data-sv-slider="1"]:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:var(--sv-ui-rad-sm);
}

/* -------------------------------------------------------------------------- */
/* 6) Shared tabs */
/* -------------------------------------------------------------------------- */

.sv-tabs,
.mw-parser-output .sv-tabs{
  margin:10px 0 0;
}

.sv-tabs-list,
.mw-parser-output .sv-tabs-list{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 10px 0;
  padding:0;
}

.sv-tab,
.mw-parser-output .sv-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--sv-ui-rad-pill);
  padding:7px 10px;
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg2);
  color:var(--sv-ui-text1);
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  user-select:none;
}

.sv-tab:hover,
.mw-parser-output .sv-tab:hover{
  background:var(--sv-ui-bg3);
}

.sv-tab[aria-selected="true"],
.mw-parser-output .sv-tab[aria-selected="true"]{
  background:var(--sv-ui-bg3);
  border-color:var(--sv-ui-accent);
}

.sv-tabpanel,
.mw-parser-output .sv-tabpanel{
  padding:10px 12px;
  border-radius:var(--sv-ui-rad-md);
  border:1px solid var(--sv-ui-line1);
  background:var(--sv-ui-bg1);
}

.sv-tab:focus-visible,
.mw-parser-output .sv-tab:focus-visible,
.sv-disclose-btn:focus-visible,
.mw-parser-output .sv-disclose-btn:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:var(--sv-ui-rad-sm);
}

/* -------------------------------------------------------------------------- */
/* 7) Shared tip trigger */
/* -------------------------------------------------------------------------- */

.sv-tip,
.mw-parser-output .sv-tip{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}

.sv-tip-btn,
.mw-parser-output .sv-tip-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg2);
  color:var(--sv-ui-text1);
  cursor:pointer;
  user-select:none;
}

.sv-tip-btn:hover,
.mw-parser-output .sv-tip-btn:hover{
  background:var(--sv-ui-bg3);
}

.sv-tip-btn:focus-visible,
.mw-parser-output .sv-tip-btn:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
}

.sv-tip-btn--icon,
.sv-tip-btn:not(.sv-tip-btn--pill),
.mw-parser-output .sv-tip-btn--icon,
.mw-parser-output .sv-tip-btn:not(.sv-tip-btn--pill){
  width:28px;
  height:28px;
  border-radius:var(--sv-ui-rad-pill);
}

.sv-tip-btn--pill,
.sv-overcap-btn,
.mw-parser-output .sv-tip-btn--pill,
.mw-parser-output .sv-overcap-btn{
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  padding:1px 8px;
  border-radius:var(--sv-ui-rad-pill);
  font-weight:900;
  font-size:13px;
  line-height:1.25;
  letter-spacing:0.15px;
  white-space:nowrap;
  background:var(--sv-ui-pill-bg);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
  box-shadow:var(--sv-ui-pill-shadow);
  border-color:var(--sv-ui-pill-line);
  color:var(--sv-ui-text2);
}

.sv-ico--info,
.mw-parser-output .sv-ico--info{
  width:18px;
  height:18px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-style:normal;
  font-weight:900;
  font-size:12px;
  line-height:1;
}

/* -------------------------------------------------------------------------- */
/* 8) Shared disclosure */
/* -------------------------------------------------------------------------- */

.sv-disclose,
.mw-parser-output .sv-disclose{
  position:relative;
}

.sv-disclose-btn,
.mw-parser-output .sv-disclose-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:10px 12px;
  border-radius:var(--sv-ui-rad-md);
  border:1px solid var(--sv-ui-line1);
  background:var(--sv-ui-bg1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
  background-image:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
  color:var(--sv-ui-text1);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}

.sv-disclose-btn:hover,
.mw-parser-output .sv-disclose-btn:hover{
  background:var(--sv-ui-bg2);
}

.sv-disclose-btn--compact,
.mw-parser-output .sv-disclose-btn--compact{
  border-radius:var(--sv-ui-rad-pill);
  min-height:36px;
  padding:0 12px;
}

.sv-disclose-count,
.mw-parser-output .sv-disclose-count{
  font-weight:800;
  font-size:13px;
  color:var(--sv-ui-text3);
  white-space:nowrap;
}

/* -------------------------------------------------------------------------- */
/* 9) Universal popups */
/* -------------------------------------------------------------------------- */

.sv-tip-btn,
.sv-disclose-btn,
.sv-def,
.sv-uipop-head,
.sv-uipop-title,
.sv-uipop-title-link{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  touch-action:manipulation;
}

.sv-tip-btn *,
.sv-disclose-btn *,
.sv-uipop-head *{
  -webkit-user-select:none;
  user-select:none;
}

.sv-uipop{
  position:fixed;
  z-index:9000;
  top:0;
  left:0;
  box-sizing:border-box;
  border-radius:var(--sv-ui-rad-lg);
  border:1px solid var(--sv-ui-pop-line, var(--sv-ui-line2));
  background:var(--sv-ui-pop-bg, var(--sv-ui-bg2));
  background-image:
    radial-gradient(900px 260px at 35% 0, rgba(106,166,255,0.14), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
  color:var(--sv-ui-text1);
  box-shadow:
    var(--sv-ui-pop-shadow, 0 10px 30px rgba(0,0,0,0.35)),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow:hidden;
}

.sv-uipop[aria-hidden="true"]{display:none;}

.sv-uipop--sm,
.sv-uipop--lg{
  width:240px;
  max-width:calc(100vw - 20px);
}

.sv-uipop--sm{max-height:min(45vh, 320px);}
.sv-uipop--lg{max-height:min(70vh, 560px);}

.sv-uipop-head{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 12px;
  border-bottom:1px solid var(--sv-ui-line2);
  background:var(--sv-ui-bg3);
}

.sv-uipop-head--clickable{cursor:pointer;}

.sv-uipop-title{
  width:100%;
  text-align:center;
  font-weight:900;
  font-size:16px;
  letter-spacing:0.02em;
  color:var(--color-emphasized, var(--sv-ui-text1));
}

.sv-uipop-title a.sv-uipop-title-link{
  color:inherit;
  text-decoration:none;
}

.sv-uipop-title a.sv-uipop-title-link:hover{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}

.sv-uipop-body{
  padding:10px 12px 12px;
  font-size:13px;
  line-height:1.4;
  color:var(--sv-ui-text2);
  overflow:auto;
  overflow-wrap:anywhere;
  word-break:break-word;
  -webkit-user-select:text;
  user-select:text;
}

.sv-uipop-body--pre{white-space:pre-line;}

.sv-uipop-body p,
.sv-uipop-body ul,
.sv-uipop-body ol{margin:0;}

.sv-uipop-body ul,
.sv-uipop-body ol{padding-left:1.15em;}

.sv-uipop-body li{margin:0;}

.sv-uipop a{
  color:var(--color-link, var(--sv-ui-accent));
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}

.sv-uipop a:hover{
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}

.sv-uipop a:focus-visible,
.sv-uipop-title a.sv-uipop-title-link:focus-visible{
  outline:2px solid var(--sv-ui-accent3);
  outline-offset:2px;
  border-radius:6px;
}

.sv-uipop :where(.sv-disclose-list, .sv-uipop-list){
  margin:0;
  padding:0;
  list-style:none;
}

.sv-uipop :where(.sv-disclose-list, .sv-uipop-list) > li{
  padding:6px 0;
  border-top:1px solid var(--sv-ui-line1);
  font-size:13px;
  color:var(--sv-ui-text2);
}

.sv-uipop :where(.sv-disclose-list, .sv-uipop-list) > li:first-child{
  border-top:none;
  padding-top:0;
}

.sv-uipop :where(.sv-disclose-group-title, .sv-uipop-group-title){
  padding-top:10px;
  font-weight:900;
  font-size:12px;
  letter-spacing:0.02em;
  color:var(--sv-ui-text1);
}

.sv-uipop .sv-disclose-sections{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sv-uipop .sv-disclose-sec + .sv-disclose-sec{
  padding-top:10px;
  border-top:1px solid var(--sv-ui-line1);
}

.sv-uipop .sv-disclose-sec-title{
  font-weight:900;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--sv-ui-text1);
  margin:0 0 4px 0;
}

.sv-uipop .sv-disclose-sec-items{
  font-size:13px;
  line-height:1.45;
  color:var(--sv-ui-text2);
}

.sv-uipop .sv-disclose-item{display:inline;}
.sv-uipop .sv-disclose-sfx{opacity:0.78;}
.sv-uipop .sv-tip-pop-body{white-space:pre-line;}

/* -------------------------------------------------------------------------- */
/* 10) Motion */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  .sv-hover-lift{transition:none;}
  .sv-hover-lift:hover{transform:none;}
}

/* -------------------------------------------------------------------------- */
/* 11) Responsive                                                               */
/* -------------------------------------------------------------------------- */
/* default (<640px): compact end value and helper text.                        */
/* sm and up (>=640px): restore the standard control sizing.                   */

@media (min-width:640px){
  .sv-level-endvalue,
  .mw-parser-output .sv-level-endvalue{
    padding:2px 8px;
    min-width:30px;
    font-size:13px;
    line-height:1.25;
  }

  .sv-level-label[data-sv-helper-text]::after,
  .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after,
  .mw-parser-output .sv-level-label[data-sv-helper-text]::after,
  .mw-parser-output .sv-level-ui .sv-level-label:not([data-sv-helper-text])::after{
    font-size:13px;
  }
}