/* World Chat: the message list scrolls on its own; the page itself stays put (Pao, 27.10.). */
@layer pv {
  html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .wc-log {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 120px !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .world-chat {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  @media (max-width: 900px) {
    html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page {
      display: flex !important;
      flex-direction: column !important;
      height: calc(var(--pv-avail, 700px) - var(--pv-banner, 0px) - 64px) !important;
      min-height: 0 !important;
      gap: 8px !important;
      padding-bottom: 8px !important;
    }
    html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .world-chat-page__hero { display: none !important; }
    html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .world-chat {
      flex: 1 1 0 !important;
      min-height: 0 !important;
      display: flex !important;
      flex-direction: column !important;
    }
    html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .wc-log {
      flex: 1 1 0 !important;
      height: auto !important;
      min-height: 120px !important;
    }
    html body.vey-renewal:not(#wcs1):not(#wcs2):not(#wcs3):not(#wcs4):not(#wcs5):not(#wcs6):not(#wcs7):not(#wcs8) #view .world-chat-page .wc-rules { font-size: 12px !important; line-height: 1.35 !important; margin: 0 !important; }
  }

  /* Item-level picker looked like plain text on phones; same look as the rarity picker (Pao, 27.10.) */
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #accountLayer #lootFilterMaxLevel {
    font-size: 16px !important;
    padding: 10px 12px !important;
    color: #f4e8cf !important;
    background: #211927 !important;
    border: 1px solid #c6a36199 !important;
    border-radius: 8px !important;
  }

  /* Auto-salvage quick switch in the inventory (Pyro, 27.10.) */
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick { display: grid !important; gap: 10px !important; padding: 12px 14px !important; margin: 0 0 10px !important; border: 1px solid rgba(198, 163, 97, .45) !important; border-radius: 12px !important; background: rgba(24, 18, 32, .82) !important; }
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick__text { display: grid !important; gap: 4px !important; }
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick__text b { color: #f3cf86 !important; font: 800 12px/1.2 Manrope, system-ui, sans-serif !important; letter-spacing: .12em !important; }
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick__text small { color: #cdbfa6 !important; font: 500 13px/1.4 Manrope, system-ui, sans-serif !important; overflow-wrap: anywhere !important; }
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick__modes { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  html body.vey-renewal:not(#pcf1):not(#pcf2):not(#pcf3):not(#pcf4):not(#pcf5):not(#pcf6) #view .autosalvage-quick__modes .button { min-height: 44px !important; padding: 0 8px !important; }
}

/* Reaktionen unter Chat-Nachrichten (Pao 3.11.) */
.wc-message .wc-react { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; }
.wc-message .wc-rx { display: inline-flex !important; align-items: center; gap: 5px; width: auto !important; min-width: 0 !important; height: 28px !important; min-height: 28px !important; padding: 0 9px !important; margin: 0 !important; border: 1px solid rgba(201, 162, 92, .34) !important; border-radius: 999px !important; background: rgba(18, 14, 10, .62) !important; color: #ecdcb4 !important; font: 700 12px/1 inherit; letter-spacing: 0; cursor: pointer; box-shadow: none !important; }
.wc-message .wc-rx img { width: 16px !important; height: 16px !important; max-width: 16px !important; opacity: .6; filter: saturate(.7); transition: opacity .12s, transform .12s; }
.wc-message .wc-rx.has-count img, .wc-message .wc-rx.is-on img, .wc-message .wc-rx:hover img { opacity: 1; filter: none; }
.wc-message .wc-rx:active img { transform: scale(1.25); }
.wc-message .wc-rx.is-on { border-color: #d8b26a !important; background: rgba(216, 178, 106, .2) !important; }
.wc-message .wc-rx b { font-weight: 800; min-width: 8px; text-align: center; }
.wc-message .wc-rx-static { cursor: default; }

::view-transition-group(root) { animation-duration: .4s; }
.wc-message .wc-top { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; margin: 0; border-radius: 999px; background: rgba(216, 178, 106, .18); color: #f1d58f; font: 800 10.5px/1 inherit; letter-spacing: .06em; font-style: normal; }

/* Gilde finden (4.11.) */
.guild-finder { display: grid; gap: 8px; margin-bottom: 12px; }
.guild-finder-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.guild-finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(243, 207, 134, .3); border-radius: 12px; background: rgba(0, 0, 0, .35); cursor: pointer; }
.guild-finder-row b { font: 600 15px/1.2 Cinzel, Georgia, serif; color: #fff3cf; overflow-wrap: anywhere; }
.guild-finder-row small { grid-column: 1; color: #bfae8a; }
.guild-finder-row span { grid-row: 1 / span 2; grid-column: 2; color: #f3cf86; font: 700 11px/1.2 inherit; letter-spacing: .08em; text-align: right; }
.guild-finder-row:hover { border-color: #f3cf86; background: rgba(243, 207, 134, .1); }
