Module:GameInfo/styles.css: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Module:GameInfo/styles.css */ | /* Module:GameInfo/styles.css */ | ||
/* Phase 4.1 — | /* Phase 4.1 — TemplateStyles-safe (NO var(), NO vendor pseudos) */ | ||
/* Hide contract (shared with JS) */ | |||
.sv-hidden{display:none !important;} | |||
[hidden]{display:none !important;} | |||
/* Safe details reset */ | |||
.sv-gi-card summary, | |||
.sv-skill-card summary{list-style:none;} | |||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
BASE CARD + SAFETY | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-gi-card, | .sv-gi-card, | ||
.sv-skill-card { | .sv-skill-card{ | ||
max-width:600px; | |||
margin:18px auto; | |||
border-radius:22px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background-color:#0f172a; | |||
background-image: | |||
radial-gradient(1200px 520px at 50% -20%, rgba(96,165,250,0.18), transparent 55%), | |||
linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)), | |||
radial-gradient(900px 360px at 50% 0, rgba(255,255,255,0.05), transparent 55%), | |||
linear-gradient(180deg, #0f172a, #0b1428); | |||
box-shadow:0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | |||
overflow:visible; | |||
color:rgba(215,226,244,0.95); | |||
font-size:12px; | |||
line-height:1.35; | |||
} | } | ||
.sv-gi-top, | .sv-gi-top, | ||
.sv-skill-top { | .sv-skill-top{ | ||
padding:14px 14px 4px; | |||
border-radius:22px 22px 0 0; | |||
overflow:visible; | |||
} | } | ||
.sv-gi-bottom, | .sv-gi-bottom, | ||
.sv-skill-bottom { | .sv-skill-bottom{ | ||
padding:10px 14px 12px; | |||
border-top:1px solid rgba(255,255,255,0.08); | |||
border-radius:0 0 22px 22px; | |||
background-image:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.10)); | |||
} | } | ||
| Line 47: | Line 51: | ||
.sv-gi-card *, | .sv-gi-card *, | ||
.sv-skill-card, | .sv-skill-card, | ||
.sv-skill-card * { | .sv-skill-card *{box-sizing:border-box;} | ||
} | |||
.sv-gi-card a, | .sv-gi-card a, | ||
.sv-skill-card a { | .sv-skill-card a{color:#8cbcff;text-decoration:none;} | ||
.sv-gi-card a:visited, | |||
.sv-skill-card a:visited{color:#b0d0ff;} | |||
} | |||
.sv-gi-card a:hover, | .sv-gi-card a:hover, | ||
.sv-skill-card a:hover { | .sv-skill-card a:hover{text-decoration:underline;} | ||
} | |||
/* Focus */ | /* Focus (TemplateStyles-safe: use :focus only) */ | ||
.sv-tip-btn:focus, | .sv-tip-btn:focus, | ||
.sv-disclose-btn:focus, | .sv-disclose-btn:focus, | ||
.sv-tab | .sv-tab:focus{ | ||
outline:2px solid rgba(176,208,255,0.70); | |||
outline-offset:2px; | |||
} | } | ||
/* Missing icon badge */ | /* Missing icon badge */ | ||
.sv-miss { | .sv-miss{ | ||
display:inline-block; | |||
width:18px; | |||
height:18px; | |||
border-radius:999px; | |||
border:1px solid rgba(255,255,255,0.10); | |||
background:rgba(255,255,255,0.06); | |||
font-weight:900; | |||
font-size:12px; | |||
line-height:18px; | |||
text-align:center; | |||
color:rgba(245,249,255,0.95); | |||
} | } | ||
/* Image wrapper produced by Lua */ | /* Image wrapper produced by Lua */ | ||
.sv-img { display: inline-block; } | .sv-img{display:inline-block;} | ||
.sv-img img { | .sv-img img{ | ||
display:block; | |||
border-radius:10px; | |||
box-shadow:0 10px 18px rgba(0,0,0,0.35); | |||
} | } | ||
| Line 106: | Line 95: | ||
.sv-scaling-row, | .sv-scaling-row, | ||
.sv-core-row, | .sv-core-row, | ||
.sv-tabs { | .sv-tabs{ | ||
border-radius:12px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background:rgba(255,255,255,0.04); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.03); | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
HEADER (ICON + TITLE + NOTES + DESCRIPTION) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-head { | .sv-skill-head{ | ||
display:grid; | |||
grid-template-columns:92px 1fr; | |||
gap:12px; | |||
align-items:start; | |||
padding:2px 0 10px; | |||
} | } | ||
.sv-skill-icon { | .sv-skill-icon{ | ||
width:92px; | |||
height:92px; | |||
border-radius:12px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background:rgba(255,255,255,0.04); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | |||
overflow:hidden; | |||
} | } | ||
.sv-skill-headtext { min-width: 0; } | .sv-skill-headtext{min-width:0;} | ||
.sv-skill-title-row { | .sv-skill-title-row{ | ||
display:flex; | |||
align-items:center; | |||
gap:10px; | |||
min-width:0; | |||
} | } | ||
.sv-skill-title { | .sv-skill-title{ | ||
min-width:0; | |||
font-weight:900; | |||
font-size:20px; | |||
line-height:1.05; | |||
letter-spacing:0.2px; | |||
color:rgba(245,250,255,0.98); | |||
text-shadow:0 2px 0 rgba(0,0,0,0.35); | |||
word-wrap:break-word; | |||
} | } | ||
.sv-skill-desc { | .sv-skill-desc{ | ||
margin-top:8px; | |||
max-width:none; | |||
width:100%; | |||
font-size:18px; | |||
line-height:1.30; | |||
color:rgba(182,198,224,0.98); | |||
word-wrap:break-word; | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
NOTES TIP + DISCLOSE POPOVERS | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-tip { position: relative; display: inline-block; } | .sv-tip{position:relative;display:inline-block;} | ||
.sv-tip > summary { cursor: pointer; } | .sv-tip > summary{cursor:pointer;} | ||
.sv-tip-btn { | .sv-tip-btn{ | ||
display:inline-block; | |||
width:30px; | |||
height:30px; | |||
border-radius:999px; | |||
background:rgba(255,255,255,0.10); | |||
border:1px solid rgba(255,255,255,0.085); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | |||
text-align:center; | |||
line-height:30px; | |||
cursor:pointer; | |||
} | } | ||
.sv-tip-btn:hover{background:rgba(255,255,255,0.13);} | |||
.sv-tip-btn:hover { background: rgba(255,255,255,0.13); } | |||
.sv-ico, | .sv-ico, | ||
.sv-ico--info { | .sv-ico--info{ | ||
font-weight:900; | |||
font-size:12px; | |||
line-height:1; | |||
color:rgba(245,250,255,0.95); | |||
} | } | ||
.sv-tip-pop, | .sv-tip-pop, | ||
.sv-disclose-pop { | .sv-disclose-pop{ | ||
position:absolute; | |||
z-index:200; | |||
padding:10px 10px 8px; | |||
border-radius:12px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background: | |||
radial-gradient(700px 260px at 40% 0, rgba(96,165,250,0.10), transparent 55%), | |||
linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)), | |||
linear-gradient(180deg, #0f172a, #0b1428); | |||
box-shadow:0 16px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | |||
width:380px; | |||
max-width:92%; | |||
} | } | ||
.sv-tip-pop { top: 40px; right: 0; } | .sv-tip-pop{top:40px;right:0;} | ||
.sv-disclose-pop { top: 46px; left: 0; } | .sv-disclose-pop{top:46px;left:0;} | ||
.sv-tip-pop:before, | .sv-tip-pop:before, | ||
.sv-disclose-pop:before { | .sv-disclose-pop:before{ | ||
content:""; | |||
position:absolute; | |||
top:-6px; | |||
width:11px; | |||
height:11px; | |||
transform:rotate(45deg); | |||
background:#0f172a; | |||
border-left:1px solid rgba(255,255,255,0.085); | |||
border-top:1px solid rgba(255,255,255,0.085); | |||
} | } | ||
.sv-tip-pop:before { right: 14px; } | .sv-tip-pop:before{right:14px;} | ||
.sv-disclose-pop:before { left: 20px; } | .sv-disclose-pop:before{left:20px;} | ||
.sv-tip-pop-head, | .sv-tip-pop-head, | ||
.sv-disclose-pop-head { | .sv-disclose-pop-head{ | ||
display:flex; | |||
align-items:center; | |||
justify-content:space-between; | |||
gap:10px; | |||
margin-bottom:6px; | |||
} | } | ||
.sv-tip-pop-title, | .sv-tip-pop-title, | ||
.sv-disclose-pop-title { | .sv-disclose-pop-title{ | ||
font-weight:900; | |||
font-size:12px; | |||
letter-spacing:0.10em; | |||
text-transform:uppercase; | |||
color:rgba(245,249,255,0.70); | |||
} | } | ||
.sv-tip-pop-hint, | .sv-tip-pop-hint, | ||
.sv-disclose-pop-hint { | .sv-disclose-pop-hint{ | ||
font-size:12px; | |||
color:rgba(215,226,244,0.78); | |||
} | } | ||
.sv-tip-pop-body { | .sv-tip-pop-body{ | ||
color:rgba(215,226,244,0.95); | |||
font-size:12px; | |||
line-height:1.35; | |||
} | } | ||
.sv-tip-pop-body ul { margin: 8px 0 0; padding-left: 18px; } | .sv-tip-pop-body ul{margin:8px 0 0;padding-left:18px;} | ||
.sv-tip-pop-body li { margin: 6px 0; } | .sv-tip-pop-body li{margin:6px 0;} | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
META (SEGMENTED STRIP) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-meta { | .sv-skill-meta{ | ||
margin-top:10px; | |||
display:grid; | |||
grid-template-columns:repeat(4, 1fr); | |||
gap:0; | |||
border-top:1px solid rgba(255,255,255,0.085); | |||
border-bottom:1px solid rgba(255,255,255,0.085); | |||
} | } | ||
.sv-meta-card { | .sv-meta-card{ | ||
min-height:52px; | |||
display:grid; | |||
grid-template-columns:40px 1fr; | |||
align-items:center; | |||
padding:5px 6px; | |||
border-right:1px solid rgba(255,255,255,0.085); | |||
} | } | ||
.sv-meta-card:nth-child(4) { border-right: none; } | .sv-meta-card:nth-child(4){border-right:none;} | ||
.sv-meta-icon { | .sv-meta-icon{ | ||
width:34px; | |||
height:34px; | |||
border-radius:10px; | |||
background:rgba(255,255,255,0.04); | |||
border:1px solid rgba(255,255,255,0.085); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | |||
overflow:hidden; | |||
} | } | ||
.sv-meta-textwrap { | .sv-meta-textwrap{ | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
min-width:0; | |||
} | } | ||
.sv-meta-text { | .sv-meta-text{ | ||
font-weight:700; | |||
font-size:12px; | |||
line-height:1.12; | |||
letter-spacing:0.14px; | |||
color:rgba(215,226,244,0.95); | |||
text-align:center; | |||
word-wrap:break-word; | |||
} | } | ||
.sv-meta-lines span { display: block; } | .sv-meta-lines span{display:block;} | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
REQUIREMENTS / USERS | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-reqrow { | .sv-reqrow{ | ||
margin:6px 0; | |||
display:flex; | |||
justify-content:center; | |||
align-items:center; | |||
gap:10px; | |||
} | } | ||
.sv-reqrow > *:only-child { | .sv-reqrow > *{flex:0 1 140px;max-width:140px;min-width:0;} | ||
.sv-reqrow > *:only-child{flex:0 1 280px;max-width:280px;} | |||
} | |||
.sv-disclose { position: relative; } | .sv-disclose{position:relative;} | ||
.sv-disclose > summary { cursor: pointer; } | .sv-disclose > summary{cursor:pointer;} | ||
.sv-disclose > summary, | .sv-disclose > summary, | ||
.sv-disclose-btn { | .sv-disclose-btn{ | ||
width:100%; | |||
padding:6px 8px; | |||
border-radius:12px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
gap:6px; | |||
text-align:center; | |||
color:rgba(215,226,244,0.95); | |||
font-weight:800; | |||
font-size:12px; | |||
letter-spacing:0.2px; | |||
} | } | ||
.sv-disclose-count { | .sv-disclose-count{ | ||
color:rgba(245,249,255,0.75); | |||
font-weight:900; | |||
font-size:12px; | |||
} | } | ||
.sv-disclose-list{ | |||
.sv-disclose-list { | margin:0; | ||
padding-left:18px; | |||
color:rgba(215,226,244,0.95); | |||
font-size:12px; | |||
line-height:1.35; | |||
} | } | ||
.sv-disclose-list li { margin: 6px 0; } | .sv-disclose-list li{margin:6px 0;} | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
LEVEL + SCALING + CORE | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-level { | .sv-skill-level{ | ||
margin-top:10px; | |||
padding:6px 10px 6px; | |||
border-radius:12px 12px 0 0; | |||
border-bottom:0; | |||
} | } | ||
.sv- | .sv-skill-scaling{margin-top:0;} | ||
.sv-skill-core{margin-top:0;} | |||
.sv- | |||
} | |||
.sv- | .sv-scaling-row{border-radius:0;border-top:0;border-bottom:0;} | ||
.sv-core-row{border-radius:0 0 12px 12px;border-top:0;} | |||
} | |||
.sv-level-ui{ | |||
width:100%; | |||
display:flex; | |||
flex-direction:column; | |||
.sv-level- | gap:4px; | ||
align-items:center; | |||
} | } | ||
.sv-level- | .sv-level-label{ | ||
width:100%; | |||
text-align:center; | |||
font-weight:800; | |||
opacity:0.95; | |||
font-size:14px; | |||
white-space:nowrap; | |||
} | } | ||
.sv-level-label br{display:none;} | |||
.sv-level- | .sv-level-slider{ | ||
width:100%; | |||
display:flex; | |||
justify-content:center; | |||
} | } | ||
.sv-level-range | .sv-level-range--custom{ | ||
display:block; | |||
position:relative; | |||
width:100%; | |||
max-width:560px; | |||
margin:0 auto; | |||
height:22px; | |||
border-radius:999px; | |||
border:0; | |||
background:transparent; | |||
cursor:pointer; | |||
user-select:none; | |||
} | } | ||
.sv-level-range--custom { | /* keep slider click highlight off */ | ||
.sv-level-range--custom:focus{outline:none;} | |||
} | |||
.sv-level-track { | .sv-level-track{ | ||
position:absolute; | |||
left:0; | |||
right:0; | |||
top:50%; | |||
margin-top:-5px; | |||
height:10px; | |||
border-radius:999px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background: | |||
linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)), | |||
repeating-linear-gradient(to right, transparent 0, transparent 10.8%, rgba(255,255,255,0.28) 10.8%, rgba(255,255,255,0.28) 11.11%); | |||
overflow:hidden; | |||
user-select:none; | |||
} | } | ||
.sv-level-fill { | .sv-level-fill{ | ||
display:block; | |||
height:100%; | |||
width:0%; | |||
border-radius:999px; | |||
background:linear-gradient(90deg, rgba(140,188,255,0.45), rgba(245,249,255,0.12)); | |||
user-select:none; | |||
} | } | ||
.sv-level-thumb { | .sv-level-thumb{ | ||
position:absolute; | |||
left:0%; | |||
top:50%; | |||
margin-top:-9px; | |||
margin-left:-9px; | |||
width:18px; | |||
height:18px; | |||
border-radius:999px; | |||
background:rgba(255,255,255,0.92); | |||
border:1px solid rgba(0,0,0,0.35); | |||
box-shadow:0 6px 14px rgba(0,0,0,0.35); | |||
user-select:none; | |||
} | } | ||
.sv-level-ticklabels { | .sv-level-ticklabels{ | ||
display:flex; | |||
justify-content:space-between; | |||
margin-top:4px; | |||
padding:0 2px; | |||
width:100%; | |||
max-width:560px; | |||
margin-left:auto; | |||
margin-right:auto; | |||
font-size:12px; | |||
color:rgba(245,249,255,0.70); | |||
font-weight:800; | |||
line-height:1.1; | |||
user-select:none; | |||
} | } | ||
.sv-level-ticklabels span { min-width: 1ch; text-align: center; } | .sv-level-ticklabels span{min-width:1ch;text-align:center;} | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
TABS (safety: panels visible unless [hidden]) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv- | .sv-skill-tabs{margin-top:10px;} | ||
.sv-tabs{overflow:hidden;} | |||
.sv- | |||
} | |||
.sv- | .sv-tabs-list{ | ||
display:grid; | |||
grid-template-columns:repeat(4, 1fr); | |||
gap:0; | |||
border-bottom:1px solid rgba(255,255,255,0.085); | |||
} | } | ||
.sv- | .sv-tab{ | ||
border:0; | |||
margin:0; | |||
padding:10px 8px; | |||
background:transparent; | |||
color:rgba(245,249,255,0.78); | |||
font-weight:900; | |||
font-size:12px; | |||
letter-spacing:0.06em; | |||
text-transform:uppercase; | |||
cursor:pointer; | |||
line-height:1.05; | |||
min-width:0; | |||
text-align:center; | |||
white-space:nowrap; | |||
overflow:hidden; | |||
} | } | ||
.sv-tab + .sv-tab{border-left:1px solid rgba(255,255,255,0.085);} | |||
.sv- | .sv-tab[aria-selected="true"]{ | ||
color:rgba(245,249,255,0.98); | |||
background: | |||
radial-gradient(600px 220px at 50% 0, rgba(96,165,250,0.14), transparent 60%), | |||
linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.05); | |||
} | } | ||
.sv- | .sv-tabs-panels{padding:10px 10px 12px;} | ||
.sv- | .sv-tabpanel{display:block;} | ||
.sv-tabpanel[hidden]{display:none;} | |||
.sv-tabpanel.sv-hidden{display:none;} | |||
} | |||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
KEYWORDS TAB (scoped pill to avoid Common.css collisions) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv- | .sv-tab-pills{ | ||
display:grid; | |||
grid-template-columns:repeat(3, 1fr); | |||
gap:8px; | |||
justify-content:center; | |||
} | } | ||
.sv- | .sv-tab-pills .sv-pill{ | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
gap:8px; | |||
padding:6px 8px; | |||
border-radius:12px; | |||
border:1px solid rgba(255,255,255,0.085); | |||
background:rgba(255,255,255,0.03); | |||
color:rgba(245,249,255,0.98); | |||
font-weight:900; | |||
font-size:15px; | |||
line-height:1.05; | |||
text-align:center; | |||
white-space:normal; | |||
word-wrap:break-word; | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
RESPONSIVE | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill- | @media (max-width:849px){ | ||
.sv- | .sv-gi-card, | ||
.sv-skill-card{margin:14px 10px;border-radius:20px;} | |||
.sv- | .sv-gi-top, | ||
.sv-skill-top{padding:12px 12px 4px;border-radius:20px 20px 0 0;} | |||
.sv-gi-bottom, | |||
.sv-skill-bottom{padding:10px 12px 12px;border-radius:0 0 20px 20px;} | |||
.sv-skill-head{grid-template-columns:84px 1fr;gap:12px;} | |||
.sv-skill-icon{width:84px;height:84px;border-radius:12px;} | |||
.sv-skill-desc{font-size:17px;} | |||
.sv-skill-meta{grid-template-columns:repeat(2, 1fr);} | |||
.sv-meta-card{border-right:1px solid rgba(255,255,255,0.085);border-bottom:1px solid rgba(255,255,255,0.085);} | |||
.sv-meta-card:nth-child(2), | |||
.sv-meta-card:nth-child(4){border-right:none;} | |||
.sv-meta-card:nth-child(3), | |||
.sv-meta-card:nth-child(4){border-bottom:none;} | |||
.sv-tab{padding:8px 6px;} | |||
.sv-tabs-panels{padding:9px 9px 10px;} | |||
.sv-level-range--custom, | |||
.sv-level-ticklabels{max-width:520px;} | |||
} | } | ||
.sv- | @media (max-width:500px){ | ||
.sv-skill-card, | |||
.sv-gi-card{ | |||
background-color:#1f2937 !important; | |||
background-image:none !important; | |||
border:1px solid #4b6388 !important; | |||
box-shadow:0 16px 34px rgba(0,0,0,0.70) !important; | |||
color:#f5f9ff !important; | |||
} | } | ||
.sv-skill-level, | |||
.sv- | .sv-scaling-row, | ||
.sv-core-row, | |||
.sv-tab | .sv-tabs, | ||
.sv-tab-pills .sv-pill, | |||
.sv-disclose > summary, | |||
.sv-disclose-btn, | |||
.sv-meta-card, | |||
.sv-meta-icon{ | |||
background:#273449 !important; | |||
border:1px solid #4b6388 !important; | |||
box-shadow:none !important; | |||
} | } | ||
.sv-tabs-list, | |||
.sv-tab + .sv-tab, | |||
.sv-meta-card{border-color:#4b6388 !important;} | |||
.sv-tab{background:#2e3f59 !important;color:#f5f9ff !important;} | |||
.sv-tab[aria-selected="true"]{background:#364a69 !important;color:#ffffff !important;box-shadow:none !important;} | |||
.sv-level-track{border:1px solid #5f7fb4 !important;background:#364a69 !important;} | |||
.sv-level-fill{background:#8cbcff !important;} | |||
.sv-level-thumb{background:#ffffff !important;border:1px solid #0a0f18 !important;box-shadow:none !important;} | |||
.sv-level-ticklabels{color:#f5f9ff !important;} | |||
.sv-skill-head{grid-template-columns:68px 1fr;gap:10px;} | |||
.sv-skill-icon{width:68px;height:68px;border-radius:12px;} | |||
.sv-skill-title{font-size:18px;} | |||
.sv-skill-desc{font-size:15px;line-height:1.28;} | |||
.sv-tabs-list{grid-template-columns:repeat(2, 1fr);} | |||
.sv-tab:nth-child(n+3){border-top:1px solid #4b6388 !important;} | |||
.sv-tab-pills{grid-template-columns:repeat(2, 1fr);} | |||
.sv-tab-pills .sv-pill{font-size:14px;} | |||
.sv-level-range--custom, | .sv-level-range--custom, | ||
.sv-level-ticklabels{max-width:100%;} | |||
.sv-level-ticklabels { | |||
} | } | ||
Revision as of 05:24, 25 February 2026
/* Module:GameInfo/styles.css */
/* Phase 4.1 — TemplateStyles-safe (NO var(), NO vendor pseudos) */
/* Hide contract (shared with JS) */
.sv-hidden{display:none !important;}
[hidden]{display:none !important;}
/* Safe details reset */
.sv-gi-card summary,
.sv-skill-card summary{list-style:none;}
/* ----------------------------------------------------------------------------
BASE CARD + SAFETY
---------------------------------------------------------------------------- */
.sv-gi-card,
.sv-skill-card{
max-width:600px;
margin:18px auto;
border-radius:22px;
border:1px solid rgba(255,255,255,0.085);
background-color:#0f172a;
background-image:
radial-gradient(1200px 520px at 50% -20%, rgba(96,165,250,0.18), transparent 55%),
linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
radial-gradient(900px 360px at 50% 0, rgba(255,255,255,0.05), transparent 55%),
linear-gradient(180deg, #0f172a, #0b1428);
box-shadow:0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
overflow:visible;
color:rgba(215,226,244,0.95);
font-size:12px;
line-height:1.35;
}
.sv-gi-top,
.sv-skill-top{
padding:14px 14px 4px;
border-radius:22px 22px 0 0;
overflow:visible;
}
.sv-gi-bottom,
.sv-skill-bottom{
padding:10px 14px 12px;
border-top:1px solid rgba(255,255,255,0.08);
border-radius:0 0 22px 22px;
background-image:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.10));
}
.sv-gi-card,
.sv-gi-card *,
.sv-skill-card,
.sv-skill-card *{box-sizing:border-box;}
.sv-gi-card a,
.sv-skill-card a{color:#8cbcff;text-decoration:none;}
.sv-gi-card a:visited,
.sv-skill-card a:visited{color:#b0d0ff;}
.sv-gi-card a:hover,
.sv-skill-card a:hover{text-decoration:underline;}
/* Focus (TemplateStyles-safe: use :focus only) */
.sv-tip-btn:focus,
.sv-disclose-btn:focus,
.sv-tab:focus{
outline:2px solid rgba(176,208,255,0.70);
outline-offset:2px;
}
/* Missing icon badge */
.sv-miss{
display:inline-block;
width:18px;
height:18px;
border-radius:999px;
border:1px solid rgba(255,255,255,0.10);
background:rgba(255,255,255,0.06);
font-weight:900;
font-size:12px;
line-height:18px;
text-align:center;
color:rgba(245,249,255,0.95);
}
/* Image wrapper produced by Lua */
.sv-img{display:inline-block;}
.sv-img img{
display:block;
border-radius:10px;
box-shadow:0 10px 18px rgba(0,0,0,0.35);
}
/* Shared “panel surface” */
.sv-skill-level,
.sv-scaling-row,
.sv-core-row,
.sv-tabs{
border-radius:12px;
border:1px solid rgba(255,255,255,0.085);
background:rgba(255,255,255,0.04);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}
/* ----------------------------------------------------------------------------
HEADER (ICON + TITLE + NOTES + DESCRIPTION)
---------------------------------------------------------------------------- */
.sv-skill-head{
display:grid;
grid-template-columns:92px 1fr;
gap:12px;
align-items:start;
padding:2px 0 10px;
}
.sv-skill-icon{
width:92px;
height:92px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.085);
background:rgba(255,255,255,0.04);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
overflow:hidden;
}
.sv-skill-headtext{min-width:0;}
.sv-skill-title-row{
display:flex;
align-items:center;
gap:10px;
min-width:0;
}
.sv-skill-title{
min-width:0;
font-weight:900;
font-size:20px;
line-height:1.05;
letter-spacing:0.2px;
color:rgba(245,250,255,0.98);
text-shadow:0 2px 0 rgba(0,0,0,0.35);
word-wrap:break-word;
}
.sv-skill-desc{
margin-top:8px;
max-width:none;
width:100%;
font-size:18px;
line-height:1.30;
color:rgba(182,198,224,0.98);
word-wrap:break-word;
}
/* ----------------------------------------------------------------------------
NOTES TIP + DISCLOSE POPOVERS
---------------------------------------------------------------------------- */
.sv-tip{position:relative;display:inline-block;}
.sv-tip > summary{cursor:pointer;}
.sv-tip-btn{
display:inline-block;
width:30px;
height:30px;
border-radius:999px;
background:rgba(255,255,255,0.10);
border:1px solid rgba(255,255,255,0.085);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
text-align:center;
line-height:30px;
cursor:pointer;
}
.sv-tip-btn:hover{background:rgba(255,255,255,0.13);}
.sv-ico,
.sv-ico--info{
font-weight:900;
font-size:12px;
line-height:1;
color:rgba(245,250,255,0.95);
}
.sv-tip-pop,
.sv-disclose-pop{
position:absolute;
z-index:200;
padding:10px 10px 8px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.085);
background:
radial-gradient(700px 260px at 40% 0, rgba(96,165,250,0.10), transparent 55%),
linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)),
linear-gradient(180deg, #0f172a, #0b1428);
box-shadow:0 16px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
width:380px;
max-width:92%;
}
.sv-tip-pop{top:40px;right:0;}
.sv-disclose-pop{top:46px;left:0;}
.sv-tip-pop:before,
.sv-disclose-pop:before{
content:"";
position:absolute;
top:-6px;
width:11px;
height:11px;
transform:rotate(45deg);
background:#0f172a;
border-left:1px solid rgba(255,255,255,0.085);
border-top:1px solid rgba(255,255,255,0.085);
}
.sv-tip-pop:before{right:14px;}
.sv-disclose-pop:before{left:20px;}
.sv-tip-pop-head,
.sv-disclose-pop-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
margin-bottom:6px;
}
.sv-tip-pop-title,
.sv-disclose-pop-title{
font-weight:900;
font-size:12px;
letter-spacing:0.10em;
text-transform:uppercase;
color:rgba(245,249,255,0.70);
}
.sv-tip-pop-hint,
.sv-disclose-pop-hint{
font-size:12px;
color:rgba(215,226,244,0.78);
}
.sv-tip-pop-body{
color:rgba(215,226,244,0.95);
font-size:12px;
line-height:1.35;
}
.sv-tip-pop-body ul{margin:8px 0 0;padding-left:18px;}
.sv-tip-pop-body li{margin:6px 0;}
/* ----------------------------------------------------------------------------
META (SEGMENTED STRIP)
---------------------------------------------------------------------------- */
.sv-skill-meta{
margin-top:10px;
display:grid;
grid-template-columns:repeat(4, 1fr);
gap:0;
border-top:1px solid rgba(255,255,255,0.085);
border-bottom:1px solid rgba(255,255,255,0.085);
}
.sv-meta-card{
min-height:52px;
display:grid;
grid-template-columns:40px 1fr;
align-items:center;
padding:5px 6px;
border-right:1px solid rgba(255,255,255,0.085);
}
.sv-meta-card:nth-child(4){border-right:none;}
.sv-meta-icon{
width:34px;
height:34px;
border-radius:10px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.085);
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
overflow:hidden;
}
.sv-meta-textwrap{
display:flex;
align-items:center;
justify-content:center;
min-width:0;
}
.sv-meta-text{
font-weight:700;
font-size:12px;
line-height:1.12;
letter-spacing:0.14px;
color:rgba(215,226,244,0.95);
text-align:center;
word-wrap:break-word;
}
.sv-meta-lines span{display:block;}
/* ----------------------------------------------------------------------------
REQUIREMENTS / USERS
---------------------------------------------------------------------------- */
.sv-reqrow{
margin:6px 0;
display:flex;
justify-content:center;
align-items:center;
gap:10px;
}
.sv-reqrow > *{flex:0 1 140px;max-width:140px;min-width:0;}
.sv-reqrow > *:only-child{flex:0 1 280px;max-width:280px;}
.sv-disclose{position:relative;}
.sv-disclose > summary{cursor:pointer;}
.sv-disclose > summary,
.sv-disclose-btn{
width:100%;
padding:6px 8px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.085);
background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
display:flex;
align-items:center;
justify-content:center;
gap:6px;
text-align:center;
color:rgba(215,226,244,0.95);
font-weight:800;
font-size:12px;
letter-spacing:0.2px;
}
.sv-disclose-count{
color:rgba(245,249,255,0.75);
font-weight:900;
font-size:12px;
}
.sv-disclose-list{
margin:0;
padding-left:18px;
color:rgba(215,226,244,0.95);
font-size:12px;
line-height:1.35;
}
.sv-disclose-list li{margin:6px 0;}
/* ----------------------------------------------------------------------------
LEVEL + SCALING + CORE
---------------------------------------------------------------------------- */
.sv-skill-level{
margin-top:10px;
padding:6px 10px 6px;
border-radius:12px 12px 0 0;
border-bottom:0;
}
.sv-skill-scaling{margin-top:0;}
.sv-skill-core{margin-top:0;}
.sv-scaling-row{border-radius:0;border-top:0;border-bottom:0;}
.sv-core-row{border-radius:0 0 12px 12px;border-top:0;}
.sv-level-ui{
width:100%;
display:flex;
flex-direction:column;
gap:4px;
align-items:center;
}
.sv-level-label{
width:100%;
text-align:center;
font-weight:800;
opacity:0.95;
font-size:14px;
white-space:nowrap;
}
.sv-level-label br{display:none;}
.sv-level-slider{
width:100%;
display:flex;
justify-content:center;
}
.sv-level-range--custom{
display:block;
position:relative;
width:100%;
max-width:560px;
margin:0 auto;
height:22px;
border-radius:999px;
border:0;
background:transparent;
cursor:pointer;
user-select:none;
}
/* keep slider click highlight off */
.sv-level-range--custom:focus{outline:none;}
.sv-level-track{
position:absolute;
left:0;
right:0;
top:50%;
margin-top:-5px;
height:10px;
border-radius:999px;
border:1px solid rgba(255,255,255,0.085);
background:
linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
repeating-linear-gradient(to right, transparent 0, transparent 10.8%, rgba(255,255,255,0.28) 10.8%, rgba(255,255,255,0.28) 11.11%);
overflow:hidden;
user-select:none;
}
.sv-level-fill{
display:block;
height:100%;
width:0%;
border-radius:999px;
background:linear-gradient(90deg, rgba(140,188,255,0.45), rgba(245,249,255,0.12));
user-select:none;
}
.sv-level-thumb{
position:absolute;
left:0%;
top:50%;
margin-top:-9px;
margin-left:-9px;
width:18px;
height:18px;
border-radius:999px;
background:rgba(255,255,255,0.92);
border:1px solid rgba(0,0,0,0.35);
box-shadow:0 6px 14px rgba(0,0,0,0.35);
user-select:none;
}
.sv-level-ticklabels{
display:flex;
justify-content:space-between;
margin-top:4px;
padding:0 2px;
width:100%;
max-width:560px;
margin-left:auto;
margin-right:auto;
font-size:12px;
color:rgba(245,249,255,0.70);
font-weight:800;
line-height:1.1;
user-select:none;
}
.sv-level-ticklabels span{min-width:1ch;text-align:center;}
/* ----------------------------------------------------------------------------
TABS (safety: panels visible unless [hidden])
---------------------------------------------------------------------------- */
.sv-skill-tabs{margin-top:10px;}
.sv-tabs{overflow:hidden;}
.sv-tabs-list{
display:grid;
grid-template-columns:repeat(4, 1fr);
gap:0;
border-bottom:1px solid rgba(255,255,255,0.085);
}
.sv-tab{
border:0;
margin:0;
padding:10px 8px;
background:transparent;
color:rgba(245,249,255,0.78);
font-weight:900;
font-size:12px;
letter-spacing:0.06em;
text-transform:uppercase;
cursor:pointer;
line-height:1.05;
min-width:0;
text-align:center;
white-space:nowrap;
overflow:hidden;
}
.sv-tab + .sv-tab{border-left:1px solid rgba(255,255,255,0.085);}
.sv-tab[aria-selected="true"]{
color:rgba(245,249,255,0.98);
background:
radial-gradient(600px 220px at 50% 0, rgba(96,165,250,0.14), transparent 60%),
linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}
.sv-tabs-panels{padding:10px 10px 12px;}
.sv-tabpanel{display:block;}
.sv-tabpanel[hidden]{display:none;}
.sv-tabpanel.sv-hidden{display:none;}
/* ----------------------------------------------------------------------------
KEYWORDS TAB (scoped pill to avoid Common.css collisions)
---------------------------------------------------------------------------- */
.sv-tab-pills{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:8px;
justify-content:center;
}
.sv-tab-pills .sv-pill{
display:flex;
align-items:center;
justify-content:center;
gap:8px;
padding:6px 8px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.085);
background:rgba(255,255,255,0.03);
color:rgba(245,249,255,0.98);
font-weight:900;
font-size:15px;
line-height:1.05;
text-align:center;
white-space:normal;
word-wrap:break-word;
}
/* ----------------------------------------------------------------------------
RESPONSIVE
---------------------------------------------------------------------------- */
@media (max-width:849px){
.sv-gi-card,
.sv-skill-card{margin:14px 10px;border-radius:20px;}
.sv-gi-top,
.sv-skill-top{padding:12px 12px 4px;border-radius:20px 20px 0 0;}
.sv-gi-bottom,
.sv-skill-bottom{padding:10px 12px 12px;border-radius:0 0 20px 20px;}
.sv-skill-head{grid-template-columns:84px 1fr;gap:12px;}
.sv-skill-icon{width:84px;height:84px;border-radius:12px;}
.sv-skill-desc{font-size:17px;}
.sv-skill-meta{grid-template-columns:repeat(2, 1fr);}
.sv-meta-card{border-right:1px solid rgba(255,255,255,0.085);border-bottom:1px solid rgba(255,255,255,0.085);}
.sv-meta-card:nth-child(2),
.sv-meta-card:nth-child(4){border-right:none;}
.sv-meta-card:nth-child(3),
.sv-meta-card:nth-child(4){border-bottom:none;}
.sv-tab{padding:8px 6px;}
.sv-tabs-panels{padding:9px 9px 10px;}
.sv-level-range--custom,
.sv-level-ticklabels{max-width:520px;}
}
@media (max-width:500px){
.sv-skill-card,
.sv-gi-card{
background-color:#1f2937 !important;
background-image:none !important;
border:1px solid #4b6388 !important;
box-shadow:0 16px 34px rgba(0,0,0,0.70) !important;
color:#f5f9ff !important;
}
.sv-skill-level,
.sv-scaling-row,
.sv-core-row,
.sv-tabs,
.sv-tab-pills .sv-pill,
.sv-disclose > summary,
.sv-disclose-btn,
.sv-meta-card,
.sv-meta-icon{
background:#273449 !important;
border:1px solid #4b6388 !important;
box-shadow:none !important;
}
.sv-tabs-list,
.sv-tab + .sv-tab,
.sv-meta-card{border-color:#4b6388 !important;}
.sv-tab{background:#2e3f59 !important;color:#f5f9ff !important;}
.sv-tab[aria-selected="true"]{background:#364a69 !important;color:#ffffff !important;box-shadow:none !important;}
.sv-level-track{border:1px solid #5f7fb4 !important;background:#364a69 !important;}
.sv-level-fill{background:#8cbcff !important;}
.sv-level-thumb{background:#ffffff !important;border:1px solid #0a0f18 !important;box-shadow:none !important;}
.sv-level-ticklabels{color:#f5f9ff !important;}
.sv-skill-head{grid-template-columns:68px 1fr;gap:10px;}
.sv-skill-icon{width:68px;height:68px;border-radius:12px;}
.sv-skill-title{font-size:18px;}
.sv-skill-desc{font-size:15px;line-height:1.28;}
.sv-tabs-list{grid-template-columns:repeat(2, 1fr);}
.sv-tab:nth-child(n+3){border-top:1px solid #4b6388 !important;}
.sv-tab-pills{grid-template-columns:repeat(2, 1fr);}
.sv-tab-pills .sv-pill{font-size:14px;}
.sv-level-range--custom,
.sv-level-ticklabels{max-width:100%;}
}