:root {
  color-scheme: dark;
  --text: #f8fafc;
  --muted: #b6c3d4;
  --soft: #8b9bb0;
  --gold: #f8c76b;
  --gold-deep: #d99c3e;
  --blue: #7dd3fc;
  --green: #86efac;
  --violet: #a78bfa;
  --panel: rgba(18, 27, 50, 0.52);
  --line: rgba(186, 205, 230, 0.24);
  --uoradio-height: 62px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-anchor: none; }   /* a framed page growing (a forum box opening) never scrolls the site (Jason, 21 Oct 2026) */

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--uoradio-height);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(167, 139, 250, 0.22), transparent 30%),
    linear-gradient(135deg, #030712 0%, #0b1020 48%, #090b16 100%);
  background-attachment: fixed;   /* the same dark background on every page, however long (Jason, 23 Oct 2026: the long Activity feed looked lighter) */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles-js canvas { width: 100%; height: 100%; display: block; }

body::before {
  position: fixed;
  z-index: -3;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(125, 211, 252, 0.14), transparent 24%),
    radial-gradient(circle at 70% 35%, rgba(167, 139, 250, 0.16), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(248, 199, 107, 0.10), transparent 24%);
  filter: blur(24px);
  animation: aurora-shift 18s ease-in-out infinite alternate;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
  opacity: 0.42;
  content: "";
  pointer-events: none;
}

@keyframes aurora-shift {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(1%, -2%, 0) rotate(-6deg) scale(1.04); }
}

.background-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.28;
  pointer-events: none;
}

.background-orb-one {
  top: 14%;
  left: 5%;
  width: 180px;
  height: 180px;
  background: rgba(125, 211, 252, 0.20);
}

.background-orb-two {
  top: 25%;
  right: 5%;
  width: 220px;
  height: 220px;
  background: rgba(167, 139, 250, 0.18);
}

.background-orb-three {
  bottom: 8%;
  left: 45%;
  width: 140px;
  height: 140px;
  background: rgba(248, 199, 107, 0.15);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 58px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #151207;
  background: var(--gold);
  font-weight: 800;
  transform: translateY(calc(-100% - 70px));
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: var(--uoradio-height);
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 5px clamp(16px, 4vw, 58px);
  border-bottom: 1px solid rgba(186, 205, 230, 0.24);
  background: rgba(5, 9, 20, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.restored-brand {
  width: auto;
  height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font: 700 1.35rem Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.restored-brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.38));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 32px);
  font-size: 0.86rem;
}

.site-nav a {
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--text); }

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu summary {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

.mobile-menu nav {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: 180px;
  display: grid;
  padding: 8px;
  border: 1px solid rgba(186, 205, 230, 0.42);
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.mobile-menu a {
  padding: 12px;
  color: var(--muted);
  text-decoration: none;
}

.mobile-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(248, 199, 107, 0.1);
}

.site-content-frame {
  width: 100%;
  min-height: calc(100vh - 126px);
  display: block;
  border: 0;
  background: #05070f;
  overflow-anchor: none;
}

.site-content-frame[hidden] { display: none; }
/* Support and Care Hub show the site's starry background too (Jason, 29 Sep 2026), like All Games. */
.site-content-frame[data-content^="/support/"],
.site-content-frame[data-content^="/care-hub/"],
.site-content-frame[data-content^="/wiki/"] { position: relative; z-index: 1; background: transparent; }

/* Keep the previous iframe document out of view until the requested one is ready. */
.shell-route-loading main.page { display: none; }
.shell-route-loading .site-content-frame,
.shell-route-loading .games-navigation-rail,
.shell-route-loading .care-navigation-rail { visibility: hidden; }
/* Use the homepage backdrop while a requested document is becoming ready. */
.shell-route-loading body.games-surface-active::after { background: none; }
.mobile-home-options { display: none; }

@media (max-width: 700px) {
  .page > .hero, .page > .play-section, .page > .connection-row,
  .discord-widget, .mobile-menu a[data-shell-route="games"] { display: none; }
  .mobile-home-options { display: block; max-width: 430px; margin: auto; padding: 24px; }
  .mobile-home-art { display: block; width: min(100%, 300px); height: auto; object-fit: contain; margin: 0 auto 24px; }
  .mobile-home-visit { margin-top: 28px; padding-top: 24px; border-top: 1px solid #38495e; }
  .mobile-home-visit h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
  .mobile-home-options h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; }
  .mobile-home-options p { line-height: 1.65; }
  .mobile-home-options nav { display: grid; gap: 12px; margin-top: 24px; }
  .mobile-home-options a { display: block; padding: 18px; background: #101c2b; border: 1px solid #38495e; border-radius: 8px; color: #fff; text-decoration: none; }
  .mobile-home-options a:focus-visible { outline: 2px solid #f8c76b; outline-offset: 3px; }
}

.shell-content-overlay {
  width: min(1500px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 132, 190, .7);
  background: #050912;
  color: #f5f7fa;
}

.shell-content-overlay::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(5px); }
.shell-content-overlay > header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px 10px 20px; border-bottom: 1px solid rgba(150, 170, 190, .28); background: #0d1726; }
.shell-content-overlay > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-content-overlay > header button { min-height: 36px; padding: 7px 13px; border: 1px solid rgba(184, 132, 209, .66); background: #151020; color: #fff; font-weight: 750; cursor: pointer; }
.shell-overlay-body { height: calc(100% - 56px); display: grid; place-items: center; }
.shell-overlay-body iframe { width: 100%; height: 100%; border: 0; background: #070c14; }
.shell-overlay-body img { width: 100%; height: 100%; object-fit: contain; }
.shell-overlay-body [hidden] { display: none; }
.shell-overlay-body { position: relative; }

/* A game page's picture lightbox (call out 1139): the forums' viewer look, the shell's own copy. The picture large on a
   dark backdrop, the count and the Zoom, Download and Close buttons above it, Previous and Next at its sides. */
.shell-lightbox { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: #f3ead2; touch-action: pinch-zoom; }
.shell-lightbox[open] { display: grid; place-items: center; }
.shell-lightbox::backdrop { background: rgba(2, 4, 12, .9); }
.shell-lightbox-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; width: min(100%, 1200px); height: 100%; margin: 0 auto; padding: 8px 12px 12px; }
.shell-lightbox-bar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.shell-lightbox-count { margin-right: auto; padding-left: 4px; color: #a5aecb; font-size: 13px; }
.shell-lightbox-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 236, 190, .22); background: #1a2140; color: #f3ead2; font: inherit; font-size: 24px; line-height: 1; text-decoration: none; cursor: pointer; }
.shell-lightbox-tool[hidden] { display: none; }
.shell-lightbox-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell-lightbox-tool:hover, .shell-lightbox-tool[aria-pressed="true"] { border-color: rgba(227, 197, 106, .7); color: #e3c56a; }
.shell-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.shell-lightbox-frame { max-width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shell-lightbox-frame img { display: block; max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); background: #0b0f22; }
.shell-lightbox:not(.zoomed) .shell-lightbox-frame img { cursor: zoom-in; }
.shell-lightbox.zoomed .shell-lightbox-stage { align-items: stretch; }
.shell-lightbox.zoomed .shell-lightbox-frame { display: block; width: 100%; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow: auto; cursor: grab; touch-action: none; }
.shell-lightbox.zoomed .shell-lightbox-frame img { max-width: none; max-height: none; margin: 0 auto; border-radius: 0; }
.shell-lightbox-step { position: absolute; top: 50%; z-index: 1; width: 44px; height: 60px; margin-top: -30px; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .25); background: #1a2140; color: #f3ead2; font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.shell-lightbox-step[data-lightbox="prev"] { left: 4px; }
.shell-lightbox-step[data-lightbox="next"] { right: 4px; }
.shell-lightbox-step:hover { border-color: rgba(227, 197, 106, .7); }
.shell-lightbox.single .shell-lightbox-step { display: none; }
.shell-lightbox button:focus-visible, .shell-lightbox a:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
@media (max-width: 760px) {
  .shell-lightbox-panel { padding: 6px 6px 10px; }
  .shell-lightbox-tool { width: 36px; height: 36px; }
  .shell-lightbox-step { width: 36px; height: 52px; margin-top: -26px; font-size: 26px; }
  .shell-lightbox-frame img { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
}

.page {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid rgba(186, 205, 230, 0.30);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(20, 30, 54, 0.52), rgba(7, 11, 24, 0.34));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 199, 107, 0.08), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(125, 211, 252, 0.06), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018) 42%, transparent 74%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 54px;
}

.hero-content { max-width: 770px; }

.network-label,
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.network-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.network-label::before {
  width: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.68;
}

.hero-copy-secondary {
  margin-top: 14px;
  color: #d2dbe8;
}

.hero-mascot {
  width: 330px;
  max-width: 100%;
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.36));
}

.play-section { padding-top: 38px; }

.section-intro { margin-bottom: 20px; }

.section-kicker { margin: 0 0 10px; }

.section-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  min-height: 265px;
  display: grid;
  grid-template-rows: minmax(155px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(31, 44, 74, 0.70), rgba(10, 15, 30, 0.62));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(248, 199, 107, 0.66);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  background: #080d1c;
}

.card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(0.88);
  transition: transform 280ms ease;
}

.game-card:hover .card-media > img,
.game-card:focus-visible .card-media > img { transform: scale(1.035); }

.card-media > img.contain-art {
  object-fit: contain;
  padding: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(135, 69, 208, 0.34), transparent 58%), #100922;
  filter: none;
}

.oracle-card .card-media > img { object-position: center 30%; filter: brightness(0.74) saturate(0.9); }

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 20, .48));
}

.card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 15px 17px 17px;
  background: linear-gradient(145deg, rgba(23, 36, 58, .98), rgba(13, 23, 39, .98));
}

.card-copy strong { font-size: 1.28rem; }
.card-copy small { color: #cbd5e1; font-size: 0.78rem; }

.fiction-card {
  background: #07140d;
}

.fiction-card .card-media {
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(126, 249, 184, 0.035) 5px 6px),
    radial-gradient(circle at 45% 36%, rgba(56, 189, 110, 0.18), transparent 55%),
    #07140d;
}

.text-art,
.terminal-art {
  position: absolute;
  inset: 20px 18px auto;
  color: #91f6b7;
  font: 700 0.82rem/1.7 "Courier New", monospace;
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.42);
}

.text-art b { color: var(--gold); }
.text-art .fiction-command {
  display: inline-block;
  width: 0;
  max-width: 12ch;
  overflow: hidden;
  font-style: normal;
  vertical-align: bottom;
  white-space: nowrap;
  animation: type-fiction-cycle 52s steps(12, end) var(--fiction-animation-delay, 1.1s) infinite;
}
.text-art .fiction-cursor {
  animation:
    hide-fiction-command-cursor 52s steps(1, end) var(--fiction-animation-delay, 1.1s) infinite,
    blink 1s steps(1, end) infinite;
}
.text-art .fiction-response {
  opacity: 0;
  animation: reveal-fiction-response 52s linear var(--fiction-animation-delay, 1.1s) infinite;
}
.text-art .fiction-prompt {
  opacity: 0;
  animation: reveal-fiction-prompt 52s linear var(--fiction-animation-delay, 1.1s) infinite;
}
.text-art .fiction-ready-cursor { animation: blink 1s steps(1, end) infinite; }

.bbs-card {
  background: #080d1c;
}

.bbs-card .card-media {
  background:
    linear-gradient(90deg, rgba(51, 219, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(51, 219, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(167, 139, 250, 0.24), transparent 54%),
    #080d1c;
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.terminal-art { display: grid; color: #74e6ff; }
.terminal-art .dial-command {
  width: 0;
  max-width: 17ch;
  overflow: hidden;
  color: #ff8ad4;
  white-space: nowrap;
  animation: type-dial-cycle 61s steps(17, end) var(--bbs-animation-delay, 3.4s) infinite;
}
.terminal-art b {
  opacity: 0;
  font-weight: 700;
  animation: reveal-modem-line-one 61s linear var(--bbs-animation-delay, 3.4s) infinite;
}
.terminal-art strong {
  opacity: 0;
  color: #91f6b7;
  font-weight: 700;
  animation: reveal-modem-line-two 61s linear var(--bbs-animation-delay, 3.4s) infinite;
}
.terminal-art em {
  opacity: 0;
  color: #f0c768;
  font-style: normal;
  animation: reveal-modem-line-three 61s linear var(--bbs-animation-delay, 3.4s) infinite;
}
.terminal-art i {
  visibility: hidden;
  animation:
    show-modem-cursor 61s steps(1, end) var(--bbs-animation-delay, 3.4s) infinite,
    blink 1s steps(1, end) infinite;
}

@keyframes type-fiction-cycle {
  0% { width: 0; }
  8%, 96% { width: 12ch; }
  96.1%, 100% { width: 0; }
}
@keyframes reveal-fiction-response {
  0%, 13.76% { opacity: 0; }
  13.77%, 96% { opacity: 1; }
  96.1%, 100% { opacity: 0; }
}
@keyframes hide-fiction-command-cursor {
  0%, 8% { visibility: visible; }
  8.01%, 100% { visibility: hidden; }
}
@keyframes reveal-fiction-prompt {
  0%, 13.89% { opacity: 0; }
  13.9%, 96% { opacity: 1; }
  96.1%, 100% { opacity: 0; }
}
@keyframes type-dial-cycle {
  0% { width: 0; }
  7%, 96% { width: 17ch; }
  96.1%, 100% { width: 0; }
}
@keyframes reveal-modem-line-one {
  0%, 8.4% { opacity: 0; }
  8.5%, 96% { opacity: 1; }
  96.1%, 100% { opacity: 0; }
}
@keyframes reveal-modem-line-two {
  0%, 14.9% { opacity: 0; }
  15%, 96% { opacity: 1; }
  96.1%, 100% { opacity: 0; }
}
@keyframes reveal-modem-line-three {
  0%, 18.4% { opacity: 0; }
  18.5%, 96% { opacity: 1; }
  96.1%, 100% { opacity: 0; }
}
@keyframes show-modem-cursor {
  0%, 18.4% { visibility: hidden; }
  18.5%, 96% { visibility: visible; }
  96.1%, 100% { visibility: hidden; }
}
@keyframes blink { 50% { opacity: 0; } }

.connection-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 16px;
  margin-top: 22px;
}

.connection-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.56);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease;
}

.connection-card:hover,
.connection-card:focus-visible {
  border-color: rgba(248, 199, 107, 0.58);
  background: rgba(22, 33, 59, 0.72);
}

.connection-icon {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  font-size: 1.25rem;
  font-weight: 900;
}

.connection-icon svg {
  width: 25px;
  height: 29px;
  fill: currentColor;
}

.connection-card > span:nth-child(2) { display: grid; gap: 5px; }
.connection-card strong { font-size: 1rem; }
.connection-card small { color: var(--muted); line-height: 1.4; }
.discord .connection-icon { background: linear-gradient(145deg, #6976da, #3e4bb1); }
.support .connection-icon { color: #062113; background: linear-gradient(145deg, #a7f3c2, #59c681); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 4px 8px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 0.82rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; padding-right: 72px; }
.site-footer a { color: rgba(226, 232, 240, 0.86); text-underline-offset: 3px; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--gold); }

.discord-widget {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 18px;
}

.discord-widget-toggle {
  display: grid;
  width: 54px;
  height: 54px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #6976da, #3e4bb1);
  box-shadow: 0 14px 34px rgba(0,0,0,0.38);
  cursor: pointer;
}

.discord-widget-toggle svg { width: 27px; height: 31px; fill: currentColor; }

.discord-widget-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(380px, calc(100vw - 24px));
  height: min(590px, calc(100vh - 170px));
  overflow: hidden;
  border: 1px solid rgba(186, 205, 230, 0.32);
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0,0,0,0.58);
}

.discord-widget-panel[hidden] { display: none; }

.discord-widget-panel header {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: #1d2441;
}

.discord-widget-panel header > span { display: grid; gap: 2px; }
.discord-widget-panel header small { color: var(--muted); }

.discord-widget-panel header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-size: 1.4rem;
  cursor: pointer;
}

.discord-widget-panel iframe {
  display: block;
  width: 100%;
  height: calc(100% - 58px);
  border: 0;
  background: #111827;
}

#uoradio-pro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 40;
  background: transparent;
  clip-path: inset(0 0 calc(100% - var(--uoradio-height)) 0);
}

.radio-bar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  min-height: 48px;
  grid-template-columns: auto auto minmax(150px, 230px) minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 5px clamp(14px, 4vw, 54px);
  border-bottom: 1px solid rgba(186, 205, 230, .24);
  background: rgba(26, 41, 58, .98);
  color: #f7f1df;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.radio-play {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding-left: 3px;
  border: 0;
  border-radius: 50%;
  color: #231907;
  background: #f2c66d;
  text-decoration: none;
  cursor: pointer;
}

.radio-bar > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (pointer: coarse) {
  .radio-play { position: relative; touch-action: manipulation; }
  .radio-play::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
}

.radio-info { display: grid; min-width: 0; gap: 2px; }
.radio-info strong { font-family: Georgia, "Times New Roman", serif; font-size: .9rem; }
.radio-info small { color: #f7c837; font-size: 0.62rem; }

.radio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4c8c2;
  font-size: 0.7rem;
}

.radio-volume input {
  width: 105px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.radio-track {
  display: grid;
  min-width: 0;
}

.radio-track small {
  color: #90978f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radio-track strong {
  overflow: hidden;
  color: #f7f1df;
  font-size: 0.75rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-popout {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  color: #d7dae2;
  background: rgba(255,255,255,.05);
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}

.radio-popout:hover,
.radio-popout:focus-visible {
  color: #fff;
  border-color: rgba(240,199,104,.55);
  background: rgba(240,199,104,.1);
}

.radio-popout svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.equalizer { display: flex; align-items: center; height: 24px; gap: 3px; }
.equalizer i { width: 2px; height: 5px; border-radius: 2px; background: var(--gold); animation: equalize .8s ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: -.45s; }
.equalizer i:nth-child(3) { animation-delay: -.2s; }
.equalizer i:nth-child(4) { animation-delay: -.62s; }
.equalizer i:nth-child(5) { animation-delay: -.32s; }
@keyframes equalize { to { height: 22px; } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero,
  .connection-card,
  .radio-bar { background-color: rgba(7, 12, 24, .98); }
}

@media (max-width: 1040px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .radio-bar { grid-template-columns: auto auto minmax(150px, 210px) 1fr auto; }
  .radio-volume { display: none; }
}

@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; }
  .hero-mascot { width: 240px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-row { grid-template-columns: 1fr; }
  .radio-bar { min-height: 48px; grid-template-columns: auto auto 1fr auto; padding: 6px 12px; }
  .radio-track { display: none; }
}

@media (max-width: 620px) {
  body { padding-top: var(--uoradio-height); }
  .site-header { min-height: 64px; }
  .restored-brand { height: 52px; }
  .restored-brand img { width: 48px; height: 48px; flex-basis: 48px; }
  .restored-brand span { display: none; }
  .page { width: min(100% - 24px, 1240px); padding-top: 20px; }
  .hero { padding: 30px 24px 24px; border-radius: 24px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-mascot { width: min(215px, 62vw); margin: 8px auto 0; }
  .network-label { font-size: 0.7rem; letter-spacing: 0.11em; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 250px; }
  .card-media { min-height: 150px; }
  .connection-card { grid-template-columns: 44px minmax(0, 1fr); padding-inline: 14px; }
  .connection-icon { width: 44px; }
  .site-footer { display: grid; line-height: 1.6; }
  .site-footer nav { padding-right: 66px; }
  .radio-bar { min-height: 48px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding-inline: 12px; }
  .radio-bar > img { display: none; }
  .radio-popout { padding: 7px; }
  .radio-popout span { display: none; }
  .discord-widget { right: 12px; bottom: 14px; }
  .discord-widget-panel {
    width: min(380px, calc(100vw - 48px));
    height: min(560px, calc(100vh - 158px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-art .fiction-command {
    width: 12ch;
    animation-delay: 0s !important;
  }
  .terminal-art .dial-command {
    width: 17ch;
    animation-delay: 0s !important;
  }
  .terminal-art b,
  .terminal-art strong,
  .terminal-art em {
    opacity: 1;
    animation-delay: 0s !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Jason (29 Sep 2026): no glowing orbs or drifting colour haze behind pages; the moving stars stay. */
.background-orb, body::before { display: none; }

/* Camp-style header for the whole desktop site (Jason, 29 Sep 2026): the same fonts, menu and account corner as Camp. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("/transition-landing/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/transition-landing/fonts/source-sans-3-latin.woff2") format("woff2"); }
.site-header { grid-template-columns: auto 1fr auto auto auto; font-family: "Source Sans 3", system-ui, sans-serif; }
.site-header [hidden] { display: none !important; }
/* The team bar under the menu (approved mockup mockups/team-bar, 8 Oct 2026): part of the header, so it stays put
   with it; computers only (phones keep their own layout) */
.team-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; height: 38px; margin: 5px calc(-1 * clamp(16px, 4vw, 58px)) -5px; padding: 0 clamp(16px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(36, 26, 66, .96), rgba(22, 16, 44, .96)); border-top: 1px solid rgba(227, 197, 106, .22); font-size: 13.5px; }
/* its place until the account check draws it (route-start.js: it was open last time), so the page never drops down */
.shell-team-wait .site-header::after { content: ""; box-sizing: border-box; grid-column: 1 / -1; height: 38px; margin: 5px calc(-1 * clamp(16px, 4vw, 58px)) -5px;
  background: linear-gradient(180deg, rgba(36, 26, 66, .96), rgba(22, 16, 44, .96)); border-top: 1px solid rgba(227, 197, 106, .22); }
.team-bar-who { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; color: #e3c56a; font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.team-bar-who svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.team-bar-items { display: inline-flex; align-items: center; gap: 2px; }
.team-bar-item { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; color: #e4e7f5; text-decoration: none; }
.team-bar-item:hover { background: rgba(255, 255, 255, .06); color: #fff4d6; }
.team-bar-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #1d1404; background: linear-gradient(180deg, #f0d27a, #c8a84b); }
.team-bar-clear { color: #9aa6c4; padding: 5px 10px; }
.team-bar-grow { flex: 1; }
.team-bar-codex { color: #e3c56a; text-decoration: none; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.team-bar-codex:hover { background: rgba(227, 197, 106, .1); color: #f6e2a0; }
/* the Moderator menu (UPDATE-66, Jason's answer 22): the Team bar's own look, no pills */
.team-bar-mod { position: relative; display: inline-flex; }
.team-bar-mod[hidden], .team-bar-modmenu[hidden] { display: none; }
.team-bar-modbtn { border: 0; background: none; font: inherit; cursor: pointer; }
.team-bar-modbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .06); color: #fff4d6; }
.team-bar-modmenu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 60; display: grid; min-width: 200px; padding: 6px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(36, 26, 66, .98), rgba(22, 16, 44, .98)); border: 1px solid rgba(227, 197, 106, .3); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.team-bar-modline { padding: 7px 10px; border-radius: 7px; color: #e4e7f5; text-decoration: none; white-space: nowrap; }
.team-bar-modline:hover, .team-bar-modline:focus-visible { background: rgba(255, 255, 255, .06); color: #fff4d6; outline: none; }
.team-bar-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255, 236, 190, .18); background: rgba(255, 255, 255, .04); color: #c9cfe3; cursor: pointer; font-size: 15px; line-height: 1; }
.team-bar-btn:hover { color: #e3c56a; border-color: rgba(227, 197, 106, .5); }
.team-bar-tab { position: absolute; right: clamp(16px, 4vw, 58px); top: 100%; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 6px; border-radius: 0 0 10px 10px;
  border: 1px solid rgba(227, 197, 106, .35); border-top: 0; background: rgba(30, 22, 58, .97); color: #e3c56a; font: 800 11.5px "Source Sans 3", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.team-bar-tab .team-bar-n { min-width: 18px; height: 18px; font-size: 11px; letter-spacing: 0; }
.team-bar-back { padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(227, 197, 106, .35); background: rgba(227, 197, 106, .08); color: #e3c56a; font: 700 12.5px "Source Sans 3", system-ui, sans-serif; cursor: pointer; }
@media (max-width: 700px) { .team-bar, .team-bar-tab, .team-bar-back, .shell-team-wait .site-header::after { display: none !important; } }
.restored-brand { font: 800 24px "Fraunces", Georgia, serif; color: #f7f1e3; }
.restored-brand img { width: 44px; height: 44px; flex-basis: 44px; }
.site-nav { gap: clamp(16px, 2.4vw, 30px); font-size: 17px; font-weight: 600; }
.site-nav a { padding: 6px 0 5px; color: #e7e2d6; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff8e6; }
.site-nav a[aria-current="page"] { color: #fff8e6; border-bottom-color: #e3c56a; text-shadow: 0 0 16px rgba(227, 197, 106, .55); }
.shell-me { display: flex; align-items: center; gap: 14px; }
.shell-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #7c2a8a, #3b2a7a); border: 1px solid rgba(227, 197, 106, .55); color: #fff; font-weight: 700; text-decoration: none; }
.shell-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shell-btn-ghost, .shell-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 11px; font-weight: 700; text-decoration: none; }
/* solid, never see-through (Jason, 12 Oct 2026) */
.shell-btn-ghost { color: #e7e2d6; border: 1px solid rgba(255, 236, 190, .32); background: #232b45; }
.shell-btn-ghost:hover { color: #fff8e6; background: #2c3656; border-color: rgba(255, 236, 190, .5); }
.shell-btn { color: #1d1404; background: linear-gradient(180deg, #f0d27a, #c8a84b); }
@media (max-width: 880px) { .shell-me { display: none; } }

/* Community is closed until the reveal: shown greyed out in the navigation, "Returning shortly!" on mouse-over (Jason, 29 Sep 2026). */
.nav-soon { position: relative; color: rgba(214, 220, 240, .42); cursor: default; }
.site-nav .nav-soon { display: inline-flex; align-items: center; padding: 6px 0 5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mobile-menu .nav-soon { display: block; padding: 12px; }
.nav-soon-tip {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 50%;
  padding: 6px 10px; border: 1px solid rgba(227, 197, 106, .4); border-radius: 8px;
  color: #f3ead2; background: #0e1424; box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity 150ms ease, transform 150ms ease;
}
.nav-soon:hover .nav-soon-tip, .nav-soon:focus-visible .nav-soon-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mobile-menu .nav-soon-tip { position: static; display: inline; margin-left: 8px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; color: rgba(227, 197, 106, .7); font-weight: 600; }

/* One footer for the whole site, under every page (Jason, 30 Sep 2026: one consistent copyright line). */
.site-footer.shell-footer { position: relative; z-index: 1; width: min(1680px, calc(100% - 2 * clamp(16px, 3vw, 48px))); margin: 0 auto; padding: 22px 0 26px; border-top: 1px solid rgba(255, 236, 190, .10); }
.shell-route-loading .site-footer.shell-footer { visibility: hidden; }
@media (max-width: 700px) { .site-footer.shell-footer { flex-direction: column; } .site-footer.shell-footer nav { padding-right: 0; } }

/* Footer: the short legal line under the copyright (Jason, 30 Sep 2026). */
.site-footer { flex-wrap: wrap; }
.site-footer .footer-legal { flex: 1 0 100%; margin: 4px 0 0; font-size: .74rem; line-height: 1.5; opacity: .78; }
.site-footer .footer-legal a { color: inherit; }

/* Footer "Chat With Us" (Tawk.to): dimmed and not clickable while chat is offline, like the original footer. */
.chat-link.is-offline { opacity: .65; cursor: default; pointer-events: none; }
/* Tawk.to hides its chat bar with styles our security rules block, so it showed anyway: hide it here instead.
   Tawk still loads (the footer needs its online/offline status); the link opens our Tawk.to chat page. */
#min-widget, #max-widget, #chat-bubble, #message-preview, #branding-widget { display: none !important; }

/* Space glass (approved 30 Sep 2026): the stars show behind every page shown inside the site. */
.site-content-frame[data-content^="/games/"],
.site-content-frame[data-content^="/the-uorealms-"],
.site-content-frame[data-content^="/about-us/"],
.site-content-frame[data-content^="https://account.uorealms.com/"] { position: relative; z-index: 1; background: transparent; }
/* The Bazaar (store.uorealms.com, 24 Oct 2026) shows the stars behind it too; the second address is the local sandbox's */
.site-content-frame[data-content^="https://store.uorealms.com/"],
.site-content-frame[data-content^="http://127.0.0.1:8097/"] { position: relative; z-index: 1; background: transparent; }
/* the local sandbox's account pages show the stars behind them too, as live's account.uorealms.com does (10 Nov 2026) */
.site-content-frame[data-content^="http://127.0.0.1:8090/"] { position: relative; z-index: 1; background: transparent; }

/* Phone menu (Jason, 30 Sep 2026): a neat full-width panel under the header; highlight stays inside; Community's
   "Returning shortly!" sits on its own small line under it. */
@media (max-width: 880px) {
  .mobile-menu nav {
    position: fixed;
    top: calc(100% + 8px); /* the header (blurred) is what the panel is placed against */
    left: 12px;
    right: 12px;
    width: auto;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(255, 236, 190, .14);
    border-radius: 16px;
    background: linear-gradient(160deg, rgb(22, 29, 50), rgb(10, 14, 28));
  }
  .mobile-menu nav a, .mobile-menu .nav-soon { padding: 13px 14px; border-radius: 10px; }
  .mobile-menu a[aria-current="page"] { background: rgba(248, 199, 107, 0.12); }
  .mobile-menu .nav-soon-tip { display: block; margin: 2px 0 0; font-size: .8rem; }
}

/* Team notice from Codex, shown once on whatever page the member is on (Friends and Mail, 1 Oct 2026) */
.team-notice { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 12, .7); backdrop-filter: blur(3px); }
.team-notice-card { width: min(460px, 100%); padding: 26px; border-radius: 22px; background: linear-gradient(180deg, #1a2140, #0e1328); border: 1px solid rgba(227, 197, 106, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: #d6dcf0; }
.team-notice-kick { margin: 0; color: #e3c56a; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.team-notice-card h2 { margin: 6px 0 8px; font: 800 1.5rem/1.2 "Fraunces", Georgia, serif; color: #f3ead2; }
.team-notice-body { margin: 0; line-height: 1.55; white-space: pre-line; }
.team-notice-actions { display: flex; gap: 8px; margin-top: 16px; }
.team-notice-btn { min-height: 42px; padding: 0 18px; border-radius: 11px; border: 0; cursor: pointer; font: 700 15px/1 "Source Sans 3", system-ui, sans-serif; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; }
.team-notice-btn.ghost { background: #232b45; color: #f3ead2; border: 1px solid rgba(255, 236, 190, .32); }
.team-notice-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }

/* Camp Messenger on the site (messenger-dock.js, 2 Oct 2026, Jason): ONE tab at the bottom right, beside the Discord
   button, only while there's a conversation; open, one window with a strip of conversation pictures and the chat. */
.chat-dock { position: fixed; z-index: 41; right: 92px; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }
.chat-dock[hidden], .chat-window[hidden], .chat-tab-count[hidden], .chat-chip-badge[hidden] { display: none; }
.chat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px 14px 0 0; cursor: pointer;
  border: 1px solid rgba(227, 197, 106, .4); border-bottom: 0; background: linear-gradient(180deg, rgba(27, 32, 71, .98), rgba(14, 18, 40, .98));
  color: #fff4d6; font: 800 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 -8px 24px rgba(0, 0, 0, .4); }
.chat-tab:hover { border-color: rgba(227, 197, 106, .75); }
.chat-tab.new { background: linear-gradient(180deg, #3b3524, #0e1228); }   /* solid, never see-through (Jason, 6 Oct 2026) */
.chat-tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px;
  color: #1d1404; background: linear-gradient(180deg, #f0d27a, #c8a84b); box-shadow: 0 0 10px rgba(227, 197, 106, .55); }
.chat-dock.is-open .chat-tab-row { display: none; }
/* round 2 (Jason, 6 Oct 2026): the x that closes it, your friends in the window, the back arrow in a chat */
.chat-tab-row { position: relative; display: flex; }
.chat-tab-x { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; padding: 0; border-radius: 6px; border: 1px solid rgba(255, 236, 190, .3);
  background: #0e1228; color: #c9cfe3; font-size: 13px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.chat-tab-row:hover .chat-tab-x, .chat-tab-x:focus-visible { opacity: 1; }
.chat-tab-x:hover { color: #ffb4a3; border-color: rgba(255, 140, 120, .6); }
.chat-friends { flex: 1; overflow-y: auto; padding: 6px 8px 10px; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(227, 197, 106, .4) transparent; }
.chat-friends[hidden], .chat-who-bar[hidden], .chat-lines[hidden] { display: none; }
.chat-friends-group { margin: 8px 4px 4px; color: #e3c56a; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chat-friend { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chat-friend:hover, .chat-friend:focus-visible { background: rgba(255, 255, 255, .05); }
.chat-friend.is-off { opacity: .6; }
.chat-back { flex-shrink: 0; width: 26px; height: 26px; margin-left: -4px; padding: 0 0 3px; border: 0; border-radius: 8px; background: none; color: #c9cfe3; font-size: 24px; line-height: 1; cursor: pointer; }
.chat-back:hover, .chat-back:focus-visible { color: #e3c56a; background: rgba(255, 255, 255, .05); }
.chat-window { width: 340px; height: 460px; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(27, 32, 71, .98), rgba(14, 18, 40, .98)); border: 1px solid rgba(227, 197, 106, .35); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); color: #e4e7f5; font-size: 14px; animation: chat-up .2s ease both; }
@keyframes chat-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-window-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(10, 14, 34, .9); border-bottom: 1px solid rgba(255, 236, 190, .12); }
.chat-strip { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(227, 197, 106, .4) transparent; }
.chat-chip { position: relative; flex-shrink: 0; }
.chat-chip-btn { display: block; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.chat-chip.is-active .chat-chip-btn { border-color: #e3c56a; box-shadow: 0 0 10px rgba(227, 197, 106, .45); }
.chat-chip-face { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: visible;
  background: linear-gradient(160deg, #3b2a6b, #1a1f45); color: #fff4d6; font-weight: 800; }
.chat-chip-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.chat-chip-face::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #6b7280; border: 2px solid #0e1228; }
.chat-chip-face.on::after { background: #86efac; }
.chat-chip-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #1d1404; background: linear-gradient(180deg, #f0d27a, #c8a84b); pointer-events: none; }
.chat-chip-x { position: absolute; top: -5px; left: -5px; width: 17px; height: 17px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 236, 190, .3);
  background: #0e1228; color: #c9cfe3; font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.chat-chip:hover .chat-chip-x, .chat-chip-x:focus-visible { opacity: 1; }
.chat-chip-x:hover { color: #ffb4a3; border-color: rgba(255, 140, 120, .6); }
.chat-who-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255, 236, 190, .08); }
.chat-face { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: visible; flex-shrink: 0;
  background: linear-gradient(160deg, #3b2a6b, #1a1f45); color: #fff4d6; font-weight: 800; }
.chat-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-face::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #6b7280; border: 2px solid #0e1228; }
.chat-face.on::after { background: #86efac; }
.chat-who { min-width: 0; flex: 1; display: grid; }
.chat-who strong { color: #fff4d6; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { color: #9aa6c4; font-size: 11.5px; line-height: 1.35; overflow-wrap: break-word; } /* full game names wrap, never cut (Jason, 2 Oct 2026) */
.chat-btn { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .18); background: rgba(255, 255, 255, .04); color: #c9cfe3; cursor: pointer; font-size: 16px; line-height: 1; }
.chat-btn:hover { color: #e3c56a; border-color: rgba(227, 197, 106, .6); }
.chat-lines { flex: 1; overflow-y: auto; padding: 10px; display: grid; align-content: start; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(227, 197, 106, .4) transparent; }
.chat-line { max-width: 85%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.chat-line.them { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; }
.chat-line.me { justify-self: end; background: linear-gradient(180deg, rgba(227, 197, 106, .28), rgba(200, 168, 75, .2)); color: #fff4d6; border-bottom-right-radius: 4px; }
.chat-line small { display: block; margin-top: 2px; color: #9aa6c4; font-size: 10.5px; white-space: nowrap; }
.chat-text { white-space: pre-wrap; }
/* Resident Goblin's chat (approved mockup, 8 Oct 2026): his face, his notes, Accept and Decline, no typing box */
.chat-goblin-face { box-sizing: border-box; background-color: #1d3b22; background-position: 48% 5%; background-size: 210%; background-repeat: no-repeat; border: 2px solid rgba(134, 239, 172, .45); }
.chat-goblin-face::after { display: none; }
.chat-line.chat-goblin { background: rgba(52, 92, 60, .35); border: 1px solid rgba(134, 239, 172, .22); }
.chat-line.chat-goblin.is-event { background: rgba(227, 197, 106, .08); border-color: rgba(227, 197, 106, .45); }
.chat-goblin-link { color: #e3c56a; text-decoration: underline; }
.chat-goblin-acts { display: flex; gap: 6px; margin-top: 8px; }
.chat-goblin-done { margin: 6px 0 0; color: #86efac; font-size: 12.5px; font-weight: 700; }
.chat-goblin-done.is-no { color: #9aa6c4; }
.chat-goblin-busy { margin: 0; padding: 12px 10px; border-top: 1px solid rgba(255, 236, 190, .12); background: rgba(10, 14, 34, .9); color: #9aa6c4; font-size: 13px; text-align: center; }
.chat-goblin-busy[hidden] { display: none; }
.chat-goblin-row { background: rgba(134, 239, 172, .05); }
.chat-unsend { margin-left: 8px; padding: 0; border: 0; background: none; color: #e3c56a; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.chat-note { margin: 6px 2px; color: #9aa6c4; font-size: 13px; }
.chat-problem { margin: 0 10px 6px; color: #ffb4a3; font-size: 12.5px; }
.chat-form { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-top: 1px solid rgba(255, 236, 190, .12); background: rgba(10, 14, 34, .9); }
.chat-form[hidden] { display: none; }
.chat-form textarea { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; resize: none; min-height: 38px; max-height: 90px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .2);
  background: rgba(3, 7, 18, .55); color: #fff4d6; font: inherit; font-size: 13.5px; }
.chat-form textarea:focus { outline: none; border-color: rgba(227, 197, 106, .7); }
/* Camp Messenger round 2 (Jason, 6 Oct 2026): symbols (Online dot, Away half moon, Do Not Disturb, Invisible eye,
   offline), your own bar and its menu, status messages, groups, picking friends for a group */
.chat-face[class*="p-"]::after, .chat-chip-face[class*="p-"]::after { width: 13px; height: 13px; right: -3px; bottom: -3px; border: 0; background: #0e1228 center / 11px no-repeat; }
.chat-tab-dot { position: relative; width: 12px; height: 12px; flex-shrink: 0; background: center / 12px no-repeat; }
.chat-pdot { width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; background: center / 14px no-repeat; }
.p-online::after, .chat-tab-dot.p-online, .chat-pdot.p-online { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='%2386efac'/%3E%3C/svg%3E") !important; }
.p-away::after, .chat-tab-dot.p-away, .chat-pdot.p-away { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.6 1.9A6.5 6.5 0 1 0 14.1 10.6 5.2 5.2 0 0 1 10.6 1.9z' fill='%23f5b942'/%3E%3C/svg%3E") !important; }
.p-dnd::after, .chat-tab-dot.p-dnd, .chat-pdot.p-dnd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.4' fill='none' stroke='%23ef5b5b' stroke-width='2.4'/%3E%3Cpath d='M4.2 11.8 11.8 4.2' stroke='%23ef5b5b' stroke-width='2.4'/%3E%3C/svg%3E") !important; }
.p-invisible::after, .chat-tab-dot.p-invisible, .chat-pdot.p-invisible { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.8 7c1.6 2.6 3.8 3.9 6.2 3.9S12.6 9.6 14.2 7' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 9.6 2.9 11.3M8 10.9V13M12 9.6l1.1 1.7' stroke='%239ca3af' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
.p-off::after, .chat-tab-dot.p-off, .chat-pdot.p-off { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='%236b7280'/%3E%3C/svg%3E") !important; }
.chat-gface { background: none !important; }
.chat-gface::after { display: none; }
.chat-gface-one { position: absolute; width: 66%; height: 66%; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff4d6; border: 2px solid #121831; }
.chat-gface-one.g0 { left: 0; top: 0; background: linear-gradient(160deg, #a0472d, #4a1d12); }
.chat-gface-one.g1 { right: 0; bottom: 0; background: linear-gradient(160deg, #2d7aa0, #12304a); }
.chat-friends-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-friends-pane[hidden], .chat-pick[hidden], .chat-people[hidden], .chat-rename[hidden], .chat-menu[hidden], .chat-gbtn[hidden] { display: none; }
.chat-menu { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(26, 32, 66, .99), rgba(14, 18, 40, .99)); border: 1px solid rgba(255, 236, 190, .2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.chat-who-bar { position: relative; }
.chat-who-bar .chat-menu { left: auto; right: 8px; top: 44px; width: 200px; }
.chat-menu > button { text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: #e4e7f5; font: inherit; font-size: 13.5px; cursor: pointer; }
.chat-menu > button:hover { background: rgba(227, 197, 106, .09); }
.chat-menu > button.warn { color: #ffb4a3; }
.chat-rename input, .chat-pick input[type=text] { width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .2); background: rgba(3, 7, 18, .6); color: #fff4d6; font: inherit; font-size: 13px; }
.chat-pick-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 4px; }
.chat-pick-acts small { margin-right: auto; color: #9aa6c4; font-size: 12px; }
.chat-small { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(227, 197, 106, .6); background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; font: 800 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.chat-small.ghost { background: #232b45; color: #e4e7f5; border-color: rgba(255, 236, 190, .32); }
/* "Are you sure" asked in place under the chat's name (call out 262): the question, then Yes and No, one size and solid */
.chat-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .2); background: rgba(14, 19, 44, .92); color: #fff4d6; font-size: 13px; }
.chat-ask span { flex: 1 1 150px; }
.chat-ask > div { display: flex; gap: 8px; }
.chat-ask .chat-small { min-width: 64px; height: 30px; }
.chat-note-line { display: block; color: #e4e7f5; font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
/* the emoji buttons beside your status (8 Oct 2026) and the chat box, the site's emoji pictures in the lines and statuses,
   and the picker's box (call out 256.3: the picker's own styles, messenger-emoji.css, load with it when first pressed) */
.chat-emo-btn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid rgba(255,236,190,.16); background: rgba(255,255,255,.04); cursor: pointer; }
.chat-emo-btn:hover, .chat-emo-btn[aria-expanded="true"] { border-color: #e3c56a; background: rgba(227,197,106,.14); }
.chat-emo-btn img { width: 16px; height: 16px; }
.chat-form .chat-emo-btn { width: 38px; height: 38px; border-radius: 10px; border-color: rgba(255, 236, 190, .2); }
.chat-form .chat-emo-btn img { width: 20px; height: 20px; }
.chat-emoji-box[hidden] { display: none; }
img.chat-emo-pic { width: 1.3em; height: 1.3em; margin: 0 .03em; vertical-align: -.28em; }
.chat-status-box { position: relative; flex: 1; min-width: 0; display: flex; }
.chat-status-show { display: none; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 9px; overflow: hidden; white-space: pre; text-overflow: ellipsis; color: #fff4d6; font-size: 12.5px; pointer-events: none; }
.chat-status-box.is-drawn .chat-status-show { display: block; }
.chat-status-box.is-drawn .chat-status-in { color: transparent; }
.chat-friend.is-dnd small { color: #f3a3a3; }
.chat-by { display: block; font-size: 11.5px; margin-bottom: 1px; }
.chat-line.note { justify-self: center; max-width: 100%; padding: 2px; margin: 0; background: none; color: #9aa6c4; font-size: 12px; text-align: center; }
.chat-people { margin: 0; padding: 6px 12px; color: #9aa6c4; font-size: 12.5px; border-bottom: 1px solid rgba(255, 236, 190, .08); }
.chat-rename { display: flex; gap: 6px; padding: 6px 10px; border-bottom: 1px solid rgba(255, 236, 190, .08); }
.chat-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.chat-pick-title { color: #fff4d6; font-size: 14px; }
.chat-pick-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(227, 197, 106, .4) transparent; }
.chat-pick-row { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; cursor: pointer; color: #fff4d6; font-size: 13.5px; }
.chat-pick-row:hover { background: rgba(255, 255, 255, .05); }
.chat-pick-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 5px 7px; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .2); background: rgba(3, 7, 18, .55); cursor: text; }
.chat-pick-box:focus-within { border-color: rgba(227, 197, 106, .7); }
.chat-pick-search { flex: 1; min-width: 110px; padding: 4px 2px; border: 0; background: none; color: #fff4d6; font: inherit; font-size: 13.5px; }
.chat-pick-search:focus { outline: none; }
.chat-pick-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 3px; border-radius: 8px; background: rgba(227, 197, 106, .14); border: 1px solid rgba(227, 197, 106, .45); color: #fff4d6; font-size: 12.5px; font-weight: 600; }
.chat-pick-tag .chat-face { width: 20px; height: 20px; font-size: 10px; }
.chat-pick-tag .chat-face::after { display: none; }
.chat-pick-tag button { padding: 0 3px; border: 0; background: none; color: #d8cfb6; font-size: 15px; line-height: 1; cursor: pointer; }
.chat-pick-tag button:hover { color: #fff; }
button.chat-pick-row { width: 100%; border: 0; background: none; font: inherit; text-align: left; }
.chat-pick-row .chat-face { width: 28px; height: 28px; font-size: 12px; }
/* your status on one slim line (option A, Jason 6 Oct 2026); its list floats on the page, above everything */
.chat-me-line-wrap { margin: 8px 10px 2px; }
.chat-me-line { display: flex; align-items: center; gap: 6px; }
.chat-state-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .16); background: rgba(255, 255, 255, .03); color: #fff4d6; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chat-state-btn:hover, .chat-state-btn[aria-expanded="true"] { border-color: rgba(227, 197, 106, .6); }
.chat-status-in { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 8px; border: 1px solid transparent; background: none; color: #fff4d6; font: inherit; font-size: 12.5px; }
.chat-status-in::placeholder { color: #9aa6c4; }
.chat-status-in:hover { border-color: rgba(255, 236, 190, .12); }
.chat-status-in:focus { outline: none; border-color: rgba(227, 197, 106, .6); background: rgba(3, 7, 18, .6); font-style: normal; }
.chat-me-extras { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; color: #9aa6c4; font-size: 12px; }
.chat-me-extras[hidden] { display: none; }
.chat-me-extras label { display: inline-flex; gap: 5px; align-items: center; }
.chat-me-extras select { padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255, 236, 190, .2); background: rgba(3, 7, 18, .7); color: #fff4d6; font: inherit; font-size: 12px; }
.chat-me-extras .chat-small { margin-left: auto; }
.chat-pfloat { position: fixed; z-index: 60; min-width: 200px; display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: linear-gradient(180deg, rgba(26, 32, 66, .99), rgba(14, 18, 40, .99)); border: 1px solid rgba(255, 236, 190, .22); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); font: 14px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; }
.chat-pfloat[hidden] { display: none; }
.chat-pfloat .o { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: #fff4d6; font: inherit; text-align: left; cursor: pointer; }
.chat-pfloat .o:hover, .chat-pfloat .o.on { background: rgba(227, 197, 106, .1); }
.chat-pfloat .o small { margin-left: auto; padding-left: 10px; color: #9aa6c4; font-size: 12px; }
/* an offline friend's envelope in its own column, so every envelope lines up whatever the name length (call out 404) */
.chat-friend-line { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
.chat-friend-mail { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255, 236, 190, .25); border-radius: 10px; background: rgba(255, 255, 255, .05); color: #e3c56a; }
.chat-friend-mail:hover, .chat-friend-mail:focus-visible { border-color: rgba(227, 197, 106, .6); background: rgba(227, 197, 106, .1); }
/* "Jason is typing" with three moving dots (6 Oct 2026) */
.chat-typing { margin: 0; padding: 2px 12px 6px; color: #9aa6c4; font-size: 12px; font-style: italic; box-sizing: border-box; height: 24px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-typing[hidden] { display: block; visibility: hidden; }   /* its line stays reserved: nothing jumps when someone starts typing (Jason, 11 Oct 2026) */
.chat-dots { display: inline-flex; gap: 3px; margin-left: 5px; vertical-align: middle; }
.chat-dots span { width: 4px; height: 4px; border-radius: 50%; background: #e3c56a; animation: chat-dot 1.2s ease-in-out infinite; }
.chat-dots span:nth-child(2) { animation-delay: .15s; }
.chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-dots span { animation: none; opacity: .8; } }
@media (max-width: 700px) { .chat-dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-window { animation: none; } }

/* Phone menu button (Jason, 2 Oct 2026: "it needs to look polished"): a round icon button at the right of the
   header instead of a long "Menu" pill; the three lines turn into an X while the menu is open. */
@media (max-width: 880px) {
  .mobile-menu { grid-column: -2 / -1; justify-self: end; }
  .mobile-menu summary {
    width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
    border: 1px solid rgba(255, 236, 190, .18); border-radius: 50%;
    background: rgba(255, 255, 255, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: border-color 150ms ease, background 150ms ease;
  }
  .mobile-menu summary:hover, .mobile-menu[open] summary { border-color: rgba(248, 199, 107, .55); background: rgba(248, 199, 107, .1); }
  .mobile-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .menu-bars { position: relative; width: 18px; height: 14px; }
  .menu-bars span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #f3ead2;
    transition: transform 200ms ease, opacity 150ms ease, top 200ms ease;
  }
  .menu-bars span:nth-child(1) { top: 0; }
  .menu-bars span:nth-child(2) { top: 6px; }
  .menu-bars span:nth-child(3) { top: 12px; }
  .mobile-menu[open] .menu-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .mobile-menu[open] .menu-bars span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] .menu-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .mobile-menu nav { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); backdrop-filter: blur(18px); }
}
@media (prefers-reduced-motion: reduce) { .menu-bars span, .mobile-menu summary { transition: none; } }

/* PC notifications "Turn on" banner (push.js; Jason, 2 Oct 2026): just under the menu bar, never in a corner. Under the
   header (z-index 30), so an open header menu (the avatar menu, the Team bar's Moderator menu) shows over it. */
.push-ask { position: fixed; z-index: 29; left: 50%; top: 150px; transform: translateX(-50%); width: min(760px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 38, 72, .96), rgba(12, 16, 36, .96)); border: 1px solid rgba(227, 197, 106, .45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(227, 197, 106, .08); backdrop-filter: blur(14px); color: #d6dcf0;
  font-family: "Source Sans 3", system-ui, sans-serif; animation: push-ask-in .35s ease both; }
.push-ask::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 210, 122, .9), transparent); }
.push-ask.is-leaving { opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s ease, transform .25s ease; }
.push-ask-bell { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(240, 210, 122, .28), rgba(240, 210, 122, .06)); border: 1px solid rgba(240, 210, 122, .45); box-shadow: 0 0 24px rgba(240, 210, 122, .18); }
.push-ask-bell svg { width: 30px; height: 30px; stroke: #f6dc8c; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.push-ask-text strong { display: block; font: 800 1.2rem/1.2 "Fraunces", Georgia, serif; color: #fff4d6; }
.push-ask-text p { margin: 5px 0 0; font-size: .95rem; line-height: 1.45; color: #b7bfd8; }
.push-ask-actions { display: grid; gap: 8px; }
.push-ask-actions .shell-btn, .push-ask-actions .shell-btn-ghost { min-width: 120px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.push-ask-actions .shell-btn-ghost { border: 1px solid rgba(255, 236, 190, .28); }
@keyframes push-ask-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .push-ask { animation: none; } .push-ask.is-leaving { transition: none; } }

/* a box is open over the Keystone page in the frame (transition.js "uorealms-shell-box"): the seasonal decorations (the Almanac's
   moon, bats and spider) stay out of its way until it closes (review fix, 19 Oct 2026) */
.shell-frame-box .alm-sky, .shell-frame-box .alm-spider-zone { visibility: hidden; }

/* The envelope and the bell beside the avatar (Jason, 22 Oct 2026, call out 72; XenForo's inbox and alerts): the envelope
   opens Camp > Messages with its number of unread messages and team notes; the bell drops down the site's latest notes
   (mentions, quotes, reactions, badges...) with Mark all read. On phones too, beside the menu button. */
.shell-icons { display: flex; align-items: center; gap: 8px; }
.shell-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px;
  border: 1px solid rgba(255, 236, 190, .2); background: linear-gradient(180deg, rgba(44, 54, 92, .55), rgba(20, 26, 50, .75)); color: #e7e2d6;
  cursor: pointer; transition: color .15s, border-color .15s, box-shadow .15s, background .15s; }
.shell-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell-icon:hover, .shell-icon:focus-visible, .shell-icon[aria-expanded="true"] { color: #fff8e6; border-color: rgba(227, 197, 106, .65);
  box-shadow: 0 0 0 3px rgba(227, 197, 106, .12), 0 0 18px rgba(227, 197, 106, .22); outline: none; }
.shell-icon.has-new { color: #f3d98a; border-color: rgba(227, 197, 106, .55); }
/* The header icons' tooltips (UPDATE-71B, call out 1162): the wizard hat, the envelope and the bell, one look, under the icon on
   hover and keyboard focus (never the browser's own); not while the bell's list is open */
.shell-icon[data-shell-tip]::after { content: attr(data-shell-tip); position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); z-index: 95;
  padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s;
  font: 700 12.5px/1.3 "Source Sans 3", system-ui, sans-serif; color: #f3ead2; background: #1b2240; border: 1px solid rgba(255, 236, 190, .25); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.shell-icon[data-shell-tip]:focus-visible::after { opacity: 1; }
@media (hover: hover) { .shell-icon[data-shell-tip]:hover::after { opacity: 1; } }   /* a phone's tap never leaves it showing */
.shell-icon[aria-expanded="true"]::after { display: none; }
.shell-count { position: absolute; top: -7px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(180deg, #ff7a52, #d9354a); color: #fff; font: 800 11.5px/1 "Source Sans 3", system-ui, sans-serif;
  border: 2px solid #0a0e1e; box-shadow: 0 2px 8px rgba(217, 53, 74, .45); }
.shell-icon.ring svg { animation: shell-ring .9s ease-in-out 1; transform-origin: 50% 15%; }
@keyframes shell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .shell-icon.ring svg { animation: none; } }
.shell-alerts { position: relative; }
.shell-alert-pop { position: absolute; z-index: 90; top: calc(100% + 12px); right: -8px; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px);
  display: flex; flex-direction: column; border: 1px solid rgba(255, 236, 190, .2); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 38, 74, .98), rgba(14, 19, 44, .98)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .3); font-family: "Source Sans 3", system-ui, sans-serif; }
.shell-alert-pop::before { content: ""; position: absolute; top: -7px; right: 21px; width: 12px; height: 12px; transform: rotate(45deg);
  background: rgb(30, 38, 74); border-left: 1px solid rgba(255, 236, 190, .2); border-top: 1px solid rgba(255, 236, 190, .2); }
.shell-alert-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 11px; border-bottom: 1px solid rgba(255, 236, 190, .12); }
.shell-alert-title { font: 700 17px "Fraunces", Georgia, serif; color: #f7f1e3; }
.shell-alert-all { padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(227, 197, 106, .35); background: #232b45; color: #e3c56a; font: 700 12.5px "Source Sans 3", system-ui, sans-serif; cursor: pointer; }
.shell-alert-all:hover { background: #2c3656; color: #f3d98a; }
/* the bell's Sound on / Sound off (Jason, 23 Oct 2026, call out 98; mockups/bell-sound): beside Mark all read */
.shell-alert-head { gap: 8px; }
.shell-alert-title { margin-right: auto; }
.shell-alert-sound { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .22); background: #232b45; color: #e7e2d6; font: 700 12.5px "Source Sans 3", system-ui, sans-serif; cursor: pointer; }
.shell-alert-sound:hover { background: #2c3656; }
.shell-alert-sound svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell-alert-sound.off { color: #a5aecb; }
.shell-alert-list { overflow-y: auto; overscroll-behavior: contain; }
.shell-alert { position: relative; display: block; padding: 11px 16px 11px 30px; border-bottom: 1px solid rgba(255, 236, 190, .07); color: #d6dcf0; text-decoration: none; cursor: pointer; }
.shell-alert:last-child { border-bottom: 0; }
.shell-alert:hover, .shell-alert:focus-visible { background: rgba(227, 197, 106, .07); outline: none; }
.shell-alert b { display: block; color: #f3ead2; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.shell-alert span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: #a5aecb; font-size: 13.5px; line-height: 1.4; }
.shell-alert time { display: block; margin-top: 4px; color: #8a93b3; font-size: 12px; }
.shell-alert.unread { background: rgba(227, 197, 106, .05); }
.shell-alert.unread::before { content: ""; position: absolute; left: 13px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #e3c56a; box-shadow: 0 0 8px rgba(227, 197, 106, .7); }
.shell-alert-none { margin: 0; padding: 26px 16px; text-align: center; color: #a5aecb; font-size: 14px; }
/* The bell fix (call outs 153 to 155, XenForo's alerts): each alert's Mark read or Mark unread and Dismiss, solid same size
   icon buttons with tooltips, and Show all alerts at the foot */
.shell-alert { display: flex; align-items: flex-start; gap: 8px; cursor: default; }
.shell-alert-main { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; }
.shell-alert-main:focus-visible { outline: 2px solid rgba(227, 197, 106, .6); outline-offset: 2px; border-radius: 6px; }
.shell-alert-tools { display: flex; gap: 5px; flex: 0 0 auto; margin-top: 1px; }
.shell-alert-tool { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 236, 190, .22); background: #232b45; color: #e7e2d6; }
.shell-alert-tool:hover, .shell-alert-tool:focus-visible { background: #2c3656; color: #f3d98a; border-color: rgba(255, 236, 190, .45); outline: none; }
.shell-alert-tool svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shell-alert-tool span { display: inline-flex; }
.shell-alert-tool .on-unread, .shell-alert-tool.dot .on-read { display: none; }
.shell-alert-tool.dot .on-unread { display: inline-flex; }
.shell-alert-tool .on-unread svg { fill: currentColor; stroke: none; }
.shell-alert-foot { padding: 10px 16px; border-top: 1px solid rgba(255, 236, 190, .12); text-align: center; }
.shell-alert-more { color: #e3c56a; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.shell-alert-more:hover, .shell-alert-more:focus-visible { color: #f3d98a; text-decoration: underline; }
@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .shell-icons { gap: 6px; }
  .shell-icon { width: 38px; height: 38px; }
  .shell-alert-pop { position: fixed; top: calc(var(--uoradio-height, 0px) + 70px); right: 12px; }
  .shell-alert-pop::before { display: none; }
}

/* Phones (Jason, 22 Oct 2026): the picture stays beside the envelope and the bell, opening Account settings (Sign out is in
   the menu, which also has Account settings) */
@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr auto auto auto; }
  .shell-me { display: flex; gap: 0; }
  .shell-me .shell-btn-ghost, .shell-me .shell-btn { display: none; }
  .shell-me .shell-avatar { width: 38px; height: 38px; }
}

/* The menu under the member's own picture (call outs 199 (4), 204, 205): the bell's drop down look, compact, one column */
.shell-me { position: relative; }
.shell-usermenu { position: absolute; z-index: 90; top: calc(100% + 12px); right: -8px; width: min(290px, calc(100vw - 24px)); border: 1px solid rgba(255, 236, 190, .2); border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 38, 74, .98), rgba(14, 19, 44, .98)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .3); font-family: "Source Sans 3", system-ui, sans-serif; overflow: hidden; }
.shell-usermenu[hidden] { display: none; }
.shell-um-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(255, 236, 190, .12); }
.shell-um-face { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #2a3157; color: #f3ead2; font: 700 18px "Fraunces", Georgia, serif; }
.shell-um-face img { width: 100%; height: 100%; object-fit: cover; }
.shell-um-who { min-width: 0; display: grid; gap: 2px; }
.shell-um-who strong { color: #f7f1e3; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-um-status { display: flex; align-items: center; gap: 6px; min-width: 0; color: #a5aecb; font-size: 13px; white-space: nowrap; }
/* the status chooser (call out 293): a small softly rounded button; the four choices open in place under the name */
.shell-um-state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 2px 0 0; padding: 3px 8px; border: 1px solid rgba(255, 236, 190, .2); border-radius: 7px;
  background: #262e57; color: #e3e8f7; font: inherit; font-size: 13px; line-height: 1.25; cursor: pointer; }
.shell-um-state:hover, .shell-um-state:focus-visible, .shell-um-state[aria-expanded="true"] { border-color: rgba(227, 197, 106, .65); color: #f7f1e3; outline: none; }
.shell-um-caret { font-size: 10px; color: #a5aecb; }
.shell-um-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shell-um-states { display: grid; gap: 2px; padding: 6px 10px 8px; border-bottom: 1px solid rgba(255, 236, 190, .12); }
.shell-um-opt { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: #d6dcf0; font: inherit;
  font-size: 14px; text-align: left; cursor: pointer; }
.shell-um-opt:hover, .shell-um-opt:focus-visible { background: rgba(227, 197, 106, .1); color: #f3ead2; outline: none; }
.shell-um-opt[aria-checked="true"] { background: rgba(227, 197, 106, .16); color: #f7f1e3; font-weight: 700; }
.shell-um-problem { margin: 0; padding: 8px 16px; border-bottom: 1px solid rgba(255, 236, 190, .12); color: #f2a7a7; font-size: 13px; }
.shell-um-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #6b7280; }
.shell-um-dot.online { background: #86efac; }
.shell-um-dot.away { background: #f5b942; }
.shell-um-dot.dnd { background: #ef5b5b; }
.shell-um-link { display: block; padding: 9px 16px; color: #d6dcf0; font-size: 14.5px; text-decoration: none; }
.shell-um-link:hover, .shell-um-link:focus-visible { background: rgba(227, 197, 106, .08); color: #f3ead2; outline: none; }
.shell-um-progress { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 236, 190, .08); font-size: 13.5px; }
.shell-um-progress span:first-child { color: #c9a8f0; font-weight: 700; }
.shell-um-progress span:nth-child(2) { color: #e3c56a; font-weight: 700; }
.shell-um-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.shell-um-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #c8a84b, #f2d98a); }
.shell-um-play { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid rgba(255, 236, 190, .08); }
.shell-um-play span { color: #a5aecb; font-size: 13px; flex: 0 0 auto; }
.shell-um-play b { color: #f3ead2; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-um-links { padding: 4px 0; }
.shell-um-foot { border-top: 1px solid rgba(255, 236, 190, .12); padding: 4px 0; }
.shell-um-signout { color: #e7a3a3; }
@media (max-width: 880px) {
  .shell-usermenu { position: fixed; top: calc(var(--uoradio-height, 0px) + 70px); right: 12px; }
}
/* Signed out (Jason, 20 Nov 2026; the approved Session Expired box, mockups/session-expired): idle or by the team, once, with
   the team's note in a softly tinted area (no line on its side). transition.js showSignedOut */
.idle-out { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .6); }
.idle-out-box { width: 460px; max-width: 100%; padding: 24px 30px 26px; border-radius: 16px; text-align: center; color: #f3ead2; font-size: 16px; line-height: 1.5; text-wrap: pretty;
  background: linear-gradient(180deg, rgba(30, 36, 74, .97), rgba(14, 18, 40, .98)); border: 1px solid rgba(227, 197, 106, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.idle-out-box img { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 14px; }
.idle-out-box h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #f3ead2; }
.idle-out-box p { margin: 0 0 18px; }
.idle-out-note { margin: -8px 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(227, 197, 106, .08); text-align: left; font-size: 15px; }
.idle-out-note small { display: block; font-size: 12px; opacity: .7; margin-bottom: 2px; }
.idle-out-actions { display: flex; justify-content: center; gap: 10px; }
.idle-out-btn { font: inherit; font-weight: 700; font-size: 14px; min-height: 34px; min-width: 96px; padding: 0 18px; border-radius: 9px; border: 0; cursor: pointer; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; }
.idle-out-btn.ghost { background: #232a48; color: #f3ead2; border: 1px solid rgba(255, 236, 190, .3); }
.idle-out-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
/* A Live pop up from Codex > Notices (call out 1022, the approved mockup mockups/live-pop-up-slide): slides out at the top right under
   the header and stays until Got it or the x; no cover over the page, so a game keeps playing underneath */
.team-notice.slide { inset: auto; top: calc(var(--uoradio-height) + 84px); right: 20px; z-index: 300; display: block; padding: 0; background: none; backdrop-filter: none; pointer-events: none; }
.team-notice.slide .team-notice-card { position: relative; width: min(330px, calc(100vw - 32px)); padding: 12px 14px 12px 16px; border-radius: 16px; border: 1px solid rgba(227, 197, 106, .38); background: linear-gradient(160deg, rgba(14, 20, 40, .92), rgba(6, 10, 22, .9)); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 22px rgba(227, 197, 106, .14), inset 0 1px 0 rgba(255, 255, 255, .05); pointer-events: auto; transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .25, 1.1), opacity .3s ease; }
.team-notice.slide.in .team-notice-card { transform: none; opacity: 1; }
.team-notice.slide .team-notice-kick { padding-right: 26px; font-size: 10.5px; letter-spacing: .12em; }
.team-notice.slide h2 { margin: 2px 0 4px; padding-right: 24px; font-size: 1rem; line-height: 1.25; }
.team-notice.slide .team-notice-body { font-size: 13.5px; line-height: 1.45; }
.team-notice.slide .team-notice-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.team-notice.slide .team-notice-btn { min-height: 30px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; }
/* a Slide out's own picture at its left, centered across and down (Jason, 25 Nov 2026) */
.team-notice.slide .team-notice-card.has-pic { display: flex; align-items: center; gap: 12px; width: min(400px, calc(100vw - 32px)); }
.team-notice.slide .team-notice-pic { flex: none; width: auto; height: auto; max-width: 96px; max-height: 96px; object-fit: contain; align-self: center; border-radius: 12px; }
.team-notice.slide .team-notice-words { flex: 1 1 auto; min-width: 0; }
.team-notice-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgba(255, 236, 190, .2); background: rgba(255, 255, 255, .04); color: #c9cfe3; cursor: pointer; font-size: 15px; line-height: 1; }
.team-notice-x:hover { color: #e3c56a; border-color: rgba(227, 197, 106, .5); }
.team-notice-x:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
@media (max-width: 600px) { .team-notice.slide { top: calc(var(--uoradio-height) + 68px); right: 16px; } }
@media (prefers-reduced-motion: reduce) { .team-notice.slide .team-notice-card { transition: opacity .2s ease; } }
/* Camp Messenger's UORealms Team (call outs 1024 and 1029, the approved mockup): team members chatting with you on top of the
   list, gold heading and a soft gold row, and the UORealms Team tag beside a team member's name (softly rounded, never a
   pill, only as wide as its words, bright gold so it stands out) */
.chat-friends-group.chat-team-group { color: #f0d27a; }
.chat-friend.chat-team-row { margin: 2px 4px 4px; border-radius: 10px; background: rgba(227, 197, 106, .08); border: 1px solid rgba(227, 197, 106, .3); }
.team-tag, .chat-who .team-tag, .chat-who strong .team-tag {
  display: inline-block; width: auto; max-width: max-content; margin-left: 7px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(240, 210, 122, .8);
  background: rgba(227, 197, 106, .24); color: #ffe7a3; font: 800 10.5px/1.65 "Source Sans 3", system-ui, sans-serif; letter-spacing: .01em; text-transform: none;
  vertical-align: 1px; white-space: nowrap; }
/* a team row stays bright when the team member is offline: their name and the UORealms Team tag never fade (call out 1029) */
.chat-friend.chat-team-row.is-off { opacity: 1; }
.chat-friend .chat-who strong .team-tag, .chat-who strong .team-tag { color: #ffe7a3; }
/* a team member's row in Online and Offline (UPDATE-71 item 17): the tag drops to the line under a long name, never cut off */
.chat-friend .chat-who strong.has-team { white-space: normal; }
/* Camp Messenger's + (call out 1027, the approved mockup mockups/messenger-start-chat): a gold + by Hide and the Start a
   chat box under your status line, for team members with "Can message anyone" only */
.chat-btn.chat-plus { display: grid; place-items: center; border-color: rgba(227, 197, 106, .6); color: #e3c56a; }
.chat-btn.chat-plus.open { background: rgba(227, 197, 106, .16); }
.chat-btn.chat-plus[hidden], .chat-start[hidden] { display: none; }
.chat-start { margin: 0 10px 6px; }
.chat-start label { display: block; margin-bottom: 4px; color: #9aa6c4; font-size: 12px; font-weight: 700; }
.chat-start input { box-sizing: border-box; width: 100%; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255, 236, 190, .16); background: rgba(255, 255, 255, .04); color: #fff4d6; font: inherit; font-size: 13.5px; }
.chat-start input:focus { outline: none; border-color: rgba(227, 197, 106, .55); }
.chat-start-list { display: grid; gap: 2px; margin-top: 6px; }
.chat-start-list:empty { display: none; }
/* the security note on a chat a team member started (call out 1032, the approved mockup mockups/team-security-note) */
.chat-safe { margin: 4px 2px 8px; padding: 9px 11px; border-radius: 12px; border: 1px solid rgba(255, 236, 190, .16); background: rgba(255, 255, 255, .035); }
.chat-safe-head { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; color: #f3ead2; font-weight: 800; font-size: 13px; }
.chat-safe-head svg { flex: none; color: #e3c56a; }
.chat-safe-body { margin: 0; color: #9aa6c4; font-size: 12.5px; font-style: italic; line-height: 1.4; }
.chat-safe-body a { color: #e3c56a; }
/* Camp Messenger's Settings and Pop out (call out 1125, Jason): the gear and the pop out arrow beside + and Hide, and the small
   Settings menu in the window (Text size, then Sound), solid like the chat's own options menu */
.chat-window-top { position: relative; }
.chat-btn.chat-icon-btn { display: grid; place-items: center; padding: 0; }
.chat-btn.chat-set-btn[aria-expanded="true"] { color: #e3c56a; border-color: rgba(227, 197, 106, .6); background: #262a40; }
.chat-set { position: absolute; z-index: 5; right: 8px; top: calc(100% + 4px); width: 230px; max-height: 390px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 2px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #1a2042, #0e1228); border: 1px solid rgba(255, 236, 190, .2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); scrollbar-width: thin; scrollbar-color: rgba(227, 197, 106, .4) transparent; }
.chat-set[hidden] { display: none; }
.chat-set-head { margin: 8px 4px 4px; color: #e3c56a; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chat-set-head:first-child { margin-top: 2px; }
.chat-set-size { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px; border: 0; background: none; color: #e4e7f5; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.chat-set-size:hover, .chat-set-size:focus-visible { background: rgba(227, 197, 106, .09); }
.chat-set-size.on { background: rgba(227, 197, 106, .12); color: #fff4d6; }
.chat-set-tick { flex: none; width: 14px; color: #e3c56a; font-weight: 800; visibility: hidden; }
.chat-set-size.on .chat-set-tick { visibility: visible; }
.chat-set-sizes { display: grid; gap: 2px; }
.chat-set-sounds { display: grid; gap: 1px; }
.chat-set-sound { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; color: #e4e7f5; font-size: 13.5px; cursor: pointer; }
.chat-set-sound:hover { background: rgba(255, 255, 255, .05); }
.chat-set-sound input { flex: none; margin: 0; accent-color: #e3c56a; }
/* the rest of Camp's speaker menu (call out 1132), in its look: your own sound (the dashed gold picker, its file input hidden
   inside it), Remove my own sound, the size note, and the Goblin's event reminders */
.chat-set-list { display: grid; gap: 1px; }
.chat-set-own { position: relative; display: block; margin: 8px 2px 0; padding: 7px 10px; border-radius: 10px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 700; color: #e3c56a; border: 1px dashed rgba(227, 197, 106, .45); background: #161b3a; }
.chat-set-own:hover, .chat-set-own:focus-within { background: #252845; }
.chat-set-own:focus-within { outline: 2px solid #e3c56a; outline-offset: 2px; }
.chat-set-file { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.chat-set-remove { display: block; width: calc(100% - 4px); margin: 6px 2px 0; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: #161b3a; color: #9aa6c4; font: inherit; font-size: 12.5px; cursor: pointer; }
.chat-set-remove:hover, .chat-set-remove:focus-visible { color: #ffb4a3; border-color: rgba(255, 140, 120, .5); }
.chat-set-note { margin: 8px 4px 0; color: #9aa6c4; font-size: 12px; line-height: 1.4; }
.chat-set-goblin { display: flex; align-items: flex-start; gap: 8px; margin: 10px 2px 2px; padding: 10px 2px 0; border-top: 1px solid rgba(255, 236, 190, .12); cursor: pointer; }
.chat-set-goblin input { flex: none; margin: 3px 0 0; accent-color: #e3c56a; }
.chat-set-goblin b { display: block; color: #fff4d6; font-size: 13px; }
.chat-set-goblin small { display: block; color: #9aa6c4; font-size: 12px; line-height: 1.35; }
/* Text size (call out 1125): Large and Larger make every word in the window bigger (messenger-dock.js marks the tab and the
   status list that floats on the page). Default has no mark, so today's sizes stay exactly as they are. Pictures, buttons and
   the 340px window keep their size; long names still end with ... and the strip of pictures still scrolls. */
.chat-dock[data-chat-text="large"], .chat-pfloat[data-chat-text="large"] { --chat-text: 1.15; }
.chat-dock[data-chat-text="larger"], .chat-pfloat[data-chat-text="larger"] { --chat-text: 1.3; }
.chat-dock[data-chat-text] .chat-window { font-size: calc(14px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-friends-group, .chat-dock[data-chat-text] .chat-who small, .chat-dock[data-chat-text] .chat-by, .chat-dock[data-chat-text] .chat-set-head { font-size: calc(11.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-chip-badge { min-width: calc(17px * var(--chat-text)); height: calc(17px * var(--chat-text)); font-size: calc(10.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-line small, .chat-dock[data-chat-text] .team-tag { font-size: calc(10.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-who strong, .chat-dock[data-chat-text] .chat-pick-title { font-size: calc(14px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-form textarea, .chat-dock[data-chat-text] .chat-menu > button, .chat-dock[data-chat-text] .chat-pick-row, .chat-dock[data-chat-text] .chat-start input,
.chat-dock[data-chat-text] .chat-set-size, .chat-dock[data-chat-text] .chat-set-sound { font-size: calc(13.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-goblin-busy, .chat-dock[data-chat-text] .chat-note, .chat-dock[data-chat-text] .chat-rename input, .chat-dock[data-chat-text] .chat-pick input[type=text],
.chat-dock[data-chat-text] .chat-small, .chat-dock[data-chat-text] .chat-ask, .chat-dock[data-chat-text] .chat-safe-head { font-size: calc(13px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-goblin-done, .chat-dock[data-chat-text] .chat-problem, .chat-dock[data-chat-text] .chat-status-show, .chat-dock[data-chat-text] .chat-people,
.chat-dock[data-chat-text] .chat-pick-tag, .chat-dock[data-chat-text] .chat-state-btn, .chat-dock[data-chat-text] .chat-status-in, .chat-dock[data-chat-text] .chat-safe-body { font-size: calc(12.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-note-line, .chat-dock[data-chat-text] .chat-line.note, .chat-dock[data-chat-text] .chat-pick-acts small, .chat-dock[data-chat-text] .chat-pick-row .chat-face,
.chat-dock[data-chat-text] .chat-me-extras, .chat-dock[data-chat-text] .chat-me-extras select, .chat-dock[data-chat-text] .chat-start label { font-size: calc(12px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-gface-one { font-size: calc(11px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-set-own, .chat-dock[data-chat-text] .chat-set-goblin b { font-size: calc(13px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-set-remove { font-size: calc(12.5px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-set-note, .chat-dock[data-chat-text] .chat-set-goblin small { font-size: calc(12px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-pick-tag .chat-face { font-size: calc(10px * var(--chat-text)); }
.chat-dock[data-chat-text] .chat-typing { height: calc(24px * var(--chat-text)); line-height: calc(16px * var(--chat-text)); font-size: calc(12px * var(--chat-text)); }
.chat-pfloat[data-chat-text] { font-size: calc(14px * var(--chat-text)); }
.chat-pfloat[data-chat-text] .o small { font-size: calc(12px * var(--chat-text)); }
