/*
 * Noir Royale — contemporary casino salon × restrained Art Deco.
 * Obsidian, royal oxblood, antique gold and casino-felt green.
 */
:root {
  --graphite: #090a0c;
  --graphite-2: #101115;
  --graphite-3: #191a1f;
  --ivory: #f6f0e6;
  --paper: #fffaf1;
  --white: #ffffff;
  --ink: #171310;
  --muted: #756d63;
  --line: #d9ccb8;
  --cabernet: #8f1837;
  --cabernet-dark: #681027;
  --mist: #a9c3bb;
  --champagne: #c8a45d;
  --felt: #0e5847;
  --gold-line: rgba(200, 164, 93, .42);
  --shadow: 0 28px 80px rgba(9, 7, 6, .24);
}

body {
  background: var(--ivory);
  color: var(--ink);
}

.site-header {
  background: rgba(9, 10, 12, .97);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
}

.site-header--overlay {
  background: linear-gradient(180deg, rgba(5, 6, 8, .94), rgba(5, 6, 8, .44) 70%, transparent);
  border-bottom-color: rgba(200, 164, 93, .22);
  box-shadow: none;
}

.site-header--overlay.is-scrolled {
  background: rgba(9, 10, 12, .98);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  height: 82px;
}

.header-inner::before,
.header-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--champagne);
  transform: translateY(4px) rotate(45deg);
  background: var(--graphite);
}

.header-inner::before { left: max(1.5rem, calc((100vw - 1440px) / 2)); }
.header-inner::after { right: max(1.5rem, calc((100vw - 1440px) / 2)); }

.brand img {
  width: 120px;
  filter: brightness(1.18) drop-shadow(0 2px 8px rgba(200, 164, 93, .16));
}

.primary-navigation a {
  color: rgba(255, 250, 241, .76);
  letter-spacing: .08em;
}

.primary-navigation a::after {
  height: 2px;
  background: var(--champagne);
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  color: var(--champagne);
}

.support-link {
  color: #f7e9d4;
}

.support-link i,
.secondary-button i,
.footer-brand > a span {
  background: #61d49c;
  box-shadow: 0 0 0 4px rgba(97, 212, 156, .12);
}

.official-link {
  position: relative;
  overflow: hidden;
  min-width: 104px;
  text-align: center;
  background: var(--cabernet);
  color: white;
  border: 1px solid rgba(200, 164, 93, .65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.official-link:hover {
  background: var(--cabernet-dark);
  color: white;
}

.casino-hero {
  height: max(720px, 92svh);
  min-height: 720px;
  border-bottom: 1px solid var(--champagne);
}

.casino-hero > img {
  filter: saturate(.95) contrast(1.06) brightness(.86);
  object-position: center;
}

.casino-hero .cinema-shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, .94) 0%, rgba(5, 6, 8, .78) 36%, rgba(5, 6, 8, .2) 66%, rgba(5, 6, 8, .42) 100%),
    linear-gradient(0deg, rgba(5, 6, 8, .92) 0%, transparent 42%);
}

.casino-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 104px 24px 24px;
  pointer-events: none;
  border: 1px solid rgba(200, 164, 93, .22);
  clip-path: polygon(0 0, 46px 0, 54px 8px, calc(100% - 54px) 8px, calc(100% - 46px) 0, 100% 0, 100% 100%, 0 100%);
}

.eyebrow,
.section-title > span,
.support-copy > span,
.library-hero header > span,
.library-section > header > span,
.page-intro span,
.continue-reading header > span {
  color: var(--champagne);
  font-family: "Cinzel", "Manrope", sans-serif;
  letter-spacing: .19em;
}

.hero-content {
  bottom: 15%;
  width: min(700px, calc(100% - 3rem));
}

.hero-content h1 {
  max-width: 710px;
  font-size: clamp(3.05rem, 4.8vw, 5.15rem);
  line-height: 1.13;
  letter-spacing: -.035em;
  text-shadow: 0 8px 36px rgba(0, 0, 0, .5);
}

.hero-content h1 i {
  color: var(--champagne);
  font-style: normal;
  font-weight: 500;
}

.hero-summary {
  max-width: 620px;
  color: rgba(255, 250, 241, .76);
}

.primary-button,
.secondary-button {
  position: relative;
  min-height: 52px;
  border-radius: 2px;
  letter-spacing: .03em;
}

.primary-button {
  min-width: 144px;
  background: var(--cabernet);
  border: 1px solid rgba(200, 164, 93, .75);
  box-shadow: 0 12px 30px rgba(87, 9, 30, .28), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.primary-button:hover { background: #a01d40; }

.secondary-button {
  border-color: rgba(200, 164, 93, .5);
  background: rgba(9, 10, 12, .52);
}

.hero-foot {
  border-top: 1px solid rgba(200, 164, 93, .3);
  padding-top: 1rem;
  color: rgba(246, 240, 230, .64);
}

.hero-foot > span {
  color: var(--champagne);
  font-family: "Cinzel", sans-serif;
}

.casino-intro {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 7rem max(1.5rem, calc((100vw - 1320px) / 2));
  background:
    linear-gradient(90deg, rgba(200, 164, 93, .08) 1px, transparent 1px) 50% 0 / 120px 100%,
    var(--ivory);
}

.section-marker {
  border-top-color: var(--champagne);
}

.section-marker span,
.text-link,
.lead-story > span,
.story-list span,
.story-list article > a:last-child,
.library-section > header span,
.library-grid article > span,
.library-grid article > a:last-child,
.source-main .breadcrumb a,
.source-main .intro > p,
.source-main > .related > div > p,
.source-main .sections article > b,
.source-main .links a span,
.article-toc strong,
.article-note strong,
.article-callout strong,
.source-note a,
.related-reading a,
.article-related a {
  color: var(--cabernet);
}

.worlds,
.experience {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 88, 71, .16), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(143, 24, 55, .14), transparent 30%),
    #090a0c;
}

.worlds::before,
.experience::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  border: 1px solid var(--champagne);
  background: #090a0c;
  transform: translate(-50%, -6px) rotate(45deg);
}

.world-grid {
  gap: 1rem;
}

.world-card {
  border: 1px solid rgba(200, 164, 93, .26);
  background: #111216;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.world-card::after {
  background: linear-gradient(0deg, rgba(5, 6, 8, .96) 0%, rgba(5, 6, 8, .5) 43%, rgba(5, 6, 8, .05) 78%);
}

.world-card img {
  filter: saturate(.92) contrast(1.03) brightness(.78);
}

.world-card:hover {
  border-color: rgba(200, 164, 93, .68);
}

.world-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.03) brightness(.9);
}

.world-card span {
  color: var(--champagne);
  font-family: "Cinzel", "Manrope", sans-serif;
}

.world-card h3 {
  text-shadow: 0 3px 20px rgba(0, 0, 0, .5);
}

.world-card b {
  display: inline-block;
  color: #f2dba9;
  border-bottom: 1px solid rgba(200, 164, 93, .48);
  padding-bottom: .2rem;
}

.journal {
  position: relative;
}

.journal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 1320px);
  transform: translateX(-50%);
  border-top: 1px solid rgba(200, 164, 93, .55);
}

.lead-story img {
  filter: saturate(.9) contrast(1.04);
  border: 1px solid rgba(200, 164, 93, .35);
}

.story-list {
  border-top-color: var(--champagne);
}

.story-list article {
  border-bottom-color: var(--line);
}

.support-cinema {
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--champagne);
}

.support-cinema > img {
  filter: saturate(.92) contrast(1.06) brightness(.84);
}

.support-overlay {
  background: linear-gradient(90deg, rgba(5, 6, 8, .95), rgba(5, 6, 8, .74) 46%, rgba(5, 6, 8, .16));
}

.support-copy a {
  background: var(--cabernet);
  color: white;
  border: 1px solid rgba(200, 164, 93, .72);
}

.demo-panels {
  gap: 1rem;
  background: transparent;
}

.demo-panels article,
.score-panel {
  border: 1px solid rgba(200, 164, 93, .26);
  background: linear-gradient(145deg, #15161a, #0c0d10);
}

.demo-panels article {
  padding: 2.2rem;
}

.demo-panels button {
  border-color: rgba(200, 164, 93, .58);
  color: #f4dfb5;
}

.demo-panels button:hover {
  background: var(--cabernet);
  color: white;
  border-color: var(--champagne);
}

.score-panel {
  padding: 2rem;
}

.faq details,
.faq > div {
  border-color: var(--line);
}

.faq summary::after {
  color: var(--cabernet);
}

.page-intro {
  background: #111216;
  border-top-color: rgba(200, 164, 93, .2);
  border-bottom: 1px solid rgba(200, 164, 93, .32);
}

.page-intro span,
.page-intro > a b {
  color: var(--champagne);
}

.source-main .article-hero,
.source-main > .hero {
  background: #0c0d10;
  border-bottom: 1px solid var(--champagne);
}

.source-main .article-hero > img,
.source-main > .hero > img {
  filter: saturate(.92) contrast(1.04) brightness(.78);
}

.source-main .kicker,
.source-main > .hero p {
  color: var(--champagne);
  font-family: "Cinzel", "Manrope", sans-serif;
}

.source-main .article-hero-copy {
  position: relative;
}

.source-main .article-hero-copy::before {
  content: "";
  position: absolute;
  left: clamp(2rem, 5vw, 5rem);
  top: 2.2rem;
  width: 42px;
  border-top: 2px solid var(--champagne);
}

.article-content,
.article-rich {
  background: var(--paper);
}

.article-lead,
.article-note,
.article-callout {
  border-left-color: var(--cabernet);
}

.article-toc {
  background: #eee3d2;
  border-top-color: var(--champagne);
}

.article-table th {
  background: #111216;
  color: #f7e6c8;
}

.source-main .sections {
  background: rgba(200, 164, 93, .34);
}

.source-main .sections article,
.source-main .card,
.source-main .hub-card,
.source-main .info-card,
.source-main .category-card {
  border-top: 2px solid rgba(200, 164, 93, .42);
}

.continue-reading {
  background:
    radial-gradient(circle at 15% 20%, rgba(143, 24, 55, .18), transparent 30%),
    #090a0c;
  border-top: 1px solid var(--champagne);
}

.continue-reading > div {
  border-top-color: rgba(200, 164, 93, .55);
}

.continue-reading > div span {
  color: var(--champagne);
  font-family: "Cinzel", sans-serif;
}

.continue-reading > div a:hover {
  background: rgba(143, 24, 55, .16);
}

.library-hero {
  min-height: 580px;
  border-bottom: 1px solid var(--champagne);
}

.library-hero > img {
  filter: saturate(.9) contrast(1.05) brightness(.68);
}

.library-hero > div {
  background: linear-gradient(90deg, rgba(5, 6, 8, .96), rgba(5, 6, 8, .38) 58%, rgba(5, 6, 8, .18)), linear-gradient(0deg, rgba(5, 6, 8, .88), transparent 62%);
}

.library-hero h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.library-tabs {
  background: #111216;
  border-bottom-color: var(--champagne);
}

.library-tabs a {
  color: rgba(255, 250, 241, .8);
  border-right-color: rgba(200, 164, 93, .24);
}

.library-tabs a:hover {
  color: var(--champagne);
  background: rgba(143, 24, 55, .18);
}

.library-tabs a span {
  color: var(--champagne);
}

.library-section {
  border-bottom-color: var(--line);
}

.library-grid {
  background: rgba(200, 164, 93, .32);
}

.library-grid article {
  position: relative;
  border-top: 2px solid transparent;
}

.library-grid article:hover {
  border-top-color: var(--champagne);
  background: #fffdf8;
}

.featured-library-card {
  border-top-color: var(--cabernet) !important;
}

.site-footer {
  background: #07080a;
  border-top-color: var(--champagne);
}

.footer-top nav strong {
  color: var(--champagne);
  font-family: "Cinzel", "Noto Sans TC", sans-serif;
}

.footer-top nav a:hover {
  color: #f3dcae;
}

@media (min-width: 861px) and (max-width: 1100px) {
  .source-main .article-hero h1 {
    font-size: clamp(2rem, 3.3vw, 2.75rem);
    text-wrap: balance;
  }
}

@media (max-width: 860px) {
  .primary-navigation {
    background:
      radial-gradient(circle at 50% 20%, rgba(143, 24, 55, .22), transparent 35%),
      #090a0c;
  }

  .primary-navigation a {
    font-family: "Noto Serif TC", serif;
    border-bottom-color: rgba(200, 164, 93, .22);
  }

  .casino-hero .cinema-shade {
    background: linear-gradient(0deg, rgba(5, 6, 8, .98) 0%, rgba(5, 6, 8, .66) 58%, rgba(5, 6, 8, .22) 100%);
  }

  .casino-hero > img {
    object-position: 58% center;
  }

  .casino-intro {
    padding: 5.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .header-inner::before,
  .header-inner::after,
  .casino-hero::before {
    display: none;
  }

  .brand img { width: 102px; }

  .official-link {
    min-width: 86px;
    padding: .62rem .7rem;
  }

  .casino-hero {
    height: 770px;
    min-height: 700px;
  }

  .casino-hero > img {
    object-position: 62% center;
  }

  .hero-content {
    bottom: 14.5%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9.3vw, 2.5rem);
    line-height: 1.18;
  }

  .hero-content h1 i {
    display: none;
  }

  .hero-content h1 span:nth-child(2) {
    display: block;
    white-space: nowrap;
    font-size: .9em;
  }

  .hero-summary {
    color: rgba(255, 250, 241, .8);
  }

  .primary-button,
  .secondary-button {
    min-height: 50px;
  }

  .world-card {
    border-color: rgba(200, 164, 93, .34);
  }

  .support-overlay {
    background: linear-gradient(0deg, rgba(5, 6, 8, .98), rgba(5, 6, 8, .48) 62%, rgba(5, 6, 8, .18));
  }

  .score-panel {
    padding: 1.25rem;
  }

  .source-main h1 {
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .world-card:hover img { transition-duration: .55s; }
}

/*
 * Casino OS — premium future interface × digital casino lobby.
 * Technology comes from structure, glass, data rails and live states;
 * casino imagery remains visible without cheap cyberpunk neon.
 */
:root {
  --graphite: #07111f;
  --graphite-2: #0a1727;
  --graphite-3: #102238;
  --ivory: #f1f7fb;
  --paper: #f7fbfe;
  --white: #ffffff;
  --ink: #0b1827;
  --muted: #627287;
  --line: #cbd9e6;
  --cabernet: #d73378;
  --cabernet-dark: #b92061;
  --mist: #9fb7c9;
  --champagne: #25e6d1;
  --felt: #0e6f78;
  --gold-line: rgba(37, 230, 209, .28);
  --shadow: 0 24px 72px rgba(3, 15, 29, .24);
  --violet: #796cff;
  --glass: rgba(15, 34, 56, .66);
  --glass-line: rgba(185, 236, 255, .18);
}

html { background: var(--graphite); }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
}

h1, h2, h3, h4,
.source-main h1,
.source-main h2,
.source-main h3 {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  letter-spacing: -.035em;
}

.site-header,
.site-header--overlay,
.site-header--overlay.is-scrolled {
  background: rgba(5, 17, 31, .78);
  border-bottom: 1px solid rgba(113, 225, 232, .17);
  box-shadow: 0 10px 42px rgba(0, 7, 16, .2);
  backdrop-filter: blur(20px) saturate(135%);
}

.header-inner { height: 76px; }

.header-inner::before,
.header-inner::after { display: none; }

.header-inner::before {
  content: "SYS / 05";
  display: block;
  position: absolute;
  top: 50%;
  left: 151px;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  color: rgba(182, 213, 231, .5);
  font: 600 .62rem/1 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

.brand img {
  width: 116px;
  filter: brightness(1.12) drop-shadow(0 0 12px rgba(37, 230, 209, .1));
}

.primary-navigation a {
  color: rgba(225, 242, 252, .72);
  font: 600 .78rem/1 "Space Grotesk", "Noto Sans TC", sans-serif;
  letter-spacing: .04em;
}

.primary-navigation a::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  box-shadow: 0 0 8px rgba(37, 230, 209, .5);
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] { color: #eaffff; }

.system-state {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #b8f8ef;
  font: 600 .62rem/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

.system-state i,
.support-link i,
.secondary-button i,
.footer-brand > a span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(37, 230, 209, .1), 0 0 16px rgba(37, 230, 209, .72);
}

.support-link {
  color: rgba(225, 242, 252, .82);
  font-size: .76rem;
}

.official-link {
  min-width: 108px;
  color: white;
  border: 1px solid rgba(112, 234, 236, .28);
  background: linear-gradient(135deg, #d73378, #7b38c9);
  box-shadow: 0 10px 28px rgba(138, 35, 129, .23), inset 0 1px rgba(255, 255, 255, .2);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.official-link:hover { background: linear-gradient(135deg, #eb3f87, #675bf7); }

.casino-hero {
  height: max(740px, 95svh);
  min-height: 740px;
  border-bottom: 1px solid rgba(37, 230, 209, .26);
  background: var(--graphite);
}

.casino-hero > img {
  filter: saturate(.9) contrast(1.08) brightness(.75);
  object-position: center;
}

.casino-hero .cinema-shade {
  background:
    linear-gradient(90deg, rgba(5, 16, 31, .97) 0%, rgba(5, 16, 31, .84) 37%, rgba(5, 16, 31, .18) 68%, rgba(5, 16, 31, .46) 100%),
    linear-gradient(0deg, rgba(5, 16, 31, .95) 0%, transparent 48%);
}

.casino-hero::before {
  display: block;
  content: "";
  position: absolute;
  z-index: 2;
  inset: 76px 0 0;
  border: 0;
  background-image:
    linear-gradient(rgba(91, 184, 205, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 184, 205, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  clip-path: none;
  transform: none;
  pointer-events: none;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 75%);
}

.casino-hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 1.7rem;
  right: 1.7rem;
  top: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--champagne), rgba(37, 230, 209, .08) 38%, transparent 72%);
  box-shadow: 0 0 14px rgba(37, 230, 209, .2);
}

.eyebrow,
.section-title > span,
.support-copy > span,
.library-hero header > span,
.library-section > header > span,
.page-intro span,
.continue-reading header > span {
  color: var(--champagne);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-content {
  z-index: 5;
  bottom: 16.5%;
  width: min(670px, calc(100% - 3rem));
}

.hero-content h1 {
  max-width: 680px;
  color: #f2f9ff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.052em;
  text-shadow: 0 10px 42px rgba(0, 5, 15, .58);
}

.hero-content h1 i {
  color: var(--champagne);
  font-style: normal;
  font-weight: 400;
}

.hero-summary {
  max-width: 610px;
  color: rgba(221, 238, 249, .76);
  line-height: 1.9;
}

.hero-actions { gap: .75rem; }

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: 5px;
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
}

.primary-button {
  min-width: 150px;
  background: linear-gradient(135deg, #d73378, #774be7);
  border: 1px solid rgba(195, 215, 255, .25);
  box-shadow: 0 16px 36px rgba(126, 47, 176, .23), inset 0 1px rgba(255,255,255,.2);
}

.primary-button:hover { background: linear-gradient(135deg, #e64188, #655af7); }

.secondary-button {
  border-color: rgba(127, 229, 231, .3);
  background: rgba(10, 28, 47, .58);
  backdrop-filter: blur(12px);
}

.hero-hud {
  position: absolute;
  z-index: 5;
  right: max(2.5rem, calc((100vw - 1440px) / 2));
  top: 25%;
  width: 245px;
  display: grid;
  gap: .65rem;
}

.hero-hud > div {
  position: relative;
  min-height: 86px;
  padding: 1rem 1rem .85rem;
  border: 1px solid var(--glass-line);
  border-left-color: rgba(37, 230, 209, .6);
  background: linear-gradient(135deg, rgba(17, 40, 65, .76), rgba(8, 21, 37, .46));
  box-shadow: 0 14px 40px rgba(0, 5, 16, .2), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.hero-hud span,
.hero-hud em {
  display: block;
  color: #7eb7ca;
  font: 600 .6rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
}

.hero-hud b {
  display: block;
  margin-top: .42rem;
  color: #eefaff;
  font-size: 1rem;
}

.hero-hud em { margin-top: .35rem; color: var(--champagne); font-style: normal; }
.hero-hud i { position: absolute; right: 1rem; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 14px var(--champagne); }

.hero-foot {
  z-index: 5;
  border-top: 1px solid rgba(103, 219, 226, .2);
  color: rgba(188, 214, 228, .62);
}

.hero-foot > span {
  color: #7bd9d0;
  font-family: "IBM Plex Mono", monospace;
}

.casino-intro {
  position: relative;
  background:
    radial-gradient(circle at 88% 16%, rgba(121, 108, 255, .09), transparent 28%),
    linear-gradient(90deg, rgba(19, 96, 119, .065) 1px, transparent 1px) 50% 0 / 96px 100%,
    #f1f7fb;
}

.casino-intro::after {
  content: "";
  position: absolute;
  right: max(1.5rem, calc((100vw - 1320px) / 2));
  top: 3rem;
  width: 96px;
  height: 1px;
  background: var(--champagne);
  box-shadow: 0 0 14px rgba(37, 230, 209, .32);
}

.section-marker { border-top-color: rgba(16, 144, 153, .52); }

.section-marker span,
.text-link,
.lead-story > span,
.story-list span,
.story-list article > a:last-child,
.library-section > header span,
.library-grid article > span,
.library-grid article > a:last-child,
.source-main .breadcrumb a,
.source-main .intro > p,
.source-main > .related > div > p,
.source-main .sections article > b,
.source-main .links a span,
.article-toc strong,
.article-note strong,
.article-callout strong,
.source-note a,
.related-reading a,
.article-related a { color: #0a7f84; }

.worlds,
.experience {
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 230, 209, .08), transparent 28%),
    radial-gradient(circle at 86% 76%, rgba(121, 108, 255, .1), transparent 34%),
    linear-gradient(rgba(70, 136, 162, .05) 1px, transparent 1px),
    #07111f;
  background-size: auto, auto, 100% 64px, auto;
}

.worlds::before,
.experience::before {
  width: 54px;
  height: 1px;
  border: 0;
  background: var(--champagne);
  box-shadow: 0 0 18px rgba(37,230,209,.42);
  transform: translate(-50%, 0);
}

.world-grid { gap: 1rem; }

.world-card {
  overflow: hidden;
  border: 1px solid rgba(109, 188, 210, .18);
  border-top-color: rgba(37, 230, 209, .48);
  background: #0c1b2e;
  box-shadow: 0 24px 54px rgba(0, 6, 16, .25);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.world-card::before {
  content: "NODE / ACTIVE";
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  padding: .38rem .52rem;
  border: 1px solid rgba(124, 224, 230, .25);
  background: rgba(7, 20, 35, .62);
  color: #a9ece7;
  font: 600 .56rem/1 "IBM Plex Mono", monospace;
  letter-spacing: .09em;
  backdrop-filter: blur(10px);
}

.world-card::after { background: linear-gradient(0deg, rgba(4, 14, 26, .97), rgba(4, 14, 26, .4) 52%, rgba(4, 14, 26, .06) 80%); }
.world-card img { filter: saturate(.85) contrast(1.06) brightness(.78); }
.world-card:hover { border-color: rgba(37, 230, 209, .65); transform: translateY(-2px); }
.world-card:hover img { filter: saturate(1) contrast(1.06) brightness(.88); }
.world-card span { color: var(--champagne); font-family: "IBM Plex Mono", monospace; }
.world-card h3 { font-family: "Noto Sans TC", sans-serif; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.world-card b { color: #a8faf0; border-bottom-color: rgba(37, 230, 209, .38); }

.journal {
  background: #f4f8fc;
}

.journal::before {
  border-top-color: rgba(16, 144, 153, .32);
  box-shadow: 0 -1px 12px rgba(37,230,209,.08);
}

.lead-story img {
  border: 1px solid rgba(17, 129, 143, .22);
  filter: saturate(.88) contrast(1.04);
}

.story-list { border-top-color: #11949a; }
.story-list article { border-bottom-color: #cad8e5; }

.support-cinema {
  border-top: 1px solid rgba(37,230,209,.34);
  border-bottom: 1px solid rgba(37,230,209,.34);
}

.support-cinema > img { filter: saturate(.88) contrast(1.05) brightness(.8); }
.support-overlay { background: linear-gradient(90deg, rgba(4, 16, 30, .97), rgba(4, 16, 30, .74) 48%, rgba(4, 16, 30, .12)); }

.support-copy {
  padding: 2.2rem;
  border: 1px solid rgba(162, 226, 239, .15);
  background: rgba(8, 27, 46, .46);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.support-copy a {
  background: linear-gradient(135deg, #d73378, #774be7);
  border: 1px solid rgba(193, 219, 255, .22);
}

.demo-panels article,
.score-panel {
  border: 1px solid rgba(107, 190, 208, .18);
  border-top-color: rgba(37, 230, 209, .45);
  background: linear-gradient(145deg, rgba(15, 38, 63, .86), rgba(7, 18, 32, .96));
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.demo-panels button { border-color: rgba(37,230,209,.35); color: #9ff6ed; }
.demo-panels button:hover { background: rgba(37,230,209,.13); color: white; border-color: var(--champagne); }

.faq { background: #f4f8fc; }
.faq details, .faq > div { border-color: #cad8e4; }
.faq summary::after { color: #0e8f93; }

.page-intro {
  background: #09182a;
  border-top-color: rgba(37, 230, 209, .12);
  border-bottom: 1px solid rgba(37, 230, 209, .24);
}

.page-intro span,
.page-intro > a b { color: var(--champagne); }

.source-main .article-hero,
.source-main > .hero {
  background: #07111f;
  border-bottom: 1px solid rgba(37,230,209,.35);
}

.source-main .article-hero::after,
.source-main > .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(71, 162, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(71, 162, 184, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.source-main .article-hero > img,
.source-main > .hero > img { filter: saturate(.86) contrast(1.05) brightness(.75); }

.source-main .kicker,
.source-main > .hero p {
  color: var(--champagne);
  font-family: "IBM Plex Mono", monospace;
}

.source-main .article-hero-copy { z-index: 2; }
.source-main .article-hero-copy::before { width: 52px; border-top-color: var(--champagne); box-shadow: 0 0 12px rgba(37,230,209,.28); }

.article-content,
.article-rich { background: var(--paper); }

.article-lead,
.article-note,
.article-callout { border-left-color: #0d969c; }

.article-toc { background: #e8f2f8; border-top-color: #21b9b6; }
.article-table th { background: #0b2136; color: #dffbff; }
.source-main .sections { background: #d5e4ed; }
.source-main .sections article,
.source-main .card,
.source-main .hub-card,
.source-main .info-card,
.source-main .category-card { border-top: 2px solid rgba(27, 169, 170, .38); }

.continue-reading {
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 230, 209, .08), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(121, 108, 255, .1), transparent 34%),
    #07111f;
  border-top: 1px solid rgba(37,230,209,.36);
}

.continue-reading > div { border-top-color: rgba(37,230,209,.34); }
.continue-reading > div span { color: var(--champagne); font-family: "IBM Plex Mono", monospace; }
.continue-reading > div a:hover { background: rgba(37,230,209,.06); }

.library-hero {
  min-height: 600px;
  border-bottom: 1px solid rgba(37,230,209,.34);
  background: #07111f;
}

.library-hero > img { filter: saturate(.82) contrast(1.08) brightness(.7); }
.library-hero > div { background: linear-gradient(90deg, rgba(5,16,31,.97), rgba(5,16,31,.42) 60%, rgba(5,16,31,.18)), linear-gradient(0deg, rgba(5,16,31,.9), transparent 62%); }
.library-hero h1 { font-family: "Noto Sans TC", sans-serif; font-size: clamp(3.1rem, 6vw, 5.8rem); }

.library-tabs {
  background: rgba(7, 19, 33, .98);
  border-bottom-color: rgba(37,230,209,.34);
}

.library-tabs a { color: rgba(225, 242, 252, .8); border-right-color: rgba(104, 195, 211, .17); }
.library-tabs a:hover { color: var(--champagne); background: rgba(37,230,209,.06); }
.library-tabs a span { color: var(--champagne); font-family: "IBM Plex Mono", monospace; }

.library-section { border-bottom-color: #cad8e4; }
.library-grid { background: #cedde7; }
.library-grid article { border-top: 2px solid transparent; background: #f7fbfe; }
.library-grid article:hover { border-top-color: var(--champagne); background: white; }
.featured-library-card { border-top-color: var(--violet) !important; }

.site-footer {
  background: #050e1a;
  border-top-color: rgba(37,230,209,.34);
}

.footer-top nav strong { color: #8deee7; font-family: "IBM Plex Mono", "Noto Sans TC", sans-serif; }
.footer-top nav a:hover { color: var(--champagne); }

@media (max-width: 1120px) {
  .system-state { display: none; }
  .hero-hud { right: 2rem; width: 220px; }
  .hero-content { width: min(630px, 64vw); }
}

@media (max-width: 860px) {
  .header-inner::before { display: none; }
  .primary-navigation {
    background:
      linear-gradient(rgba(80, 155, 179, .06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(80, 155, 179, .06) 1px, transparent 1px),
      rgba(5, 17, 31, .98);
    background-size: 56px 56px;
    backdrop-filter: blur(24px);
  }
  .primary-navigation a { font-family: "Noto Sans TC", sans-serif; border-bottom-color: rgba(91, 193, 209, .18); }
  .casino-hero .cinema-shade { background: linear-gradient(0deg, rgba(5,16,31,.99) 0%, rgba(5,16,31,.76) 58%, rgba(5,16,31,.24) 100%); }
  .casino-hero > img { object-position: 60% center; }
  .hero-hud { display: none; }
  .hero-content { width: calc(100% - 3rem); }
  .support-copy { background: rgba(7, 22, 39, .68); }
}

@media (max-width: 600px) {
  .brand img { width: 98px; }
  .official-link { min-width: 88px; padding: .62rem .7rem; }
  .casino-hero { height: 790px; min-height: 720px; }
  .casino-hero > img { object-position: 60% center; }
  .casino-hero::after { top: 85px; left: 1rem; right: 1rem; }
  .hero-content { bottom: 15%; }
  .hero-content h1 { font-size: clamp(1.95rem, 9.1vw, 2.42rem); line-height: 1.16; letter-spacing: -.045em; }
  .hero-content h1 i { display: none; }
  .hero-content h1 span:nth-child(2) { display: block; white-space: nowrap; font-size: .9em; }
  .hero-summary { color: rgba(225, 242, 252, .8); }
  .primary-button, .secondary-button { min-height: 50px; }
  .world-card { border-color: rgba(89, 193, 209, .25); }
  .support-overlay { background: linear-gradient(0deg, rgba(5,16,31,.99), rgba(5,16,31,.55) 64%, rgba(5,16,31,.2)); }
  .support-copy { padding: 1.5rem; clip-path: none; }
  .score-panel { padding: 1.25rem; }
  .source-main h1 { text-wrap: balance; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-hud > div { animation: os-in .45s both; }
  .hero-hud > div:nth-child(2) { animation-delay: .06s; }
  .hero-hud > div:nth-child(3) { animation-delay: .12s; }
}

@keyframes os-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
