/* Resonance cyberpunk anime theme: neon grid, glass HUD panels and the cast in their neon colours.
   Presentation only: no text, no layout order, no clickable geometry changes.
   Decorative text comes from ::before/::after with empty alt text (content: "x" / "").
   Fonts: Chakra Petch for titles and labels, Rajdhani for text (both SIL OFL, self-hosted in fonts/). */
@font-face{font-family:'Resonance Display';font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/chakra-petch-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Display';font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/chakra-petch-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Display';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/chakra-petch-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Display';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/chakra-petch-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Title';font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/chakra-petch-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Title';font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/chakra-petch-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Title';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/chakra-petch-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Title';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/chakra-petch-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/rajdhani-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/rajdhani-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rajdhani-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rajdhani-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/rajdhani-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Resonance Body';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/rajdhani-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

@property --vn-bob { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --vn-cue { syntax: '<number>'; inherits: false; initial-value: 1; }

:root {
  /* Neon palette from the Rialo Nexus design: cyan #33e3ff, hot pink #ff4fa3, violet #a679ff, on #060912 navy.
     The --vn-* names stay so every rule keeps working; gold now means neon cyan. */
  --vn-night: #060912;
  --vn-ink: #0b1221;
  --vn-ink-2: #0f1a2e;
  --vn-ink-3: #16233d;
  --vn-sky: #123c6b;
  --vn-violet: #a679ff;
  --vn-plum: #2a1850;
  --vn-sunset: #ff5b87;
  --vn-lantern: #ff4fa3;
  --vn-gold: #33e3ff;
  --vn-gold-hi: #a4f3ff;
  --vn-gold-lo: #127fa3;
  --vn-cream: #e6eeff;
  --vn-mist: #b4c2df;
  --vn-teal: #6cf5cb;
  --vn-crimson: #ff4f6d;
  --vn-glass: rgba(12, 23, 44, .88);
  --vn-glass-hi: rgba(21, 37, 70, .92);
  --vn-line: rgba(51, 227, 255, .42);
  --vn-line-soft: rgba(51, 227, 255, .2);
  --vn-char: var(--vn-gold);
  --vn-char-deep: #0e4a63;
  --vn-face: url("/diren.jpg");
  --vn-display: 'Resonance Display', 'Arial Narrow', system-ui, sans-serif;
  --vn-title: 'Resonance Title', 'Arial Narrow', system-ui, sans-serif;
  --vn-body: 'Resonance Body', system-ui, sans-serif;
  --vn-neon: #33e3ff;
  --vn-hot: #ff4fa3;
  --vn-ultra: #a679ff;
  color-scheme: dark;
  background: var(--vn-night) !important;
}
:root[data-vn-char="ece"]  { --vn-char: #ff4fa3; --vn-char-deep: #5c0f3a; }
:root[data-vn-char="eric"] { --vn-char: #aa82ff; --vn-char-deep: #2e1a5c; }
:root[data-vn-char="ade"]  { --vn-char: #ff8a4c; --vn-char-deep: #5a2a10; }

/* Framed elements share one corner-bracket recipe; --vn-c recolours it per element. */
:root :is(.vn-framed, #resonance-select .rs-bottom > section, .workspace-page #first-example, .workspace-page .panel, .hero .portrait, #journey .card, #characters .card, .release, .workspace-page .stats > div, #result-headline, .workspace-page .card, .mint-layout .step) {
  --vn-c: color-mix(in srgb, var(--vn-char) 85%, transparent);
  --vn-corners:
    linear-gradient(var(--vn-c), var(--vn-c)) left 6px top 6px / 16px 1.5px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) left 6px top 6px / 1.5px 16px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) right 6px top 6px / 16px 1.5px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) right 6px top 6px / 1.5px 16px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) left 6px bottom 6px / 16px 1.5px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) left 6px bottom 6px / 1.5px 16px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) right 6px bottom 6px / 16px 1.5px no-repeat,
    linear-gradient(var(--vn-c), var(--vn-c)) right 6px bottom 6px / 1.5px 16px no-repeat;
}

/* ------------------------------------------------------------------ 1. Stage: night city glow + neon grid floor */
:root body {
  background: transparent !important;
  color: var(--vn-cream);
  font-family: var(--vn-body);
}
:root body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(164, 243, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 55% 42% at 72% 12%, rgba(166, 121, 255, .2), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 80%, rgba(51, 227, 255, .14), transparent 70%),
    radial-gradient(ellipse 38% 30% at 96% 92%, rgba(255, 79, 163, .13), transparent 70%),
    linear-gradient(180deg, #05080f 0%, #070c1a 55%, #0a0f22 100%);
}
/* The grid is drawn once and slides by one cell on the compositor, so it never repaints while it moves. */
:root body::after {
  content: "";
  position: fixed;
  left: -60%;
  right: -60%;
  bottom: -64px;
  height: 62vh;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(51, 227, 255, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 227, 255, .3) 1px, transparent 1px);
  background-size: 64px 64px;
  transform-origin: 50% 100%;
  transform: perspective(420px) rotateX(62deg);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  animation: vn-grid 6s linear infinite;
}
@keyframes vn-grid { to { transform: perspective(420px) rotateX(62deg) translateY(64px); } }

/* Fonts: Rajdhani for text, Chakra Petch for titles, plates and HUD labels. */
:root body :where(#chapter, #resonance-select, main, nav, footer, #site-bar, .save-status, dialog),
:root body :where(#chapter, #resonance-select, main, nav, footer, #site-bar, .save-status, dialog) :where(:not(.log, code, pre, .term-chip)) {
  font-family: var(--vn-body) !important;
}
:root body :is(h1, h2, h3, .rs-name, .brand, .rs-brand), :root body :is(h1, h2, h3) * { font-family: var(--vn-title) !important; }
/* Labels and plates in spaced capitals. text-transform follows <html lang>, so Turkish i becomes İ. */
:root body :is(.eyebrow, .rs-step, .rs-sub, #chapter .small, #chapter .tag, .number, .result-headline-eyebrow, #site-bar a#site-home, .rs-mark, .rs-label, #state, .workspace-page .stats span) {
  font-family: var(--vn-display) !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Page titles: large neon capitals, like the Nexus screens. */
:root body :is(h1, h2) { text-transform: uppercase; letter-spacing: .03em; }
:root body h1 { text-shadow: 0 0 28px rgba(51, 227, 255, .32); }
/* Rajdhani has a small x-height; scale it to the size the old text font had, so line lengths and legibility hold. */
:root body :where(#chapter, #resonance-select, main, nav, footer, #site-bar, .save-status, dialog) { font-size-adjust: .5; }
:root body :is(.brand, .rs-brand, nav .brand) { font-family: var(--vn-display) !important; font-weight: 700; }
:root[lang="tr"] body :is(.rs-label) { font-family: var(--vn-title) !important; font-weight: 800; letter-spacing: .06em; }
::selection { background: var(--vn-gold); color: #04121c; }

:root body :is(.eyebrow, .rs-step, .result-headline-eyebrow, #chapter header .small) { color: var(--vn-char) !important; }
:root body :where(main, #chapter, #resonance-select) a:not([class]) { color: color-mix(in srgb, var(--vn-char) 70%, #eef6ff); }

/* ------------------------------------------------------------------ 2. Top bar = system menu */
:root #site-bar {
  /* Glass: the page shows through, blurred. */
  background: linear-gradient(180deg, rgba(5, 12, 23, .5), rgba(10, 20, 40, .28));
  border-bottom: 1px solid rgba(51, 227, 255, .22);
  box-shadow: 0 10px 30px -22px #000;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
:root #site-bar::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vn-gold-hi), transparent);
  opacity: .7;
  pointer-events: none;
}
:root #site-bar a#site-home { color: var(--vn-gold-hi); letter-spacing: .26em; font-size: 12px; }
:root #site-bar #site-release { border-color: var(--vn-line); color: var(--vn-gold); font-family: var(--vn-body) !important; letter-spacing: .04em; }
:root #site-bar .site-tool,
:root #site-bar select,
:root #site-bar #demo-unit-info > summary {
  background-color: rgba(20, 35, 66, .38);
  border-color: var(--vn-line);
  color: var(--vn-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
:root #site-bar .site-tool { border-radius: 2px; }
:root #site-bar select { border-radius: 2px; }
:root #site-bar .site-tool:hover,
:root #site-bar select:hover { border-color: var(--vn-gold); background-color: rgba(31, 52, 93, .9); }
:root #site-bar .site-tool-icon { color: var(--vn-gold-hi); }
:root #site-bar label { color: #a7b6d4; }
:root :is(#terms-panel, #site-bar #demo-unit-info > p, #term-popover, #tour-card) {
  background: linear-gradient(180deg, #0f1b32, #0a1222);
  border-color: var(--vn-line);
  box-shadow: inset 0 0 0 3px #0a1222, inset 0 0 0 4px var(--vn-line-soft), 0 20px 50px #000a;
}

/* ------------------------------------------------------------------ 3. Buttons: neon command buttons */
:root :is(#chapter button, #resonance-select .rs-start, .hero .button:not(.secondary), .workspace-page button:not(.secondary):not(.site-tool):not(:disabled), .player-profile button, .save-home button) {
  background: var(--vn-neon);
  color: #04121c;
  border: 1px solid var(--vn-neon);
  border-radius: 2px;
  box-shadow: 0 0 24px -6px rgba(51, 227, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-family: var(--vn-display) !important;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: none;
}
:root :is(#chapter .secondary, #chapter header button, #resonance-select .rs-top button, #resonance-select button.rs-secondary, .hero .button.secondary, .workspace-page button.secondary, .rl-learn-button, .save-menu-button, .profile-trigger) {
  background: rgba(13, 21, 38, .82);
  color: #e4edff;
  border: 1px solid #5e7194;
  border-radius: 2px;
  box-shadow: none;
  font-family: var(--vn-display) !important;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: none;
}
:root :is(#chapter header button, #resonance-select .rs-top button, .rl-learn-button, .save-menu-button, .profile-trigger) {
  color: var(--vn-gold-hi);
  font-size: 13px;
}
:root :is(#chapter button, #resonance-select button, .hero .button, .workspace-page button):not(:disabled):hover {
  filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(164, 243, 255, .6), 0 0 28px -4px rgba(51, 227, 255, .7);
}
:root :is(#chapter .secondary, #chapter header button, #resonance-select button.rs-secondary, .hero .button.secondary, .workspace-page button.secondary, .save-menu-button, .profile-trigger):not(:disabled):hover {
  border-color: var(--vn-neon);
  color: var(--vn-neon);
}
:root :is(#chapter button, .workspace-page button):disabled {
  background: rgba(20, 34, 59, .7);
  color: #8796b4;
  border: 1px dashed rgba(135, 150, 180, .45);
  box-shadow: none;
  text-shadow: none;
  opacity: .75;
}
/* Main "continue" calls get a slow light sweep. */
:root :is(#resonance-select .rs-start, .hero .actions .button:not(.secondary), #character-enter, .workspace-page #example-next:not(:disabled)) {
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) var(--vn-sweep, -120%) 0 / 260% 100% no-repeat,
    var(--vn-neon);
  color: #04121c;
  border: 1px solid var(--vn-neon);
  text-shadow: none;
  animation: vn-sweep 3.6s ease-in-out 2;
}
@property --vn-sweep { syntax: '<percentage>'; inherits: false; initial-value: -120%; }
@keyframes vn-sweep { 0%, 55% { --vn-sweep: 130%; } 100% { --vn-sweep: -130%; } }

:root :is(#chapter select, #chapter input, #resonance-select input, .workspace-page #workspace input:not([type=checkbox]), .workspace-page #workspace select, .workspace-page input:not([type=checkbox]), .mint-layout select, .mint-layout input:not([type=checkbox])) {
  background-color: rgba(6, 14, 28, .82);
  border: 1px solid rgba(51, 227, 255, .38);
  border-radius: 2px;
  color: var(--vn-cream);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45);
}
:root :is(#chapter select, #chapter input, #resonance-select input, .workspace-page input, .workspace-page select):focus {
  border-color: var(--vn-gold-hi);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 3px rgba(51, 227, 255, .22);
}
:root :where(a, button, select, input, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--vn-gold-hi); outline-offset: 3px; }

/* ------------------------------------------------------------------ 4. Home: title screen */
:root body > nav {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--vn-line), transparent) 1;
}
:root body > nav .brand {
  font-size: 24px;
  letter-spacing: .32em;
  background: linear-gradient(180deg, #e0fcff 10%, #33e3ff 60%, #127fa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(51, 227, 255, .35));
}
:root body > nav .navlinks a { color: #b9c6e2; }
:root body > nav .navlinks a:hover { color: var(--vn-gold-hi); }
:root .hero { position: relative; }
:root .hero .eyebrow { color: var(--vn-gold); font-size: 11px; }
:root .hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 1px 0;
  background: var(--vn-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--vn-lantern);
}
:root .hero h1 {
  font-weight: 800;
  letter-spacing: -.01em;
  color: #f0f6ff;
  text-shadow: 0 2px 0 rgba(6, 11, 28, .6), 0 0 28px rgba(166, 121, 255, .7);
}
:root .hero h1 em {
  font-style: normal;
  text-shadow: none;
  background: linear-gradient(180deg, #d6fbff 15%, #ff4fa3 70%, #ff6a4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 91, 135, .45));
}
/* The intro line becomes Diren's first line of dialogue. */
:root .hero .intro {
  position: relative;
  max-width: 560px;
  margin-top: 30px;
  padding: 20px 44px 18px 22px;
  color: var(--vn-cream);
  font-size: 17px;
  line-height: 1.7;
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0L10 5L5 10L0 5Z' fill='%2333e3ff' fill-opacity='.6'/%3E%3C/svg%3E") right 18px bottom 14px / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(18, 33, 63, .92), rgba(8, 17, 32, .94));
  box-shadow: inset 0 0 0 3px rgba(8, 17, 32, .9), inset 0 0 0 4px var(--vn-line-soft), 0 18px 40px -20px #000;
}
:root .hero .intro::before {
  content: "DIREN" / "";
  position: absolute;
  top: -14px;
  left: 16px;
  padding: 4px 18px 4px 14px;
  font: 700 12px/1.3 var(--vn-display);
  letter-spacing: .2em;
  color: #04121c;
  background: linear-gradient(90deg, #a4f3ff, #33e3ff 60%, #1aa6c9);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 0 0 1px #bdf6ff;
}
:root .hero .actions { margin-top: 26px; }
:root .hero .button { border-radius: 2px; padding: 14px 24px; font-weight: 800; }
:root .hero .button.secondary { color: var(--vn-cream); }
:root .hero p.small { color: #a9b8d6; font-size: 12px; letter-spacing: .04em; }
/* Rarity card: the guide portrait. */
:root .hero .portrait {
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #111f38, #0a1324) padding-box,
    linear-gradient(140deg, #d6fbff, #1aa6c9 30%, #a679ff 55%, #ff4fa3 80%, #d6fbff) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 91, 135, .35);
  overflow: hidden;
}
:root .hero .portrait { border-radius: 999px 999px 14px 14px / 240px 240px 14px 14px !important; }
:root .hero .portrait img { border-radius: 999px 999px 8px 8px / 232px 232px 8px 8px; box-shadow: 0 0 0 1px rgba(164, 243, 255, .45); }
:root .hero .portrait::before {
  content: none;
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 20px;
  font: 13px/1.2 var(--vn-body);
  letter-spacing: .12em;
  color: #8ef0ff;
  background: rgba(8, 14, 30, .72);
  box-shadow: 0 0 0 1px rgba(164, 243, 255, .5);
  text-shadow: 0 0 8px rgba(51, 227, 255, .9);
}
:root .hero .portrait::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto 10px;
  aspect-ratio: 5 / 6;
  max-height: 460px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, rgba(173, 216, 255, .18) 50%, rgba(190, 140, 255, .2) 55%, transparent 70%) var(--vn-sweep) 0 / 300% 100% no-repeat;
  display: none;
}
:root .hero .portrait figcaption {
  padding: 14px 8px 4px;
  font: 700 12px/1.3 var(--vn-display);
  letter-spacing: .16em;
  color: var(--vn-gold-hi);
}
:root .hero .portrait figcaption .tag { color: var(--vn-sunset); font-family: var(--vn-body); letter-spacing: .04em; }
:root .section { border-top: 0; position: relative; }
:root .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vn-line) 20%, var(--vn-line) 80%, transparent);
}
:root .section::after {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 9px;
  height: 9px;
  background: var(--vn-night);
  border: 1px solid var(--vn-gold);
  transform: rotate(45deg);
}
:root .section .eyebrow { color: var(--vn-gold); }
:root .section h2 { color: #f0f6ff; font-weight: 800; }
:root main p { color: #b9c6e2; }
:root main .muted, :root main .small { color: #acbad8; }
/* Quest cards. */
:root #journey .card,
:root #characters .card,
:root body > main .split > .card {
  position: relative;
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background: var(--vn-corners), linear-gradient(180deg, rgba(20, 36, 68, .92), rgba(10, 20, 38, .94));
  box-shadow: inset 0 0 0 3px rgba(10, 20, 38, .7), 0 18px 40px -24px #000;
}
:root #journey .card .number {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  color: #04121c;
  font-size: 11px;
  background: linear-gradient(90deg, #a4f3ff, #33e3ff);
}
:root #journey .card h3, :root #characters .card h3 { color: #f0f6ff; font-weight: 800; }
:root main .card a { color: var(--vn-gold-hi); }
/* Character tool cards: rarity frames in each character's colour. */
:root #characters .card { --vn-acc: var(--vn-gold); border-color: transparent; border-width: 2px;
  background: var(--vn-corners), linear-gradient(180deg, rgba(20, 36, 68, .95), rgba(10, 20, 38, .96)) padding-box, linear-gradient(150deg, var(--vn-acc), rgba(13, 24, 46, .2) 45%, var(--vn-acc)) border-box; }
:root #characters .card:nth-child(1) { --vn-acc: #33e3ff; }
:root #characters .card:nth-child(2) { --vn-acc: #ff4fa3; }
:root #characters .card:nth-child(3) { --vn-acc: #ff8a4c; }
:root #characters .card:nth-child(4) { --vn-acc: #aa82ff; }
:root #characters .character-photo { border-radius: 2px; box-shadow: 0 0 0 1px var(--vn-acc), 0 10px 30px -14px #000; }
:root #characters .card h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 3px 2px;
  background: var(--vn-acc);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--vn-acc);
}
:root .release { border-left: 0; border: 1px solid var(--vn-line); border-radius: 2px; background: var(--vn-corners), rgba(12, 23, 44, .9); }
:root .release li { color: #b9c6e2; }
:root .status { border-color: var(--vn-gold); color: var(--vn-gold-hi); background: rgba(51, 227, 255, .08); font-size: 11px; }
:root body > footer { border-top-color: var(--vn-line-soft); color: #a3b2d0; }

/* ------------------------------------------------------------------ 5. Character select: title screen */
:root #resonance-select { background: transparent; }
:root #resonance-select .rs-top { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--vn-line), transparent) 1; }
:root #resonance-select .rs-brand {
  letter-spacing: .3em;
  background: linear-gradient(180deg, #e0fcff 10%, #33e3ff 60%, #127fa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(51, 227, 255, .35));
}
:root #resonance-select .rs-sub { color: #b0bedb; font-size: 10px; }
:root #resonance-select .rs-step {
  padding: 5px 12px 5px 22px;
  color: var(--vn-gold-hi);
  border: 1px solid var(--vn-line);
  border-radius: 3px;
  font-size: 11px;
  background: linear-gradient(var(--vn-gold), var(--vn-gold)) 9px 50% / 6px 6px no-repeat, rgba(13, 24, 46, .7);
}
:root #resonance-select .rs-title {
  text-align: center;
  font-weight: 800;
  font-size: 40px;
  color: #f0f6ff;
  text-shadow: 0 0 26px rgba(166, 121, 255, .8);
  margin-top: 34px;
}
:root #resonance-select .rs-title::before,
:root #resonance-select .rs-title::after {
  content: "";
  display: inline-block;
  width: min(140px, 14vw);
  height: 9px;
  margin: 0 18px 8px;
  vertical-align: middle;
  background:
    linear-gradient(var(--vn-gold), var(--vn-gold)) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--vn-gold) 45%, transparent 50%, var(--vn-gold) 55%, transparent) center / 100% 1px no-repeat;
  -webkit-mask: linear-gradient(#000, #000);
  clip-path: polygon(0 45%, 46% 45%, 50% 0, 54% 45%, 100% 45%, 100% 55%, 54% 55%, 50% 100%, 46% 55%, 0 55%);
}
:root #resonance-select .rs-intro { text-align: center; color: #b4c2df; }
/* Rarity cards for the cast. */
:root #resonance-select .rs-person {
  --vn-acc: #33e3ff;
  border: 2px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #0f1c34, #0a1324) padding-box,
    linear-gradient(160deg, var(--vn-acc), rgba(20, 33, 61, .4) 40%, rgba(20, 33, 61, .4) 60%, var(--vn-acc)) border-box;
  box-shadow: 0 16px 40px -22px #000;
  transition: box-shadow .3s, filter .3s;
}
:root #resonance-select .rs-person:nth-child(1) { --vn-acc: #33e3ff; }
:root #resonance-select .rs-person:nth-child(2) { --vn-acc: #ff4fa3; }
:root #resonance-select .rs-person:nth-child(3) { --vn-acc: #aa82ff; }
:root #resonance-select .rs-person:nth-child(4) { --vn-acc: #ff8a4c; }
:root #resonance-select .rs-person img {
  border-radius: 10px 10px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
:root #resonance-select .rs-caption::before {
  display: block;
  margin-bottom: 2px;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: .18em;
  color: var(--vn-acc);
  opacity: .9;
}
:root #resonance-select .rs-person:nth-child(1) .rs-caption::before { content: "ディレン" / ""; }
:root #resonance-select .rs-person:nth-child(2) .rs-caption::before { content: "エジェ" / ""; }
:root #resonance-select .rs-person:nth-child(3) .rs-caption::before { content: "デニス" / ""; }
:root #resonance-select .rs-person:nth-child(4) .rs-caption::before { content: "アデ" / ""; }
:root #resonance-select .rs-caption {
  position: relative;
  margin-top: -34px;
  padding: 10px 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(9, 18, 34, .9) 36%);
}
:root #resonance-select .rs-name { font-weight: 800; font-size: 26px; color: #f0f6ff; text-shadow: 0 2px 10px #000; }
:root #resonance-select .rs-name::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--vn-acc), transparent);
}
:root #resonance-select .rs-trait { color: #b9c6e2; letter-spacing: .03em; }
:root #resonance-select .rs-person[aria-pressed="true"] {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #142646, #0c1630) padding-box,
    linear-gradient(160deg, #e6fdff, var(--vn-acc) 30%, #e6fdff 50%, var(--vn-acc) 70%, #e6fdff) border-box;
  box-shadow: 0 0 0 1px rgba(210, 250, 255, .4), 0 0 34px -4px var(--vn-acc), 0 20px 50px -20px #000;
  animation: vn-chosen 2.4s ease-in-out 2;
}
@keyframes vn-chosen {
  50% { box-shadow: 0 0 0 1px rgba(210, 250, 255, .6), 0 0 46px 0 var(--vn-acc), 0 20px 50px -20px #000; }
}
/* Sparkles burst when a card becomes the chosen one (the animation restarts on each choice). */
:root #resonance-select .rs-person[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(2px 14px at 50% 50%, #fff 40%, transparent 62%) 14% 20% / 28px 28px no-repeat,
    radial-gradient(14px 2px at 50% 50%, #fff 40%, transparent 62%) 14% 20% / 28px 28px no-repeat,
    radial-gradient(2px 18px at 50% 50%, #a4f3ff 40%, transparent 62%) 86% 30% / 36px 36px no-repeat,
    radial-gradient(18px 2px at 50% 50%, #a4f3ff 40%, transparent 62%) 86% 30% / 36px 36px no-repeat,
    radial-gradient(1.6px 11px at 50% 50%, #fff 40%, transparent 62%) 80% 58% / 22px 22px no-repeat,
    radial-gradient(11px 1.6px at 50% 50%, #fff 40%, transparent 62%) 80% 58% / 22px 22px no-repeat,
    radial-gradient(2px 15px at 50% 50%, #a4f3ff 40%, transparent 62%) 10% 64% / 30px 30px no-repeat,
    radial-gradient(15px 2px at 50% 50%, #a4f3ff 40%, transparent 62%) 10% 64% / 30px 30px no-repeat,
    radial-gradient(circle, rgba(210, 250, 255, .9), transparent 60%) 14% 20% / 12px 12px no-repeat,
    radial-gradient(circle, rgba(210, 250, 255, .9), transparent 60%) 86% 30% / 14px 14px no-repeat,
    radial-gradient(circle, rgba(210, 250, 255, .9), transparent 60%) 10% 64% / 12px 12px no-repeat,
    radial-gradient(3px 3px at 50% 50%, rgba(210, 250, 255, .95), transparent) 60% 30% / 8px 8px no-repeat,
    radial-gradient(3px 3px at 50% 50%, rgba(210, 250, 255, .95), transparent) 30% 46% / 8px 8px no-repeat,
    radial-gradient(3px 3px at 50% 50%, rgba(210, 250, 255, .95), transparent) 90% 40% / 8px 8px no-repeat,
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, rgba(160, 240, 255, .12) 52%, transparent 65%) var(--vn-sweep) 0 / 300% 100% no-repeat;
  animation: vn-twinkle 1.8s ease-in-out 1 forwards, vn-sweep 4s ease-in-out 1;
}
@keyframes vn-twinkle { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
:root #resonance-select .rs-mark {
  top: 12px;
  right: 10px;
  padding: 4px 10px 4px 20px;
  font-size: 10px;
  letter-spacing: .18em;
  color: #04121c;
  border-radius: 2px;
  background: linear-gradient(#04121c, #04121c) 8px 50% / 5px 5px no-repeat, linear-gradient(90deg, #a4f3ff, var(--vn-acc));
  box-shadow: 0 0 0 1px #e0fcff, 0 0 16px -2px var(--vn-acc);
  z-index: 4;
}
/* Dialogue: the chosen character's description, with the selection label as the name plate. */
:root #resonance-select .rs-bottom { align-items: stretch; margin-top: 34px; }
:root #resonance-select .rs-bottom > section:first-child {
  position: relative;
  padding: 26px 22px 18px 104px;
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0L10 5L5 10L0 5Z' fill='%2333e3ff' fill-opacity='.6'/%3E%3C/svg%3E") right 18px bottom 16px / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(18, 33, 63, .94), rgba(8, 17, 32, .96));
  box-shadow: inset 0 0 0 3px rgba(8, 17, 32, .9), inset 0 0 0 4px var(--vn-line-soft), 0 18px 40px -20px #000;
}
:root #resonance-select .rs-bottom > section:first-child::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 72px;
  height: 84px;
  border-radius: 2px;
  background: var(--vn-face) 50% 8% / 190% auto no-repeat;
  box-shadow: 0 0 0 2px var(--vn-char), 0 0 0 4px rgba(8, 17, 32, .9), 0 0 18px -2px var(--vn-char);
  pointer-events: none;
}
:root #resonance-select #rs-selected {
  position: absolute;
  top: -13px;
  left: 92px;
  padding: 4px 18px 4px 14px;
  font-size: 11px;
  letter-spacing: .18em;
  color: #04121c;
  background: linear-gradient(90deg, #a4f3ff, var(--vn-char) 70%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
:root #resonance-select .rs-desc { color: var(--vn-cream); font-size: 15px; margin-top: 4px; }
:root #resonance-select .rs-bottom > section:last-child {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background: var(--vn-corners), rgba(12, 23, 44, .9);
}
:root #resonance-select .rs-bottom > section:last-child label { color: var(--vn-gold); font-size: 12px; letter-spacing: .08em; }
:root #resonance-select .rs-start { font-size: 16px; padding: 16px; }
:root #resonance-select .rs-note { border-top-color: var(--vn-line-soft); color: #a9b8d6; text-align: center; }
:root .save-status { background: transparent; color: #a9b8d6; }

/* ------------------------------------------------------------------ 6. Academy chapter */
:root #chapter { background: transparent; }
:root #chapter header { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--vn-line), transparent) 1; }
:root #chapter .brand {
  letter-spacing: .3em;
  background: linear-gradient(180deg, #e0fcff 10%, #33e3ff 60%, #127fa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root #chapter header .small { color: var(--vn-gold); }
:root #chapter .chapter-step {
  width: fit-content;
  padding: 5px 14px 5px 26px;
  border: 1px solid var(--vn-line);
  border-radius: 3px;
  font-size: 11px;
  color: var(--vn-gold-hi);
  background: linear-gradient(var(--vn-gold), var(--vn-gold)) 11px 50% / 6px 6px no-repeat, rgba(13, 24, 46, .75);
}
:root #chapter h1 { font-weight: 800; color: #f0f6ff; text-shadow: 0 0 26px rgba(166, 121, 255, .8); }
:root #chapter h1 + p, :root #chapter p { color: #b9c6e2; }
:root #chapter .tag { color: var(--vn-teal); }
:root #chapter .small { color: var(--vn-gold); }
:root #chapter label { color: var(--vn-gold); font-size: 12px; letter-spacing: .06em; }

/* The map is a framed game screen. */

/* The game's own change toast and vault chips wear the same frame (colours only; their motion is untouched). */
:root .vfx-chip {
  border: 1px solid rgba(51, 227, 255, .6);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(20, 35, 68, .96), rgba(8, 16, 30, .96));
  box-shadow: inset 0 0 0 2px rgba(8, 16, 30, .9), inset 0 0 0 3px rgba(51, 227, 255, .2), 0 10px 30px rgba(0, 0, 0, .6);
  font-family: var(--vn-body);
}

/* HUD gauges for SHIELD and RESERVE (the nodes' own ::before/::after belong to game-fx). */

/* Wave narration: a dialogue box that slides over the (hidden) HUD while the wave plays,
   with the character's cut-in portrait standing at its left. */

/* Character name plates (decorative, empty alt text). */
:root[data-vn-char="diren"] :is(.workspace-page #first-example)::after { content: "DIREN" / ""; }
:root[data-vn-char="ece"]   :is(.workspace-page #first-example)::after { content: "ECE" / ""; }
:root[data-vn-char="eric"]  :is(.workspace-page #first-example)::after { content: "DENIS" / ""; }
:root[data-vn-char="ade"]   :is(.workspace-page #first-example)::after { content: "ADE" / ""; }

/* Rule console = command menu. */

/* Status line after each block: a short dialogue box with the name plate and continue cue. */

/* Lesson note = the main VN dialogue: character standing at the left, plate, text, cue. */

/* Prologue speech and team channel lines read as dialogue too. */

:root #chapter .foot { border-top-color: var(--vn-line-soft); color: #a3b2d0; }

/* ------------------------------------------------------------------ 7. Vault tools */
:root .workspace-page main header { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--vn-line), transparent) 1; }
:root .workspace-page .eyebrow { color: var(--vn-gold); font-size: 11px; }
:root .workspace-page h1 { font-weight: 800; color: #f0f6ff; text-shadow: 0 0 26px rgba(166, 121, 255, .8); }
:root .workspace-page h2 { font-weight: 800; color: #f0f6ff; }
:root .workspace-page p { color: #b9c6e2; }
:root .workspace-page .muted { color: #acbad8; }
:root .workspace-page a { color: var(--vn-gold-hi); }
:root .workspace-page label { color: var(--vn-cream); }
:root .workspace-page .tool-navigation a { border-radius: 2px; color: #b9c6e2; }
:root .workspace-page .tool-navigation [aria-current=page] { background: linear-gradient(180deg, #a4f3ff, #33e3ff); border-color: #e0fcff; color: #04121c; }
:root .workspace-page .card {
  border: 1px solid var(--vn-line-soft);
  border-radius: 2px;
  background: rgba(12, 23, 44, .8);
}
:root .workspace-page .card.active {
  border: 2px solid transparent;
  background: var(--vn-corners), linear-gradient(180deg, #142646, #0c1630) padding-box, linear-gradient(150deg, #e0fcff, var(--vn-char) 35%, rgba(20, 33, 61, .4) 60%, var(--vn-char)) border-box;
  box-shadow: 0 0 30px -8px var(--vn-char);
}
:root .workspace-page .panel {
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background: var(--vn-corners), linear-gradient(180deg, rgba(20, 35, 66, .94), rgba(10, 19, 36, .95));
  box-shadow: inset 0 0 0 3px rgba(10, 19, 36, .7), 0 20px 50px -30px #000;
}
:root .workspace-page details.fine-print { background: rgba(12, 23, 44, .85); border-color: var(--vn-line-soft) var(--vn-line-soft) var(--vn-line-soft) var(--vn-gold); }
:root .workspace-page .workspace-shortcuts { background: rgba(8, 16, 32, .94); border-bottom-color: var(--vn-line); }
/* The guided example is Diren talking you through it. */
:root .workspace-page #workspace #first-example {
  position: relative;
  margin-top: 16px;
  padding: 26px 44px 18px 150px;
  min-height: 176px;
  border: 1px solid rgba(51, 227, 255, .6);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0L10 5L5 10L0 5Z' fill='%2333e3ff' fill-opacity='.6'/%3E%3C/svg%3E") right 18px bottom 16px / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(18, 33, 63, .96), rgba(8, 16, 30, .97));
  box-shadow: inset 0 0 0 3px rgba(8, 16, 30, .9), inset 0 0 0 4px var(--vn-line-soft), 0 18px 40px -20px #000;
}
:root .workspace-page #workspace #first-example::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 136px;
  height: calc(100% + 26px);
  max-height: 210px;
  background: var(--vn-face) 50% 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 74%, transparent), linear-gradient(to right, transparent, #000 16%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 74%, transparent), linear-gradient(to right, transparent, #000 16%, #000 80%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
:root .workspace-page #workspace #first-example::after {
  position: absolute;
  top: -13px;
  left: 150px;
  padding: 4px 18px 4px 14px;
  font: 700 11px/1.3 var(--vn-display);
  letter-spacing: .2em;
  color: #04121c;
  background: linear-gradient(90deg, #a4f3ff, var(--vn-char) 70%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
:root .workspace-page #first-example h2 { font: 800 19px/1.4 var(--vn-title) !important; color: var(--vn-gold-hi); }
:root .workspace-page #first-example p { color: var(--vn-cream); }
/* HUD numbers. */
:root .workspace-page .stats { gap: 10px; }
:root .workspace-page .stats > div {
  position: relative;
  flex: 1 1 150px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(51, 227, 255, .5);
  border-radius: 2px;
  background: var(--vn-corners), radial-gradient(ellipse at 50% 130%, rgba(51, 227, 255, .16), transparent 70%), linear-gradient(160deg, #1f2350, #081120);
}
:root .workspace-page .stats span { font-size: 10px; letter-spacing: .18em; color: var(--vn-gold); }
:root .workspace-page .stats strong {
  margin-top: 4px;
  font: 800 27px/1.15 var(--vn-body) !important;
  color: var(--vn-gold-hi);
  text-shadow: 0 0 14px rgba(51, 227, 255, .6), 0 2px 0 #000;
  font-variant-numeric: tabular-nums;
}
:root .workspace-page .stats > div:nth-child(2) strong { color: #dcfff3; text-shadow: 0 0 14px rgba(108, 245, 203, .65), 0 2px 0 #000; }
:root .workspace-page .stats > div:nth-child(2) { background: var(--vn-corners), radial-gradient(ellipse at 50% 130%, rgba(108, 245, 203, .16), transparent 70%), linear-gradient(160deg, #1a2a50, #0a1428); }
/* Quest steps. */
:root .workspace-page #rule-progress li.badge { border-radius: 3px; border-color: var(--vn-line); color: var(--vn-cream); background: rgba(8, 16, 32, .7); }
:root .workspace-page #rule-progress li[aria-current=step] { background: linear-gradient(180deg, #a4f3ff, #33e3ff) !important; color: #04121c; border-color: #e0fcff !important; box-shadow: 0 0 16px -2px var(--vn-lantern); }
:root .workspace-page #state.badge { border-radius: 3px; padding: 5px 14px; color: #dcfff3; border-color: var(--vn-teal); background: rgba(9, 41, 44, .7); font-size: 11px; }
/* Result screen. */
:root .workspace-page #result-headline {
  position: relative;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--vn-corners), linear-gradient(180deg, #2a2a5c, #16173a) padding-box, linear-gradient(140deg, #d6fbff, #1aa6c9 30%, #a679ff 55%, #ff4fa3 80%, #d6fbff) border-box;
  box-shadow: 0 0 40px -10px rgba(51, 227, 255, .5);
}
:root .workspace-page #result-headline::before {
  content: "" / "";
  position: absolute;
  top: -15px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font: 15px/1 var(--vn-body);
  color: #04121c;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0fcff, #33e3ff 60%, #127fa3);
  box-shadow: 0 0 0 2px #0c1630, 0 0 18px var(--vn-lantern);
}
:root .workspace-page .result-headline-eyebrow { color: var(--vn-gold); }
:root .workspace-page #result-sentence { color: #fff8ea; font-size: 17px; }
:root .workspace-page #outcome-next.notice { background: rgba(9, 41, 44, .6); border-color: rgba(108, 245, 203, .4); }

/* ------------------------------------------------------------------ 8. NFT passes as rarity cards (mint / passes) */
:root .mint-layout .step {
  border: 1px solid var(--vn-line);
  border-radius: 2px;
  background: var(--vn-corners), linear-gradient(180deg, rgba(20, 35, 66, .94), rgba(10, 19, 36, .95));
  box-shadow: inset 0 0 0 3px rgba(10, 19, 36, .7), 0 20px 50px -30px #000;
}
:root .mint-layout .step h2, :root .mint-hero h1 { color: #f0f6ff; font-weight: 800; }
:root .mint-hero .badge { font-family: var(--vn-display) !important; color: var(--vn-gold-hi); border-color: var(--vn-line); background: rgba(13, 24, 46, .7); }
:root .mint-layout :is(#account, #holdings, #fee) { background: rgba(6, 14, 28, .7); border-color: var(--vn-line-soft); color: var(--vn-cream); }
:root .mint-layout :is(#connect, #claim):not(:disabled) {
  background: linear-gradient(180deg, #a4f3ff 0%, #33e3ff 46%, #1aa6c9 54%, #2fd3f0 100%);
  color: #04121c;
  border: 1px solid #bdf6ff;
  box-shadow: inset 0 0 0 2px rgba(51, 227, 255, .9), inset 0 0 0 3px rgba(6, 40, 60, .45), 0 6px 18px -8px rgba(51, 227, 255, .7);
}
:root .pass-card #preview {
  padding: 5px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(140deg, #d6fbff, #1aa6c9 30%, #a679ff 55%, #ff4fa3 80%, #d6fbff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 24px 60px -18px #000, 0 0 50px -6px rgba(51, 227, 255, .6);
  animation: vn-pass 4.5s ease-in-out 2;
}
@keyframes vn-pass { 50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 24px 60px -18px #000, 0 0 64px 0 rgba(51, 227, 255, .8); } }
:root img[src*="nft/"] {
  border-radius: 2px;
  border: 2px solid transparent;
  background: linear-gradient(140deg, #d6fbff, #1aa6c9 30%, #a679ff 55%, #ff4fa3 80%, #d6fbff) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 20px 50px -20px #000, 0 0 40px -12px rgba(51, 227, 255, .55);
}

/* Every decoration ignores the pointer, so it can never intercept a click. */
:root :is(.hero .intro, .hero .portrait, .hero .eyebrow, .section, #characters .card h3, #resonance-select .rs-title, #resonance-select .rs-person, #resonance-select .rs-caption, #resonance-select .rs-name, #resonance-select .rs-bottom > section, .workspace-page #first-example, .workspace-page #result-headline, #site-bar)::before,
:root :is(.hero .portrait, .section, #resonance-select .rs-title, #resonance-select .rs-person, #resonance-select .rs-name, .workspace-page #first-example, #site-bar)::after,
:root :is(#resonance-select #rs-selected) { pointer-events: none; }

/* ------------------------------------------------------------------ 9. Script-made layer: neon motes + scene wipe */
.vn-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.vn-layer i {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  background: var(--vn-neon);
  box-shadow: 0 0 6px 1px rgba(51, 227, 255, .8);
  opacity: 0;
  animation: vn-mote 14s linear 2;
  will-change: transform, opacity;
}
.vn-layer i:nth-child(even) { background: var(--vn-hot); box-shadow: 0 0 6px 1px rgba(255, 79, 163, .8); }
.vn-layer i:nth-child(3n) { background: var(--vn-ultra); box-shadow: 0 0 6px 1px rgba(166, 121, 255, .8); }
.vn-layer i:nth-child(1) { left: 8%; animation-delay: -2s; }
.vn-layer i:nth-child(2) { left: 22%; animation-delay: -9s; animation-duration: 18s; }
.vn-layer i:nth-child(3) { left: 41%; animation-delay: -5s; width: 3px; height: 3px; }
.vn-layer i:nth-child(4) { left: 57%; animation-delay: -12s; animation-duration: 16s; }
.vn-layer i:nth-child(5) { left: 73%; animation-delay: -7s; width: 4px; height: 4px; }
.vn-layer i:nth-child(6) { left: 88%; animation-delay: -1s; animation-duration: 20s; }
@keyframes vn-mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translate(40px, -85vh); opacity: 0; }
}
.vn-wipe { position: fixed; inset: 0; z-index: 35; overflow: hidden; pointer-events: none; visibility: hidden; }
.vn-wipe.run { visibility: visible; }
/* A curtain that already covers the new scene on its first frame, then slides off to the right. */
.vn-wipe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45vw;
  width: 160vw;
  background:
    repeating-linear-gradient(0deg, rgba(164, 243, 255, .05) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, transparent 14%, rgba(255, 79, 163, .65) 16.6%, #a4f3ff 17.8%, #33e3ff 18.1%, #0b1630 18.5%, #060912 40% 100%);
}
.vn-wipe.run::before { animation: vn-wipe 1s cubic-bezier(.55, 0, .25, 1) both; }
.vn-wipe::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 24px;
  font: 700 clamp(26px, 4vw, 44px)/1.25 var(--vn-title);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #eef6ff;
  text-shadow: 0 0 24px rgba(51, 227, 255, .7), 0 0 2px #fff;
  opacity: 0;
}
.vn-wipe.run::after, .vn-wipe.run b { animation: vn-eyecatch 1s ease both; }
.vn-wipe b {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - clamp(46px, 5.4vw, 64px));
  text-align: center;
  font: 700 12px/1.2 var(--vn-display);
  letter-spacing: .3em;
  color: var(--vn-char);
  opacity: 0;
}
@keyframes vn-eyecatch { 0% { opacity: 0; } 12%, 46% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes vn-wipe { 0%, 50% { transform: translateX(0); } 100% { transform: translateX(135vw); } }

/* ------------------------------------------------------------------ 10. Phones */
@media (max-width: 760px) {
  :root .hero .intro { font-size: 15px; padding: 20px 38px 16px 16px; }
  :root .hero .portrait { transform: none; }
  :root #resonance-select .rs-title { font-size: 30px !important; }
  :root #resonance-select .rs-title::before, :root #resonance-select .rs-title::after { width: 34px; margin: 0 10px 8px; }
  :root #resonance-select .rs-name { font-size: 21px; }
  :root #resonance-select .rs-bottom > section:first-child { padding: 24px 16px 16px 92px; }
  :root #resonance-select .rs-bottom > section:first-child::before { left: 12px; width: 64px; height: 76px; }
  :root #resonance-select #rs-selected { left: 80px; font-size: 10px; }
  :root #resonance-select .rs-top { flex-wrap: wrap; }
  :root #resonance-select .rs-step { flex-basis: 100%; max-width: none; padding: 0; border: 0; background: none; letter-spacing: .1em; font-size: 10px; }
  :root #resonance-select .rs-caption::before { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 650px) {
  
  
  
  
  
  
  :root .workspace-page #workspace #first-example { padding: 24px 16px 30px 98px; }
  :root .workspace-page #workspace #first-example::before { width: 96px; height: 132px; max-height: none; left: 0; bottom: auto; top: 18px; }
  :root .workspace-page #workspace #first-example::after { left: 98px; }
  
  :root .workspace-page .stats > div { flex-basis: 100px; padding: 8px 10px 10px; }
  :root .workspace-page .stats strong { font-size: 21px !important; }
}

/* ------------------------------------------------------------------ 11. Reduced motion: keep the look, drop the movement */
@media (prefers-reduced-motion: reduce) {
  :root :is(.hero .intro, .hero .portrait, #resonance-select .rs-person, #resonance-select .rs-bottom > section, .workspace-page #first-example, #resonance-select .rs-start, .hero .actions .button, #character-enter, .workspace-page #example-next, .pass-card #preview),
:root :is(.hero .portrait, #resonance-select .rs-person)::before,
:root :is(.hero .portrait, #resonance-select .rs-person)::after { animation: none !important; }
  .vn-layer, .vn-wipe { display: none !important; }
}

/* One portrait per view: when the scene already shows the large character portrait, the note below drops its cut-in. */

/* ------------------------------------------------------------------ 12. Reduced motion for the grid floor */
@media (prefers-reduced-motion: reduce) { :root body::after { animation: none; } }

/* ------------------------------------------------------------------ 13. Pages with their own palettes (home, mint, My Resonance, vaults) */
/* The theme loads last, so redefining the pages' colour variables here turns their accents neon without touching their rules. */
:root {
  --gold: #33e3ff;
  --mint: #33e3ff;
  --mint-ink: #04121c;
  --rose: #ff4fa3;
  --bg: #060912;
  --panel: rgba(11, 20, 37, .88);
  --panel-2: rgba(21, 34, 58, .88);
  --line: rgba(51, 227, 255, .22);
  --line-strong: rgba(51, 227, 255, .42);
  --ink: #e6eeff;
  --muted: #9fb0d8;
}
:root :is(.mint-page, body:has(#lesson-count)) { background: transparent !important; }
/* Glass panels with a thin neon edge. */
:root :is(.mint-page .step, body:has(#lesson-count) :is(.wallet, .card, .op)) {
  background: var(--vn-corners), linear-gradient(145deg, rgba(21, 34, 58, .82), rgba(8, 15, 29, .9));
  border: 1px solid rgba(51, 227, 255, .26);
  border-radius: 2px;
  box-shadow: inset 0 0 30px rgba(51, 227, 255, .04), 0 18px 50px -24px #000;
  backdrop-filter: blur(10px);
}
:root body:has(#lesson-count) :is(.wallet, .card) { --vn-c: color-mix(in srgb, var(--vn-char) 85%, transparent); }
:root body:has(#lesson-count) .op { --vn-c: var(--op-tone); }
:root .mint-page .badge { border-radius: 2px; border-color: rgba(51, 227, 255, .4); color: var(--vn-neon); font-family: var(--vn-display) !important; }
:root .mint-page .pass-card #preview { border-radius: 2px; border-color: rgba(51, 227, 255, .35); box-shadow: 0 0 40px -10px rgba(51, 227, 255, .5), 0 18px 50px #0008; }
/* Their buttons follow the neon command buttons. */
:root :is(.mint-page button, .mint-page .next-link, body:has(#lesson-count) :is(button, .primary)):not(:where(#site-bar *, #tour-card *, #terms-panel *)) {
  background: var(--vn-neon);
  color: #04121c;
  border: 1px solid var(--vn-neon);
  border-radius: 2px;
  box-shadow: 0 0 22px -6px rgba(51, 227, 255, .7);
  font-family: var(--vn-display) !important;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
:root :is(.mint-page button, body:has(#lesson-count) button):disabled:not(:where(#site-bar *, #tour-card *, #terms-panel *)) {
  background: rgba(13, 21, 38, .6);
  color: #7f8fae;
  border: 1px dashed rgba(135, 150, 180, .45);
  box-shadow: none;
}
:root :is(.mint-page, body:has(#lesson-count)) :is(select, input[type=text]):not(:where(#site-bar *, #tour-card *, #terms-panel *)) { border-radius: 2px; background: #060c19; border-color: #52617e; }
:root body:has(#lesson-count) .summary div { border-left-color: var(--vn-neon); background: linear-gradient(90deg, rgba(51, 227, 255, .07), transparent 70%); }
:root body:has(#lesson-count) .summary strong { font-family: var(--vn-title) !important; color: #f0f6ff; text-shadow: 0 0 16px rgba(51, 227, 255, .35); }
:root body:has(#lesson-count) .card img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(51, 227, 255, .45), 0 0 18px -6px rgba(51, 227, 255, .6); }
:root body:has(#lesson-count) nav a:first-child { font-family: var(--vn-display) !important; color: var(--vn-neon); text-shadow: 0 0 12px rgba(51, 227, 255, .5); }

/* The academy map: the same drawing, graded to a neon night (presentation only; the canvas pixels are untouched). */
:root #chapter .defense-city { filter: url(#vn-neon-grade) contrast(1.12) saturate(1.25); }

/* Character cards lean toward the pointer, like the Nexus operator cards. */
:root :is(#resonance-select .rs-person, #characters .card) { transition: transform .35s ease, box-shadow .3s, filter .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root :is(#resonance-select .rs-person, #characters .card):hover {
    transform: perspective(900px) rotateX(var(--vn-tilt-x, 0deg)) rotateY(var(--vn-tilt-y, -4deg)) translateY(-6px);
    transition: transform .12s ease-out, box-shadow .3s, filter .3s;
  }
  /* Neon glare that follows the pointer (anime-theme.js sets the position). */
  :root :is(#resonance-select .rs-person, #characters .card)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    background:
      radial-gradient(circle at var(--vn-glare-x, 50%) var(--vn-glare-y, 30%), rgba(164, 243, 255, .3), transparent 42%),
      linear-gradient(115deg, transparent 38%, rgba(255, 79, 163, .14) 50%, transparent 62%);
    mix-blend-mode: screen;
  }
  :root :is(#resonance-select .rs-person, #characters .card):hover::before { opacity: 1; }
}

/* Phones: long capitalised words (Turkish especially) must fit the line instead of breaking mid-word. */
@media (max-width: 480px) {
  :root body :is(main, #chapter, #resonance-select) h1 { font-size: min(8.2vw, 34px) !important; letter-spacing: .01em; }
}

/* ------------------------------------------------------------------ 3D depth (depth.js) */
/* Holographic pass (mint): thickness from four stacked edge layers, a glare, a slow float and a turn on change. */
:root .holo-stage { display: block; width: 100%; max-width: 300px; perspective: 1100px; margin: 18px auto 8px; }
@media (max-width: 860px) { :root .holo-stage { max-width: 240px; } }
:root .holo { position: relative; display: block; transform-style: preserve-3d;
  transform: rotateX(var(--vn-tilt-x, 0deg)) rotateY(var(--vn-tilt-y, -6deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1); animation: holo-float 7s ease-in-out infinite;
  --holo-c: #33e3ff; --holo-c2: #a679ff; }
:root .holo[data-tone=ece] { --holo-c: #ff4fa3; --holo-c2: #ffb3d6; }
:root .holo[data-tone=denis] { --holo-c: #aa82ff; --holo-c2: #33e3ff; }
:root .holo[data-tone=ade] { --holo-c: #ff8a4c; --holo-c2: #ffd27a; }
:root .holo:hover { transition: transform .12s ease-out; }
:root .mint-page .pass-card .holo > #preview { position: relative; display: block; width: 100%; max-width: none; margin: 0; transform: translateZ(1px); backface-visibility: hidden; -webkit-backface-visibility: hidden; animation: none; }
:root .holo-edge { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(155deg, var(--holo-c), #101a35 55%, var(--holo-c2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--holo-c) 60%, transparent); }
:root .holo-edge:nth-child(1) { transform: translateZ(-2px); }
:root .holo-edge:nth-child(2) { transform: translateZ(-4px); }
:root .holo-edge:nth-child(3) { transform: translateZ(-6px); }
:root .holo-edge:nth-child(4) { transform: translateZ(-8px); box-shadow: 0 30px 60px -20px #000, 0 0 46px -8px var(--holo-c); }
:root .holo-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateZ(2px); mix-blend-mode: screen;
  background: radial-gradient(circle at var(--vn-glare-x, 28%) var(--vn-glare-y, 18%), rgba(214, 251, 255, .32), transparent 46%),
    linear-gradient(115deg, transparent 32%, color-mix(in srgb, var(--holo-c) 22%, transparent) 46%, color-mix(in srgb, var(--holo-c2) 18%, transparent) 54%, transparent 68%);
  background-size: 100% 100%, 260% 100%; background-position: 0 0, var(--vn-glare-x, 30%) 0; opacity: .8; }
:root .holo-stage::after { content: ""; display: block; height: 22px; margin: 14px 12% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--holo-c, #33e3ff) 35%, transparent), transparent); filter: blur(2px); }
:root .holo.holo-turn { animation: holo-turn .9s cubic-bezier(.2, .8, .2, 1), holo-float 7s ease-in-out .9s infinite; }
@keyframes holo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes holo-turn { from { rotate: y -180deg; } to { rotate: y 0deg; } }

/* Pass rack (My Resonance): four passes on a turning ring; held passes glow, finished lessons are lit. */
:root .pass-rack { display: none; }
/* The header keeps room for the rack from the first paint (static CSS), so adding it later moves nothing. */
@media (min-width: 861px) {
  :root body:has(#lesson-count) main > header { position: relative; padding-right: 400px; padding-bottom: 56px; min-height: 250px; box-sizing: border-box; }
  :root .pass-rack { display: block; position: absolute; right: 0; top: 8px; bottom: 20px; width: 380px; perspective: 1000px; }
}
:root .rack-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: rack-spin 36s linear infinite; }
:root .pass-rack:hover .rack-ring, :root .pass-rack.rack-paused .rack-ring { animation-play-state: paused; }
:root .rack-card { position: absolute; left: -62px; top: -83px; width: 124px; height: 166px; transform: rotateY(calc(var(--i) * 90deg)) translateZ(150px); }
:root .rack-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(159, 176, 216, .35); filter: grayscale(.55) brightness(.6) saturate(.8); transition: filter .4s, box-shadow .4s; }
:root .rack-card[data-state=done] img { filter: none; box-shadow: 0 0 0 1px rgba(164, 243, 255, .6); }
:root .rack-card[data-state=held] img { filter: saturate(1.15); box-shadow: 0 0 0 1px #a4f3ff, 0 0 26px -2px #33e3ff, 0 0 60px -10px #ff4fa3; }
:root .rack-floor { position: absolute; left: 50%; bottom: -46px; width: 340px; height: 70px; margin-left: -170px; border-radius: 50%; border: 1px solid rgba(51, 227, 255, .3); box-shadow: 0 0 30px rgba(51, 227, 255, .18), inset 0 0 30px rgba(166, 121, 255, .2); transform: rotateX(70deg); }
@keyframes rack-spin { from { transform: rotateX(-8deg) rotateY(0deg); } to { transform: rotateX(-8deg) rotateY(-360deg); } }

/* Reveal: cards below the first screen rise into place once (depth.js marks them). */
:root .reveal-wait { opacity: 0; }
:root .reveal-in { animation: reveal-rise .85s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms) backwards; }
:root .reveal-flat.reveal-in { animation-name: reveal-rise-flat; }
@keyframes reveal-rise-flat { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* The start scale offsets the perspective growth of the tilted card's near edge, so a card never gets wider than itself (no horizontal overflow). */
@keyframes reveal-rise { from { opacity: 0; transform: perspective(900px) translateY(48px) rotateX(14deg) scale(.9); } to { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) scale(1); } }

/* Academy learning pass: it turns in when earned and leans toward the pointer like the character cards. */
:root .rm-card { position: relative; animation: rm-card-in 1s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes rm-card-in { from { opacity: 0; transform: perspective(1000px) rotateY(-75deg) translateZ(-80px); } 60% { opacity: 1; } to { transform: perspective(1000px) rotateY(0) translateZ(0); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root .rm-card { transition: transform .35s ease, box-shadow .3s; }
  :root .rm-card:hover { transform: perspective(900px) rotateX(var(--vn-tilt-x, 0deg)) rotateY(var(--vn-tilt-y, -4deg)) translateY(-4px); transition: transform .12s ease-out, box-shadow .3s; box-shadow: 0 0 0 1px #a4f3ff, 0 24px 60px -20px #000, 0 0 40px -10px #33e3ff; }
  :root .rm-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen;
    background: radial-gradient(circle at var(--vn-glare-x, 50%) var(--vn-glare-y, 30%), rgba(164, 243, 255, .3), transparent 45%); }
  :root .rm-card:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :root .holo, :root .holo.holo-turn, :root .rack-ring, :root .reveal-in, :root .rm-card { animation: none !important; }
  :root .reveal-wait { opacity: 1 !important; }
}

/* The Rialo symbol beside links to Rialo's sites (anime-theme.js). Official file and colour; only its size follows the text. */
:root img.rialo-mark { display: inline-block; width: auto; height: 1em; margin: 0 .45em 0 0; vertical-align: -.14em; border: 0; box-shadow: none; filter: none; }
