/* ==========================================================================
   Anglers of Azeroth: the guild's own pieces on top of the theme.
   The sign-in screen (a lake at night, laid out like the game's own sign-in
   screen), the guild's constellation, the guild hall's four portals, the top
   bar's extras and the foot.
   Original art throughout: gradients and inline SVG, no game assets.
   ========================================================================== */

/* ---------- the grit the theme's surfaces are made of (film grain, worn scratches) ---------- */

:where(.app.skin-wow) {
  /* Film grain: dark speckles that dirty any surface they sit on. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.7 -.78'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Wear: fine scratches, each with a dark gouge under a bright edge. */
  --scratches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath stroke='%23000' stroke-opacity='.45' stroke-width='.9' d='M19 44l74-11M151 22l96 34M37 216l82-23M207 170l66 44M97 124l46 5M239 268l58-34'/%3E%3Cpath stroke='%23fff' stroke-opacity='.09' stroke-width='.7' d='M18 42l74-11M150 20l96 34M36 214l82-23M206 168l66 44M96 122l46 5M238 266l58-34M8 300l40-6M262 92l44-18M120 280l30-26M60 160l-24 30'/%3E%3C/g%3E%3C/svg%3E");
  /* The display faces ship few weights; never smear a fake bold over them. */
  font-synthesis-weight: none;
  /* The skins swap in their own arrow cursor; text fields keep the I-beam. */
  & :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file]), textarea, [contenteditable=true]) { cursor: text; }
  & .space-bg::before, & .space-bg::after { content: ""; position: absolute; pointer-events: none; }
}

/* ---------- the sky behind every page (theme.css paints it) ---------- */

.space-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.space-bg .nebula, .space-bg .grid-floor { position: absolute; }
.space-bg::before, .space-bg::after { content: ""; position: absolute; pointer-events: none; }
.space-bg .stars { position: absolute; inset: -50% -50%; background-repeat: repeat; animation: drift linear infinite; }
.space-bg .stars-1 { background-size: 400px 260px; animation-duration: 240s; }
.space-bg .stars-2 { background-size: 520px 380px; animation-duration: 180s; }
.space-bg .stars-3 { background-size: 700px 520px; animation-duration: 120s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-200px, -120px, 0); } }
@keyframes nebula { from { transform: rotate(0deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }

/* ---------- top bar extras ---------- */

.anglers .brand { gap: .65rem; }
.anglers .brand .crest { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.anglers .brand-word small { font-size: .7em; opacity: .85; margin: 0 .1em; }
.anglers .topnav-link .icon { opacity: .9; }
.user-initial {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--title, Georgia, serif); font-weight: 700; font-size: .95rem; color: #1f1302;
  background: radial-gradient(circle at 35% 30%, #fff3b8, #e3b24a 55%, #7d4f12);
  box-shadow: 0 0 0 1px #120703, 0 0 0 2px rgba(227, 178, 74, .5);
}
.user-chip { color: var(--text); cursor: pointer; }
.user-chip .chip { margin-left: .1rem; }

@media (max-width: 1020px) {
  .anglers .topnav-link span { display: none; }
  .anglers .topnav-link { padding: .5rem .6rem; }
}
@media (max-width: 640px) {
  .anglers .brand-word { display: none; }
  .anglers .topbar { gap: .5rem; padding: 0 .6rem; }
  .anglers .user-name, .anglers .user-chip .chip { display: none; }
}

.site-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; padding: 1.4rem 1rem 2rem;
  font-size: .82rem; color: var(--text-2); text-align: center;
}
.site-foot span:first-child { font-family: var(--display); color: var(--gold); letter-spacing: .04em; }

/* ---------- the guild hall ---------- */

.guild-hall { max-width: 1180px; }
.hall-head { text-align: center; margin: 1.2rem 0 1.8rem; }
.hall-head h1 { margin-bottom: .2rem; }
.hall-head p { font-size: 1.05rem; }

.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 760px) { .portals { grid-template-columns: minmax(0, 1fr); } }

.portal {
  position: relative; display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem 1.3rem;
  min-height: 168px; color: var(--text); text-decoration: none !important; border-radius: 12px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .22)) padding-box,
    radial-gradient(120% 90% at 0% 0%, var(--portal-glow, rgba(255, 209, 0, .14)), transparent 60%) padding-box,
    linear-gradient(180deg, #23262f, #16181f) padding-box,
    linear-gradient(180deg, #fff3b8, #c9952f 35%, #6b4513 70%, #e3b24a) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px #050302, 0 18px 40px -22px #000;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.portal:hover, .portal:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px #050302, 0 0 26px -6px var(--portal-ring, rgba(255, 200, 60, .65)), 0 22px 44px -22px #000;
}
.portal::after {
  content: ""; position: absolute; right: 14px; bottom: 12px; width: 26px; height: 26px; opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3b24a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.portal-icon {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  color: var(--portal-ink, #ffe7a0);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 45%), var(--portal-orb, radial-gradient(circle, #2a5a8c, #0d1f38));
  box-shadow: 0 0 0 2px #120703, 0 0 0 4px #c9952f, 0 0 0 5px #120703, 0 6px 14px rgba(0, 0, 0, .6);
}
.portal-body { display: grid; gap: .3rem; min-width: 0; padding-right: 1.4rem; }
.portal-title { font-family: var(--title, Georgia, serif); font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: transparent; background: var(--wow-gold-text, linear-gradient(#fff3b8, #e3b24a)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 #000); }
.portal-text { color: var(--text-2); font-size: .95rem; }
.portal-facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.portal-facts b { color: var(--gold); font-family: var(--numerals, Georgia, serif); font-size: 1.05rem; margin-right: .15rem; }
.portal-market { --portal-orb: radial-gradient(circle, #2f7fa8, #0b2a44); --portal-glow: rgba(90, 180, 255, .16); --portal-ring: rgba(90, 180, 255, .6); --portal-ink: #dff4ff; }
.portal-events { --portal-orb: radial-gradient(circle, #a83a2a, #3d0d06); --portal-glow: rgba(255, 110, 70, .15); --portal-ring: rgba(255, 120, 70, .6); --portal-ink: #ffe2d2; }
.portal-stats { --portal-orb: radial-gradient(circle, #3f8a3a, #0f2a0d); --portal-glow: rgba(110, 230, 120, .13); --portal-ring: rgba(110, 230, 120, .55); --portal-ink: #e2ffd9; }
.portal-dkp { --portal-orb: radial-gradient(circle, #8a4fc4, #24103d); --portal-glow: rgba(190, 120, 255, .16); --portal-ring: rgba(190, 120, 255, .6); --portal-ink: #f1e2ff; }

.hall-tip { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hall-tip > div { flex: 1 1 320px; }
.hall-tip h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.hall-tip p { margin: 0; }
.hall-tip > .icon { color: var(--gold); }

/* ---------- the sign-in screen ---------- */

.auth-screen {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: clamp(1rem, 4vh, 2.6rem) 1rem 0; overflow-x: hidden;
}
html:has(.auth-screen), html:has(.auth-screen) body { background: #04050d; }

.auth-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255, 128, 72, .12), transparent 70%),
    linear-gradient(180deg, #03040b 0%, #090d29 38%, #171a47 66%, #2a1f4c 80%, #3b2347 100%);
}
.auth-scene > * { position: absolute; }
.scene-aurora { inset: -10% -10% 40% -10%; filter: blur(22px); opacity: .9;
  background:
    radial-gradient(42% 14% at 28% 30%, rgba(70, 255, 190, .22), transparent 70%),
    radial-gradient(34% 10% at 52% 22%, rgba(110, 200, 255, .16), transparent 70%),
    radial-gradient(38% 16% at 14% 40%, rgba(170, 100, 255, .18), transparent 70%);
  animation: wow-aurora 30s ease-in-out infinite alternate;
}
.scene-stars { inset: 0 0 35% 0; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #ffe9b8, transparent),
    radial-gradient(1.4px 1.4px at 200px 160px, #d8e6ff, transparent), radial-gradient(1px 1px at 300px 40px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 380px 220px, #cfe0ff, transparent);
  background-size: 400px 260px; animation: wow-twinkle 5s ease-in-out infinite alternate;
}
/* the Leaping Fish, over the angler on the pier */
.scene-constellation { right: 10%; top: 33%; width: clamp(180px, 15vw, 240px); }
.scene-land { left: 0; bottom: 0; width: 100%; height: 44vh; min-height: 260px; }
/* the aurora, caught in the ripples */
.scene-shimmer { left: 50%; bottom: 0; width: min(46vw, 520px); height: calc(44vh * .25); transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(140, 255, 210, .12) 0 2px, transparent 2px 9px);
  -webkit-mask-image: radial-gradient(50% 100% at 50% 0%, #000, transparent 80%); mask-image: radial-gradient(50% 100% at 50% 0%, #000, transparent 80%);
  animation: wow-twinkle 3s ease-in-out infinite alternate;
}

/* Above the scene; the scene and the corner's help stay where they're pinned. */
.anglers.auth-screen > :not(.auth-scene, .auth-side) { position: relative; z-index: 1; }
.anglers.auth-screen > .auth-scene { position: fixed; z-index: 0; }

.auth-title-block { display: grid; justify-items: center; text-align: center; gap: .2rem; margin-bottom: clamp(.8rem, 3vh, 2rem); }
.auth-crest { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .8)) drop-shadow(0 0 22px rgba(255, 200, 80, .25)); }
.auth-logo {
  margin: .3rem 0 0; font-family: "Cinzel Decorative", "Cinzel", Georgia, serif; font-weight: 900; letter-spacing: .03em;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem); line-height: 1; color: transparent;
  background: linear-gradient(180deg, #fffbe6 0%, #ffe28a 30%, #e3a83a 58%, #8c5512 82%, #f0c86a 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 #1a0d02) drop-shadow(0 0 2px #000) drop-shadow(0 0 24px rgba(255, 190, 60, .35));
}
.auth-logo small { font-size: .5em; vertical-align: .35em; margin: 0 .05em; }
.auth-motto { margin: .5rem 0 0; font-family: "Marcellus", Georgia, serif; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: #cfe6ff; text-shadow: 0 2px 6px #000; }

.auth-main { width: min(470px, 100%); display: grid; align-content: start; justify-items: stretch; padding-bottom: 1.5rem; }
.auth-card {
  position: relative; width: 100%; padding: 1.7rem 1.8rem 1.5rem; border-radius: 10px; border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(14, 16, 26, .88), rgba(8, 9, 16, .92)) padding-box,
    linear-gradient(180deg, #fff3b8, #c9952f 30%, #5c3a10 70%, #e3b24a) border-box;
  box-shadow: 0 0 0 1px #050302, inset 0 0 0 1px rgba(255, 220, 140, .12), 0 24px 60px -18px #000, 0 0 40px -10px rgba(255, 190, 60, .18);
  backdrop-filter: blur(6px);
}
.auth-card::before, .auth-card::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; transform: rotate(45deg);
  background: radial-gradient(circle at 35% 35%, #ffd9cf, #d8261a 45%, #5a0904); box-shadow: 0 0 0 2px #120a02, 0 0 0 3px #c99a3c, 0 0 10px rgba(216, 38, 26, .6); }
.auth-card::before { left: -9px; }
.auth-card::after { right: -9px; }
.auth-title { font-family: var(--title, Georgia, serif); font-size: 1.6rem; text-align: center; margin-bottom: .4rem; color: #ffd100; text-shadow: 0 2px 0 #000; }
.auth-sub { color: var(--text-2); margin-bottom: 1.1rem; text-align: center; }
.auth-card .field-label { font-family: "Marcellus", Georgia, serif; font-size: .95rem; letter-spacing: .06em; color: #ffd100; text-shadow: 0 1px 0 #000; text-transform: none; }
.auth-card .field-label small { color: var(--muted); letter-spacing: 0; font-family: var(--font); }
.auth-card .input { background: #05060b; border: 1px solid #7a6a45; color: #fff; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); }
.auth-card .input:focus { border-color: #ffd100; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 209, 0, .25); }
.login-btn { margin-top: .3rem; font-family: "Marcellus", Georgia, serif; font-size: 1.15rem; letter-spacing: .08em; }
.auth-foot { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* Help that opens under the panel when its button in the corner is pressed. */
.auth-help { display: none; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(214, 170, 72, .3); }
.auth-help:target { display: block; animation: wow-open .25s ease; }
.auth-help h2 { font-family: var(--title, Georgia, serif); font-size: 1.15rem; color: #ffd100; margin-bottom: .4rem; }
.auth-help p, .auth-help li { color: var(--text-2); }
.auth-help ol { padding-left: 1.2rem; margin: 0; display: grid; gap: .4rem; }

.anglers.auth-screen > .auth-side { position: fixed; right: clamp(.8rem, 2vw, 2rem); bottom: 3.4rem; z-index: 2; display: grid; gap: .55rem; width: 190px; }
.auth-side-btn {
  display: block; text-align: center; padding: .55rem .8rem; border-radius: 7px; border: 1.5px solid transparent;
  font-family: "Marcellus", Georgia, serif; font-size: .95rem; letter-spacing: .04em; color: #ffd100 !important; text-decoration: none !important; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, rgba(255, 210, 170, .22), rgba(255, 210, 170, 0) 48%) padding-box, linear-gradient(180deg, #8c1a0e, #4a0904) padding-box, linear-gradient(180deg, #fff3b8, #c9952f 40%, #6b4513) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .3), 0 0 0 1px #120703, 0 4px 10px rgba(0, 0, 0, .6);
}
.auth-side-btn:hover { filter: brightness(1.15); }

.auth-foot-line { width: 100%; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem clamp(.8rem, 2vw, 2rem); font-size: .78rem; color: rgba(214, 199, 163, .75); text-shadow: 0 1px 2px #000; }

@media (max-width: 860px) {
  .anglers.auth-screen > .auth-side { position: relative; right: auto; bottom: auto; width: min(470px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto 1rem; }
  .auth-side-btn { font-size: .85rem; padding: .5rem .3rem; }
  .auth-foot-line { justify-content: center; text-align: center; }
  .scene-constellation { width: 150px; right: 3%; top: 2%; opacity: .75; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.3rem 1.1rem 1.2rem; }
  .anglers.auth-screen > .auth-side { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-aurora, .scene-stars, .scene-shimmer, .space-bg .stars { animation: none; }
}

/* ---------- stats: who can see them, a character's professions, the computers that send them ---------- */

.stats-privacy { margin-bottom: 1.2rem; }
.stats-privacy-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stats-privacy-head > div:not(.seg) { flex: 1 1 260px; }
.stats-privacy-head h2 { font-size: 1.1rem; margin: 0 0 .1rem; }
.stats-privacy-head p { margin: 0; }
.stats-privacy.is-private > .stats-privacy-head > .icon { color: var(--muted); }
.stats-privacy.is-public > .stats-privacy-head > .icon { color: var(--success); }
.stats-privacy .wow-people { margin-top: .8rem; }
.stats-skills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.stats-skills .chip b { color: var(--gold); margin-left: .25rem; }
.stats-computers { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1rem; }
.stats-computers > div { flex: 1 1 280px; }
.stats-computers h2 { font-size: 1rem; margin: 0; }
.stats-computers p { margin: .1rem 0 0; }
.stats-computers > .icon { color: var(--gold); }
.stats-empty .row { margin-top: -.6rem; padding-bottom: 1rem; }

.guild-sort { margin-bottom: .8rem; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }
.guild-stats th.num, .guild-stats td.num { text-align: right; white-space: nowrap; }
.guild-stats tr.is-mine td { background: color-mix(in oklab, var(--gold) 7%, transparent); }
.guild-stats .chip { margin-left: .35rem; }

/* ---------- the desktop app: four steps, then your computers ---------- */

.desktop-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 1rem; }
.desktop-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.desktop-step + .desktop-step { margin-top: 0; }
.step-num {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--title, Georgia, serif); font-weight: 700; font-size: 1.25rem; color: #1f1302;
  background: radial-gradient(circle at 35% 30%, #fff3b8, #e3b24a 55%, #7d4f12);
  box-shadow: 0 0 0 2px #120703, 0 0 0 3px rgba(227, 178, 74, .55), 0 4px 10px rgba(0, 0, 0, .5);
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-body h2 { font-size: 1.2rem; margin: .35rem 0 .4rem; }
.step-body p:last-child { margin-bottom: 0; }
.desktop-connect { align-items: flex-end; flex-wrap: wrap; }
.desktop-connect .field { flex: 1 1 240px; }
.desktop-paste { margin-top: .9rem; }
.desktop-paste summary { cursor: pointer; color: var(--accent); }
.desktop-code { display: block; margin: .5rem 0; padding: .6rem .8rem; border-radius: 6px; background: #05060b; border: 1px solid #7a6a45;
  font-size: .82rem; word-break: break-all; user-select: all; color: #fff3b8; }
.desktop-warning { margin-top: .8rem; }
.smartscreen { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.smartscreen > p { flex: 1 1 260px; margin: 0; }
.smartscreen-box { flex: none; width: 250px; display: grid; gap: .3rem; padding: .7rem .8rem; border-radius: 4px; background: #0b3c88; color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif; font-size: .74rem; line-height: 1.3; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.smartscreen-box b { font-size: .95rem; font-weight: 600; }
.smartscreen-box u { color: #cfe3ff; }
.smartscreen-buttons { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .3rem; }
.smartscreen-buttons i { font-style: normal; padding: .2rem .55rem; border: 1px solid #cfe3ff; }
.smartscreen-buttons i:first-child { outline: 2px solid #ffd100; outline-offset: 1px; }
.desktop-others { margin-top: 1rem; }
.desktop-others > p:first-child { margin: 0 0 .4rem; }
.desktop-which { margin: .7rem 0 0; }
.desktop-how { margin: .2rem 0 .7rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
.desktop-other { margin-top: .7rem; }
.desktop-other > summary { cursor: pointer; color: var(--accent); }
.desktop-other[open] > summary { margin-bottom: .5rem; }
.desktop-help dl { display: grid; gap: .2rem 0; margin: 0; }
.desktop-help dt { font-weight: 600; color: var(--gold); margin-top: .5rem; }
.desktop-help dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .desktop-step { flex-direction: column; gap: .5rem; } }

/* ---------- my account and the officers' page ---------- */

.profile .panel h2, .admin .panel h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .45rem; }
.profile .field-row { align-items: center; }
.admin-links { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.admin-invite { align-items: flex-end; flex-wrap: wrap; }
.admin-invite .field:first-child { flex: 1 1 240px; }
.admin-temp { border-color: rgba(255, 209, 0, .5); }
.admin-temp-code { display: inline-block; margin: .3rem 0 .7rem; padding: .5rem .9rem; font-size: 1.2rem; letter-spacing: .08em; color: #fff3b8; background: #05060b; border: 1px solid #7a6a45; border-radius: 6px; user-select: all; }
.admin-members .chip { margin-left: .3rem; }
.admin-members td.actions { white-space: nowrap; }

/* ---------- the Leaping Fish: the guild's constellation (FishConstellation.razor) ---------- */

.constellation { display: block; aspect-ratio: 11 / 8; height: auto; overflow: visible; pointer-events: none; }
.constellation .c-lines { fill: none; stroke: rgba(190, 215, 255, .34); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.constellation .c-line { fill: none; stroke-width: 2.2; stroke-dasharray: 5 7; }
.constellation .c-star { fill: #fff8e4; animation: aoa-glimmer 5s ease-in-out infinite alternate; }
@keyframes aoa-glimmer { from { opacity: .55; } to { opacity: 1; } }
/* At the right-hand end of the strip of sky under the top bar, in from the edge as far as the guild hall's portals:
   clear of every page's title (left or centered) and its first panel. Narrower screens have no room, so go without. */
.space-bg .sky-constellation { position: absolute; right: max(28px, calc((100vw - 1180px) / 2 + 24px)); top: calc(var(--topbar-h) + 68px);
  width: clamp(150px, 12vw, 190px); transform: translateY(-50%); }
@media (max-width: 1000px) {
  .space-bg .sky-constellation { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .constellation .c-star { animation: none; }
}

/* ---------- gold watch: the gold chart, mail and trades, the officers' alerts ---------- */

.gold-chart { margin: .4rem 0 .8rem; }
.gold-chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.gold-grid { stroke: rgba(214, 170, 72, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gold-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.gold-line { fill: none; stroke: #ffd100; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.gold-area { fill: rgba(255, 209, 0, .08); }
.gold-end { fill: #ffd100; stroke: #120703; stroke-width: 1.5; }
.gold-mark { stroke: #120703; stroke-width: 1.5; cursor: help; }
.gold-mail { fill: #ff8a3d; }
.gold-auction { fill: #5ab4ff; }
.gold-trade-got { fill: #1eff00; }
.gold-trade-gave { fill: #b06bff; }
.gold-mark.is-alert { stroke: #ff3b2a; stroke-width: 3; }
.gold-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.gold-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: .25rem; border: 1.5px solid #120703; }
.gold-key.is-alert { background: transparent; border: 2.5px solid #ff3b2a; }
.gold-chart-empty { margin: .3rem 0 .8rem; }

.gold-details { margin: .2rem 0 1rem; }
.gold-details > summary { cursor: pointer; color: var(--accent); }
.gold-log h4 { display: flex; align-items: center; gap: .4rem; margin: .9rem 0 .3rem; font-size: .95rem; }
.gold-table td.num, .gold-table th.num { text-align: right; white-space: nowrap; }
.gold-table tr.is-player td, .gold-table tr.is-gold td { background: color-mix(in oklab, #ff8a3d 6%, transparent); }

.gold-settings .field-row { align-items: flex-end; flex-wrap: wrap; }
.gold-input { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); font-weight: 600; }
.gold-alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gold-alerts-head h2 { margin: 0; }
.gold-alerts { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .6rem; }
.gold-alert { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .22); }
.gold-alert.is-new { border-color: rgba(255, 59, 42, .55); box-shadow: inset 3px 0 0 #ff3b2a; }
.gold-alert.is-suspicious { border-color: rgba(255, 138, 61, .55); box-shadow: inset 3px 0 0 #ff8a3d; }
.gold-alert.is-fine { opacity: .75; }
.gold-alert-icon { flex: none; color: var(--gold); margin-top: .1rem; }
.gold-alert-body { flex: 1 1 auto; min-width: 0; }
.gold-alert-body p { margin: 0 0 .2rem; }
.gold-alert-actions { flex: none; display: grid; gap: .3rem; justify-items: end; }
.gold-note { color: var(--text-2); font-style: italic; }
.gold-review { margin-top: .4rem; flex-wrap: wrap; }
.gold-review .input { flex: 1 1 220px; }
@media (max-width: 560px) { .gold-alert { flex-wrap: wrap; } .gold-alert-actions { grid-auto-flow: column; } }

.alert-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; margin-left: .3rem;
  background: #d8261a; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1px #120703, 0 0 8px rgba(216, 38, 26, .7); }
.gold-key.gold-mail { background: #ff8a3d; }
.gold-key.gold-auction { background: #5ab4ff; }
.gold-key.gold-trade-got { background: #1eff00; }
.gold-key.gold-trade-gave { background: #b06bff; }

/* The display face's numerals read 1 as I and 0 as O: counts beside headings and in switches use the reading face. */
.anglers :is(h1, h2, h3, h4) small, .anglers .seg b, .anglers .tab small, .anglers .chip { font-family: var(--font); font-variant-numeric: tabular-nums; }

/* ---------- the top bar's help button, and the About page ---------- */

.help-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-2);
  border: 1px solid transparent; }
.help-link:hover, .help-link.active { color: var(--gold); border-color: rgba(214, 170, 72, .45); text-decoration: none; }
.hall-help { margin-left: .6rem; white-space: nowrap; }

.about { max-width: 1180px; }
.about-head .lead { max-width: 60ch; }
.about-quick { margin-bottom: 1rem; }
.about-quick h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin: 0 0 .6rem; }
.about-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; font-size: 1.02rem; }
.about-steps a { margin-left: .3rem; white-space: nowrap; }
.about-done { display: inline-flex; align-items: center; gap: .2rem; margin-left: .5rem; color: var(--success); font-weight: 600; font-size: .88rem; }
.about-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.about-jump .chip { text-decoration: none; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-card { display: flex; flex-direction: column; scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.about-card.panel + .about-card.panel { margin-top: 0; }
.about-card h2 { display: flex; align-items: center; gap: .65rem; font-size: 1.25rem; margin: 0 0 .6rem; }
.about-card p, .about-card li { color: var(--text-2); font-size: .98rem; }
.about-card ul, .about-card ol { padding-left: 1.25rem; margin: 0 0 .8rem; display: grid; gap: .35rem; }
.about-card .btn { margin-top: auto; align-self: flex-start; }
.about-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--portal-ink, #ffe7a0); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 45%), var(--portal-orb, radial-gradient(circle, #2a5a8c, #0d1f38));
  box-shadow: 0 0 0 2px #120703, 0 0 0 3px #c9952f, 0 3px 8px rgba(0, 0, 0, .5); }
