/* Pao 30.10.2026: Menü-Symbole HQ, „Wartet auf dich“, Vote-Kachel, Fund-Werte, Warden-Desk-Scroll */

/* ---- Eigene Symbole statt Ersatz-Kristall ---- */
html body.vey-renewal #morePanel button[data-community-tab="hall"] { --vm-tile: url("./assets/ui/progression-icons-v3/achievements.webp"); }
html body.vey-renewal #morePanel button[data-community-tab="friends"] { --vm-tile: url("./assets/ui/progression-icons-v3/moonblood.webp"); }
html body.vey-renewal #morePanel button[data-community-tab="inbox"] { --vm-tile: url("./assets/ui/icons-v2/hdr-mail.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="worldchat"] { --vm-tile: url("./assets/header-actions-v2/ui/notification-sigil.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="halloffame"] { --vm-tile: url("./assets/ui/progression-icons-v3/crownbreaker.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="feedback"] { --vm-tile: url("./assets/ui/icons-v2/hdr-guide.webp"); }
html body.vey-renewal #morePanel button#moreSettings { --vm-tile: url("./assets/ui/icons-v2/hdr-settings.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="admin"] { --vm-tile: url("./assets/branding-veydris-crest-v2-512.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="staff"] { --vm-tile: url("./assets/ui/ranks-v2/high-warden-sigil.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="tower"] { --vm-tile: url("./assets/ui/progression-icons-v3/ascension.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="liveops"] { --vm-tile: url("./assets/ui/progression-icons-v3/season-cycle.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="bestiary"] { --vm-tile: url("./assets/ui/progression-icons-v3/bestiary.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="codex"] { --vm-tile: url("./assets/ui/progression-icons-v3/daily-oath.webp"); }
html body.vey-renewal #morePanel button[data-shell-view="skirmish"] { --vm-tile: url("./assets/ui/progression-icons-v3/battle-goal.webp"); }
html body.vey-renewal #morePanel button[data-vote-link] { --vm-tile: url("./assets/ui/progression-icons-v3/star-memory.webp"); }
html body.vey-renewal #morePanel section > div > button { background-size: 52px 52px, auto, auto !important; background-position: center 8px, center, center !important; }

/* ---- „Wartet auf dich“: alles mit Zahl ganz oben ---- */
html body.vey-renewal #morePanel > section.menu-attention {
  margin: 4px 12px 6px !important; padding: 8px 10px 12px !important;
  border: 1px solid rgba(232, 196, 128, .45) !important; border-radius: 18px !important;
  background: radial-gradient(420px 160px at 50% 0%, rgba(232, 196, 128, .16), transparent 70%), rgba(20, 17, 12, .55) !important;
  box-shadow: 0 0 24px -10px rgba(232, 196, 128, .55), inset 0 1px 0 rgba(255, 236, 190, .08) !important;
}
html body.vey-renewal #morePanel > section.menu-attention h3 { color: #ffe3a3 !important; }
html body.vey-renewal #morePanel > section.menu-attention .menu-attention__tile {
  border-color: rgba(232, 196, 128, .5) !important;
  animation: vey-attention-glow 2.6s ease-in-out infinite;
}
@keyframes vey-attention-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 0 rgba(232, 196, 128, 0); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 18px -4px rgba(232, 196, 128, .55); }
}
html.reduce-motion body.vey-renewal #morePanel .menu-attention__tile { animation: none; }
html body.vey-renewal #morePanel section > div > button { position: relative !important; }
html body.vey-renewal #morePanel section > div > button > .action-count-badge { position: absolute !important; top: 6px !important; right: 6px !important; }

/* ---- Fund-Fenster: Bild antippen oder VIEW ALL STATS = volle Werte ---- */
html body.vey-renewal .loot-showcase .discovery-art { position: relative; cursor: zoom-in; }
html body.vey-renewal .loot-showcase .discovery-stats-slot { position: absolute; inset: 0; opacity: 0; }
html body.vey-renewal .loot-showcase .discovery-stats-slot .item-slot { width: 100% !important; height: 100% !important; min-height: 0 !important; }
html body.vey-renewal .loot-showcase footer { flex-wrap: wrap; gap: 8px; }
html body.vey-renewal .loot-showcase .discovery-stats { min-height: 44px; }
html body.vey-renewal #gameTooltip { z-index: 2147483000 !important; }

/* ---- Warden Desk + Administration am PC/Tablet: Seite war auf Fensterhöhe abgeschnitten (overflow:hidden) ---- */
html body.vey-renewal:is([data-view="staff"], [data-view="admin"]) #view > .content {
  height: auto !important; min-height: 100% !important; overflow: visible !important;
}

/* ---- Vote-Karte bei den Tageszielen ---- */
html body.vey-renewal #view .vote-card {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
  margin: 0 0 14px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(232, 196, 128, .45);
  background: radial-gradient(360px 120px at 0% 50%, rgba(120, 160, 255, .14), transparent 70%), linear-gradient(180deg, rgba(28, 30, 44, .92), rgba(14, 15, 22, .96));
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 10px 26px -18px rgba(232, 196, 128, .6);
}
html body.vey-renewal #view .vote-card img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
html body.vey-renewal #view .vote-card small { display: block; font-size: 10px; letter-spacing: .16em; font-weight: 800; color: #e8c480; }
html body.vey-renewal #view .vote-card b { display: block; font-family: var(--vm-display, serif); font-size: 18px; color: #fff1cf; margin: 2px 0; }
html body.vey-renewal #view .vote-card span { display: block; font-size: 13px; line-height: 1.35; color: #cfc6b4; }
html body.vey-renewal #view .vote-card button { min-height: 44px; white-space: nowrap; }
html body.vey-renewal #view .vote-card.is-done { border-color: rgba(232, 196, 128, .2); box-shadow: none; }
html body.vey-renewal #view .vote-card.is-done img { opacity: .7; }
@media (max-width: 640px) {
  html body.vey-renewal #view .vote-card { grid-template-columns: 52px 1fr; }
  html body.vey-renewal #view .vote-card img { width: 52px; height: 52px; }
  html body.vey-renewal #view .vote-card button { grid-column: 1 / -1; width: 100%; }
}

/* ---- Versteckte Kacheln (Administration/Warden Desk für normale Spieler) wirklich verstecken ---- */
html body.vey-renewal #morePanel section > div > button.hidden,
html body.vey-renewal #morePanel section > div > button[hidden] { display: none !important; }
/* zweizeilige Namen nicht über das Bild schieben */
html body.vey-renewal #morePanel section > div > button { min-height: 108px !important; padding-top: 66px !important; justify-content: flex-start !important; }

/* ---- Einmaliges Musik-Angebot ---- */
html body.vey-renewal .ethereal-offer {
  position: fixed; z-index: 9000; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px)); display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 18px; border: 1px solid rgba(232, 196, 128, .5);
  background: radial-gradient(300px 120px at 0% 50%, rgba(150, 120, 255, .18), transparent 70%), linear-gradient(180deg, #1a1828, #0c0c14) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -12px #000, 0 0 30px -14px rgba(232, 196, 128, .7);
  animation: vey-ether-in .45s ease-out both;
}
html body.vey-renewal .ethereal-offer.is-leaving { opacity: 0; transform: translateX(-50%) translateY(12px); transition: .3s; }
html body.vey-renewal .ethereal-offer img { width: 48px; height: 48px; object-fit: contain; }
html body.vey-renewal .ethereal-offer small { display: block; font-size: 10px; letter-spacing: .14em; font-weight: 800; color: #e8c480; }
html body.vey-renewal .ethereal-offer b { display: block; font-size: 16px; color: #fff1cf; margin: 2px 0; }
html body.vey-renewal .ethereal-offer span { display: block; font-size: 12.5px; line-height: 1.3; color: #cfc6b4; }
html body.vey-renewal .ethereal-offer .button { min-height: 44px; white-space: nowrap; }
html body.vey-renewal .ethereal-offer__no { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(232, 196, 128, .35); background: rgba(255, 255, 255, .04); color: #e8c480; font-size: 18px; line-height: 1; }
@media (max-width: 520px) {
  html body.vey-renewal .ethereal-offer { grid-template-columns: 40px 1fr 36px; }
  html body.vey-renewal .ethereal-offer img { width: 40px; height: 40px; }
  html body.vey-renewal .ethereal-offer .button { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}
@media (min-width: 900px) { html body.vey-renewal .ethereal-offer { bottom: 28px; } }
@keyframes vey-ether-in { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%); } }
html.reduce-motion body.vey-renewal .ethereal-offer { animation: none; }
