/* Twilight Geffen Arcane Sanctum — Home Login / Splash Screen Redesign */

:root {
  --sp-bulletin-h: 0px;
}

body:has(#coffee-bulletin:not([hidden])),
body.has-bulletin {
  --sp-bulletin-h: 26px;
}

/* Harmonize optional top bulletin strip and prevent clipping top controls */
#coffee-bulletin {
  background: rgba(10, 12, 26, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 193, 112, 0.28);
  color: #f3ecd9 !important;
  font: 600 13px/26px Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: 0.01em;
}

/* Defensive suppression of legacy social short-link pills */
.sp-links,
.sp-top-links {
  display: none !important;
}

#splash,
#sp-top,
#npc-dialog.over-splash {
  --sp-gold: #e6b44c;
  --sp-gold-bright: #fce5a2;
  --sp-gold-deep: #b87718;
  --sp-gold-line: rgba(232, 193, 112, 0.34);
  --sp-gold-line-strong: rgba(242, 206, 128, 0.62);
  --sp-violet: #9e7ef5;
  --sp-violet-soft: rgba(152, 118, 240, 0.2);
  --sp-ink: #f4f1ea;
  --sp-ink-2: #d3d8ec;
  --sp-ink-muted: rgba(198, 206, 232, 0.68);
  --sp-glass: linear-gradient(
    168deg,
    rgba(21, 24, 46, 0.84) 0%,
    rgba(13, 15, 31, 0.91) 56%,
    rgba(17, 15, 35, 0.94) 100%
  );
  --sp-field-bg: rgba(7, 9, 20, 0.74);
  --sp-field-border: rgba(168, 179, 218, 0.26);
  --sp-font-display: "Cinzel Decorative", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sp-font-serif: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sp-font-ui: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/* ==========================================================================
   Full-bleed Stage & Golden-Ratio Left Auth Rail (leaves Geffen Tower clear)
   ========================================================================== */

#splash {
  font-family: var(--sp-font-ui);
  background: #0c0e1c;
  display: grid;
  grid-template-columns: minmax(340px, 424px) 1fr;
  grid-template-rows: 1fr auto auto 1fr auto;
  grid-template-areas:
    ".    ."
    "logo ."
    "card ."
    ".    ."
    "foot foot";
  align-items: start;
  justify-items: stretch;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 0;
  padding:
    calc(var(--sp-bulletin-h) + max(20px, env(safe-area-inset-top)))
    max(clamp(20px, 3vw, 44px), env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(clamp(28px, 5.5vw, 88px), env(safe-area-inset-left));
}

/* Subtle decorative vertical atmospheric seam behind the left rail */
#splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 62% at 18% 50%, rgba(124, 92, 214, 0.14), transparent 72%),
    radial-gradient(ellipse 36% 42% at 16% 24%, rgba(232, 184, 88, 0.08), transparent 70%);
}

#splash.menu::before,
#splash.sp-updating::before {
  display: none;
}

/* Keep exact 80% 50% (and 66% 50% narrow) alignment with HK WebGL rune swirl */
#splash .sp-bg {
  background-position: 80% 50%;
  filter: saturate(1.16) brightness(0.88) contrast(1.06);
}

#splash .sp-veil {
  background:
    linear-gradient(
      90deg,
      rgba(9, 10, 22, 0.86) 0%,
      rgba(11, 12, 26, 0.68) 28%,
      rgba(13, 14, 30, 0.24) 50%,
      rgba(13, 14, 30, 0.02) 72%,
      rgba(9, 10, 22, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 10, 24, 0.56) 0%,
      transparent 18%,
      transparent 76%,
      rgba(8, 9, 18, 0.78) 100%
    );
}

#splash.menu .sp-veil {
  background:
    radial-gradient(ellipse 85% 80% at 50% 50%, transparent 50%, rgba(12, 9, 26, 0.64) 100%),
    linear-gradient(180deg, rgba(16, 12, 34, 0.45) 0%, transparent 28%, transparent 72%, rgba(10, 9, 22, 0.45) 100%);
}

/* Dual-tone magical firefly motes (champagne gold & Geffen amethyst) */
#splash .sp-motes i {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #fff8d6 0%, #f5cb6c 45%, transparent 75%);
  box-shadow: 0 0 8px rgba(246, 206, 112, 0.65);
}

#splash .sp-motes i:nth-child(3n) {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #f6ebff 0%, #b78cff 48%, transparent 78%);
  box-shadow: 0 0 10px rgba(173, 128, 255, 0.72);
}

#splash .sp-motes i:nth-child(5n) {
  width: 3px;
  height: 3px;
}

/* ==========================================================================
   Logo & Royal Crest
   ========================================================================== */

#splash .sp-logo {
  grid-area: logo;
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 100%;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  animation: sp-rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#splash .sp-logo-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  animation: sp-crest-float 4.2s ease-in-out infinite alternate;
}

#splash .sp-logo-name span {
  font-family: var(--sp-font-display);
  font-weight: 900;
  font-size: clamp(54px, 5.4vw, 78px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fffbe0 0%, #fbe082 36%, #e3a230 68%, #c77b14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(1.5px 0 0 #3f2205)
    drop-shadow(-1.5px 0 0 #3f2205)
    drop-shadow(0 -1.5px 0 #3f2205)
    drop-shadow(0 3px 0 #3f2205)
    drop-shadow(0 10px 22px rgba(244, 192, 82, 0.28));
}

#splash .sp-logo-name b {
  position: relative;
  margin-top: 4px;
  padding: 6px 26px 5px;
  font-family: var(--sp-font-serif);
  font-weight: 900;
  font-size: clamp(13px, 1.25vw, 17px);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  line-height: 1.1;
  color: #fff6dc;
  background: linear-gradient(180deg, rgba(66, 84, 160, 0.94) 0%, rgba(35, 45, 98, 0.96) 56%, rgba(25, 30, 72, 0.98) 100%);
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
  text-shadow: 0 1px 2px rgba(8, 10, 24, 0.85);
  box-shadow: inset 0 1px 0 rgba(252, 229, 162, 0.55), inset 0 -1px 0 rgba(230, 180, 76, 0.45);
  filter: drop-shadow(0 6px 14px rgba(8, 10, 26, 0.58));
}

#splash .sp-logo small {
  margin-top: 3px;
  padding: 0 8px;
  max-width: 400px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-wrap: balance;
  color: #e9e2d2;
  text-shadow: 0 1px 10px rgba(7, 8, 20, 0.95), 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.sp-backdrop #charselect .brand small {
  text-align: center;
  line-height: 1.4;
  border-radius: 14px;
  padding: 5px 14px;
}

#splash .sp-tags {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  width: min(260px, 76%);
}

#splash .sp-tags::before,
#splash .sp-tags::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 193, 112, 0.55));
}

#splash .sp-tags::after {
  background: linear-gradient(90deg, rgba(232, 193, 112, 0.55), transparent);
}

#splash .sp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  line-height: 1.25;
  color: var(--sp-gold-bright);
  background: rgba(18, 20, 42, 0.68);
  border: 1px solid rgba(232, 193, 112, 0.42);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 240, 200, 0.14);
  text-transform: uppercase;
}

/* ==========================================================================
   Arcane Sanctum Login Card
   ========================================================================== */

#splash .sp-card {
  grid-area: card;
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 0;
  max-height: calc(100dvh - var(--sp-bulletin-h) - 304px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  color: var(--sp-ink);
  background: var(--sp-glass);
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  border: 1px solid var(--sp-gold-line);
  box-shadow:
    0 0 0 1px rgba(10, 12, 26, 0.65),
    0 24px 64px rgba(4, 5, 16, 0.68),
    0 0 42px rgba(132, 98, 224, 0.14),
    inset 0 1px 0 rgba(255, 238, 194, 0.22);
  overflow: hidden;
  animation: sp-rise-in 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Fine gilded top specular hairline */
#splash .sp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(252, 229, 162, 0.8), transparent);
}

#splash .sp-card .ro-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--sp-font-serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f8f0da;
  text-shadow: 0 1px 4px rgba(6, 7, 18, 0.9);
  background: linear-gradient(
    180deg,
    rgba(48, 44, 88, 0.68) 0%,
    rgba(24, 25, 52, 0.54) 100%
  );
  border-bottom: 1px solid rgba(232, 193, 112, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12);
}

#splash .sp-card .ro-title::before,
#splash .sp-card .ro-title::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0;
  flex: none;
  background: linear-gradient(135deg, #fff4cc, #dfa131);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(242, 196, 94, 0.72);
}

#splash .sp-card .ro-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 20px 15px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 193, 112, 0.32) transparent;
}

#splash .sp-card .ro-body::-webkit-scrollbar {
  width: 6px;
}

#splash .sp-card .ro-body::-webkit-scrollbar-track {
  background: transparent;
}

#splash .sp-card .ro-body::-webkit-scrollbar-thumb {
  background: rgba(232, 193, 112, 0.3);
  border-radius: 999px;
}

#splash .sp-card .ro-body::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 193, 112, 0.5);
}

/* Segmented Navigation Tabs */
#splash .sp-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(6, 8, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.42);
}

#splash .sp-tabs button {
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--sp-ink-muted);
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#splash .sp-tabs button:hover:not(.active) {
  color: var(--sp-ink);
  background: rgba(255, 255, 255, 0.045);
}

#splash .sp-tabs button:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: -2px;
}

#splash .sp-tabs button.active {
  color: #fff4d1;
  background: linear-gradient(
    180deg,
    rgba(232, 186, 92, 0.24) 0%,
    rgba(138, 108, 224, 0.16) 100%
  );
  border-color: rgba(238, 199, 118, 0.46);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 240, 196, 0.2);
}

/* Tab Panes */
#splash .sp-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sp-pane-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Guest / Logged-in Resume Feature Rows */
#splash .sp-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 193, 112, 0.14);
  color: var(--sp-ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

#splash .sp-feat:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(232, 193, 112, 0.28);
  transform: translateX(2px);
}

#splash .sp-feat img {
  width: 36px;
  height: 36px;
  padding: 5px;
  flex: none;
  border-radius: 9px;
  image-rendering: pixelated;
  object-fit: contain;
  background: radial-gradient(circle at 35% 30%, rgba(232, 193, 112, 0.22), rgba(14, 17, 36, 0.9));
  border: 1px solid rgba(232, 193, 112, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.18), 0 2px 6px rgba(0, 0, 0, 0.32);
}

/* Forms & Recessed Obsidian Inputs */
#splash .sp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

#splash .sp-form:disabled {
  opacity: 0.65;
  filter: none;
}

#splash .sp-form:disabled input,
#splash .sp-form:disabled select {
  background: rgba(7, 9, 20, 0.45);
  color: var(--sp-ink-muted);
}

#splash .sp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #dde2f4;
}

#splash .sp-field input,
#splash .sp-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #f8faff;
  background: var(--sp-field-bg);
  border: 1px solid var(--sp-field-border);
  border-radius: 10px;
  padding: 10px 13px;
  min-height: 42px;
  outline: none;
  caret-color: var(--sp-gold-bright);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.38);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#splash .sp-field select {
  font-size: 13px;
  min-height: 38px;
  padding: 8px 11px;
  color-scheme: dark;
}

#splash .sp-field select option {
  background: #14172e;
  color: #f4f1ea;
}

#splash .sp-field input:hover:not(:disabled),
#splash .sp-field select:hover:not(:disabled) {
  border-color: rgba(212, 220, 245, 0.42);
  background: rgba(10, 12, 26, 0.84);
}

#splash .sp-field input:focus,
#splash .sp-field select:focus {
  border-color: var(--sp-gold);
  background: rgba(10, 13, 28, 0.92);
  box-shadow:
    0 0 0 3px rgba(230, 180, 76, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.42);
}

/* Override Chrome / Safari bright autofill highlight inside dark inputs */
#splash .sp-field input:-webkit-autofill,
#splash .sp-field input:-webkit-autofill:hover,
#splash .sp-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8faff;
  -webkit-box-shadow: 0 0 0 1000px #0d1024 inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Subtle inline password visibility toggle injected by splash-ui.js */
#splash .sp-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#splash .sp-pw-wrap input {
  padding-right: 40px;
}

#splash .sp-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(206, 214, 238, 0.62);
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

#splash .sp-pw-toggle:hover {
  color: var(--sp-gold-bright);
  background: rgba(255, 255, 255, 0.07);
}

#splash .sp-pw-toggle:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: -1px;
}

#splash .sp-pw-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Checkboxes & Security Questions */
#splash .rq-head {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 193, 112, 0.18);
  color: var(--sp-gold-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

#splash .rq-head small {
  color: var(--sp-ink-muted);
  font-size: 11px;
  font-weight: 700;
}

#splash .rq-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#splash .rq-field {
  font-size: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

#splash .sp-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
  color: var(--sp-ink-2);
  cursor: pointer;
}

#splash .sp-check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--sp-gold);
}

/* Signature Gilded Primary CTA */
#splash .ro-btn.primary.sp-submit,
#npc-dialog.over-splash .ro-btn.primary {
  position: relative;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 11px;
  font-family: var(--sp-font-ui);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1f1303;
  text-shadow: 0 1px 0 rgba(255, 245, 206, 0.45);
  background: linear-gradient(180deg, #fce49c 0%, #e7ae3e 54%, #c47f19 100%);
  border: 1px solid #f7d982;
  box-shadow:
    0 3px 0 #7b4c08,
    0 10px 24px rgba(228, 169, 59, 0.3),
    inset 0 1px 0 rgba(255, 252, 232, 0.72);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

#splash .ro-btn.primary.sp-submit:hover:not(:disabled),
#npc-dialog.over-splash .ro-btn.primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow:
    0 3px 0 #7b4c08,
    0 12px 28px rgba(242, 188, 76, 0.42),
    inset 0 1px 0 rgba(255, 252, 232, 0.85);
}

#splash .ro-btn.primary.sp-submit:active:not(:disabled),
#npc-dialog.over-splash .ro-btn.primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #7b4c08,
    0 4px 12px rgba(228, 169, 59, 0.25),
    inset 0 1px 0 rgba(255, 248, 214, 0.55);
}

#splash .ro-btn.primary.sp-submit:focus-visible,
#npc-dialog.over-splash .ro-btn.primary:focus-visible {
  outline: 2px solid #fff3cc;
  outline-offset: 2px;
}

/* Asset preload progress state on #sp-play */
#splash #sp-play:disabled {
  opacity: 1;
  color: #f4edd9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  background: rgba(16, 20, 42, 0.9);
  border-color: rgba(232, 193, 112, 0.36);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  filter: none;
}

#splash #sp-play .sp-fill,
#splash .sp-update .sp-fill {
  background: linear-gradient(90deg, rgba(146, 112, 238, 0.52), rgba(234, 182, 72, 0.72));
  transition: transform 0.18s ease-out;
}

#splash #sp-play.ready.maint {
  filter: grayscale(0.75);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Secondary / Ghost buttons */
#splash .sp-leave,
#npc-dialog.over-splash .ro-btn:not(.primary) {
  margin: 0;
  padding: 7px 18px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  color: var(--sp-ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 226, 248, 0.2);
  box-shadow: none;
  text-shadow: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

#splash .sp-leave:hover:not(:disabled),
#npc-dialog.over-splash .ro-btn:not(.primary):hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(232, 193, 112, 0.42);
  filter: none;
}

#splash .sp-link {
  align-self: center;
  border: 0;
  background: none;
  padding: 4px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #e9c983;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

#splash .sp-link:hover {
  color: #fff0c2;
  background: rgba(232, 193, 112, 0.09);
  text-decoration: none;
}

/* Semantic Notes & Callouts */
#splash .sp-error {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(196, 56, 56, 0.2);
  border: 1px solid rgba(242, 112, 112, 0.36);
  border-left: 3px solid #f27474;
  color: #ffd8d6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

#splash .sp-error:empty {
  display: none;
  padding: 0;
  border: 0;
}

#splash .sp-ok {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(132, 108, 224, 0.18);
  border: 1px solid rgba(176, 152, 250, 0.32);
  border-left: 3px solid var(--sp-violet);
  color: #ede7ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

#splash .rq-declined {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(196, 68, 68, 0.18);
  border: 1px solid rgba(242, 112, 112, 0.3);
  border-left: 3px solid #f07878;
  color: #ffe0de;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42;
}

#splash .sp-soon {
  color: #fce7a8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: rgba(230, 180, 76, 0.14);
  border: 1px solid rgba(230, 180, 76, 0.36);
  border-radius: 10px;
  padding: 8px 12px;
}

#splash .sp-note {
  color: var(--sp-ink-muted);
  font-size: 11px;
  line-height: 1.45;
  text-wrap: pretty;
  text-align: center;
}

#splash .rq-help {
  text-align: left;
  margin-top: -4px;
}

/* Maintenance / Warning Card State */
#splash .sp-maint {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 193, 112, 0.24);
  border-left: 3px solid var(--sp-gold);
}

#splash .sp-maint-when {
  color: var(--sp-gold-bright);
  font-size: 13px;
  font-weight: 900;
}

#splash .sp-maint-left {
  color: var(--sp-ink-2);
  font-size: 12px;
  font-weight: 700;
}

#splash .sp-maint.maintenance {
  padding: 20px 16px 16px;
  border-left-width: 1px;
  background: linear-gradient(180deg, rgba(40, 38, 78, 0.35), rgba(14, 16, 34, 0.55));
}

#splash .sp-maint-art {
  background: radial-gradient(circle at 50% 42%, rgba(164, 134, 248, 0.28), rgba(20, 22, 46, 0.85) 72%);
  border: 1px solid rgba(232, 193, 112, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) inset, 0 0 24px rgba(152, 118, 240, 0.22);
}

#splash .sp-maint-title {
  color: var(--sp-gold-bright);
}

#splash .sp-maint-text {
  color: var(--sp-ink-2);
}

#splash .sp-maint-dots i {
  background: var(--sp-gold);
}

/* Version Stamp */
#splash .sp-status {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(196, 205, 232, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* App Updating / Checking Fullscreen State */
#splash.sp-updating {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas: "." "logo" ".";
  justify-items: center;
  align-items: center;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, #2a2352 0%, #111328 65%, #080914 100%);
}

#splash.sp-updating .sp-update {
  width: min(340px, 82vw);
  margin-top: 18px;
}

/* ==========================================================================
   Unified Top-Right Frosted Glass Utility Capsule (no social short links)
   ========================================================================== */

#sp-top.sp-top {
  position: fixed;
  z-index: 35;
  top: calc(var(--sp-bulletin-h) + max(14px, env(safe-area-inset-top)));
  right: max(18px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 14, 30, 0.66);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(232, 193, 112, 0.28);
  box-shadow:
    0 8px 24px rgba(4, 5, 16, 0.45),
    inset 0 1px 0 rgba(255, 240, 200, 0.14);
  font-family: var(--sp-font-ui);
}

#sp-top .sp-news-btn,
#sp-top .sp-lang-btn {
  position: relative;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  box-shadow: none;
  color: #e6e9f7;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s ease, background 0.14s ease;
}

#sp-top .sp-news-btn svg,
#sp-top .sp-lang-btn svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.82;
  color: var(--sp-gold-bright);
}

#sp-top .sp-news-btn:hover,
#sp-top .sp-lang-btn:hover,
#sp-top .sp-lang-btn[aria-expanded="true"] {
  color: #fff6dc;
  background: rgba(232, 193, 112, 0.16);
}

#sp-top .sp-news-btn:focus-visible,
#sp-top .sp-lang-btn:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: -1px;
}

/* Subtle divider before language switcher */
#sp-top .sp-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 4px;
  margin-left: 2px;
}

#sp-top .sp-lang::before {
  content: "";
  width: 1px;
  height: 16px;
  margin-right: 4px;
  background: rgba(232, 193, 112, 0.24);
}

#sp-top .sp-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--sp-gold-bright);
  opacity: 0.85;
}

/* Unread indicator dot inside News button — clean dedicated right slot */
#sp-top .sp-news-btn.fresh {
  padding-right: 21px;
}

#sp-top .sp-news-btn.fresh::after {
  top: 50%;
  right: 8px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: #f59e0b;
  border: 0;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.24), 0 0 8px rgba(245, 158, 11, 0.9);
  animation: sp-dot-pulse 1.8s ease-in-out infinite;
}

/* Dark Frosted Language Dropdown */
#sp-top .sp-lang-list {
  top: calc(100% + 10px);
  right: 0;
  min-width: 176px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(15, 17, 36, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(232, 193, 112, 0.34);
  box-shadow: 0 18px 42px rgba(4, 5, 16, 0.72);
}

#sp-top .sp-lang-list li {
  color: #dde2f4;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.12s ease, color 0.12s ease;
}

#sp-top .sp-lang-list li small {
  color: rgba(196, 205, 232, 0.56);
  font-size: 10px;
  letter-spacing: 0.06em;
}

#sp-top .sp-lang-list li:hover,
#sp-top .sp-lang-list li:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#sp-top .sp-lang-list li[aria-selected="true"] {
  color: var(--sp-gold-bright);
  background: rgba(232, 193, 112, 0.18);
}

#sp-top .sp-lang-list li[aria-selected="true"] small {
  color: var(--sp-gold-bright);
}

/* Push profile bar on character select safely below bulletin strip */
#profile-bar {
  top: calc(var(--sp-bulletin-h) + max(12px, env(safe-area-inset-top)));
}

/* ==========================================================================
   Whisper-Quiet Bottom Legal Strip (keeps marching sprite road clear)
   ========================================================================== */

#splash .sp-foot {
  grid-area: foot;
  position: static;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 2px 2px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#splash .sp-legal {
  max-width: 72ch;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(218, 224, 245, 0.54);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#splash .sp-meta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(218, 224, 245, 0.56);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

#splash .sp-meta a {
  color: rgba(236, 222, 188, 0.78);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.14s ease;
}

#splash .sp-meta a:hover {
  color: var(--sp-gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#splash .sp-meta .sp-dot {
  opacity: 0.4;
}

/* ==========================================================================
   Harmonized First-Visit Account Modal (#npc-dialog.over-splash)
   ========================================================================== */

#npc-dialog.over-splash {
  background: rgba(6, 7, 18, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#npc-dialog.over-splash .npc-window {
  width: min(410px, calc(100vw - 28px));
  border-radius: 16px;
  color: var(--sp-ink);
  background: var(--sp-glass);
  border: 1px solid var(--sp-gold-line);
  box-shadow:
    0 24px 64px rgba(4, 5, 16, 0.78),
    0 0 40px rgba(132, 98, 224, 0.16),
    inset 0 1px 0 rgba(255, 238, 194, 0.22);
}

#npc-dialog.over-splash .ro-title {
  padding: 13px 18px;
  font-family: var(--sp-font-serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #f8f0da;
  background: linear-gradient(180deg, rgba(48, 44, 88, 0.76), rgba(24, 25, 52, 0.62));
  border-bottom: 1px solid rgba(232, 193, 112, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12);
}

#npc-dialog.over-splash .ro-title::before {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #fff4cc, #dfa131);
  box-shadow: 0 0 8px rgba(242, 196, 94, 0.72);
}

#npc-dialog.over-splash .ro-body {
  padding: 18px 20px 14px;
  background: transparent;
}

#npc-dialog.over-splash .npc-text {
  color: var(--sp-ink-2);
  font-size: 14px;
  line-height: 1.55;
}

#npc-dialog.over-splash .npc-text p {
  margin: 0;
}

#npc-dialog.over-splash .npc-text b {
  color: var(--sp-gold-bright);
}

#npc-dialog.over-splash .btn-row.pad {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  background: rgba(8, 10, 22, 0.48);
  border-top: 1px solid rgba(232, 193, 112, 0.16);
}

#npc-dialog.over-splash .ro-btn.primary {
  width: auto;
  min-height: 38px;
  padding: 8px 18px;
  font-size: 13px;
}

#npc-dialog.over-splash .ro-btn:not(.primary) {
  min-height: 38px;
  padding: 8px 16px;
}

/* ==========================================================================
   Responsive Layouts
   ========================================================================== */

@media (max-width: 820px), (max-height: 560px) and (max-width: 1100px) {
  #splash .sp-bg {
    background-position: 66% 50%;
  }

  #splash .sp-bg::before {
    -webkit-mask-position: 0 0, 66% 50%;
    mask-position: 0 0, 66% 50%;
  }
}

@media (max-width: 880px) {
  #splash {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto 1fr auto;
    grid-template-areas:
      "."
      "logo"
      "card"
      "."
      "foot";
    justify-items: center;
    row-gap: 0;
    padding:
      calc(var(--sp-bulletin-h) + max(60px, env(safe-area-inset-top)))
      max(16px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  #splash .sp-veil {
    background:
      radial-gradient(ellipse 90% 70% at 50% 42%, rgba(10, 11, 24, 0.36), rgba(8, 9, 20, 0.78) 100%),
      linear-gradient(180deg, rgba(9, 10, 22, 0.62) 0%, transparent 25%, rgba(8, 9, 18, 0.84) 100%);
  }

  #splash .sp-logo {
    gap: 6px;
    margin-bottom: 12px;
  }

  #splash .sp-logo-name span {
    font-size: clamp(46px, 11vw, 62px);
  }

  #splash .sp-card {
    max-width: 420px;
    max-height: calc(100dvh - var(--sp-bulletin-h) - 278px);
  }

  #splash .sp-tags {
    display: none;
  }

  #splash .sp-foot {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    border-top: 0;
  }

  #splash .sp-legal {
    display: none;
  }

  #sp-top.sp-top {
    right: 50%;
    transform: translateX(50%);
    max-width: calc(100vw - 20px);
  }

  #sp-top .sp-news-btn,
  #sp-top .sp-lang-btn {
    padding: 0 9px;
    font-size: 11px;
    gap: 4px;
  }

  #sp-top .sp-news-btn svg,
  #sp-top .sp-lang-btn svg {
    width: 12px;
    height: 12px;
  }

  #sp-top .sp-news-btn.fresh {
    padding-right: 18px;
  }

  #sp-top .sp-news-btn.fresh::after {
    right: 6px;
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 350px) {
  #sp-top .sp-news-btn svg {
    display: none;
  }
}

@media (max-width: 400px) {
  #splash .sp-card .ro-body {
    padding: 14px 14px 12px;
  }

  #splash .sp-tabs button {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* Compact landscape mobile / short viewports */
@media (max-height: 580px) and (max-width: 1100px) {
  #splash {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "logo card"
      "foot card";
    align-items: center;
    justify-items: center;
    column-gap: 18px;
    row-gap: 8px;
    padding:
      calc(var(--sp-bulletin-h) + max(12px, env(safe-area-inset-top)))
      max(14px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  #splash .sp-logo {
    margin-bottom: 0;
    transform: scale(0.88);
    transform-origin: center;
  }

  #splash .sp-card {
    max-height: calc(100dvh - var(--sp-bulletin-h) - 24px);
  }

  #splash .sp-card .ro-title {
    padding: 9px 14px;
    font-size: 13px;
  }

  #splash .sp-card .ro-body {
    padding: 12px 14px;
    gap: 9px;
  }

  #splash .sp-feat:nth-of-type(n + 2),
  #splash .sp-status,
  #splash .sp-legal {
    display: none;
  }

  #splash .sp-foot {
    justify-content: center;
    border-top: 0;
  }

  body:has(#splash:not(.menu)) #sp-top.sp-top {
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    transform: none;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes sp-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sp-pane-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sp-crest-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@keyframes sp-dot-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.22);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  #splash .sp-bg,
  #splash .sp-motes i,
  #splash .sp-logo,
  #splash .sp-logo-name,
  #splash .sp-card,
  #splash .sp-pane,
  #sp-top .sp-news-btn.fresh::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   Modern RO Minimal Frosted Glass Harmonization (preserves Geffen rail layout)
   ========================================================================== */
#coffee-bulletin {
  background: rgba(38, 49, 64, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: #f2f6fb !important;
  font-family: "Reflow Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", ui-monospace, system-ui, sans-serif !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
}

#splash,
#sp-top,
#npc-dialog.over-splash {
  --sp-gold: #8ec5ff;
  --sp-gold-bright: #ffffff;
  --sp-gold-deep: #3b82e6;
  --sp-gold-line: rgba(255, 255, 255, 0.24);
  --sp-gold-line-strong: rgba(255, 255, 255, 0.48);
  --sp-violet: #8ec5ff;
  --sp-violet-soft: rgba(142, 197, 255, 0.16);
  --sp-ink: #f2f6fb;
  --sp-ink-2: #d6e1ee;
  --sp-ink-muted: #aebfd4;
  --sp-glass: linear-gradient(
    180deg,
    rgba(56, 71, 91, 0.72) 0%,
    rgba(43, 55, 72, 0.74) 58%,
    rgba(35, 46, 61, 0.78) 100%
  );
  --sp-field-bg: rgba(20, 29, 41, 0.48);
  --sp-field-border: rgba(255, 255, 255, 0.24);
  --sp-font-display: "Reflow Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", ui-monospace, system-ui, sans-serif;
  --sp-font-serif: "Reflow Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", ui-monospace, system-ui, sans-serif;
  --sp-font-ui: "Reflow Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", ui-monospace, system-ui, sans-serif;
}

#splash .sp-card,
#npc-dialog.over-splash .npc-window {
  background: var(--sp-glass);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  box-shadow:
    0 22px 54px rgba(10, 17, 28, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#splash .sp-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

#splash .sp-card .ro-title,
#npc-dialog.over-splash .ro-title {
  font-family: var(--sp-font-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  text-shadow: none;
}

#splash .sp-card .ro-title::before,
#splash .sp-card .ro-title::after,
#npc-dialog.over-splash .ro-title::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: none;
  background: #8ec5ff;
  box-shadow: 0 0 8px rgba(142, 197, 255, 0.7);
}

#splash .sp-tabs {
  background: rgba(20, 29, 41, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
}

#splash .sp-tabs button.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#splash .sp-field input,
#splash .sp-field select {
  background: rgba(18, 26, 38, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
}

#splash .sp-field input:focus,
#splash .sp-field select:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 2px rgba(142, 197, 255, 0.26);
}

#splash .ro-btn.primary.sp-submit,
#npc-dialog.over-splash .ro-btn.primary {
  color: var(--rm-btn-pri-ink, #ffffff);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: var(--rm-btn-pri-shadow, 0 1px 1px rgba(10, 24, 56, 0.48));
  background: var(--rm-accent-btn, linear-gradient(180deg, #8ec0ff 0%, #5794ee 47%, #3570ce 51%, #4480de 100%));
  border: var(--rm-btn-bw, 1px) solid var(--rm-btn-pri-border, #224b94);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--rm-btn-pri-hi, rgba(255, 255, 255, 0.56)),
    inset 0 -1px 0 var(--rm-btn-pri-lo, rgba(14, 34, 74, 0.34)),
    0 3px 0 var(--rm-btn-pri-lip, #16336a),
    0 8px 22px var(--rm-btn-pri-glow, rgba(37, 99, 235, 0.38));
}

#splash .ro-btn.primary.sp-submit:hover:not(:disabled),
#npc-dialog.over-splash .ro-btn.primary:hover:not(:disabled) {
  background: var(--rm-accent-btn-hover, linear-gradient(180deg, #a8d0ff 0%, #6ea6f5 47%, #4580dc 51%, #5792eb 100%));
  border-color: var(--rm-btn-pri-border-hover, #8ec5ff);
  box-shadow:
    inset 0 1px 0 var(--rm-btn-pri-hi, rgba(255, 255, 255, 0.56)),
    inset 0 -1px 0 var(--rm-btn-pri-lo, rgba(14, 34, 74, 0.34)),
    0 3px 0 var(--rm-btn-pri-lip, #16336a),
    0 10px 26px var(--rm-btn-pri-glow, rgba(59, 130, 230, 0.48));
  filter: none;
}

#splash .ro-btn.primary.sp-submit:active:not(:disabled),
#npc-dialog.over-splash .ro-btn.primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 2px rgba(9, 15, 26, 0.30),
    0 2px 8px var(--rm-btn-pri-glow, rgba(37, 99, 235, 0.32));
}

#splash #sp-play .sp-fill,
#splash .sp-update .sp-fill {
  background: linear-gradient(90deg, rgba(93, 164, 250, 0.62), rgba(142, 197, 255, 0.85));
}

#splash .sp-link {
  color: #b7d8ff;
}

#splash .sp-link:hover {
  color: #ffffff;
}

#splash .sp-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #f2f6fb;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

/* Modern frosted top capsule housing Classic RO beveled menu buttons */
#sp-top.sp-top {
  gap: 5px;
  background: rgba(250, 252, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 5px 6px;
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  box-shadow:
    0 10px 28px rgba(12, 20, 34, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#sp-top .sp-news-btn,
#sp-top .sp-lang-btn {
  background: var(--rm-btn-bg);
  border: 1px solid var(--rm-btn-border);
  border-radius: 6px;
  color: var(--rm-btn-ink);
  font-weight: 700;
  text-shadow: var(--rm-btn-text-shadow);
  box-shadow:
    inset 0 1px 0 var(--rm-btn-hi),
    inset 0 -1px 0 var(--rm-btn-lo),
    0 2px 0 var(--rm-btn-lip);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease;
}

#sp-top .sp-news-btn svg,
#sp-top .sp-lang-btn svg {
  color: var(--rm-btn-ink);
  stroke: var(--rm-btn-ink);
  opacity: 0.92;
}

#sp-top .sp-caret {
  border-top-color: var(--rm-btn-ink);
  opacity: 0.88;
}

#sp-top .sp-news-btn:hover,
#sp-top .sp-lang-btn:hover {
  background: var(--rm-btn-bg-hover);
  color: var(--rm-btn-ink-hover);
  border-color: var(--rm-btn-border-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 var(--rm-btn-hi),
    inset 0 -1px 0 var(--rm-btn-lo),
    0 2px 0 var(--rm-btn-lip),
    0 3px 10px var(--rm-btn-glow);
}

#sp-top .sp-news-btn:active,
#sp-top .sp-lang-btn:active {
  transform: translateY(1.5px);
  box-shadow: inset 0 1px 2px rgba(9, 15, 26, 0.24);
}

#sp-top .sp-news-btn:hover svg,
#sp-top .sp-lang-btn:hover svg {
  color: var(--rm-btn-ink-hover);
  stroke: var(--rm-btn-ink-hover);
  opacity: 1;
}

#sp-top .sp-lang {
  border-left: none;
  padding-left: 0;
}

#sp-top .sp-lang-list {
  background: rgba(44, 57, 74, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f2f6fb;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#sp-top .sp-lang-list li:hover,
#sp-top .sp-lang-list [aria-selected="true"] {
  background: rgba(142, 197, 255, 0.24);
  color: #ffffff;
}

#splash .sp-motes i {
  background: radial-gradient(circle, #ffffff 0%, #93c5fd 48%, transparent 76%);
  box-shadow: 0 0 8px rgba(147, 197, 253, 0.6);
}

/* Restore #sp-top hiding outside splash/menu (#sp-top.sp-top specificity 1,1,0
   previously overrode main.css's body:not(.sp-on) .sp-top specificity 0,2,1). */
body:not(.sp-on) #sp-top.sp-top,
body.in-lobby #sp-top.sp-top,
body.sp-updating #sp-top.sp-top,
body:has(#charcreate:not(.hidden)) #sp-top.sp-top,
body:has(#lobby-ui:not(.hidden)) #sp-top.sp-top,
body:has(#hud:not(.hidden)) #sp-top.sp-top {
  display: none !important;
}
