/* Shinkiverse: the Holodeck tab + intro, and the Viewer page (hero, equipment, stats, mail).
   Hand-written on purpose: Tailwind on this site is pre-built, so nothing here needs a CSS rebuild. */

:root {
    --sv-aqua: #00f5ff;
    --sv-lime: #00ff88;
    --sv-fuchsia: #ff00ff;
    --sv-purple: #8b5cf6;
    --sv-ink: #0a0a0f;
    --sv-panel: rgba(18, 18, 26, .74);
    --sv-line: rgba(139, 92, 246, .28);
    --sv-text: #e9e6ff;
    --sv-dim: #9a8fb8;
    --sv-gold: #ffd84a;
    /* primary stat gradients, the same stops as tLoM: the Mailblazers (stat_style.gd) */
    --str-a: #ff3b4e; --str-b: #ffd93b;
    --agi-a: #3bf5ff; --agi-b: #19c49a;
    --sta-a: #ffe03b; --sta-b: #9dff3b;
}

/* ---------- shared bits ---------- */
.sv-intro [hidden], .sv-page [hidden] { display: none !important; }
.sv-logo { font-family: 'Orbitron', sans-serif; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
    background: linear-gradient(90deg, var(--sv-aqua), var(--sv-purple) 55%, var(--sv-fuchsia)); -webkit-background-clip: text;
    background-clip: text; color: transparent; padding-left: .3em; /* letter-spacing trails: keep it centred */ }
.sv-kana { display: block; font-size: .78em; letter-spacing: .55em; color: rgba(205, 195, 255, .78); padding-left: .55em; font-weight: 500; }

.stat-grad { display: inline-block; background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 700; }
.stat-grad--str { background-image: linear-gradient(90deg, var(--str-a), var(--str-b)); }
.stat-grad--agi { background-image: linear-gradient(90deg, var(--agi-a), var(--agi-b)); }
.stat-grad--sta { background-image: linear-gradient(90deg, var(--sta-a), var(--sta-b)); }

.sv-orb { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 50%; vertical-align: middle; flex: none;
    box-shadow: 0 0 .5em var(--orb-glow), inset -.12em -.16em .3em rgba(0, 0, 0, .45); }
.sv-orb--str { --orb-glow: rgba(255, 59, 78, .65); background: radial-gradient(circle at 32% 30%, #fff 0 9%, var(--str-b) 24%, var(--str-a) 64%, #6a0d24 100%); }
.sv-orb--agi { --orb-glow: rgba(59, 245, 255, .6); background: radial-gradient(circle at 32% 30%, #fff 0 9%, var(--agi-a) 24%, var(--agi-b) 66%, #0a4a52 100%); }
.sv-orb--sta { --orb-glow: rgba(157, 255, 59, .55); background: radial-gradient(circle at 32% 30%, #fff 0 9%, var(--sta-a) 24%, var(--sta-b) 64%, #2f5a0a 100%); }

.sv-btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; padding: .6rem 1.1rem; color: var(--sv-text);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); transition: background .15s, border-color .15s, transform .15s; }
.sv-btn:hover:not(:disabled) { background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .6); }
.sv-btn:focus-visible, .sv-slot:focus-visible, .sv-class:focus-visible, .sv-item:focus-visible, .sv-role:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 2px; }
.sv-btn:disabled { opacity: .45; cursor: not-allowed; }
.sv-btn--go { color: #06121a; background: linear-gradient(90deg, var(--sv-aqua), var(--sv-lime)); border-color: transparent; }
.sv-btn--go:hover:not(:disabled) { background: linear-gradient(90deg, #5ff8ff, #5cffb0); border-color: transparent; }
.sv-btn--small { padding: .35rem .7rem; font-size: .85rem; }

/* ---------- Holodeck tab button: sits alone on the second row ---------- */
#panel-tab-shinki-btn { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .1rem; line-height: 1.25; }
#panel-tab-shinki-btn .sv-logo { font-size: 1.02rem; filter: saturate(.75) brightness(.9); transition: filter .2s; }
#panel-tab-shinki-btn .sv-kana { font-size: .74rem; }
#panel-tab-shinki-btn:hover { border-color: rgba(139, 92, 246, .5); }
#panel-tab-shinki-btn:hover .sv-logo, #panel-tab-shinki-btn.shinki-tab-active .sv-logo { filter: none; }
#panel-tab-shinki-btn.shinki-tab-active { background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 22px rgba(139, 92, 246, .18) inset; }

/* ---------- Holodeck panel: intro + Streamer / Viewer choice ---------- */
.sv-intro { text-align: center; padding: 2.2rem 1.25rem 2rem; }
.sv-intro__title { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.2; }
.sv-intro__title .sv-kana { font-size: .42em; margin-top: .35rem; }
.sv-intro__text { max-width: 44rem; margin: 1.6rem auto 0; color: #d6d2ee; font-size: 1.06rem; line-height: 1.7; }
.sv-intro__text p { margin: 0 0 1.15rem; }
.sv-intro__text b { color: #fff; }
.sv-intro__ask { margin: 1.8rem 0 1rem; color: var(--sv-dim); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.sv-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); gap: 1rem; justify-content: center; }
.sv-role { font: inherit; cursor: pointer; text-align: left; color: var(--sv-text); border-radius: 14px; padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .14); transition: transform .15s, border-color .15s, box-shadow .15s; }
.sv-role:hover:not(:disabled) { transform: translateY(-2px); }
.sv-role:disabled { opacity: .6; cursor: wait; }
.sv-role__name { display: block; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; }
.sv-role__what { display: block; margin-top: .35rem; color: var(--sv-dim); font-size: .92rem; line-height: 1.45; }
.sv-role__last { display: inline-block; margin-top: .6rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sv-gold); }
.sv-role--streamer .sv-role__name { color: var(--sv-fuchsia); }
.sv-role--streamer:hover:not(:disabled) { border-color: rgba(255, 0, 255, .6); box-shadow: 0 0 24px rgba(255, 0, 255, .16); }
.sv-role--viewer .sv-role__name { color: var(--sv-aqua); }
.sv-role--viewer:hover:not(:disabled) { border-color: rgba(0, 245, 255, .6); box-shadow: 0 0 24px rgba(0, 245, 255, .16); }
.sv-intro__more { margin-top: 1.3rem; }
.sv-intro__more button { font: inherit; background: none; border: 0; color: var(--sv-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sv-intro__more button:hover { color: var(--sv-text); }
.sv-intro__status { min-height: 1.4em; margin-top: 1rem; color: #ff9fb0; }
@media (max-width: 560px) { .sv-roles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Viewer page ---------- */
.sv-page { margin: 0; min-height: 100vh; color: var(--sv-text); font-family: 'Exo 2', system-ui, sans-serif; background-color: var(--sv-ink);
    background-image: radial-gradient(1200px 600px at 15% -10%, rgba(30, 64, 175, .28), transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(139, 92, 246, .22), transparent 60%),
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, .4) 50%, transparent 51%),
        radial-gradient(1px 1px at 45% 85%, rgba(255, 255, 255, .35) 50%, transparent 51%);
    background-size: auto, auto, 340px 340px, 270px 270px, 410px 410px; background-attachment: fixed; }
.sv-page *, .sv-page *::before, .sv-page *::after { box-sizing: border-box; }
.sv-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(.8rem, 3vw, 2rem);
    background: rgba(12, 12, 20, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 245, 255, .16); }
.sv-top a { color: #cfc9ee; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.sv-top a:hover { color: var(--sv-aqua); }
.sv-top__brand { flex: 1; text-align: center; font-size: 1.05rem; line-height: 1.15; min-width: 0; }
.sv-top__brand .sv-kana { font-size: .62em; }
.sv-wrap { max-width: 78rem; margin: 0 auto; padding: 1.4rem clamp(.8rem, 3vw, 2rem) 4rem; }
.sv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.1rem; }
.sv-head h1 { margin: 0; font-family: 'Orbitron', sans-serif; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; }
.sv-head p { margin: 0; color: var(--sv-dim); }
.sv-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.sv-col { display: grid; gap: 1rem; min-width: 0; }
.sv-card { background: var(--sv-panel); border: 1px solid var(--sv-line); border-radius: 16px; padding: 1.1rem 1.2rem; backdrop-filter: blur(8px); min-width: 0; }
.sv-card h2 { margin: 0 0 .8rem; font-family: 'Orbitron', sans-serif; font-size: 1.02rem; letter-spacing: .08em; color: #f3f0ff;
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sv-card h2 small { font-family: 'Exo 2', sans-serif; font-weight: 400; letter-spacing: 0; color: var(--sv-dim); font-size: .84rem; }
.sv-card h2 .sv-btn { margin-left: auto; }
.sv-note { color: var(--sv-dim); font-size: .9rem; line-height: 1.5; margin: .6rem 0 0; }
.sv-note a { color: var(--sv-aqua); }
.sv-pill { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; border: 1px solid currentColor; }
.sv-pill--ok { color: var(--sv-lime); }
.sv-pill--warn { color: var(--sv-gold); }

/* hero + paper doll */
.sv-doll { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem .8rem; align-items: start; }
.sv-doll__col { display: grid; gap: .5rem; }
.sv-doll__mid { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.sv-stage { width: 300px; max-width: 100%; aspect-ratio: 150 / 160; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
    background: radial-gradient(60% 22% at 50% 88%, rgba(0, 245, 255, .22), transparent 70%), linear-gradient(180deg, rgba(20, 16, 44, .9), rgba(10, 10, 18, .9));
    image-rendering: pixelated; }
.sv-anims { display: flex; gap: .4rem; }
.sv-doll__hands { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; }
.sv-slot { font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: .6rem; width: 100%; min-width: 0; text-align: left;
    padding: .35rem .5rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, background .15s; }
.sv-slot:hover:not(:disabled) { border-color: rgba(0, 245, 255, .55); background: rgba(0, 245, 255, .06); }
.sv-slot:disabled { cursor: not-allowed; opacity: .5; }
/* new gear waits in this slot's inventory: a slow pulse until the player opens it */
.sv-slot--new { animation: sv-newgear 2.6s ease-in-out infinite; }
@keyframes sv-newgear {
  0%, 100% { border-color: rgba(255, 216, 74, .35); box-shadow: 0 0 0 0 rgba(255, 216, 74, 0); }
  50% { border-color: rgba(255, 216, 74, .95); box-shadow: 0 0 14px 2px rgba(255, 216, 74, .35); background-color: rgba(255, 216, 74, .07); }
}
.sv-new { margin-left: .5rem; padding: .05rem .35rem; border-radius: 999px; background: #ffd84a; color: #1a1406; font-size: .66rem; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .sv-slot--new { animation: none; border-color: rgba(255, 216, 74, .9); } }
.sv-slot__icon, .sv-item__icon { flex: none; width: 48px; height: 48px; border-radius: 8px; background-color: rgba(8, 6, 20, .7); border: 1px solid rgba(255, 255, 255, .08); }
.sv-slot__icon--empty { display: grid; place-items: center; color: rgba(255, 255, 255, .22); font-size: 1.3rem; }
.sv-slot__text { min-width: 0; }
.sv-slot__label { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-dim); }
.sv-slot__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: .9rem; line-height: 1.2; }
.sv-slot__name--empty { color: rgba(255, 255, 255, .35); }
.sv-bonus { font-size: .78rem; white-space: nowrap; }
.sv-bonus + .sv-bonus { margin-left: .45rem; }

/* class picker */
.sv-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sv-class { font: inherit; color: inherit; cursor: pointer; text-align: left; padding: .7rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, background .15s; }
.sv-class:hover:not(:disabled) { border-color: rgba(139, 92, 246, .65); }
.sv-class[aria-pressed="true"] { border-color: var(--sv-lime); background: rgba(0, 255, 136, .07); }
.sv-class__name { display: block; font-weight: 700; }
.sv-class__role { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sv-dim); }
.sv-class__blurb { display: block; margin-top: .3rem; font-size: .84rem; color: #c9c3e6; line-height: 1.4; }
.sv-class__base { display: block; margin-top: .4rem; font-size: .78rem; }
.sv-class__base span + span { margin-left: .6rem; }
.sv-setrow { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }

/* stats */
.sv-world { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.sv-world select { font: inherit; color: var(--sv-text); background: rgba(8, 6, 20, .8); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: .35rem .5rem; max-width: 100%; }
.sv-level { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sv-level b { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; }
.sv-power { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; color: var(--sv-gold); }
.sv-stats { display: grid; gap: .55rem; margin-top: .9rem; }
.sv-stat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .1rem .7rem; padding: .55rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.sv-stat .sv-orb { grid-row: span 2; font-size: 1.25rem; }
.sv-stat__name { font-size: 1.12rem; }
.sv-stat__value { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; text-align: right; }
.sv-stat__does, .sv-stat__why { font-size: .8rem; color: var(--sv-dim); }
.sv-stat__why { text-align: right; }
.sv-derived { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; margin: .9rem 0 0; font-size: .9rem; }
.sv-derived div { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px dashed rgba(255, 255, 255, .08); padding: .2rem 0; }
.sv-derived dt { color: var(--sv-dim); }
.sv-derived dd { margin: 0; font-weight: 600; }

/* mail */
.sv-mails { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sv-mail { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 216, 74, .28); }
.sv-mail--opened { border-color: rgba(255, 255, 255, .07); opacity: .78; }
.sv-mail__seal { flex: none; width: 34px; height: 26px; border-radius: 4px; position: relative; background: linear-gradient(160deg, #3b2a6e, #1c1340); border: 1px solid rgba(255, 216, 74, .6); }
.sv-mail__seal::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49%, rgba(255, 216, 74, .6) 50%, transparent 52%), linear-gradient(to bottom left, transparent 49%, rgba(255, 216, 74, .6) 50%, transparent 52%); background-size: 100% 62%; background-repeat: no-repeat; }
.sv-mail--opened .sv-mail__seal { border-color: rgba(255, 255, 255, .2); filter: grayscale(1); }
.sv-mail__text { flex: 1; min-width: 0; }
.sv-mail__title { display: block; font-weight: 600; }
.sv-mail__body { display: block; font-size: .84rem; color: var(--sv-dim); }
.sv-mail__got { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-top: .25rem; font-size: .84rem; }
.sv-empty { color: var(--sv-dim); padding: .4rem 0; }
.sv-sub { margin: 1rem 0 .5rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-dim); }

/* worlds */
.sv-worlds { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sv-worlds th { text-align: left; font-weight: 500; color: var(--sv-dim); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .5rem; }
.sv-worlds td { padding: .45rem .5rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.sv-worlds .num { text-align: right; font-variant-numeric: tabular-nums; }
.sv-tablewrap { overflow-x: auto; }

/* item picker + reward popup */
.sv-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(4, 3, 12, .72); backdrop-filter: blur(3px); }
.sv-modal[hidden] { display: none; }
.sv-modal__box { width: min(34rem, 100%); max-height: min(86vh, 44rem); overflow: auto; background: #14121f; border: 1px solid rgba(139, 92, 246, .5); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.sv-modal__box h3 { margin: 0 0 .2rem; font-family: 'Orbitron', sans-serif; font-size: 1.05rem; letter-spacing: .06em; }
.sv-modal__box > p { margin: 0 0 .8rem; color: var(--sv-dim); font-size: .9rem; }
.sv-items { display: grid; gap: .45rem; }
.sv-item { font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: .7rem; text-align: left; width: 100%; padding: .4rem .5rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); }
.sv-item:hover:not(:disabled) { border-color: rgba(0, 245, 255, .55); }
.sv-item[aria-current="true"] { border-color: var(--sv-lime); background: rgba(0, 255, 136, .07); }
.sv-item__name { display: block; font-weight: 600; }
/* one copy in a slot's inventory: the piece itself (click = equip), its padlock, its scrap button */
.sv-itemrow { display: flex; align-items: stretch; gap: .35rem; }
.sv-itemrow .sv-item { flex: 1; min-width: 0; }
.sv-mini { font: inherit; color: var(--sv-dim); cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 2.6rem; padding: 0 .55rem;
    border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; font-variant-numeric: tabular-nums; }
.sv-mini:hover:not(:disabled) { border-color: rgba(0, 245, 255, .55); color: #f3f0ff; }
.sv-mini:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 2px; }
.sv-mini:disabled { opacity: .4; cursor: not-allowed; }
.sv-mini--on { border-color: #ffd23a; color: #ffd23a; background: rgba(255, 210, 58, .08); }
.sv-mini--scrap:hover:not(:disabled) { border-color: #ff8a5c; color: #ffb38f; }
/* a padlock drawn in CSS: body + shackle (open when not locked) */
.sv-lock { position: relative; display: inline-block; width: .8rem; height: .62rem; margin-top: .42rem; border-radius: 2px; background: currentColor; }
.sv-lock::before { content: ''; position: absolute; left: .14rem; bottom: 100%; width: .52rem; height: .46rem; box-sizing: border-box; border: 2px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0;
    transform-origin: 100% 100%; transform: rotate(32deg) translateY(-1px); }
.sv-lock--on::before { transform: none; }
.sv-dust { display: inline-block; width: .72em; height: .72em; flex: none; margin: 0 .3em 0 .1em; vertical-align: baseline; transform: rotate(45deg) skew(8deg, 8deg); border-radius: 1px;
    background: linear-gradient(135deg, #f6e8ff, #b06bff 45%, #3bf5ff); box-shadow: 0 0 6px rgba(176, 107, 255, .7); }
.sv-ilvl { color: #ffb347; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sv-tip__ilvl { display: block; color: #ffb347; font-size: .82rem; }
/* a piece's Inner Supernova: gold */
.sv-up { color: #ffd84a; font-weight: 800; text-shadow: 0 0 8px rgba(255, 216, 74, .45); }
.sv-mini--up { color: #ffd84a; border-color: rgba(255, 216, 74, .35); font-variant-numeric: tabular-nums; flex-direction: column; gap: .1rem; min-width: 4.4rem; padding: .2rem .45rem; }
.sv-mini--up:hover:not(:disabled) { border-color: #ffd84a; color: #fff3b8; background: rgba(255, 216, 74, .1); }
.sv-upmark { font-size: .95em; line-height: 1; }
.sv-upcost { display: inline-flex; align-items: center; gap: .2rem; font-size: .78em; line-height: 1; }
.sv-upcost .sv-dust, .sv-upcost .sv-ess { margin: 0; }
.sv-upcost .sv-ess { margin-left: .3rem; }
.sv-tip__nova { display: block; font-size: .82rem; color: #d9cfa0; }
/* Godix Essence: a four-pointed star in the Godix colours */
.sv-ess { display: inline-block; width: .85em; height: .85em; flex: none; margin: 0 .3em 0 .1em; vertical-align: -.08em;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); background: linear-gradient(135deg, #fff 0 10%, #d966ff 40%, #3d4dff); }
/* Ascend: the upgrade button of a piece whose Inner Supernova is full */
.sv-asctext { font-weight: 900; letter-spacing: .02em; background-image: linear-gradient(90deg, #ffd84a, #ff7ad9, #7b6bff, #3bf5ff, #ffd84a); background-size: 200% 100%;
    background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sv-q-flow 2.4s linear infinite; }
.sv-mini--asc { min-width: 4.4rem; border-color: rgba(217, 102, 255, .6); background: linear-gradient(135deg, rgba(61, 77, 255, .14), rgba(255, 122, 217, .1)); box-shadow: 0 0 10px -3px rgba(217, 102, 255, .8); }
.sv-mini--asc:hover:not(:disabled) { border-color: #ff7ad9; background: linear-gradient(135deg, rgba(61, 77, 255, .24), rgba(255, 122, 217, .2)); }
/* an Ascended piece: sparkles of its quality colour rise from the foot of its icon */
.sv-asc { position: relative; }
.sv-spark { position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; pointer-events: none; opacity: 0; background: #fff;
    box-shadow: 0 0 5px 2px var(--qa, #fff); animation: sv-spark 2.6s linear infinite; }
.sv-spark:nth-child(even) { box-shadow: 0 0 5px 2px var(--qb, var(--qa, #fff)); }
.sv-spark:nth-child(1) { left: 12%; animation-delay: -.2s; }
.sv-spark:nth-child(2) { left: 34%; animation-delay: -1.5s; animation-duration: 3.1s; }
.sv-spark:nth-child(3) { left: 55%; animation-delay: -.9s; animation-duration: 2.2s; }
.sv-spark:nth-child(4) { left: 74%; animation-delay: -2.1s; animation-duration: 2.9s; }
.sv-spark:nth-child(5) { left: 88%; animation-delay: -1.2s; animation-duration: 2.4s; }
@keyframes sv-spark {
    0% { transform: translate(0, 0) scale(.5); opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: .9; }
    100% { transform: translate(3px, -46px) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-asctext { animation: none; }
    .sv-spark { animation: none; opacity: .85; bottom: auto; top: 20%; }
    .sv-spark:nth-child(even) { top: 62%; }
}
.sv-foot__left { margin-right: auto; }
.sv-as { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0 0 .6rem; }
.sv-check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; cursor: pointer; }
.sv-check input, .sv-chip input { accent-color: #00f5ff; width: 1rem; height: 1rem; margin: 0; }
.sv-as__q { display: inline-flex; align-items: center; gap: .45rem; color: var(--sv-dim); font-size: .9rem; }
.sv-as__q select { font: inherit; color: #f3f0ff; background: rgba(8, 6, 20, .8); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: .25rem .5rem; }
.sv-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.sv-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; cursor: pointer; }
.sv-chip:has(input:checked) { border-color: rgba(0, 245, 255, .55); background: rgba(0, 245, 255, .07); }
.sv-cores .sv-dust + b, .sv-cores b { font-variant-numeric: tabular-nums; }
.sv-item__meta { display: block; font-size: .8rem; color: var(--sv-dim); }
.sv-modal__foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .9rem; }
/* the page's own "are you sure?": it may open on top of the item picker */
.sv-modal--top { z-index: 66; }
.sv-ask { width: min(26rem, 100%); border-color: rgba(255, 122, 217, .55); animation: sv-pop .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.sv-ask__lines { display: grid; gap: .55rem; margin: .7rem 0 .2rem; font-size: 1rem; }
.sv-ask__lines > div > span { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sv-ask__item { gap: .7rem !important; flex-wrap: nowrap !important; }
.sv-ask__item > span:last-child { display: grid; font-weight: 700; }
.sv-ask__item small { color: var(--sv-dim); font-weight: 400; font-size: .82rem; }
.sv-ask__warn { color: #ff7ad9; font-size: .9rem; line-height: 1.4; }
.sv-modal__box > p.sv-ask__note { margin: .7rem 0 0; }
.sv-btn--danger { color: #fff; background: linear-gradient(90deg, #d42a4c, #ff6a3d); border-color: transparent; }
.sv-btn--danger:hover:not(:disabled) { background: linear-gradient(90deg, #ee3a5e, #ff8457); border-color: transparent; }
.c-super { color: #ff7ad9; font-weight: 700; }
.sv-tip__super { color: #ff7ad9; font-size: .82rem; }
.sv-tip__fx--unique { color: #ffd0f1; }
.sv-tip__fx--unique b { color: #ff7ad9; }
@media (prefers-reduced-motion: reduce) { .sv-ask { animation: none; } }
.sv-loot { display: grid; gap: .6rem; margin: .8rem 0 .2rem; font-size: 1.05rem; }
.sv-loot div { display: flex; align-items: center; gap: .7rem; }
.sv-loot .sv-orb { font-size: 1.5rem; animation: sv-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes sv-pop { from { transform: scale(0); } to { transform: scale(1); } }

.sv-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 70; max-width: min(92vw, 36rem); padding: .7rem 1rem; border-radius: 12px;
    background: #1b1830; border: 1px solid rgba(139, 92, 246, .6); color: var(--sv-text); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.sv-toast[hidden] { display: none; }
.sv-toast--bad { border-color: #ff5a6e; }
.sv-loading { text-align: center; color: var(--sv-dim); padding: 4rem 1rem; }

@media (max-width: 960px) { .sv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
    .sv-doll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-doll__mid { grid-column: 1 / -1; grid-row: 1; }
    .sv-classes { grid-template-columns: minmax(0, 1fr); }
    .sv-top__brand { font-size: .82rem; }
    .sv-top__brand .sv-logo { letter-spacing: .14em; padding-left: .14em; }
    .sv-top__brand .sv-kana, .sv-wide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sv-loot .sv-orb { animation: none; } .sv-role:hover:not(:disabled) { transform: none; } }

/* head picture + inventory (viewer page) */
.sv-faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; }
.sv-face { font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: .65rem; text-align: left; min-width: 0; padding: .45rem .55rem; border-radius: 10px;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, background .15s; }
.sv-face:hover:not(:disabled) { border-color: rgba(0, 245, 255, .55); }
.sv-face:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 2px; }
.sv-face[aria-pressed="true"] { border-color: var(--sv-lime); background: rgba(0, 255, 136, .07); }
.sv-face:disabled { cursor: not-allowed; opacity: .5; }
.sv-face__pic { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: rgba(8, 6, 20, .7); border: 1px solid rgba(255, 255, 255, .08); }
.sv-face__name { display: block; font-weight: 600; }
.sv-face__sub { display: block; font-size: .8rem; color: var(--sv-dim); }
.sv-inv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .7rem; padding: .45rem .6rem; border-radius: 10px;
    background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .14); font-size: .9rem; color: var(--sv-dim); }
.sv-inv b { color: #f3f0ff; }
.sv-inv__text { display: grid; gap: .15rem; }
/* Stellar Liquid: the same ramp the rest of the site writes it in (styles.css .text-stellar-gradient) */
.sv-sl { display: inline-block; font-weight: 700; color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, #00f5ff 0%, #facc15 50%, #ff00ff 100%);
    -webkit-background-clip: text; background-clip: text; }
.sv-btn .sv-sl { filter: brightness(1.15); }

/* the "?" beside a heading, and the explanation it opens */
.sv-help { font: inherit; font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .85rem; line-height: 1; cursor: pointer; width: 1.6rem; height: 1.6rem; border-radius: 50%; padding: 0; flex: none;
    color: var(--sv-aqua); background: rgba(0, 245, 255, .08); border: 1px solid rgba(0, 245, 255, .5); transition: background .15s; }
.sv-help:hover { background: rgba(0, 245, 255, .22); }
.sv-help:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 2px; }
.sv-modal__box--wide { width: min(40rem, 100%); }
.sv-help__body { display: grid; gap: .7rem; margin-top: .7rem; }
.sv-help__part { border-radius: 12px; padding: .7rem .85rem; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--part, var(--sv-purple)); }
.sv-help__part h4 { margin: 0 0 .15rem; font-family: 'Orbitron', sans-serif; font-size: .88rem; letter-spacing: .08em; color: var(--part, var(--sv-purple)); }
.sv-help__part > p { margin: 0 0 .4rem; color: var(--sv-dim); font-size: .88rem; }
.sv-help__part ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .32rem; font-size: .92rem; line-height: 1.45; color: #d9d4f2; }
.sv-help__part li { padding-left: 1rem; position: relative; }
.sv-help__part li::before { content: ''; position: absolute; left: .15rem; top: .62em; width: .32rem; height: .32rem; border-radius: 50%; background: var(--part, var(--sv-purple)); }
.sv-help__part li.sv-help__sub { margin-left: 1.1rem; font-size: .88rem; color: #b9b2d8; }
.sv-help__part li.sv-help__sub::before { background: none; border: 1px solid var(--part, var(--sv-purple)); }
.sv-help__part b { color: #fff; }
.c-num { color: var(--sv-gold); font-weight: 700; }
.c-foe { color: #ff6b7a; font-weight: 700; }
.c-vx { color: #c58bff; font-weight: 700; }
.c-core { color: #5cf2c8; font-weight: 700; }

/* Shaper's Core: pays for a class change */
.sv-cores { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; margin: 0 0 .7rem; padding: .45rem .6rem; border-radius: 10px; font-size: .9rem; color: var(--sv-dim);
    background: rgba(92, 242, 200, .05); border: 1px dashed rgba(92, 242, 200, .35); }
.sv-cores b { color: #5cf2c8; font-size: 1.05rem; }
.sv-core { display: inline-block; width: .8em; height: .8em; flex: none; transform: rotate(45deg); border-radius: 2px; vertical-align: middle; margin: 0 .25em;
    background: linear-gradient(135deg, #fff 0 12%, #5cf2c8 40%, #1b8f9c 100%); box-shadow: 0 0 8px rgba(92, 242, 200, .6); }

/* gear stats: a tooltip while the mouse is over an item */
.sv-tip { position: fixed; z-index: 80; pointer-events: none; display: grid; gap: .2rem; min-width: 9rem; max-width: 16rem; padding: .5rem .7rem; border-radius: 10px;
    background: #100e1c; border: 1px solid rgba(139, 92, 246, .6); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); font-size: .88rem; }
.sv-tip[hidden] { display: none; }
.sv-tip__name { font-weight: 700; color: #f3f0ff; margin-bottom: .1rem; }
.sv-tip__stat { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.sv-tip__none { color: var(--sv-dim); }

/* ---- item quality: one colour, or a gradient that keeps moving (catalog.json "qualities"; --qa / --qb are set inline) ---- */
.sv-q { color: var(--qa, #fff); font-weight: 700; }
.sv-q--grad { background-image: linear-gradient(90deg, var(--qa), var(--qb), var(--qa)); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent; animation: sv-q-flow 2.6s linear infinite; }
.sv-qframe { border-color: var(--qa, rgba(255, 255, 255, .08)); box-shadow: inset 0 0 6px -2px var(--qa, transparent); }
.sv-qframe--grad { animation: sv-q-frame 2.6s linear infinite; }
@keyframes sv-q-flow { to { background-position: -200% 0; } }
@keyframes sv-q-frame { 0%, 100% { border-color: var(--qa); box-shadow: inset 0 0 6px -2px var(--qa); } 50% { border-color: var(--qb); box-shadow: inset 0 0 6px -2px var(--qb); } }
@media (prefers-reduced-motion: reduce) { .sv-q--grad, .sv-qframe--grad { animation: none; } }
.sv-qlist { display: flex; flex-wrap: wrap; gap: .15rem .7rem; }
.sv-qlist small { color: var(--sv-dim); font-size: .8em; }

/* ---- the item tooltip: quality, bonus slots, passives, set ---- */
.sv-tip { max-width: 19rem; }
.sv-tip__kind { font-size: .8rem; color: var(--sv-dim); margin-bottom: .15rem; }
.sv-tip__plus { width: 14px; text-align: center; color: #c9c3ea; font-size: .7rem; }
.sv-tip__fx { color: #ffe9a8; line-height: 1.35; }
.sv-tip__fx b { color: #ffd84a; }
.sv-tip__set { margin-top: .3rem; padding-top: .35rem; border-top: 1px solid rgba(255, 255, 255, .1); color: #d9d4f2; }
.sv-tip__bonus { color: var(--sv-dim); line-height: 1.35; }
.sv-tip__bonus--on { color: #7dffb0; }
.sv-tip__bonus--on b { color: var(--sv-lime); }

/* ---- "From your gear" under the stats ---- */
.sv-gearfx { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .9rem; line-height: 1.4; color: #d9d4f2; }
.sv-gearfx--on b { color: var(--sv-lime); }
.sv-gearfx--off { color: var(--sv-dim); }

a.sv-btn { display: inline-block; text-decoration: none; }

/* ---- the Cosmetic slot: fashion only ---- */
.sv-slot--cosmetic { border-style: dashed; }
.sv-cosmetic { color: #d9b8ff; }

/* ---- the Inner Supernova mark (assets/shinkiverse/ui/supernova.png: 4 frames of 32 px, painted by the art tools) ---- */
.sv-nova { --s: 32px; display: inline-block; flex: none; width: var(--s); height: var(--s); image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/supernova.png") 0 0 / calc(var(--s) * 4) var(--s) no-repeat; animation: sv-nova .64s steps(4) infinite; }
.sv-nova--big { --s: 64px; }
@keyframes sv-nova { to { background-position-x: calc(var(--s) * -4); } }

/* ---- pixel-art interface pieces: hard corners, stepped edges, a shadow you can press down ---- */
.sv-doll__forge { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: .2rem; }
.sv-forgebtn, .sv-pxbtn { font: inherit; cursor: pointer; border: 0; border-radius: 0; color: #2a1404; background: #ffd23a;
    box-shadow: inset 0 2px 0 #fff4b0, inset 0 -3px 0 #c08410, 0 0 0 2px #3a1c04, 0 4px 0 2px #3a1c04; transition: transform .06s, box-shadow .06s, filter .12s; }
.sv-forgebtn { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem 1.4rem .35rem 1rem; font-family: 'Orbitron', sans-serif; font-weight: 800;
    font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; }
.sv-forgebtn:hover, .sv-pxbtn:hover:not(:disabled) { filter: brightness(1.1); }
.sv-forgebtn:active, .sv-pxbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px 0 #fff4b0, inset 0 -3px 0 #c08410, 0 0 0 2px #3a1c04, 0 1px 0 2px #3a1c04; }
.sv-forgebtn:focus-visible, .sv-pxbtn:focus-visible, .sv-forge__info:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 4px; }
.sv-pxbtn { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 5.4rem; padding: .35rem .6rem .45rem;
    font-weight: 800; font-variant-numeric: tabular-nums; }
.sv-pxbtn__top { font-size: .95rem; line-height: 1; }
.sv-pxbtn .sv-upcost { font-size: .8rem; }
.sv-pxbtn:disabled { cursor: not-allowed; color: #6d6788; background: #2a2640; box-shadow: inset 0 2px 0 #3a3558, inset 0 -3px 0 #1c192c, 0 0 0 2px #0c0a16, 0 4px 0 2px #0c0a16; }
.sv-pxbtn--asc { background: #2a1c5c; box-shadow: inset 0 2px 0 #6a58d0, inset 0 -3px 0 #160d38, 0 0 0 2px #ff7ad9, 0 4px 0 2px #5a1c66; color: #f3f0ff; }
.sv-pxbtn--asc:active:not(:disabled) { box-shadow: inset 0 2px 0 #6a58d0, inset 0 -3px 0 #160d38, 0 0 0 2px #ff7ad9, 0 1px 0 2px #5a1c66; }

.sv-modal__box.sv-forge { width: min(38rem, 100%); display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 0; padding: 1rem 1.1rem 1.1rem;
    background: #110d1c; box-shadow: 0 0 0 2px #3a1c04, 0 0 0 4px #c08410, 0 0 0 6px #3a1c04, 0 0 60px 6px rgba(255, 170, 40, .16), 0 20px 80px rgba(0, 0, 0, .7); }
.sv-forge__head { display: flex; align-items: center; gap: .9rem; padding-bottom: .7rem; border-bottom: 2px solid #3a2a12; }
.sv-forge__head h3 { color: #ffd23a; letter-spacing: .14em; text-transform: uppercase; text-shadow: 2px 2px 0 #3a1c04; }
.sv-forge__head p { margin: .2rem 0 0; color: var(--sv-dim); font-size: .88rem; line-height: 1.35; }
.sv-forge__purse { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: .7rem 0; padding: .4rem .6rem; background: #0a0812; box-shadow: inset 0 0 0 2px #2a2440; color: var(--sv-dim); font-size: .9rem; }
.sv-forge__purse b { color: #f3f0ff; font-variant-numeric: tabular-nums; }
/* the x1 / x10 / Max switch of the Upgrade dialog: how many upgrades one click buys */
.sv-upmode { display: inline-flex; gap: 2px; margin-left: auto; align-self: center; padding: 2px; background: #07060d; box-shadow: 0 0 0 2px #3a2a12; }
.sv-upmode__btn { font: inherit; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .04em; line-height: 1; cursor: pointer; border: 0; border-radius: 0;
    min-width: 2.6rem; padding: .3rem .5rem .35rem; color: #a59cc4; background: #1c1730; box-shadow: inset 0 2px 0 #2c2546, inset 0 -2px 0 #120e20; }
.sv-upmode__btn:hover { color: #f3f0ff; }
.sv-upmode__btn[aria-pressed="true"] { color: #2a1404; background: #ffd23a; box-shadow: inset 0 2px 0 #fff4b0, inset 0 -2px 0 #f09a1c; }
.sv-upmode__btn:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 2px; }
.sv-forge__list { display: grid; gap: .5rem; overflow: auto; min-height: 0; padding: 2px 8px 6px 2px; }
.sv-forge__row { display: flex; align-items: center; gap: .8rem; padding: .45rem .8rem .55rem .5rem; background: #191428; box-shadow: inset 0 0 0 2px #2c2546; }
.sv-forge__row--asc { box-shadow: inset 0 0 0 2px #7b4bd0; background: #1c1434; }
.sv-forge__info { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; }
.sv-forge__info .sv-item__icon { border-radius: 0; }
.sv-forge__text { min-width: 0; display: grid; gap: .12rem; }
.sv-forge__slot { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-dim); }
.sv-forge__name { display: flex; align-items: center; gap: .35rem; min-width: 0; font-weight: 600; font-size: .92rem; }
.sv-forge__name > .sv-q { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a long name ends in "...", its skull stays */
.sv-forge__bar { display: flex; align-items: center; gap: .5rem; margin-top: .1rem; }
.sv-forge__segs { display: flex; gap: 2px; padding: 2px; background: #07060d; box-shadow: 0 0 0 1px #3a2a12; }
.sv-forge__segs i { width: 6px; height: 9px; background: #2a2236; box-shadow: inset 0 -2px 0 #1c1626; }
.sv-forge__segs i.on { background: #ffd23a; box-shadow: inset 0 2px 0 #fff4b0, inset 0 -2px 0 #f09a1c; }
.sv-forge__segs--full i.on { background: #ff7ad9; box-shadow: inset 0 2px 0 #ffd0f2, inset 0 -2px 0 #b03ad0; animation: sv-seg 1s steps(2) infinite; }
@keyframes sv-seg { 50% { background: #ffd23a; box-shadow: inset 0 2px 0 #fff4b0, inset 0 -2px 0 #f09a1c; } }
.sv-forge__pct { color: #ffd84a; font-size: .82rem; font-variant-numeric: tabular-nums; min-width: 2.6rem; }
a.sv-pill { text-decoration: none; }
a.sv-pill:hover { filter: brightness(1.2); }
@media (max-width: 520px) { .sv-forge__segs i { width: 4px; } .sv-forge__row { gap: .5rem; } .sv-pxbtn { min-width: 4.6rem; } }
@media (prefers-reduced-motion: reduce) { .sv-nova, .sv-forge__segs--full i.on { animation: none; } .sv-forgebtn, .sv-pxbtn { transition: none; } }

/* ---- the tooltip of the Upgrade / Ascend button: a pixel-art box, never the browser's title pop-up.
        Frame = assets/shinkiverse/ui/tip_gold.png / tip_asc.png (24 px, 9-slice at 8, drawn at 2x; the ring is 3 px in
        from the edge so the corner sparks sit on it), pin = tip_arrow.png (two cells of 11 x 6: gold, Ascend; its top row
        lies on the frame's outline, 8 px above the box's bottom); all painted by the art tools (tools/paint_ui.py).
        --px = the pin's x. ---- */
.sv-upwrap { flex: none; display: inline-flex; }
.sv-upwrap:has(> .sv-pxbtn:disabled) { cursor: not-allowed; }
.sv-upwrap > .sv-pxbtn:disabled { pointer-events: none; }   /* so the wrapper still gets the hover */
.sv-uptip { position: fixed; z-index: 82; pointer-events: none; width: calc(16.5rem + 12px); max-width: calc(100vw - 16px); --px: 50%;
    filter: drop-shadow(4px 4px 0 rgba(5, 3, 12, .8)); }
.sv-uptip[hidden] { display: none; }
.sv-uptip__box { display: grid; gap: .32rem; padding: .2rem .3rem .25rem; border: 16px solid transparent; image-rendering: pixelated;
    border-image: url("../../assets/shinkiverse/ui/tip_gold.png") 8 fill / 16px stretch; color: #d9d4f2; font-size: .84rem; line-height: 1.3; }
.sv-uptip__pin { position: absolute; left: calc(var(--px) - 11px); top: calc(100% - 8px); width: 22px; height: 12px; image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/tip_arrow.png") 0 0 / 44px 12px no-repeat; }
.sv-uptip--below .sv-uptip__pin { top: auto; bottom: calc(100% - 8px); transform: scaleY(-1); }
.sv-uptip__head { display: flex; align-items: center; gap: .55rem; padding-bottom: .1rem; }
.sv-uptip__title { display: grid; min-width: 0; }
.sv-uptip__title b { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.sv-uptip__title small { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .8rem; }
.sv-uptip__title small > .sv-q { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the boss skull stays visible */
.sv-uptip__gold { color: #ffd23a; text-shadow: 2px 2px 0 #3a1c04; }
.sv-uptip__jump { display: flex; align-items: center; gap: .55rem; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.sv-uptip__from { color: #a8925a; }
.sv-uptip__to { color: #ffd23a; text-shadow: 2px 2px 0 #3a1c04, 0 0 12px rgba(255, 210, 58, .45); }
.sv-uptip__go { flex: none; width: 8px; height: 10px; background: #ffd23a; animation: sv-uptip-go .9s steps(2) infinite;
    clip-path: polygon(0 0, 2px 0, 2px 2px, 4px 2px, 4px 4px, 6px 4px, 6px 6px, 4px 6px, 4px 8px, 2px 8px, 2px 10px, 0 10px); }
@keyframes sv-uptip-go { 50% { transform: translateX(2px); } }
.sv-uptip__segs { display: flex; gap: 2px; padding: 2px; background: #07060d; box-shadow: 0 0 0 2px #3a2a12; margin: .15rem 2px .2rem; }
.sv-uptip__segs i { flex: 1; height: 8px; background: #2a2236; box-shadow: inset 0 -2px 0 #1c1626; }
.sv-uptip__segs i.on { background: #ffd23a; box-shadow: inset 0 2px 0 #fff4b0, inset 0 -2px 0 #f09a1c; }
.sv-uptip__segs i.next { animation: sv-uptip-next .5s steps(2) infinite; }
@keyframes sv-uptip-next { 50% { background: #fff4b0; box-shadow: inset 0 2px 0 #ffffff, inset 0 -2px 0 #ffd23a; } }
.sv-uptip__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--sv-dim); }
.sv-uptip__row b { display: inline-flex; align-items: center; color: #f3f0ff; font-variant-numeric: tabular-nums; }
.sv-uptip__row--short b { color: #ff5a6e; }
.sv-uptip__was { color: #a8925a; }
.sv-uptip__gain { color: #7dffb0; }
.sv-uptip__line { color: #d9d4f2; }
.sv-uptip__rule { display: block; height: 2px; margin: .1rem 0; background: repeating-linear-gradient(90deg, #4a3414 0 4px, transparent 4px 6px); }
.sv-uptip__foot { color: var(--sv-dim); font-size: .76rem; line-height: 1.35; }
.sv-uptip__foot b { color: #ffd23a; }
/* Ascend: the violet box with the pink ring, like its button */
.sv-uptip--asc .sv-uptip__box { border-image-source: url("../../assets/shinkiverse/ui/tip_asc.png"); }
.sv-uptip--asc .sv-uptip__pin { background-position: -22px 0; }
.sv-uptip--asc .sv-uptip__go { background: #ff7ad9; }
.sv-uptip--asc .sv-uptip__jump { font-family: inherit; font-size: 1rem; }
.sv-uptip--asc .sv-uptip__rule { background: repeating-linear-gradient(90deg, #4a2066 0 4px, transparent 4px 6px); }
@media (prefers-reduced-motion: reduce) { .sv-uptip__go, .sv-uptip__segs i.next { animation: none; } .sv-uptip__segs i.next { background: #fff4b0; } }

/* ---- the Super Boss gear mark (assets/shinkiverse/ui/skull.png: 4 frames of 16 px; only the glint in its eyes moves) ---- */
.sv-skull { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/skull.png") 0 0 / 64px 16px no-repeat; animation: sv-skull 1s steps(4) infinite; }
.sv-tip__super .sv-skull, .sv-chip .sv-skull, .sv-help__part .sv-skull { margin-right: .3em; }
.sv-skull--omega { background-image: url("../../assets/shinkiverse/ui/skull_omega.png"); }
.c-omega { color: #ff3048; font-weight: 700; }
.sv-tip__super--omega { color: #ff5a6e; }
@keyframes sv-skull { to { background-position-x: -64px; } }

/* ---- scroll bars on the Shinkiverse pages: pixel art (hard corners, a bevelled thumb with a grip), never the browser's own.
        The colours are variables, so a dialog can have its own (the Inner Supernova dialog: gold). ---- */
html:has(> body.sv-page) { --sb: #8b5cf6; --sb-hi: #c9b0ff; --sb-lo: #4a2a9c; --sb-edge: #1c1038; --sb-track: #0a0812; }
.sv-forge { --sb: #ffd23a; --sb-hi: #fff4b0; --sb-lo: #c08410; --sb-edge: #3a1c04; }
html:has(> body.sv-page)::-webkit-scrollbar, .sv-page *::-webkit-scrollbar { width: 14px; height: 14px; }
html:has(> body.sv-page)::-webkit-scrollbar-track, .sv-page *::-webkit-scrollbar-track,
html:has(> body.sv-page)::-webkit-scrollbar-corner, .sv-page *::-webkit-scrollbar-corner { background: var(--sb-track); box-shadow: inset 0 0 0 2px var(--sb-edge); }
html:has(> body.sv-page)::-webkit-scrollbar-thumb, .sv-page *::-webkit-scrollbar-thumb { border-radius: 0; background-color: var(--sb);
    background-image: linear-gradient(to bottom, var(--sb-lo) 0 2px, transparent 2px 4px, var(--sb-lo) 4px 6px, transparent 6px 8px, var(--sb-lo) 8px 10px);
    background-size: 6px 10px; background-position: center; background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2px var(--sb-edge), inset 4px 4px 0 0 var(--sb-hi), inset -4px -4px 0 0 var(--sb-lo); }
html:has(> body.sv-page)::-webkit-scrollbar-thumb:hover, .sv-page *::-webkit-scrollbar-thumb:hover { background-color: var(--sb-hi); }
@supports not selector(::-webkit-scrollbar) {
    html:has(> body.sv-page), .sv-page * { scrollbar-color: var(--sb) var(--sb-track); }
}

/* ---- a dialog whose list scrolls while its title and its buttons stay put ---- */
.sv-modal__box.sv-modal__box--list { display: flex; flex-direction: column; overflow: hidden; }
.sv-modal__box--list > * { flex: none; }
.sv-modal__box--list > .sv-items, .sv-modal__box--list > .sv-help__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; padding: 2px 8px 2px 2px; }

/* ---- the gear inventory, in the same pixel-art dress as the Inner Supernova dialog (violet where that one is gold) ---- */
.sv-modal__box.sv-picker { border: 0; border-radius: 0; padding: 1rem 1.1rem 1.1rem; background: #110d1c;
    box-shadow: 0 0 0 2px #1c1038, 0 0 0 4px #8b5cf6, 0 0 0 6px #1c1038, 0 0 60px 6px rgba(139, 92, 246, .18), 0 20px 80px rgba(0, 0, 0, .7); }
.sv-picker h3 { color: #c9b0ff; letter-spacing: .14em; text-transform: uppercase; text-shadow: 2px 2px 0 #1c1038; padding-bottom: .5rem; margin-bottom: .55rem; border-bottom: 2px solid #2a2046; }
.sv-picker .sv-inv { border: 0; border-radius: 0; background: #0a0812; box-shadow: inset 0 0 0 2px #2a2440; }
.sv-picker .sv-item, .sv-picker .sv-mini { border: 0; border-radius: 0; background: #191428; box-shadow: inset 0 0 0 2px #2c2546; }
.sv-picker .sv-item { padding: .45rem .6rem; }
.sv-picker .sv-item:hover:not(:disabled), .sv-picker .sv-mini:hover:not(:disabled) { background: #211a36; box-shadow: inset 0 0 0 2px #00c8d8; }
.sv-picker .sv-item[aria-current="true"] { background: #12241f; box-shadow: inset 0 0 0 2px var(--sv-lime); }
.sv-picker .sv-mini--on { background: #2a2210; box-shadow: inset 0 0 0 2px #ffd23a; }
.sv-picker .sv-mini--scrap:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #ff8a5c; }
.sv-picker .sv-item__icon, .sv-picker .sv-slot__icon { border-radius: 0; }
.sv-picker .sv-btn { border-radius: 0; }
.sv-picker .sv-item__meta { margin-top: .1rem; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .sv-skull { animation: none; } }

/* ================= boss mail, The Stillness, the Odium Engine =================
   Sprites painted by the art tools (tools/paint_stillness.py), in assets/shinkiverse/ui/:
     post16.png  5 cells of 16 px: Void Mail, Golden Mail, Diamond Mail, Odium Engine Key, Malice Strand (beside text)
     post.png    the same five at 32 px          stars.png   17 purified stars of 32 px, in catalog "stillness.stars" order
     stillness.png, malice_star.png  4 frames of 32 px      odium_engine.png  4 frames of 96 px
   Every sprite is drawn at a whole multiple of its size, so a pixel stays a square. */
.sv-pi { --s: 16px; --i: 0; display: inline-block; flex: none; width: var(--s); height: var(--s); margin: 0 .3em 0 .1em; vertical-align: -3px; image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/post16.png") calc(var(--i) * var(--s) * -1) 0 / calc(var(--s) * 5) var(--s) no-repeat; }
.sv-pi--golden { --i: 1; } .sv-pi--diamond { --i: 2; } .sv-pi--key { --i: 3; } .sv-pi--strand { --i: 4; }
.sv-pi--big, .sv-pi--xl { --s: 32px; margin: 0; vertical-align: middle; background-image: url("../../assets/shinkiverse/ui/post.png"); }
.sv-pi--xl { --s: 64px; }
.sv-stillmark { --s: 32px; display: inline-block; flex: none; width: var(--s); height: var(--s); image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/stillness.png") 0 0 / calc(var(--s) * 4) var(--s) no-repeat; animation: sv-nova .8s steps(4) infinite; }
.sv-stillmark--big { --s: 64px; }

/* the buttons under the weapons: Upgrade and The Stillness side by side, Boss Mail on a row of its own, on the left */
.sv-doll__forge { gap: .6rem 1rem; flex-wrap: wrap; align-items: center; }
.sv-doll__post { grid-column: 1 / -1; display: flex; justify-content: flex-start; margin-top: .45rem; }
.sv-stillbtn, .sv-postbtn, .sv-odiumbtn { font: inherit; cursor: pointer; border: 0; border-radius: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem 1.2rem .35rem .8rem;
    font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; transition: transform .06s, box-shadow .06s, filter .12s; }
.sv-stillbtn { color: #e6fbff; background: #0e1a3a; box-shadow: inset 0 2px 0 #3a6ad0, inset 0 -3px 0 #060c20, 0 0 0 2px #8fe9ff, 0 4px 0 2px #1c3a66; }
.sv-postbtn { color: #f3e8ff; background: #4a2278; box-shadow: inset 0 2px 0 #a070ff, inset 0 -3px 0 #2a1048, 0 0 0 2px #12051f, 0 4px 0 2px #12051f; }
.sv-odiumbtn { color: #ffe3e6; background: #5a0d1c; box-shadow: inset 0 2px 0 #ff5a6e, inset 0 -3px 0 #2a0410, 0 0 0 2px #ff3048, 0 4px 0 2px #4a0814; }
.sv-stillbtn:hover, .sv-postbtn:hover, .sv-odiumbtn:hover:not(:disabled) { filter: brightness(1.15); }
.sv-stillbtn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #3a6ad0, inset 0 -3px 0 #060c20, 0 0 0 2px #8fe9ff, 0 1px 0 2px #1c3a66; }
.sv-postbtn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #a070ff, inset 0 -3px 0 #2a1048, 0 0 0 2px #12051f, 0 1px 0 2px #12051f; }
.sv-odiumbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px 0 #ff5a6e, inset 0 -3px 0 #2a0410, 0 0 0 2px #ff3048, 0 1px 0 2px #4a0814; }
.sv-stillbtn:focus-visible, .sv-postbtn:focus-visible, .sv-odiumbtn:focus-visible, .sv-sslot:focus-visible, .sv-srow__main:focus-visible { outline: 2px solid var(--sv-aqua); outline-offset: 4px; }
.sv-postbtn__n { min-width: 1.5rem; padding: .05rem .35rem; font-family: 'Exo 2', sans-serif; font-size: .8rem; letter-spacing: 0; color: #2a1404; background: #ffd23a; box-shadow: 0 0 0 2px #3a1c04; font-variant-numeric: tabular-nums; }
.sv-postbtn--new .sv-pi { animation: sv-post-hop .9s steps(3) infinite; }
@keyframes sv-post-hop { 50% { transform: translateY(-3px); } }
.sv-odiumbtn:disabled, .sv-pxbtn--strand:disabled { cursor: not-allowed; }
.sv-odiumbtn:disabled { color: #6d6788; background: #2a2640; box-shadow: inset 0 2px 0 #3a3558, inset 0 -3px 0 #1c192c, 0 0 0 2px #0c0a16, 0 4px 0 2px #0c0a16; }
.sv-odiumbtn .sv-pi { margin: 0; }

/* ---- the Boss Mail dialog (the Inner Supernova dialog's dress, in the Void Mail violet) ---- */
.sv-modal__box.sv-post { --sb: #a070ff; --sb-hi: #d9c2ff; --sb-lo: #5a2a8c; --sb-edge: #12051f;
    box-shadow: 0 0 0 2px #12051f, 0 0 0 4px #a070ff, 0 0 0 6px #12051f, 0 0 60px 6px rgba(160, 112, 255, .18), 0 20px 80px rgba(0, 0, 0, .7); }
.sv-post .sv-forge__head { border-bottom-color: #2a1048; }
.sv-post .sv-forge__head h3 { color: #d9c2ff; text-shadow: 2px 2px 0 #12051f; }
.sv-post__row { gap: .9rem; }
.sv-post__n { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.05rem; color: #f3f0ff; font-variant-numeric: tabular-nums; }
.sv-post__in { color: var(--sv-dim); font-size: .8rem; line-height: 1.35; }
.sv-post__btns { flex: none; display: flex; gap: .7rem; }
.sv-post__btns .sv-pxbtn { min-width: 4.4rem; }
.sv-post__note { margin: .6rem 0 0; color: var(--sv-dim); font-size: .8rem; }
.sv-post__stacks { display: grid; gap: .1rem; color: var(--sv-dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.c-void { color: #c58bff; font-weight: 700; } .c-golden { color: #ffd23a; font-weight: 700; } .c-diamond { color: #8fe9ff; font-weight: 700; }
.c-key { color: #ff8a96; font-weight: 700; } .c-strand { color: #ff5a6e; font-weight: 700; }
.sv-loot .sv-pi--big { animation: sv-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }

/* ---- a purified Malice Star: its sprite, and a glow that grows with its tier (--ta / --tb = the tier's colours).
        The glow is stacked flat rings, the rays a stepped fan, the sparkles small plus-shapes: no soft gradients. ---- */
.sv-star { --s: 32px; --i: 0; --ta: #9db4c8; --tb: var(--ta); position: relative; display: inline-grid; place-items: center; flex: none; width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); }
.sv-star__img { position: relative; z-index: 2; width: var(--s); height: var(--s); image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/stars.png") calc(var(--i) * var(--s) * -1) 0 / calc(var(--s) * 17) var(--s) no-repeat; }
.sv-star::before, .sv-star::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.sv-star::before { opacity: .0; background: radial-gradient(circle, color-mix(in srgb, var(--ta) 55%, transparent) 0 30%, color-mix(in srgb, var(--tb) 30%, transparent) 30% 46%, color-mix(in srgb, var(--tb) 14%, transparent) 46% 62%, transparent 62%); }
.sv-star::after { display: none; inset: -8%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ta) 60%, transparent) 0 7deg, transparent 7deg 45deg, color-mix(in srgb, var(--tb) 50%, transparent) 45deg 50deg, transparent 50deg 90deg);
    -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 34% 66%, transparent 66%); mask: radial-gradient(circle, transparent 0 34%, #000 34% 66%, transparent 66%); animation: sv-star-turn 6s steps(48) infinite; }
.sv-star--r1::before { opacity: .45; }
.sv-star--r2::before { opacity: .7; animation: sv-star-pulse 2.4s steps(4) infinite; }
.sv-star--r3::before { opacity: .85; animation: sv-star-pulse 2s steps(4) infinite; }
.sv-star--r4::before, .sv-star--r5::before, .sv-star--r6::before, .sv-star--r7::before, .sv-star--r8::before, .sv-star--r9::before { opacity: 1; animation: sv-star-pulse 1.6s steps(4) infinite; }
.sv-star--r4::after, .sv-star--r5::after, .sv-star--r6::after, .sv-star--r7::after, .sv-star--r8::after, .sv-star--r9::after { display: block; }
.sv-star--r5::after { animation-duration: 4.5s; }
.sv-star--r6::after, .sv-star--r7::after { animation-duration: 3.5s; inset: -14%; }
.sv-star--r8::after, .sv-star--r9::after { animation-duration: 2.6s; inset: -20%; }
.sv-star--r7, .sv-star--r8, .sv-star--r9 { animation: sv-star-hue 5s steps(10) infinite; }
.sv-star--r7 .sv-star__img, .sv-star--r8 .sv-star__img, .sv-star--r9 .sv-star__img { animation: sv-star-unhue 5s steps(10) infinite; }   /* the star keeps its own colours */
.sv-star--r9::before { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ta) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--tb) 40%, transparent); }
.sv-star__sp { position: absolute; z-index: 3; left: 50%; top: 50%; width: 2px; height: 2px; background: #fff; pointer-events: none; opacity: 0;
    box-shadow: 2px 0 0 var(--ta), -2px 0 0 var(--ta), 0 2px 0 var(--tb), 0 -2px 0 var(--tb); animation: sv-star-sp 1.8s steps(6) infinite; }
.sv-star__sp:nth-child(2) { transform: translate(-150%, -900%); }
.sv-star__sp:nth-child(3) { transform: translate(900%, -500%); animation-delay: -.4s; }
.sv-star__sp:nth-child(4) { transform: translate(-1000%, 500%); animation-delay: -.8s; }
.sv-star__sp:nth-child(5) { transform: translate(600%, 800%); animation-delay: -1.2s; }
.sv-star__sp:nth-child(6) { transform: translate(-800%, -500%); animation-delay: -.2s; }
.sv-star__sp:nth-child(7) { transform: translate(1000%, 200%); animation-delay: -1s; }
.sv-star__sp:nth-child(8) { transform: translate(100%, 1050%); animation-delay: -1.5s; }
.sv-star__sp:nth-child(9) { transform: translate(-400%, 950%); animation-delay: -.6s; }
@keyframes sv-star-pulse { 50% { transform: scale(1.12); } }
@keyframes sv-star-turn { to { transform: rotate(360deg); } }
@keyframes sv-star-sp { 0%, 100% { opacity: 0; } 35%, 65% { opacity: 1; } }
@keyframes sv-star-hue { to { filter: hue-rotate(360deg); } }
@keyframes sv-star-unhue { to { filter: hue-rotate(-360deg); } }
.sv-tier { display: inline-block; padding: 0 .35rem; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: .78rem; letter-spacing: .04em; line-height: 1.5; color: #07060d;
    background: linear-gradient(90deg, var(--ta), var(--tb)); box-shadow: 0 0 0 2px #07060d; }

/* ---- The Stillness: a silent sea (navy, cyan frame); eight star slots stand in it ---- */
.sv-modal__box.sv-still { max-height: min(92vh, 54rem); --sb: #8fe9ff; --sb-hi: #e6fbff; --sb-lo: #3a6ad0; --sb-edge: #060c20; background: #080b1a; width: min(40rem, 100%);
    box-shadow: 0 0 0 2px #060c20, 0 0 0 4px #8fe9ff, 0 0 0 6px #060c20, 0 0 60px 6px rgba(120, 220, 255, .16), 0 20px 80px rgba(0, 0, 0, .7); }
.sv-still .sv-forge__head { border-bottom-color: #14244a; }
.sv-still .sv-forge__head h3 { color: #e6fbff; text-shadow: 2px 2px 0 #1c3a66; }
.sv-still__sea { position: relative; flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; padding: .8rem .7rem 1rem; overflow: hidden;
    background: linear-gradient(#0a1230 0 34%, #081028 34% 62%, #060c20 62% 84%, #050a18 84%); box-shadow: inset 0 0 0 2px #1c3a66; }
.sv-still__sea::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(to bottom, transparent 0 22px, rgba(143, 233, 255, .1) 22px 24px, transparent 24px 46px, rgba(143, 233, 255, .05) 46px 48px);
    animation: sv-still-drift 6s steps(24) infinite; }
@keyframes sv-still-drift { to { background-position-y: 48px; } }
.sv-sslot { position: relative; font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 0; display: grid; place-items: center; align-content: center; gap: .1rem; min-height: 6.6rem; padding: .3rem .2rem .35rem;
    background: rgba(10, 18, 48, .78); box-shadow: inset 0 0 0 2px #24406e; }
.sv-sslot:hover { box-shadow: inset 0 0 0 2px #8fe9ff; }
.sv-sslot--sel { background: rgba(20, 40, 90, .9); box-shadow: inset 0 0 0 2px #e6fbff, 0 0 0 2px #8fe9ff; }
.sv-sslot--sealed { cursor: default; background: rgba(5, 8, 20, .82); box-shadow: inset 0 0 0 2px #14203c; color: #4e6088; }
.sv-sslot--sealed:hover { box-shadow: inset 0 0 0 2px #24406e; }
.sv-sslot__plus { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: #3a6ad0; }
.sv-sslot__lv { position: relative; z-index: 5; font-size: .72rem; color: #e6fbff; font-variant-numeric: tabular-nums; text-shadow: 1px 1px 0 #060c20, -1px 1px 0 #060c20, 1px -1px 0 #060c20, -1px -1px 0 #060c20; }
.sv-sslot__no { position: absolute; left: 6px; top: 4px; font-size: .64rem; letter-spacing: .08em; color: #4e6a9c; }
.sv-sslot .sv-tier { position: absolute; right: 5px; top: 5px; z-index: 4; }
.sv-sslot .sv-star { --s: 64px; width: 88px; height: 88px; animation: sv-still-bob 3.2s steps(8) infinite; }
.sv-sslot .sv-star--r7, .sv-sslot .sv-star--r8, .sv-sslot .sv-star--r9 { animation: sv-still-bob 3.2s steps(8) infinite, sv-star-hue 5s steps(10) infinite; }
.sv-sslot:nth-child(even) .sv-star { animation-delay: -1.6s; }
@keyframes sv-still-bob { 50% { transform: translateY(-4px); } }
.sv-sslot .sv-lock { margin-top: .7rem; }
.sv-still__lore { margin: .2rem 0 0; color: #8fa8cc; font-size: .86rem; line-height: 1.35; }
.sv-still__inv { display: flex; flex-direction: column; min-height: 9rem; margin-top: .7rem; }
.sv-still__invhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; color: #b8d8ee; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.sv-still__hint { margin: .7rem 0 0; color: #8fa8cc; font-size: .84rem; }
.sv-still .sv-forge__row { background: #0c1430; box-shadow: inset 0 0 0 2px #1c305a; }
.sv-srow--here { background: #10264a !important; box-shadow: inset 0 0 0 2px #8fe9ff !important; }
.sv-srow__main { font: inherit; color: inherit; cursor: pointer; text-align: left; border: 0; background: none; padding: 0; }
.sv-srow__fx { font-size: .84rem; color: #d9d4f2; line-height: 1.3; }
.sv-srow__at { color: #8fe9ff; }
.sv-pxbtn--strand { background: #5a0d1c; color: #ffe3e6; box-shadow: inset 0 2px 0 #ff5a6e, inset 0 -3px 0 #3a0c66, 0 0 0 2px #1a0208, 0 4px 0 2px #1a0208; }
.sv-pxbtn--strand:active:not(:disabled) { box-shadow: inset 0 2px 0 #ff5a6e, inset 0 -3px 0 #3a0c66, 0 0 0 2px #1a0208, 0 1px 0 2px #1a0208; }
.sv-pxbtn--calm { background: #0e1a3a; color: #e6fbff; box-shadow: inset 0 2px 0 #3a6ad0, inset 0 -3px 0 #060c20, 0 0 0 2px #060c20, 0 4px 0 2px #060c20; flex-direction: row; min-width: 0; padding: .25rem .7rem .35rem; font-size: .78rem; }
.sv-pxbtn--calm:active:not(:disabled) { box-shadow: inset 0 2px 0 #3a6ad0, inset 0 -3px 0 #060c20, 0 0 0 2px #060c20, 0 1px 0 2px #060c20; }
.sv-pxbtn .sv-pi { margin: 0 .2rem 0 0; }
.sv-still .sv-modal__foot, .sv-odium .sv-modal__foot, .sv-post .sv-modal__foot { align-items: center; }
.sv-still .sv-btn, .sv-odium .sv-btn, .sv-post .sv-btn { border-radius: 0; }
.sv-uptip__starhead { display: flex; align-items: center; gap: .5rem; }
.sv-uptip__bar { height: 6px; background: #07060d; box-shadow: 0 0 0 1px #3a2a12; }
.sv-uptip__bar i { display: block; height: 100%; background: #ff3048; box-shadow: inset 0 2px 0 #ff9aa4; }

/* ---- the Odium Engine: the machine on top, the sea the stars fall into below (crimson frame). The Engine is a whole
   dimension: odium_dimension.png (4 frames of 512 x 144, shown at 2 px per px) lies behind the sprite, whose top-left
   corner stands at 208, 4 of a frame. The dialog is tall enough to show everything without a scroll bar. ---- */
.sv-modal__box.sv-odium { max-height: min(96vh, 56rem); --sb: #ff3048; --sb-hi: #ff9aa4; --sb-lo: #6a1aa8; --sb-edge: #1a0208; background: #0d070f; width: min(40rem, 100%); overflow-y: auto;
    box-shadow: 0 0 0 2px #1a0208, 0 0 0 4px #ff3048, 0 0 0 6px #1a0208, 0 0 60px 6px rgba(255, 48, 72, .16), 0 20px 80px rgba(0, 0, 0, .7); }
.sv-odium .sv-forge__head { border-bottom-color: #3a1020; }
.sv-odium .sv-forge__head h3 { color: #ff8a96; text-shadow: 2px 2px 0 #1a0208; }
.sv-odium__stage { position: relative; flex: none; display: grid; justify-items: center; padding-top: .5rem; overflow: hidden; cursor: default;
    background: #0b0610; box-shadow: inset 0 0 0 2px #3a1020; margin-top: .7rem; }
.sv-odium__stage::before { content: ''; position: absolute; top: 0; left: 50%; width: 1024px; height: 288px; margin-left: -512px; pointer-events: none; image-rendering: pixelated;
    background: url("../../assets/shinkiverse/ui/odium_dimension.png") 0 0 / 4096px 288px no-repeat; animation: sv-odium-dim 1.4s steps(4) infinite; }
.sv-odium__stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px #3a1020; }
@keyframes sv-odium-dim { to { background-position-x: -4096px; } }
.is-cast.sv-odium__stage::before { animation-duration: .5s; }
.sv-engine, .sv-odium__omen { position: relative; z-index: 1; }
.sv-engine { width: 192px; height: 192px; image-rendering: pixelated; background: url("../../assets/shinkiverse/ui/odium_engine.png") 0 0 / 768px 192px no-repeat; animation: sv-engine .66s steps(4) infinite; }
@keyframes sv-engine { to { background-position-x: -768px; } }
.sv-odium__omen { min-height: 1.5rem; margin: .1rem 0 .45rem; font-family: 'Orbitron', sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #8a6a78; text-align: center; }
.sv-odium__flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: #ff3048; }
.is-cast .sv-engine { animation: sv-engine .22s steps(4) infinite, sv-engine-shake .12s steps(2) infinite; }
.is-cast .sv-odium__flash { animation: sv-odium-flash 1.1s steps(6) both; }
.is-omen1 .sv-odium__flash { background: #ffd23a; } .is-omen1 .sv-odium__omen { color: #ffd23a; }
.is-omen2 .sv-odium__flash { background: #fff; animation: sv-odium-flash 1.1s steps(6) both, sv-star-hue .5s steps(6) infinite; }
.is-omen2 .sv-odium__omen { background: linear-gradient(90deg, #ffd84a, #ff7ad9, #7b6bff, #3bf5ff, #ffd84a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sv-q-flow 1.2s linear infinite; }
.is-omen2 .sv-engine { animation: sv-engine .16s steps(4) infinite, sv-engine-shake .08s steps(2) infinite; filter: drop-shadow(0 0 0 #fff) brightness(1.25); }
@keyframes sv-engine-shake { 50% { transform: translate(2px, -2px); } }
@keyframes sv-odium-flash { 0% { opacity: 0; } 60% { opacity: .12; } 85% { opacity: .5; } 100% { opacity: 0; } }
.sv-odium__sea { position: relative; flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; min-height: 8.6rem; padding: .7rem .6rem; align-content: center; overflow: hidden;
    background: linear-gradient(#0a1230 0 40%, #081028 40% 72%, #060c20 72%); box-shadow: inset 0 0 0 2px #1c3a66; }
.sv-odium__sea::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(to bottom, transparent 0 22px, rgba(143, 233, 255, .1) 22px 24px, transparent 24px 46px, rgba(143, 233, 255, .05) 46px 48px); animation: sv-still-drift 6s steps(24) infinite; }
.sv-odium__sea--one { grid-template-columns: minmax(0, 12rem); justify-content: center; }
.sv-pcard { position: relative; display: grid; justify-items: center; align-content: start; gap: .15rem; min-height: 7rem; padding: .3rem .15rem .35rem; text-align: center; visibility: hidden;
    background: rgba(10, 18, 48, .78); box-shadow: inset 0 0 0 2px #24406e; }
.sv-pcard.is-in { visibility: visible; animation: sv-pcard-fall .42s steps(7) both; }
.sv-pcard__bad { width: 64px; height: 64px; image-rendering: pixelated; background: url("../../assets/shinkiverse/ui/malice_star.png") 0 0 / 256px 64px no-repeat; animation: sv-malice .5s steps(4) infinite; }
@keyframes sv-malice { to { background-position-x: -256px; } }
@keyframes sv-pcard-fall { from { transform: translateY(-190px); } 70% { transform: translateY(6px); } to { transform: none; } }
.sv-pcard .sv-star { --s: 64px; width: 84px; height: 84px; margin: -10px 0; display: none; }
.sv-pcard .sv-tier, .sv-pcard__name, .sv-pcard__was { display: none; }
.sv-pcard.is-pure { box-shadow: inset 0 0 0 2px var(--ta); animation: sv-pcard-pure .36s steps(4) both; }
.sv-pcard.is-pure .sv-pcard__bad { display: none; }
.sv-pcard.is-pure .sv-star { display: inline-grid; }
.sv-pcard.is-pure .sv-tier, .sv-pcard.is-pure .sv-pcard__name, .sv-pcard.is-pure .sv-pcard__was { display: block; }
.sv-pcard.is-big.is-pure { animation: sv-pcard-big .7s steps(8) both; z-index: 2; }
@keyframes sv-pcard-pure { 0% { filter: brightness(4) saturate(0); } 100% { filter: none; } }
@keyframes sv-pcard-big { 0% { filter: brightness(5) saturate(0); transform: scale(1.35); } 60% { filter: brightness(1.6); transform: scale(1.12); } 100% { filter: none; transform: none; } }
.sv-pcard .sv-tier { position: absolute; right: 4px; top: 4px; z-index: 4; }
.sv-pcard__name { font-size: .72rem; font-weight: 600; line-height: 1.15; color: #e9e6ff; }
.sv-pcard__was { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #8fa8cc; }
.sv-pcard__was--new { color: #9dff3b; } .sv-pcard__was--up { color: #ffd23a; }
.sv-banner { flex: none; display: grid; gap: .35rem; margin: .7rem 0 0; padding: .5rem .6rem; background: #0a0812; box-shadow: inset 0 0 0 2px #2a1420; font-size: .86rem; color: var(--sv-dim); }
.sv-banner b { color: #f3f0ff; }
.sv-banner__bar { display: flex; gap: 2px; padding: 2px; background: #07060d; box-shadow: 0 0 0 1px #3a1020; }
.sv-banner__bar i { flex: 1; height: 8px; background: #2a1a24; box-shadow: inset 0 -2px 0 #1c1018; }
.sv-banner__bar i.on { background: #ff3048; box-shadow: inset 0 2px 0 #ff9aa4, inset 0 -2px 0 #7a20c0; }
.sv-odds { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: center; }
.sv-odds__one { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-variant-numeric: tabular-nums; color: #c8c0e0; }
.sv-odds__one--sealed { color: #5a5070; }
.sv-odds__one--sealed .sv-tier { background: #2a2640; color: #6d6788; }
.sv-odium__btns { display: flex; gap: .9rem; flex-wrap: wrap; }
/* a small or short screen: the whole Stillness dialog scrolls, so the star inventory is never squeezed away under the sea */
@media (max-width: 560px), (max-height: 820px) {
    .sv-modal__box.sv-still { overflow-y: auto; }
    .sv-still > * { flex: none; }
    .sv-still .sv-still__inv { min-height: 0; }
    .sv-still .sv-forge__list { overflow: visible; }
}
@media (max-width: 560px) {
    .sv-sslot { min-height: 5.6rem; }
    .sv-sslot .sv-star { --s: 32px; width: 48px; height: 48px; }
    .sv-still__sea { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; padding: .5rem .4rem .6rem; }
    .sv-sslot .sv-tier { font-size: .6rem; padding: 0 .2rem; right: 3px; top: 3px; max-width: calc(100% - 6px); overflow: hidden; }
    .sv-sslot__no { display: none; }
    .sv-odium__sea { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-post__btns { flex-direction: column; gap: .5rem; }
    .sv-engine { width: 96px; height: 96px; background-size: 384px 96px; }
    @keyframes sv-engine { to { background-position-x: -384px; } }
    .sv-odium__stage::before { top: -4px; width: 512px; height: 144px; margin-left: -256px; background-size: 2048px 144px; }
    @keyframes sv-odium-dim { to { background-position-x: -2048px; } }
}
@media (prefers-reduced-motion: reduce) {
    .sv-stillmark, .sv-star, .sv-star::before, .sv-star::after, .sv-star__img, .sv-star__sp, .sv-still__sea::before, .sv-odium__sea::before, .sv-odium__stage::before, .sv-sslot .sv-star, .sv-engine, .sv-pcard__bad, .sv-postbtn--new .sv-pi,
    .sv-pcard.is-in, .sv-pcard.is-pure, .sv-pcard.is-big.is-pure, .is-cast .sv-odium__flash { animation: none; }
    .sv-star__sp { opacity: 1; }
}
