/* Study Quest — css/world-events.css (V7.9 world lane, 31 Oct 2026): THE SHARED WORLD (js/world-events-ui.js).
 * The world boss's plate and the Vashar's at the top of the screen, the boss's mark on the map, the window (boss, Vashar, Slava Stone,
 * Spomen), a toast, and the login screen's notice. Ember & Iron tokens from theme.css; flat colour + texture, never gradients. */

.we-strip {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; gap: 8px; align-items: stretch; pointer-events: none;
  max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center;
}
.we-strip[hidden] { display: none; }
/* V7.11 (the user's screenshot, 1 Nov ~19:00): the plates in the HUD's top-centre column under the zone name (js/world-events-ui.js
   strip()): in the flow, so they never sit over the zone name, the hunt line, the frames or the error lines */
.hud-top > .we-strip--col { position: static; transform: none; top: auto; left: auto; max-width: 100%; z-index: auto; flex-wrap: wrap; }
.hud-top > .we-strip--col .we-plate { min-width: 150px; font-family: 'Cinzel', 'Trajan Pro', Optima, serif; }   /* (.hud button sets font-family: inherit) */
.hud-top > .we-strip--col .we-plate--slava { min-width: 0; align-items: center; }
.tooltip .we-tt-say { font: italic 500 13px/1.2 'Cormorant Garamond', Georgia, serif; color: var(--cx-gold-3, #d9a54a); margin: 1px 0 4px; letter-spacing: 0.02em; }
.we-plate {
  pointer-events: auto; position: relative; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; min-width: 180px; padding: 5px 10px 6px;
  background-color: var(--cx-iron-1, #141619);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 7L7 -1' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1.5'/%3E%3C/svg%3E");   /* a hatch texture (no gradient) */
  border: 1px solid var(--cx-line, #030304); box-shadow: inset 0 0 0 1px var(--cx-bronze-1, #4a311a), 0 2px 6px rgba(0, 0, 0, 0.55);
  border-radius: 3px; color: var(--cx-gold-leaf, #f4d58c);
  font: 600 12px/1.1 'Cinzel', 'Trajan Pro', Optima, serif; letter-spacing: 0.04em; text-align: left;
}
.we-plate:hover, .we-plate:focus-visible { box-shadow: inset 0 0 0 1px var(--cx-torch, #ff8a3d), 0 2px 6px rgba(0, 0, 0, 0.55); outline: none; }
.we-plate__name i { font: italic 500 12px 'Cormorant Garamond', serif; color: var(--cx-gold-3, #d9a54a); letter-spacing: 0; }
.we-plate__num { font: 500 11px 'Alegreya Sans', sans-serif; color: var(--cx-smoke-3, #7d8895); letter-spacing: 0; }
.we-plate--slava { min-width: 0; justify-content: center; color: var(--cx-gold-3, #d9a54a); }

.we-bar { display: block; height: 8px; background: var(--cx-ink-0, #07080a); border: 1px solid var(--cx-line, #030304); border-radius: 1px; overflow: hidden; }
.we-bar__fill { display: block; height: 100%; background-color: var(--cx-vermilion, #b53a24); transition: width 0.6s ease-out; }
.we-bar--gold .we-bar__fill { background-color: var(--cx-gold-2, #a8772f); }
.we-bar--big { height: 14px; margin: 8px 0 6px; }

.we-hit {
  position: absolute; right: 8px; top: -4px; pointer-events: none;
  font: 700 14px 'Cinzel', serif; color: var(--cx-candle, #ffc06a); text-shadow: 0 1px 2px #000;
  animation: we-rise 1.3s ease-out forwards;
}
@keyframes we-rise { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-22px); } }

/* the boss's mark on the world map (placed by transform each frame while the boss is out) */
.we-mark {
  position: fixed; left: 0; top: 0; z-index: 30; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.we-mark[hidden] { display: none; }
.we-mark svg { width: 40px; height: 40px; display: block; }
.we-mark__disc { fill: var(--cx-iron-2, #202328); stroke: var(--cx-vermilion, #b53a24); stroke-width: 2.5; }
.we-mark__horn { fill: none; stroke: var(--cx-bronze-hi, #e2b56a); stroke-width: 3; stroke-linecap: round; }
.we-mark__eye { fill: none; stroke: var(--cx-candle, #ffc06a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .we-mark__disc { animation: we-pulse 2.4s ease-in-out infinite; }
  @keyframes we-pulse { 50% { opacity: 0.75; } }
}

.we-toast {
  position: fixed; top: 110px; left: 50%; transform: translate(-50%, -8px); z-index: 60; max-width: min(560px, calc(100vw - 32px));
  padding: 8px 14px; background: var(--cx-oak-1, #1e1611); border: 1px solid var(--cx-bronze-2, #7a5229); border-radius: 3px;
  color: var(--cx-gold-leaf, #f4d58c); font: 500 15px/1.35 'Alegreya', serif; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s;
}
.we-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the window */
.we-win .glue-leaf__win { width: min(560px, calc(100vw - 32px)); }
.we-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--cx-bronze-1, #4a311a); flex-wrap: wrap; }
.we-tabs button {
  padding: 6px 12px; background: var(--cx-ink-2, #16191d); border: 1px solid var(--cx-line, #030304); border-bottom: 0;
  color: var(--cx-smoke-3, #7d8895); font: 600 12px 'Cinzel', serif; cursor: pointer; border-radius: 3px 3px 0 0;
}
.we-tabs button[aria-selected="true"] { background: var(--cx-iron-2, #202328); color: var(--cx-gold-leaf, #f4d58c); }
.we-body { font: 400 15px/1.45 'Alegreya', serif; }
.we-lead { color: var(--cx-gold-3, #d9a54a); font-style: italic; }
.we-faint { color: var(--cx-smoke-3, #7d8895); font-size: 13px; }
.we-word { border-bottom: 1px dotted currentColor; cursor: help; }
.we-check { display: flex; gap: 8px; align-items: center; margin-top: 10px; cursor: pointer; }
.we-list { list-style: none; margin: 6px 0; padding: 0; max-height: 260px; overflow: auto; }
.we-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 6px; border-bottom: 1px solid var(--cx-ink-3, #21252a); }
.we-list li.is-me { background: var(--cx-oak-2, #2d2119); color: var(--cx-gold-leaf, #f4d58c); }
.we-list li i { color: var(--cx-smoke-3, #7d8895); font-size: 12px; }
.we-seg { display: inline-flex; margin: 8px 8px 0 0; border: 1px solid var(--cx-line, #030304); border-radius: 3px; overflow: hidden; }
.we-seg button { padding: 4px 10px; background: var(--cx-ink-2, #16191d); color: var(--cx-smoke-3, #7d8895); border: 0; font: 500 13px 'Alegreya Sans', sans-serif; cursor: pointer; }
.we-seg button[aria-pressed="true"] { background: var(--cx-bronze-1, #4a311a); color: var(--cx-gold-leaf, #f4d58c); }
.we-spomen { list-style: none; padding: 0; margin: 8px 0; }
.we-spomen li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--cx-ink-3, #21252a); }
.we-spomen small { color: var(--cx-smoke-3, #7d8895); }
.we-spomen__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cx-bronze-2, #7a5229); background: var(--cx-iron-2, #202328); }
.we-spomen__icon--ala { background: #9fb4c4; }
.we-spomen__icon--bauk { background: var(--cx-candle, #ffc06a); }
.we-spomen__icon--psoglav { background: var(--cx-iron-hi, #8a919a); }
.we-spomen__icon--vashar { background: var(--cx-vermilion, #b53a24); }

/* the login screen's notice */
.we-news {
  position: absolute; left: 24px; bottom: 76px; z-index: 3; width: min(340px, calc(100vw - 48px));
  padding: 10px 14px; background: rgba(14, 16, 19, 0.86); border: 1px solid var(--cx-bronze-1, #4a311a); border-radius: 3px;
  color: var(--cx-gold-leaf, #f4d58c); font: 400 14px/1.4 'Alegreya', serif;
}
/* V7.20.9: on the login screen the news is a corner notice that never covers the login box (the box is z-index 2, above it) */
.glue-login > .we-news { left: max(24px, 2.4vw); bottom: max(calc(var(--cx-screen-band, 0px) + 60px), 8vh); z-index: 1; width: min(320px, calc(50vw - 230px)); }
@media (max-width: 1000px), (max-height: 560px) { .glue-login > .we-news { display: none; } }
.we-news__head { display: block; margin-bottom: 4px; font: 600 12px 'Cinzel', serif; letter-spacing: 0.06em; color: var(--cx-gold-3, #d9a54a); cursor: help; }
.we-news p { margin: 4px 0; }
@media (max-width: 700px) { .we-news { left: 16px; right: 16px; width: auto; bottom: 16px; } .we-strip { top: 50px; } .we-plate { min-width: 140px; } }
