/* =========================
   THEME VARIABLES
========================= */

:root {
  --ui-reference-width: 1920;
  --ui-reference-height: 1080;
  --ui-auto-scale: 1;
  --ui-user-scale: 1;
  --ui-scale: 1;
  --ui-sidebar-width: 228px;
  --ui-topbar-height: 48px;
  --canvas-visible-width: 1920px;
  --canvas-visible-height: 1080px;
  --canvas-extra-left: 0px;
  --canvas-extra-right: 0px;
  --canvas-extra-top: 0px;
  --canvas-extra-bottom: 0px;

  --ui-bg-main: rgba(10, 8, 5, 0.65);
  --ui-bg-panel: rgba(20, 18, 10, 0.92);
  --ui-bg-soft: rgba(255,255,255,0.04);

  --ui-border: rgba(255,255,255,0.08);
  --ui-border-strong: rgba(120,115,90,0.45);

  --ui-accent: #6ab04c;
  --ui-accent-soft: #badc58;

  --ui-text: #e8f5e9;
  --ui-text-muted: rgba(255,255,255,0.6);
  --font-readable: system-ui, sans-serif;
  --font-accent: "MedievalSharp", var(--font-readable);

  --ui-shadow:
    0 10px 30px rgba(0,0,0,0.65),
    inset 0 0 20px rgba(255,255,255,0.03);

}

/* =========================================
   SAUBERE LÖSUNG: Kein globales transform: scale mehr
   ========================================= */

#gameViewport {
  position: relative;
  width: var(--game-viewport-width, 1920px);
  height: var(--game-viewport-height, 1080px);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

#uiCanvas {
  position: absolute;
  width: var(--canvas-visible-width, 1920px);
  height: var(--canvas-visible-height, 1080px);
  overflow: visible;
  transform: none;
  transform-origin: top left;
}

#app {
  width: var(--canvas-visible-width, 1920px);
  height: var(--canvas-visible-height, 1080px);
  position: absolute;
  left: calc(var(--canvas-extra-left, 0px) * -1);
  top: calc(var(--canvas-extra-top, 0px) * -1);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.24);
}

html.gom-custom-scrollbars * {
  scrollbar-width: none !important;
}

html.gom-custom-scrollbars *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.gom-scrollbar-layer {
  /* Do not create a global stacking context. Each detached track receives the
     z-index of its owning window and is hidden whenever another window covers
     its edge. */
  display: contents;
  pointer-events: none;
}

.gom-scrollbar {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: auto;
  touch-action: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.gom-scrollbar[hidden] {
  display: none;
}

/* Additional guard for the permanently mounted sidebar while the bank workspace
   is open. General window overlap is handled by the scrollbar controller. */
body.management-workspace-bank .gom-scrollbar[data-scrollbar-owner="sidebar"] {
  visibility: hidden;
  pointer-events: none;
}

.gom-scrollbar-thumb {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: background 120ms ease;
}

.gom-scrollbar:hover .gom-scrollbar-thumb,
.gom-scrollbar:focus-visible .gom-scrollbar-thumb,
.gom-scrollbar.is-dragging .gom-scrollbar-thumb {
  background: rgba(255,255,255,0.32);
}

.gom-scrollbar:focus-visible {
  outline: 1px solid rgba(240,200,110,0.75);
  outline-offset: 1px;
}

.compact-number,
.value-tier-base {
  --value-tier-color: #f3efe5;
  color: var(--value-tier-color);
  font-variant-numeric: tabular-nums;
}

.value-tier-1k {
  --value-tier-color: #9fd26d;
  color: var(--value-tier-color);
}

.value-tier-10k {
  --value-tier-color: #74b9ff;
  color: var(--value-tier-color);
}

.value-tier-100k {
  --value-tier-color: #f0c866;
  color: var(--value-tier-color);
}

.value-tier-million {
  --value-tier-color: #c68cff;
  color: var(--value-tier-color);
}

.location-view-main::-webkit-scrollbar,
.smithing-tabs::-webkit-scrollbar,
.smithing-content::-webkit-scrollbar,
.bank-slots::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.location-view-main::-webkit-scrollbar-thumb,
.smithing-tabs::-webkit-scrollbar-thumb,
.smithing-content::-webkit-scrollbar-thumb,
.bank-slots::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}


/* =========================
   GLOBAL
========================= */

html, body {

  margin: 0;
  padding: 0;

  height: 100%;

  overflow: hidden;

  color: var(--ui-text);

  font-family: var(--font-readable);

  background: #000;

}

#gameViewport {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  container-type: size;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-accent-font,
.runtime-notice-kicker,
.runtime-notice-title,
.bottom-info-kicker,
.bottom-info-title,
.bottom-chat-title,
.world-event-toast-kicker,
.world-event-toast strong {
  font-family: var(--font-accent);
}

body.game-cursor-active,
body.game-cursor-active *,
body.game-cursor-active *::before,
body.game-cursor-active *::after,
body.game-cursor-active.item-drag-active,
body.game-cursor-active.item-drag-active * {
  cursor: url("/releases/2026.11.02-01/frontend/assets/ui/cursor.png") 2 2, auto !important;
}

body.game-cursor-active ::-webkit-scrollbar,
body.game-cursor-active ::-webkit-scrollbar-button,
body.game-cursor-active ::-webkit-scrollbar-thumb,
body.game-cursor-active ::-webkit-scrollbar-track,
body.game-cursor-active ::-webkit-scrollbar-corner {
  cursor: url("/releases/2026.11.02-01/frontend/assets/ui/cursor.png") 2 2, auto !important;
}

body.game-cursor-active.game-cursor-large,
body.game-cursor-active.game-cursor-large *,
body.game-cursor-active.game-cursor-large *::before,
body.game-cursor-active.game-cursor-large *::after {
  cursor: url("/releases/2026.11.02-01/frontend/assets/ui/cursor-large.png") 3 3, auto !important;
}

body.game-cursor-active.game-cursor-xlarge,
body.game-cursor-active.game-cursor-xlarge *,
body.game-cursor-active.game-cursor-xlarge *::before,
body.game-cursor-active.game-cursor-xlarge *::after {
  cursor: url("/releases/2026.11.02-01/frontend/assets/ui/cursor-xlarge.png") 4 4, auto !important;
}

.firewood-picker {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid #8c7745;
  border-radius: 4px;
  background: #161209;
  color: #eee3c9;
}
.firewood-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  list-style: none;
}
.firewood-picker summary::-webkit-details-marker { display: none; }
.firewood-picker summary:focus-visible { outline: 2px solid #d9bc70; }
.firewood-picker-options {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: -1px;
  right: -1px;
  box-sizing: border-box;
  background: #211c12;
  box-shadow: 0 6px 16px #0008;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #8c7745;
  border-radius: 0 0 4px 4px;
}
.firewood-picker-options > button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.firewood-picker-options > button:hover,
.firewood-picker-options > button:focus-visible,
.firewood-picker-options > button[aria-selected="true"] { background: #51472b; }

body.game-cursor-active,
body.game-cursor-active * {
  user-select: none;
  -webkit-user-select: none;
}

body.game-cursor-active input,
body.game-cursor-active textarea,
body.game-cursor-active [contenteditable="true"],
body.game-cursor-active .bottom-chat-input {
  user-select: text;
  -webkit-user-select: text;
}

body.game-cursor-active img,
body.game-cursor-active svg,
body.game-cursor-active .item-icon-wrap {
  -webkit-user-drag: none;
}


/* =========================
   BACKGROUND SYSTEM
========================= */

.solar-background-blend {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(var(--bg-brightness, 1));
  transition: opacity 1.8s ease, filter 1.8s ease;
}
.solar-light-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.solar-warm-light, .solar-blue-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
}
.solar-warm-light {
  opacity: var(--solar-warmth, 0);
  background: radial-gradient(ellipse at 18% 22%, rgba(255, 204, 128, .28), transparent 64%),
    linear-gradient(180deg, rgba(225, 134, 104, .18), rgba(243, 175, 103, .09) 58%, rgba(93, 54, 70, .08));
}
[data-solar-phase="sunset"] .solar-warm-light,
[data-solar-phase="dusk"] .solar-warm-light {
  background: radial-gradient(ellipse at 82% 22%, rgba(255, 181, 91, .34), transparent 64%),
    linear-gradient(180deg, rgba(200, 91, 112, .25), rgba(245, 148, 79, .14) 58%, rgba(65, 47, 94, .15));
}
.solar-blue-light {
  opacity: var(--solar-blue, 0);
  background: linear-gradient(180deg, rgba(54, 73, 136, .23), rgba(99, 78, 130, .12) 50%, rgba(20, 40, 77, .2));
}
.settings-solar-options { margin: 0; padding: 12px; border: 1px solid var(--ui-border-strong); border-radius: 8px; }
.settings-solar-options legend { padding: 0 6px; }
.settings-solar-option { align-items: flex-start; }
.settings-solar-option small { display: block; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .solar-background-blend, .solar-warm-light, .solar-blue-light { transition: none; }
}

#gameViewport::before,
#gameViewport::after {

  content: "";

  position: fixed;

  inset: 0;

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  background-color: var(--background-color, #000);
  background-blend-mode: var(--background-blend-mode, normal);

  filter: brightness(var(--bg-brightness,1));

}



#gameViewport::before {
  z-index: -3;
  background-image: var(--background-image);
  transition: filter 1.8s ease;
}

#gameViewport::after {
  z-index: -2;
  background-image: var(--background-image-previous);
  opacity: var(--background-fade-opacity, 0);
  pointer-events: none;
  transition: opacity var(--background-fade-duration, 0.72s) ease;
}

body.background-crossfade-prepare #gameViewport::after {
  transition: none;
}

body.weather-cloudy-day #gameViewport::before,
body.weather-cloudy-day #gameViewport::after,
body.weather-cloudy-day :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-cloudy-day) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 0.9)) saturate(0.72) contrast(0.96);
}

body.weather-partly-cloudy-day #gameViewport::before,
body.weather-partly-cloudy-day #gameViewport::after,
body.weather-partly-cloudy-day :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-partly-cloudy-day) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 0.97)) saturate(0.9) contrast(0.98);
}

body.weather-fog-active #gameViewport::before,
body.weather-fog-active #gameViewport::after,
body.weather-fog-active :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-fog-active) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 0.94)) saturate(0.72) contrast(0.9);
}

body.weather-snow-active #gameViewport::before,
body.weather-snow-active #gameViewport::after,
body.weather-snow-active :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-snow-active) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 1.03)) saturate(0.72) contrast(0.92);
}

body.weather-frost-active #gameViewport::before,
body.weather-frost-active #gameViewport::after,
body.weather-frost-active :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-frost-active) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 0.98)) saturate(0.62) contrast(0.94);
}

/* A storm should make the whole outdoor scene feel heavier, not just wetter. */
body.weather-storm-active #gameViewport::before,
body.weather-storm-active #gameViewport::after,
body.weather-storm-active :is(.location-water-background, .solar-background-blend),
.pro-viewport:has(> .pro-weather.weather-storm-active) > .pro-map > :is(img,.pro-water-animation,.pro-solar-blend) {
  filter: brightness(calc(var(--bg-brightness,1) * 0.84)) saturate(0.58) contrast(0.93);
}

.weather-effect-layer {
  position: absolute;
  left: calc(var(--canvas-extra-left, 0px) * -1);
  top: calc(var(--canvas-extra-top, 0px) * -1);
  width: var(--canvas-visible-width, 1920px);
  height: var(--canvas-visible-height, 1080px);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2.2s ease;
}

.weather-effect-layer.is-active {
  opacity: 1;
}

.weather-rain-sheet,
.weather-rain-mist,
.weather-fog-bank,
.weather-cloud-shadow,
.weather-snow-sheet,
.weather-frost-glaze {
  position: absolute;
  inset: -240px -420px;
  pointer-events: none;
  transition: opacity 2.2s ease;
}

.weather-rain-sheet {
  top: -702px;
  bottom: -702px;
  opacity: 0;
  transform: skewX(-10deg);
  transform-origin: center;
}

.weather-rain-sheet-a {
  background-image:
    repeating-linear-gradient(
      108deg,
      rgba(210, 230, 238, 0) 0 19px,
      rgba(210, 230, 238, 0.42) 20px 21px,
      rgba(210, 230, 238, 0) 23px 44px
    );
  background-size: 82px 118px;
  animation: outdoorRainFall 0.92s linear infinite;
}

.weather-rain-sheet-b {
  background-image:
    repeating-linear-gradient(
      106deg,
      rgba(255, 255, 255, 0) 0 32px,
      rgba(191, 216, 226, 0.26) 33px 34px,
      rgba(255, 255, 255, 0) 37px 70px
    );
  background-size: 132px 164px;
  animation: outdoorRainFallSoft 1.34s linear infinite;
}

.weather-rain-sheet-a::before,
.weather-rain-sheet-a::after,
.weather-rain-sheet-b::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.weather-rain-sheet-a::before {
  background-image:
    repeating-linear-gradient(
      111deg,
      rgba(255, 255, 255, 0) 0 54px,
      rgba(226, 241, 246, 0.28) 55px 56px,
      rgba(255, 255, 255, 0) 60px 104px
    );
  background-size: 156px 216px;
  transform: translateX(19px);
  animation: outdoorRainFallFine 1.16s linear infinite;
}

.weather-rain-sheet-a::after {
  background-image:
    repeating-linear-gradient(
      104deg,
      rgba(255, 255, 255, 0) 0 88px,
      rgba(177, 207, 220, 0.22) 90px 91px,
      rgba(255, 255, 255, 0) 95px 144px
    );
  background-size: 214px 286px;
  transform: translateX(-31px);
  animation: outdoorRainFallLong 1.62s linear infinite;
}

.weather-rain-sheet-b::before {
  background-image:
    repeating-linear-gradient(
      116deg,
      rgba(255, 255, 255, 0) 0 40px,
      rgba(217, 235, 242, 0.2) 42px 43px,
      rgba(255, 255, 255, 0) 48px 92px
    );
  background-size: 118px 184px;
  transform: translateX(43px);
  animation: outdoorRainFallFine 1.06s linear infinite;
}

.weather-rain-mist {
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(31, 48, 58, 0.12), rgba(13, 18, 20, 0.22)),
    radial-gradient(circle at 28% 76%, rgba(172, 202, 210, 0.12), transparent 38%),
    radial-gradient(circle at 72% 24%, rgba(134, 164, 180, 0.12), transparent 42%);
  mix-blend-mode: screen;
}

:is(body.weather-rain-light > .weather-effect-layer, .weather-effect-layer.weather-rain-light) .weather-rain-sheet-a {
  opacity: 0.36;
}

:is(body.weather-rain-light > .weather-effect-layer, .weather-effect-layer.weather-rain-light) .weather-rain-sheet-b {
  opacity: 0.18;
}

:is(body.weather-rain-light > .weather-effect-layer, .weather-effect-layer.weather-rain-light) .weather-rain-mist {
  opacity: 0.22;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-sheet-a {
  opacity: 0.84;
  background-size: 66px 96px;
  animation: outdoorHeavyRainFall 0.38s linear infinite;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-sheet-b {
  opacity: 0.66;
  background-size: 96px 132px;
  animation: outdoorHeavyRainFallSoft 0.5s linear infinite;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-sheet-a::before {
  animation: outdoorHeavyRainFallFine 0.54s linear infinite;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-sheet-a::after {
  animation: outdoorHeavyRainFallLong 0.78s linear infinite;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-sheet-b::before {
  animation: outdoorHeavyRainFallSparse 0.52s linear infinite;
}

:is(body.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.weather-rain-heavy) .weather-rain-mist {
  opacity: 0.58;
  background:
    linear-gradient(180deg, rgba(18, 34, 45, 0.32), rgba(6, 10, 14, 0.46)),
    radial-gradient(circle at 24% 78%, rgba(164, 197, 207, 0.2), transparent 36%),
    radial-gradient(circle at 74% 28%, rgba(105, 132, 150, 0.24), transparent 44%);
  mix-blend-mode: screen;
}

/*
 * Player-controlled interface scale.
 *
 * Keep the location canvas and #skillView itself at their native size: scene
 * nodes use that coordinate space and must continue to line up with the
 * background. Only actual chrome/windows are zoomed. Using CSS selectors here
 * also covers windows that are rendered after applyUiScale() has run.
 */
#topBar,
#sidebar,
#bottomBar,
.xp-bar,
#skillView > .game-window,
#skillView > .travel-panel,
#skillView > .local-travel-view > .travel-panel,
#settingsOverlay > *,
#bankOverlay > *,
#inventoryOverlay > *,
#skillOverlay > *,
#characterOverlay > *,
#unlocksOverlay > *,
#worldMapOverlay > *,
#questOverlay > *,
#journalOverlay > *,
#notesPanel,
#travelConfirmOverlay > *,
#emailReminderOverlay > * {
  zoom: var(--ui-user-scale, 1);
}

/* Night backgrounds already carry their own darkness and highlights. Keep
   rain readable without letting its bright streaks dominate the scene. */
:is(body.atmosphere-night.weather-rain-light > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-light) .weather-rain-sheet-a {
  opacity: 0.25;
}

:is(body.atmosphere-night.weather-rain-light > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-light) .weather-rain-sheet-b {
  opacity: 0.12;
}

:is(body.atmosphere-night.weather-rain-light > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-light) .weather-rain-mist {
  opacity: 0.14;
}

:is(body.atmosphere-night.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-heavy) .weather-rain-sheet-a {
  opacity: 0.58;
}

:is(body.atmosphere-night.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-heavy) .weather-rain-sheet-b {
  opacity: 0.43;
}

:is(body.atmosphere-night.weather-rain-heavy > .weather-effect-layer, .weather-effect-layer.atmosphere-night.weather-rain-heavy) .weather-rain-mist {
  opacity: 0.34;
}

.weather-fog-bank,
.weather-cloud-shadow,
.weather-snow-sheet,
.weather-frost-glaze {
  opacity: 0;
}

.weather-fog-bank {
  inset: -130px -346px;
  filter: blur(16px);
  mix-blend-mode: screen;
}

.weather-fog-bank-a {
  background:
    radial-gradient(ellipse at 16% 72%, rgba(206, 219, 211, 0.34), transparent 42%),
    radial-gradient(ellipse at 58% 64%, rgba(186, 204, 201, 0.26), transparent 46%),
    radial-gradient(ellipse at 92% 76%, rgba(221, 227, 214, 0.24), transparent 38%);
  animation: outdoorFogDriftWide 54s ease-in-out infinite alternate;
}

.weather-fog-bank-b {
  inset: -65px -422px -194px -422px;
  background:
    radial-gradient(ellipse at 28% 40%, rgba(217, 226, 220, 0.18), transparent 36%),
    radial-gradient(ellipse at 78% 48%, rgba(196, 211, 210, 0.22), transparent 44%);
  animation: outdoorFogDriftSlow 76s ease-in-out infinite alternate;
}

:is(body.weather-fog-active > .weather-effect-layer, .weather-effect-layer.weather-fog-active) .weather-fog-bank-a {
  opacity: 0.68;
}

:is(body.weather-fog-active > .weather-effect-layer, .weather-effect-layer.weather-fog-active) .weather-fog-bank-b {
  opacity: 0.48;
}

.weather-cloud-shadow {
  inset: -108px -307px;
  mix-blend-mode: multiply;
}

.weather-cloud-shadow-a {
  background:
    radial-gradient(ellipse at 20% 22%, rgba(54, 60, 56, 0.18), transparent 32%),
    radial-gradient(ellipse at 62% 42%, rgba(44, 51, 50, 0.2), transparent 38%),
    radial-gradient(ellipse at 92% 18%, rgba(49, 53, 48, 0.16), transparent 30%);
  animation: outdoorCloudShadowDrift 62s linear infinite;
}

.weather-cloud-shadow-b {
  background:
    radial-gradient(ellipse at 10% 72%, rgba(78, 79, 68, 0.14), transparent 34%),
    radial-gradient(ellipse at 54% 78%, rgba(42, 47, 46, 0.16), transparent 42%),
    radial-gradient(ellipse at 86% 62%, rgba(58, 62, 56, 0.12), transparent 30%);
  animation: outdoorCloudShadowDriftSoft 86s linear infinite;
}

:is(body.weather-cloudy-day > .weather-effect-layer, .weather-effect-layer.weather-cloudy-day) .weather-cloud-shadow-a {
  opacity: 0.56;
}

:is(body.weather-cloudy-day > .weather-effect-layer, .weather-effect-layer.weather-cloudy-day) .weather-cloud-shadow-b {
  opacity: 0.38;
}

:is(body.weather-partly-cloudy-day > .weather-effect-layer, .weather-effect-layer.weather-partly-cloudy-day) .weather-cloud-shadow-a {
  opacity: 0.28;
}

:is(body.weather-partly-cloudy-day > .weather-effect-layer, .weather-effect-layer.weather-partly-cloudy-day) .weather-cloud-shadow-b {
  opacity: 0.16;
}

.weather-snow-sheet {
  inset: -216px -230px;
  mix-blend-mode: screen;
}

.weather-snow-sheet-a {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(220, 236, 244, 0.54) 0 1.6px, transparent 2.8px);
  background-size: 92px 116px, 148px 172px;
  animation: outdoorSnowFall 11s linear infinite;
}

.weather-snow-sheet-b {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1.3px, transparent 2.6px),
    radial-gradient(circle, rgba(196, 222, 235, 0.38) 0 1px, transparent 2.4px);
  background-size: 132px 156px, 216px 248px;
  animation: outdoorSnowFallSoft 17s linear infinite;
}

:is(body.weather-snow-active > .weather-effect-layer, .weather-effect-layer.weather-snow-active) .weather-snow-sheet-a {
  opacity: 0.62;
}

:is(body.weather-snow-active > .weather-effect-layer, .weather-effect-layer.weather-snow-active) .weather-snow-sheet-b {
  opacity: 0.42;
}

:is(body.weather-snow-active > .weather-effect-layer, .weather-effect-layer.weather-snow-active) .weather-frost-glaze {
  opacity: 0.18;
}

.weather-frost-glaze {
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 96%, rgba(220, 244, 255, 0.18), transparent 38%),
    radial-gradient(ellipse at 94% 8%, rgba(236, 250, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(205, 234, 246, 0.16), transparent 36%, rgba(232, 247, 255, 0.1));
  box-shadow:
    inset 0 0 70px rgba(213, 239, 252, 0.12),
    inset 0 0 150px rgba(175, 216, 235, 0.09);
  mix-blend-mode: screen;
}

:is(body.weather-frost-active > .weather-effect-layer, .weather-effect-layer.weather-frost-active) .weather-frost-glaze {
  opacity: 0.42;
}

@keyframes outdoorRainFall {
  from {
    background-position: 18px -240px;
  }
  to {
    background-position: -18px 240px;
  }
}

@keyframes outdoorSnowFall {
  from {
    background-position: 0 -180px, 46px -260px;
  }
  to {
    background-position: -80px 220px, -22px 320px;
  }
}

@keyframes outdoorSnowFallSoft {
  from {
    background-position: 30px -240px, 100px -320px;
  }
  to {
    background-position: -46px 280px, 22px 380px;
  }
}

@keyframes outdoorRainFallSoft {
  from {
    background-position: 12px -328px;
  }
  to {
    background-position: -12px 328px;
  }
}

@keyframes outdoorRainFallFine {
  from {
    background-position: 10px -216px;
  }
  to {
    background-position: -10px 216px;
  }
}

@keyframes outdoorRainFallLong {
  from {
    background-position: 14px -286px;
  }
  to {
    background-position: -14px 286px;
  }
}

@keyframes outdoorHeavyRainFall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -66px 96px;
  }
}

@keyframes outdoorHeavyRainFallSoft {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -96px 132px;
  }
}

@keyframes outdoorHeavyRainFallFine {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -156px 216px;
  }
}

@keyframes outdoorHeavyRainFallLong {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -214px 286px;
  }
}

@keyframes outdoorHeavyRainFallSparse {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -118px 184px;
  }
}

@keyframes outdoorFogDriftWide {
  from {
    transform: translate3d(-77px, 11px, 0) scale(1.02);
  }
  to {
    transform: translate3d(96px, -11px, 0) scale(1.06);
  }
}

@keyframes outdoorFogDriftSlow {
  from {
    transform: translate3d(96px, -11px, 0) scale(1.04);
  }
  to {
    transform: translate3d(-96px, 11px, 0) scale(1.08);
  }
}

@keyframes outdoorCloudShadowDrift {
  from {
    transform: translate3d(-192px, -11px, 0);
  }
  to {
    transform: translate3d(192px, 11px, 0);
  }
}

@keyframes outdoorCloudShadowDriftSoft {
  from {
    transform: translate3d(173px, 11px, 0);
  }
  to {
    transform: translate3d(-173px, -11px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-rain-sheet-a,
  .weather-rain-sheet-b,
  .weather-fog-bank,
  .weather-cloud-shadow,
  .weather-snow-sheet {
    animation-duration: 2.4s;
  }
}




/* =========================
   APP GRID
========================= */

#app {

  display:grid;

  grid-template-columns:var(--ui-sidebar-width) minmax(0, 1fr);

  grid-template-rows:var(--ui-topbar-height) minmax(0, 1fr) 60px;

  width: var(--canvas-visible-width, 1920px);
  height: var(--canvas-visible-height, 1080px);
  min-width: 0;
  min-height: 0;

  transition:opacity 0.6s ease;


}


/* =========================
   TOP BAR
========================= */

.steam-account-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(214, 184, 116, 0.25);
  border-radius: 8px;
  background: #20251f;
  color: var(--ui-text);
  font-size: 13px;
}
.steam-link-copy { display: grid; gap: 3px; min-width: 0; }
.steam-link-copy strong { color: #e4cc94; }
.steam-link-copy small { opacity: 0.8; }
.steam-link-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.steam-link-actions button { padding: 7px 11px; white-space: nowrap; cursor: pointer; }
.steam-link-actions button:disabled { opacity: 0.6; cursor: wait; }
.steam-link-actions .steam-link-later { background: transparent; border-color: transparent; }
.steam-link-message { color: #e4cc94; }
.steam-link-notice { grid-column: 1 / -1; grid-row: 2; border-radius: 0; }
#app.has-steam-link-notice { grid-template-rows: var(--ui-topbar-height) auto minmax(0, 1fr) 60px; }
#app.has-steam-link-notice > #sidebar { grid-row: 3 / 5; }
#app.has-steam-link-notice > #main { grid-row: 3; }
#app.has-steam-link-notice > #bottomBar { grid-row: 4; }
@media (max-width: 768px) {
  .steam-account-link { flex-wrap: wrap; }
  #app.has-steam-link-notice { grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  #app.has-steam-link-notice > #sidebar { grid-row: 3; }
  #app.has-steam-link-notice > #main { grid-row: 4; }
  #app.has-steam-link-notice > #bottomBar { grid-row: 5; }
}

#topBar {

  grid-column:1 / span 2;

  position:relative;
  z-index: 3200;
  overflow: visible;

  display:flex;

  align-items:center;

  gap:24px;

  padding:0 16px;

  background:rgba(0,0,0,0.55);

  backdrop-filter:blur(6px);

  border-bottom:1px solid var(--ui-border);
  font-size: 13px;

}

#worldMapBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 36px;
  box-sizing: border-box;
  width: 36px;
  height: 32px;
  min-height: 0;
  max-height: calc(var(--ui-topbar-height) / var(--ui-user-scale, 1) - 8px);
  padding: 0;
  border: 1px solid rgba(235, 194, 118, 0.26);
  border-radius: 999px;
  background: var(--material-leather);
  color: var(--ui-text);
  cursor: pointer;
}
#worldMapBtn:hover {
  background: var(--material-leather-hover);
  transform: none;
}
#worldMapBtn:focus-visible {
  outline: 2px solid rgba(235, 194, 118, 0.78);
  outline-offset: 2px;
}
.world-map-button-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: url("/releases/2026.11.02-01/frontend/assets/ui/general/worldmap.png") center / contain no-repeat;
}

#currentSeason,
#currentWeather {

  display:inline-flex;

  align-items:center;

  gap:6px;

  padding:6px 10px;

  border-radius:999px;

  background:rgba(255,255,255,0.06);

  border:1px solid rgba(255,255,255,0.08);

  color:rgba(255,255,255,0.82);

  font-size:13px;

  white-space:nowrap;

}

#currentWeather {
  color:rgba(232,244,255,0.88);
  cursor: pointer;
  font: inherit;
}

#currentWeather:hover {
  border-color: rgba(235, 194, 118, 0.48);
  background: rgba(255,255,255,0.1);
}

#currentWeather:focus-visible {
  outline: 2px solid rgba(235, 194, 118, 0.78);
  outline-offset: 2px;
}

.topbar-online-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.topbar-online-count strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.topbar-online-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #71c98a;
  box-shadow: 0 0 6px rgba(113, 201, 138, 0.52);
}

@media (max-width: 1100px) {
  .topbar-online-label {
    display: none;
  }
}

.topbar-coins {
  display: flex;
  align-items: center;
}

.topbar-coins-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-loadout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.topbar-loadout-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-loadout-slot {
  position: relative;
  display: inline-flex;
}

.topbar-loadout-slot.is-open {
  z-index: 3300;
}

.topbar-loadout-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(225, 207, 164, 0.34);
  background: rgba(21, 16, 10, 0.78);
  color: var(--ui-text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.26);
}

.topbar-loadout-button[aria-disabled="false"] {
  cursor: pointer;
}

.topbar-loadout-button[aria-disabled="true"] {
  cursor: default;
  opacity: 1;
}

.topbar-loadout-button[aria-disabled="false"]:hover,
.topbar-loadout-slot.is-open .topbar-loadout-button {
  border-color: rgba(235, 194, 118, 0.68);
  background: rgba(41, 30, 17, 0.9);
}

.topbar-loadout-slot.is-warning .topbar-loadout-button {
  border-color: rgba(246, 198, 74, 0.72);
  background: rgba(45, 34, 12, 0.84);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(246, 198, 74, 0.2);
}

.topbar-loadout-slot.is-danger .topbar-loadout-button {
  border-color: rgba(255, 98, 76, 0.8);
  background: rgba(52, 13, 11, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 98, 76, 0.24);
  animation: topbarToolDangerWaver 1.45s ease-in-out infinite;
}

.topbar-loadout-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
}

.topbar-loadout-icon.item-icon-wrap,
.topbar-loadout-icon.item-composite-icon {
  width: 23px;
  height: 23px;
}

.topbar-loadout-durability {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.topbar-loadout-durability span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d9eec0;
}

.topbar-loadout-slot.is-warning .topbar-loadout-durability span {
  background: #e5b43c;
}

.topbar-loadout-slot.is-danger .topbar-loadout-durability span {
  background: #e34d3d;
}

.topbar-loadout-mark {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 1px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 180, 0.46);
  background: rgba(22, 16, 9, 0.78);
  color: rgba(245, 230, 187, 0.82);
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  opacity: 0.86;
}

.topbar-loadout-slot.is-warning .topbar-loadout-mark {
  background: #e5b43c;
  color: #231606;
}

.topbar-loadout-slot.is-danger .topbar-loadout-mark {
  background: #e34d3d;
  color: #fff4ed;
}

.topbar-loadout-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(245, 230, 190, 0.72);
}

.topbar-loadout-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3400;
  min-width: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(155, 118, 54, 0.64);
  background:
    linear-gradient(180deg, rgba(48, 34, 18, 0.98), rgba(17, 12, 8, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.topbar-loadout-option {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ui-text);
  text-align: left;
}

.topbar-loadout-option:hover,
.topbar-loadout-option:focus-visible {
  border-color: rgba(235, 194, 118, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-loadout-option-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.topbar-loadout-option-icon.item-icon-wrap,
.topbar-loadout-option-icon.item-composite-icon {
  width: 26px;
  height: 26px;
}

.topbar-loadout-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-loadout-option-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.topbar-loadout-option-copy small,
.topbar-loadout-option-percent {
  color: rgba(245, 230, 190, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.topbar-coin-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.topbar-coin-value {
  font-weight: 600;
  line-height: 1;
}

.topbar-coin-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.topbar-shipment-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(214, 184, 116, 0.26);
  background: rgba(22, 19, 14, 0.72);
  color: var(--ui-text);
}

.topbar-shipment-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.topbar-shipment-count {
  font-size: 12px;
  font-weight: 800;
}

.topbar-tool-warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(246, 198, 74, 0.72);
  background: rgba(45, 34, 12, 0.84);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(246, 198, 74, 0.2);
}

.topbar-tool-warning.is-danger {
  border-color: rgba(255, 98, 76, 0.8);
  background: rgba(52, 13, 11, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 98, 76, 0.24);
  animation: topbarToolDangerWaver 1.45s ease-in-out infinite;
}

.topbar-tool-warning-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: 0.92;
  filter: sepia(0.7) saturate(1.7) hue-rotate(352deg) brightness(1.08);
}

.topbar-tool-warning-icon.item-icon-wrap,
.topbar-tool-warning-icon.item-composite-icon {
  width: 21px;
  height: 21px;
}

.topbar-tool-warning.is-danger .topbar-tool-warning-icon,
.topbar-tool-warning.is-danger .topbar-tool-warning-icon.item-composite-icon {
  filter: sepia(0.85) saturate(2.4) hue-rotate(318deg) brightness(1.06);
  animation: topbarToolDangerIconGlow 1.45s ease-in-out infinite;
}

.topbar-tool-warning-mark {
  position: absolute;
  right: -5px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 180, 0.8);
  background: #e5b43c;
  color: #231606;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
  padding: 1px;
  text-align: center;
}

.topbar-tool-warning.is-danger .topbar-tool-warning-mark {
  border-color: rgba(255, 210, 198, 0.9);
  background: #e34d3d;
  color: #fff4ed;
  font-size: 8px;
}

.topbar-tool-warning-count {
  position: absolute;
  left: -5px;
  bottom: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 170, 0.7);
  background: rgba(20, 14, 8, 0.92);
  color: #ffe5a4;
  font-size: 10px;
  line-height: 13px;
  font-weight: 900;
  text-align: center;
}

@keyframes topbarToolDangerWaver {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.28),
      0 0 12px rgba(255, 98, 76, 0.2);
  }
  45% {
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.28),
      0 0 24px rgba(255, 98, 76, 0.44);
  }
  68% {
    transform: translateY(0);
  }
}

@keyframes topbarToolDangerIconGlow {
  0%, 100% {
    opacity: 0.88;
    filter: sepia(0.85) saturate(2.2) hue-rotate(318deg) brightness(1.02);
  }
  45% {
    opacity: 1;
    filter: sepia(0.9) saturate(2.8) hue-rotate(318deg) brightness(1.28)
      drop-shadow(0 0 7px rgba(255, 122, 86, 0.72));
  }
}

.topbar-coin-spend {
  --coin-feedback-glow: 225, 111, 91;
  margin: 0;
  right: auto;
  bottom: auto;
  overflow: visible;
  position: fixed;
  top: 54px;
  left: 50%;
  z-index: 12000;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(225, 111, 91, 0.32);
  background: rgba(24, 13, 10, 0.92);
  color: #ffb8a8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  transform: translateX(-50%);
  animation: coinSpendPop 2.15s ease-out forwards;
}

.topbar-coin-spend.is-gain {
  --coin-feedback-glow: 145, 195, 95;
  color: #bce994;
  background: rgba(17, 29, 12, 0.94);
  border-color: rgba(145, 195, 95, 0.4);
}
.topbar-coin-spend::backdrop { background: transparent; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .topbar-coin-spend { animation: none; }
}

.topbar-coin-spend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.topbar-coin-spend img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.topbar-coin-spend-minus {
  font-weight: 900;
}

@keyframes coinSpendPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42); }
  16% { opacity: 1; transform: translateX(-50%) translateY(0); box-shadow: 0 0 0 1px rgba(var(--coin-feedback-glow), 0.22), 0 14px 32px rgba(0, 0, 0, 0.44); }
  54% { opacity: 1; transform: translateX(-50%) translateY(0); box-shadow: 0 0 0 2px rgba(var(--coin-feedback-glow), 0.28), 0 16px 36px rgba(0, 0, 0, 0.46); }
  74% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px); }
}

.item-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.item-composite-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: block;
  filter: var(--item-extra-filter, none);
}

.item-composite-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.item-composite-metal {
  filter: var(--item-metal-filter, none);
}

.item-composite-gem {
  filter: var(--item-gem-filter, none);
}

.item-composite-wood {
  filter: var(--item-wood-filter, none);
}

.item-composite-feather {
  filter: none;
}

.item-trade-crate-content {
  position: absolute;
  z-index: 2;
  left: 44%;
  top: 53%;
  width: 84%;
  height: 84%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.item-trade-crate-icon .item-trade-crate-content > img,
.item-trade-crate-icon .item-trade-crate-content > .item-composite-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
}

.item-icon-badge {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 4px;
  border: 1px solid rgba(255, 232, 170, 0.7);
  background: rgba(25, 18, 10, 0.86);
  color: #ffe5a4;
  font-size: 10px;
  line-height: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.bottom-info-module .item-icon-badge,
.bottom-info-loot-list .item-icon-badge {
  right: -4px;
  top: -5px;
}

.quest-log {
  padding: 10px;
}

.quest-entry {
  margin-bottom: 8px;
}

.quest-entry.completed {
  opacity: 0.6;
}

/* =========================
   SIDEBAR
========================= */

#sidebar {

  grid-column: 1;
  grid-row: 2 / 4;

  display:flex;

  flex-direction:column;

  min-height:0;

  padding:12px;

  background:rgba(20,18,10,0.75);

  backdrop-filter:blur(4px);

  overflow-y:auto;

  overflow-x:hidden;
  font-size: 12px;

}


/* =========================
   SIDEBAR SKILLS
========================= */

#skillList {

  list-style:none;

  padding:0;

  margin:0;

}

#skillList li {

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:8px;

  border-radius:6px;

  cursor:pointer;

  transition:background 0.15s ease;

}

#skillList li:hover {

  background:rgba(255,255,255,0.05);

}

#skillList li[aria-disabled="true"]:hover {

  background:rgba(255,255,255,0.04);

}


/* =========================
   MAIN AREA
========================= */

#main {

  grid-column: 2;
  grid-row: 2;

  position:relative;

  display:grid;

  grid-template-rows:minmax(0, 1fr);

  overflow:hidden;

  background:var(--ui-bg-main);

  backdrop-filter:blur(2px);

}


/* =========================
   SKILL VIEW
========================= */

#skillView {

  padding:16px;

  overflow:hidden;

}


/* =========================
   BOTTOM BAR
========================= */

#bottomBar {

  grid-column: 2;
  grid-row: 3;

  display:flex;

  align-items:center;

  min-width:0;

  gap:12px;

  padding:0 12px;

  background:rgba(0,0,0,0.35);

  border-top:1px solid var(--ui-border);

}

/* Stay under the world map modal (overlay ~1000); do not elevate chrome above windows. */
body.worldmap-overlay-open #bottomBar {
  position: relative;
  z-index: 800;
}

/* Click-to-focus chat: lift above inventory/character windows (overlay z-index 1000)
   but stay under tooltips (2000) and the top bar (3200). Overlays are temporarily
   demoted to 900 via JS while body.chat-layer-raised is set. */
#bottomBar.is-chat-raised,
body.chat-layer-raised #bottomBar {
  position: relative;
  z-index: 1102;
}

body.worldmap-overlay-open #bottomBar.is-chat-raised,
body.worldmap-overlay-open.chat-layer-raised #bottomBar {
  z-index: 800;
}

.bottom-bar-mobile-portal.is-chat-raised,
body.chat-layer-raised .bottom-bar-mobile-portal {
  z-index: 1102;
}

body.worldmap-overlay-open .bottom-bar-mobile-portal.is-chat-raised,
body.worldmap-overlay-open.chat-layer-raised .bottom-bar-mobile-portal {
  z-index: 800;
}

/* Processing/location windows live inside #app; keep them under raised chat. */
body.chat-layer-raised #skillView .game-window,
body.chat-layer-raised #skillView .location-scene-drawer {
  z-index: 300 !important;
}

@media (max-width: 768px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background: radial-gradient(circle at top, rgba(92, 76, 42, 0.18), transparent 42%);
  }

  #app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    height: 100%;
    min-height: 100%;
  }

  #topBar {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    flex-wrap: wrap;
    align-items: stretch;
    background: rgba(7, 7, 6, 0.78);
    backdrop-filter: blur(14px);
  }

  #sidebar {
    grid-column: 1;
    grid-row: 2;
    padding: 8px 12px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(18, 16, 11, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    -webkit-overflow-scrolling: touch;
  }

  #skillList {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }

  #skillList li {
    min-width: 132px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
  }

  #main {
    grid-column: 1;
    grid-row: 3;
    grid-template-rows: 1fr;
    min-height: 0;
    background: linear-gradient(180deg, rgba(17, 14, 9, 0.92), rgba(8, 7, 5, 0.9));
  }

  #skillView {
    padding: 10px;
    overflow: hidden;
  }

  #bottomBar {
    grid-column: 1;
    grid-row: 4;
    gap: 10px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: rgba(11, 10, 8, 0.92);
    backdrop-filter: blur(16px);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin-left: auto;
  }

  #sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(64px + env(safe-area-inset-top));
    max-height: calc(100cqh - 84px - env(safe-area-inset-top));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 70;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 46px rgba(0,0,0,0.34);
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  #sidebar::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  #app.mobile-sidebar-open #sidebar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #app.mobile-sidebar-open #main,
  #app.mobile-sidebar-open #bottomBar {
    filter: blur(1.5px);
  }
}



#playerHealth {
  display: inline-flex;
  align-items: center;
}

.topbar-health-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 136px;
  padding: 5px 9px;
  border: 1px solid rgba(205, 178, 105, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 rgba(205, 178, 105, 0);
  color: inherit;
  cursor: pointer;
}

.topbar-health-wrap:hover,
.topbar-health-wrap:active {
  transform: none;
  border-color: rgba(205, 178, 105, 0.46);
  background: rgba(25, 21, 14, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(205, 178, 105, 0.12);
  filter: none;
}

.topbar-health-wrap:hover .topbar-health-fill {
  filter: brightness(1.16) saturate(1.05);
}

.topbar-health-wrap.is-low-health {
  border-color: rgba(239, 76, 64, 0.78);
  animation: topbarLowHealthPulse 1.55s ease-in-out infinite;
}

.topbar-health-wrap.is-low-health .topbar-health-fill {
  background: linear-gradient(90deg, #a91f25 0%, #f05248 100%);
  box-shadow: 0 0 10px rgba(239, 52, 45, 0.65);
}

.topbar-health-wrap.is-healing .topbar-health-fill {
  background: linear-gradient(90deg, #3d9f59 0%, #8bd36f 100%);
  animation: topbarHealingPulse 1.8s ease-in-out infinite;
}

.health-state-feedback {
  position: fixed;
  inset: 0;
  z-index: 15000;
  pointer-events: none;
  transition: opacity 2.2s ease;
}

.minigame-attention-feedback {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 0 2px rgba(242, 194, 76, 0.4),
    inset 0 0 78px rgba(215, 151, 30, 0.28),
    inset 0 0 150px rgba(125, 75, 8, 0.12);
  transition: opacity 420ms ease;
}

.location-background-loading {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: radial-gradient(circle at 50% 42%, rgba(28, 23, 14, 0.98), rgba(3, 3, 2, 0.995) 68%);
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.location-background-loading.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 140ms ease;
}

.location-background-loading-content {
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #e7d6ad;
  font: 700 16px/1.4 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
}

.location-background-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(217, 189, 120, 0.2);
  border-top-color: #d9bd78;
  border-radius: 50%;
  animation: locationBackgroundLoadingSpin 0.9s linear infinite;
}

@keyframes locationBackgroundLoadingSpin {
  to { transform: rotate(360deg); }
}

.minigame-attention-feedback.is-visible {
  animation: minigameGoldenBreath 3s ease-in-out infinite;
}

@keyframes minigameGoldenBreath {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  #gameViewport::before,
  #gameViewport::after {
    transition-duration: 300ms;
  }

  .weather-effect-layer,
  .weather-rain-sheet,
  .weather-rain-mist,
  .weather-fog-bank,
  .weather-cloud-shadow,
  .weather-snow-sheet,
  .weather-frost-glaze {
    transition-duration: 300ms;
  }
}

.health-state-feedback::before,
.health-state-feedback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.health-state-feedback::before {
  box-shadow: inset 0 0 0 2px rgba(225, 39, 36, 0.52), inset 0 0 52px rgba(174, 18, 22, 0.38);
}

.health-state-feedback::after {
  box-shadow: inset 0 0 0 2px rgba(104, 209, 107, 0.52), inset 0 0 46px rgba(55, 156, 71, 0.28);
}

.health-state-feedback.is-low-health::before {
  animation: lowHealthScreenPulse 1.55s ease-in-out infinite;
}

.health-state-feedback.is-healing::after {
  animation: healingScreenPulse 2s ease-in-out infinite;
}

.health-state-feedback.has-heal-impulse::after {
  animation: healingScreenImpulse 1.1s ease-out both;
}

@keyframes topbarLowHealthPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 7px rgba(225,39,36,0.22); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 20px rgba(225,39,36,0.56); }
}

@keyframes topbarHealingPulse {
  0%, 100% { filter: brightness(0.94); box-shadow: 0 0 5px rgba(77,190,91,0.28); }
  50% { filter: brightness(1.18); box-shadow: 0 0 13px rgba(91,211,104,0.68); }
}

@keyframes lowHealthScreenPulse {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.78; }
}

@keyframes healingScreenPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.42; }
}

@keyframes healingScreenImpulse {
  0% { opacity: 0; }
  24% { opacity: 0.68; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-health-wrap.is-low-health,
  .topbar-health-wrap.is-healing .topbar-health-fill,
  .health-state-feedback.is-low-health::before,
  .health-state-feedback.is-healing::after,
  .health-state-feedback.has-heal-impulse::after {
    animation: none;
  }

  .minigame-attention-feedback.is-visible {
    animation: none;
    opacity: 0.28;
  }

  .location-background-loading-spinner {
    animation: none;
    border-color: rgba(217, 189, 120, 0.42);
    border-top-color: #d9bd78;
  }

  .health-state-feedback.is-low-health::before { opacity: 0.48; }
  .health-state-feedback.is-healing::after,
  .health-state-feedback.has-heal-impulse::after { opacity: 0.28; }
}

.topbar-health-wrap.has-inn-regen-boost {
  position: relative;
  border-color: rgba(245, 202, 91, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(245, 202, 91, 0.16),
    0 0 18px rgba(245, 202, 91, 0.22);
  animation: topbarInnRegenBreath 3.8s ease-in-out infinite;
}

.topbar-health-wrap.has-inn-regen-boost::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 225, 135, 0.28);
  opacity: 0.58;
  pointer-events: none;
  animation: topbarInnRegenHalo 3.8s ease-in-out infinite;
}

.topbar-health-wrap.has-inn-regen-boost .topbar-health-config-dot {
  background: #f5ca5b;
  box-shadow: 0 0 12px rgba(245, 202, 91, 0.72);
}

@keyframes topbarInnRegenBreath {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(245, 202, 91, 0.12),
      0 0 14px rgba(245, 202, 91, 0.16);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(245, 202, 91, 0.28),
      0 0 28px rgba(245, 202, 91, 0.34);
  }
}

@keyframes topbarInnRegenHalo {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.025);
  }
}

.topbar-health-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.topbar-health-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.topbar-health-value {
  font-size: 14px;
}

.topbar-health-bar {
  width: 82px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.topbar-health-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #cf544a 0%, #f18f64 100%);
}

.topbar-health-config-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(205, 178, 105, 0.72);
  box-shadow: 0 0 8px rgba(205, 178, 105, 0.35);
}

.runtime-notice-stack {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(760px, calc(var(--canvas-visible-width, 1920px) - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.runtime-notice-stack.is-hidden {
  display: none;
}

.runtime-notice-stack.has-blocking-notice {
  inset: 0;
  left: 0;
  z-index: 5000;
  place-items: start center;
  width: var(--canvas-visible-width, 1920px);
  padding: min(130px, 96px) 18px 18px;
  transform: none;
  background: rgba(5, 4, 3, 0.62);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.runtime-notice {
  pointer-events: auto;
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.34);
}

.runtime-notice-maintenance {
  background: linear-gradient(180deg, rgba(255, 220, 86, 0.98), rgba(255, 192, 54, 0.98));
  border-color: rgba(255, 245, 184, 0.84);
  color: #2f2000;
}

.runtime-notice-maintenance.is-active {
  background: linear-gradient(180deg, rgba(255, 214, 61, 1), rgba(255, 170, 33, 1));
  box-shadow: 0 18px 44px rgba(170, 114, 0, 0.3);
}

.runtime-notice-update {
  background: linear-gradient(180deg, rgba(42, 35, 25, 0.96), rgba(22, 18, 13, 0.98));
  border-color: rgba(214, 188, 116, 0.28);
  color: #f5ebd5;
}

.runtime-notice-blocking {
  width: min(760px, calc(var(--canvas-visible-width, 1920px) - 36px));
  border-color: rgba(255, 106, 92, 0.46);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.52),
    0 0 34px rgba(255, 106, 92, 0.12);
}

.runtime-notice-connection {
  background: linear-gradient(180deg, rgba(29, 35, 42, 0.97), rgba(15, 20, 25, 0.98));
  border-color: rgba(134, 180, 214, 0.36);
  color: #edf6ff;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.34),
    0 0 28px rgba(96, 152, 194, 0.12);
}

.runtime-notice-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.runtime-notice-title {
  font-size: clamp(1rem, 29px, 1.22rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.runtime-notice-copy {
  font-size: 0.95rem;
  line-height: 1.35;
}

.runtime-notice-hint {
  max-width: 640px;
  color: rgba(245, 235, 213, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.runtime-notice-action {
  justify-self: start;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214, 188, 116, 0.28);
  background: rgba(214, 188, 116, 0.16);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.runtime-notice-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.bottom-bar-shell {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  justify-content: space-between;
}

.bottom-bar-info-strip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.bottom-bar-info-strip::-webkit-scrollbar {
  display: none;
}

.bottom-info-module {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(214, 187, 106, 0.16);
  background:
    linear-gradient(135deg, rgba(214, 187, 106, 0.12), rgba(120, 160, 96, 0.06)),
    rgba(24, 20, 15, 0.82);
  color: #f6edd8;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.bottom-bar-shell.is-refreshing-hover .bottom-info-module,
.bottom-bar-shell.is-refreshing-hover .bottom-bar-chat-toggle {
  transition: none;
}

.bottom-info-module:hover,
.bottom-info-module.is-active {
  border-color: rgba(214, 187, 106, 0.28);
  background:
    linear-gradient(135deg, rgba(214, 187, 106, 0.18), rgba(120, 160, 96, 0.1)),
    rgba(30, 25, 17, 0.9);
}

.bottom-info-xp {
  width: auto;
  min-width: 150px;
  max-width: 280px;
  flex: 1 1 210px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 8px 12px;
}

.bottom-info-session,
.bottom-info-last-loot {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.bottom-info-last-loot {
  width: 140px;
  max-width: 140px;
  flex-basis: 140px;
}

.bottom-info-last-loot.is-danger {
  border-color: rgba(230, 84, 66, 0.48);
  background:
    linear-gradient(135deg, rgba(167, 42, 32, 0.26), rgba(72, 23, 17, 0.16)),
    rgba(34, 18, 14, 0.9);
  color: #ffd9d2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24), 0 0 18px rgba(230, 84, 66, 0.18);
}

.bottom-info-last-loot.is-danger:hover,
.bottom-info-last-loot.is-danger.is-active {
  border-color: rgba(255, 111, 92, 0.64);
  background: 
    linear-gradient(135deg, rgba(167, 42, 32, 0.32), rgba(72, 23, 17, 0.2)),
    rgba(34, 18, 14, 0.94);
}

.bottom-info-module.bottom-info-activity {
  position: relative;
  border-color: rgba(168, 194, 126, 0.35);
  width: clamp(205px, 16vw, 290px);
  max-width: 290px;
  min-width: 205px;
  flex: 0 1 290px;
  padding-right: 10px;
  display: inline-flex;
  justify-content: space-between;
}

.bottom-info-module.bottom-info-activity::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(168, 194, 126, 0.28);
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(168, 194, 126, 0.12);
}

.bottom-info-activity .bottom-info-icon {
  color: #a8c27e;
}

.bottom-info-activity-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bottom-info-activity-stop {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 52px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 174, 142, 0.44);
  background: linear-gradient(180deg, rgba(149, 65, 54, 0.9), rgba(82, 28, 24, 0.92));
  color: #ffe8dc;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-info-activity-stop:hover,
.bottom-info-activity-stop:focus-visible {
  border-color: rgba(255, 210, 188, 0.72);
  background: linear-gradient(180deg, rgba(180, 79, 64, 0.96), rgba(102, 34, 29, 0.96));
}

.bottom-info-module.bottom-info-activity.is-active,
.bottom-info-module.bottom-info-activity:hover,
.bottom-info-module.bottom-info-activity:focus-visible {
  border-color: rgba(196, 228, 142, 0.5);
}

.bottom-info-module.bottom-info-activity.is-active::after,
.bottom-info-module.bottom-info-activity:hover::after,
.bottom-info-module.bottom-info-activity:focus-visible::after {
  animation-play-state: paused;
}

@keyframes bottomActivityRunningPulse {
  0%, 100% {
    border-color: rgba(168, 194, 126, 0.28);
    box-shadow: 0 0 0 rgba(168, 194, 126, 0);
  }
  50% {
    border-color: rgba(196, 228, 142, 0.68);
    box-shadow: 0 0 12px rgba(168, 194, 126, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-info-module.bottom-info-activity::after {
    animation: none;
  }
}

.bottom-info-last-loot.is-danger .bottom-info-kicker {
  color: #ff9f92;
}

.bottom-info-last-loot.is-danger .bottom-info-title {
  color: #ffe0d9;
}

.bottom-info-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.26));
}

.bottom-info-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(214, 187, 106, 0.16);
  color: #f1d58e;
  font-weight: 800;
}

.bottom-info-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bottom-info-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 213, 142, 0.72);
}

.bottom-info-title {
  display: block;
  min-width: 0;
  color: #f6edd8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-info-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(168, 194, 126, 0.18);
  color: #d8ebb0;
  font-size: 11px;
  font-weight: 800;
}

.bottom-info-xp-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.42);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.46);
}

.bottom-info-xp-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8bbf53, #d7ef8f);
  box-shadow: 0 0 14px rgba(176, 224, 105, 0.26);
  transition: width 420ms ease;
}

.bottom-info-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(var(--canvas-visible-width, 1920px) - 32px));
  max-height: min(420px, 670px);
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(214, 187, 106, 0.18);
  background: linear-gradient(180deg, rgba(28, 24, 17, 0.98), rgba(16, 14, 11, 0.98));
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  z-index: 30;
}

.bottom-info-panel.is-danger {
  border-color: rgba(230, 84, 66, 0.42);
  background: linear-gradient(180deg, rgba(45, 22, 17, 0.98), rgba(18, 12, 10, 0.98));
  box-shadow: 0 18px 44px rgba(0,0,0,0.36), 0 0 20px rgba(230, 84, 66, 0.12);
}

.bottom-info-panel.is-danger .bottom-info-panel-head {
  border-bottom-color: rgba(255, 116, 96, 0.16);
  color: #ffada2;
}

.bottom-info-panel-head,
.bottom-info-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bottom-info-panel-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(241, 213, 142, 0.82);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bottom-info-clear-btn {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(214, 187, 106, 0.18);
  background: rgba(255,255,255,0.055);
  color: #f6edd8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottom-info-clear-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.bottom-info-panel-head strong {
  max-width: 190px;
  color: #f6edd8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-info-stat-row {
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  font-size: 12px;
}

.bottom-info-stat-row > span {
  color: rgba(244, 234, 211, 0.66);
}

.bottom-info-stat-row strong {
  color: #f6edd8;
}

.bottom-info-support-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  font-size: 12px;
}

.bottom-info-support-row span {
  color: rgba(244, 234, 211, 0.66);
}

.bottom-info-support-row strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  color: #f6edd8;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-info-support-row.is-active strong {
  color: #d5ef9b;
}

.bottom-info-support-row.is-warning strong {
  color: #f0c16f;
}

.bottom-info-support-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.bottom-info-support-plus {
  color: rgba(246, 237, 216, 0.58);
  font-weight: 800;
}

.bottom-info-support-hint {
  margin-top: -4px;
  padding: 7px 9px;
  border-radius: 10px;
  color: rgba(245, 224, 178, 0.8);
  background: rgba(255, 193, 94, 0.08);
  font-size: 11px;
  line-height: 1.35;
}

.bottom-info-support-hint.is-active {
  color: rgba(218, 239, 180, 0.86);
  background: rgba(152, 202, 112, 0.09);
}

.bottom-info-loot-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom-info-loot-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
}

.bottom-info-loot-list .item-icon-wrap {
  width: 24px;
  height: 24px;
}

.bottom-info-loot-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bottom-info-loot-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.bottom-info-loot-list span {
  color: rgba(244, 234, 211, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.bottom-info-loot-list span.loot-negative {
  color: #ff9b8e;
}

.bottom-info-empty {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: rgba(244, 234, 211, 0.68);
  font-size: 12px;
}

.bottom-bar-actions {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bottom-bar-scene-actions {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bottom-bar-scene-actions:empty {
  display: none;
}

.bottom-bar-scene-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.bottom-bar-scene-action.danger {
  border-color: rgba(211, 92, 73, 0.56);
  color: #ffd1c8;
}

#bottomBar .bottom-bar-scene-action.bottom-bar-icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  min-width: 42px;
  padding: 5px;
}
.bottom-bar-action-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
}
#bottomBarChatToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
}
#bottomBarChatToggle [data-chat-player-count] { min-width: 1ch; font-variant-numeric: tabular-nums; }

.bottom-bar-demo-cap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  max-width: 310px;
  padding: 6px 12px;
  border: 1px solid rgba(222, 172, 70, 0.55);
  border-radius: 8px;
  background: rgba(62, 38, 12, 0.88);
  color: #f3d892;
  box-shadow: 0 0 0 1px rgba(255, 203, 91, 0.08), 0 0 14px rgba(190, 127, 26, 0.12);
  white-space: nowrap;
}

.bottom-bar-shell.is-compact {
  gap: 7px;
}

.bottom-bar-shell.is-compact .bottom-bar-info-strip,
.bottom-bar-shell.is-compact .bottom-bar-actions {
  gap: 6px;
}

.bottom-bar-shell.is-compact .bottom-info-module {
  min-height: 38px;
}

.bottom-bar-shell.is-compact .bottom-info-xp {
  min-width: 135px;
  flex-basis: 175px;
  padding-inline: 9px;
}

.bottom-bar-shell.is-compact .bottom-info-session,
.bottom-bar-shell.is-compact .bottom-info-last-loot {
  gap: 7px;
  padding-inline: 9px;
}

.bottom-bar-shell.is-compact .bottom-info-last-loot {
  width: 118px;
  max-width: 118px;
  flex-basis: 118px;
}

.bottom-bar-shell.is-compact .bottom-info-module.bottom-info-activity {
  width: 210px;
  min-width: 185px;
  flex-basis: 210px;
}

.bottom-bar-shell.is-compact .bottom-bar-chat-toggle,
.bottom-bar-shell.is-compact .bottom-bar-secondary-btn,
.bottom-bar-shell.is-compact .bottom-bar-demo-cap {
  min-height: 34px;
  padding-inline: 10px;
}

.bottom-bar-shell.is-tight .bottom-info-xp {
  min-width: 120px;
  flex-basis: 145px;
}

.bottom-bar-shell.is-tight .bottom-info-session {
  width: 46px;
  flex: 0 0 46px;
  justify-content: center;
  padding-inline: 7px;
}

.bottom-bar-shell.is-tight .bottom-info-session .bottom-info-title {
  display: none;
}

.bottom-bar-shell.is-tight .bottom-info-session .bottom-info-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.bottom-bar-shell.is-tight .bottom-info-last-loot {
  width: 96px;
  max-width: 96px;
  flex-basis: 96px;
}

.bottom-bar-shell.is-tight .bottom-info-last-loot .bottom-info-kicker,
.bottom-bar-shell.is-tight .bottom-info-activity .bottom-info-kicker {
  display: none;
}

.bottom-bar-shell.is-tight .bottom-info-module.bottom-info-activity {
  width: 180px;
  min-width: 170px;
  flex-basis: 180px;
}

.bottom-bar-shell.is-tight .bottom-info-activity-stop {
  min-width: 46px;
  margin-left: 6px;
  padding-inline: 8px;
}

.bottom-bar-shell.is-tight .bottom-bar-demo-cap {
  max-width: 116px;
}

.bottom-bar-shell.is-tight .bottom-bar-demo-cap strong {
  display: none;
}

.bottom-bar-shell.is-tight .bottom-bar-demo-cap-kicker {
  padding-right: 0;
  border-right: 0;
}

.bottom-bar-demo-cap-kicker {
  flex: 0 0 auto;
  padding-right: 9px;
  border-right: 1px solid rgba(243, 216, 146, 0.24);
  color: #ffca62;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.bottom-bar-demo-cap strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.bottom-bar-chat-toggle,
.bottom-bar-secondary-btn {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #f4ead3;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.bottom-bar-chat-toggle.active {
  background: rgba(168, 194, 126, 0.16);
  border-color: rgba(168, 194, 126, 0.28);
  color: #d8ebb0;
}

.bottom-bar-presence-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bottom-bar-presence-toggle strong {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(168, 194, 126, 0.18);
  color: #d8ebb0;
  font-size: 11px;
}

.bottom-bar-presence-toggle:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@keyframes goldenShimmer {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.12), 0 0 12px rgba(218, 165, 32, 0.18);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.22), 0 0 26px rgba(218, 165, 32, 0.32);
  }
}

/* Mobile chat/info portal — same layer as #bottomBar, never above modals. */
.bottom-bar-mobile-portal {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
}

.bottom-bar-mobile-portal.is-active {
  pointer-events: none;
}

.bottom-bar-mobile-portal > * {
  pointer-events: auto;
}

.bottom-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(620px, calc(var(--canvas-visible-width, 1920px) - 32px));
  min-height: 330px;
  max-height: min(562px, 440px);
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  resize: vertical;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(214, 187, 106, 0.22);
  background: linear-gradient(180deg, rgba(20, 17, 11, 0.44), rgba(8, 8, 7, 0.36));
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 30;
}

.bottom-presence-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(320px, calc(var(--canvas-visible-width, 1920px) - 32px));
  max-height: min(380px, 670px);
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(28, 24, 17, 0.98), rgba(16, 14, 11, 0.98));
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  z-index: 31;
}

.bottom-presence-panel.is-open {
  display: flex;
}

.bottom-presence-count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(168, 194, 126, 0.16);
  color: #d8ebb0;
}

.bottom-presence-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 2px 0 0;
  overflow-y: auto;
  list-style: none;
}

.bottom-presence-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.04);
}

.bottom-presence-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(214, 187, 106, 0.14);
  color: #f1d58e;
  font-weight: 900;
}

.bottom-presence-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-presence-list li > span:last-child {
  color: rgba(216, 235, 176, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bottom-social-view { display: grid; gap: 12px; }
.bottom-social-view section { display: grid; gap: 6px; }
.bottom-social-view h4 { margin: 0; color: var(--text-gold, #d7bd7a); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.bottom-social-search { display: flex; gap: 8px; }
.bottom-social-search-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid rgba(205,170,104,.25); border-radius: 6px; }
.bottom-social-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.bottom-social-list li { display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; align-items: center; gap: 8px; padding: 7px; border-radius: 6px; background: rgba(0,0,0,.18); }
.bottom-social-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.bottom-social-status { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #777; }
.bottom-social-status.is-online { background: #80bd67; box-shadow: 0 0 5px rgba(128,189,103,.65); }
.player-custom-name-color { color: inherit; text-shadow: 0 1px 3px rgba(0, 0, 0, .92), 0 0 5px rgba(0, 0, 0, .5); }
.bottom-social-actions button, .bottom-social-dm-heading button { border: 1px solid rgba(205,170,104,.35); border-radius: 4px; background: rgba(61,43,23,.8); color: inherit; padding: 4px 7px; cursor: pointer; font-size: .7rem; }
.bottom-social-actions button:disabled { cursor: not-allowed; opacity: .4; }
.bottom-social-unread { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #9b3c2f; color: white; font-size: .65rem; }
.bottom-social-friend-unread { margin-left: 7px; vertical-align: middle; box-shadow: 0 0 9px rgba(190, 61, 47, .55); }
.bottom-social-dm { display: grid; grid-template-rows: auto minmax(140px, 1fr) auto; gap: 8px; min-height: 100%; }
.bottom-social-dm-heading { display: flex; align-items: center; gap: 8px; }
.bottom-social-dm-messages { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.bottom-social-dm-message { align-self: flex-start; display: grid; gap: 2px; max-width: 78%; padding: 6px 8px; border-radius: 7px; background: rgba(72,58,39,.7); }
.bottom-social-dm-message.is-own { align-self: flex-end; background: rgba(94,72,38,.9); }
.bottom-social-dm-message small { opacity: .55; font-size: .62rem; }

@media (max-width: 700px) {
  .bottom-social-list li { grid-template-columns: auto 1fr; }
  .bottom-social-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.bottom-chat-panel.is-open {
  display: flex;
}

.bottom-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bottom-chat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-chat-subtitle {
  margin-top: 4px;
  opacity: 0.72;
  font-size: 12px;
}

.bottom-chat-scope-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.bottom-chat-scope-btn {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
}

.bottom-chat-scope-btn.active {
  background: rgba(214, 187, 106, 0.16);
  border-color: rgba(214, 187, 106, 0.24);
  color: #f1d58e;
}

.bottom-chat-scope-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bottom-chat-players-btn {
  border-color: rgba(168, 194, 126, 0.18);
  color: #d8ebb0;
}

.bottom-chat-panel.is-presence-view .bottom-chat-body {
  min-height: 300px;
}

.bottom-chat-presence-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(168, 194, 126, 0.12);
  background: rgba(168, 194, 126, 0.08);
  color: rgba(244, 234, 211, 0.86);
  flex: 0 0 auto;
}

.bottom-chat-presence-summary strong {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(168, 194, 126, 0.18);
  color: #d8ebb0;
}

.bottom-chat-body {
  flex: 1;
  min-height: 160px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.bottom-chat-message {
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(18, 16, 12, 0.32);
  border: 1px solid rgba(255,255,255,0.045);
  flex: 0 0 auto;
}

.bottom-chat-message.is-system {
  background: rgba(91, 76, 31, 0.2);
  border-color: rgba(214, 187, 106, 0.16);
}

.bottom-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.bottom-chat-message-author {
  font-weight: 700;
}

.player-title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-right: 6px;
  padding: 1px 6px 2px;
  border-radius: 999px;
  border: 1px solid rgba(235, 201, 100, 0.46);
  background: linear-gradient(135deg, rgba(121, 91, 31, 0.88), rgba(44, 33, 13, 0.82));
  color: var(--player-title-color, #ffe6a1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(235, 181, 72, 0.16);
}

.player-title-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: -3px;
}

/* Keep EA/Trailblazer badge tiny next to names (asset is 128x128). */
.trailblazer-icon,
img.trailblazer-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  margin-left: 5px;
  vertical-align: -1px;
  object-fit: contain;
  flex: 0 0 12px;
}

.player-title-badge.frame-simple {
  border-color: color-mix(in srgb, var(--player-title-color, #d9d3c3) 58%, transparent);
  background: rgba(22, 20, 17, 0.72);
  box-shadow: none;
}

.player-title-badge.frame-none {
  padding-inline: 1px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.bottom-chat-message-time {
  opacity: 0.68;
}

.bottom-chat-message-text {
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.bottom-chat-empty {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  opacity: 0.75;
}

.bottom-chat-footer {
  display: grid;
  gap: 8px;
}

.bottom-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18, 16, 12, 0.28);
  color: inherit;
}

.bottom-chat-send-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(168, 194, 126, 0.24);
  background: rgba(168, 194, 126, 0.16);
  color: #d8ebb0;
  cursor: pointer;
}

.bottom-chat-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.bottom-chat-counter {
  opacity: 0.68;
}

.bottom-chat-error {
  color: #f2a38f;
}

.world-event-scope {
  display: grid;
  gap: 3px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}

.world-event-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.world-event-effect {
  font-weight: 400;
}

.world-event-toast-host {
  --world-event-toast-anchor-right: 22px;
  --world-event-toast-anchor-top: 88px;
  position: fixed;
  top: var(--world-event-toast-anchor-top);
  right: var(--world-event-toast-anchor-right);
  z-index: 2600;
  display: grid;
  gap: 8px;
  width: min(340px, calc(var(--canvas-visible-width, 1920px) - 28px));
  pointer-events: none;
}

.world-event-toast {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px 14px 12px 16px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(214, 187, 106, 0.32);
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 213, 142, 0.18), transparent 34%),
    linear-gradient(140deg, rgba(33, 28, 18, 0.98), rgba(15, 13, 10, 0.98));
  color: #f6edd8;
  text-align: left;
  box-shadow: 0 18px 42px rgba(0,0,0,0.34), 0 0 24px rgba(214, 187, 106, 0.08);
  cursor: pointer;
  pointer-events: auto;
  animation: worldEventToastIn 420ms ease-out both, worldEventToastBreathe 2.6s ease-in-out 420ms infinite;
}

.world-event-toast.is-hiding {
  pointer-events: none;
  animation: worldEventToastOut 680ms ease-in forwards;
}

.world-event-toast-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #e5c46b, #91be61);
  box-shadow: 0 0 16px rgba(229, 196, 107, 0.44);
}

.world-event-toast-kicker {
  color: rgba(241, 213, 142, 0.84);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-event-toast strong {
  min-width: 0;
  overflow: hidden;
  color: #fff7df;
  font-size: 15px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-event-toast-location,
.world-event-toast span:last-child {
  color: rgba(244, 234, 211, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

@keyframes worldEventToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes worldEventToastOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes worldEventToastBreathe {
  0%, 100% {
    border-color: rgba(214, 187, 106, 0.24);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34), 0 0 18px rgba(214, 187, 106, 0.08);
  }

  50% {
    border-color: rgba(214, 187, 106, 0.46);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34), 0 0 30px rgba(214, 187, 106, 0.18);
  }
}

@media (max-width: 768px) {
  .runtime-notice-stack {
    top: 8px;
    width: calc(var(--canvas-visible-width, 1920px) - 16px);
  }

  .runtime-notice {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .runtime-notice-copy {
    font-size: 0.88rem;
  }

  .bottom-bar-shell {
    justify-content: stretch;
    gap: 8px;
  }

  .bottom-bar-info-strip {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bottom-bar-info-strip::-webkit-scrollbar {
    display: none;
  }

  .bottom-info-xp {
    width: 180px;
    flex: 0 0 180px;
  }

  .bottom-info-session,
  .bottom-info-last-loot {
    flex: 0 0 auto;
  }

  .bottom-info-last-loot {
    width: 105px;
    max-width: 105px;
    flex-basis: 105px;
  }

  .bottom-bar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .bottom-chat-panel {
    right: 0;
    left: 0;
    width: auto;
    bottom: calc(100% + 8px);
  }

  .bottom-info-panel {
    right: 0;
    left: 0;
    width: auto;
    bottom: calc(100% + 8px);
  }

  .bottom-chat-header {
    flex-direction: column;
  }
}




/* Matching character sheet and quest journal height in logical UI pixels. */
:root { --character-quest-window-height: 860px; }

#currentSeason img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
/* Every shared item presentation applies its material tint, including views
   without an inventory-specific icon class. More specific rules may add shadows. */
:where(img[style*="--item-extra-filter"]) {
  filter: var(--item-extra-filter, none);
}

.gold-rumor-notice {
  width: min(310px, 80vw);
  padding: 12px 15px;
  border: 1px solid #c79b42;
  border-radius: 8px;
  background: #211b10;
  color: #f3dfae;
  box-shadow: 0 3px 18px #0009;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: auto;
}

.gold-rumor-notice.is-minimized { width: auto; max-width: min(310px, 80vw); padding: 8px 10px; }
.gold-rumor-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gold-rumor-header > strong { color: #ffce67; }
.gold-rumor-controls { display: flex; flex: 0 0 auto; gap: 5px; }
.gold-rumor-notice .gold-rumor-action {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #8c713c;
  border-radius: 4px;
  background: #382b17;
  color: #ffdf9a;
  font: 700 18px/1 Arial, sans-serif;
  box-shadow: none;
  cursor: pointer;
}
.gold-rumor-notice .gold-rumor-action:hover { background: #503b1c; border-color: #d5ae58; }
.gold-rumor-notice .gold-rumor-action:focus-visible { outline: 2px solid #ffdf9a; outline-offset: 2px; }
#goldRumorNoticeCopy:not([hidden]) { display: block; margin-top: 6px; }

.personal-best-item-icon, .personal-best-item-icon.item-composite-icon { width: 72px; height: 72px; object-fit: contain; }
.forager-eye-item-icon, .forager-eye-item-icon.item-composite-icon { width: 34px; height: 34px; object-fit: contain; }


/* Small shared fire assets use the same 16:9 cover transform as camp scenes. */
.player-camp-fire {position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.player-camp-fire-stage {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.player-camp-fire-stage img {position:absolute;display:block;object-fit:contain;pointer-events:none}
.player-camp-fire-logs,.player-camp-fire-ring {left:var(--camp-fire-x);top:var(--camp-fire-y);transform:translate(-50%,-50%);filter:brightness(calc(1 - var(--camp-night,0)*.68)) saturate(calc(1 - var(--camp-night,0)*.35))}
.player-camp-fire-logs {width:6.2%;z-index:1}
.player-camp-fire-ring {width:9.4%;z-index:2;visibility:hidden}
.player-camp-fire[data-ring="true"] .player-camp-fire-ring {visibility:visible}
.player-camp-fire-flame {width:5.4%;left:var(--camp-fire-x);top:var(--camp-fire-y);transform:translate(-50%,-88%);transform-origin:50% 88%;z-index:3;opacity:0}
.player-camp-fire-glow {position:absolute;left:var(--camp-fire-x);top:var(--camp-fire-y);width:25%;height:18%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,rgba(255,145,41,.40),rgba(239,113,25,.13) 40%,transparent 72%);mix-blend-mode:screen;opacity:0}
.player-camp-fire[data-burning="true"] .player-camp-fire-flame {opacity:1;animation:camp-flame-flicker 2.3s ease-in-out infinite alternate}
.player-camp-fire[data-burning="true"] .player-camp-fire-glow {opacity:calc(.3 + var(--camp-night,0)*.7);animation:camp-glow-flicker 3.1s ease-in-out infinite alternate}
.player-camp-fire[data-burning="true"] :is(.player-camp-fire-logs,.player-camp-fire-ring) {filter:brightness(calc(1 - var(--camp-night,0)*.30)) sepia(calc(var(--camp-night,0)*.25)) drop-shadow(0 0 4px #d96e2338)}
@keyframes camp-flame-flicker {0%,100%{transform:translate(-50%,-88%) scale(.96,1)}35%{transform:translate(-50%,-88%) scale(1.04,.95)}70%{transform:translate(-50%,-88%) scale(.99,1.06)}}
@keyframes camp-glow-flicker {from{filter:brightness(.88)}to{filter:brightness(1.1)}}
@media(prefers-reduced-motion:reduce){.player-camp-fire[data-burning="true"] :is(.player-camp-fire-flame,.player-camp-fire-glow){animation:none}}
