/* ==========================================================================
   Anglers of Azeroth: the guild's own pieces on top of the theme.
   The guild's emblem in the top bar and the Guild Hall, the sign-in screen (a
   stormy night at sea, laid out like the game's own sign-in screen), the rain,
   the guild's constellation, the guild hall's four portals, the foot, a bobber
   for the loading, and the About page's quest giver.
   The emblem is the guild's own logo (wwwroot/brand); everything else is
   original: gradients, inline SVG and wwwroot/ornaments, 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); } }

/* The rain (behind every page, and on the sign-in screen): a sheet of streaks (wwwroot/ornaments/rain-*.svg) slanted by
   the wind, falling one tile at a time on the graphics card. Each place sets how heavy (its opacity). None at all for
   anyone whose computer asks for less motion. */
.rain { position: absolute; inset: -25% -20%; transform: rotate(9deg); pointer-events: none; overflow: hidden; }
.rain::before { content: ""; position: absolute; inset: calc(-1 * var(--rain-h)) 0 0; background: var(--rain) 0 0 / var(--rain-w) var(--rain-h) repeat;
  animation: aoa-rain var(--rain-time) linear infinite; will-change: transform; }
.rain-far { --rain: url("../ornaments/rain-far.svg"); --rain-w: 180px; --rain-h: 240px; --rain-time: 1.05s; }
.rain-near { --rain: url("../ornaments/rain-near.svg"); --rain-w: 260px; --rain-h: 320px; --rain-time: .62s; }
@keyframes aoa-rain { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--rain-h), 0); } }
@media (prefers-reduced-motion: reduce) {
  .rain { display: none; }
}

/* ---------- top bar extras: the guild's emblem ---------- */

.anglers .brand { gap: .6rem; }
.anglers .brand .crest { display: block; width: 50px; height: 50px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)) drop-shadow(0 0 7px rgba(69, 214, 214, .35));
  transition: transform .18s ease, filter .18s ease; }
.anglers .brand:hover .crest, .anglers .brand:focus-visible .crest { transform: scale(1.06); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)) drop-shadow(0 0 12px rgba(69, 214, 214, .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: #2a1806;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #e3b467 55%, #8d5c28);
  box-shadow: 0 0 0 1px #120703, 0 0 0 2px rgba(201, 149, 85, .55), 0 0 10px -2px rgba(69, 214, 214, .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; }
  .anglers .brand .crest { width: 44px; height: 44px; }
}

/* the foot: a bronze rule with the compass rose over the guild's name */
.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::before { content: ""; flex: 0 0 100%; height: 12px; margin-bottom: .45rem; background: var(--wow-divider, none) center / min(260px, 80%) 12px no-repeat; }
.site-foot span:first-of-type { font-family: var(--display); color: var(--gold); letter-spacing: .04em; }

/* ---------- the guild hall ---------- */

.guild-hall { max-width: 1180px; }
.hall-head { text-align: center; margin: .6rem 0 1.8rem; }
.hall-head .crest-frame { display: block; }
.hall-crest { display: block; width: 148px; height: auto; margin: 0 auto .5rem;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .75)) drop-shadow(0 0 26px rgba(69, 214, 214, .32)); }
.hall-head h1 { margin-bottom: .2rem; }
.hall-head p { font-size: 1.05rem; }
@media (max-width: 640px) { .hall-crest { width: 112px; } }

.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .portals { grid-template-columns: minmax(0, 1fr); } }

/* each door: a window in a bronze frame with a teal gem at each corner, an orb of its own colour */
.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: 11px;
  border: 3px solid transparent;
  border-image: var(--wow-frame, none);
  background:
    linear-gradient(180deg, rgba(160, 245, 240, .05), rgba(0, 0, 0, .22)) padding-box,
    radial-gradient(120% 90% at 0% 0%, var(--portal-glow, rgba(69, 214, 214, .14)), transparent 60%) padding-box,
    var(--wow-slate, linear-gradient(180deg, #0c242c, #051116)) padding-box,
    var(--wow-gold, linear-gradient(180deg, #f7e2ab, #94622c)) border-box;
  box-shadow: var(--wow-frame-shadow, 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: var(--wow-frame-shadow, 0 0 0 1px #000), 0 0 30px -6px var(--portal-ring, rgba(69, 214, 214, .6));
}
.portal:focus-visible { outline: 2px solid var(--aoa-teal-bright, #8af5f0); outline-offset: 4px; }
.portal::after {
  content: ""; position: absolute; right: 16px; bottom: 14px; width: 26px; height: 26px; opacity: .6;
  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='%23d9a65c' 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, #e6fffd);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 45%), var(--portal-orb, radial-gradient(circle, #1f8f98, #06343a));
  box-shadow: 0 0 0 2px #120703, 0 0 0 4px #c99555, 0 0 0 5px #120703, 0 0 18px -2px var(--portal-ring, rgba(69, 214, 214, .5)), 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, #1f9aa3, #06343a); --portal-glow: rgba(69, 214, 214, .16); --portal-ring: rgba(69, 214, 214, .6); --portal-ink: #e6fffd; }
.portal-events { --portal-orb: radial-gradient(circle, #b4502e, #3d1306); --portal-glow: rgba(255, 130, 80, .14); --portal-ring: rgba(255, 140, 80, .55); --portal-ink: #ffe8d8; }
.portal-stats { --portal-orb: radial-gradient(circle, #3f9a5a, #0d2d16); --portal-glow: rgba(110, 230, 140, .12); --portal-ring: rgba(110, 230, 140, .5); --portal-ink: #e2ffe8; }
.portal-dkp { --portal-orb: radial-gradient(circle, #8a4fc4, #24103d); --portal-glow: rgba(190, 120, 255, .14); --portal-ring: rgba(190, 120, 255, .55); --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(--accent); }

/* ---------- the sign-in screen: a stormy night at sea, the emblem over it ---------- */

.auth-screen {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: clamp(.8rem, 3vh, 2rem) 1rem 0; overflow-x: hidden;
}
html:has(.auth-screen), html:has(.auth-screen) body { background: #010507; }

.auth-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(40, 200, 205, .16), transparent 70%),
    radial-gradient(ellipse 55% 38% at 50% 22%, rgba(40, 190, 195, .12), transparent 70%),
    linear-gradient(180deg, #010406 0%, #020b10 36%, #05202a 66%, #083240 84%, #0b3c48 100%);
}
.auth-scene > * { position: absolute; }
/* storm clouds, lit teal from below */
.scene-aurora { inset: -10% -10% 45% -10%; filter: blur(26px); opacity: .9;
  background:
    radial-gradient(40% 14% at 24% 24%, rgba(120, 170, 175, .16), transparent 70%),
    radial-gradient(34% 11% at 62% 16%, rgba(90, 150, 160, .14), transparent 70%),
    radial-gradient(38% 15% at 86% 32%, rgba(110, 165, 170, .12), transparent 70%);
  animation: wow-clouds 60s ease-in-out infinite alternate;
}
.scene-stars { inset: 0 0 45% 0; opacity: .45;
  background-image:
    radial-gradient(1.1px 1.1px at 20px 30px, #e8ffff, transparent), radial-gradient(1px 1px at 300px 40px, #d6fbff, transparent),
    radial-gradient(1.3px 1.3px at 200px 160px, #cff4f4, transparent);
  background-size: 400px 260px; animation: wow-twinkle 5s ease-in-out infinite alternate;
}
/* the Leaping Fish, in a break in the cloud over the angler on the pier */
.scene-constellation { right: 9%; top: 30%; width: clamp(170px, 14vw, 230px); opacity: .85; }
.scene-glow { left: 50%; bottom: 0; width: min(90vw, 1100px); height: 34vh; transform: translateX(-50%);
  background: radial-gradient(50% 70% at 50% 100%, rgba(60, 220, 220, .13), transparent 72%); }
.scene-land { left: 0; bottom: 0; width: 100%; height: 44vh; min-height: 260px; }
/* the teal glow, 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(120, 240, 230, .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;
}
.auth-scene .rain-far { opacity: .38; }
.auth-scene .rain-near { opacity: .28; }

/* Above the scene; the scene, the rain in front and the corner's help stay where they're pinned. The panel and the help
   sit above the rain. */
.anglers.auth-screen > :not(.auth-scene, .auth-side, .auth-rain) { position: relative; z-index: 1; }
.anglers.auth-screen > .auth-scene { position: fixed; z-index: 0; }
.anglers.auth-screen > .auth-main { z-index: 3; }
.anglers.auth-screen > .auth-rain { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 22%, transparent 48%); mask-image: linear-gradient(180deg, #000 0, #000 22%, transparent 48%); }
.auth-rain .rain-near { opacity: .2; }

.auth-title-block { display: grid; justify-items: center; text-align: center; gap: .2rem; margin-bottom: clamp(.6rem, 2.4vh, 1.6rem); }
.auth-logo { position: relative; margin: 0; line-height: 0; }
/* the emblem's own glow, breathing slowly */
.auth-logo::before { content: ""; position: absolute; inset: -24%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(60, 220, 220, .3), rgba(60, 220, 220, .08) 45%, transparent 68%);
  animation: aoa-breathe 6s ease-in-out infinite alternate; }
.auth-logo .crest-frame { display: block; }
.auth-crest { position: relative; display: block; width: clamp(168px, 29vh, 248px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .8)); }
.auth-motto { display: flex; align-items: center; gap: .8rem; margin: .7rem 0 0; font-family: "Marcellus", Georgia, serif; font-size: 1.05rem; letter-spacing: .18em;
  text-transform: uppercase; color: #c4f5f1; text-shadow: 0 2px 6px #000, 0 0 14px rgba(69, 214, 214, .45); }
.auth-motto::before, .auth-motto::after { content: ""; width: clamp(1.6rem, 6vw, 3.4rem); height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, #c99555); box-shadow: 0 1px 0 #000; }
.auth-motto::after { background: linear-gradient(90deg, #c99555, transparent); }
@keyframes aoa-breathe { from { opacity: .7; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }

.auth-main { width: min(470px, 100%); display: grid; align-content: start; justify-items: stretch; padding-bottom: 1.5rem; }
/* the panel: the deep sea in bronze, a teal gem at each corner */
.auth-card {
  position: relative; width: 100%; padding: 1.7rem 1.8rem 1.5rem; border-radius: 10px; border: 3px solid transparent;
  border-image: var(--wow-frame-blue, none);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(90, 225, 220, .08), transparent 62%) padding-box,
    linear-gradient(180deg, rgba(10, 32, 39, .9), rgba(3, 13, 17, .94)) padding-box,
    var(--wow-gold, linear-gradient(180deg, #f7e2ab, #94622c)) border-box;
  box-shadow: 0 0 0 1px #020607, inset 0 0 0 1px rgba(160, 245, 240, .1), 0 24px 60px -18px #000, 0 0 46px -12px rgba(69, 214, 214, .3);
  backdrop-filter: blur(6px);
}
.auth-title { font-family: var(--title, Georgia, serif); font-size: 1.6rem; text-align: center; margin-bottom: .4rem; 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); }
.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: var(--gold); 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: #020a0d; border: 1px solid #6e5430; color: #fff; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); }
.auth-card .input:focus { border-color: var(--accent); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 0 0 2px rgba(69, 214, 214, .3), 0 0 14px -3px rgba(69, 214, 214, .6); }
.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; }
/* Numbered steps in a panel (making your account from Discord, say). */
.auth-steps { padding-left: 1.2rem; margin: .5rem 0 1rem; display: grid; gap: .4rem; color: var(--text-2); }
.auth-steps li::marker { color: var(--gold); font-weight: 700; }

/* 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(201, 149, 79, .32); }
.auth-help:target { display: block; animation: wow-open .25s ease; }
.auth-help h2 { font-family: var(--title, Georgia, serif); font-size: 1.15rem; color: var(--gold); 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: 3; 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: #f8de9a !important; text-decoration: none !important; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, rgba(190, 255, 250, .15), rgba(190, 255, 250, 0) 48%) padding-box, linear-gradient(180deg, #145963, #0a3239 60%, #062227) padding-box, linear-gradient(180deg, #f7e2ab, #c99555 40%, #6b4518) border-box;
  box-shadow: inset 0 1px 0 rgba(200, 255, 250, .22), 0 0 0 1px #02090b, 0 4px 10px rgba(0, 0, 0, .6);
}
.auth-side-btn:hover { filter: brightness(1.15); box-shadow: inset 0 1px 0 rgba(200, 255, 250, .3), 0 0 0 1px #02090b, 0 0 16px -4px rgba(69, 214, 214, .75); }
.auth-side-btn:focus-visible { outline: 2px solid #8af5f0; outline-offset: 2px; }

.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(200, 225, 218, .72); 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(2, minmax(0, 1fr)); margin: 0 auto 1rem; }
  .auth-side-btn { font-size: .88rem; padding: .5rem .3rem; }
  .auth-foot-line { justify-content: center; text-align: center; }
  .scene-constellation { width: 150px; right: 3%; top: 2%; opacity: .7; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.3rem 1.1rem 1.2rem; }
  .auth-motto { font-size: .9rem; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-aurora, .scene-stars, .scene-shimmer, .auth-logo::before, .space-bg .stars { animation: none; }
}

/* ---------- loading: a bobber riding the ripples ---------- */

.anglers .loader-cards { width: 64px; height: 60px; }
.anglers .loader-cards span { inset: auto; border: 0; border-radius: 50%; background: none; animation: none; }
.anglers .loader-cards span:nth-child(1) { left: 23px; top: 6px; width: 18px; height: 24px; z-index: 1; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .45), transparent 40%), linear-gradient(180deg, #e0553f 0 47%, #1a0f05 47% 54%, #f4ecd8 54%);
  box-shadow: 0 0 0 1.5px #1a0f05; animation: aoa-bob 1.6s ease-in-out infinite; }
.anglers .loader-cards span:nth-child(2), .anglers .loader-cards span:nth-child(3) { left: 50%; top: 32px; width: 22px; height: 7px; margin-left: -11px;
  border: 1.5px solid var(--accent); animation: aoa-ripple 1.6s ease-out infinite; }
.anglers .loader-cards span:nth-child(3) { animation-delay: .8s; }
@keyframes aoa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes aoa-ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .anglers .loader-cards span:nth-child(n) { 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(--accent); }
.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(--accent) 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; }
/* a step's number: teal enamel in a bronze ring, as on the About page's quests */
.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: #fff1c8; text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 35% 28%, #3cc6c8, #12666e 55%, #073339);
  box-shadow: 0 0 0 2px #120703, 0 0 0 4px #c99555, 0 0 0 5px #120703, 0 0 16px -2px rgba(69, 214, 214, .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: #020a0d; border: 1px solid #6e5430;
  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 #f2cc6c; 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(242, 204, 108, .5); }
.admin-temp-code { display: inline-block; margin: .3rem 0 .7rem; padding: .5rem .9rem; font-size: 1.2rem; letter-spacing: .08em; color: #fff3b8; background: #020a0d; border: 1px solid #6e5430; 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(150, 235, 228, .3); 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: #effffc; animation: aoa-glimmer 5s ease-in-out infinite alternate; }
@keyframes aoa-glimmer { from { opacity: .5; } 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) + 72px);
  width: clamp(150px, 12vw, 190px); transform: translateY(-50%); opacity: .8; }
@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(201, 149, 79, .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: #f2cc6c; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.gold-area { fill: rgba(242, 204, 108, .08); }
.gold-end { fill: #f2cc6c; 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 ---------- */

.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: #ffe6a0; border-color: rgba(201, 149, 79, .5); background: radial-gradient(closest-side, rgba(69, 214, 214, .18), transparent); text-decoration: none; }
.hall-help { margin-left: .6rem; white-space: nowrap; }

/* ---------- the About page: a quest giver ----------
   Barnaby Brinewhistle on the left (his gold "!" bobbing over his hat), saying hello, over the list of quests, a gold
   "!" by each; the open quest on parchment on the right, like the game's quest text. On a phone the open quest takes
   the list's place. */

.about { max-width: 1240px; }
.about-head { margin-bottom: 1.1rem; }
.quest-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.4rem; align-items: start; }
.quest-giver { padding: 1.2rem 1.35rem 1.3rem; }
.giver { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1rem; align-items: center; }
.giver-art { position: relative; padding-top: 18px; }
/* a little of the emblem's teal glow round him */
.giver-art::before { content: ""; position: absolute; left: 50%; top: 56%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 214, 214, .2), rgba(69, 214, 214, .05) 45%, transparent 68%); pointer-events: none; }
.giver-npc { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.giver-mark { position: absolute; z-index: 1; left: 50%; top: 0; width: 25px; height: 40px; margin-left: -12.5px;
  background: url("../ornaments/quest-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 9px rgba(255, 200, 60, .8)) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  animation: aoa-quest-bob 2.4s ease-in-out infinite; }
@keyframes aoa-quest-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
/* what he says: a tooltip-blue bubble, its tail towards him */
.giver-speech { position: relative; padding: .85rem 1rem .75rem; border-radius: 9px; border: 1px solid rgba(201, 149, 79, .5);
  background: var(--grain, none), var(--wow-tooltip, #071a20); box-shadow: var(--wow-tip-shadow, none); }
.giver-speech::before { content: ""; position: absolute; left: -9px; top: 46%; width: 16px; height: 16px; transform: rotate(45deg);
  background: #071c22; border-left: 1px solid rgba(201, 149, 79, .5); border-bottom: 1px solid rgba(201, 149, 79, .5); }
.giver-speech h2 { display: grid; gap: .05rem; margin: 0 0 .5rem; font-size: 1.12rem; color: var(--gold); text-shadow: var(--wow-ink-shadow, none); }
.giver-speech h2 small { font-family: var(--display); font-size: .8rem; letter-spacing: .05em; color: #9fd9d4; }
.giver-speech p { margin: 0 0 .45rem; color: var(--text-2); }
.giver-speech p:last-child { margin-bottom: 0; }
.giver-speech b { color: var(--text); }

.quest-list-head { display: flex; align-items: center; gap: .7rem; margin: 1.3rem 0 .55rem; font-family: var(--display); font-size: .8rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--wow-label, var(--muted)); text-shadow: var(--wow-ink-shadow, none); }
.quest-list-head::before { content: ""; flex: none; width: 1.1em; height: 1.1em; background: var(--aoa-gem, none) center / contain no-repeat; }
.quest-list-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 149, 79, .55), transparent); }
.quest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.quest-line { scroll-margin-top: calc(var(--topbar-h) + 30px); }
.quest-pick { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem .55rem .65rem; border-radius: 7px; border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(69, 214, 214, .045), transparent 75%); color: var(--text); font: inherit; font-family: var(--display); font-size: 1.06rem;
  letter-spacing: .02em; text-align: left; text-shadow: var(--wow-ink-shadow, none); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.quest-pick:hover { background: linear-gradient(90deg, rgba(69, 214, 214, .16), rgba(69, 214, 214, .02) 85%); border-color: rgba(201, 149, 79, .38); color: #ffe6a0; }
.quest-pick:focus-visible { outline: 2px solid var(--aoa-teal-bright, #8af5f0); outline-offset: 2px; }
.quest-line.is-open .quest-pick { background: var(--wow-lit, rgba(69, 214, 214, .2)); border-color: #c99555; color: #ffdc7a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 16px -6px rgba(69, 214, 214, .8); }
/* the gold "!" (and, once it's done, a quieter one beside a Done) */
.quest-mark { flex: none; width: 14px; height: 23px; background: url("../ornaments/quest-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 200, 60, .55)) drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.quest-line.is-done .quest-mark { filter: grayscale(.7) brightness(.8); opacity: .6; }
.quest-name { flex: 1 1 auto; min-width: 0; }
.quest-done { flex: none; display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .5rem; border-radius: 4px;
  font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-shadow: none;
  color: #5cf08f; border: 1px solid rgba(82, 224, 140, .5); background: rgba(82, 224, 140, .09); }

/* the open quest, on parchment (theme.css inks it) */
.quest-text { position: sticky; top: calc(var(--topbar-h) + 30px); padding: 1.3rem 1.6rem 1.35rem; min-height: 24rem; outline: none; scroll-margin-top: calc(var(--topbar-h) + 30px); }
.quest-text:focus-visible { box-shadow: 0 0 0 3px #8af5f0, 0 18px 36px -18px #000; }
.quest-title { margin: 0 0 .6rem; font-family: var(--title, Georgia, serif); font-size: 1.55rem; font-weight: 700; line-height: 1.2; outline: none; }
.quest-title:focus-visible { outline: 2px dashed rgba(90, 42, 8, .5); outline-offset: 4px; border-radius: 3px; }
.quest-back { display: none; margin: -.35rem 0 .5rem -.55rem; }
.quest-text .btn-ghost { color: #5a3a14; text-shadow: none; }
.quest-text .btn-ghost:hover { background: rgba(92, 58, 20, .12); color: #2c1c0b; }
.quest-text .btn-ghost:focus-visible { outline: 2px solid #0b5f68; outline-offset: 2px; }
.quest-complete { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .6rem; padding: .2rem .65rem; border-radius: 4px;
  font-weight: 700; font-size: .86rem; color: #135226; background: rgba(31, 111, 58, .1); border: 1px solid rgba(31, 111, 58, .45); }
.quest-body { font-size: 1.02rem; line-height: 1.6; }
.quest-body > p { margin: 0 0 .6rem; }
.quest-body h3 { display: flex; align-items: center; gap: .6rem; margin: 1.15rem 0 .5rem; font-family: var(--display); font-size: .92rem; letter-spacing: .16em;
  text-transform: uppercase; }
.quest-body h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(107, 61, 14, .5), transparent); }
.quest-steps { margin: 0; padding: 0; list-style: none; counter-reset: quest-step; display: grid; gap: .6rem; }
.quest-steps li { position: relative; padding-left: 2.35rem; counter-increment: quest-step; }
/* each step's number: teal enamel in a bronze ring */
.quest-steps li::before { content: counter(quest-step); position: absolute; left: 0; top: .02rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem;
  border-radius: 50%; font-family: var(--numerals, Georgia, serif); font-weight: 700; font-size: .92rem; line-height: 1; color: #fff4d6; text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 35% 28%, #36b9bc, #0f5b63 60%, #08353b); box-shadow: 0 0 0 1.5px #3a230d, 0 0 0 3px #c99555, 0 0 0 4px #3a230d; }
.quest-note { margin: .85rem 0 0; padding: .55rem .8rem; border-left: 3px solid #b07a33; border-radius: 0 6px 6px 0; background: rgba(120, 78, 28, .09);
  color: var(--text-2); font-size: .95rem; }
/* what they get: on a little chest-gold card */
.quest-rewards { position: relative; margin: 0; padding: .65rem .85rem .65rem 2.85rem; border-radius: 6px; background: rgba(120, 78, 28, .1);
  box-shadow: inset 0 0 0 1px rgba(92, 58, 20, .28); }
.quest-rewards::before { content: ""; position: absolute; left: .8rem; top: .78rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #e3b467 50%, #8d5c28); box-shadow: 0 0 0 1.5px #3a230d, inset 0 -2px 3px rgba(80, 40, 0, .35); }
.quest-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(92, 58, 20, .28); }
.quest-go small { font-family: var(--font); font-size: .82rem; letter-spacing: 0; opacity: .9; }
.quest-none { display: grid; justify-items: center; align-content: center; gap: .3rem; min-height: 20rem; text-align: center; }
.quest-none h2 { margin: 0; font-family: var(--title, Georgia, serif); font-size: 1.45rem; }
.quest-none p { margin: 0; color: var(--text-2); }
.quest-none-rose { width: 132px; height: 132px; margin-bottom: .6rem; background: var(--aoa-compass, none) center / contain no-repeat; opacity: .5; filter: sepia(.35) saturate(.8); }

@media (max-width: 900px) {
  .quest-layout { grid-template-columns: minmax(0, 1fr); }
  .quest-text { position: static; min-height: 0; }
  .quest-board:not(.is-reading) .quest-text { display: none; }
  .quest-board.is-reading .quest-giver { display: none; }
  .quest-back { display: inline-flex; }
}
@media (max-width: 520px) {
  .quest-giver { padding: 1rem 1rem 1.1rem; }
  .giver { grid-template-columns: 104px minmax(0, 1fr); gap: .8rem; }
  .giver-mark { width: 19px; height: 30px; margin-left: -9.5px; }
  .giver-art { padding-top: 12px; }
  .giver-speech { padding: .7rem .8rem .65rem; }
  .giver-speech h2 { font-size: 1rem; }
  .giver-speech p { font-size: .92rem; }
  .quest-text { padding: 1.1rem 1.1rem 1.2rem; }
  .quest-title { font-size: 1.3rem; }
  .quest-pick { font-size: 1rem; padding: .55rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .giver-mark { animation: none; }
}
