 :root {
      --gold:#d99024; --gold-bright:#ffb13b; --gold-dark:#6b3d12;
      --text:#e7c58f; --muted:#9a7a51; --line:rgba(255,181,62,.35);
      --red:#b91622; --slot:#0b0b0b; --slot-line:#3a332c;
    }
    *{box-sizing:border-box}
    body{
      margin:0; min-height:100vh; padding:14px 14px 78px;
      background:radial-gradient(circle at 50% 8%,rgba(156,99,24,.22),transparent 34rem),linear-gradient(#050505,#0b0805 45%,#030303);
      color:var(--text); font-family:Georgia,"Times New Roman",serif; display:grid; place-items:center;
    }
    .game-card{
      width:min(920px,100%); background:#050403; border:3px solid #2f2113;
      box-shadow:0 0 0 1px #92611f,0 0 28px rgba(0,0,0,.9),inset 0 0 36px rgba(255,160,45,.08);
      overflow:hidden;
    }

    .zone-header{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid rgba(255,181,62,.22)}
    .zone-kicker{text-align:center;color:#b49161;font:bold 11px "Courier New",monospace;letter-spacing:.16em;text-transform:uppercase;margin:0 0 4px;text-shadow:0 2px 0 #000}
    .zone-title{text-align:center;letter-spacing:.13em;color:var(--gold-bright);text-transform:uppercase;font-size:clamp(20px,3.4vw,34px);margin:0 0 10px;text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.45)}
    .zone-banner-wrap{margin:0 0 10px;aspect-ratio:1687/932;height:auto;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;background:#050403;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),0 8px 18px rgba(0,0,0,.48);overflow:hidden}
    .zone-banner{width:100%;height:100%;display:block;object-fit:cover;object-position:center center;background:#050403}
    .zone-flavor{margin:0 auto;max-width:760px;text-align:center;color:#c6a06f;font:13px/1.45 "Courier New",monospace;text-shadow:0 1px 0 #000}
    .actions{padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.78),rgba(7,6,5,.95)),repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 5px)}
    .section-title{text-align:center;letter-spacing:.12em;color:var(--gold-bright);text-transform:uppercase;font-size:clamp(15px,2.4vw,22px);margin:0 0 10px;text-shadow:0 2px 0 #000,0 0 12px rgba(255,157,42,.45)}
    .skill-grid{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
    .skill{
      position:relative;min-height:0;padding:10px 11px 11px;border:2px solid #6f5535;
      background:
        radial-gradient(circle at 14% 18%,rgba(255,191,92,.12),transparent 30%),
        linear-gradient(135deg,rgba(255,213,132,.07),transparent 24%,rgba(0,0,0,.18) 62%,rgba(255,190,95,.045)),
        linear-gradient(145deg,#201913,#100d0b 58%,#070605);
      box-shadow:
        inset 0 0 0 1px rgba(255,215,139,.18),
        inset 0 0 0 4px rgba(6,5,4,.72),
        inset 0 0 22px rgba(255,150,39,.055),
        0 6px 14px rgba(0,0,0,.38);
      outline:1px solid rgba(213,151,73,.35);
      outline-offset:-5px;
    }
    .skill.active{border-color:#c18a42;box-shadow:inset 0 0 0 1px rgba(255,221,145,.26),inset 0 0 0 4px rgba(8,6,4,.76),inset 0 0 24px rgba(255,156,44,.075),0 0 18px rgba(255,145,37,.16),0 6px 14px rgba(0,0,0,.38)}
    .skill::before,.skill::after{content:none}
    .skill-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
    .name{display:flex;align-items:center;gap:7px;font-size:clamp(16px,2.1vw,21px);color:#f5d59b;font-weight:700;text-shadow:0 2px 0 #000;line-height:1}
    .icon{width:30px;height:30px;display:grid;place-items:center;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);border:1px solid #8f744c;box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 10px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);font-size:19px;flex:0 0 auto}
    .level{color:var(--gold-bright);font-family:"Courier New",monospace;font-size:13px;text-align:right;white-space:nowrap}
    .inventory{display:none}
    .bar-label{display:flex;justify-content:space-between;gap:8px;margin:5px 0 3px;color:#b49161;font-family:"Courier New",monospace;font-size:11px;line-height:1}
    .progress-shell{height:12px;border:1px solid #3b3027;background:linear-gradient(#0e0c09,#17120c);box-shadow:inset 0 2px 6px rgba(0,0,0,.85),0 0 0 1px rgba(255,177,59,.09);overflow:hidden;position:relative}
    .progress{height:100%;width:0%;background:linear-gradient(90deg,rgba(255,255,255,.12),transparent 18%),linear-gradient(90deg,#6b3d12,#d99024,#ffb13b);box-shadow:0 0 12px rgba(255,154,42,.45);transition:width .08s linear}
    .xp-progress{height:100%;width:0%;background:linear-gradient(90deg,rgba(255,255,255,.10),transparent 18%),linear-gradient(90deg,#2f4020,#78924a,#c5d77b);box-shadow:0 0 10px rgba(155,205,96,.35);transition:width .25s ease}
    .button{width:100%;margin-top:8px;padding:7px 8px;border:2px solid #8a622f;background:linear-gradient(180deg,#e0a044 0%,#b36b25 46%,#6e3a14 100%);color:#180d05;font-weight:900;font-size:14px;font-family:Georgia,"Times New Roman",serif;cursor:pointer;box-shadow:inset 0 1px rgba(255,231,160,.34),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 0 1px rgba(255,186,76,.12);line-height:1;text-shadow:0 1px rgba(255,217,139,.22)}
    .button.stop{background:linear-gradient(180deg,#756756 0%,#4b3f35 48%,#221b16 100%);color:#f2d3a1;border-color:#9f7a4a;box-shadow:inset 0 1px rgba(255,235,185,.14),inset 0 -4px 8px rgba(0,0,0,.30),0 3px 0 #19120d,0 0 0 1px rgba(255,220,160,.08)}
    .log{margin-top:10px;padding:8px 10px;border:1px solid #3b2a18;background:rgba(0,0,0,.28);color:#c6a06f;font-family:"Courier New",monospace;min-height:32px;font-size:11px}
    .combat-report{margin-top:10px;padding:10px 11px;border:2px solid #5f4a31;outline:1px solid rgba(213,151,73,.28);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,rgba(28,22,17,.96),rgba(8,7,6,.98));box-shadow:inset 0 0 0 1px rgba(255,220,160,.08),0 8px 20px rgba(0,0,0,.25)}
    .combat-report h3{margin:0 0 7px;color:#f5d59b;font-size:15px;text-shadow:0 2px #000;letter-spacing:.06em}.combat-report p{margin:0;color:#c6a06f;font:12px/1.45 "Courier New",monospace}.combat-report strong{color:#ffb13b}

    .village{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
    .village.active-view{display:block}
    .actions.hidden-view{display:none}
    .village-panel{
      border:2px solid #6f5535;
      outline:1px solid rgba(213,151,73,.35);
      outline-offset:-5px;
      padding:13px 14px;
      background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
      box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38);
    }
    .village-title{margin:0 0 8px;color:#f5d59b;font-size:20px;text-shadow:0 2px 0 #000;letter-spacing:.04em}
    .village-copy{margin:0;color:#c6a06f;font-family:"Courier New",monospace;font-size:13px;line-height:1.35}
    .nav-label{display:block;font:bold 9px Arial,sans-serif;letter-spacing:.04em;margin-top:1px;color:#bda47d;text-transform:uppercase;line-height:1}


    .area-placeholder{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
    .area-placeholder.active-view{display:block}
    .placeholder-panel{border:2px solid #5f4a31;outline:1px solid rgba(213,151,73,.28);outline-offset:-5px;padding:16px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,rgba(28,22,17,.96),rgba(8,7,6,.98));box-shadow:inset 0 0 0 1px rgba(255,220,160,.08),0 8px 20px rgba(0,0,0,.35)}
    .placeholder-panel h2{margin:0 0 8px;color:#f4d69c;text-shadow:0 2px #000;letter-spacing:.08em}.placeholder-panel p{margin:0;color:#c6a06f;font-family:"Courier New",monospace;font-size:13px;line-height:1.4}
    .zone-header.hidden-view{display:none}
    .bottom-nav{gap:6px;padding:0 8px;justify-content:space-between;background:linear-gradient(#14120f,#070707);border-top:2px solid #4e3820;box-shadow:0 -10px 30px rgba(0,0,0,.65),inset 0 1px rgba(255,202,112,.09)}
    .nav-btn{width:18.5%;max-width:82px;height:56px;border:2px solid #4f3820;background:radial-gradient(circle at 50% 18%,rgba(255,188,84,.11),transparent 42%),linear-gradient(#16120d,#070605);box-shadow:inset 0 0 0 1px rgba(255,203,121,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 0 1px #090604;color:#d8c39e;font-size:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}
    .nav-btn.active{border-color:#b37a2a;color:var(--gold-bright);box-shadow:0 0 14px rgba(255,145,37,.25),inset 0 0 0 1px rgba(255,222,150,.22),inset 0 -6px 12px rgba(0,0,0,.46)}
    .nav-label{font:bold 8px "Courier New",monospace;letter-spacing:.02em;margin-top:0;color:#c4aa80;text-transform:uppercase;line-height:1;text-shadow:0 1px #000}
    .pixel-icon{width:25px;height:25px;image-rendering:pixelated;shape-rendering:crispEdges;filter:drop-shadow(0 1px 0 #000)}
    .pixel-icon .dark{fill:#12100d}.pixel-icon .gold{fill:#c88a35}.pixel-icon .lite{fill:#e7c58f}.pixel-icon .steel{fill:#7d766b}.pixel-icon .red{fill:#8d2d23}.pixel-icon .violet{fill:#8d62c7}.pixel-icon .green{fill:#83a75a}
    @media(max-width:860px){.bottom-nav{height:66px}.nav-btn{height:52px}.pixel-icon{width:23px;height:23px}.nav-label{font-size:7px}}

    .smith-view{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
    .smith-view.active-view{display:block}
    .smith-hero{width:100%;height:auto;display:block;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),0 8px 18px rgba(0,0,0,.48);margin-bottom:10px}

    .church-hero{width:100%;height:auto;display:block;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),0 8px 18px rgba(0,0,0,.48);margin:0 0 10px;background:#050403}
    @media(max-width:860px){.church-hero{margin-bottom:8px}}
    .village-grid{display:grid;gap:9px}
    .village-entry{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:9px 10px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
    .village-entry-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid #8f744c;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);font-size:20px}
    .village-entry h3{margin:0;color:#f5d59b;font-size:16px;text-shadow:0 2px 0 #000}.village-entry p{margin:2px 0 0;color:#b49161;font:11px/1.25 "Courier New",monospace}.small-button{width:auto;min-width:86px;margin:0;padding:7px 10px;font-size:12px}
    .craft-grid{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
    .craft{position:relative;min-height:0;padding:10px 11px 11px;border:2px solid #6f5535;background:radial-gradient(circle at 14% 18%,rgba(255,191,92,.12),transparent 30%),linear-gradient(135deg,rgba(255,213,132,.07),transparent 24%,rgba(0,0,0,.18) 62%,rgba(255,190,95,.045)),linear-gradient(145deg,#201913,#100d0b 58%,#070605);box-shadow:inset 0 0 0 1px rgba(255,215,139,.18),inset 0 0 0 4px rgba(6,5,4,.72),inset 0 0 22px rgba(255,150,39,.055),0 6px 14px rgba(0,0,0,.38);outline:1px solid rgba(213,151,73,.35);outline-offset:-5px}
    .craft.active{border-color:#c18a42;box-shadow:inset 0 0 0 1px rgba(255,221,145,.26),inset 0 0 0 4px rgba(8,6,4,.76),inset 0 0 24px rgba(255,156,44,.075),0 0 18px rgba(255,145,37,.16),0 6px 14px rgba(0,0,0,.38)}
    .craft-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.cost{color:#d2ae75;font:11px "Courier New",monospace;white-space:nowrap}.smith-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}.back-button{width:auto;margin:0;padding:7px 11px;font-size:12px}
    @media(max-width:860px){.smith-view{padding:9px 10px 10px}.craft-grid{grid-template-columns:1fr;gap:7px}.craft{padding:8px 10px}.smith-hero{margin-bottom:8px}.village-entry{grid-template-columns:34px 1fr auto;padding:8px 9px}.small-button{min-width:74px;padding:6px 8px;font-size:11px}}

    .bottom-nav{
      position:fixed;
      left:50%;
      transform:translateX(-50%);
      width:min(860px,100%);
      bottom:0;
      height:68px;
      z-index:10;
      background:linear-gradient(#181a1f,#0b0d11);
      border-top:2px solid #30291f;
      display:flex;
      justify-content:center;
      align-items:center;
      gap:12px;
      padding:0 14px;
      box-shadow:0 -10px 30px rgba(0,0,0,.55);
    }
    .nav-btn{
      width:50px;height:50px;border:1px solid #3f3a34;background:linear-gradient(#191816,#090909);
      color:#d8c39e;font-size:23px;cursor:pointer;position:relative;display:grid;place-items:center;align-content:center;
      box-shadow:inset 0 0 0 2px #050505,0 0 12px rgba(255,177,59,.08);
    }
    .nav-btn.active{border-color:#a46b24;color:var(--gold-bright);box-shadow:0 0 16px rgba(255,145,37,.28),inset 0 0 0 2px #050505}
    .nav-btn.prayer-locked{opacity:.45;filter:grayscale(.45);cursor:not-allowed}
    [data-church-section].prayer-locked{opacity:.45;filter:grayscale(.45);cursor:not-allowed}
    .badge{position:absolute;right:-6px;top:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:50%;background:var(--red);color:#fff;font:bold 13px Arial;display:grid;place-items:center;border:2px solid #210508}

    .slots{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#151515;border:3px solid #39332e;padding:8px}
    .slot{aspect-ratio:1;background:radial-gradient(circle at 35% 25%,#171717,#050505);border:2px solid var(--slot-line);display:grid;place-items:center;position:relative;box-shadow:inset 0 0 10px rgba(0,0,0,.9);font-size:34px}
    .slot.empty::after{content:"";width:60%;height:60%;border:1px dashed rgba(255,255,255,.06)}
    .qty{position:absolute;right:4px;bottom:2px;color:#fff;font:bold 15px "Courier New",monospace;text-shadow:2px 2px 0 #000}
    .item-name{margin:12px 0 0;text-align:center;color:#c6a06f;font-family:"Courier New",monospace}
    .pulse{animation:pulse .45s ease}
    @keyframes pulse{0%{transform:scale(1.02);filter:brightness(1)}45%{transform:scale(1.08);filter:brightness(1.45)}100%{transform:scale(1.02);filter:brightness(1)}}
    @media(max-width:860px){
      .combat-report{margin-top:7px;padding:8px 9px}.combat-report h3{font-size:13px}.combat-report p{font-size:11px}
      body{padding:0 0 70px;place-items:start center}
      .game-card{border-width:0;min-height:calc(100vh - 70px)}
      .actions{padding:9px 10px 10px}
      .section-title{font-size:14px;margin-bottom:7px}
      .skill-grid{grid-template-columns:1fr;gap:7px}
      .skill{padding:8px 10px;display:grid;grid-template-columns:1fr;gap:0}
      .skill-head{margin-bottom:4px}
      .name{font-size:16px}.icon{width:27px;height:27px;font-size:17px}.level{font-size:12px}
      .bar-label{font-size:10px;margin:4px 0 2px}.progress-shell{height:10px}.button{margin-top:6px;padding:6px 8px;font-size:13px}
      .log{margin-top:7px;min-height:28px;padding:6px 8px;font-size:11px}
      .village{padding:9px 10px 10px}.village-panel{padding:11px 12px}.village-title{font-size:18px}.village-copy{font-size:12px}
      .bottom-nav{height:62px}.nav-btn{width:46px;height:46px;font-size:20px}.nav-label{font-size:8px}
    }
    @media(max-height:690px) and (max-width:860px){
      .actions{padding-top:7px}.section-title{display:none}.skill-grid{gap:6px}
      .skill{padding:7px 9px}.bar-label{margin:3px 0 2px}.progress-shell{height:9px}.button{padding:5px 8px;margin-top:5px}.log{display:none}.village{padding-top:7px}
    }

    .bottom-nav.forest-mode{justify-content:center;gap:10px}
    .bottom-nav.forest-mode .village-only{display:none}
    .bottom-nav.village-mode .forest-only{display:none}
    .bottom-nav.village-mode{justify-content:space-between;gap:6px;padding:0 8px}
    .bottom-nav.village-mode .nav-btn{width:15.5%;max-width:74px;font-size:0}
    .bottom-nav.forest-mode .forest-only{width:min(180px,58vw);max-width:180px}
    @media(max-width:860px){.bottom-nav.village-mode .nav-btn{width:11.6%;height:50px}.bottom-nav.forest-mode .forest-only{width:min(140px,50vw)}}
    .tier-global{font-size:0}.tier-nav-rank{color:var(--gold-bright);font:bold 10px "Courier New",monospace;line-height:1}.tier-nav-icon{font-size:18px;line-height:1}.tier-global .nav-label{font-size:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .bottom-nav.forest-mode .tier-global{width:min(92px,30vw);max-width:92px}



    .profession-panel,.alchemy-panel,.smithing-panel{margin-bottom:10px;padding:11px 12px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 38%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
    .profession-meta,.alchemy-meta,.smithing-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px;color:#f5d59b;text-shadow:0 2px 0 #000}
    .profession-meta strong,.alchemy-meta strong,.smithing-meta strong{font-size:16px}
    .profession-meta span,.alchemy-meta span,.smithing-meta span{color:var(--gold-bright);font:12px "Courier New",monospace;white-space:nowrap}
    .potion-note{margin:0 0 10px;color:#b49161;font:12px/1.35 "Courier New",monospace}

    .recipe-xp{color:var(--gold-bright);font-weight:900;text-shadow:0 1px 0 #000;white-space:nowrap;font:12px "Courier New",monospace;border:1px solid rgba(255,181,62,.35);padding:3px 6px;background:rgba(0,0,0,.22);box-shadow:inset 0 0 8px rgba(255,177,59,.08)}
    .profession-panel.faith-panel{margin-bottom:10px;padding:11px 12px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 38%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
    .profession-panel.faith-panel .profession-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px;color:#f5d59b;text-shadow:0 2px 0 #000;font-family:inherit;font-size:inherit}
    .profession-panel.faith-panel .profession-meta strong{font-size:16px}.profession-panel.faith-panel .profession-meta span{color:var(--gold-bright);font:12px "Courier New",monospace;white-space:nowrap}
    .blessing-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:7px 0 8px;color:#c6a06f;font:11px/1.25 "Courier New",monospace}
    .blessing-times span{border:1px solid rgba(255,181,62,.18);background:rgba(0,0,0,.18);padding:5px 6px}
    .prayer-progress-row{margin-top:7px}
    .prayer-progress-row .bar-label{margin:0 0 3px}
    .prayer-progress-row .progress-shell{height:10px}
    @media(max-width:860px){.profession-panel,.alchemy-panel,.smithing-panel{padding:9px 10px}.profession-meta strong,.alchemy-meta strong,.smithing-meta strong{font-size:15px}.potion-note{font-size:11px}}

    .inventory-view{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
    .inventory-view.active-view{display:block}
    .inventory-panel{border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:13px 14px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)}
    .inventory-title{margin:0 0 10px;color:#f5d59b;font-size:20px;text-shadow:0 2px 0 #000;letter-spacing:.06em;text-transform:uppercase}
    .inventory-subtitle{margin:13px 0 7px;color:var(--gold-bright);font:bold 12px "Courier New",monospace;letter-spacing:.08em;text-transform:uppercase}
    .equipment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
    .backpack-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:#151515;border:3px solid #39332e;padding:8px}
    .equip-slot,.pack-slot{min-height:70px;background:radial-gradient(circle at 35% 25%,#171717,#050505);border:2px solid var(--slot-line);display:grid;place-items:center;position:relative;box-shadow:inset 0 0 10px rgba(0,0,0,.9);font-size:28px;color:#d8c39e}
    .equip-slot{border-color:#5d462b;outline:1px solid rgba(213,151,73,.20);outline-offset:-5px}
    .slot-label{position:absolute;left:4px;right:4px;bottom:4px;text-align:center;color:#9a7a51;font:bold 9px "Courier New",monospace;text-transform:uppercase;letter-spacing:.04em;line-height:1.05}
    .slot-qty{position:absolute;right:5px;top:4px;color:#fff;font:bold 14px "Courier New",monospace;text-shadow:2px 2px 0 #000}
    .pack-slot.empty::after,.equip-slot.empty::after{content:"";width:46%;height:46%;border:1px dashed rgba(255,255,255,.08)}
    .inventory-summary{margin:10px 0 0;text-align:center;color:#c6a06f;font-family:"Courier New",monospace;font-size:12px}
    .bottom-nav.village-mode .nav-btn{width:11.6%;max-width:62px}
    @media(max-width:860px){.inventory-view{padding:9px 10px 10px}.equipment-grid{grid-template-columns:repeat(4,1fr);gap:6px}.equip-slot,.pack-slot{min-height:58px;font-size:22px}.slot-label{font-size:7px}.backpack-grid{gap:5px}.bottom-nav.village-mode .nav-btn{width:11.6%;height:50px}}



    .faith-panel,.tavern-panel{border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:12px 14px;margin-bottom:10px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)}
    .faith-meta,.tavern-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#f5d59b;font-family:"Courier New",monospace;font-size:12px;margin-bottom:7px}
    .buff-note,.tavern-note{margin:0 0 10px;color:#c6a06f;font:12px/1.35 "Courier New",monospace}
    .effect{color:#d2ae75;font:11px "Courier New",monospace;white-space:nowrap;text-align:right}
    .tab-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(255,181,62,.28);box-shadow:0 1px 0 rgba(0,0,0,.55)}
    .tab-btn{margin:0;padding:12px 8px;min-height:44px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;border-width:2px;box-shadow:inset 0 1px rgba(255,235,185,.22),inset 0 -5px 10px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 0 1px rgba(255,186,76,.12)}.tab-btn.active{filter:brightness(1.2);border-color:#c18a42;box-shadow:0 0 12px rgba(255,145,37,.18),inset 0 1px rgba(255,235,185,.25),inset 0 -5px 10px rgba(0,0,0,.36),0 3px 0 #3b210d}
    .tavern-tab{display:none}.tavern-tab.active{display:block}
    .quest-state{color:#83a75a;font:11px "Courier New",monospace;white-space:nowrap}
    .craft.wanted{border-color:#8d2d23;outline-color:rgba(185,22,34,.55);background:radial-gradient(circle at 16% 14%,rgba(185,22,34,.18),transparent 34%),linear-gradient(145deg,#24110f,#0b0808 70%,#050303);box-shadow:inset 0 0 0 1px rgba(255,160,130,.14),inset 0 0 0 4px rgba(8,4,4,.72),0 0 18px rgba(185,22,34,.18),0 6px 14px rgba(0,0,0,.38)}
    .craft.wanted .name{color:#ffd0bd}.craft.wanted .quest-state{color:#ff7d70}.wanted-label{display:inline-block;margin:0 0 6px;padding:2px 7px;border:1px solid rgba(185,22,34,.75);color:#ff8d7f;background:rgba(80,8,8,.35);font:bold 10px "Courier New",monospace;letter-spacing:.12em;text-transform:uppercase}
    @media(max-width:860px){.faith-panel,.tavern-panel{padding:10px 11px}.faith-meta,.tavern-meta{font-size:11px}.tab-row{gap:5px}.tab-btn{font-size:12px;padding:10px 5px;min-height:40px}.effect{font-size:10px}.craft-head{align-items:flex-start}}


    .tier-note{margin:0 0 10px;color:#b49161;font:12px/1.35 "Courier New",monospace}
    .recipe-meta{margin:0 0 7px;color:#b49161;font:11px/1.25 "Courier New",monospace}
    .tier-header{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 8px}
    .top-actions{display:flex;align-items:center;gap:7px}
    .tier-square{width:46px;height:46px;margin:0;padding:0;border:2px solid #6f5535;background:radial-gradient(circle at 50% 20%,rgba(255,188,84,.15),transparent 45%),linear-gradient(#19140f,#080706);color:var(--gold-bright);font:bold 12px "Courier New",monospace;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 12px rgba(255,145,37,.12);clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px)}
    .tier-square small{font-size:16px;line-height:1}.tier-square:hover{border-color:#b37a2a;filter:brightness(1.12)}

    .character-modal{position:fixed;inset:0;z-index:60;display:none;place-items:center;background:radial-gradient(circle at 50% 10%,rgba(120,74,22,.35),transparent 34rem),rgba(0,0,0,.86);padding:18px}.character-modal.open{display:grid}
    .character-popover{width:min(760px,96vw);background:#070707;border:4px solid #2f2a25;box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88);padding:18px}
    .character-popover h1{text-align:center;margin:0 0 6px;color:#e8d2b0;text-transform:uppercase;letter-spacing:.09em;font:bold clamp(22px,4vw,34px) "Courier New",monospace;text-shadow:3px 3px 0 #000}
    .character-popover p{margin:0 0 13px;text-align:center;color:#c6a06f;font:12px/1.35 "Courier New",monospace}
    .name-row{display:grid;grid-template-columns:1fr;gap:6px;margin:0 auto 13px;max-width:360px}.name-row label{color:var(--gold-bright);font:bold 10px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em}.name-row input{width:100%;padding:10px 11px;background:#0a0908;border:2px solid #5d462b;color:#f5d59b;font:15px Georgia,"Times New Roman",serif;outline:none;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12)}
    .race-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.race-card{padding:13px 12px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);color:#f5d59b;text-align:center;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}.race-card:hover{border-color:#b37a2a;filter:brightness(1.12)}
    .race-icon{height:190px;margin:0 0 8px;display:flex;align-items:end;justify-content:center;background:radial-gradient(ellipse at 50% 72%,rgba(255,177,59,.14),transparent 58%);overflow:hidden}.race-icon img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(0,0,0,.65))}.race-card h2{margin:0 0 7px;color:#f5d59b;font-size:20px;text-shadow:0 2px #000}.race-card ul{margin:0;padding:0;list-style:none;color:#c6a06f;font:12px/1.45 "Courier New",monospace}.race-card .button{margin-top:11px}
    .character-card{display:grid;grid-template-columns:112px 1fr;gap:12px;align-items:center;margin:0 0 12px;padding:11px 12px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.09),transparent 38%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
    .character-avatar{width:100px;height:130px;display:grid;place-items:end center;border:1px solid #8f744c;background:radial-gradient(ellipse at 50% 78%,rgba(255,177,59,.14),transparent 62%),linear-gradient(#0d0b09,#050403);font-size:27px;box-shadow:inset 0 0 0 2px rgba(0,0,0,.42);overflow:hidden}.character-avatar img{max-width:100%;max-height:124px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.72))}.character-name{color:#f5d59b;font-size:17px;text-shadow:0 2px #000}.character-details{margin-top:3px;color:#b49161;font:11px/1.35 "Courier New",monospace}.character-bonus{margin-top:3px;color:var(--gold-bright);font:11px/1.35 "Courier New",monospace}
    @media(max-width:860px){.race-grid{grid-template-columns:1fr;gap:8px}.character-popover{padding:15px}.race-icon{height:150px}.race-card h2{font-size:18px}.character-card{grid-template-columns:86px 1fr}.character-avatar{width:78px;height:104px;font-size:23px}.character-avatar img{max-height:100px}}

    .tier-modal{position:fixed;inset:0;z-index:30;display:none;place-items:center;background:rgba(0,0,0,.72);padding:18px}.tier-modal.open{display:grid}
    .tier-popover{width:min(420px,94vw);position:relative;background:#070707;border:4px solid #2f2a25;box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 22px 60px rgba(0,0,0,.8);padding:16px}
    .tier-popover h3{text-align:center;margin:0 0 12px;color:#e8d2b0;text-transform:uppercase;letter-spacing:.08em;font:bold 18px "Courier New",monospace;text-shadow:2px 2px 0 #000}

    .tier-close{position:absolute;right:-14px;top:-14px;}
    .tier-list{display:grid;gap:7px}.tier-option{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;width:100%;padding:8px 10px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.22);outline-offset:-5px;background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);color:#f5d59b;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.10)}
    .tier-option.active{border-color:#b37a2a;box-shadow:0 0 14px rgba(255,145,37,.22),inset 0 0 0 1px rgba(255,222,150,.18)}
    .tier-icon{font-size:21px}.tier-name{font:bold 13px Georgia,"Times New Roman",serif;text-shadow:0 2px #000}.tier-sub{display:block;color:#b49161;font:10px/1.25 "Courier New",monospace;margin-top:2px}.tier-rank{color:var(--gold-bright);font:bold 11px "Courier New",monospace}
    @media(max-width:860px){.tier-note{font-size:11px}.tier-square{width:42px;height:42px}.tier-square small{font-size:15px}.tier-popover{padding:14px}.tier-option{grid-template-columns:31px 1fr auto;padding:8px 9px}}


    body.theme-gold{--gold:#d99024;--gold-bright:#ffb13b;--gold-dark:#6b3d12;--text:#e7c58f;--muted:#9a7a51;--line:rgba(255,181,62,.35);--slot-line:#3a332c}
    body.theme-emerald{--gold:#4d9f63;--gold-bright:#8ee6a2;--gold-dark:#1c4d2d;--text:#d7f2d4;--muted:#83aa7b;--line:rgba(142,230,162,.35);--slot-line:#274732}
    body.theme-ruby{--gold:#b7443c;--gold-bright:#ff7b67;--gold-dark:#5b1717;--text:#f1c6b8;--muted:#b37a68;--line:rgba(255,123,103,.35);--slot-line:#4b2824}
    body.theme-moon{--gold:#6f83bd;--gold-bright:#b8c9ff;--gold-dark:#28345d;--text:#dce5ff;--muted:#8a98c0;--line:rgba(184,201,255,.35);--slot-line:#30384f}
    body.theme-mithril{--gold:#9fa8a9;--gold-bright:#e7f6f7;--gold-dark:#455052;--text:#d9eeee;--muted:#8ca0a1;--line:rgba(231,246,247,.32);--slot-line:#394548}
    body.theme-amethyst{--gold:#9770bc;--gold-bright:#d6a5f0;--gold-dark:#49305d;--text:#ecdafa;--muted:#a48bb7;--line:rgba(214,165,240,.35);--slot-line:#45334e}
    body.theme-ocean{--gold:#368baa;--gold-bright:#8cdbeb;--gold-dark:#1d445b;--text:#d6f1f5;--muted:#7baab4;--line:rgba(140,219,235,.35);--slot-line:#294650}
    body.theme-obsidian{--gold:#79718d;--gold-bright:#c9c1e1;--gold-dark:#373243;--text:#e4deee;--muted:#958a9f;--line:rgba(201,193,225,.35);--slot-line:#393541}
    body.font-classic{font-family:Georgia,"Times New Roman",serif}
    body.font-clean{font-family:Verdana,Geneva,sans-serif}
    body.font-scroll{font-family:"Palatino Linotype",Palatino,serif}
    body.font-rune{font-family:"Courier New",monospace}
    .options-view{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
    .options-view.active-view{display:block}
    .options-panel{border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:13px 14px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)}
    .options-grid{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}
    .option-card{padding:10px 11px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
    .option-card h3{margin:0 0 7px;color:#f5d59b;font-size:15px;text-shadow:0 2px #000}.option-card p{margin:0 0 8px;color:#b49161;font:11px/1.35 "Courier New",monospace}
    .option-row{display:flex;flex-wrap:wrap;gap:6px}.mini-choice{width:auto;margin:0;padding:7px 9px;font-size:11px}.mini-choice.active{filter:brightness(1.22);border-color:var(--gold-bright);box-shadow:0 0 12px rgba(255,177,59,.2)}
    .danger-button{background:linear-gradient(180deg,#8f3131 0%,#612020 48%,#2a0d0d 100%);color:#f6d4d0;border-color:#b96b5f}
    @media(max-width:860px){.options-view{padding:9px 10px 10px}.options-grid{grid-template-columns:1fr;gap:7px}.bottom-nav.village-mode .nav-btn{width:10.2%;height:48px}.bottom-nav.village-mode{gap:4px;padding:0 5px}.bottom-nav.forest-mode{gap:min(4vw,24px)}}


    .locked-action{opacity:.62;filter:saturate(.65)}
    .locked-action .button,
    .locked-action .button:disabled{cursor:not-allowed;background:linear-gradient(180deg,#5b5146 0%,#3b342d 48%,#191512 100%);color:#a9916d;border-color:#6a5740;box-shadow:inset 0 1px rgba(255,235,185,.08),inset 0 -4px 8px rgba(0,0,0,.30),0 3px 0 #15100d}


    /* V41: Charakterauswahl-Fix: zentrierte, kleinere Figuren + sauberes Scrollen */
    .character-modal{overflow-y:auto;align-items:center;justify-content:center;place-items:start center}
    .character-modal.open{display:grid}
    .character-popover{margin:18px auto;max-height:none;width:min(820px,96vw)}
    .race-grid{align-items:stretch}
    .race-card{display:flex;flex-direction:column;justify-content:space-between;min-height:0}
    .race-icon{
      height:176px;
      margin:0 0 8px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:radial-gradient(ellipse at 50% 72%,rgba(255,177,59,.14),transparent 58%);
      overflow:hidden;
    }
    .race-icon img{
      display:block;
      max-width:85%;
      max-height:85%;
      width:auto;
      height:auto;
      object-fit:contain;
      object-position:center center;
      margin:auto;
      transform:none;
      filter:drop-shadow(0 10px 10px rgba(0,0,0,.65));
    }
    .character-avatar{align-items:center;justify-items:center;place-items:center}
    .character-avatar img{display:block;max-width:88%;max-height:88%;object-fit:contain;object-position:center center;margin:auto}
    @media(max-width:860px){
      .character-modal{padding:10px}
      .character-popover{margin:10px auto;width:min(520px,96vw)}
      .race-grid{grid-template-columns:1fr;gap:8px}
      .race-icon{height:168px;align-items:center;justify-content:center}
      .race-icon img{max-width:82%;max-height:82%}
    }
    @media(max-height:720px) and (max-width:860px){
      .race-icon{height:140px}
      .race-card{padding:10px 11px}
      .race-card h2{margin-bottom:5px}
      .race-card .button{margin-top:8px}
    }



    /* V42: Charaktererstellung auch auf Smartphone 3-spaltig */
    @media(max-width:860px){
      .character-modal{align-items:start;overflow-y:auto;padding:10px 6px;}
      .character-popover{width:min(100vw,760px);padding:10px 7px;}
      .character-popover h1{font-size:18px;margin-bottom:4px;letter-spacing:.05em;}
      .character-popover p{font-size:10px;line-height:1.25;margin-bottom:8px;}
      .name-row{max-width:100%;margin-bottom:8px;}
      .name-row input{padding:7px 8px;font-size:13px;}
      .race-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:5px !important;align-items:stretch;}
      .race-card{padding:6px 4px !important;min-width:0;display:flex;flex-direction:column;justify-content:space-between;}
      .race-icon{height:104px !important;margin:0 0 5px !important;align-items:end;justify-content:center;}
      .race-icon img{max-width:96% !important;max-height:96% !important;object-fit:contain;object-position:center bottom;}
      .race-card h2{font-size:13px !important;margin:0 0 4px !important;line-height:1;}
      .race-card ul{font-size:8.5px !important;line-height:1.25 !important;min-height:34px;}
      .race-card .button{margin-top:6px !important;padding:6px 3px !important;font-size:9px !important;}
    }
    @media(max-width:380px){
      .race-icon{height:92px !important;}
      .race-card h2{font-size:12px !important;}
      .race-card ul{font-size:8px !important;}
      .race-card .button{font-size:8px !important;padding:5px 2px !important;}
    }



    /* V43: sechs Völker in sauberem 3x2-Grid */
    .character-modal{overflow:auto;align-items:start;padding:10px}
    .character-popover{max-height:none;margin:10px auto;width:min(880px,98vw);padding:14px}
    .race-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important;align-items:stretch}
    .race-card{min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:9px 7px !important}
    .race-icon{height:160px !important;margin-bottom:7px !important;align-items:end !important;justify-content:center !important}
    .race-icon img{max-width:96% !important;max-height:96% !important;object-fit:contain !important;object-position:center bottom !important}
    .race-card h2{font-size:18px !important;margin:0 0 6px !important;line-height:1.05}
    .race-card ul{font-size:11px !important;line-height:1.3 !important;min-height:34px}
    .race-card .button{margin-top:8px !important;padding:7px 4px !important;font-size:11px !important}
    @media(max-width:860px){
      .character-modal{place-items:start center;padding:6px;overflow:auto}
      .character-popover{width:100%;padding:10px 8px;margin:0 auto 8px;border-width:3px}
      .character-popover h1{font-size:18px;margin-bottom:4px}
      .character-popover p{font-size:10px;margin-bottom:8px}
      .name-row{margin-bottom:8px;max-width:100%}.name-row input{padding:7px 8px;font-size:13px}
      .race-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:5px !important}
      .race-card{padding:6px 4px !important;outline-offset:-4px}
      .race-icon{height:92px !important;margin-bottom:4px !important}
      .race-icon img{max-width:102% !important;max-height:100% !important}
      .race-card h2{font-size:12px !important;margin-bottom:3px !important}
      .race-card ul{font-size:7.7px !important;line-height:1.18 !important;min-height:28px}
      .race-card .button{font-size:7.5px !important;padding:5px 2px !important;margin-top:5px !important;border-width:1px}
    }
    @media(max-width:380px){
      .race-icon{height:82px !important}.race-card h2{font-size:11px !important}.race-card ul{font-size:7px !important}.race-card .button{font-size:7px !important}
    }



    /* V44: Charakterauswahl als 2-Spalten-Paare: Elf/Dunkelelf, Zwerg/Gnom, Ork/Troll */
    .character-modal.open{overflow-y:auto;place-items:start center}
    .character-popover{margin:14px 0 82px;width:min(680px,96vw)}
    .race-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;align-items:stretch !important}
    .race-card{aspect-ratio:1/1;min-height:0 !important;padding:8px 7px !important;overflow:hidden;display:flex !important;flex-direction:column;justify-content:space-between !important}
    .race-icon{height:44% !important;margin:0 0 5px !important;align-items:center !important;justify-content:center !important;background:radial-gradient(ellipse at 50% 70%,rgba(255,177,59,.13),transparent 58%)}
    .race-icon img{max-height:100% !important;max-width:92% !important;object-fit:contain !important}
    .race-card h2{font-size:15px !important;margin:0 0 4px !important;line-height:1 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .race-card ul{font-size:8.8px !important;line-height:1.22 !important;min-height:28px !important;margin:0 !important}
    .race-card .button{margin-top:5px !important;padding:5px 3px !important;font-size:8.6px !important;border-width:1px}
    @media(max-width:420px){
      .character-popover{padding:11px;width:98vw;margin:8px 0 74px}
      .character-popover h1{font-size:18px;margin-bottom:4px}
      .character-popover p{font-size:9.5px;margin-bottom:8px}
      .name-row{margin-bottom:8px}.name-row input{padding:7px 8px;font-size:13px}.name-row label{font-size:8.5px}
      .race-grid{gap:6px !important}
      .race-card{padding:6px 5px !important}
      .race-icon{height:43% !important;margin-bottom:4px !important}
      .race-card h2{font-size:12.5px !important;margin-bottom:3px !important}
      .race-card ul{font-size:7.3px !important;line-height:1.12 !important;min-height:24px !important}
      .race-card .button{font-size:7px !important;padding:4px 2px !important;margin-top:4px !important}
    }



    /* V45: transparente Charakterbilder ohne schwarzen Bildcontainer */
    .character-modal .race-icon{
      background:transparent !important;
      box-shadow:none !important;
      border:0 !important;
      outline:0 !important;
      margin:0 auto 4px !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      overflow:visible !important;
    }
    .character-modal .race-icon::before,
    .character-modal .race-icon::after{content:none !important;}
    .character-modal .race-icon img{
      background:transparent !important;
      max-width:92% !important;
      max-height:92% !important;
      object-fit:contain !important;
      mix-blend-mode:normal !important;
      filter:drop-shadow(0 8px 8px rgba(0,0,0,.48)) !important;
    }
    .character-modal .race-card{
      background:radial-gradient(circle at 50% 24%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;
    }



    /* V46: echte Freistellung + große Charakterportraits */
    .character-modal .race-icon{
      background:transparent !important;
      background-image:none !important;
      box-shadow:none !important;
      border:0 !important;
      outline:0 !important;
      overflow:visible !important;
      height:52% !important;
      margin:0 0 4px !important;
      display:flex !important;
      align-items:flex-end !important;
      justify-content:center !important;
      isolation:isolate;
    }
    .character-modal .race-icon::before,
    .character-modal .race-icon::after{display:none !important;content:none !important;}
    .character-modal .race-icon img{
      background:transparent !important;
      background-color:transparent !important;
      width:auto !important;
      height:112% !important;
      max-width:122% !important;
      max-height:122% !important;
      object-fit:contain !important;
      object-position:center bottom !important;
      margin:0 auto !important;
      mix-blend-mode:normal !important;
      filter:drop-shadow(0 11px 10px rgba(0,0,0,.55)) !important;
    }
    .character-modal .race-card{
      overflow:hidden !important;
      background:radial-gradient(circle at 50% 20%,rgba(255,191,92,.10),transparent 42%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;
    }
    .character-avatar,
    .character-avatar img{background:transparent !important;background-image:none !important;}
    .character-avatar img{width:auto !important;height:100% !important;max-width:120% !important;max-height:120% !important;object-fit:contain !important;object-position:center bottom !important;}
    @media(max-width:420px){
      .character-modal .race-icon{height:51% !important;margin-bottom:3px !important;}
      .character-modal .race-icon img{height:115% !important;max-width:128% !important;max-height:128% !important;}
    }



    /* V47: Fix Charakterbilder - PNG-Transparenz statt eingebettetem JPEG-Schwarz */
    .character-modal .race-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;}
    .character-modal .race-card{aspect-ratio:1/1 !important;min-height:0 !important;padding:7px 6px !important;overflow:hidden !important;display:flex !important;flex-direction:column !important;justify-content:space-between !important;background:radial-gradient(circle at 50% 28%,rgba(255,191,92,.10),transparent 44%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;}
    .character-modal .race-icon{flex:1 1 auto !important;min-height:0 !important;height:auto !important;margin:0 0 3px !important;padding:0 !important;border:0 !important;outline:0 !important;box-shadow:none !important;background:none !important;background-color:transparent !important;background-image:none !important;display:flex !important;align-items:flex-end !important;justify-content:center !important;overflow:visible !important;}
    .character-modal .race-icon::before,.character-modal .race-icon::after{display:none !important;content:none !important;background:none !important;}
    .character-modal .race-icon img{display:block !important;width:auto !important;height:96% !important;max-width:112% !important;max-height:112% !important;object-fit:contain !important;object-position:center bottom !important;margin:0 auto !important;padding:0 !important;border:0 !important;outline:0 !important;background:none !important;background-color:transparent !important;background-image:none !important;mix-blend-mode:normal !important;filter:drop-shadow(0 8px 8px rgba(0,0,0,.45)) !important;}
    .character-modal .race-card h2{font-size:13px !important;margin:0 0 3px !important;line-height:1 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
    .character-modal .race-card ul{font-size:7.7px !important;line-height:1.12 !important;min-height:24px !important;margin:0 !important;}
    .character-modal .race-card .button{margin-top:4px !important;padding:4px 2px !important;font-size:7.5px !important;border-width:1px !important;}
    @media(min-width:700px){.character-modal .race-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:680px;margin:0 auto}.character-modal .race-card{aspect-ratio:1.05/1 !important;padding:10px 9px !important}.character-modal .race-card h2{font-size:17px !important}.character-modal .race-card ul{font-size:10.5px !important;line-height:1.25 !important;min-height:34px !important}.character-modal .race-card .button{font-size:10px !important;padding:6px 4px !important}}
    @media(max-width:360px){.character-modal .race-grid{gap:6px !important}.character-modal .race-card{padding:6px 4px !important}.character-modal .race-icon img{height:93% !important;max-width:108% !important;max-height:108% !important}.character-modal .race-card h2{font-size:11.5px !important}.character-modal .race-card ul{font-size:6.8px !important;line-height:1.08 !important;min-height:22px !important}.character-modal .race-card .button{font-size:6.8px !important;padding:3px 2px !important}}


    /* V48: Charakterkarten Spacing-Fix - Name, Bild, Boni sauber getrennt */
    .character-modal .race-card{
      aspect-ratio:1/1 !important;
      display:grid !important;
      grid-template-rows:auto minmax(0,1fr) auto auto !important;
      align-items:stretch !important;
      justify-content:stretch !important;
      gap:3px !important;
      padding:7px 6px !important;
      overflow:hidden !important;
    }
    .character-modal .race-card h2{
      grid-row:1 !important;
      position:relative !important;
      z-index:3 !important;
      margin:0 !important;
      padding:0 !important;
      min-height:15px !important;
      line-height:1.05 !important;
      text-align:center !important;
      background:transparent !important;
    }
    .character-modal .race-icon{
      grid-row:2 !important;
      min-height:0 !important;
      height:100% !important;
      margin:0 !important;
      padding:0 !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      overflow:visible !important;
      background:transparent !important;
      background-image:none !important;
    }
    .character-modal .race-icon img{
      height:88% !important;
      max-height:88% !important;
      max-width:104% !important;
      object-fit:contain !important;
      object-position:center center !important;
      margin:0 auto !important;
      transform:none !important;
      position:relative !important;
      z-index:1 !important;
    }
    .character-modal .race-card ul{
      grid-row:3 !important;
      position:relative !important;
      z-index:3 !important;
      margin:0 !important;
      padding:0 !important;
      min-height:24px !important;
      text-align:center !important;
      background:rgba(5,4,3,.18) !important;
      border-top:1px solid rgba(255,181,62,.10) !important;
      padding-top:3px !important;
    }
    .character-modal .race-card .button{
      grid-row:4 !important;
      position:relative !important;
      z-index:3 !important;
      margin-top:3px !important;
      align-self:end !important;
    }
    @media(min-width:700px){
      .character-modal .race-card{padding:10px 9px !important;gap:5px !important;}
      .character-modal .race-card h2{min-height:20px !important;}
      .character-modal .race-icon img{height:84% !important;max-height:84% !important;max-width:100% !important;}
      .character-modal .race-card ul{min-height:34px !important;padding-top:4px !important;}
    }
    @media(max-width:420px){
      .character-modal .race-card{padding:6px 5px !important;gap:2px !important;}
      .character-modal .race-card h2{min-height:13px !important;font-size:11.5px !important;}
      .character-modal .race-icon img{height:84% !important;max-height:84% !important;max-width:102% !important;}
      .character-modal .race-card ul{min-height:23px !important;font-size:6.9px !important;line-height:1.1 !important;}
      .character-modal .race-card .button{margin-top:2px !important;}
    }



    /* V49: Eigene Navigations-Icons */
    .nav-icon-img{
      width:29px;
      height:29px;
      object-fit:contain;
      object-position:center center;
      display:block;
      image-rendering:auto;
      filter:drop-shadow(0 1px 0 #000) drop-shadow(0 0 4px rgba(255,177,59,.16));
      pointer-events:none;
    }
    .nav-icon-img.wide{width:31px;height:27px}
    .nav-icon-img.tall{width:27px;height:31px}
    .nav-icon-img.small{width:26px;height:26px}
    .nav-icon-img.large{width:32px;height:32px}
    .nav-btn.active .nav-icon-img{filter:drop-shadow(0 1px 0 #000) drop-shadow(0 0 8px rgba(255,177,59,.55));}
    .tier-global .nav-icon-img{margin-bottom:1px}
    .tier-global .tier-nav-rank{position:absolute;top:3px;left:4px;font-size:8px;background:rgba(0,0,0,.35);padding:1px 2px;border:1px solid rgba(255,181,62,.18)}
    .bottom-nav.forest-mode .forest-only .nav-icon-img{width:32px;height:32px}
    @media(max-width:860px){
      .nav-icon-img{width:26px;height:26px}
      .nav-icon-img.wide{width:28px;height:24px}
      .nav-icon-img.tall{width:24px;height:28px}
      .nav-icon-img.large{width:29px;height:29px}
      .nav-label{font-size:7px}
      .bottom-nav.village-mode .nav-btn{padding-top:2px}
    }


    /* V50 clean: Dorf-Return-Icon im Waldmodus */
    .nav-icon-img{
      display:block;
      width:30px;
      height:30px;
      object-fit:contain;
      object-position:center;
      background:transparent;
      border:0;
      box-shadow:none;
      filter:drop-shadow(0 2px 2px rgba(0,0,0,.70));
      pointer-events:none;
    }
    .nav-icon-village-return{
      width:60px !important;
      height:44px !important;
      max-width:60px !important;
      max-height:44px !important;
      object-fit:contain !important;
    }
    .bottom-nav.forest-mode .forest-only{
      width:min(136px,48vw) !important;
      max-width:136px !important;
      display:flex !important;
      flex-direction:column !important;
      align-items:center !important;
      justify-content:center !important;
      gap:2px !important;
      overflow:hidden !important;
      padding:3px 8px !important;
    }
    .bottom-nav.forest-mode .forest-only .nav-label{
      display:block !important;
      font-size:8px !important;
      line-height:1 !important;
      margin-top:4px !important;
      white-space:nowrap !important;
    }


    /* V52: Charakterwerte + Level-Up-Punkte */
    .char-xp-panel{
      margin:8px 0 10px;
      padding:9px 10px;
      border:2px solid #5d462b;
      outline:1px solid rgba(213,151,73,.25);
      outline-offset:-5px;
      background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.09),transparent 38%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
      box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045);
    }
    .attribute-grid{
      display:grid;
      grid-template-columns:repeat(5,minmax(0,1fr));
      gap:6px;
      margin:8px 0 8px;
    }
    .attribute-tile{
      border:1px solid rgba(255,181,62,.24);
      background:rgba(0,0,0,.20);
      padding:7px 5px;
      text-align:center;
      font-family:"Courier New",monospace;
      box-shadow:inset 0 0 8px rgba(255,177,59,.055);
    }
    .attribute-tile strong{
      display:block;
      color:#f5d59b;
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.04em;
      margin-bottom:3px;
      text-shadow:0 1px #000;
    }
    .attribute-tile span{
      color:var(--gold-bright);
      font:bold 15px "Courier New",monospace;
    }
    .derived-stats{
      margin-top:7px;
      color:#b49161;
      font:11px/1.35 "Courier New",monospace;
      display:grid;
      gap:3px;
    }
    .levelup-modal{
      position:fixed;
      inset:0;
      z-index:80;
      display:none;
      place-items:center;
      background:radial-gradient(circle at 50% 10%,rgba(120,74,22,.35),transparent 34rem),rgba(0,0,0,.86);
      padding:16px;
    }
    .levelup-modal.open{display:grid}
    .levelup-box{
      width:min(520px,96vw);
      background:#070707;
      border:4px solid #2f2a25;
      box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88);
      padding:16px;
    }
    .levelup-box h2{
      margin:0 0 6px;
      color:var(--gold-bright);
      text-align:center;
      text-transform:uppercase;
      letter-spacing:.10em;
      font:bold 24px "Courier New",monospace;
      text-shadow:3px 3px 0 #000,0 0 14px rgba(255,177,59,.35);
    }
    .levelup-box p{
      margin:0 0 12px;
      color:#c6a06f;
      text-align:center;
      font:12px/1.35 "Courier New",monospace;
    }
    .levelup-points{
      text-align:center;
      color:#f5d59b;
      font:bold 13px "Courier New",monospace;
      margin-bottom:10px;
    }
    .levelup-grid{
      display:grid;
      grid-template-columns:1fr;
      gap:7px;
    }
    .levelup-stat-row{
      display:grid;
      grid-template-columns:1fr 42px 42px;
      align-items:center;
      gap:8px;
      padding:8px 9px;
      border:2px solid #5d462b;
      outline:1px solid rgba(213,151,73,.22);
      outline-offset:-5px;
      background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
    }
    .levelup-stat-row strong{
      color:#f5d59b;
      text-shadow:0 2px #000;
      font-size:14px;
    }
    .levelup-stat-row span{
      color:var(--gold-bright);
      font:bold 14px "Courier New",monospace;
      text-align:center;
    }
    .levelup-plus{
      width:42px;
      height:34px;
      margin:0;
      padding:0;
      font-size:20px;
      line-height:1;
    }
    .levelup-done{
      margin-top:12px;
    }
    .levelup-done:disabled{
      opacity:.45;
      cursor:not-allowed;
    }
    @media(max-width:860px){
      .attribute-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
      .attribute-tile{padding:6px 3px}
      .attribute-tile strong{font-size:8px}
      .attribute-tile span{font-size:13px}
      .levelup-box{padding:14px}
      .levelup-box h2{font-size:21px}
    }


    /* V53: nicht-blockierender Level-Up-Toast */
    .levelup-toast{
      position:fixed;
      left:50%;
      top:18%;
      transform:translate(-50%,-12px) scale(.92);
      z-index:90;
      pointer-events:none;
      opacity:0;
      padding:10px 18px;
      border:2px solid var(--gold-bright);
      background:radial-gradient(circle at 50% 20%,rgba(255,220,120,.18),transparent 55%),linear-gradient(145deg,#2a1a0b,#0b0704 70%);
      color:var(--gold-bright);
      font:bold 20px "Courier New",monospace;
      letter-spacing:.12em;
      text-transform:uppercase;
      text-shadow:2px 2px 0 #000,0 0 12px rgba(255,177,59,.55);
      box-shadow:0 0 0 2px rgba(0,0,0,.75),0 0 22px rgba(255,177,59,.25),inset 0 0 18px rgba(255,177,59,.08);
    }
    .levelup-toast.show{
      animation:levelupToastPop 1.35s ease forwards;
    }
    @keyframes levelupToastPop{
      0%{opacity:0;transform:translate(-50%,-12px) scale(.88)}
      16%{opacity:1;transform:translate(-50%,0) scale(1.05)}
      72%{opacity:1;transform:translate(-50%,0) scale(1.02)}
      100%{opacity:0;transform:translate(-50%,-18px) scale(.96)}
    }
    .status-point-button{
      margin-top:8px !important;
    }


/* V-GEMS: Schmiedemeister Dienste optisch an normale Crafting-Kacheln angepasst */
.smith-master-services{
  grid-column:1/-1;
  border:2px solid #a97832;
  outline:1px solid rgba(255,205,95,.62);
  outline-offset:-5px;
  background:radial-gradient(circle at 14% 18%,rgba(255,191,92,.16),transparent 30%),linear-gradient(135deg,rgba(255,213,132,.08),transparent 24%,rgba(0,0,0,.20) 62%,rgba(255,190,95,.06)),linear-gradient(145deg,#241a11,#100d0b 58%,#070605);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.24),inset 0 0 0 4px rgba(6,5,4,.72),0 0 22px rgba(255,145,37,.16),0 6px 14px rgba(0,0,0,.38);
  padding:12px;
  margin:0 0 12px;
}
.smith-master-title{
  font-weight:900;
  font-size:16px;
  letter-spacing:.09em;
  color:#ffcf77;
  margin:0 0 10px;
  text-transform:uppercase;
  text-shadow:0 2px 0 #000;
  text-align:center;
}
.smith-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.smith-service-card{
  position:relative;
  min-height:0;
  padding:10px 11px 11px;
  border:2px solid #8f6d37;
  outline:1px solid rgba(255,205,95,.45);
  outline-offset:-5px;
  background:radial-gradient(circle at 14% 18%,rgba(255,191,92,.12),transparent 30%),linear-gradient(135deg,rgba(255,213,132,.07),transparent 24%,rgba(0,0,0,.18) 62%,rgba(255,190,95,.045)),linear-gradient(145deg,#201913,#100d0b 58%,#070605);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.18),inset 0 0 0 4px rgba(6,5,4,.72),inset 0 0 22px rgba(255,150,39,.055),0 6px 14px rgba(0,0,0,.38);
}
.smith-service-card h3{margin:0 0 7px;font-size:15px;color:#f5d59b;text-shadow:0 2px 0 #000;line-height:1.15;}
.smith-service-card p{margin:0 0 9px;color:#b49161;font:11px/1.25 "Courier New",monospace;}
.smith-service-actions{display:grid;grid-template-columns:1fr;gap:6px;align-items:start;}
.smith-service-btn{margin:0!important;width:100%!important;font-size:11px!important;padding:7px 8px!important;border-radius:0!important;}
.smith-socket-row{display:grid;gap:5px;border:1px solid rgba(255,181,62,.24);padding:7px;background:rgba(0,0,0,.18);}
.smith-socket-row b{color:#f5d59b;font-size:12px;line-height:1.15;}
.smith-socket-row small{color:#b49161;font:10px/1.25 "Courier New",monospace;}
.smith-service-inline{display:grid;grid-template-columns:1fr;gap:5px;}
.smith-gem-select{
  width:100%;
  min-height:32px;
  padding:7px 8px;
  border:2px solid #6f5535;
  background:linear-gradient(#18120d,#090706);
  color:#f5d59b;
  font:11px "Courier New",monospace;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.14),0 0 0 1px rgba(0,0,0,.4);
  cursor:pointer;
}
.smith-gem-select:focus{outline:1px solid rgba(255,177,59,.55);outline-offset:1px;}
.smith-gem-select option{background:#100d0b;color:#f5d59b;}

@media(max-width:860px){
  .smith-master-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .smith-master-services{padding:10px;}
  .smith-service-card{padding:8px 9px;}
  .smith-service-card h3{font-size:13px;}
  .smith-service-card p{font-size:10px;}
  .smith-service-btn{font-size:9.5px!important;padding:6px 5px!important;}
}


/* V-GEMS-ALIGN: Schmiedemeister Dienste links/rechts bündig und kompakt */
.smith-master-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  align-items:stretch;
}
.smith-master-left{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) minmax(0,1fr);
  gap:9px;
  min-height:100%;
}
.smith-service-card{
  display:flex;
  flex-direction:column;
}
.smith-service-card-feature, .smith-service-gems{
  border-color:#d3a34e;
  outline-color:rgba(255,222,130,.70);
  background:radial-gradient(circle at 16% 18%,rgba(255,223,125,.22),transparent 34%),linear-gradient(135deg,rgba(255,230,146,.10),transparent 26%,rgba(0,0,0,.18) 62%,rgba(255,190,95,.075)),linear-gradient(145deg,#261b10,#110d08 60%,#070605);
  box-shadow:inset 0 0 0 1px rgba(255,235,170,.28),inset 0 0 0 4px rgba(6,5,4,.72),0 0 20px rgba(255,177,59,.20),0 6px 14px rgba(0,0,0,.38);
}
.smith-socket-card{height:100%;}
.smith-socket-actions{flex:1;align-content:start;}
@media(max-width:860px){
  .smith-master-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .smith-master-left{gap:7px;}
}


/* V-GEMS-COLOR: Service-Typen visuell unterscheiden */
.smith-service-gems{
  border-color:#8f58d6 !important;
  outline-color:rgba(184,126,255,.72) !important;
  background:radial-gradient(circle at 16% 18%,rgba(155,95,255,.24),transparent 34%),linear-gradient(135deg,rgba(120,80,180,.16),transparent 27%,rgba(0,0,0,.20) 63%,rgba(95,58,148,.10)),linear-gradient(145deg,#21162c,#110b18 60%,#070507) !important;
  box-shadow:inset 0 0 0 1px rgba(215,185,255,.24),inset 0 0 0 4px rgba(6,5,8,.72),0 0 22px rgba(145,85,255,.24),0 6px 14px rgba(0,0,0,.38) !important;
}
.smith-service-gems h3{color:#e6d0ff !important;}
.smith-service-metal,.smith-service-socket{
  border-color:#9ca1a7 !important;
  outline-color:rgba(215,225,232,.50) !important;
  background:radial-gradient(circle at 16% 18%,rgba(220,225,230,.16),transparent 34%),linear-gradient(135deg,rgba(190,200,210,.10),transparent 27%,rgba(0,0,0,.20) 63%,rgba(170,180,190,.06)),linear-gradient(145deg,#202225,#101113 60%,#060607) !important;
  box-shadow:inset 0 0 0 1px rgba(225,230,235,.18),inset 0 0 0 4px rgba(5,5,6,.72),0 0 16px rgba(190,200,210,.14),0 6px 14px rgba(0,0,0,.38) !important;
}
.smith-service-metal h3,.smith-service-socket h3{color:#e0e3e7 !important;}



/* V-AFK: separater, manuell schließbarer AFK-Bericht */
.offline-report-panel{
  position:relative;
  margin-top:10px;
  padding:10px 32px 11px 11px;
  border:2px solid #5f4a31;
  outline:1px solid rgba(213,151,73,.28);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,rgba(28,22,17,.96),rgba(8,7,6,.98));
  box-shadow:inset 0 0 0 1px rgba(255,220,160,.08),0 8px 20px rgba(0,0,0,.25);
}
.offline-report-panel.hidden{display:none;}
.offline-report-panel h3{
  margin:0 0 7px;
  color:#f5d59b;
  font-size:15px;
  text-shadow:0 2px #000;
  letter-spacing:.06em;
}
.offline-report-body{
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
}
.offline-report-body strong{color:#ffb13b;}

.offline-report-close{
  position:absolute;
  right:8px;
  top:8px;
}

@media(max-width:860px){
  .offline-report-panel{margin-top:7px;padding:8px 30px 9px 9px;}
  .offline-report-panel h3{font-size:13px;}
  .offline-report-body{font-size:11px;}
}

/* V-BUFF: Forest buff button + active buff panel */
#buffHudWrap{
  position:fixed;
  right:14px;
  top:14px;
  z-index:40;
  font-family:Georgia,"Times New Roman",serif;
}
#buffHudButton{
  width:48px;
  height:48px;
  border:3px solid #5d5a54;
  outline:1px solid rgba(230,230,220,.42);
  outline-offset:-6px;
  border-radius:0;
  background:
    radial-gradient(circle at 50% 18%,rgba(230,230,220,.16),transparent 36%),
    linear-gradient(145deg,#25272b,#090909 72%);
  color:#f7e8c8;
  font-size:22px;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 0 0 4px rgba(0,0,0,.50),0 8px 20px rgba(0,0,0,.55);
  position:relative;
}
#buffHudCount{
  position:absolute;
  right:-7px;
  top:-7px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid #f1d3a3;
  background:#8c1820;
  color:#fff;
  font:bold 11px "Courier New",monospace;
  box-shadow:0 0 0 2px #120807;
}
#buffHudPanel{
  display:none;
  position:absolute;
  right:0;
  top:56px;
  width:min(320px,92vw);
  border:3px solid #5d5a54;
  outline:1px solid rgba(230,230,220,.32);
  outline-offset:-6px;
  border-radius:0;
  background:linear-gradient(145deg,#17191c,#080808 75%);
  color:#f7e8c8;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 18px 40px rgba(0,0,0,.72);
  padding:10px;
}
#buffHudPanel.open{display:block;}
.buff-hud-title{
  color:#e7e0cc;
  text-transform:uppercase;
  letter-spacing:.12em;
  font:bold 12px "Courier New",monospace;
  text-align:center;
  border-bottom:1px solid rgba(230,230,220,.22);
  padding:0 0 6px;
  margin:0 0 5px;
}
.buff-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  column-gap:9px;
  row-gap:3px;
  align-items:center;
  border:1px solid rgba(230,230,220,.18);
  background:rgba(0,0,0,.22);
  padding:6px 8px;
  margin-top:4px;
  min-height:54px;
  box-sizing:border-box;
}
.buff-row span{
  grid-column:1;
  grid-row:1/3;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  align-self:center;
  font-size:18px;
  text-align:center;
}
.buff-row b{
  grid-column:2;
  grid-row:1;
  align-self:end;
  margin:0;
  font-size:13px;
  line-height:1.15;
  color:#f5d59b;
  text-shadow:0 1px #000;
}
.buff-row em{
  grid-column:2/4;
  grid-row:2;
  align-self:start;
  margin:0;
  font:11px/1.2 "Courier New",monospace;
  color:#c6a06f;
  font-style:normal;
}
.buff-row small{
  grid-column:3;
  grid-row:1;
  align-self:end;
  justify-self:end;
  margin:0;
  padding-left:8px;
  font:11px/1.15 "Courier New",monospace;
  color:#ffb13b;
  white-space:nowrap;
}
.buff-row .buff-hud-icon-img{
  width:30px;
  height:30px;
  max-width:30px;
  max-height:30px;
  object-fit:contain;
  margin:0;
}
.buff-row .buff-hud-icon-img.buff-luma-icon{
  width:20px;height:20px;max-width:20px;max-height:20px;
  object-fit:contain;object-position:center;
}
@media(max-width:860px){#buffHudWrap{right:9px;top:9px}#buffHudButton{width:42px;height:42px;font-size:19px}#buffHudPanel{top:49px}}


/* Dungeon foundation */
.dungeon-view{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
.dungeon-view.active-view{display:block}
.dungeon-nav.hidden{display:none!important}
.dungeon-nav.locked{opacity:.78;filter:grayscale(.25)}
.dungeon-nav-icon{font-size:23px;line-height:1;filter:drop-shadow(0 1px 0 #000)}
.dungeon-panel{border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:13px 14px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)}
.dungeon-panel.locked{filter:saturate(.86)}
.dungeon-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#f5d59b;text-shadow:0 2px 0 #000}
.dungeon-meta strong{font-size:18px}.dungeon-meta span{color:var(--gold-bright);font:12px "Courier New",monospace;white-space:nowrap}
.dungeon-note{margin:0 0 10px;color:#c6a06f;font:12px/1.35 "Courier New",monospace}
.dungeon-state-box{margin:0 0 10px;padding:9px 10px;border:1px solid rgba(255,181,62,.25);background:rgba(0,0,0,.22);color:#d2ae75;font:12px/1.35 "Courier New",monospace}
.dungeon-state-box.ready{color:#bfe28a}.dungeon-state-box.locked{color:#d2ae75}
.dungeon-plan{margin:0 0 10px;color:#b49161;font:12px/1.45 "Courier New",monospace}.dungeon-plan strong{color:#f5d59b}.dungeon-plan ul{margin:5px 0 0 18px;padding:0}.dungeon-start-btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.4)}
@media(max-width:860px){.dungeon-view{padding:9px 10px 10px}.dungeon-meta{align-items:flex-start}.dungeon-meta strong{font-size:16px}.dungeon-meta span{font-size:11px}.dungeon-nav-icon{font-size:20px}}

.discovery-line{color:var(--gold-bright);margin-top:3px}

/* Dungeon navigation update: Draußen-Menü = Tier · Dungeon · Dorf · Inventar · Optionen */
.bottom-nav.forest-mode{gap:min(3vw,18px)}
.bottom-nav.forest-mode .nav-btn:not(.village-only){width:min(76px,18vw);max-width:76px}
.bottom-nav.forest-mode .tier-global{width:min(82px,18vw);max-width:82px}
.bottom-nav.forest-mode .dungeon-nav.locked{opacity:.48;filter:grayscale(.75);cursor:not-allowed;}
.bottom-nav.forest-mode .dungeon-nav.locked:hover{opacity:.48;filter:grayscale(.75)}
@media(max-width:860px){
  .bottom-nav.forest-mode{gap:5px;padding:0 6px;justify-content:space-between}
  .bottom-nav.forest-mode .nav-btn:not(.village-only){width:18.5%;height:50px;max-width:70px}
  .bottom-nav.forest-mode .tier-global{width:18.5%;max-width:70px}
}


/* Dungeon-Hover-Hinweis im Draußen-Menü */
.dungeon-nav[data-tooltip]{position:relative}
.dungeon-nav[data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%) translateY(4px);
  width:max-content;
  max-width:min(280px,86vw);
  padding:10px 12px;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.13),transparent 38%),linear-gradient(145deg,#1b1511,#070605 76%,#030202);
  color:#e7c58f;
  font:12px/1.35 "Courier New",monospace;
  white-space:pre-line;
  text-align:left;
  box-shadow:0 10px 24px rgba(0,0,0,.65),inset 0 0 0 1px rgba(255,215,139,.14);
  opacity:0;
  pointer-events:none;
  z-index:50;
  transition:opacity .14s ease,transform .14s ease;
}
.dungeon-nav[data-tooltip]::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 3px);
  transform:translateX(-50%);
  border:7px solid transparent;
  border-top-color:#6f5535;
  opacity:0;
  pointer-events:none;
  z-index:51;
  transition:opacity .14s ease;
}
.dungeon-nav[data-tooltip]:hover::after,.dungeon-nav[data-tooltip]:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}
.dungeon-nav[data-tooltip]:hover::before,.dungeon-nav[data-tooltip]:focus-visible::before{opacity:1}
@media(max-width:860px){.dungeon-nav[data-tooltip]::after{font-size:11px;max-width:240px}}

/* Dev Tools */
.dev-modal{position:fixed;inset:0;z-index:95;display:none;place-items:center;background:radial-gradient(circle at 50% 12%,rgba(120,74,22,.24),transparent 34rem),rgba(0,0,0,.78);padding:18px}
.dev-modal.open{display:grid}
.dev-panel{width:min(760px,96vw);max-height:min(86vh,760px);overflow:auto;position:relative;background:linear-gradient(145deg,#17120e,#070605 72%,#030303);border:4px solid #2f2a25;box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88),inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 32px rgba(255,150,39,.055);padding:16px 16px 14px;clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}

.dev-close{position:absolute;right:-2px;top:-2px;}
.dev-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 36px 8px 0;color:#f5d59b;text-shadow:0 2px #000;font-family:"Courier New",monospace}.dev-head strong{font-size:18px;text-transform:uppercase;letter-spacing:.08em}.dev-head span{color:var(--gold-bright);font-size:12px;border:1px solid rgba(255,181,62,.28);background:rgba(0,0,0,.22);padding:4px 7px}
.dev-note{margin:0 0 12px;color:#b49161;font:12px/1.35 "Courier New",monospace}.dev-note b{color:#ffb13b}
.dev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dev-card{border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;padding:11px 12px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045)}
.dev-card h3{margin:0 0 8px;color:#f5d59b;text-shadow:0 2px #000;font-size:15px;letter-spacing:.06em;text-transform:uppercase}.dev-card .button{margin-top:6px;font-size:12px;padding:7px 8px}.dev-card .dev-danger{background:linear-gradient(180deg,#9f5a3d 0%,#74331f 48%,#34130c 100%);color:#f6d7c8;border-color:#8d2d23;text-shadow:0 1px #000}
.dev-status{margin:10px 0 0;padding:8px 10px;border:1px solid rgba(255,181,62,.22);background:rgba(0,0,0,.24);color:#d2ae75;font:12px/1.35 "Courier New",monospace}
@media(max-width:860px){.dev-panel{padding:14px;max-height:88vh}.dev-grid{grid-template-columns:1fr;gap:8px}.dev-head{display:grid;margin-right:32px}.dev-head strong{font-size:15px}.dev-card{padding:10px}.dev-card .button{font-size:11px}}


/* Phase 1: Elfen-Spezialisierung */
.spec-open-button{margin-top:10px;max-width:260px}
.elf-spec-modal{position:fixed;inset:0;z-index:80;display:none;place-items:center;background:radial-gradient(circle at 50% 8%,rgba(120,74,22,.32),transparent 34rem),rgba(0,0,0,.86);padding:14px;overflow:auto}
.elf-spec-modal.open{display:grid}
.elf-spec-panel{width:min(560px,96vw);height:920px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;background:#070707;border:4px solid #2f2a25;box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88);padding:16px;color:#f7e8c8}

.elf-spec-close{position:absolute;right:-14px;top:-14px;z-index:2;}
.elf-spec-head{text-align:center;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);padding:13px 14px;margin-bottom:10px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12)}
.elf-spec-kicker{display:block;color:#ffb13b;font:bold 10px "Courier New",monospace;text-transform:uppercase;letter-spacing:.16em;margin-bottom:5px}.elf-spec-head h2{margin:0 0 6px;color:#f5d59b;text-transform:uppercase;letter-spacing:.08em;text-shadow:0 2px #000}.elf-spec-head p{margin:0;color:#c6a06f;font:12px/1.35 "Courier New",monospace}
.elf-spec-choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.elf-spec-choice{min-height:88px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.22);outline-offset:-5px;background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);color:#f5d59b;cursor:pointer;padding:9px 8px;text-align:center;box-shadow:inset 0 0 0 1px rgba(255,215,139,.10)}.elf-spec-choice.active{border-color:#b37a2a;box-shadow:0 0 14px rgba(255,145,37,.22),inset 0 0 0 1px rgba(255,222,150,.18)}.elf-spec-choice.chosen{border-color:#83a75a}.elf-spec-choice.unavailable{filter:grayscale(1.02) brightness(.52);opacity:.62;cursor:not-allowed;border-color:#4d4a43;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}.elf-spec-choice-icon{display:block;font-size:26px}.elf-spec-choice strong{display:block;margin:2px 0;color:#f5d59b;text-shadow:0 2px #000}.elf-spec-choice small{display:block;color:#b49161;font:10px/1.25 "Courier New",monospace}
.elf-tree-card{border:3px solid #6f5535;outline:1px solid rgba(213,151,73,.38);outline-offset:-7px;background:radial-gradient(circle at 50% 8%,rgba(255,191,92,.10),transparent 28%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);padding:13px 12px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 0 4px rgba(6,5,4,.60),0 10px 22px rgba(0,0,0,.35)}.elf-tree-card.is-preview{filter:saturate(.68)}.elf-tree-title{text-align:center;margin:0 0 8px;color:#f5d59b;text-transform:uppercase;letter-spacing:.06em;text-shadow:0 2px #000}.elf-tree-title span{font-size:22px;margin-right:6px}.elf-tree-desc{margin:0 auto 12px;max-width:420px;text-align:center;color:#c6a06f;font:11px/1.35 "Courier New",monospace}.elf-tree-frame{width:min(390px,100%);margin:0 auto;display:grid;gap:12px;padding:8px 4px}.elf-tree-row{display:grid;grid-template-columns:1fr;align-items:center;gap:0;min-height:58px}.elf-tree-tier-label{display:none}.elf-tree-nodes{display:flex;align-items:center;justify-content:center;gap:22px}.elf-tree-tier-1 .elf-tree-nodes{gap:34px}.elf-tree-tier-3 .elf-tree-nodes{gap:12px}.elf-tree-tier-4 .elf-tree-nodes{gap:30px}.elf-tree-tier-2 .elf-tree-nodes,.elf-tree-tier-5 .elf-tree-nodes{justify-content:center}.elf-skill-node{width:62px;height:62px;position:relative;border:3px solid #8a622f;background:radial-gradient(circle at 35% 24%,rgba(255,191,92,.14),transparent 38%),linear-gradient(145deg,#221a13,#080706 72%);color:#f5d59b;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 -10px 20px rgba(0,0,0,.42),0 5px 12px rgba(0,0,0,.35)}.elf-skill-node.detail-selected{filter:brightness(1.16);box-shadow:inset 0 0 0 1px rgba(255,238,185,.38),inset 0 -10px 20px rgba(0,0,0,.42),0 0 0 2px rgba(255,177,59,.72),0 5px 12px rgba(0,0,0,.35)}
.elf-skill-node.preview-locked,.elf-skill-node.tier-locked{filter:grayscale(1.02) brightness(.62);border-color:#50483d;color:#aaa}.elf-skill-node.ultimate{border-color:#d99024;box-shadow:0 0 18px rgba(255,145,37,.18),inset 0 0 0 1px rgba(255,215,139,.2),inset 0 -10px 20px rgba(0,0,0,.42)}.elf-skill-icon{display:block;font-size:22px;line-height:1;margin-top:6px}.elf-skill-key{display:none}.elf-skill-rank{position:absolute;left:4px;right:4px;bottom:3px;color:#fff;font:bold 10px "Courier New",monospace;text-shadow:0 2px #000}.elf-tree-footer{margin:12px auto 0;width:min(390px,100%);display:grid;gap:5px;text-align:center;color:#c6a06f;font:12px/1.35 "Courier New",monospace}.elf-tree-footer strong{color:#ffb13b}.elf-tree-pick{margin:8px auto 0;width:min(330px,100%);font-size:15px}.elf-spec-detail{flex:0 0 118px;height:118px;min-height:118px;max-height:118px;overflow-y:auto;margin:10px 0 0;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.22);outline-offset:-5px;background:rgba(0,0,0,.28);padding:10px 12px;color:#c6a06f;font:12px/1.35 "Courier New",monospace}.elf-spec-tree-wrap{flex:1 1 auto;min-height:0;overflow-y:auto;} .elf-spec-detail strong{display:block;color:#ffb13b;margin-bottom:3px}.elf-spec-detail span{display:block;color:#f5d59b;margin-bottom:5px}.elf-spec-detail span b{color:#fff}.elf-spec-detail p{margin:0 0 5px}.elf-spec-detail em{display:block;color:#ffb3a1;font-style:normal}.elf-spec-pick{margin-top:10px}
@media(max-width:520px){.elf-spec-modal{padding:8px}.elf-spec-panel{width:98vw;padding:12px 9px}.elf-spec-head{padding:11px 10px}.elf-spec-choice-row{gap:6px}.elf-spec-choice{padding:8px 5px;min-height:82px}.elf-tree-frame{gap:10px}.elf-tree-row{grid-template-columns:1fr;gap:0;min-height:54px}.elf-tree-tier-label{display:none}.elf-tree-nodes{gap:12px}.elf-skill-node{width:54px;height:54px}.elf-skill-icon{font-size:20px}.elf-skill-key{display:none}.elf-tree-desc{font-size:10.5px}.elf-spec-detail{font-size:11px;height:118px;min-height:118px;max-height:118px;overflow-y:auto}}


/* Phase 1.2: Talentbaum als eigenes Inventar-Panel */
.ii-spec-panel-v3{
  margin-top:0;
  border:none;
  outline:none;
  border-radius:0;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.ii-spec-open-button-v3{
  width:100%;
  min-height:48px;
  margin:0;
  padding:8px 10px;
  border:2px solid #8a622f;
  outline:1px solid rgba(255,213,132,.28);
  outline-offset:-5px;
  background:radial-gradient(circle at 50% 18%,rgba(255,188,84,.16),transparent 45%),linear-gradient(#2a1d11,#090807 75%);
  color:#ffdf9a;
  font:bold 13px "Courier New",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 -8px 14px rgba(0,0,0,.42),0 0 12px rgba(255,145,37,.10);
}
.ii-spec-open-button-v3:hover{border-color:#ffb13b;filter:brightness(1.12);}



@media(max-width:520px){
  .ii-spec-panel-v3{padding:0;}
  .ii-spec-open-button-v3{min-height:44px;font-size:11px;letter-spacing:.07em;}
}

/* Skilltree hold-to-invest protection */
.elf-skill-node.can-invest{border-color:#c18a42;box-shadow:0 0 12px rgba(255,145,37,.20),inset 0 0 0 1px rgba(255,221,145,.22),inset 0 -10px 20px rgba(0,0,0,.42),0 5px 12px rgba(0,0,0,.35)}
.elf-skill-node.holding{transform:scale(.97);filter:brightness(1.25)}
.elf-skill-node.holding::after{content:"";position:absolute;inset:-5px;border:2px solid var(--gold-bright);pointer-events:none;animation:elfHoldPulse 1s linear forwards;box-shadow:0 0 14px rgba(255,177,59,.45)}
@keyframes elfHoldPulse{0%{clip-path:inset(0 100% 0 0)}25%{clip-path:inset(0 75% 0 0)}50%{clip-path:inset(0 50% 0 0)}75%{clip-path:inset(0 25% 0 0)}100%{clip-path:inset(0 0 0 0)}}
.elf-hold-hint{color:#ffcf7a!important}

/* Ranger skilltree polish: make specialization choice button clearly golden and prominent */
.elf-tree-pick{
  margin:12px auto 0;
  width:min(360px,100%);
  min-height:42px;
  border:2px solid #ffd27a;
  background:
    linear-gradient(180deg,#ffe08c 0%,#ffb13b 42%,#b86c1d 100%);
  color:#1b0d03;
  font-size:15px;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:
    0 0 18px rgba(255,177,59,.38),
    inset 0 1px rgba(255,255,220,.55),
    inset 0 -5px 10px rgba(75,32,6,.38),
    0 3px 0 #3b210d;
}
.elf-tree-pick:hover,
.elf-tree-pick:focus{
  filter:brightness(1.14);
  box-shadow:
    0 0 24px rgba(255,177,59,.55),
    inset 0 1px rgba(255,255,220,.65),
    inset 0 -5px 10px rgba(75,32,6,.38),
    0 3px 0 #3b210d;
}

/* Whisperwood item image icons: Gems + T1 Kupfer-Gear */
.item-icon-img{
  width:52px;
  height:52px;
  object-fit:contain;
  object-position:center center;
  display:block;
  background:transparent;
  border:0;
  box-shadow:none;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.65));
  pointer-events:none;
}
.ii-item-icon-v3{
  width:54px;
  height:44px;
  display:grid;
  place-items:center;
  overflow:visible;
}
.ii-slot-v3 .ii-item-icon-v3 .item-icon-img{
  width:48px;
  height:48px;
}
.ii-bag-item-v3 .ii-item-icon-v3 .item-icon-img{
  width:56px;
  height:56px;
}
@media(max-width:860px){
  .ii-item-icon-v3{width:50px;height:40px;}
  .ii-item-icon-v3 .item-icon-img{width:48px;height:48px;}
  .ii-slot-v3 .ii-item-icon-v3 .item-icon-img{width:44px;height:44px;}
  .ii-bag-item-v3 .ii-item-icon-v3 .item-icon-img{width:52px;height:52px;}
}

/* V-ZONES-2COL: Gebietsauswahl 1-10 links, 11-20 rechts */
.tier-popover{
  width:min(860px,96vw);
}
#tierModal .tier-popover{
  max-height:calc(100dvh - 42px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#b98131 #160f09;
}
#tierModal .tier-popover::-webkit-scrollbar{width:11px}
#tierModal .tier-popover::-webkit-scrollbar-track{background:linear-gradient(180deg,#17100a,#090604);border-left:1px solid rgba(213,170,82,.22)}
#tierModal .tier-popover::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d3a44c,#8f5c20);border:2px solid #17100a;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(255,229,155,.24)}
#tierModal .tier-popover::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#e1b85d,#a76c28)}
.tier-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.tier-column{
  display:grid;
  gap:7px;
  min-width:0;
}
.tier-column-title{
  margin:0 0 3px;
  padding:5px 7px;
  border:1px solid rgba(255,181,62,.24);
  background:rgba(0,0,0,.22);
  color:var(--gold-bright);
  font:bold 10px "Courier New",monospace;
  letter-spacing:.13em;
  text-transform:uppercase;
  text-align:center;
  text-shadow:0 1px 0 #000;
}
.tier-column-forbidden .tier-column-title{
  border-color:rgba(185,22,34,.34);
  color:#ffd0bd;
  background:rgba(80,8,8,.18);
}
.tier-option.endgame-zone{
  border-color:#5f3a35;
  outline-color:rgba(185,22,34,.28);
  background:radial-gradient(circle at 15% 12%,rgba(185,22,34,.10),transparent 32%),linear-gradient(145deg,#1b1111,#0b0808 70%,#050303);
}
.tier-option.final-zone{
  border-color:#c49a3c;
  outline-color:rgba(255,211,102,.55);
  box-shadow:0 0 16px rgba(255,177,59,.18),inset 0 0 0 1px rgba(255,222,150,.18);
}
@media(max-width:860px){
  .tier-popover{
    width:min(420px,94vw);
    max-height:calc(100vh - 42px);
    overflow-y:auto;
  }
  .tier-list{
    grid-template-columns:1fr;
    gap:9px;
  }
}



/* V-ZONE-BANNER-ZONE2-RATIO: Alle Zonenbanner nutzen das Verhältnis von Zone 2 (1687x932) */
.zone-banner-wrap{
  aspect-ratio:1687/932 !important;
  height:auto !important;
}

.zone-banner{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}

/* VILLAGE-PANEL-BANNERS-MINIMAL: Bilder direkt in bestehende Gebäude-Panels, keine Extra-Header */
.building-panel-banner{
  display:block;
  width:100%;
  aspect-ratio:1687/932;
  height:auto;
  object-fit:cover;
  object-position:center center;
  margin:0 0 12px;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:#050403;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),0 8px 18px rgba(0,0,0,.48);
}
@media(max-width:860px){
  .building-panel-banner{margin-bottom:9px;}
}

/* VILLAGE-BUILDING-HEADER-FINAL: Dorfgebäude nutzen denselben Header-Aufbau wie Zonen, Panels bleiben darunter getrennt */
.village-building-header{
  margin-bottom:14px;
}
.village-building-banner-wrap{
  margin-bottom:10px;
}
.village-building-banner{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.village-building-header + .profession-panel,
.village-building-header + .tavern-panel,
.village-building-header + .village-panel,
.village-building-header + .placeholder-panel{
  margin-top:0;
}


/* Dungeon navigation */
.dungeon-header-actions{
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.dungeon-exit-btn{
  width:auto;
  min-width:190px;
  margin-top:0;
  padding:7px 14px;
  font-size:13px;
}
.bottom-nav.dungeon-mode #enterVillageNav{
  display:none !important;
  pointer-events:none;
}

.bottom-nav.dungeon-mode{
  justify-content:center;
  gap:10px;
}
.bottom-nav.dungeon-mode #globalTierNav,
.bottom-nav.dungeon-mode #enterVillageNav,
.bottom-nav.dungeon-mode .forest-only,
.bottom-nav.dungeon-mode .village-only{
  display:none !important;
  pointer-events:none;
}
.bottom-nav.dungeon-mode #inventoryNav,
.bottom-nav.dungeon-mode #optionsNav{
  width:min(110px,34vw);
  max-width:110px;
}


/* Dungeon completion: both halves share one compact dark panel skin.
   The chest illustration is an icon, never an unbounded image/card. */
.dungeon-chest-modal{position:fixed;inset:0;z-index:80;display:none;place-items:center}
.dungeon-chest-modal.open{display:grid}
.dungeon-chest-box{position:relative}

.dungeon-chest-close{position:absolute;}
.dungeon-chest-kicker{cursor:grab;user-select:none;touch-action:none}
.dungeon-chest-kicker.dragging{cursor:grabbing}
.dungeon-chest-box.dragging{will-change:transform}
.dungeon-chest-icon-large{display:grid;place-items:center;outline-offset:-5px}
.dungeon-chest-icon-large img{display:block;object-fit:contain}
.dungeon-chest-result-label[hidden]{display:none!important}
.dungeon-chest-open-btn:disabled{cursor:not-allowed;opacity:.58}

.dungeon-clear-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;margin:10px 0}
.dungeon-clear-panels.no-chest{grid-template-columns:1fr}
.dungeon-clear-panels>.dungeon-summary-panel,
.dungeon-clear-panels>.dungeon-chest-panel{
  box-sizing:border-box;min-width:0;min-height:148px;height:148px;
  padding:12px;position:relative;overflow:hidden;
  border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.28);outline-offset:-6px;
  background:radial-gradient(ellipse at 12% 16%,#33271b,#17110e 55%,#0b0908);
  box-shadow:inset 0 0 20px #0008;color:#c6a06f;
  font:11px/1.35 'Courier New',Courier,monospace;
}
.dungeon-summary-panel .dungeon-report-head{margin:0 0 7px}
.dungeon-summary-panel .dungeon-report-head strong{display:block;color:#70d478;font:700 13px/1.15 'Courier New',Courier,monospace;letter-spacing:.03em;text-transform:uppercase}
.dungeon-clear-panels.failed .dungeon-summary-panel .dungeon-report-head strong{color:#ff8d7f}
.dungeon-summary-panel .dungeon-report-head span{display:block;margin-top:3px;color:#b49161;font:11px/1.25 'Courier New',Courier,monospace}
.dungeon-summary-lines{display:grid;gap:3px;color:#c6a06f;font:11px/1.28 'Courier New',Courier,monospace}
.dungeon-summary-lines b{color:#f5d59b}
.dungeon-chest-panel{display:flex;align-items:stretch}
.dungeon-chest-panel .dungeon-chest-reward-btn{
  box-sizing:border-box;appearance:none;display:flex;align-items:center;gap:12px;
  width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;
  border:0;outline:0;background:transparent;color:inherit;text-align:left;
  cursor:pointer;font:11px/1.35 'Courier New',Courier,monospace;
}
.dungeon-chest-panel .dungeon-chest-reward-icon{
  flex:0 0 92px;width:92px;height:92px;display:grid;place-items:center;
  box-sizing:border-box;border:1px solid #9f7743;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 3px #100c09;
}
.dungeon-chest-panel .dungeon-chest-reward-icon img{
  box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;display:block;object-fit:contain;
}
.dungeon-chest-panel .dungeon-chest-reward-copy{display:flex;flex:1 1 auto;min-width:0;height:92px;max-height:92px;align-self:center;justify-content:flex-start;flex-direction:column;gap:6px;font:11px/1.35 'Courier New',Courier,monospace}
.dungeon-chest-panel .dungeon-chest-reward-copy strong{display:block;color:#f0d09a;font:700 13px/1.2 Georgia,'Times New Roman',serif;text-transform:uppercase;overflow-wrap:break-word}
.dungeon-chest-panel .dungeon-chest-reward-copy em{display:block;color:#c6b394;font:11px/1.35 'Courier New',Courier,monospace;font-style:italic}
.dungeon-chest-panel.opened .dungeon-chest-reward-btn{opacity:.85}
.dungeon-detail-report,.dungeon-combat-report{margin:8px 0;border:1px solid rgba(255,181,62,.18);background:rgba(0,0,0,.16);padding:6px 8px}
.dungeon-detail-report summary,.dungeon-combat-report summary{cursor:pointer;color:#b49161;font:bold 11px 'Courier New',monospace;letter-spacing:.04em;text-transform:uppercase}
.dungeon-detail-report .dungeon-report-grid{margin-top:7px}
.dungeon-summary-panel,.dungeon-detail-report,.dungeon-combat-report,.dungeon-room-log,.dungeon-room-log-entry{font-family:'Courier New',Courier,monospace}
.dungeon-report-grid-full{grid-column:1/-1}
@media(max-width:860px){
  .dungeon-clear-panels{grid-template-columns:1fr;gap:7px}
  .dungeon-clear-panels>.dungeon-summary-panel,.dungeon-clear-panels>.dungeon-chest-panel{min-height:130px;height:130px;padding:9px 10px}
  .dungeon-chest-panel .dungeon-chest-reward-icon{flex-basis:82px;width:82px;height:82px}
  .dungeon-chest-panel .dungeon-chest-reward-copy{height:82px;max-height:82px}
}

/* DEV mobile unlock: Optionen-Button 3 Sekunden halten */
#optionsNav {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.nav-btn.dev-longpress-holding {
  border-color: var(--gold-bright);
  filter: brightness(1.18);
  box-shadow: 0 0 16px rgba(255, 177, 59, .35), inset 0 0 0 1px rgba(255, 222, 150, .24), inset 0 -6px 12px rgba(0,0,0,.46);
}
.nav-btn.dev-longpress-holding::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--gold-bright);
  pointer-events: none;
  animation: devOptionsHoldPulse 3s linear forwards;
}
@keyframes devOptionsHoldPulse {
  from { opacity: .25; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.03); }
}


/* LOREHEIM PATCH: stabile Optionen-/Kompendium-Navigation */
.options-view,
.compendium-view{
  display:none;
  position:relative;
  padding:22px clamp(12px,2.4vw,24px) 18px;
  background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px);
  overflow-y:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.options-view::-webkit-scrollbar,
.compendium-view::-webkit-scrollbar{width:0;height:0;display:none;}
.options-view.active-view,
.compendium-view.active-view{display:block;}
.overlay-panel-shell,
.compendium-panel{
  position:relative;
  overflow:visible;
}

.overlay-close-x{
  position:absolute !important;
  right:-14px !important;
  top:-14px !important;
  z-index:50 !important;
  overflow:visible !important;
}
.options-title{margin-top:2px;}
.options-grid{
  grid-template-columns:1fr !important;
}
.option-card-wide{grid-column:auto;}
.compendium-options-back{
  width:auto;
  margin:0 0 12px 0;
  padding:7px 11px;
  font-size:12px;
}
.compendium-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.compendium-total{
  min-width:120px;
  padding:8px 10px;
  border:1px solid rgba(255,181,62,.35);
  background:rgba(0,0,0,.22);
  text-align:center;
  color:var(--gold-bright);
  font-family:"Courier New",monospace;
}
.compendium-total b{display:block;font-size:18px;line-height:1.1;}
.compendium-total span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#b49161;}
.compendium-zone-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.compendium-zone-card{
  width:100%;
  text-align:left;
  cursor:pointer;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  padding:9px;
  color:#f5d59b;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38);
  font-family:inherit;
}
.compendium-zone-img{width:100%;aspect-ratio:1687/932;object-fit:cover;display:block;border:1px solid #6f5535;margin-bottom:7px;}
.compendium-zone-meta,.compendium-progress-text{display:block;color:#b49161;font:11px "Courier New",monospace;}
.compendium-zone-card strong{display:block;color:#f5d59b;font-size:19px;text-shadow:0 2px #000;}
.compendium-mini-bar{display:block;height:8px;margin-top:6px;border:1px solid #3b3027;background:#090705;overflow:hidden;}
.compendium-mini-bar i{display:block;height:100%;background:linear-gradient(90deg,#6b3d12,#d99024,#ffb13b);}
.compendium-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;}
.compendium-group:first-child{grid-column:1;grid-row:1 / span 10;}
.compendium-group:not(:first-child){grid-column:2;}
.compendium-group{border:1px solid rgba(255,181,62,.22);padding:10px;background:rgba(0,0,0,.14);}
.compendium-group h3{margin:0 0 8px;color:#f5d59b;text-transform:uppercase;text-shadow:0 2px #000;}
.compendium-monster-grid{display:grid;gap:8px;}
.compendium-monster-card{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;width:100%;min-height:82px;text-align:left;border:2px solid #5d462b;background:linear-gradient(145deg,#15110e,#090706 70%,#030302);color:#f5d59b;padding:8px;cursor:pointer;font-family:inherit;}
.compendium-monster-img{width:64px;height:64px;display:grid;place-items:center;border:1px solid #6f5535;background:#080705;overflow:hidden;}
.compendium-monster-img img{width:100%;height:100%;object-fit:contain;display:block;}
.compendium-monster-info b{display:block;font-size:15px;}.compendium-monster-info small{display:block;color:#b49161;font:11px "Courier New",monospace;}
.compendium-zone-progress{text-align:center;color:var(--gold-bright);font:bold 12px "Courier New",monospace;margin:0 0 10px;text-transform:uppercase;letter-spacing:.08em;}
.compendium-detail{display:grid;grid-template-columns:150px 1fr;gap:16px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:14px;background:rgba(0,0,0,.18);}
.compendium-detail-img{width:140px;height:140px;display:grid;place-items:center;border:1px solid #6f5535;background:#080705;}.compendium-detail-img img{max-width:100%;max-height:100%;object-fit:contain;}
.compendium-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;}.compendium-detail-grid div{border:1px solid rgba(255,181,62,.22);padding:7px;background:rgba(0,0,0,.18)}.compendium-detail-grid dt{color:#b49161;font:10px "Courier New",monospace;text-transform:uppercase}.compendium-detail-grid dd{margin:2px 0 0;color:#f5d59b}
@media(max-width:860px){
  .compendium-zone-grid,.compendium-groups{grid-template-columns:1fr;}
  .compendium-group:first-child,.compendium-group:not(:first-child){grid-column:auto;grid-row:auto;}
  .compendium-topline{display:block;}.compendium-total{margin:0 0 10px;}
  .compendium-detail{grid-template-columns:1fr;}.compendium-detail-img{width:120px;height:120px;}
}


/* LOREHEIM PATCH: stabile X-Buttons + scrollbares Kompendium/Optionen ohne sichtbare Scrollbar */
.options-view,
.compendium-view{
  display:none;
  position:relative;
  max-height:calc(100vh - 88px);
  overflow-y:auto !important;
  overflow-x:visible !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
.options-view::-webkit-scrollbar,
.compendium-view::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}
.options-view.active-view,
.compendium-view.active-view{display:block !important;}
.options-panel.overlay-panel-shell,
.compendium-panel{
  position:relative !important;
  overflow:visible !important;
}

.overlay-close-x,
.compendium-close-x{
  position:absolute !important;
  right:-14px !important;
  top:-14px !important;
  z-index:999 !important;
  overflow:visible !important;
}
.options-title{
  margin-top:0 !important;
}
.options-grid{
  grid-template-columns:1fr !important;
}
@media(max-width:860px){
  .overlay-close-x,
  .compendium-close-x{right:-8px !important; top:-12px !important;}
}


/* LOREHEIM PATCH: Kompendium-Header clean + Vorschau leicht abgedunkelt */
.compendium-main-title{
  margin:0 0 14px !important;
  text-align:center !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  letter-spacing:.13em !important;
  text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.45) !important;
}
.compendium-zone-img{
  opacity:.9;
}
.compendium-options-back{
  position:relative;
  z-index:5;
}


/* V-SKILL-HUB: zentrale Fertigkeiten-Anzeige statt Level-Badges in Aktionskarten */
.skill-head .level{
  display:none !important;
}

.skill-head{
  justify-content:flex-start;
}

.skill .name{
  min-width:0;
  width:100%;
}

#skillHubWrap{
  position:fixed;
  left:max(12px,calc((100vw - 920px) / 2 + 12px));
  top:14px;
  transform:none;
  z-index:40;
  font-family:Georgia,"Times New Roman",serif;
}

#skillHubButton{
  width:48px;
  height:48px;
  border:3px solid #5d5a54;
  outline:1px solid rgba(230,230,220,.42);
  outline-offset:-6px;
  border-radius:0;
  background:
    radial-gradient(circle at 50% 18%,rgba(230,230,220,.16),transparent 36%),
    linear-gradient(145deg,#25272b,#090909 72%);
  color:#f7e8c8;
  font-size:22px;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 0 0 4px rgba(0,0,0,.50),0 8px 20px rgba(0,0,0,.55);
  position:relative;
}

#skillHubCount{
  position:absolute;
  right:-7px;
  top:-7px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid #f1d3a3;
  background:#8c1820;
  color:#fff;
  font:bold 11px "Courier New",monospace;
  box-shadow:0 0 0 2px #120807;
}

#skillHubPanel{
  display:none;
  position:absolute;
  left:0;
  top:56px;
  transform:none;
  width:min(380px,94vw);
  max-height:calc(100vh - 115px);
  overflow-y:auto;
  border:3px solid #5d5a54;
  outline:1px solid rgba(230,230,220,.32);
  outline-offset:-6px;
  border-radius:0;
  background:linear-gradient(145deg,#17191c,#080808 75%);
  color:#f7e8c8;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 18px 40px rgba(0,0,0,.72);
  padding:10px;
}

#skillHubPanel.open,
#skillHubWrap:hover #skillHubPanel,
#skillHubWrap:focus-within #skillHubPanel{
  display:block;
}

.skill-hub-title{
  color:#e7e0cc;
  text-transform:uppercase;
  letter-spacing:.12em;
  font:bold 12px "Courier New",monospace;
  border-bottom:1px solid rgba(230,230,220,.22);
  padding:0 0 7px;
  margin:0 0 8px;
  text-align:center;
}

.skill-hub-row{
  display:grid;
  grid-template-columns:28px 1fr auto;
  gap:5px 8px;
  align-items:center;
  border:1px solid rgba(230,230,220,.18);
  background:rgba(0,0,0,.22);
  padding:7px 8px;
  margin-top:6px;
}

.skill-hub-row span{
  font-size:18px;
  grid-row:1/3;
  text-align:center;
}

.skill-hub-row b{
  font-size:13px;
  color:#f5d59b;
  text-shadow:0 1px #000;
}

.skill-hub-row strong{
  color:var(--gold-bright);
  font:bold 12px "Courier New",monospace;
  white-space:nowrap;
}

.skill-hub-row strong.profession-epic-boost{color:#7ae69b;}

.skill-hub-row em{
  font:11px "Courier New",monospace;
  color:#c6a06f;
  font-style:normal;
  grid-column:2/4;
}

@media(max-width:860px){
  #skillHubWrap{
    left:10px;
    top:9px;
  }
  #skillHubButton{width:42px;height:42px;font-size:19px}
  #skillHubPanel{
    left:0;
    top:49px;
    width:min(350px,calc(100vw - 20px));
  }
}


/* Craft quantity second layer for smithing and apothecary */
.craft-quantity-panel{border-color:#c18a42;box-shadow:inset 0 0 0 1px rgba(255,221,145,.26),inset 0 0 0 4px rgba(8,6,4,.76),inset 0 0 24px rgba(255,156,44,.075),0 0 18px rgba(255,145,37,.16),0 6px 14px rgba(0,0,0,.38)}
.craft-quantity-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin:8px 0}
.craft-quantity-input{width:100%;min-height:36px;padding:7px 9px;border:2px solid #6f5535;background:linear-gradient(#18120d,#090706);color:#f5d59b;font:bold 13px "Courier New",monospace;box-shadow:inset 0 0 0 1px rgba(255,215,139,.14)}
.craft-quantity-mini{width:auto!important;min-width:76px!important;margin:0!important}
.craft-quantity-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
@media(max-width:860px){.craft-quantity-row{gap:5px}.craft-quantity-actions{gap:5px}.craft-quantity-mini{min-width:62px!important}}


/* Tier-/Berufs-Gates */
.tier-option.zone-locked{
  cursor:not-allowed;
  opacity:.68;
  filter:grayscale(.45) brightness(.72);
}
.tier-option.zone-locked .tier-name,
.tier-option.zone-locked .tier-rank{
  color:#9a7a51;
}
.tier-option.zone-preview.zone-locked{
  opacity:.78;
}
.tier-option.zone-unknown{
  position:relative;
  opacity:.42;
  filter:grayscale(.85) brightness(.42);
}
.tier-option.zone-unknown::after{
  content:"Unbekannte Zone";
  position:absolute;
  inset:2px;
  display:grid;
  place-items:center;
  background:linear-gradient(90deg,rgba(0,0,0,.66),rgba(0,0,0,.42),rgba(0,0,0,.66));
  color:#d8c39e;
  font:bold 10px "Courier New",monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-shadow:0 2px 0 #000;
  pointer-events:none;
}
.tier-option:disabled{
  pointer-events:auto;
}
.skill.locked-action,.craft:has(> .button:disabled){
  opacity:.76;
  filter:grayscale(.25);
}
.skill.locked-action .button,.craft .button:disabled{
  cursor:not-allowed;
  filter:grayscale(.5) brightness(.75);
}


/* Fix: Nav-Beschriftungen bleiben immer exakt auf gleicher Höhe */
.bottom-nav .nav-btn{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 4px 13px;
}

.bottom-nav .nav-btn .nav-label{
  position:absolute;
  left:2px;
  right:2px;
  bottom:4px;
  display:block;
  height:8px;
  line-height:8px;
  text-align:center;
  margin:0;
  z-index:3;
  pointer-events:none;
}

.bottom-nav .nav-btn .nav-icon-img,
.bottom-nav .nav-btn .pixel-icon,
.bottom-nav .nav-btn .dungeon-nav-icon{
  position:absolute;
  top:5px;
  left:50%;
  transform:translateX(-50%);
  max-width:34px;
  max-height:31px;
  object-fit:contain;
  z-index:2;
}

.bottom-nav .nav-btn .nav-icon-img.wide{
  max-width:38px;
  max-height:30px;
}

.bottom-nav .nav-btn .nav-icon-img.tall{
  max-width:31px;
  max-height:34px;
}

.bottom-nav .nav-btn .nav-icon-img.large{
  max-width:35px;
  max-height:34px;
}

.bottom-nav .nav-btn.tier-global{
  padding-top:3px;
}

.bottom-nav .tier-global .tier-nav-rank{
  position:absolute;
  top:3px;
  left:50%;
  transform:translateX(-50%);
  z-index:4;
}

.bottom-nav .tier-global .nav-icon-img{
  top:15px;
  max-width:28px;
  max-height:24px;
}

.bottom-nav .tier-global .nav-label{
  bottom:3px;
  height:8px;
  line-height:8px;
}

@media(max-width:860px){
  .bottom-nav .nav-btn{
    padding-bottom:12px;
  }
  .bottom-nav .nav-btn .nav-label{
    bottom:3px;
    height:8px;
    line-height:8px;
  }
  .bottom-nav .nav-btn .nav-icon-img,
  .bottom-nav .nav-btn .pixel-icon,
  .bottom-nav .nav-btn .dungeon-nav-icon{
    top:4px;
    max-width:31px;
    max-height:29px;
  }
}


/* Icon-Feintuning */
#enterVillageNav .nav-icon-img{
  max-width:21px !important;
  max-height:24px !important;
}

#optionsNav .nav-icon-img{
  max-width:28px !important;
  max-height:27px !important;
}


/* Final nav tweaks */
#enterVillageNav .nav-icon-img{
  max-width:24px !important;
  max-height:27px !important;
}

#optionsNav .nav-icon-img{
  max-width:26px !important;
  max-height:25px !important;
}

#globalTierNav{
  align-items:flex-start !important;
}

#globalTierNav .tier-nav-rank{
  left:auto !important;
  right:5px !important;
  top:3px !important;
  transform:none !important;
  text-align:right;
}

#globalTierNav .nav-label{
  content:normal;
}


/* Zone-Button final tuning */
#globalTierNav .nav-icon-img{
  max-width:36px !important;
  max-height:31px !important;
  top:10px !important;
}


/* Final vertical icon correction */
#globalTierNav .nav-icon-img{
  top:3px !important;
}
#dungeonNav .nav-icon-img{
  top:-3px !important;
}


/* Micro icon tweaks */
#globalTierNav .nav-icon-img{
  top:8px !important; /* statt 7px höher jetzt nur 2px höher */
}

#dungeonNav .nav-icon-img{
  top:2px !important; /* statt 7px höher jetzt nur 2px höher */
}

#enterVillageNav .nav-icon-img{
  top:7px !important; /* Dorf 2px tiefer */
}

#tavernNav .nav-icon-img{
  max-width:28px !important;
  max-height:31px !important;
}

#apothecaryNav .nav-icon-img{
  max-width:29px !important;
  max-height:32px !important;
}


/* Whisperwood/Lorheim Onboarding v1 */
.ww-intro-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 12%,rgba(75,111,70,.22),transparent 34rem),rgba(0,0,0,.88);backdrop-filter:blur(2px)}
.ww-intro-panel{width:min(520px,94vw);padding:18px 18px 20px;border:4px solid #2f2a25;outline:1px solid rgba(213,151,73,.45);outline-offset:-7px;background:radial-gradient(circle at 50% 12%,rgba(63,94,56,.24),transparent 45%),linear-gradient(145deg,#19130f,#080706 72%,#030303);box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88),inset 0 0 32px rgba(255,177,59,.08);text-align:center}
.ww-intro-logo-wrap{width:min(220px,58vw);margin:0 auto 8px;display:grid;place-items:center}.ww-intro-logo{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(0,0,0,.72))}
.ww-intro-kicker{margin:0 0 3px;color:#b49161;font:bold 10px "Courier New",monospace;letter-spacing:.18em;text-transform:uppercase}.ww-intro-panel h1{margin:0 0 9px;color:var(--gold-bright);text-transform:uppercase;letter-spacing:.16em;font-size:clamp(24px,5vw,42px);text-shadow:0 2px 0 #000,0 0 18px rgba(255,177,59,.42)}
.ww-intro-copy{max-width:430px;margin:0 auto 9px;color:#d7b884;font:13px/1.45 "Courier New",monospace}.ww-intro-copy-small{color:#bfa071;font-size:12px}.ww-intro-start{max-width:260px;margin:12px auto 0;display:block}
.ww-guide-overlay{position:fixed;inset:0;z-index:110;pointer-events:none}.ww-guide-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42)}
.ww-guide-card{position:fixed;z-index:114;pointer-events:auto;padding:13px 14px;border:3px solid #6f5535;outline:1px solid rgba(213,151,73,.42);outline-offset:-6px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.12),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:0 16px 38px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,215,139,.14)}
.ww-guide-kicker{margin:0 0 5px;color:#b49161;font:bold 10px "Courier New",monospace;letter-spacing:.12em;text-transform:uppercase}.ww-guide-card h2{margin:0 0 7px;color:#f5d59b;font-size:18px;text-shadow:0 2px #000}.ww-guide-card p{margin:0 0 11px;color:#c6a06f;font:12px/1.42 "Courier New",monospace}.ww-guide-actions{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.ww-guide-next{margin:0}.ww-guide-skip{border:0;background:transparent;color:#9a7a51;font:bold 11px "Courier New",monospace;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ww-tutorial-highlight{position:relative;z-index:113!important;animation:wwTutorialPulse 1.15s ease-in-out infinite;box-shadow:0 0 0 3px rgba(255,177,59,.76),0 0 24px rgba(255,177,59,.52),inset 0 0 0 1px rgba(255,235,160,.26)!important}
@keyframes wwTutorialPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.22)}}
@media(max-width:860px){.ww-intro-panel{padding:14px 13px 16px}.ww-intro-logo-wrap{width:min(170px,54vw)}.ww-intro-copy{font-size:11.5px}.ww-guide-card h2{font-size:16px}.ww-guide-actions{grid-template-columns:1fr}.ww-guide-skip{padding:5px 0}}


/* Dev Tools in Optionen */
.devtools-option-card{
  border-color:#7a5930;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.13),transparent 36%),linear-gradient(145deg,#1f1710,#0b0908 70%,#050403);
}
.devtools-option-card h3{color:var(--gold-bright)}
#openDevToolsBtn{
  border-color:#b37a2a;
  box-shadow:inset 0 1px rgba(255,235,185,.25),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 12px rgba(255,177,59,.14);
}


.craft-head{position:relative;}
.craft-tier-mini{
  display:inline-grid;place-items:center;min-width:25px;height:16px;padding:0 5px;
  border:1px solid rgba(255,220,160,.55);background:#8f1a16;color:#fff4d8;
  font:bold 9px "Courier New",monospace;letter-spacing:.05em;text-shadow:0 1px #000;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25),0 1px 0 rgba(0,0,0,.5);
}
.potion-craft .craft-head{align-items:center;}
.recipe-meta-sub{margin-top:-4px;color:#a98a5f;font-size:11px}
.potion-craft .name .craft-tier-mini{margin:0 1px 0 -1px;flex:0 0 auto}


/* Apotheke: gleich hohe Trank-Panels und sauber ausgerichtete Brauen-Buttons */
.potion-craft{
  min-height:188px;
  display:flex;
  flex-direction:column;
}
.potion-craft .craft-head{
  min-height:34px;
}
.potion-craft .recipe-meta{
  min-height:28px;
}
.potion-craft .recipe-meta-sub{
  min-height:16px;
  margin-bottom:7px;
}
.potion-craft .bar-label{
  margin-top:auto;
}
.potion-craft > .button{
  margin-top:8px;
}
.potion-craft.craft-quantity-panel{
  min-height:188px;
}
.potion-craft.craft-quantity-panel .craft-quantity-row{
  margin-top:auto;
}
.potion-craft.craft-quantity-panel .craft-quantity-actions{
  margin-top:0;
}

@media(max-width:860px){
  .potion-craft{
    min-height:176px;
  }
  .potion-craft.craft-quantity-panel{
    min-height:176px;
  }
}

/* Schmiede: große Item-Icons, rechter Textblock und saubere Panel-Ausrichtung */
.smith-craft-card{
  min-height:218px;
  display:flex;
  flex-direction:column;
}
.smith-craft-layout{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:12px;
  align-items:start;
  min-width:0;
  flex:1 1 auto;
}
.smith-craft-icon{
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
  align-self:start;
  overflow:hidden;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.32);
  outline-offset:-5px;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 18px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);
  font-size:44px;
  line-height:1;
}
.smith-craft-icon img,
.smith-craft-icon .item-icon-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  image-rendering:pixelated;
}
.smith-craft-body{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.smith-craft-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  margin-bottom:7px;
}
.smith-craft-title-row .name{
  min-width:0;
  flex:1 1 auto;
  flex-wrap:wrap;
  align-items:center;
  line-height:1.14;
}
.smith-craft-title-row .recipe-xp{
  flex:0 0 auto;
}
.smith-craft-card .recipe-meta{
  min-height:28px;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}
.smith-craft-card .recipe-meta-sub{
  min-height:16px;
  margin-bottom:8px;
}
.smith-craft-card .smith-progress-row{
  margin-top:auto;
  display:flex;
  justify-content:flex-end;
  color:#b49161;
  font-family:"Courier New",monospace;
  font-size:11px;
  line-height:1;
}
.smith-craft-card .progress-shell{
  margin-top:4px;
}
.smith-craft-card > .button{
  margin-top:10px;
}
.smith-craft-card .name .craft-tier-mini{
  margin:0 1px 0 0;
  flex:0 0 auto;
}
.smith-craft-card.craft-quantity-panel .craft-quantity-row{
  margin-top:auto;
}
.smith-craft-card.craft-quantity-panel .craft-quantity-actions{
  margin-top:0;
}
@media(max-width:860px){
  .smith-craft-card{
    min-height:208px;
  }
  .smith-craft-layout{
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
  }
  .smith-craft-icon{
    width:82px;
    height:82px;
    font-size:36px;
  }
}


/* Final Craft-Panel Layout: gemeinsame Struktur für Schmiede + Apotheke */
.craft-card-layout{
  min-height:174px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.craft-card-layout .craft-visual-row{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:12px;
  align-items:start;
  min-width:0;
  flex:0 0 auto;
}
.craft-card-layout .craft-large-icon{
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.32);
  outline-offset:-5px;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 18px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);
  font-size:46px;
  line-height:1;
}
.craft-card-layout .craft-large-icon img,
.craft-card-layout .craft-large-icon .item-icon-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  image-rendering:pixelated;
}
.craft-card-layout .craft-info-column{
  min-width:0;
  height:104px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.craft-card-layout .craft-title-row{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  margin-bottom:6px;
}
.craft-card-layout .craft-title-text{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:clamp(14px,1.55vw,18px)!important;
  line-height:1!important;
}
.craft-card-layout .craft-item-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.craft-card-layout .recipe-xp{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:10px;
}
.craft-card-layout .recipe-meta,
.craft-card-layout .recipe-meta-sub{
  width:100%;
  min-height:0!important;
  margin:0 0 5px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  line-height:1.18;
}
.craft-card-layout .recipe-meta{
  font-size:10.5px;
}
.craft-card-layout .recipe-meta-sub{
  color:#a98a5f;
  font-size:10.5px;
}
.craft-card-layout .craft-progress-block{
  margin-top:auto;
  width:100%;
}
.craft-card-layout .craft-timer-row,
.craft-card-layout .smith-progress-row{
  height:12px;
  margin:0 0 3px!important;
  display:flex;
  justify-content:flex-end;
  color:#b49161;
  font-family:"Courier New",monospace;
  font-size:10.5px;
  line-height:1;
}
.craft-card-layout .progress-shell{
  margin:0!important;
  height:12px;
}
.craft-card-layout:not(.world-npc-dual-card) > .button{
  margin-top:6px!important;
}
.craft-card-layout .craft-tier-mini{
  flex:0 0 auto;
  min-width:23px;
  height:15px;
  padding:0 4px;
  font-size:8px;
}
/* Alte systemspezifische Abstände neutralisieren */
.potion-craft,
.smith-craft-card{
  min-height:174px!important;
}
.potion-craft .craft-head,
.potion-craft .bar-label,
.smith-craft-card .craft-head{
  display:none!important;
}
.smith-craft-layout,
.potion-craft-layout{
  flex:0 0 auto!important;
}
.smith-craft-icon,
.potion-craft-icon{
  align-self:start;
}
.smith-craft-title-row .name,
.potion-craft-title-row .name{
  flex-wrap:nowrap!important;
}
.craft-card-layout.craft-quantity-panel .craft-visual-row{
  flex:0 0 auto;
}
.craft-card-layout.craft-quantity-panel .craft-info-column{
  height:104px;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-row{
  margin-top:8px!important;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-actions{
  margin-top:6px!important;
}
@media(max-width:860px){
  .craft-grid{grid-template-columns:1fr!important;}
  .craft-card-layout,
  .potion-craft,
  .smith-craft-card{
    min-height:154px!important;
  }
  .craft-card-layout .craft-visual-row{
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
  }
  .craft-card-layout .craft-large-icon{
    width:82px;
    height:82px;
    font-size:38px;
  }
  .craft-card-layout .craft-info-column,
  .craft-card-layout.craft-quantity-panel .craft-info-column{
    height:82px;
  }
  .craft-card-layout .craft-title-text{
    font-size:clamp(13px,4.4vw,16px)!important;
  }
  .craft-card-layout .recipe-xp{
    font-size:9px;
  }
  .craft-card-layout .recipe-meta,
  .craft-card-layout .recipe-meta-sub{
    font-size:9.5px;
    margin-bottom:4px!important;
  }
  .craft-card-layout .craft-timer-row,
  .craft-card-layout .smith-progress-row{
    height:11px;
    margin-bottom:2px!important;
    font-size:9.5px;
  }
  .craft-card-layout .progress-shell{
    height:11px;
  }
  .craft-card-layout > .button{
    margin-top:6px!important;
  }
}
@media(max-width:390px){
  .craft-card-layout .craft-visual-row{
    grid-template-columns:74px minmax(0,1fr);
    gap:8px;
  }
  .craft-card-layout .craft-large-icon{
    width:74px;
    height:74px;
    font-size:34px;
  }
  .craft-card-layout .craft-info-column,
  .craft-card-layout.craft-quantity-panel .craft-info-column{
    height:74px;
  }
  .craft-card-layout .craft-title-text{
    font-size:13px!important;
  }
  .craft-card-layout .craft-tier-mini{
    min-width:21px;
    height:14px;
    font-size:7.5px;
  }
  .craft-card-layout .recipe-meta,
  .craft-card-layout .recipe-meta-sub{
    font-size:9px;
  }
}

/* Fix: Mengen-Dialog darf nicht vom normalen Craft-Card-Layout abgeschnitten werden */
.craft-card-layout.craft-quantity-panel{
  min-height:0!important;
}
.craft-card-layout.craft-quantity-panel .craft-visual-row{
  margin-bottom:8px;
}
.craft-card-layout.craft-quantity-panel .craft-info-column{
  height:104px!important;
  overflow:hidden;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-row{
  margin:8px 0 7px!important;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-actions{
  margin-top:0!important;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-actions .button{
  margin-top:0!important;
}
@media(max-width:860px){
  .craft-card-layout.craft-quantity-panel .craft-info-column{
    height:92px!important;
  }
}
@media(max-width:390px){
  .craft-card-layout.craft-quantity-panel .craft-info-column{
    height:74px!important;
  }
}


/* Craft info lines v2: 3 fixed lines + clean quantity info */
.craft-card-layout .craft-info-column{
  height:104px;
}
.craft-card-layout .recipe-meta,
.craft-card-layout .recipe-meta-sub,
.craft-card-layout .recipe-meta-materials,
.craft-card-layout .recipe-meta-stat{
  width:100%;
  min-height:13px!important;
  height:13px!important;
  margin:0 0 3px!important;
  padding:0!important;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  line-height:13px!important;
  font-size:10.5px!important;
}
.craft-card-layout .recipe-meta-materials{
  color:#d6b47c;
}
.craft-card-layout .recipe-meta-stat{
  color:#c6a06f;
}
.craft-card-layout .recipe-meta-sub{
  color:#a98a5f;
}
.craft-card-layout .craft-title-row{
  margin-bottom:5px!important;
}
.craft-card-layout .craft-title-text{
  font-size:clamp(12px,1.35vw,15px)!important;
}
.craft-card-layout .recipe-xp{
  font-size:9.5px!important;
}
.craft-card-layout .craft-progress-block{
  margin-top:auto!important;
}
.craft-quantity-info{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
  margin:8px 0 6px;
  color:#c6a06f;
  font:11px/1.2 "Courier New",monospace;
  min-width:0;
}
.craft-quantity-info span:first-child{
  color:#ffb13b;
  font-weight:bold;
  white-space:nowrap;
}
.craft-quantity-info span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.craft-card-layout.craft-quantity-panel .craft-info-column{
  height:104px;
}
.craft-card-layout.craft-quantity-panel .craft-quantity-row{
  margin-top:4px!important;
}
@media(max-width:860px){
  .craft-card-layout .craft-visual-row{
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .craft-card-layout .craft-large-icon{
    width:92px!important;
    height:92px!important;
    font-size:38px!important;
  }
  .craft-card-layout .craft-info-column,
  .craft-card-layout.craft-quantity-panel .craft-info-column{
    height:92px!important;
  }
  .craft-card-layout .craft-title-row{
    margin-bottom:3px!important;
  }
  .craft-card-layout .craft-title-text{
    font-size:12px!important;
  }
  .craft-card-layout .recipe-meta,
  .craft-card-layout .recipe-meta-sub,
  .craft-card-layout .recipe-meta-materials,
  .craft-card-layout .recipe-meta-stat{
    height:11px!important;
    min-height:11px!important;
    line-height:11px!important;
    margin-bottom:2px!important;
    font-size:9.5px!important;
  }
  .craft-card-layout .craft-timer-row,
  .craft-card-layout .smith-progress-row{
    height:10px!important;
    font-size:9.5px!important;
    margin-bottom:2px!important;
  }
  .craft-card-layout .progress-shell{
    height:10px!important;
  }
  .craft-card-layout > .button{
    margin-top:6px!important;
  }
  .craft-quantity-info{
    grid-template-columns:1fr;
    gap:2px;
    font-size:10px;
    margin:7px 0 5px;
  }
}


/* Questboard V4: kompakte NPC-Übersicht, Tier-Badge oben rechts am Frame */
.quest-board-root{display:block}
.quest-board-panel{position:relative;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;padding:12px 14px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)}
.quest-board-overview{padding:11px 12px 12px}
.quest-board-head{display:none}
.quest-board-title{margin:0;color:#f5d59b;font-size:20px;text-shadow:0 2px 0 #000;letter-spacing:.06em;text-transform:uppercase}
.quest-board-note{margin:0 0 8px;color:#b49161;font:12px/1.35 "Courier New",monospace}
.quest-npc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.quest-npc-card,.quest-list-card{width:100%;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 14% 18%,rgba(255,191,92,.10),transparent 30%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);color:#f5d59b;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045);font-family:inherit}
.quest-npc-card{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;padding:10px 11px;min-height:82px}
.quest-npc-card:hover,.quest-list-card:hover{border-color:#b37a2a;filter:brightness(1.08)}
.quest-npc-card.wanted{border-color:#8d2d23;outline-color:rgba(185,22,34,.45);background:radial-gradient(circle at 16% 14%,rgba(185,22,34,.16),transparent 34%),linear-gradient(145deg,#24110f,#0b0808 70%,#050303)}
.quest-npc-icon,.quest-list-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #8f744c;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 10px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);font-size:22px;flex:0 0 auto}
.quest-list-icon.big{width:54px;height:54px;font-size:30px}
.quest-npc-main,.quest-list-main{min-width:0;display:grid;gap:3px}
.quest-npc-main strong,.quest-list-main strong{color:#f5d59b;font-size:15px;text-shadow:0 2px 0 #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quest-npc-main span,.quest-list-main span{color:#c6a06f;font:11px/1.25 "Courier New",monospace;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.quest-npc-main small,.quest-list-main small{color:#b49161;font:10px/1.2 "Courier New",monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quest-back{width:auto;margin:0 0 10px;padding:7px 11px;font-size:12px}
.quest-npc-stage{display:grid;grid-template-columns:108px 1fr;gap:12px;align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid rgba(255,181,62,.22)}
.quest-portrait-frame{width:108px;height:108px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.25);outline-offset:-5px;background:radial-gradient(circle at 50% 18%,rgba(255,191,92,.12),transparent 46%),linear-gradient(145deg,#18120e,#070605);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 22px rgba(255,150,39,.06)}
.quest-portrait-dummy{font-size:48px;filter:drop-shadow(0 4px 0 rgba(0,0,0,.65))}
.quest-npc-dialogue p{margin:5px 0 8px;color:#c6a06f;font:12px/1.35 "Courier New",monospace}
.quest-list-grid{display:grid;gap:8px}
.quest-list-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:9px;padding:9px 10px}
.quest-tier-mini{
  display:inline-grid;place-items:center;vertical-align:middle;
  width:auto;min-width:25px;max-width:max-content;height:16px;padding:0 5px;margin:0 5px 0 0;
  border:1px solid rgba(255,220,160,.55);background:#8f1a16;color:#fff4d8;
  font:bold 9px "Courier New",monospace;letter-spacing:.05em;line-height:1;text-shadow:0 1px #000;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25),0 1px 0 rgba(0,0,0,.5);
  flex:0 0 auto;
}
.quest-list-main strong{display:flex;align-items:center;min-width:0;}

.quest-list-card.ready,.quest-list-card.available-ready{border-color:#83a75a;outline-color:rgba(131,167,90,.35)}
.quest-list-card.claimed{opacity:.62;filter:grayscale(.45)}
.quest-list-card.disabled{opacity:.68}
.quest-detail-card{display:grid;gap:10px}
.quest-detail-head,.quest-detail-top{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center}
.quest-detail-head p,.quest-detail-top p{margin:4px 0 0;color:#c6a06f;font:12px/1.38 "Courier New",monospace}
.quest-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quest-detail-box{border:1px solid rgba(255,181,62,.22);background:rgba(0,0,0,.22);padding:8px 9px;display:grid;gap:4px;min-width:0}
.quest-detail-box strong{color:var(--gold-bright);font:bold 10px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em}
.quest-detail-box span{color:#f5d59b;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quest-detail-box em{color:#b49161;font:11px "Courier New",monospace;font-style:normal}
@media(max-width:860px){.quest-board-panel{padding:10px 11px}.quest-board-overview{padding:9px 10px 10px}.quest-npc-grid{grid-template-columns:1fr;gap:7px}.quest-npc-card{grid-template-columns:40px 1fr auto;padding:9px 10px;min-height:76px}.quest-npc-icon,.quest-list-icon{width:34px;height:34px;font-size:20px}.quest-npc-stage{grid-template-columns:82px 1fr;gap:9px}.quest-portrait-frame{width:82px;height:82px}.quest-portrait-dummy{font-size:38px}.quest-detail-grid{grid-template-columns:1fr}.quest-board-title{font-size:17px}.quest-list-card{grid-template-columns:38px 1fr auto;padding:8px 9px}.quest-list-main strong,.quest-npc-main strong{font-size:14px}}

/* Questboard V5: NPC-Detail wie final_layout - großes Icon links, Questkarten rechts */
.quest-npc-view{
  padding:12px 14px 14px;
}
.quest-npc-view .quest-back{
  position:relative;
  z-index:2;
  margin:0 0 10px;
}
.quest-npc-layout{
  display:grid;
  grid-template-columns:108px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.quest-npc-left{
  min-width:0;
}
.quest-npc-view .quest-portrait-frame{
  width:108px;
  height:108px;
  position:sticky;
  top:8px;
}
.quest-npc-view .quest-portrait-dummy{
  font-size:52px;
}
.quest-npc-right{
  min-width:0;
  display:grid;
  gap:10px;
}
.quest-npc-view .quest-npc-stage{
  display:block;
  margin:0;
  padding:0 0 9px;
  border-bottom:1px solid rgba(255,181,62,.22);
}
.quest-npc-view .quest-npc-dialogue{
  min-width:0;
}
.quest-npc-view .quest-npc-dialogue .zone-kicker{
  text-align:left;
  margin:0 0 4px;
  letter-spacing:.18em;
}
.quest-npc-view .quest-board-title{
  text-align:left;
  font-size:clamp(18px,2.4vw,24px);
  line-height:1.05;
  margin:0 0 4px;
}
.quest-npc-view .quest-npc-dialogue p{
  margin:0 0 7px;
  font-size:12px;
  line-height:1.3;
}
.quest-npc-view .quest-list-grid{
  gap:9px;
}
.quest-npc-view .quest-list-card{
  min-height:68px;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:10px;
  padding:10px 11px;
}
.quest-npc-view .quest-list-icon{
  width:42px;
  height:42px;
  font-size:23px;
}
.quest-npc-view .quest-list-main strong{
  font-size:16px;
}
.quest-npc-view .quest-list-main span{
  font-size:11px;
  -webkit-line-clamp:1;
}
.quest-npc-view .quest-list-main small{
  font-size:10px;
}
.quest-npc-view .quest-state{
  padding-left:8px;
  text-align:right;
}
@media(max-width:860px){
  .quest-npc-layout{
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
  }
  .quest-npc-view .quest-portrait-frame{
    width:82px;
    height:82px;
  }
  .quest-npc-view .quest-portrait-dummy{
    font-size:40px;
  }
  .quest-npc-view .quest-board-title{
    font-size:17px;
  }
  .quest-npc-view .quest-npc-dialogue p{
    font-size:11px;
  }
  .quest-npc-view .quest-list-card{
    grid-template-columns:38px minmax(0,1fr) auto;
    min-height:62px;
    padding:8px 9px;
    gap:8px;
  }
  .quest-npc-view .quest-list-icon{
    width:34px;
    height:34px;
    font-size:20px;
  }
  .quest-npc-view .quest-list-main strong{
    font-size:14px;
  }
}
@media(max-width:520px){
  .quest-npc-layout{
    grid-template-columns:1fr;
  }
  .quest-npc-left{
    display:none;
  }
  .quest-npc-view .quest-npc-dialogue .zone-kicker,
  .quest-npc-view .quest-board-title{
    text-align:center;
  }
  .quest-npc-view .quest-npc-dialogue p{
    text-align:center;
  }
}

/* Questboard V6: Ebene 2 exakt bündig - ein Gesamtframe, links NPC-Icon, rechts Questkarten */
.quest-npc-compact-view{
  padding:12px 14px 14px;
}
.quest-npc-compact-view .quest-back{
  margin:0 0 9px;
  padding:7px 11px;
}
.quest-npc-compact-frame{
  --qb-portrait-size:220px;
  --qb-quest-gap:8px;
  --qb-quest-count:3;
  display:grid;
  grid-template-columns:var(--qb-portrait-size) minmax(0,1fr);
  gap:12px;
  align-items:start;
  min-height:var(--qb-portrait-size);
  padding:0;
}
.quest-npc-compact-portrait,
.quest-npc-compact-quests{
  min-width:0;
}
.quest-npc-compact-view .quest-portrait-frame{
  width:var(--qb-portrait-size) !important;
  height:var(--qb-portrait-size) !important;
  position:relative !important;
  top:auto !important;
  margin:0 !important;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.30);
  outline-offset:-5px;
  background:radial-gradient(circle at 50% 26%,rgba(255,191,92,.12),transparent 42%),linear-gradient(145deg,#18120e,#070605 72%,#030302);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.13),inset 0 0 28px rgba(255,150,39,.065),0 5px 12px rgba(0,0,0,.35);
}
.quest-npc-compact-view .quest-portrait-dummy{
  font-size:86px !important;
  line-height:1;
  filter:drop-shadow(0 5px 0 rgba(0,0,0,.7));
}
.quest-npc-compact-quests{
  height:var(--qb-portrait-size);
  display:grid;
  grid-template-rows:repeat(var(--qb-quest-count), 1fr);
  gap:var(--qb-quest-gap);
}
.quest-npc-compact-quests .quest-list-card{
  width:100%;
  height:100%;
  min-height:0 !important;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto !important;
  align-items:center;
  gap:10px;
  padding:8px 10px !important;
  margin:0;
  overflow:hidden;
}
.quest-npc-compact-quests .quest-list-icon{
  width:40px !important;
  height:40px !important;
  font-size:22px !important;
}
.quest-npc-compact-quests .quest-list-main{
  gap:2px;
}
.quest-npc-compact-quests .quest-list-main strong{
  font-size:16px !important;
  line-height:1.05;
}
.quest-npc-compact-quests .quest-list-main span{
  font-size:10.5px !important;
  line-height:1.18;
  -webkit-line-clamp:1 !important;
}
.quest-npc-compact-quests .quest-list-main small{
  font-size:9.5px !important;
  line-height:1.1;
}
.quest-npc-compact-quests .quest-state{
  align-self:center;
  padding-left:8px;
  font-size:10.5px;
  text-align:right;
}
@media(max-width:860px){
  .quest-npc-compact-view{
    padding:10px 11px 11px;
  }
  .quest-npc-compact-frame{
    --qb-portrait-size:174px;
    --qb-quest-gap:6px;
    grid-template-columns:var(--qb-portrait-size) minmax(0,1fr);
    gap:8px;
  }
  .quest-npc-compact-view .quest-portrait-dummy{
    font-size:64px !important;
  }
  .quest-npc-compact-quests .quest-list-card{
    grid-template-columns:36px minmax(0,1fr) auto !important;
    gap:7px;
    padding:6px 7px !important;
  }
  .quest-npc-compact-quests .quest-list-icon{
    width:32px !important;
    height:32px !important;
    font-size:18px !important;
  }
  .quest-npc-compact-quests .quest-list-main strong{
    font-size:13px !important;
  }
  .quest-npc-compact-quests .quest-list-main span,
  .quest-npc-compact-quests .quest-list-main small{
    font-size:8.5px !important;
  }
  .quest-npc-compact-quests .quest-state{
    font-size:9px;
    padding-left:4px;
  }
}
@media(max-width:560px){
  .quest-npc-compact-frame{
    --qb-portrait-size:128px;
    --qb-quest-gap:5px;
    grid-template-columns:var(--qb-portrait-size) minmax(0,1fr);
    gap:7px;
  }
  .quest-npc-compact-view .quest-portrait-dummy{
    font-size:50px !important;
  }
  .quest-npc-compact-quests .quest-list-card{
    grid-template-columns:30px minmax(0,1fr) auto !important;
    gap:5px;
    padding:5px 6px !important;
  }
  .quest-npc-compact-quests .quest-list-icon{
    width:27px !important;
    height:27px !important;
    font-size:15px !important;
  }
  .quest-npc-compact-quests .quest-list-main strong{
    font-size:11px !important;
  }
  .quest-npc-compact-quests .quest-list-main span{
    display:none !important;
  }
  .quest-npc-compact-quests .quest-list-main small{
    font-size:7.8px !important;
  }
  .quest-npc-compact-quests .quest-state{
    font-size:8px;
  }
}


/* Questboard NPC portrait image support */
.quest-portrait-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
  image-rendering:auto;
}


/* Questboard V6: NPC-Übersicht nutzt echte Portraitpfade statt Emoji-Dummys */
.quest-npc-card{
  grid-template-columns:54px 1fr auto;
  min-height:86px;
}
.quest-npc-icon{
  width:24px;
  height:24px;
  font-size:0;
  overflow:hidden;
}
.quest-npc-icon .quest-portrait-img{
  width:100%;
  height:100%;
  padding:2px;
  object-fit:contain;
  object-position:center center;
  background:transparent;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.65));
}
.quest-npc-icon .quest-portrait-dummy{
  font-size:26px;
}
@media(max-width:860px){
  .quest-npc-card{
    grid-template-columns:48px 1fr auto;
    min-height:80px;
  }
  .quest-npc-icon{
    width:44px;
    height:44px;
  }
  .quest-npc-icon .quest-portrait-img{
    padding:2px;
  }
}


.dungeon-nav:disabled{pointer-events:none;cursor:not-allowed}
.dungeon-nav.dungeon-unlock-pulse{animation:dungeonUnlockPulse 1.05s ease-in-out 3;border-color:#ffb13b!important;filter:none!important;opacity:1!important}
@keyframes dungeonUnlockPulse{0%{box-shadow:0 0 0 rgba(255,177,59,0),inset 0 0 0 1px rgba(255,222,150,.22)}50%{box-shadow:0 0 22px rgba(255,177,59,.7),0 0 44px rgba(255,177,59,.24),inset 0 0 0 1px rgba(255,235,160,.45)}100%{box-shadow:0 0 0 rgba(255,177,59,0),inset 0 0 0 1px rgba(255,222,150,.22)}}
.dungeon-locked-mystery{min-height:190px;display:grid;align-content:center;gap:10px;background:radial-gradient(circle at 50% 12%,rgba(255,181,62,.08),transparent 36%),linear-gradient(145deg,#19140f,#070605 72%)}
.dungeon-locked-mystery .dungeon-note{text-align:center;max-width:620px;margin:0 auto;color:#c6a06f;font:12px/1.45 "Courier New",monospace}



/* V-QUEST-HUD: aktive Questliste neben dem Fertigkeiten-HUD */
#skillHubCount{
  display:none !important;
}

#questHudWrap{
  position:fixed;
  left:max(70px,calc((100vw - 920px) / 2 + 70px));
  top:14px;
  transform:none;
  z-index:40;
  font-family:Georgia,"Times New Roman",serif;
}

#questHudButton{
  width:48px;
  height:48px;
  border:3px solid #5d5a54;
  outline:1px solid rgba(230,230,220,.42);
  outline-offset:-6px;
  border-radius:0;
  background:
    radial-gradient(circle at 50% 18%,rgba(230,230,220,.16),transparent 36%),
    linear-gradient(145deg,#25272b,#090909 72%);
  color:#f7e8c8;
  font-size:22px;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 0 0 4px rgba(0,0,0,.50),0 8px 20px rgba(0,0,0,.55);
  position:relative;
}

#questHudCount{
  position:absolute;
  right:-7px;
  top:-7px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid #f1d3a3;
  background:#8c1820;
  color:#fff;
  font:bold 11px "Courier New",monospace;
  box-shadow:0 0 0 2px #120807;
}

@media(max-width:860px){
  #skillHubWrap{left:8px;top:8px;}
  #questHudWrap{left:62px;top:8px;}
  #buffHudWrap{right:8px;top:8px;}
  #skillHubButton,#questHudButton,#buffHudButton{width:44px;height:44px;font-size:20px;}
  #buffHudPanel{top:52px;}
}


/* V51: Charakterportraits größer + Hover-Glow */
.character-modal .race-card{
  transition:filter .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
.character-modal .race-card:hover{
  border-color:#d99024 !important;
  filter:brightness(1.10) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,215,139,.18),
    inset 0 0 22px rgba(255,150,39,.09),
    0 0 18px rgba(255,177,59,.24) !important;
}
.character-modal .race-icon img{
  height:106% !important;
  max-height:106% !important;
  max-width:120% !important;
  transition:transform .18s ease, filter .18s ease !important;
  transform-origin:center bottom !important;
}
.character-modal .race-card:hover .race-icon img{
  transform:scale(1.035) !important;
  filter:drop-shadow(0 9px 9px rgba(0,0,0,.50)) drop-shadow(0 0 10px rgba(255,177,59,.32)) !important;
}
.character-card{
  grid-template-columns:129px 1fr !important;
}
.character-avatar{
  width:115px !important;
  height:150px !important;
}
.character-avatar img{
  height:115% !important;
  max-height:115% !important;
  max-width:138% !important;
}
@media(min-width:700px){
  .character-modal .race-icon img{
    height:101% !important;
    max-height:101% !important;
    max-width:115% !important;
  }
}
@media(max-width:860px){
  .character-card{grid-template-columns:99px 1fr !important;}
  .character-avatar{width:90px !important;height:120px !important;}
  .character-avatar img{height:115% !important;max-height:115% !important;max-width:138% !important;}
}
@media(max-width:420px){
  .character-modal .race-icon img{
    height:101% !important;
    max-height:101% !important;
    max-width:122% !important;
  }
}


/* V-Skilltree-Reset: gewählte Spezialisierung clean anzeigen + roter Reset-Button */
.skilltree-modal .elf-spec-choice-row[hidden],
.skilltree-modal #skilltreeIntroHead[hidden]{
  display:none !important;
}
.skilltree-modal .elf-tree-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.skilltree-reset-spec{
  width:auto;
  min-width:0;
  margin:0 0 0 2px;
  padding:0;
  border:0;
  background:transparent;
  color:#ff4b4b;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  filter:drop-shadow(0 1px 0 #000);
}
.skilltree-reset-spec:hover{
  color:#ff7777;
  transform:scale(1.08);
}
.skilltree-reset-spec.is-disabled{
  opacity:.42;
  filter:grayscale(.35) drop-shadow(0 1px 0 #000);
}
.skilltree-reset-spec.is-disabled:hover{
  color:#ff4b4b;
  transform:none;
}
@media(max-width:860px){
  .skilltree-reset-spec{font-size:16px}
}


/* =========================================================
   LORHEIM PATCH: Optionen V3 + sauberer Charakter-Hub
   ========================================================= */

/* Optionen: schmale Classic-Liste, Ebene 2 erst nach Klick */
.options-view.active-view{
  display:block;
}
.lorheim-options-menu-panel{
  position:relative;
  width:min(430px,94vw);
  max-width:430px;
  margin:0 auto;
  padding:16px 16px 14px !important;
}

.lorheim-options-close{
  position:absolute !important;
  right:-14px !important;
  top:-14px !important;
  z-index:4;
}
.lorheim-options-stage{
  position:relative;
}
.lorheim-options-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:8px auto 0;
}
.lorheim-option-menu-btn{
  width:100%;
  min-height:42px;
  padding:9px 14px;
  border:2px solid #8a622f;
  outline:1px solid rgba(255,213,132,.28);
  outline-offset:-5px;
  background:
    radial-gradient(circle at 16% 18%,rgba(255,213,132,.16),transparent 32%),
    linear-gradient(180deg,#7b5524 0%,#3c260f 68%,#17100a 100%);
  color:#ffe0a1;
  font:900 15px Georgia,"Times New Roman",serif;
  text-align:left;
  cursor:pointer;
  text-shadow:0 2px 0 #000;
  box-shadow:
    inset 0 0 0 1px rgba(255,230,170,.10),
    inset 0 -7px 14px rgba(0,0,0,.35),
    0 4px 0 #241407,
    0 8px 16px rgba(0,0,0,.32);
}
.lorheim-option-menu-btn:hover,
.lorheim-option-menu-btn:focus-visible,
.lorheim-option-menu-btn.active{
  border-color:#d99024;
  color:#fff0c7;
  filter:brightness(1.12);
  box-shadow:
    0 0 14px rgba(255,177,59,.20),
    inset 0 0 0 1px rgba(255,230,170,.16),
    inset 0 -7px 14px rgba(0,0,0,.35),
    0 4px 0 #241407;
}
.lorheim-options-hint{
  margin-top:12px !important;
  min-height:56px;
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
}
.lorheim-options-subpanel{
  position:absolute;
  inset:0;
  z-index:3;
  display:none;
  min-height:100%;
  padding:12px;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),
    linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:
    inset 0 0 0 1px rgba(255,215,139,.16),
    inset 0 0 0 4px rgba(6,5,4,.72),
    0 12px 24px rgba(0,0,0,.5);
}
.lorheim-options-subpanel.open{
  display:block;
}
.lorheim-options-back{
  width:auto !important;
  margin:0 0 10px !important;
  padding:7px 10px !important;
}
.lorheim-options-subpanel h3{
  margin:0 0 12px;
  color:#ffb13b;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.10em;
  text-shadow:0 2px #000;
}
.lorheim-options-content{
  display:none;
  gap:8px;
}
.lorheim-options-content.active{
  display:flex;
  flex-direction:column;
}
.lorheim-options-content .mini-choice{
  width:100%;
  margin:0;
}
.lorheim-option-group{
  display:grid;
  gap:7px;
  padding:8px;
  border:1px solid rgba(213,151,73,.24);
  background:rgba(0,0,0,.18);
}
.lorheim-faq-category > h4 {
  margin: 0;
  color: #ffb13b;
}
.lorheim-faq-entry {
  padding: 8px;
  border-top: 1px solid rgba(213,151,73,.24);
}
.lorheim-faq-entry summary {
  color: #f4dfb7;
  cursor: pointer;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.lorheim-faq-entry p {
  margin: 8px 0 0;
  white-space: pre-line;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lorheim-option-group strong{
  text-align:center;
  color:#d5bc96;
  font:bold 11px "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.lorheim-afk-switch{display:flex;align-items:center;justify-content:center;gap:9px;color:#c6a06f;font:12px "Courier New",monospace;cursor:pointer}
.lorheim-afk-switch input{accent-color:#bd8a45;width:16px;height:16px}
.lorheim-option-note,
.classic-option-status{
  margin:5px 0 0;
  color:#c6a06f;
  font:12px/1.4 "Courier New",monospace;
}

/* Charakter-Hub: eigener Screen, kompakt wie Mockup */
.character-modal.open{
  display:grid;
  place-items:start center;
  overflow-y:auto;
  padding:10px;
}
.lorheim-character-hub{
  position:relative;
  width:min(820px,98vw);
  margin:0 auto 84px;
  padding:18px;
  border:4px solid #2f2a25;
  outline:1px solid rgba(213,151,73,.38);
  outline-offset:-7px;
  background:
    radial-gradient(circle at 50% 8%,rgba(255,191,92,.10),transparent 36%),
    linear-gradient(145deg,#090806,#050403 72%,#030302);
  box-shadow:
    0 0 0 2px #080808,
    0 0 0 5px #4e4338,
    0 24px 70px rgba(0,0,0,.88),
    inset 0 0 0 1px rgba(255,215,139,.10);
}

.lorheim-character-close{
  position:absolute;
  right:-14px;
  top:-14px;
  z-index:5;
}
.lorheim-character-head{
  text-align:center;
  margin:0 0 16px;
  border-bottom:1px solid rgba(213,151,73,.24);
  padding-bottom:12px;
}
.lorheim-character-head h1{
  margin:0 0 6px;
  color:#f5d59b;
  font:bold clamp(24px,4vw,34px) "Courier New",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
  text-shadow:3px 3px 0 #000;
}
.lorheim-character-head p{
  margin:0 auto;
  max-width:680px;
  color:#c6a06f;
  font:12px/1.4 "Courier New",monospace;
}
.lorheim-character-layout{
  display:grid;
  grid-template-columns:minmax(250px,.9fr) minmax(320px,1.25fr);
  gap:12px;
  align-items:stretch;
}
.lorheim-character-preview{
  display:grid;
  grid-template-rows:minmax(260px,1fr) 104px;
  gap:10px;
}
.lorheim-selected-character,
.lorheim-selected-stats,
.lorheim-character-slot,
.lorheim-character-create{
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.30);
  outline-offset:-5px;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 36%),
    linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:
    inset 0 0 0 1px rgba(255,215,139,.12),
    inset 0 0 18px rgba(255,150,39,.045),
    0 6px 14px rgba(0,0,0,.30);
}
.lorheim-selected-character{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:10px;
  text-align:center;
  min-height:270px;
}
.lorheim-selected-character h2{
  margin:0 0 8px;
  color:#f5d59b;
  font-size:20px;
  text-shadow:0 2px #000;
}
.lorheim-selected-portrait{
  min-height:210px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 80%,rgba(255,177,59,.10),transparent 60%),
    rgba(0,0,0,.10);
}
.lorheim-selected-portrait img{
  width:auto;
  height:92%;
  max-width:105%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 12px 11px rgba(0,0,0,.58));
}
.lorheim-selected-bonus{
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid rgba(213,151,73,.18);
  color:#c6a06f;
  font:bold 11px "Courier New",monospace;
}
.lorheim-selected-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:10px;
}
.lorheim-selected-stats div{
  display:grid;
  place-items:center;
  border:1px solid rgba(213,151,73,.20);
  background:rgba(0,0,0,.25);
}
.lorheim-selected-stats strong{
  color:#ff4050;
  font:900 28px Arial,sans-serif;
  text-shadow:0 2px #000;
}
.lorheim-selected-stats span{
  color:#9a7a51;
  font:bold 10px "Courier New",monospace;
  text-transform:uppercase;
}
.lorheim-character-slots{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.lorheim-character-slot{
  min-height:91px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:13px 14px;
}
.lorheim-character-slot strong{
  display:block;
  color:#ffcf73;
  font-size:20px;
  line-height:1.05;
  text-shadow:0 2px #000;
}
.lorheim-character-slot span,
.lorheim-character-slot small{
  display:block;
  margin-top:3px;
  color:#e0c297;
  font:13px/1.25 Georgia,"Times New Roman",serif;
}
.lorheim-character-slot small{
  color:#c6a06f;
}
.lorheim-character-slot.locked{
  min-height:78px;
  opacity:.62;
  grid-template-columns:1fr;
}
.lorheim-character-slot.muted{
  border-color:#5d462b;
}
.lorheim-start-button{
  min-width:108px;
}
.lorheim-character-create{
  margin-top:12px;
  padding:11px;
  display:none;
}
.character-modal.create-open .lorheim-character-create,
.character-modal:not(.has-character) .lorheim-character-create{
  display:block;
}
.lorheim-character-create .name-row{
  max-width:360px;
  margin:0 auto 10px;
}
.lorheim-character-create .lorheim-race-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:6px !important;
}
.lorheim-character-create .race-card{
  aspect-ratio:auto !important;
  min-height:132px !important;
  padding:7px 5px !important;
  display:grid !important;
  grid-template-rows:minmax(54px,1fr) auto auto !important;
}
.lorheim-character-create .race-icon{
  height:64px !important;
  margin:0 !important;
}
.lorheim-character-create .race-icon img{
  height:100% !important;
  max-height:100% !important;
  max-width:112% !important;
}
.lorheim-character-create .race-card h2{
  font-size:12px !important;
}
.lorheim-character-create .race-card ul{
  display:none !important;
}
.lorheim-character-create .race-card .button{
  font-size:8px !important;
  padding:4px 2px !important;
  margin-top:4px !important;
}
@media(max-width:760px){
  .lorheim-character-hub{
    padding:13px;
    margin-bottom:78px;
  }
  .lorheim-character-layout{
    grid-template-columns:1fr;
  }
  .lorheim-character-preview{
    grid-template-rows:auto 86px;
  }
  .lorheim-selected-character{
    min-height:250px;
  }
  .lorheim-selected-portrait{
    min-height:190px;
  }
  .lorheim-character-slot{
    min-height:86px;
    grid-template-columns:1fr;
  }
  .lorheim-start-button{
    width:100% !important;
  }
  .lorheim-character-create .lorheim-race-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:420px){
  .lorheim-options-menu-panel{
    width:96vw;
  }
  .lorheim-option-menu-btn{
    min-height:39px;
    font-size:14px;
    padding:8px 12px;
  }
  .lorheim-character-head h1{
    font-size:21px;
    letter-spacing:.06em;
  }
  .lorheim-character-head p{
    font-size:10px;
  }
  .lorheim-selected-character{
    min-height:218px;
  }
  .lorheim-selected-portrait{
    min-height:160px;
  }
  .lorheim-character-slot strong{
    font-size:17px;
  }
  .lorheim-character-slot span,
  .lorheim-character-slot small{
    font-size:12px;
  }
}

/* V52: Charakter-Hub repariert: Hub und ursprüngliche Volk-Auswahl sind getrennte Ebenen */
#characterModal .lorheim-character-head h1{letter-spacing:.16em;}
#characterModal .lorheim-character-head h1::after{content:none !important;}
#characterModal.no-character .lorheim-character-preview,
#characterModal.no-character #currentCharacterHubCard,
#characterModal.no-character .lorheim-character-slot.locked{display:none !important;}
#characterModal.no-character .lorheim-character-layout{grid-template-columns:minmax(0,560px) !important;justify-content:center;}
#characterModal.no-character .lorheim-character-slots{max-width:560px;margin:0 auto;}
#characterModal.no-character #newCharacterSlot{border-color:var(--gold-bright);box-shadow:0 0 18px rgba(255,177,59,.18),inset 0 0 0 1px rgba(255,215,139,.16);}
#characterModal.has-character .lorheim-character-preview{display:block;}
#characterModal.has-character #currentCharacterHubCard{display:grid;}
#characterModal.has-character .lorheim-selected-stats{display:grid;}
#characterModal:not(.has-character) .lorheim-selected-stats{display:none !important;}
#characterModal .lorheim-selected-portrait img{object-fit:contain;object-position:center bottom;max-width:96%;max-height:96%;filter:drop-shadow(0 10px 10px rgba(0,0,0,.6));}
#characterModal .lorheim-character-create{display:none !important;}
#characterModal .lorheim-character-slot small{white-space:normal;}
#characterCreatorModal .character-popover h1{font-family:"Courier New",monospace;}
#characterCreatorModal .race-card{transition:filter .16s ease, transform .16s ease, border-color .16s ease, box-shadow .16s ease;}
#characterCreatorModal .race-card:hover{transform:translateY(-2px) scale(1.015);border-color:var(--gold-bright);box-shadow:0 0 18px rgba(255,177,59,.22),inset 0 0 0 1px rgba(255,215,139,.18),inset 0 0 18px rgba(255,150,39,.07);filter:brightness(1.12);}
#characterCreatorModal .race-card h2{color:#f5d59b !important;}
#characterCreatorModal .race-card ul{color:#c6a06f !important;}


/* =========================================================
   V55: Optionen/Charakter-Hub Polish + Löschbutton
   ========================================================= */
.options-view.active-view{
  min-height:calc(100vh - 92px);
  display:grid;
  place-items:center;
}
.options-panel.lorheim-options-menu-panel{
  border:4px solid #2f2a25 !important;
  outline:1px solid rgba(213,151,73,.38) !important;
  outline-offset:-7px !important;
  box-shadow:0 0 0 2px #080808,0 0 0 5px #4e4338,0 24px 70px rgba(0,0,0,.88),inset 0 0 0 1px rgba(255,215,139,.10) !important;
  background:radial-gradient(circle at 50% 8%,rgba(255,191,92,.10),transparent 36%),linear-gradient(145deg,#090806,#050403 72%,#030302) !important;
}
.lorheim-option-menu-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  min-height:44px !important;
  padding:10px 12px !important;
  border:2px solid #8a622f !important;
  background:linear-gradient(180deg,#e0a044 0%,#b36b25 46%,#6e3a14 100%) !important;
  color:#180d05 !important;
  font:900 14px Georgia,"Times New Roman",serif !important;
  text-shadow:0 1px rgba(255,217,139,.22) !important;
  box-shadow:inset 0 1px rgba(255,231,160,.34),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 0 1px rgba(255,186,76,.12) !important;
  outline:0 !important;
}
.lorheim-option-menu-btn:hover,
.lorheim-option-menu-btn:focus-visible,
.lorheim-option-menu-btn.active{
  border-color:#d49a4a !important;
  color:#120904 !important;
  filter:brightness(1.14) !important;
  box-shadow:inset 0 1px rgba(255,231,160,.40),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 14px rgba(255,177,59,.25) !important;
}


#characterModal.character-modal.open{
  place-items:center !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:auto !important;
  padding:18px !important;
}
#characterModal .lorheim-character-hub{
  margin:0 auto !important;
  width:min(840px,98vw) !important;
}
#characterModal .lorheim-character-layout{
  grid-template-columns:minmax(250px,.88fr) minmax(350px,1.28fr) !important;
  gap:14px !important;
  align-items:stretch !important;
}
#characterModal .lorheim-character-preview{
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  gap:14px !important;
  height:100% !important;
}
#characterModal .lorheim-selected-character{
  min-height:0 !important;
}
#characterModal .lorheim-selected-stats{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:5px !important;
  padding:8px !important;
  min-height:72px !important;
  max-height:80px !important;
}
#characterModal .lorheim-selected-stats div{
  min-width:0 !important;
  padding:5px 2px !important;
}
#characterModal .lorheim-selected-stats strong{
  color:var(--gold-bright) !important;
  font:900 clamp(13px,1.8vw,18px) "Courier New",monospace !important;
  line-height:1.05 !important;
  text-shadow:0 2px #000,0 0 9px rgba(255,177,59,.24) !important;
}
#characterModal .lorheim-selected-stats span{
  color:#b49161 !important;
  font:bold clamp(6px,.95vw,8px) "Courier New",monospace !important;
  line-height:1.05 !important;
  margin-top:3px !important;
  letter-spacing:.02em !important;
}
#characterModal .lorheim-character-slots{
  display:grid !important;
  grid-template-rows:repeat(4,1fr) !important;
  gap:10px !important;
  height:100% !important;
  min-height:0 !important;
}
#characterModal .lorheim-character-slot{
  position:relative !important;
  min-height:0 !important;
  height:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 12px !important;
}
#characterModal .lorheim-slot-copy{
  min-width:0 !important;
}
#characterModal .lorheim-character-slot strong{
  font-size:clamp(16px,2.2vw,20px) !important;
}
#characterModal .lorheim-character-slot span,
#characterModal .lorheim-character-slot small{
  font-size:clamp(10px,1.25vw,12px) !important;
  line-height:1.15 !important;
}
#characterModal .lorheim-character-slot .mini-choice{
  width:92px !important;
  min-width:92px !important;
  padding:7px 8px !important;
  font-size:11px !important;
}
#characterModal .lorheim-character-delete{
  position:absolute !important;
  top:8px !important;
  right:8px !important;
  width:16px !important;
  height:16px !important;
  padding:0 !important;
  margin:0 !important;
  display:grid !important;
  place-items:center !important;
  background:#b91622 !important;
  color:#fff !important;
  border:2px solid #dac4a1 !important;
  font:bold 13px/1 Arial,sans-serif !important;
  cursor:pointer !important;
  z-index:4 !important;
  box-shadow:0 0 0 2px #17100d !important;
}
#characterModal .lorheim-character-slot[data-character-id] .lorheim-slot-copy{
  padding-right:18px !important;
}
#characterModal .lorheim-character-delete:hover{
  filter:brightness(1.18) !important;
}
#characterModal.no-character .lorheim-character-preview,
#characterModal.no-character .lorheim-character-slot.locked{display:none !important;}
#characterModal.no-character .lorheim-character-layout{grid-template-columns:minmax(0,560px) !important;justify-content:center;}
#characterModal.no-character .lorheim-character-slots{display:block !important;max-width:560px;margin:0 auto;}
#characterModal.no-character #newCharacterSlot{min-height:96px !important;}
@media(max-width:760px){
  #characterModal.character-modal.open{place-items:start center !important;align-items:start !important;padding:10px !important;}
  #characterModal .lorheim-character-layout{grid-template-columns:1fr !important;}
  #characterModal .lorheim-character-slots{grid-template-rows:none !important;height:auto !important;}
  #characterModal .lorheim-character-slot{min-height:78px !important;}
  #characterModal .lorheim-selected-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;max-height:none !important;}
}


/* =========================================================
   V56: Options-Frame final, Headline-Font sync, Character-Stats 2x3
   ========================================================= */

/* Alle großen UI-Überschriften nutzen dieselbe dynamische Schrift wie body.font-* */
.zone-title,
.section-title,
.inventory-title,

.tier-popover h3,
.character-popover h1,
#characterModal .lorheim-character-head h1,
#characterModal .lorheim-selected-character h2,
.options-title,
.lorheim-options-subpanel h3,
.levelup-box h2{
  font-family:inherit !important;
  color:var(--gold-bright) !important;
  font-weight:900 !important;
  font-size:clamp(20px,3.4vw,34px) !important;
  letter-spacing:.13em !important;
  text-transform:uppercase !important;
  text-align:center !important;
  text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.45) !important;
}
#characterModal .lorheim-selected-character h2{
  font-size:clamp(18px,2.5vw,24px) !important;
  letter-spacing:.08em !important;
  margin:0 0 6px !important;
}
.lorheim-character-head p,
.lorheim-selected-bonus,
.lorheim-character-slot span,
.lorheim-character-slot small,
.lorheim-options-hint,
.lorheim-option-group strong,
.classic-option-status,
.lorheim-option-note{
  font-family:inherit !important;
}
.lorheim-option-menu-btn{
  font-family:inherit !important;
  font-size:15px !important;
  line-height:1 !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
}

/* Optionen: exakt mittig und ohne den störenden Extra-Außenrahmen */
.options-view.active-view{
  display:grid !important;
  place-items:center !important;
  min-height:calc(100vh - 92px) !important;
  padding:18px !important;
}
.options-panel.lorheim-options-menu-panel,
.lorheim-options-menu-panel{
  width:min(430px,94vw) !important;
  max-width:430px !important;
  margin:0 auto !important;
  border:2px solid #6f5535 !important;
  outline:1px solid rgba(213,151,73,.30) !important;
  outline-offset:-5px !important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 18px rgba(255,150,39,.045),0 12px 32px rgba(0,0,0,.55) !important;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;
}
.lorheim-options-close{
  right:-12px !important;
  top:-12px !important;
}

/* Charakter-Hub: Preview kompakter, Stats sauber als 2 Reihen à 3 Kacheln */
#characterModal .lorheim-character-hub{
  width:min(840px,98vw) !important;
}
#characterModal .lorheim-character-layout{
  grid-template-columns:minmax(245px,.88fr) minmax(350px,1.28fr) !important;
  align-items:stretch !important;
}
#characterModal .lorheim-character-preview{
  grid-template-rows:minmax(0,1fr) auto !important;
  gap:12px !important;
  align-self:stretch !important;
}
#characterModal .lorheim-selected-character{
  min-height:0 !important;
  max-height:none !important;
  padding:9px !important;
}
#characterModal .lorheim-selected-portrait{
  min-height:168px !important;
  height:clamp(168px,30vh,250px) !important;
  align-items:flex-end !important;
}
#characterModal .lorheim-selected-portrait img{
  height:96% !important;
  max-height:96% !important;
  max-width:96% !important;
}
#characterModal .lorheim-selected-bonus{
  margin-top:6px !important;
  padding-top:6px !important;
  font-size:11px !important;
  line-height:1.15 !important;
}
#characterModal .lorheim-selected-stats{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:repeat(2,minmax(54px,1fr)) !important;
  gap:6px !important;
  padding:8px !important;
  min-height:120px !important;
  max-height:none !important;
  height:auto !important;
  align-self:end !important;
}
#characterModal .lorheim-selected-stats div{
  min-width:0 !important;
  min-height:54px !important;
  width:100% !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  gap:4px !important;
  padding:5px 3px !important;
}
#characterModal .lorheim-selected-stats strong{
  display:block !important;
  width:100% !important;
  color:var(--gold-bright) !important;
  font-family:inherit !important;
  font-weight:900 !important;
  font-size:clamp(15px,2vw,20px) !important;
  line-height:1 !important;
  text-align:center !important;
  text-shadow:0 2px #000,0 0 10px rgba(255,177,59,.26) !important;
}
#characterModal .lorheim-selected-stats span{
  display:block !important;
  width:100% !important;
  color:#b49161 !important;
  font-family:inherit !important;
  font-weight:900 !important;
  font-size:clamp(8px,1.05vw,10px) !important;
  line-height:1.05 !important;
  letter-spacing:.03em !important;
  text-align:center !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
#characterModal .lorheim-character-slots{
  grid-template-rows:repeat(4,1fr) !important;
  height:100% !important;
}

@media(max-width:760px){
  #characterModal .lorheim-character-layout{grid-template-columns:1fr !important;}
  #characterModal .lorheim-selected-portrait{height:clamp(150px,24vh,210px) !important;min-height:150px !important;}
  #characterModal .lorheim-selected-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;grid-template-rows:repeat(2,minmax(50px,1fr)) !important;min-height:112px !important;}
  #characterModal .lorheim-character-slots{grid-template-rows:none !important;height:auto !important;}
}
@media(max-width:420px){
  .zone-title,.section-title,.inventory-title,.tier-popover h3,.character-popover h1,#characterModal .lorheim-character-head h1,.options-title,.lorheim-options-subpanel h3,.levelup-box h2{font-size:21px !important;letter-spacing:.08em !important;}
  #characterModal .lorheim-selected-stats strong{font-size:15px !important;}
  #characterModal .lorheim-selected-stats span{font-size:8px !important;}
}

/* =========================================================
   V57 HOTFIX: Fonts zurück stabilisieren, Optionen-Rand entfernen,
   Character-Hub-Stats symmetrisch, Tag/Nacht bleibt JS-seitig intakt
   ========================================================= */

/* Schriftarten: nur Body-Schrift wechselt; Überschriften erben sauber,
   aber behalten ihre jeweils passende Größe statt global riesig zu werden. */
body.font-classic{font-family:Georgia,"Times New Roman",serif !important;}
body.font-clean{font-family:Verdana,Geneva,sans-serif !important;}
body.font-scroll{font-family:"Palatino Linotype",Palatino,serif !important;}
body.font-rune{font-family:"Courier New",monospace !important;}

.zone-title,
.section-title,
.inventory-title,
.village-title,

.tier-popover h3,
.character-popover h1,
#characterModal .lorheim-character-head h1,
#characterModal .lorheim-selected-character h2,
.options-title,
.lorheim-options-subpanel h3,
.levelup-box h2,
.race-card h2,
.option-card h3,
.combat-report h3,
.compendium-group h3{
  font-family:inherit !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  text-align:center !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  text-shadow:0 2px 0 #000,0 0 12px rgba(255,157,42,.32) !important;
}
.zone-title{
  font-size:clamp(20px,3.2vw,32px) !important;
  letter-spacing:clamp(.06em,1.1vw,.13em) !important;
  line-height:1.08 !important;
}
.section-title,
.inventory-title,
.village-title{
  font-size:clamp(16px,2.2vw,22px) !important;
  letter-spacing:.09em !important;
  line-height:1.12 !important;
}
.character-popover h1,
#characterModal .lorheim-character-head h1,
.options-title,

.levelup-box h2{
  font-size:clamp(20px,3vw,28px) !important;
  letter-spacing:clamp(.06em,.9vw,.11em) !important;
  line-height:1.08 !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
#characterModal .lorheim-selected-character h2,
.lorheim-options-subpanel h3,
.tier-popover h3{
  font-size:clamp(16px,2vw,21px) !important;
  letter-spacing:.08em !important;
  line-height:1.1 !important;
}

/* Options-Menü: NICHT als extra umrahmtes Panel innerhalb des Spiel-Frames.
   Der störende äußerste Rand/Outline/Ring wird vollständig entfernt. */
.options-view.active-view{
  display:grid !important;
  place-items:center !important;
  min-height:calc(100vh - 88px) !important;
  max-height:none !important;
  padding:18px !important;
  overflow:visible !important;
}
.options-panel.overlay-panel-shell.lorheim-options-menu-panel,
.options-panel.lorheim-options-menu-panel,
.lorheim-options-menu-panel{
  width:min(410px,92vw) !important;
  max-width:410px !important;
  margin:0 auto !important;
  padding:14px 14px 12px !important;
  border:0 !important;
  outline:0 !important;
  outline-offset:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:visible !important;
}
.lorheim-options-stage{
  border:2px solid #5d5044 !important;
  outline:1px solid rgba(210,190,160,.18) !important;
  outline-offset:-5px !important;
  padding:12px !important;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),inset 0 0 18px rgba(255,150,39,.045),0 10px 28px rgba(0,0,0,.48) !important;
}
.lorheim-options-close{
  right:-10px !important;
  top:-10px !important;
  z-index:20 !important;
}
.lorheim-options-list{margin:6px auto 0 !important;gap:8px !important;}
.lorheim-option-menu-btn{
  width:100% !important;
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:9px 10px !important;
  margin:0 !important;
  font-family:inherit !important;
  font-weight:900 !important;
  font-size:clamp(13px,1.75vw,15px) !important;
  letter-spacing:.08em !important;
  line-height:1 !important;
  color:#180d05 !important;
  background:linear-gradient(180deg,#e0a044 0%,#b36b25 46%,#6e3a14 100%) !important;
  border:2px solid #8a622f !important;
  box-shadow:inset 0 1px rgba(255,231,160,.34),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 0 1px rgba(255,186,76,.12) !important;
  text-shadow:0 1px rgba(255,217,139,.22) !important;
}
.lorheim-option-menu-btn:hover,
.lorheim-option-menu-btn.active{filter:brightness(1.16) !important;border-color:var(--gold-bright) !important;}
.lorheim-options-hint{
  margin-top:10px !important;
  font-family:"Courier New",monospace !important;
  font-size:11px !important;
  line-height:1.35 !important;
}

/* Character-Hub: Preview etwas niedriger, Stats in exakt 2 Reihen à 3 gleich breite Kacheln. */
#characterModal.character-modal.open{
  place-items:center !important;
  align-items:center !important;
  padding:18px !important;
}
#characterModal .lorheim-character-hub{
  width:min(830px,98vw) !important;
  max-height:calc(100vh - 36px) !important;
  overflow:visible !important;
}
#characterModal .lorheim-character-head h1{font-family:inherit !important;}
#characterModal .lorheim-character-layout{
  grid-template-columns:minmax(232px,.86fr) minmax(350px,1.28fr) !important;
  align-items:stretch !important;
  gap:12px !important;
}
#characterModal .lorheim-character-preview{
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  gap:10px !important;
  align-self:stretch !important;
  min-height:0 !important;
}
#characterModal .lorheim-selected-character{
  min-height:0 !important;
  padding:8px 9px !important;
}
#characterModal .lorheim-selected-portrait{
  height:clamp(145px,24vh,218px) !important;
  min-height:145px !important;
  max-height:218px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
}
#characterModal .lorheim-selected-portrait img{
  max-width:94% !important;
  max-height:94% !important;
  height:94% !important;
  width:auto !important;
  object-fit:contain !important;
}
#characterModal .lorheim-selected-bonus{
  margin-top:5px !important;
  padding-top:5px !important;
  font-family:"Courier New",monospace !important;
  font-size:10.5px !important;
  line-height:1.15 !important;
}
#characterModal .lorheim-selected-stats{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:repeat(2,56px) !important;
  gap:6px !important;
  padding:8px !important;
  min-height:128px !important;
  height:128px !important;
  max-height:128px !important;
  align-self:end !important;
}
#characterModal .lorheim-selected-stats div{
  min-width:0 !important;
  width:100% !important;
  height:56px !important;
  min-height:56px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:4px !important;
  padding:5px 3px !important;
}
#characterModal .lorheim-selected-stats strong{
  display:block !important;
  width:100% !important;
  color:var(--gold-bright) !important;
  font-family:inherit !important;
  font-size:clamp(15px,1.9vw,19px) !important;
  font-weight:900 !important;
  line-height:1 !important;
  text-align:center !important;
}
#characterModal .lorheim-selected-stats span{
  display:block !important;
  width:100% !important;
  color:#b49161 !important;
  font-family:"Courier New",monospace !important;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
  line-height:1.05 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow:visible !important;
}
#characterModal .lorheim-character-slot strong,
#characterModal .lorheim-character-slot .button,
#characterModal .mini-choice{font-family:inherit !important;}
#characterModal .lorheim-character-slot span,
#characterModal .lorheim-character-slot small{font-family:"Courier New",monospace !important;}

@media(max-width:760px){
  #characterModal.character-modal.open{place-items:start center !important;align-items:start !important;padding:10px !important;}
  #characterModal .lorheim-character-hub{max-height:none !important;}
  #characterModal .lorheim-character-layout{grid-template-columns:1fr !important;}
  #characterModal .lorheim-selected-portrait{height:clamp(130px,22vh,190px) !important;min-height:130px !important;}
  #characterModal .lorheim-selected-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;grid-template-rows:repeat(2,52px) !important;height:120px !important;min-height:120px !important;max-height:120px !important;}
  .options-view.active-view{min-height:calc(100vh - 70px) !important;padding:12px !important;}
}
@media(max-width:420px){
  .zone-title{font-size:clamp(18px,7vw,24px) !important;letter-spacing:.06em !important;}
  .character-popover h1,#characterModal .lorheim-character-head h1,.options-title,.levelup-box h2{font-size:20px !important;letter-spacing:.06em !important;}
  #characterModal .lorheim-selected-stats strong{font-size:14px !important;}
  #characterModal .lorheim-selected-stats span{font-size:8px !important;}
  .lorheim-option-menu-btn{font-size:13px !important;}
}

/* =========================================================
   V58 FINALFIX: Optionen wirklich aus dem Game-Frame lösen
   =========================================================
   Ursache war nicht nur .options-panel, sondern die komplette
   Options-Section lag weiterhin IM .game-card. Dadurch blieb der
   äußerste Spielkarten-Rahmen sichtbar. Optionen ist jetzt wie ein
   echtes Modal über dem Spiel, nur die innere Menüfläche hat Rahmen.
*/
.options-view{
  display:none !important;
}
.options-view.active-view{
  position:fixed !important;
  inset:0 !important;
  z-index:70 !important;
  display:grid !important;
  place-items:center !important;
  width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  max-height:none !important;
  padding:18px !important;
  margin:0 !important;
  overflow:auto !important;
  background:radial-gradient(circle at 50% 10%,rgba(120,74,22,.28),transparent 34rem),rgba(0,0,0,.86) !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.options-view.active-view::before,
.options-view.active-view::after,
.options-panel.lorheim-options-menu-panel::before,
.options-panel.lorheim-options-menu-panel::after,
.lorheim-options-menu-panel::before,
.lorheim-options-menu-panel::after{
  content:none !important;
  display:none !important;
}
.options-panel.overlay-panel-shell.lorheim-options-menu-panel,
.options-panel.lorheim-options-menu-panel,
.lorheim-options-menu-panel{
  position:relative !important;
  width:min(410px,92vw) !important;
  max-width:410px !important;
  padding:0 !important;
  margin:0 auto !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  outline-offset:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.options-panel.overlay-panel-shell.lorheim-options-menu-panel > .options-title,
.options-panel.lorheim-options-menu-panel > .options-title,
.lorheim-options-menu-panel > .options-title{
  margin:0 0 10px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.lorheim-options-stage{
  position:relative !important;
  width:100% !important;
  padding:12px !important;
  border:2px solid #5d5044 !important;
  outline:1px solid rgba(210,190,160,.18) !important;
  outline-offset:-5px !important;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 36%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403) !important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),inset 0 0 18px rgba(255,150,39,.045),0 10px 28px rgba(0,0,0,.48) !important;
  overflow:visible !important;
}
.lorheim-options-close{
  right:-13px !important;
  top:-13px !important;
  z-index:80 !important;
}
@media(max-width:860px){
  .options-view.active-view{
    padding:12px !important;
    align-items:center !important;
  }
  .options-panel.overlay-panel-shell.lorheim-options-menu-panel,
  .options-panel.lorheim-options-menu-panel,
  .lorheim-options-menu-panel{
    width:min(390px,94vw) !important;
  }
}


/* V55: Dorfplatz-Orte - kompakte Ort-Panels + Textfenster wie Bericht */
.village-place-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  width:100%;
  margin:0;
}
html[data-content-profile="live"] .village-place-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.village-place-card{
  min-width:0;
  min-height:76px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  text-align:left;
  padding:8px 9px 8px;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:
    radial-gradient(circle at 50% 12%,rgba(255,191,92,.11),transparent 36%),
    linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:
    inset 0 0 0 1px rgba(255,215,139,.16),
    inset 0 0 0 4px rgba(6,5,4,.72),
    0 6px 14px rgba(0,0,0,.38);
  cursor:pointer;
}
.village-place-card:hover,
.village-place-card.active{
  border-color:#c18a42;
  filter:brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,221,145,.24),
    inset 0 0 0 4px rgba(6,5,4,.74),
    0 0 15px rgba(255,145,37,.13),
    0 6px 14px rgba(0,0,0,.38);
}
.village-place-card:focus-visible{
  outline:2px solid var(--gold-bright);
  outline-offset:2px;
}
.village-place-card h3{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  margin:0;
  color:#f5d59b;
  font-size:clamp(13px,1.55vw,16px);
  line-height:1.1;
  text-align:center;
  text-shadow:0 2px 0 #000;
  white-space:nowrap;
}
.village-place-icon{
  width:auto;
  height:auto;
  display:inline-grid;
  place-items:center;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  font-size:1em;
  line-height:1;
  flex:0 0 auto;
}
.village-place-button{
  width:100%;
  margin-top:7px;
  padding:5px 6px;
  font-size:11px;
}
.village-place-log{
  margin-top:10px;
  padding:10px 11px;
  border:2px solid #5f4a31;
  outline:1px solid rgba(213,151,73,.28);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,rgba(28,22,17,.96),rgba(8,7,6,.98));
  box-shadow:inset 0 0 0 1px rgba(255,220,160,.08),0 8px 20px rgba(0,0,0,.25);
}
.village-place-log h3{
  display:none;
}
.village-place-log p,.village-place-log-body{
  margin:0;
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
}
@media(max-width:860px){
  .village-place-grid,html[data-content-profile="live"] .village-place-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .village-place-card{min-height:70px;padding:8px 7px 7px;}
  .village-place-card h3{font-size:14px;gap:6px;}
  .village-place-button{padding:5px 6px;font-size:10.5px;}
  .village-place-log{margin-top:8px;padding:8px 9px;}
  .village-place-log p,.village-place-log-body{font-size:11px;}
}
@media(max-width:420px){
  .village-place-grid{gap:6px;}
  .village-place-card{min-height:66px;padding:7px 6px 6px;}
}


/* Lorheim Dorfplatz: Feste-System */
.festival-panel{
  display:grid;
  gap:8px;
  color:#d8b985;
  font-family:"Courier New",monospace;
  line-height:1.35;
}
.festival-header{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--gold-bright,#f5d59b);
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  text-shadow:0 2px 0 #000;
}
.festival-meta,.festival-cycle,.festival-muted{
  color:#b99766;
  font-size:12px;
}
.festival-npc,.festival-quest,.festival-reward,.festival-next{
  border:1px solid rgba(200,155,60,.32);
  background:linear-gradient(145deg,rgba(44,31,18,.72),rgba(10,8,7,.72));
  padding:7px 8px;
  font-size:12px;
}
.festival-action-button{
  width:100%;
  margin-top:2px;
}
.festival-progress-shell{
  height:12px;
  border:1px solid rgba(200,155,60,.45);
  background:linear-gradient(#0e0c09,#17120c);
  overflow:hidden;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.8);
}
.festival-progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#6a471f,#b37a2a,#f5d59b);
  box-shadow:0 0 10px rgba(245,213,155,.35);
  transition:width .18s linear;
}
.festival-progress-label{
  color:#c6a06f;
  font-size:11px;
  text-align:center;
}
.festival-lore-list{
  display:grid;
  gap:5px;
  border-top:1px solid rgba(200,155,60,.22);
  padding-top:7px;
}
.festival-lore-list p{
  margin:0;
  color:#cdb184;
  font-size:12px;
}
.festival-list{
  display:grid;
  gap:3px;
  margin-top:2px;
  padding-top:8px;
  border-top:1px solid rgba(200,155,60,.22);
  font-size:11px;
  color:#b99766;
}
.festival-list b{color:var(--gold-bright,#f5d59b)}
.festival-list span{display:block;}
@media(max-width:860px){
  .festival-header{font-size:16px;}
  .festival-npc,.festival-quest,.festival-reward,.festival-next{font-size:11px;padding:6px 7px;}
}


/* V-FISHING: Dorfteich + Angeln */
.fishing-view{display:none;}
.fishing-view.active-view{display:block;}
.fishing-layout{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:10px;
  align-items:stretch;
}
.fishing-action-panel,
.fishing-result-panel{
  min-width:0;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  padding:11px 12px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38);
}
.fishing-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 8px;
  color:#f5d59b;
  text-shadow:0 2px 0 #000;
}
.fishing-meta strong{font-size:16px;white-space:nowrap;}
.fishing-meta span{color:var(--gold-bright);font:11px "Courier New",monospace;text-align:right;}
.fishing-progress-shell{height:14px;}
.fishing-progress{transition:width .08s linear,filter .08s linear,background .08s linear;}
.fishing-progress.bite{
  background:linear-gradient(90deg,rgba(255,255,255,.16),transparent 18%),linear-gradient(90deg,#6b1412,#d94a24,#ffb13b);
  filter:brightness(1.35);
  animation:fishingBiteTwitch .18s steps(2,end) 2;
}
@keyframes fishingBiteTwitch{
  0%{transform:translateX(0)}
  35%{transform:translateX(-3px)}
  70%{transform:translateX(3px)}
  100%{transform:translateX(0)}
}
.fishing-note{
  margin:8px 0 0;
  color:#b49161;
  font:11px/1.35 "Courier New",monospace;
}
.fishing-result-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:146px;
}
.fishing-result-empty,
.fishing-result-text{
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
}
.fishing-loot-card{
  display:grid;
  grid-template-columns:108px 1fr;
  gap:10px;
  align-items:center;
}
.fishing-loot-icon{
  width:108px;
  height:108px;
  display:grid;
  place-items:center;
  border:1px solid #8f744c;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 10px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);
  font-size:58px;
}
.fishing-loot-icon .item-icon-img{
  width:104px;
  height:104px;
  max-width:104px;
  max-height:104px;
  object-fit:contain;
  object-position:center;
}
.fishing-loot-title{
  margin:0 0 4px;
  color:#f5d59b;
  font-size:17px;
  text-shadow:0 2px 0 #000;
}
.fishing-loot-title.rare{color:var(--gold-bright);}
.fishing-loot-meta{
  margin:0;
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
}
.fishing-loot-extra{
  margin-top:6px;
  color:#b49161;
  font:11px/1.35 "Courier New",monospace;
}
@media(max-width:860px){
  .fishing-layout{grid-template-columns:1fr;gap:8px;}
  .fishing-result-panel{min-height:118px;}
  .fishing-meta strong{font-size:15px;}
}


/* V-FISH-OW: Overworld-Angeln nur in ausgewählten Gewässer-Zonen */
.skill[data-id="fishing"]{display:none}
body.zone-fishing-active .skill[data-id="fishing"]{display:block}
body.zone-fishing-active .skill-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
body.zone-fishing-active .skill[data-id="herbalism"]{grid-column:1;grid-row:1}
body.zone-fishing-active .skill[data-id="mining"]{grid-column:1;grid-row:2}
body.zone-fishing-active .skill[data-id="combat"]{grid-column:2;grid-row:1}
body.zone-fishing-active .skill[data-id="fishing"]{grid-column:2;grid-row:2}
.skill[data-id="fishing"] .progress.bite,
.fishing-progress.bite{
  background:linear-gradient(90deg,rgba(255,255,255,.18),transparent 18%),linear-gradient(90deg,#7a1010,#ff3f30,#ffb13b) !important;
  box-shadow:0 0 16px rgba(255,55,35,.75),0 0 4px rgba(255,255,255,.35);
  animation:fishingBiteTwitch .42s ease;
}
@keyframes fishingBiteTwitch{
  0%{transform:translateX(0);filter:brightness(1)}
  28%{transform:translateX(-3px);filter:brightness(1.55)}
  52%{transform:translateX(3px);filter:brightness(1.25)}
  78%{transform:translateX(-1px);filter:brightness(1.45)}
  100%{transform:translateX(0);filter:brightness(1)}
}
@media(max-width:860px){
  body.zone-fishing-active .skill-grid{grid-template-columns:1fr}
  body.zone-fishing-active .skill[data-id="herbalism"],
  body.zone-fishing-active .skill[data-id="mining"],
  body.zone-fishing-active .skill[data-id="combat"],
  body.zone-fishing-active .skill[data-id="fishing"]{grid-column:auto;grid-row:auto}
}


/* V-FISHING-LOCK: kleines Hinweis-Overlay für gesperrte Angelplätze */
.overworld-fishing-lock-overlay{position:fixed;inset:0;z-index:95;display:none;place-items:center;background:rgba(0,0,0,.55);padding:18px}
.overworld-fishing-lock-overlay.open{display:grid}
.overworld-fishing-lock-box{width:min(340px,92vw);border:3px solid #5f4a31;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.12),transparent 38%),linear-gradient(145deg,#1b1511,#070605 78%);box-shadow:inset 0 0 0 1px rgba(255,220,160,.10),0 18px 44px rgba(0,0,0,.72);padding:14px 15px;text-align:center}
.overworld-fishing-lock-box strong{display:block;color:var(--gold-bright);font-size:18px;text-shadow:0 2px #000;margin-bottom:8px}
.overworld-fishing-lock-box p{margin:0 0 12px;color:#c6a06f;font:13px/1.4 "Courier New",monospace}
.overworld-fishing-lock-box .button{margin-top:0}

/* V-FISHING-CLEANUP: Dorfteich-Panel nutzt nur Angelzug + XP-Leiste + Button. */
.fishing-action-panel .fishing-meta{justify-content:flex-start;margin-bottom:7px;}
.fishing-action-panel .fishing-meta span{display:none;}


/* NAV-DORF-REPLACEMENT-FIX: Gebäude-Buttons, die temporär zum Dorf-Button werden,
   nutzen dieselbe kompakte Icon-Größe wie Taverne/Apotheke.
   Der große enterVillageNav-Dorfbutton im Waldmodus bleibt unverändert. */
.bottom-nav.village-mode .nav-btn[data-nav-replacement-active="1"] .nav-icon-img,
.bottom-nav.village-mode .nav-btn .nav-icon-img.nav-icon-village-replacement{
  width:auto !important;
  height:auto !important;
  max-width:29px !important;
  max-height:32px !important;
  top:5px !important;
  object-fit:contain !important;
}
@media(max-width:860px){
  .bottom-nav.village-mode .nav-btn[data-nav-replacement-active="1"] .nav-icon-img,
  .bottom-nav.village-mode .nav-btn .nav-icon-img.nav-icon-village-replacement{
    max-width:26px !important;
    max-height:29px !important;
    top:4px !important;
  }
}

#tavernView .village-building-banner{
    object-position: calc(50% - 7px) -1px !important;
    transform: scale(1.02);
    transform-origin: top center;
}
/* Friedhof v0.1 */
.graveyard-view { display:none; }
.graveyard-view.active-view { display:block; }
.graveyard-layout { display:grid; gap:14px; margin-top:14px; }
.graveyard-panel,
.graveyard-npc-card {
  border:1px solid rgba(232, 213, 164, 0.26);
  background:rgba(22, 17, 14, 0.72);
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
.graveyard-meta,
.graveyard-wave-head,
.graveyard-hp-row,
.graveyard-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.graveyard-meta span,
.graveyardEnemyPower,
.graveyard-wave-head span,
.graveyard-muted { opacity:.76; font-size:.86rem; }
.graveyard-npc-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.graveyard-npc-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.graveyard-npc-icon { font-size:1.7rem; }
.graveyard-npc-head small { display:block; opacity:.72; margin-top:2px; }
.graveyard-combat-panel .progress-shell { margin-bottom:10px; }
.graveyard-progress { transition:width .12s linear; }
.graveyard-log { min-height:78px; line-height:1.45; }
.button.danger { border-color:rgba(176, 58, 58, .6); }
@media (max-width: 720px) {
  .graveyard-npc-grid { grid-template-columns:1fr; }
  .graveyard-meta,
  .graveyard-wave-head,
  .graveyard-hp-row { align-items:flex-start; flex-direction:column; }
}

/* Graveyard v2: kompaktes Dorfteich-Layout */
.village-building-header { position: relative; }
.village-back-btn {
  position:absolute;
  left:14px;
  top:12px;
  z-index:3;
  border:1px solid rgba(213,151,73,.55);
  background:rgba(12,8,5,.78);
  color:var(--accent, #d59749);
  font-family:inherit;
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.03em;
  padding:6px 10px;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,.65) inset;
}
.village-back-btn:hover { filter:brightness(1.12); }
 .graveyard-layout-v2 {
  display:grid;
  grid-template-columns:minmax(260px, .9fr) minmax(360px, 1.9fr);
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}
.graveyard-combat-card,
.graveyard-warden-card,
.graveyard-log-card,
.graveyard-result-card {
  border:2px solid #6b4a2a;
  outline:1px solid rgba(213,151,73,.20);
  outline-offset:-5px;
  background:linear-gradient(180deg, rgba(38,27,17,.92), rgba(10,8,6,.96));
  box-shadow:0 8px 20px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,214,139,.06);
  padding:12px;
}
.graveyard-combat-card { position:relative; min-height:132px; }
.graveyard-combat-title {
  border:1px solid rgba(213,151,73,.24);
  background:rgba(16,13,10,.64);
  padding:5px 9px;
  margin-bottom:7px;
  color:#f0d6b0;
  text-shadow:0 1px #000;
}
.graveyard-wave-badge {
  position:absolute;
  right:8px;
  top:8px;
  z-index:2;
  min-width:34px;
  text-align:center;
  padding:3px 6px;
  border:1px solid rgba(255,180,160,.85);
  background:linear-gradient(180deg, #8f1d1d, #3d0808);
  color:#ffd9c8;
  font-weight:900;
  font-size:.78rem;
  box-shadow:0 0 0 1px rgba(0,0,0,.8), 0 0 10px rgba(150,0,0,.25);
}
.graveyard-progress-shell { height:14px; margin-bottom:7px; background:rgba(0,0,0,.55); }
.graveyard-progress {
  transition:width .12s linear;
  background:linear-gradient(90deg, #7f1515, #c12b22);
  box-shadow:0 0 8px rgba(160,20,20,.35);
}
.graveyard-xp-shell { height:12px; margin-bottom:10px; }
.graveyard-view .bar-label,
.graveyard-xp-label { font-size:.76rem; }
.graveyard-combat-card > .button { width:100%; }
.graveyard-warden-card {
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:8px 10px;
}
.graveyard-warden-portrait {
  grid-row:1 / span 2;
  width:128px;
  height:128px;
  min-height:0;
  aspect-ratio:1 / 1;
  border:1px solid rgba(213,151,73,.24);
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.graveyard-warden-portrait img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.graveyard-warden-text {
  border:1px solid rgba(213,151,73,.24);
  background:rgba(16,13,10,.74);
  padding:8px 10px;
  min-height:64px;
  line-height:1.35;
  font-size:.76rem;
}
.graveyard-combat-card > .button:disabled,
.graveyard-combat-card > .button.is-disabled {
  opacity:.48;
  cursor:not-allowed;
  filter:grayscale(.55);
}
.graveyard-warden-text p { margin:0 0 6px; }
.graveyard-warden-text em { opacity:.82; font-size:.76rem; }
.graveyard-record-box {
  border:1px solid rgba(213,151,73,.24);
  background:rgba(16,8,8,.58);
  padding:7px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:.80rem;
}
.graveyard-log-card,
.graveyard-result-card {
  grid-column:1 / -1;
  min-height:48px;
  line-height:1.45;
  font:12px/1.45 "Courier New", monospace;
  color:#c6a06f;
}
.graveyard-log-card strong,
.graveyard-result-card strong { color:#ffb13b; }
.graveyard-progress-shell:has(.graveyard-progress[style*="100"]) { animation:graveyardPulse .24s linear 1; }
@keyframes graveyardPulse { 0%,100%{transform:translateX(0)} 35%{transform:translateX(-1px)} 70%{transform:translateX(1px)} }
@media (max-width: 760px) {
  .graveyard-layout-v2 { grid-template-columns:1fr; }
  .graveyard-warden-card { grid-template-columns:108px minmax(0,1fr); }
  .graveyard-warden-portrait { width:108px; height:108px; }
  .graveyard-record-box { flex-direction:column; align-items:flex-start; }
  .village-back-btn { position:static; display:inline-block; margin-bottom:8px; }
}


/* Friedhof Final: kompaktes Gregor-Panel + Detailbericht */
.graveyard-warden-card{
  grid-template-columns:128px minmax(0,1fr) !important;
  grid-template-rows:auto auto !important;
  align-items:start !important;
}
.graveyard-warden-portrait{
  width:128px !important;
  height:128px !important;
  aspect-ratio:1 / 1 !important;
  grid-row:1 / span 2 !important;
  align-self:start !important;
  justify-self:start !important;
  flex:0 0 128px !important;
}
.graveyard-warden-portrait img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
}
.graveyard-warden-text{
  min-height:74px !important;
  font-size:.70rem !important;
  line-height:1.28 !important;
  padding:7px 9px !important;
}
.graveyard-warden-text em{font-size:.70rem !important;line-height:1.25 !important;}
.graveyard-record-box{
  min-height:46px !important;
  font-size:.76rem !important;
}
.graveyard-combat-title .icon + .icon{display:none !important;}
.graveyard-hidden-result{display:none !important;}
.graveyard-detail-card{
  grid-column:1 / -1;
  margin-top:0;
  border:2px solid #6b4a2a;
  outline:1px solid rgba(213,151,73,.20);
  outline-offset:-5px;
  background:linear-gradient(180deg, rgba(38,27,17,.92), rgba(10,8,6,.96));
  box-shadow:0 8px 20px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,214,139,.06);
  padding:10px 12px;
  color:#c6a06f;
  font:11px/1.45 "Courier New", monospace;
}
.graveyard-detail-card summary{
  cursor:pointer;
  color:#f5d59b;
  font-weight:700;
  text-shadow:0 1px #000;
}
.graveyard-detail-body{
  margin-top:8px;
  display:grid;
  gap:5px;
}
.graveyard-detail-body .dungeon-room-detail-line{
  border-top:1px solid rgba(213,151,73,.14);
  padding-top:5px;
}
@media (max-width:760px){
  .graveyard-warden-card{grid-template-columns:104px minmax(0,1fr) !important;}
  .graveyard-warden-portrait{width:104px !important;height:104px !important;flex-basis:104px !important;}
  .graveyard-warden-text{font-size:.66rem !important;}
}


/* Friedhof Final v2: großes quadratisches Gregor-Portrait + saubere Textfläche */
.graveyard-layout-v2{
  grid-template-columns:minmax(260px,.86fr) minmax(420px,1.95fr) !important;
}
#graveyardEnemyPower::before{content:"";}
.graveyard-warden-card{
  grid-template-columns:180px minmax(0,1fr) !important;
  grid-template-rows:minmax(112px,1fr) auto !important;
  min-height:180px !important;
  align-items:stretch !important;
  gap:8px 10px !important;
}
.graveyard-warden-portrait{
  width:180px !important;
  height:180px !important;
  min-width:180px !important;
  min-height:180px !important;
  aspect-ratio:1 / 1 !important;
  grid-row:1 / span 2 !important;
  align-self:stretch !important;
  justify-self:stretch !important;
}
.graveyard-warden-portrait img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
}
.graveyard-warden-text{
  min-height:112px !important;
  height:auto !important;
  font-size:.68rem !important;
  line-height:1.25 !important;
  padding:8px 10px !important;
  overflow:hidden !important;
}
.graveyard-warden-text p{margin:0 0 6px !important;}
.graveyard-warden-text em{
  display:block !important;
  margin-top:2px !important;
  font-size:.66rem !important;
  line-height:1.22 !important;
}
.graveyard-record-box{
  min-height:60px !important;
  align-self:stretch !important;
  font-size:.74rem !important;
}
@media (max-width:760px){
  .graveyard-layout-v2{grid-template-columns:1fr !important;}
  .graveyard-warden-card{
    grid-template-columns:132px minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    min-height:132px !important;
  }
  .graveyard-warden-portrait{
    width:132px !important;
    height:132px !important;
    min-width:132px !important;
    min-height:132px !important;
  }
  .graveyard-warden-text{font-size:.62rem !important;line-height:1.18 !important;min-height:84px !important;padding:7px 8px !important;}
  .graveyard-warden-text em{font-size:.60rem !important;line-height:1.15 !important;}
  .graveyard-record-box{min-height:40px !important;font-size:.68rem !important;gap:5px !important;}
}
@media (max-width:520px){
  .graveyard-warden-card{
    grid-template-columns:112px minmax(0,1fr) !important;
    min-height:112px !important;
    gap:7px !important;
  }
  .graveyard-warden-portrait{
    width:112px !important;
    height:112px !important;
    min-width:112px !important;
    min-height:112px !important;
  }
  .graveyard-warden-text{font-size:.58rem !important;line-height:1.12 !important;min-height:76px !important;}
  .graveyard-warden-text p:nth-of-type(2){display:none !important;}
  .graveyard-record-box{font-size:.62rem !important;padding:6px 7px !important;}
}

/* LORHEIM HOTFIX: Schnellmenü dauerhaft links/rechts fixieren (auch wenn Inline-CSS nicht greift) */
#lorheimSideHud{
  position:fixed !important;
  left:10px !important;
  top:88px !important;
  bottom:auto !important;
  right:auto !important;
  z-index:18 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:7px !important;
  pointer-events:none !important;
  transform:none !important;
}
#lorheimBuffHud{
  position:fixed !important;
  right:10px !important;
  top:88px !important;
  bottom:auto !important;
  left:auto !important;
  z-index:18 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  gap:7px !important;
  pointer-events:none !important;
  transform:none !important;
}
#lorheimSideHud > div,
#lorheimSideHud > button,
#lorheimBuffHud > div{
  pointer-events:auto !important;
}
#lorheimSideHud #skillHubWrap,
#lorheimSideHud #questHudWrap,
#lorheimBuffHud #buffHudWrap{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  display:block !important;
  transform:none !important;
  margin:0 !important;
}
#lorheimSideHud button,
#lorheimBuffHud button,
#lorheimSideHud #skillHubButton,
#lorheimSideHud #questHudButton,
#lorheimBuffHud #buffHudButton,
#lorheimMuteToggleBtn{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  display:grid !important;
  place-items:center !important;
  border:2px solid rgba(181,128,49,.72) !important;
  outline:1px solid rgba(255,221,145,.18) !important;
  outline-offset:-4px !important;
  background:linear-gradient(#281b10,#0c0805) !important;
  color:#ffd98b !important;
  box-shadow:0 8px 22px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,222,150,.08) !important;
  cursor:pointer !important;
  opacity:.42 !important;
  filter:saturate(.78) brightness(.86) !important;
  transition:opacity .16s ease, filter .16s ease, transform .16s ease, border-color .16s ease !important;
  font-size:18px !important;
  line-height:1 !important;
  padding:0 !important;
  border-radius:0 !important;
}
#lorheimSideHud button:hover,
#lorheimSideHud button:focus-visible,
#lorheimBuffHud button:hover,
#lorheimBuffHud button:focus-visible,
#lorheimSideHud #skillHubWrap:focus-within #skillHubButton,
#lorheimSideHud #questHudWrap:focus-within #questHudButton,
#lorheimBuffHud #buffHudWrap:focus-within #buffHudButton{
  opacity:1 !important;
  filter:none !important;
  transform:translateX(2px) !important;
  border-color:#e0ad52 !important;
}
#lorheimBuffHud #buffHudButton:hover,
#lorheimBuffHud #buffHudButton:focus-visible,
#lorheimBuffHud #buffHudWrap:focus-within #buffHudButton{
  transform:translateX(-2px) !important;
}
#lorheimMuteToggleBtn.muted{
  opacity:.55 !important;
  filter:grayscale(.8) brightness(.82) !important;
}
#lorheimBuffHud #buffHudPanel{
  position:absolute !important;
  right:48px !important;
  left:auto !important;
  top:0 !important;
  bottom:auto !important;
  z-index:20 !important;
  max-width:min(340px,calc(100vw - 76px)) !important;
}
.tier-close,.overlay-close-x,.lorheim-options-close,.village-back-button,.quest-back,[data-close],#tierModalClose{
  position:relative;
  z-index:60 !important;
}
@media(max-width:860px){
  #lorheimSideHud{left:6px !important;top:72px !important;gap:5px !important;}
  #lorheimBuffHud{right:6px !important;top:72px !important;gap:5px !important;}
  #lorheimSideHud button,
  #lorheimBuffHud button,
  #lorheimSideHud #skillHubButton,
  #lorheimSideHud #questHudButton,
  #lorheimBuffHud #buffHudButton,
  #lorheimMuteToggleBtn{
    width:32px !important;height:32px !important;min-width:32px !important;min-height:32px !important;font-size:15px !important;
  }
  #lorheimBuffHud #buffHudPanel{right:40px !important;max-width:calc(100vw - 52px) !important;}
}


/* Friedhof Tag/Nacht: tagsüber nur Flavour-Textbox, nachts Wellenkampf */
.graveyard-daytime-card{
  margin-top:10px;
  padding:12px 14px;
  border:2px solid #5f4a31;
  outline:1px solid rgba(213,151,73,.28);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 38%),linear-gradient(145deg,rgba(28,22,17,.96),rgba(8,7,6,.98));
  box-shadow:inset 0 0 0 1px rgba(255,220,160,.08),0 8px 20px rgba(0,0,0,.25);
  color:#c6a06f;
  font:12px/1.45 "Courier New",monospace;
  text-align:center;
}
.graveyard-view:not(.graveyard-daytime-only) .graveyard-daytime-card{display:none}
.graveyard-view.graveyard-daytime-only .graveyard-layout-v2{display:none !important}
.graveyard-view.graveyard-daytime-only #graveyardFlavorText{display:none !important}
@media(max-width:860px){
  .graveyard-daytime-card{margin-top:8px;padding:10px 11px;font-size:11px}
}



/* Kompendium: Kategorien, Begleiter, Ausrüstung */
.compendium-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;}
.compendium-category-card{min-height:168px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.24);outline-offset:-5px;background:radial-gradient(circle at 50% 18%,rgba(255,191,92,.12),transparent 38%),linear-gradient(145deg,#18120e,#080605 76%,#030202);color:#f5d59b;padding:16px 12px;cursor:pointer;font-family:inherit;text-align:center;box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),0 6px 14px rgba(0,0,0,.34);}
.compendium-category-card:hover{filter:brightness(1.12);border-color:#c18a42;}
.compendium-category-icon{display:block;font-size:42px;line-height:1;margin:0 0 12px;text-shadow:0 3px #000;}
.compendium-category-card strong{display:block;font-size:21px;text-transform:uppercase;letter-spacing:.06em;text-shadow:0 2px #000;}
.compendium-category-card small{display:block;margin-top:8px;color:#b49161;font:12px/1.35 "Courier New",monospace;}
.compendium-intro{max-width:760px;margin:0 auto 14px;text-align:center;}
.compendium-companion-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;}
.compendium-companion-grid{display:grid;gap:8px;}
.compendium-companion-card{display:grid;grid-template-columns:80px 1fr;gap:15px;align-items:center;width:100%;min-height:96px;text-align:left;border:2px solid #5d462b;background:linear-gradient(145deg,#15110e,#090706 70%,#030302);color:#f5d59b;padding:8px;cursor:pointer;font-family:inherit;}
.compendium-companion-card:hover{filter:brightness(1.1);border-color:#9b743f;}
.compendium-companion-card.is-active{border-color:#d99024;box-shadow:0 0 12px rgba(255,145,37,.20),inset 0 0 0 1px rgba(255,215,139,.14);}
.compendium-companion-card.is-locked{opacity:.68;}
.compendium-companion-icon{width:80px;height:80px;display:grid;place-items:center;border:0;background:transparent;font-size:38px;text-shadow:0 2px #000;}
.compendium-companion-icon .compendium-companion-pet-img{display:block;width:80px;height:80px;max-width:80px;max-height:80px;object-fit:contain;object-position:center;margin:0;}
.compendium-companion-info b{display:block;font-size:15px;}
.compendium-companion-info small{display:block;color:#d2ae75;font:11px "Courier New",monospace;}
.compendium-companion-info em{display:block;margin-top:3px;color:#8f724b;font:10px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;font-style:normal;}
.compendium-companion-card.is-unlocked .compendium-companion-info em{color:#83a75a;}
.compendium-companion-card.is-active .compendium-companion-info em{color:#ffb13b;}
.compendium-companion-big-icon span{font-size:72px;text-shadow:0 4px #000;}
.compendium-empty-panel{min-height:210px;border:2px dashed rgba(213,151,73,.28);background:rgba(0,0,0,.16);display:grid;place-items:center;text-align:center;padding:24px;color:#b49161;}
.compendium-empty-panel span{font-size:52px;line-height:1;display:block;margin-bottom:8px;}
.compendium-empty-panel b{display:block;color:#f5d59b;font-size:18px;text-transform:uppercase;letter-spacing:.06em;}
.compendium-empty-panel small{display:block;max-width:520px;margin-top:8px;font:12px/1.4 "Courier New",monospace;}

@media(max-width:860px){.compendium-category-grid,.compendium-companion-groups{grid-template-columns:1fr;}.compendium-category-card{min-height:120px}.compendium-category-icon{font-size:34px}.compendium-companion-card{grid-template-columns:80px 1fr}.compendium-companion-icon{width:80px;height:80px;font-size:34px}}

/* Patch: Options-Hinweisbox stabil auf 3 Textzeilen halten, damit das Menü beim Hover nicht springt. */
.lorheim-options-hint{
  min-height:calc(3em * 1.35) !important;
  line-height:1.35 !important;
  display:flex !important;
  align-items:flex-start !important;
  box-sizing:border-box !important;
}
.compendium-group-no-title h3{display:none !important;}


/* UI-Fix: Options-Hinweisbox bleibt immer gleich hoch; Begleiterliste ohne zusätzliche Spalten-Frames */
.lorheim-options-hint,
.log.lorheim-options-hint{
  box-sizing:border-box !important;
  height:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  overflow:hidden !important;
  display:block !important;
}
.compendium-companion-groups > .compendium-group-no-title{
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
}

/* AFK-Cap-Warnung: nur im AFK-Bericht bei langer Abwesenheit */
.offline-cap-warning{
  margin-top:10px;
  padding:9px 10px;
  border:2px solid #b01818;
  background:rgba(120,0,0,.28);
  color:#ff4a4a;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* LOREHEIM PATCH: Kompendium-Icons als Assets + Rare-Entdeckungs-Overlay */
.compendium-role-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  vertical-align:-4px;
  image-rendering:auto;
  flex:0 0 auto;
}
.compendium-monster-info b{
  display:flex !important;
  align-items:center;
  gap:6px;
}
.compendium-title-with-icon{
  display:flex;
  align-items:center;
  gap:8px;
}
.compendium-title-with-icon .compendium-role-icon{
  width:28px;
  height:28px;
}
.rare-discovery-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  place-items:center;
  padding:24px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(2px);
}
.rare-discovery-overlay.open{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;overflow-y:auto;}
.rare-discovery-card{
  width:min(420px, calc(100vw - 32px));
  text-align:center;
  border:3px solid #d9a441;
  outline:1px solid rgba(255,235,156,.7);
  outline-offset:-8px;
  border-radius:4px;
  padding:20px 18px 18px;
  color:#f9df9f;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,206,88,.24), transparent 34%),
    linear-gradient(145deg,#21160b,#0d0906 64%,#050302);
  box-shadow:0 0 32px rgba(255,183,59,.42), 0 18px 46px rgba(0,0,0,.72), inset 0 0 24px rgba(255,186,62,.12);
  animation:rareDiscoveryPulse 1.9s ease-in-out infinite;
}
.rare-discovery-kicker{
  font:bold 13px "Courier New", monospace;
  letter-spacing:.12em;
  color:#ffd36b;
  text-shadow:0 2px #000;
  margin-bottom:12px;
}
.rare-discovery-image{
  width:152px;
  height:152px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border:2px solid #9a7132;
  background:radial-gradient(circle, rgba(255,218,119,.13), rgba(0,0,0,.5));
  box-shadow:inset 0 0 18px rgba(255,205,87,.13);
}
.rare-discovery-image img{max-width:100%;max-height:100%;object-fit:contain;display:block;}
.rare-discovery-card h2{margin:6px 0 5px;color:#ffe2a2;text-shadow:0 2px #000;font-size:30px;}
.rare-discovery-role{display:flex;align-items:center;justify-content:center;gap:7px;margin-bottom:10px;color:#ffcf66;font:bold 12px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;}
.rare-discovery-role .compendium-role-icon{width:24px;height:24px;}
.rare-discovery-card p{margin:10px auto 12px;max-width:330px;color:#b8945b;font:bold 11px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;line-height:1.35;}
.rare-discovery-card small{display:block;color:#b8945b;font:bold 11px "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px;}
.rare-discovery-ok{min-width:120px;}
@keyframes rareDiscoveryPulse{
  0%,100%{transform:scale(1.02);box-shadow:0 0 28px rgba(255,183,59,.34),0 18px 46px rgba(0,0,0,.72),inset 0 0 24px rgba(255,186,62,.10);}
  50%{transform:scale(1.018);box-shadow:0 0 46px rgba(255,204,91,.56),0 18px 46px rgba(0,0,0,.72),inset 0 0 28px rgba(255,205,92,.18);}
}
.rare-discovery-role em{font-style:normal;color:#d7a94e;font:bold 10px "Courier New",monospace;letter-spacing:.06em;margin-left:2px;opacity:.95;}


/* Lorheim Erfolge - im Kompendium-Stil */
.achievements-view{display:none;}
.achievements-view.active-view{display:block !important;}
.achievements-panel{max-width:980px;margin:0 auto;}
.achievement-topline{margin-bottom:12px;}
.achievement-category-stack{display:grid;gap:12px;}
.achievement-category{border:1px solid rgba(255,181,62,.22);padding:10px;background:rgba(0,0,0,.14);}
.achievement-category h3{margin:0 0 8px;color:#f5d59b;text-transform:uppercase;text-shadow:0 2px #000;font-size:15px;letter-spacing:.08em;display:flex;align-items:center;gap:8px;}
.achievement-category-icon-img{width:25px;height:25px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 1px #000);}
.achievement-subcategory{margin-top:10px;}
.achievement-subcategory:first-of-type{margin-top:0;}
.achievement-subcategory h4{margin:0 0 7px;color:#d7b16f;text-transform:uppercase;text-shadow:0 2px #000;font-size:12px;letter-spacing:.08em;}
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.achievement-card{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;min-height:78px;border:2px solid #5d462b;background:linear-gradient(145deg,#15110e,#090706 70%,#030302);color:#f5d59b;padding:8px;font-family:inherit;box-shadow:inset 0 0 0 1px rgba(255,215,139,.10);}
/* Gleichmäßige Achievement-Kategorie-Färbung: keine Verläufe, nur dezenter Panel-Hintergrund. */
.achievement-card.achievement-tone-combat{background:rgba(155,55,49,.24);}
.achievement-card.achievement-tone-dungeons{background:rgba(105,57,150,.22);}
.achievement-card.achievement-tone-herbs{background:rgba(54,150,72,.22);}
.achievement-card.achievement-tone-smithing{background:rgba(184,92,32,.22);}
.achievement-card.achievement-tone-ores{background:rgba(118,126,130,.22);}
.achievement-card.achievement-tone-alchemy{background:rgba(70,166,150,.22);}
.achievement-card.achievement-tone-fishing{background:rgba(64,122,180,.22);}
.achievement-card.achievement-tone-church{background:rgba(249,245,230,.24);}
.achievement-card.achievement-tone-exploration{background:rgba(195,153,43,.27);}
.achievement-card.achievement-tone-companions{background:rgba(150,104,52,.22);}
.achievement-card.achievement-tone-character{background:rgba(75,110,180,.22);}
.achievement-card.achievement-tone-meta{background:rgba(190,150,52,.22);}
.achievement-card.is-done{border-color:#b37a2a;box-shadow:0 0 14px rgba(255,145,37,.18),inset 0 0 0 1px rgba(255,222,150,.16);}
/* Champion: distinct double gold frame, with stronger glow once earned. */
.achievement-card.achievement-champion{border:3px double #cda45c;box-shadow:0 0 10px rgba(205,164,92,.23),inset 0 0 0 1px rgba(255,221,149,.20);}
.achievement-card.achievement-champion.is-done{border-color:#ffe0a0;box-shadow:0 0 18px rgba(255,181,62,.42),inset 0 0 0 1px rgba(255,222,150,.35);}
.achievement-icon{width:46px;height:46px;display:grid;place-items:center;border:1px solid #6f5535;background:#080705;font-size:26px;text-shadow:0 2px #000;overflow:hidden;}
.achievement-asset-icon{width:40px;height:40px;object-fit:contain;display:block;}
.achievement-body strong{display:block;font-size:15px;color:#f5d59b;text-shadow:0 2px #000;}
.achievement-body small{display:block;color:#b49161;font:11px/1.35 "Courier New",monospace;margin-top:2px;}
.achievement-progress-row{display:flex;justify-content:space-between;gap:8px;margin-top:5px;color:#c6a06f;font:bold 10px "Courier New",monospace;text-transform:uppercase;letter-spacing:.05em;}
.achievement-progress-row em{font-style:normal;color:#b49161;}
.achievement-card.is-done .achievement-progress-row em{color:#ffb13b;}
.achievement-mini-bar{margin-top:5px;}
@media(max-width:860px){.achievement-grid{grid-template-columns:1fr}.achievements-panel{max-width:100%;}}


/* Lorheim Erfolg-Popup: nicht-blockierend, kein Einfluss auf 10s-Fortschritt */











/* Lorheim Multiplayer Lobby Prototype */
.lobby-view{display:none;width:100%;max-width:1060px;margin:0 auto;padding:14px 12px 96px;}
.lobby-view.active-view{display:block;}
.lobby-page-shell{
  border:2px solid #5d462b;
  outline:1px solid rgba(213,151,73,.22);
  outline-offset:-8px;
  background:linear-gradient(145deg,#15110e,#080604 72%,#020101);
  padding:16px 18px 20px;
  border-radius:0;
  box-shadow:0 20px 34px rgba(0,0,0,.50),inset 0 0 0 1px rgba(255,215,139,.08);
  min-height:760px;
}
.lobby-page-header{display:flex;align-items:center;justify-content:flex-start;margin:0 0 6px;padding:0;}
.lobby-back-btn{white-space:nowrap;margin:0!important;}
.lobby-title{margin:0 0 10px!important;text-align:center;}
.lobby-kicker{margin:0 0 5px;color:#c6a06f;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:900;line-height:1.2;}
.lobby-subtitle,.lobby-note{margin:0;color:#c6a06f;font-size:12px;line-height:1.45;}
.lobby-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:190px 520px;grid-template-areas:"menu dungeons" "main dungeons";gap:12px;align-items:stretch;}
.lobby-panel{min-width:0;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.18);outline-offset:-5px;background:linear-gradient(145deg,#15110e,#090706 70%,#030302);border-radius:0;padding:13px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.08);font-family:"Courier New",monospace;overflow:hidden;}
.lobby-menu-panel{grid-area:menu;display:flex;flex-direction:column;gap:10px;}
.lobby-main-panel{grid-area:main;display:flex;flex-direction:column;}
.lobby-dungeon-panel{grid-area:dungeons;display:flex;flex-direction:column;}
.lobby-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.lobby-primary,.lobby-ready-btn,.lobby-start-btn{width:100%;}
.lobby-create-config{display:none;border:1px solid #3b2a18;background:rgba(0,0,0,.18);padding:8px;}
.lobby-create-config.active{display:block;}
.lobby-create-config label{display:block;margin:0 0 6px;color:#f4d69c;font:bold 11px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;}
.lobby-create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
.lobby-create-row select{min-width:0;border:1px solid #5d462b;background:#0b0806;color:#f4ead1;border-radius:0;padding:8px 9px;font:12px/1.2 "Courier New",monospace;outline:none;}
.lobby-create-row select:focus{border-color:#8a622f;}
.lobby-code-box{border:1px solid #3b2a18;background:rgba(0,0,0,.28);border-radius:0;padding:9px 10px;text-align:center;}
.lobby-code-box span{display:block;color:#9f7d50;font-size:11px;text-transform:uppercase;letter-spacing:.08em;}
.lobby-code-box strong{display:block;color:#f4d69c;font-size:20px;letter-spacing:.12em;margin-top:3px;}
.lobby-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.lobby-panel h3{margin:0;color:#f4d69c;text-shadow:0 2px #000;letter-spacing:.07em;font-family:inherit;font-size:18px;}
.lobby-pill{border:1px solid #5d462b;background:rgba(0,0,0,.26);color:#f4d69c;border-radius:0;padding:5px 8px;font-size:11px;font-weight:900;white-space:nowrap;}
.lobby-slots{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:12px;}
.lobby-slot{min-height:58px;border:1px solid #3b2a18;background:linear-gradient(180deg,rgba(34,27,18,.78),rgba(8,7,6,.70));border-radius:0;padding:8px 10px;text-align:left;display:grid;grid-template-columns:42px minmax(0,1fr) 92px;grid-template-areas:"avatar name status" "avatar meta status";align-items:center;gap:2px 10px;}
.lobby-slot.empty{opacity:.58;border-style:dashed;}
.lobby-slot-avatar{grid-area:avatar;width:34px;height:34px;margin:0;border-radius:0;display:grid;place-items:center;background:rgba(0,0,0,.26);border:1px solid #5d462b;font-size:18px;}
.lobby-slot-name{grid-area:name;color:#f4d69c;font-weight:900;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.lobby-slot-meta{grid-area:meta;color:#c6a06f;font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.lobby-slot-ready,.lobby-slot-waiting{grid-area:status;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;text-align:right;white-space:nowrap;}
.lobby-slot-ready{color:#8fd18f;}
.lobby-slot-waiting{color:#c69d58;}
.lobby-role-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:auto 0 12px;}
.lobby-role-btn{border:2px solid #5d462b;background:rgba(0,0,0,.28);color:#c6a06f;border-radius:0;padding:8px 7px;font:900 12px/1.1 "Courier New",monospace;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.08);}
.lobby-role-btn.active{background:rgba(213,151,73,.16);color:#f4d69c;border-color:#8a622f;}
.lobby-action-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.lobby-menu-actions .button,
.lobby-action-row .button,
.lobby-ready-btn,
.lobby-leave-btn,
.lobby-start-btn,
.lobby-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.15;
  font-size:11px;
  padding:7px 8px;
  min-height:40px;
}
.lobby-dungeon-list{display:grid;grid-template-columns:1fr;gap:8px;overflow:auto;padding-right:2px;align-content:start;}
.lobby-dungeon-card{width:100%;min-width:0;min-height:78px;border:1px solid #3b2a18;background:rgba(0,0,0,.24);border-radius:0;padding:9px 10px;text-align:left;color:#c6a06f;cursor:pointer;font-family:"Courier New",monospace;}
.lobby-dungeon-card.active{border-color:#8a622f;background:rgba(213,151,73,.13);}
.lobby-dungeon-card.locked{opacity:.48;cursor:not-allowed;filter:grayscale(.35);}
.lobby-dungeon-card strong{display:block;color:#f4d69c;margin-bottom:3px;font-size:12px;white-space:normal;overflow-wrap:anywhere;}
.lobby-dungeon-card span{display:block;font-size:11px;color:#c6a06f;line-height:1.3;overflow-wrap:anywhere;}
@media (max-width:980px){.lobby-layout{grid-template-columns:1fr;grid-template-rows:auto auto 420px;grid-template-areas:"menu" "main" "dungeons";}.lobby-slot{grid-template-columns:38px minmax(0,1fr) 82px;}}
@media (max-width:520px){.lobby-menu-actions,.lobby-create-row,.lobby-role-bar,.lobby-action-row{grid-template-columns:1fr;}.lobby-page-shell{padding:12px;}.lobby-slot{grid-template-columns:34px minmax(0,1fr);grid-template-areas:"avatar name" "avatar meta" "avatar status";}.lobby-slot-ready,.lobby-slot-waiting{text-align:left;}}


/* LORHEIM SERVERCHAT: eigenständiger Body-Layer, konsolidierte Endfassung */
@media(min-width:721px){body:has(> #multiplayerDungeonTravel){--server-chat-layer:10051;}}
#serverChatWrap{
  position:relative;
  display:block;
  margin:0;
}
#serverChatButton .system-hud-icon{
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}
#serverChatButton.has-new-message{
  opacity:1 !important;
  filter:none !important;
  border-color:#ffca61 !important;
  box-shadow:0 0 0 1px rgba(255,221,145,.28),0 0 18px rgba(255,177,59,.74),inset 0 0 0 1px rgba(255,222,150,.12) !important;
  animation:serverChatButtonPulse 1.1s ease-in-out infinite alternate;
}
@keyframes serverChatButtonPulse{from{transform:translateX(0)}to{transform:translateX(2px)}}

body :is(#serverChatPanel,.server-chat-panel){
  --server-chat-font-size:14px;
  position:fixed;
  z-index:var(--server-chat-layer,120);
  display:none;
  flex-direction:column;
  min-width:380px;
  min-height:320px;
  max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);
  resize:both;
  overflow:hidden;
  box-sizing:border-box;
  border:3px solid #5d462b;
  outline:1px solid rgba(213,151,73,.28);
  outline-offset:-7px;
  background:linear-gradient(145deg,#17100c,#0d0906 68%,#070504);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),inset 0 0 0 5px rgba(0,0,0,.34),0 18px 42px rgba(0,0,0,.72);
  color:#e7c98f;
  font-family:"Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel).open{display:flex;}
body :is(#serverChatPanel,.server-chat-panel) *{box-sizing:border-box;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:7px 8px;
  border-bottom:1px solid rgba(205,151,69,.32);
  background:#120c08;
  cursor:move;
  user-select:none;
  flex:0 0 auto;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-head h3{
  margin:0;
  color:#ffb13b;
  font:700 18px/1 Georgia,"Times New Roman",serif;
  letter-spacing:.10em;
  text-transform:uppercase;
  text-shadow:0 2px 0 #000;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-title{display:flex;align-items:center;gap:9px;min-width:0;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-connection{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 6px;
  border:1px solid rgba(152,111,57,.48);
  background:#0b0805;
  color:#8f7755;
  font:700 9px/1 "Courier New",monospace;
  letter-spacing:.06em;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-connection.online{border-color:rgba(99,153,89,.72);color:#a5d69b;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-connection.connecting{border-color:rgba(190,143,63,.72);color:#d8b16c;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-head-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-small:not(.server-chat-close-x){
  appearance:none;
  width:24px;
  height:24px;
  min-width:24px;
  padding:0;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(203,151,64,.82);
  outline:1px solid rgba(255,220,150,.12);
  outline-offset:-3px;
  border-radius:0;
  background:#1d120b;
  color:#df6448;
  box-shadow:none;
  cursor:pointer;
  font:700 14px/1 Arial,sans-serif;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-small:not(.server-chat-close-x):hover{border-color:#e7b85a;color:#ff8a6d;background:#2a190d;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu{
  display:none;
  position:absolute;
  top:40px;
  right:8px;
  z-index:4;
  width:min(310px,calc(100% - 16px));
  padding:10px;
  border:2px solid #6d512e;
  outline:1px solid rgba(255,220,150,.18);
  outline-offset:-5px;
  background:#140d08;
  box-shadow:0 12px 28px rgba(0,0,0,.65);
  color:#d6b982;
  font:12px/1.3 "Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu.open{display:block;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu select{
  min-width:116px;
  border:1px solid rgba(179,127,50,.55);
  border-radius:0;
  background:#090604;
  color:#ead5aa;
  padding:5px 7px;
  font:12px/1.2 "Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu small{display:block;margin-top:4px;color:#96764f;font:10px/1.35 "Courier New",monospace;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) 30px;
  gap:4px;
  width:100%;
  padding:7px 8px 6px;
  flex:0 0 auto;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-tab{
  appearance:none;
  width:100%;
  min-width:0;
  height:30px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  border:1px solid rgba(203,151,64,.72);
  border-radius:0;
  background:#1b110a;
  color:#d9b56d;
  cursor:pointer;
  font:700 12px/1 "Courier New",monospace;
  letter-spacing:.03em;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-tab.active,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-tab:hover{color:#fff0b8;border-color:#e7b85a;background:#3b2611;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-presence{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  margin:0 8px 6px;
  padding:4px 6px;
  overflow:hidden;
  border:1px solid rgba(145,101,48,.34);
  background:#0b0805;
  color:#a98b63;
  font:11px/1.2 "Courier New",monospace;
  flex:0 0 auto;
}
body :is(#serverChatPanel,.server-chat-panel) #serverChatOnlineCount{flex:0 0 auto;color:#c9a66b;font-weight:700;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-online-players{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-online-player{
  appearance:none;
  flex:0 0 auto;
  min-height:20px;
  padding:2px 6px;
  border:1px solid rgba(116,150,91,.48);
  background:#101008;
  color:#a8cf91;
  cursor:pointer;
  font:10px/1.1 "Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-online-player:hover{border-color:#8fbd71;color:#d3efc1;background:#17200f;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-online-empty{color:#7f6849;font-size:10px;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 8px 6px;
  color:#b99865;
  font:12px/1.2 "Courier New",monospace;
  flex:0 0 auto;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper[hidden]{display:none;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper input,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-input{
  min-width:0;
  border:1px solid rgba(179,127,50,.55);
  border-radius:0;
  background:#090604;
  color:#f1ddb1;
  outline:none;
  font-family:"Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper input{flex:1;padding:6px 8px;font-size:12px;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-log{
  flex:1 1 auto;
  min-height:96px;
  margin:0 8px;
  padding:7px 8px;
  overflow-y:auto;
  border:1px solid rgba(145,101,48,.46);
  background:#090604;
  scrollbar-color:#8f6230 #090604;
  scrollbar-width:thin;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-msg{padding:2px 2px 4px;border-bottom:1px solid rgba(170,120,52,.12);}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-msg:last-child{border-bottom:0;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-line{
  color:#f1ead7;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  font:var(--server-chat-font-size)/1.38 "Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-time{color:#8e7149;margin-right:7px;font-size:.82em;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-player{color:#ffd276;font-weight:700;cursor:pointer;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-player:hover{color:#ffdc8d;text-decoration:underline;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-target{color:#a98b63;font-style:normal;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-gilde .server-chat-text{color:#8fe08f;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper .server-chat-text{color:#e58cff;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-system .server-chat-text,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-msg.system .server-chat-text{color:#ffd36f;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="gold"] .server-chat-own .server-chat-text{color:#d9bd82;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="parchment"] .server-chat-own .server-chat-text{color:#ead9b5;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="green"] .server-chat-own .server-chat-text{color:#a9d08f;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="blue"] .server-chat-own .server-chat-text{color:#9fc1df;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="red"] .server-chat-own .server-chat-text{color:#df9a86;}
body :is(#serverChatPanel,.server-chat-panel)[data-own-color="iron"] .server-chat-own .server-chat-text{color:#b8b0a2;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-empty{padding:24px 8px;color:#8d734f;text-align:center;font:var(--server-chat-font-size)/1.4 "Courier New",monospace;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-muted{padding:6px 8px 0;color:#8f734f;font:11px/1.3 "Courier New",monospace;flex:0 0 auto;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-muted button{
  margin:0 3px 3px 0;
  border:1px solid rgba(150,100,42,.40);
  border-radius:0;
  background:#100a06;
  color:#c1965b;
  cursor:pointer;
  font:11px/1.1 "Courier New",monospace;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-form{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;
  gap:6px;
  width:100%;
  padding:7px 8px 5px;
  flex:0 0 auto;
}
body #serverChatPanel .server-chat-form{grid-template-columns:30px minmax(0,1fr) 36px;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji-toggle,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-send{
  appearance:none;
  height:30px;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(205,151,69,.82);
  border-radius:0;
  background:#21150b;
  color:#f1c871;
  cursor:pointer;
  box-shadow:none;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji-toggle{font:700 17px/1 "Courier New",monospace;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-input{width:100%;height:30px;padding:0 8px;font-size:var(--server-chat-font-size);line-height:28px;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-send span{
  width:0;
  height:0;
  margin-left:3px;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:13px solid #d69b37;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji-toggle:hover,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-send:hover{border-color:#e7b85a;background:#30200f;color:#ffd681;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-send:hover span{border-left-color:#f0bf58;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji{
  position:absolute;
  left:8px;
  bottom:48px;
  z-index:3;
  display:none;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  width:238px;
  padding:8px;
  border:1px solid rgba(205,151,69,.90);
  background:#140d08;
  box-shadow:0 8px 18px rgba(0,0,0,.65);
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji.open{display:grid;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji button{
  height:30px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(205,151,69,.72);
  border-radius:0;
  background:#21150b;
  color:#f0d28d;
  cursor:pointer;
  font-size:17px;
}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji button:hover{background:#35220f;color:#ffe1a0;}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-cooldown{min-height:17px;max-height:105px;overflow:auto;white-space:pre-line;overflow-wrap:anywhere;padding:0 8px 8px;color:#a58255;font:11px/1.2 "Courier New",monospace;flex:0 0 auto;}
.server-chat-context{
  position:fixed;
  z-index:calc(var(--server-chat-layer,120) + 2);
  min-width:142px;
  padding:6px;
  border:2px solid #6d512e;
  outline:1px solid rgba(255,220,150,.18);
  outline-offset:-5px;
  background:#140d08;
  box-shadow:0 12px 28px rgba(0,0,0,.65);
}
.server-chat-context button{
  width:100%;
  display:block;
  margin:0 0 5px;
  padding:7px 8px;
  border:1px solid rgba(180,128,49,.55);
  border-radius:0;
  background:#0c0805;
  color:#e8c987;
  cursor:pointer;
  text-align:left;
  font:10px/1.1 "Courier New",monospace;
  text-transform:uppercase;
}
.server-chat-context button:last-child{margin-bottom:0;}
.server-chat-context button:hover{border-color:#d39b44;color:#ffdc8d;background:#2b1b0d;}
@media(max-width:720px){
  #serverChatButton .system-hud-icon{width:21px;height:21px;}
  body :is(#serverChatPanel,.server-chat-panel){
    left:6px;
    right:6px;
    top:6px;
    bottom:6px;
    width:auto;
    height:auto;
    min-width:0;
    min-height:0;
    max-width:none;
    max-height:none;
    resize:none;
    z-index:var(--server-chat-layer,120);
  }
  body :is(#serverChatPanel,.server-chat-panel) .server-chat-head{cursor:default;}
  body :is(#serverChatPanel,.server-chat-panel) .server-chat-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:6px;}
  body :is(#serverChatPanel,.server-chat-panel) .server-chat-tab{font-size:10px;padding:0 2px;}
  body :is(#serverChatPanel,.server-chat-panel) .server-chat-log{margin:0 6px;}
  body :is(#serverChatPanel,.server-chat-panel) .server-chat-form{padding-left:6px;padding-right:6px;}
}

/* Taverne Hinterzimmer: Weltkarte + Bestenliste */
.craft.tavern-red-panel{
  border-color:#8d2d23;
  outline-color:rgba(185,22,34,.55);
  background:radial-gradient(circle at 16% 14%,rgba(185,22,34,.20),transparent 34%),linear-gradient(145deg,#24110f,#0b0808 70%,#050303);
  box-shadow:inset 0 0 0 1px rgba(255,160,130,.15),inset 0 0 0 4px rgba(8,4,4,.72),0 0 18px rgba(185,22,34,.18),0 6px 14px rgba(0,0,0,.38);
}
.craft.tavern-red-panel .name{color:#ffd0bd}
.craft.tavern-red-panel .cost{color:#ff8d7f}

.lorheim-map-overlay{
  position:fixed;
  inset:0;
  z-index:100004;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.74);
  backdrop-filter:blur(2px);
}
.lorheim-map-overlay.open{display:flex}
.lorheim-map-modal{
  position:relative;
  width:min(940px,calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  padding:24px 26px 22px;
  border:3px solid #5d462b;
  outline:1px solid rgba(255,213,132,.52);
  outline-offset:-8px;
  background:radial-gradient(circle at 50% 0%,rgba(255,177,59,.16),transparent 34%),linear-gradient(145deg,#1b130c,#070604 72%);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.18),inset 0 0 0 5px rgba(0,0,0,.34),0 18px 44px rgba(0,0,0,.78);
  color:#f7e8c8;
}
.lorheim-map-modal:before,.lorheim-map-modal:after{
  content:"";
  position:absolute;
  top:8px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:radial-gradient(circle,#d6b070,#4b3420 70%);
  box-shadow:0 1px 0 #000;
}
.lorheim-map-modal:before{left:8px}
.lorheim-map-modal:after{right:8px}
.lorheim-map-icon{
  width:100%;
  margin:0 0 4px;
  text-align:center;
  color:#ffb13b;
  font-size:28px;
  line-height:1;
  text-shadow:0 2px #000,0 0 16px rgba(255,157,42,.36);
}
.lorheim-map-modal .lorheim-map-title{
  display:block;
  width:100%;
  margin:0 auto 14px;
  padding:0 44px;
  text-align:center !important;
  font-family:inherit !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  letter-spacing:clamp(.06em,1.1vw,.13em) !important;
  font-size:clamp(20px,3.2vw,32px) !important;
  line-height:1.08 !important;
  text-shadow:0 2px 0 #000,0 0 12px rgba(255,157,42,.32) !important;
}

.lorheim-map-close{
  position:absolute;
  right:12px;
  top:10px;
}
.lorheim-map-frame{
  max-height:calc(100vh - 132px);
  overflow:auto;
  padding:10px;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:linear-gradient(145deg,#100d0a,#050403 72%);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 0 4px rgba(6,5,4,.72);
}
.lorheim-map-frame img{
  display:block;
  width:100%;
  height:auto;
  max-height:calc(100vh - 160px);
  object-fit:contain;
  image-rendering:auto;
}
@media(max-width:860px){
  .lorheim-map-modal{padding:20px 18px 18px}
  .lorheim-map-modal .lorheim-map-title{padding:0 36px;font-size:clamp(18px,5vw,24px) !important;letter-spacing:.08em !important}
  .lorheim-map-frame{padding:7px}
}


/* Weltkarte-Popup: Header exakt wie normale Lorheim-Zonentitel, aber sauber zentriert */
.lorheim-map-header{
  padding:0 44px 12px !important;
  margin:0 0 12px !important;
  border-bottom:1px solid rgba(255,181,62,.22) !important;
  text-align:center !important;
}
.lorheim-map-header .lorheim-map-icon{
  display:block !important;
  width:100% !important;
  margin:0 0 6px !important;
  text-align:center !important;
}
body .lorheim-map-modal h2.zone-title.lorheim-map-title{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:center !important;
  font-family:inherit !important;
  font-weight:900 !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  font-size:clamp(20px,3.4vw,34px) !important;
  letter-spacing:.13em !important;
  line-height:1.08 !important;
  text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.45) !important;
}
@media(max-width:680px){
  .lorheim-map-header{padding:0 36px 10px !important;}
}


/* V5 Fix: Tavernen-Zugang bleibt, aber keine Meta-Beschriftung auf Weltkarten-Kachel; Weltkarten-Header 1:1 Lorheim-Zonentitel zentriert */
.craft.tavern-red-panel[data-world-map] .craft-head{justify-content:center;}
.craft.tavern-red-panel[data-world-map] .cost{display:none !important;}
.lorheim-map-modal .lorheim-map-header{
  display:block !important;
  width:100% !important;
  padding:0 44px 12px !important;
  margin:0 0 12px !important;
  border-bottom:1px solid rgba(255,181,62,.22) !important;
  text-align:center !important;
}
.lorheim-map-modal .lorheim-map-icon{
  display:block !important;
  width:100% !important;
  margin:0 0 6px !important;
  text-align:center !important;
}
.lorheim-map-modal h2.zone-title.lorheim-map-title{
  display:block !important;
  width:100% !important;
  margin:0 auto !important;
  padding:0 !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-weight:900 !important;
  font-size:clamp(20px,3.4vw,34px) !important;
  letter-spacing:.13em !important;
  line-height:1.08 !important;
  text-align:center !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.45) !important;
}


/* FINAL FIX: Weltkarten-Kachel ohne roten Meta-Text rechts; Popup-Titel kleiner und zentriert */
.craft.tavern-red-panel[data-world-map] .craft-head{
  justify-content:center !important;
}
.craft.tavern-red-panel[data-world-map] .craft-head .cost,
.craft.tavern-red-panel[data-world-map] .cost{
  display:none !important;
}
.lorheim-map-modal{
  width:min(900px,calc(100vw - 28px)) !important;
  padding:18px 22px 18px !important;
}
.lorheim-map-modal .lorheim-map-header{
  display:block !important;
  width:100% !important;
  margin:0 0 10px !important;
  padding:0 44px 10px !important;
  text-align:center !important;
  border-bottom:1px solid rgba(255,181,62,.20) !important;
}
.lorheim-map-modal .lorheim-map-icon{
  display:block !important;
  width:100% !important;
  margin:0 0 4px !important;
  text-align:center !important;
  font-size:22px !important;
  line-height:1 !important;
}
body .lorheim-map-modal h2.zone-title.lorheim-map-title{
  display:block !important;
  width:100% !important;
  margin:0 auto !important;
  padding:0 !important;
  text-align:center !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-weight:900 !important;
  font-size:clamp(14px,2.05vw,18px) !important;
  letter-spacing:.09em !important;
  line-height:1.12 !important;
  color:var(--gold-bright) !important;
  text-transform:uppercase !important;
  text-shadow:0 2px 0 #000,0 0 12px rgba(255,157,42,.36) !important;
}
.lorheim-map-frame{
  max-height:calc(100vh - 104px) !important;
  overflow:auto !important;
}
.lorheim-map-frame img{
  max-height:calc(100vh - 132px) !important;
  object-fit:contain !important;
}
@media(max-width:680px){
  .lorheim-map-modal .lorheim-map-header{padding:0 36px 8px !important;}
  body .lorheim-map-modal h2.zone-title.lorheim-map-title{font-size:15px !important;letter-spacing:.07em !important;}
}

/* V7 Fix: Hinterzimmer-Kacheln normal linksbündig, nur Weltkarten-Popup zentriert */
#gambleTab .craft.tavern-red-panel{
  display:flex !important;
  flex-direction:column !important;
  min-height:146px !important;
}
#gambleTab .craft.tavern-red-panel .craft-head{
  justify-content:space-between !important;
  align-items:center !important;
  text-align:left !important;
}
#gambleTab .craft.tavern-red-panel[data-world-map] .craft-head{
  justify-content:flex-start !important;
  text-align:left !important;
}
#gambleTab .craft.tavern-red-panel[data-world-map] .craft-head .name,
#gambleTab .craft.tavern-red-panel[data-leaderboard] .craft-head .name{
  text-align:left !important;
  margin:0 !important;
}
#gambleTab .craft.tavern-red-panel[data-world-map] .craft-head .cost,
#gambleTab .craft.tavern-red-panel[data-world-map] .cost{
  display:none !important;
}
#gambleTab .craft.tavern-red-panel .buff-note{
  flex:1 1 auto !important;
}
#gambleTab .craft.tavern-red-panel > .button{
  margin-top:auto !important;
}
body .lorheim-map-modal h2.zone-title.lorheim-map-title{
  text-align:center !important;
  font-size:clamp(13px,1.7vw,16px) !important;
  letter-spacing:.08em !important;
  line-height:1.12 !important;
}
.lorheim-map-modal .lorheim-map-icon{
  text-align:center !important;
  font-size:21px !important;
}
.lorheim-map-modal .lorheim-map-header{
  text-align:center !important;
  margin-bottom:8px !important;
  padding-bottom:8px !important;
}
.lorheim-map-frame{
  max-height:calc(100vh - 96px) !important;
}
.lorheim-map-frame img{
  max-height:calc(100vh - 124px) !important;
}


/* Begleiter-Kompendium: vollständig verborgene, noch nicht entdeckte Gefährten */
.compendium-companion-card.is-secret{cursor:default;filter:grayscale(1.02) brightness(.34);opacity:.78}
.compendium-companion-card.is-secret .compendium-companion-silhouette{color:#050505;text-shadow:0 0 0 #000;background:#090909;border-color:#27221c}
.compendium-companion-card.is-secret .compendium-companion-info b,
.compendium-companion-card.is-secret .compendium-companion-info em{color:#6f665b}


/* Begleiter-Auswahl im Inventar */
.ii-companion-v3{width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit}
.ii-companion-modal-v3{position:fixed;inset:0;z-index:95;display:grid;place-items:center;background:rgba(0,0,0,.78);padding:16px}
.ii-companion-dialog-v3{position:relative;width:min(560px,95vw);max-height:82vh;overflow:auto;padding:16px;border:3px solid #5d462b;background:linear-gradient(145deg,#1b1511,#070605);box-shadow:0 22px 60px rgba(0,0,0,.8)}
.ii-companion-dialog-v3 h3{margin:0 0 6px;text-align:center;color:var(--gold-bright);text-transform:uppercase;letter-spacing:.08em}
.ii-companion-dialog-v3 p{margin:0 0 12px;text-align:center;color:#b49161;font:11px/1.35 "Courier New",monospace}
.ii-companion-list-v3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ii-companion-choice-v3{display:flex;align-items:center;gap:9px;min-height:54px;padding:8px 10px;border:2px solid #5d462b;background:#0b0908;color:#f5d59b;text-align:left;cursor:pointer}
.ii-companion-choice-v3>span:first-child{font-size:24px}.ii-companion-choice-v3 b,.ii-companion-choice-v3 small{display:block}.ii-companion-choice-v3 small{color:#b49161;margin-top:2px}.ii-companion-choice-v3.active{border-color:var(--gold-bright);box-shadow:0 0 12px rgba(255,177,59,.2)}
@media(max-width:560px){.ii-companion-list-v3{grid-template-columns:1fr}}


/* Tavernenstimmungen + vereinheitlichte Begleiter-Zweitüberschrift */
.ii-companion-choice-v3 .ii-companion-choice-title-v3{
  display:block;
  margin:0;
  color:#f5d59b;
  font-family:"Courier New",monospace;
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ii-companion-choice-v3>span.ii-companion-choice-title-v3{font-size:12px}
.tavern-menu-grid{align-items:stretch}


/* Festival.js – vollständiges Festsystem */
.festival-panel{border:1px solid rgba(213,170,82,.42);background:linear-gradient(180deg,rgba(28,20,14,.96),rgba(15,12,10,.98));padding:18px;box-shadow:inset 0 0 24px rgba(0,0,0,.28)}
.festival-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(213,170,82,.3);padding-bottom:12px;margin-bottom:12px}.festival-header>span{font-size:34px}.festival-header strong{display:block;color:var(--gold-bright,#f5d59b);font-size:23px}.festival-header small{display:block;color:#baa98f;margin-top:3px}.festival-intro{color:#d6c9b5;line-height:1.55}.festival-currency{margin:12px 0;padding:9px;border:1px solid rgba(213,170,82,.3);text-align:center;color:#d8c8ad}.festival-currency b{color:var(--gold-bright,#f5d59b)}
.festival-action-grid,.festival-meal-grid,.festival-night-grid,.festival-shop-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.festival-action-grid.single{grid-template-columns:minmax(0,1fr)}.festival-action-card,.festival-meal-card,.festival-night-grid article,.festival-shop article,.festival-npc-box{border:1px solid rgba(213,170,82,.28);background:rgba(8,7,6,.5);padding:14px}.festival-action-card{display:flex;flex-direction:column;justify-content:space-between;min-height:245px}.festival-action-card h3,.festival-meal-card h3,.festival-night-grid h3,.festival-shop h3,.festival-npc-box h3{color:var(--gold-bright,#f5d59b);margin:0 0 8px}.festival-action-card p,.festival-meal-card p,.festival-night-grid p,.festival-shop p,.festival-npc-box p{color:#cbbda8;line-height:1.45}.festival-action-bottom{margin-top:14px}.festival-limit,.festival-progress-label{font-size:12px;color:#a99880;margin:6px 0}.festival-progress-shell{height:12px;border:1px solid rgba(213,170,82,.4);background:#090806;overflow:hidden}.festival-progress-shell i{display:block;height:100%;background:linear-gradient(90deg,#8d6726,#e5bd65);transition:width .2s linear}.festival-action-card .button,.festival-meal-card .button,.festival-shop .button,.festival-night-grid .button{width:100%;margin-top:10px}
.festival-requirements{display:grid;gap:4px}.festival-requirements span{font-size:12px;color:#b9967a}.festival-requirements span.met{color:#8fca82}.festival-meal-card.unlocked{border-color:rgba(93,177,89,.55)}.festival-shop{margin-top:14px}.festival-shop small{display:block;text-align:center;color:#aa9a83;margin-top:7px}.festival-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(213,170,82,.24);margin-top:16px;padding-top:10px;font-size:12px;color:#a99880}.festival-closed{text-align:center;padding:30px 12px;border:1px solid rgba(130,142,174,.35);background:rgba(10,12,20,.65)}
.festival-result-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.72);display:grid;place-items:center;padding:20px}.festival-result-popup{position:relative;width:min(430px,94vw);border:1px solid rgba(229,189,101,.7);background:linear-gradient(180deg,#241a10,#100d0a);padding:26px;text-align:center;box-shadow:0 0 35px rgba(229,189,101,.24);animation:festivalPop .24s ease-out}.festival-result-icon{font-size:52px}.festival-result-popup h3{color:var(--gold-bright,#f5d59b);font-size:25px;margin:8px}.festival-result-popup p{color:#d5c7b3}.festival-result-popup strong{display:block;color:#f1cf83;margin:14px}
.festival-result-close{position:absolute;right:8px;top:5px;}@keyframes festivalPop{from{transform:scale(.9);opacity:0}70%{transform:scale(1.03)}to{transform:scale(1.02);opacity:1}}
.festival-tavern-offer{border-color:rgba(229,189,101,.7)!important;box-shadow:inset 0 0 18px rgba(229,189,101,.08)}
.personality-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.personality-card{display:flex;gap:12px;border:1px solid rgba(213,170,82,.28);background:rgba(8,7,6,.5);padding:13px}.personality-icon{font-size:32px;flex:0 0 42px;text-align:center}.personality-card h3{color:var(--gold-bright,#f5d59b);margin:0 0 6px}.personality-card p{color:#cbbda8;line-height:1.45;margin:0}.compendium-intro{color:#cbbda8;text-align:center;margin:0 0 16px}
@media(max-width:760px){.festival-action-grid,.festival-meal-grid,.festival-night-grid,.festival-shop-two,.personality-grid{grid-template-columns:1fr}.festival-footer{flex-direction:column}.festival-action-card{min-height:220px}}

/* Festival-Polish: kompakte, gleichmäßige Karten und einheitliche Kleintext-Typografie */
.festival-header{
  position:relative;
  align-items:center;
  min-height:48px;
}
.festival-title-block{min-width:0;flex:1}
.festival-header small,
.festival-footer,
.festival-small-copy,
.festival-popup-small,
.festival-limit,
.festival-progress-label,
.festival-meal-buff,
.festival-npc-box p{
  font:11px/1.4 "Courier New",monospace;
  color:#b49161;
}
.festival-currency{
  margin:0 0 0 auto;
  padding:6px 8px;
  min-width:max-content;
  border:1px solid rgba(213,170,82,.35);
  background:rgba(8,7,6,.72);
  text-align:right;
  font:11px/1.2 "Courier New",monospace;
  color:#c8ad7d;
}
.festival-currency b{color:var(--gold-bright,#f5d59b)}
.festival-action-grid{align-items:stretch}
.festival-action-card{
  min-height:0;
  height:100%;
  padding:12px;
  justify-content:flex-start;
}
.festival-action-card h3{margin:0 0 12px}
.festival-action-bottom{margin-top:auto}
.festival-progress-row{position:relative;padding-top:17px;margin-top:5px}
.festival-progress-label{
  position:absolute;
  right:0;
  top:0;
  margin:0;
  text-align:right;
}
.festival-progress-shell{height:12px}
.festival-meal-grid{align-items:stretch}
.festival-meal-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:250px;
}
.festival-meal-main{display:flex;flex-direction:column;flex:1}
.festival-meal-card h3{margin-bottom:4px}
.festival-meal-buff{min-height:31px;margin:0 0 10px}
.festival-requirements{grid-template-columns:1fr;gap:5px;margin-top:auto}
.festival-requirements span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.festival-meal-card .button{margin-top:12px}
.festival-npc-box{padding:10px 12px}
.festival-npc-box p{margin:0}
.festival-strength-rewards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}
.festival-gear-card{height:100%;display:flex;flex-direction:column}
.festival-gear-card .button{margin-top:auto}
.festival-gear-card .cost{font:11px/1.25 "Courier New",monospace;color:#b49161;text-align:right}
.festival-reward-section{margin-top:14px}
.festival-reward-section>h3{color:var(--gold-bright,#f5d59b);margin:0 0 6px}
.festival-small-copy{margin:0 0 10px}
.festival-chest-exchange{border:1px solid rgba(213,170,82,.28);background:rgba(8,7,6,.5);padding:12px}
.festival-chest-exchange .button{width:100%;margin:0}
.festival-result-popup p,
.festival-result-popup .festival-popup-small{font:11px/1.5 "Courier New",monospace;color:#c6a06f}
.festival-night-grid{align-items:stretch}
.festival-night-grid article{height:100%;display:flex;flex-direction:column}
.festival-night-grid article .button:first-of-type{margin-top:auto}
.festival-tavern-offer{min-height:0;height:100%}
@media(max-width:760px){
  .festival-header{align-items:flex-start;flex-wrap:wrap}
  .festival-currency{margin-left:auto}
  .festival-strength-rewards{grid-template-columns:1fr}
  .festival-meal-card{min-height:0}
}

/* FESTIVAL POLISH V4 */
.festival-title-block small,.festival-footer,.festival-intro{font-family:"Courier New",monospace;font-size:11px;line-height:1.4}
.festival-currency{margin-left:auto;margin-top:0;margin-bottom:0;padding:5px 8px;width:auto;white-space:nowrap;font:10px/1.2 "Courier New",monospace;background:#100d09;border:1px solid rgba(213,170,82,.45)}
.festival-action-card{min-height:150px!important;padding:12px!important}
.festival-action-card h3{margin-bottom:5px!important}
.festival-progress-row{padding-top:15px!important}.festival-progress-label{top:0!important;right:0!important}
.festival-meal-grid,.festival-night-grid,.festival-strength-rewards,.festival-shop-two{align-items:stretch}
.festival-meal-card{min-height:248px!important}.festival-meal-buff{min-height:34px!important}
.festival-night-grid article{min-height:245px}.festival-npc-divider{height:1px;background:rgba(213,170,82,.28);margin:10px 0 2px}
.festival-unaffordable{filter:grayscale(.72);opacity:.58}.festival-cost-poor,.festival-inline-cost.is-poor{color:#dc625a!important}.festival-inline-cost{color:#d8b56d;font:10px/1.2 "Courier New",monospace;text-align:right;white-space:nowrap}
.festival-cost-disabled{filter:grayscale(.8);opacity:.55}
.festival-strength-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.festival-gear-card{min-height:205px!important}.festival-gear-card .smith-craft-layout{height:auto}.festival-gear-card .craft-large-icon img{width:76px;height:76px;object-fit:contain}.festival-gear-card .recipe-meta{margin-top:10px;color:#c6a06f;font:11px/1.4 "Courier New",monospace}.festival-gear-card>.button{margin-top:auto}
.festival-pond-copy{display:grid;grid-template-columns:1fr 2fr;gap:10px;align-items:stretch;margin-top:14px}.festival-pond-copy .fishing-action-panel,.festival-pond-copy .fishing-result-panel{min-height:166px}.festival-pond-copy .fishing-action-panel{display:flex;flex-direction:column}.festival-pond-copy .fishing-action-panel h3{color:#f5d59b;margin:0 0 8px}.fishing-timer-row{display:flex;justify-content:flex-end;color:#b49161;font:11px/1 "Courier New",monospace;margin-bottom:4px}.festival-pond-copy .progress-shell{height:14px}.festival-pond-copy .progress{height:100%;background:linear-gradient(90deg,#8d6726,#e5bd65);transition:width .2s linear}.festival-pond-copy .button{margin-top:auto;width:100%}
.festival-shop-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.festival-buff-shop-card{border:1px solid rgba(213,170,82,.28);background:rgba(8,7,6,.5);padding:14px;display:flex;flex-direction:column;min-height:150px}.festival-shop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.festival-shop-head h3{margin:0;color:#f5d59b}.festival-buff-shop-card p{color:#cbbda8;font:11px/1.45 "Courier New",monospace}.festival-buff-shop-card .button{margin-top:auto;width:100%}
.festival-tavern-offer.festival-unaffordable .cost{color:#dc625a!important}.buff-row{cursor:context-menu}.buff-row:hover{outline:1px solid rgba(213,170,82,.35)}
@media(max-width:760px){.festival-pond-copy,.festival-shop-two,.festival-strength-rewards{grid-template-columns:1fr}.festival-currency{width:100%;text-align:center}.festival-meal-card{min-height:0!important}}

/* Festival Final-Polish v5: kompakte Karten, stabiler Renderzustand und einheitlicher Goldrahmen */
.festival-gold-frame,
.festival-action-card,
.festival-meal-card,
.festival-night-grid article,
.festival-buff-shop-card,
.festival-gear-card,
.festival-chest-exchange{
  border:2px solid #6f5535!important;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403)!important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)!important;
}
.festival-action-grid,.festival-meal-grid,.festival-night-grid,.festival-strength-rewards,.festival-shop-two{align-items:stretch}
.festival-action-card{min-height:0!important;height:100%;padding:12px!important;display:flex;flex-direction:column;justify-content:flex-start}
.festival-action-card h3{margin:0 0 6px!important}
.festival-action-bottom{margin-top:0!important}
.festival-limit{margin:2px 0 4px!important}
.festival-progress-row{margin-top:0!important;padding-top:15px!important}
.festival-action-card .button{margin-top:8px!important}

.festival-meal-card{min-height:0!important;height:100%;padding:12px!important;display:flex;flex-direction:column}
.festival-meal-main{display:block!important;flex:0 0 auto!important}
.festival-item-heading{display:flex;align-items:center;gap:7px;min-width:0;margin:0 0 4px}
.festival-item-heading h3{margin:0!important;min-width:0;color:var(--gold-bright,#f5d59b)}
.festival-item-icon{font-size:22px;line-height:1;flex:0 0 auto}
.festival-meal-buff{min-height:0!important;margin:0 0 8px!important}
.festival-card-divider{height:1px;background:rgba(213,170,82,.28);margin:7px 0}
.festival-requirements{margin-top:0!important;display:grid;gap:4px}
.festival-meal-card .button{margin-top:9px!important}

.festival-night-grid article{min-height:0!important;height:100%;padding:12px!important;display:flex;flex-direction:column;justify-content:flex-start}
.festival-night-grid article p{margin:0 0 8px}
.festival-night-grid article .button:first-of-type{margin-top:8px!important}
.festival-npc-divider{margin:7px 0 1px!important}

.festival-gear-card{min-height:0!important;height:100%;padding:12px!important}
.festival-gear-card .smith-craft-layout{height:auto;flex:0 0 auto}
.festival-gear-cost{margin:1px 0 7px;text-align:left!important;white-space:normal!important}
.festival-gear-card>.button{margin-top:9px!important}
.festival-gear-card .smith-craft-title-row{margin-bottom:0!important}
.festival-gear-card .craft-item-name{white-space:normal;overflow-wrap:anywhere}

.festival-buff-shop-card{min-height:0!important;height:100%;padding:12px!important;display:flex;flex-direction:column}
.festival-shop-head{align-items:center}
.festival-shop-head h3{display:flex;align-items:center;gap:5px;min-width:0}
.festival-buff-shop-card p{margin:7px 0 0}
.festival-buff-shop-card .button{margin-top:9px!important}

.festival-pond-copy .fishing-action-panel,.festival-pond-copy .fishing-result-panel{min-height:146px!important}
.festival-pond-copy .button{margin-top:8px!important}

.tavern-menu-grid{align-items:stretch}
.festival-tavern-offer{height:100%;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(30px,auto) auto;align-content:start}
.festival-tavern-offer .craft-head{margin-bottom:0}
.festival-tavern-offer .buff-note{min-height:30px;margin:7px 0 0}
.festival-tavern-offer .button{margin-top:8px!important;align-self:end}
.festival-npc-box,.festival-closed{border:2px solid #6f5535!important;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403)!important;box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38)!important}


/* FESTIVAL FINAL ALIGNMENT V6 */
/* Brom: feste Kartenhöhe und identische Buttonlinie für sämtliche Festivalangebote. */
.tavern-menu-grid .festival-tavern-offer{
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box;
  overflow:hidden;
}
.tavern-menu-grid .festival-tavern-offer .craft-head{flex:0 0 auto;min-height:28px}
.tavern-menu-grid .festival-tavern-offer .buff-note{
  flex:1 1 auto;
  min-height:0!important;
  margin:7px 0 5px!important;
  overflow:hidden;
}
.tavern-menu-grid .festival-tavern-offer .button{margin-top:auto!important;flex:0 0 auto;width:100%}

/* Dorfteich-identischer Anbeißzustand und dezente Fanganimation im rechten Fenster. */
#festivalFishingProgress.bite,
.festival-pond-copy .fishing-progress.bite{
  background:linear-gradient(90deg,#7e1717,#df4a3e)!important;
  animation:fishingBite .42s ease-out!important;
}
.festival-bite-message{color:#d97567!important}
.festival-fishing-catch-pop{animation:festivalCatchPop .30s ease-out;filter:none!important}
@keyframes festivalCatchPop{from{opacity:0;transform:scale(.96)}65%{opacity:1;transform:scale(1.018)}to{transform:scale(1.02)}}
.festival-pond-copy .fishing-loot-card{width:100%;box-sizing:border-box}
.festival-pond-copy .fishing-loot-title{display:block!important;color:var(--gold-bright,#f5d59b)!important;margin:0 0 5px!important}
.festival-pond-copy .fishing-loot-icon{display:flex!important;font-size:38px!important}

/* Kleine Lorheim-Schrift auch im leeren Buffzustand und im Dorfbericht. */
#buffHudList.buff-hud-empty,
.buff-hud-empty{font:11px/1.45 "Courier New",monospace!important;color:#a99880!important}

@media(max-width:760px){
  .tavern-menu-grid .festival-tavern-offer{height:156px!important;min-height:156px!important}
}


/* FESTIVAL FINAL CONSISTENCY V7 */
/* Exakt dieselbe Headline-Struktur wie Broms reguläre Speisen/Getränke. */
.festival-meal-card .festival-meal-head,
.festival-buff-shop-card .festival-bait-head{
  margin:0 0 7px!important;
  min-height:0!important;
  align-items:center!important;
}
.festival-meal-card .festival-meal-head .name,
.festival-buff-shop-card .festival-bait-head .name{
}
.festival-meal-card .festival-meal-head .icon,
.festival-buff-shop-card .festival-bait-head .icon{
}
.festival-meal-card .festival-meal-buff,
.festival-buff-shop-card .buff-note{
  margin:0!important;
}
/* Zwei Köderkarten: identische Fixhöhe, kompakt und gemeinsame Buttonlinie. */
.festival-shop-two{align-items:stretch!important}
.festival-buff-shop-card{
  height:132px!important;
  min-height:132px!important;
  max-height:132px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.festival-buff-shop-card .buff-note{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
.festival-buff-shop-card .button{
  margin-top:auto!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){.festival-buff-shop-card{height:132px!important;min-height:132px!important;max-height:132px!important}}

/* FESTIVAL FINAL TAVERN TYPOGRAPHY + COMPACT KESSELFEST V12
   Exakt Broms Speisen-/Getränke-Headline: gleiche Serifenschrift, Größe und Farbe. */
.festival-panel .craft-head .name,
.festival-meal-card .craft-head .name,
.festival-buff-shop-card .craft-head .name,
.festival-action-card .craft-head .name,
.festival-reward-section .craft-head .name,
.festival-night-grid .craft-head .name,
.festival-gear-card .craft-head .name{
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(16px,2.1vw,21px)!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:normal!important;
  color:#f5d59b!important;
  text-shadow:0 2px 0 #000!important;
  text-transform:none!important;
}

/* Kesselfest: gleiche Kartenhöhe und gleiche Buttonlinie, aber keine künstlichen
   Leerblöcke unter Titel oder Bufftext. */
.festival-meal-grid{align-items:stretch!important;grid-auto-rows:1fr!important;}
.festival-meal-card{
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.festival-meal-card .festival-meal-main{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.festival-meal-card .festival-meal-head{
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 4px!important;
  align-items:center!important;
}
.festival-meal-card .festival-meal-head .name{
  align-items:center!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
}
.festival-meal-card .festival-meal-buff{
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 5px!important;
  overflow:visible!important;
}
.festival-meal-card .festival-card-divider{
  flex:0 0 1px!important;
  margin:3px 0 6px!important;
}
.festival-meal-card .festival-requirements{
  flex:1 1 auto!important;
  min-height:0!important;
  align-content:start!important;
  overflow:hidden!important;
}
.festival-meal-card>.button{
  flex:0 0 auto!important;
  margin-top:6px!important;
  width:100%!important;
}
@media(max-width:760px){
  .festival-meal-card{height:152px!important;min-height:152px!important;max-height:152px!important;}
}

/* Festival v13: Nachtmarkt-Kaufmeldung bleibt im bestehenden Panel. */
.festival-night-report{min-height:1.2em;margin-top:8px;font-family:var(--font-small, "Courier New", monospace);font-size:12px;line-height:1.35;color:#d8c09a;opacity:0;}
.festival-night-report.is-visible{opacity:1;}

/* Festival v16 – Kraftfest-Darstellung wieder exakt auf Borins Kartenstruktur. */
.festival-strength-rewards{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  margin-top:14px!important;
}
.festival-strength-rewards .festival-gear-card{
  min-width:0!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
.festival-strength-layout{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  min-width:0!important;
}
.festival-strength-icon{
  width:82px!important;
  height:82px!important;
  min-width:82px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.festival-strength-icon img{
  width:76px!important;
  height:76px!important;
  object-fit:contain!important;
}
.festival-strength-body{min-width:0!important}
.festival-strength-title-row{margin:0 0 4px!important;min-width:0!important}
.festival-strength-name{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.festival-strength-name .craft-tier-mini{
  flex:0 0 auto!important;
  display:inline-flex!important;
}
.festival-strength-name .craft-item-name{
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.festival-strength-cost{
  margin:0 0 7px!important;
  font:11px/1.3 "Courier New",monospace!important;
  color:#d8b56d!important;
}
.festival-strength-cost.festival-cost-poor{color:#dc625a!important}
.festival-strength-stats{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px 12px!important;
  font:11px/1.35 "Courier New",monospace!important;
  color:#c6a06f!important;
}
.festival-strength-stat{display:inline-block!important;white-space:nowrap!important}
.festival-strength-rewards .festival-gear-card>.button{
  width:100%!important;
  margin-top:auto!important;
}
@media(max-width:760px){
  .festival-strength-rewards{grid-template-columns:1fr!important}
}

/* Lorheim v18 – Kraftfest-Itemnamen exakt wie Broms Tavernen-Headlines.
   Nur die Itemnamen von Schwert und Schild; Meta-/Kosten-/Stattexte bleiben Courier. */
.festival-strength-rewards .festival-gear-card .festival-strength-title-row .festival-strength-name,
.festival-strength-rewards .festival-gear-card .festival-strength-title-row .festival-strength-name .craft-item-name{
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(16px, 2.1vw, 21px) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #f5d59b !important;
  text-shadow: 0 2px 0 #000 !important;
}


/* Eigene Brunnenansicht – ursprüngliche Mechanik, reduzierte Oberfläche */
.well-view-layout{display:grid;grid-template-columns:minmax(0,560px);justify-content:center;margin-top:14px}
.well-view-panel{display:grid;gap:10px;border:2px solid #8f6a32;outline:1px solid rgba(213,151,73,.30);outline-offset:-5px;background:linear-gradient(145deg,#17110d,#090706 72%,#030202);padding:14px;box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),0 0 18px rgba(210,145,48,.12)}
.well-view-report{min-height:0;color:#c9aa7a;font:12px/1.45 "Courier New",monospace}
.well-view-report:empty{display:none}
.well-view-report strong{display:block;margin-bottom:3px;color:#f5d59b;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.1}
.well-view-report span{display:block}
.well-view-report.fairy{border:1px solid rgba(255,220,120,.45);padding:8px;box-shadow:0 0 12px rgba(255,220,120,.10)}
.well-view-panel>.button{width:100%}
.well-view-panel>.button:disabled{cursor:not-allowed;background:linear-gradient(180deg,#5b5146 0%,#3b342d 48%,#191512 100%);color:#a9916d;border-color:#6a5740;box-shadow:inset 0 1px rgba(255,235,185,.08),inset 0 -4px 8px rgba(0,0,0,.30),0 3px 0 #15100d}


/* Lorheim Persönlichkeiten – eigenständige Kompendium-Unterseite */
.personalities-view{
  display:none;
  position:relative;
  box-sizing:border-box;
  height:calc(100vh - 88px);
  height:calc(100dvh - 88px);
  max-height:calc(100vh - 88px);
  max-height:calc(100dvh - 88px);
  min-height:0;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.personalities-view::-webkit-scrollbar{width:0;height:0;display:none;}
.personalities-view.active-view{display:block !important;}
.personalities-page-shell{
  position:relative;
  width:min(100%,980px);
  margin:0 auto;
  padding:20px 14px 28px;
}
.personalities-back-btn{
  width:auto;
  margin:0 0 14px;
  padding:7px 12px;
  font-size:12px;
}
.personalities-main-title{
  margin:0 0 18px;
  text-align:center;
  color:var(--gold-bright,#f5d59b);
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  line-height:1.15;
  letter-spacing:.035em;
  text-shadow:0 2px 0 #000,0 0 16px rgba(255,157,42,.35);
}

.personalities-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.personality-card{
  display:block;
  box-sizing:border-box;
  width:100%;
  height:150px;
  min-height:150px;
  padding:12px 14px;
  border:2px solid #5d462b;
  outline:1px solid rgba(213,151,73,.32);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.08),transparent 34%),linear-gradient(145deg,#17120f,#0a0807 72%,#040303);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 0 4px rgba(6,5,4,.72),0 5px 12px rgba(0,0,0,.34);
  overflow:hidden;
}
.personality-card h4{
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  padding:0 0 9px;
  white-space:nowrap;
  overflow:hidden;
  border-bottom:1px solid rgba(215,159,77,.42);
  color:#f5d59b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1.15;
  text-shadow:0 2px 0 #000;
}
/* Decorative portrait; keep the localized heading itself untouched. */
.personality-card h4::before{
  content:"";
  display:block;
  box-sizing:border-box;
  width:1lh;
  height:1lh;
  flex:0 0 1lh;
  border:1px solid #5d462b;
  background: #0a0807 var(--personality-portrait,none) center / cover no-repeat;
}
.personality-card p{
  display:block;
  width:100%;
  margin:0;
  color:#bda77f;
  font-family:"Courier New",Courier,monospace;
  font-size:11px;
  line-height:1.48;
}
@media(max-width:760px){
  .personalities-grid{grid-template-columns:1fr;}
  .personality-card{height:158px;min-height:158px;}
  .personalities-main-title{font-size:25px;}
}

/* Lorheim – Seiten-Scroll statt internem Frame-Scroll
   Persönlichkeiten und Erfolge wachsen mit ihrem gesamten Inhalt.
   Dadurch scrollt die Browserseite unabhängig davon, wo sich der Mauszeiger befindet. */
.personalities-view,
.compendium-view.achievements-view{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
  overscroll-behavior:auto !important;
  -webkit-overflow-scrolling:auto !important;
}

.personalities-view.active-view,
.compendium-view.achievements-view.active-view{
  display:block !important;
}

/* Nachtmarkt: Ein nicht bezahlbarer Arkanstaub deaktiviert nur seinen Button,
   niemals das gesamte Händlerpanel. */
.festival-night-grid article.festival-night-merchant:has(> .button:disabled){
  opacity:1 !important;
  filter:none !important;
}


/* Tier 17: Krypta der Urahnen – vollständig vom Dungeon-Simulator getrennt */
.ancestor-crypt-shell{max-width:1180px;margin:0 auto;padding:14px;color:#f4e5c2}.ancestor-crypt-header{margin-bottom:14px}.ancestor-tribute-panel,.ancestor-spirit-card,.ancestor-closed{outline:1px solid rgba(255,213,132,.42);outline-offset:-7px;background:radial-gradient(circle at 50% 0%,rgba(255,179,67,.09),transparent 36%),linear-gradient(145deg,#1a130d,#070604 72%);box-shadow:inset 0 0 0 1px rgba(255,215,139,.15),inset 0 0 0 5px rgba(0,0,0,.34),0 14px 30px rgba(0,0,0,.52)}
.ancestor-tribute-panel{border:3px solid #5d462b;padding:22px}.ancestor-tribute-panel>h3,.ancestor-sequence-head h2,.ancestor-spirit-title h2,.ancestor-closed h2{margin:0;color:var(--gold-bright,#ffca62);font-family:Georgia,"Times New Roman",serif;text-shadow:0 2px #000,0 0 15px rgba(255,170,47,.3)}.ancestor-tribute-panel>h3{text-align:center;font-size:24px;margin-bottom:18px}.ancestor-requirements-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ancestor-requirement{position:relative;display:grid;grid-template-columns:70px 1fr;gap:13px;align-items:center;min-height:104px;padding:14px;border:2px solid #4d4030;outline:1px solid rgba(221,181,107,.2);outline-offset:-5px;background:linear-gradient(145deg,rgba(38,29,21,.9),rgba(9,8,7,.94));box-shadow:inset 0 0 18px rgba(255,166,51,.035)}.ancestor-requirement.complete{border-color:#88703d;box-shadow:inset 0 0 18px rgba(223,187,88,.08),0 0 12px rgba(223,187,88,.08)}.ancestor-req-icon{width:62px;height:62px;display:grid;place-items:center;border:2px solid #5d462b;background:#0a0806;font-size:34px}.ancestor-requirement h3{margin:0 0 8px;color:#f1d29b;font-family:Georgia,"Times New Roman",serif}.ancestor-requirement strong{display:block;margin-top:6px;color:#ffcf72;font:700 13px "Courier New",monospace}.ancestor-progress{height:10px;border:1px solid #4d3c28;background:#080604;box-shadow:inset 0 2px 5px #000}.ancestor-progress span{display:block;height:100%;background:linear-gradient(90deg,#70521f,#d4a846);box-shadow:0 0 8px rgba(236,183,70,.35)}.ancestor-enter-btn,.ancestor-next-btn{display:block;min-width:240px;margin:18px auto 8px!important}.ancestor-warning{text-align:center;color:#b89a6c;font:12px/1.45 "Courier New",monospace}.ancestor-tribute-panel .dungeon-exit-btn{display:block;margin:12px auto 0!important}.ancestor-sequence-head{display:flex;align-items:end;justify-content:space-between;margin:0 0 10px;padding:0 4px}.ancestor-spirit-card{display:grid;grid-template-columns:minmax(280px,39%) 1fr;gap:0;min-height:520px;overflow:hidden}.ancestor-portrait-frame{position:relative;min-height:520px;border-right:3px solid #5d462b;background:radial-gradient(circle at 50% 35%,rgba(209,194,255,.16),transparent 34%),linear-gradient(#111019,#050405);display:grid;place-items:center;overflow:hidden}.ancestor-portrait-frame img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 18px rgba(168,145,255,.25))}.ancestor-dummy-portrait{width:78%;height:82%;place-items:center;align-content:center;border:2px solid rgba(216,195,255,.38);background:radial-gradient(circle,rgba(138,108,195,.22),transparent 62%);color:#d8c8ff;text-align:center}.ancestor-dummy-portrait span{font-size:100px;filter:drop-shadow(0 0 18px rgba(177,149,255,.5))}.ancestor-dummy-portrait small{font:700 12px/1.5 "Courier New",monospace;letter-spacing:.16em}.ancestor-spirit-copy{padding:30px 34px;display:flex;flex-direction:column;justify-content:center}.ancestor-spirit-title span{display:block;margin-top:5px;color:#b89865;font:12px "Courier New",monospace;text-transform:uppercase;letter-spacing:.12em}.ancestor-divider{height:2px;margin:18px 0;background:linear-gradient(90deg,#8a672c,rgba(138,103,44,0))}.ancestor-spirit-copy p{margin:0;color:#ebdcc0;font:16px/1.72 "Courier New",monospace}.ancestor-gift-line{margin-top:22px;padding:12px;border:1px solid rgba(218,174,83,.3);background:rgba(0,0,0,.2);color:#bea277;font:13px "Courier New",monospace}.ancestor-gift-line strong{color:#ffcf72}.ancestor-closed{text-align:center;padding:70px 30px}.ancestor-closed-symbol{width:72px;height:72px;margin:0 auto;display:grid;place-items:center}.ancestor-closed-symbol img{display:block;width:100%;height:100%;object-fit:contain}.ancestor-closed p{max-width:690px;margin:16px auto 24px;color:#ddc9a5;font:16px/1.65 "Courier New",monospace}.ancestor-gift-overlay{position:fixed;inset:0;z-index:100005;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.76);backdrop-filter:blur(3px)}.ancestor-gift-popup{width:min(500px,calc(100vw - 36px));padding:30px;border:3px solid #6b512e;outline:1px solid rgba(255,213,132,.5);outline-offset:-7px;background:radial-gradient(circle at 50% 0%,rgba(255,184,72,.17),transparent 38%),linear-gradient(145deg,#1b130c,#070604);box-shadow:0 20px 50px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,215,139,.15);text-align:center}.ancestor-gift-icon{width:72px;height:72px;margin:0 auto;display:grid;place-items:center}.ancestor-gift-icon img{display:block;width:100%;height:100%;object-fit:contain}.ancestor-gift-popup h3{margin:8px 0 12px;color:#ffca62;font-family:Georgia,"Times New Roman",serif}.ancestor-gift-popup p{color:#ead8b7;font:15px/1.55 "Courier New",monospace}.ancestor-gift-popup .button{min-width:170px;margin-top:10px!important}
@media(max-width:760px){.ancestor-requirements-grid{grid-template-columns:1fr}.ancestor-spirit-card{grid-template-columns:1fr}.ancestor-portrait-frame{min-height:330px;border-right:0;border-bottom:3px solid #5d462b}.ancestor-spirit-copy{padding:24px 20px}.ancestor-spirit-copy p{font-size:15px}}


/* Wiederholbare Story-Epiloge nach den Endbossen in Tier 5 und Tier 15.
   Verwendet bewusst die bestehende Krypta-Gestaltung. */
.dungeon-lore-overlay{overflow:auto}
.dungeon-lore-card{width:min(980px,calc(100vw - 36px));max-height:calc(100vh - 36px)}
.dungeon-lore-dialog{display:grid;gap:12px}
.dungeon-lore-dialog p{margin:0;color:#ebdcc0;font:16px/1.72 "Courier New",monospace}
.dungeon-lore-card .ancestor-next-btn{margin:24px 0 0!important;align-self:flex-start}
@media(max-width:760px){.dungeon-lore-card{max-height:none}.dungeon-lore-card .ancestor-next-btn{align-self:stretch}}










/* Finale Expeditionsvorbereitung */
.dungeon-prep-card{display:grid;gap:14px}
.dungeon-prep-section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;padding:14px;border:1px solid rgba(190,145,76,.42);background:#0c0906;box-shadow:inset 0 0 18px rgba(255,184,77,.035)}
.dungeon-prep-section>h4{grid-column:1/-1;margin:0 0 2px;color:var(--gold-bright,#f3c66f);font-family:Georgia,"Times New Roman",serif;font-size:18px}
.dungeon-prep-section .dungeon-field{margin:0;display:grid;gap:6px;align-content:start;color:#d5bd92;font:12px/1.35 "Courier New",monospace}
.dungeon-prep-section select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #654a2b;border-radius:0;background:#17100a;color:#f0dcc0;font:12px "Courier New",monospace}
.dungeon-ability-slot{grid-column:span 3;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px 12px;padding:10px;border-top:1px solid rgba(190,145,76,.28)}
.dungeon-ability-description{grid-column:1/-1;margin:0;color:#a9916c;font:11px/1.45 "Courier New",monospace}
@media(max-width:760px){.dungeon-prep-section{grid-template-columns:1fr}.dungeon-ability-slot{grid-column:1;grid-template-columns:1fr}.dungeon-prep-section>h4{grid-column:1}.dungeon-ability-description{grid-column:1}}

/* Lorheim: finale Dungeon-Korrekturen */
.dungeon-prep-section,.dungeon-ability-slot{border:3px solid #6f5535!important;outline:1px solid rgba(213,151,73,.35)!important;outline-offset:-6px!important;background:linear-gradient(145deg,#1b1511,#0b0908 72%,#050403)!important;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 0 4px rgba(6,5,4,.55)!important}
.dungeon-ability-slot{padding:12px!important}
.dungeon-druid-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px 12px;padding:12px;border:3px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-6px;background:linear-gradient(145deg,#1b1511,#0b0908 72%,#050403);box-shadow:inset 0 0 0 1px rgba(255,215,139,.12),inset 0 0 0 4px rgba(6,5,4,.55)}
.dungeon-druid-form-copy{margin:0;align-self:center;color:#c6a06f;font:11px/1.45 "Courier New",monospace}
@media(max-width:760px){.dungeon-druid-form{grid-template-columns:1fr}}


/* Dungeon encounter typography: atmospheric titles, technical room/enemy data */
.dungeon-room-number,
.dungeon-room-enemies{
  font-family:"Courier New",Courier,monospace!important;
  font-weight:700!important;
  font-style:normal!important;
}
.dungeon-room-title{
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:700!important;
  font-style:normal!important;
}
.dungeon-known-enemy-list,
.dungeon-known-enemy-name{
  font-family:"Courier New",Courier,monospace!important;
  font-weight:700!important;
  font-style:normal!important;
}

/* Dungeon typography correction: room metadata, room titles and enemy names use normal Courier. */
.dungeon-room-number,
.dungeon-room-title,
.dungeon-room-enemies,
.dungeon-known-enemy-list,
.dungeon-known-enemy-name,
.dungeon-report.empty {
  font-family:"Courier New",Courier,monospace!important;
  font-weight:400!important;
  font-style:normal!important;
}


/* Dungeon-Ability-Hover: einheitliches Lorheim-Popup für Grund- und Spezialisierungsfähigkeiten */
.dungeon-ability-choice{cursor:help}
.dungeon-ability-hover-popup{
  position:fixed;
  z-index:2147483000;
  width:max-content;
  max-width:min(360px,calc(100vw - 32px));
  padding:11px 13px;
  border:3px solid #6f5535;
  outline:1px solid rgba(213,151,73,.42);
  outline-offset:-6px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.12),transparent 38%),linear-gradient(145deg,#1b1511,#070605 76%,#030202);
  color:#e7c58f;
  font:12px/1.5 "Courier New",Courier,monospace;
  font-weight:400;
  white-space:pre-line;
  text-align:left;
  box-shadow:0 12px 30px rgba(0,0,0,.78),inset 0 0 0 1px rgba(255,215,139,.14);
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-100%) translateY(-6px);
  transition:opacity .12s ease,transform .12s ease;
}
.dungeon-ability-hover-popup.visible{opacity:1;transform:translate(-50%,-100%) translateY(-10px)}

/* Custom Lorheim dropdown for dungeon abilities. Native <select> menus are intentionally not used here. */
.dungeon-ability-dropdown{position:relative;width:100%;margin-top:6px;font:12px/1.4 "Courier New",Courier,monospace;color:#f0dcc0}
.dungeon-ability-dropdown-toggle{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid #654a2b;border-radius:0;background:linear-gradient(180deg,#1b130d,#100b07);color:#f0dcc0;font:12px/1.4 "Courier New",Courier,monospace;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.06)}
.dungeon-ability-dropdown-toggle:hover,.dungeon-ability-dropdown.open .dungeon-ability-dropdown-toggle{border-color:#a6793d;background:linear-gradient(180deg,#24180f,#130d08)}
.dungeon-ability-dropdown-arrow{flex:0 0 auto;color:#d7a34c;font-size:17px;line-height:1;transition:transform .12s ease}
.dungeon-ability-dropdown.open .dungeon-ability-dropdown-arrow{transform:rotate(180deg)}
.dungeon-ability-dropdown-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:80;max-height:260px;overflow-y:auto;padding:5px;border:3px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-6px;background:linear-gradient(145deg,#1b1511,#090706 76%,#040303);box-shadow:0 14px 28px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,215,139,.1)}
.dungeon-ability-dropdown.open .dungeon-ability-dropdown-menu{display:grid;gap:2px}
.dungeon-ability-dropdown-option{width:100%;padding:8px 10px;border:0;border-bottom:1px solid rgba(190,145,76,.18);border-radius:0;background:transparent;color:#e8d1ad;font:12px/1.35 "Courier New",Courier,monospace;text-align:left;cursor:pointer}
.dungeon-ability-dropdown-option:last-child{border-bottom:0}
.dungeon-ability-dropdown-option:hover,.dungeon-ability-dropdown-option:focus{outline:0;background:rgba(185,126,53,.18);color:#ffd992}
.dungeon-ability-dropdown-option.selected{background:rgba(185,126,53,.12);color:#f3c66f}
.dungeon-choice-label-wrap{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%}
.dungeon-choice-label-text{display:inline-block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dungeon-choice-icon{width:18px;height:18px;flex:0 0 18px;display:block;object-fit:contain;image-rendering:auto}
.dungeon-choice-icon-18{width:18px;height:18px;flex-basis:18px}
.dungeon-choice-icon-fallback{width:18px;height:18px;flex:0 0 18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
.dungeon-ability-dropdown-label{display:inline-flex;align-items:center;min-width:0;flex:1 1 auto;overflow:hidden}
.dungeon-ability-dropdown-option .dungeon-choice-label-wrap{width:100%}
.dungeon-ability-description{grid-column:1/-1;min-height:58px;margin-top:2px;padding:9px 11px;border:1px solid rgba(190,145,76,.28);background:rgba(4,3,2,.46);color:#cdb58d;font:12px/1.45 "Courier New",Courier,monospace}
.dungeon-ability-description strong,.dungeon-ability-description span{display:block;font:inherit}
.dungeon-ability-description strong{margin-bottom:3px;color:#efc97f;font-weight:700}
.dungeon-ability-description-empty{color:#8f7a5d}
/* Retired floating tooltip from the former native-select implementation. */
.dungeon-ability-hover-popup{display:none!important}
@media(max-width:760px){.dungeon-ability-dropdown-menu{position:static;margin-top:4px}.dungeon-ability-description{min-height:0}}

/* Final Lorheim dropdown alignment and native-select removal in dungeon preparation. */
.dungeon-prep-section .dungeon-field{
  min-width:0;
  display:grid;
  grid-template-rows:auto 38px;
  gap:6px;
  align-content:start;
}
.dungeon-field-label{
  display:block;
  min-height:17px;
  color:#d5bd92;
  font:12px/1.35 "Courier New",Courier,monospace;
}
.dungeon-ability-slot{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start;
}
.dungeon-ability-dropdown,
.dungeon-custom-dropdown{
  position:relative;
  width:100%;
  min-width:0;
  margin:0;
  font:12px/1.4 "Courier New",Courier,monospace;
  color:#f0dcc0;
}
.dungeon-ability-dropdown-toggle,
.dungeon-custom-dropdown-toggle{
  width:100%;
  height:38px;
  min-height:38px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 10px;
  border:1px solid #654a2b;
  border-radius:0;
  background:linear-gradient(180deg,#1b130d,#100b07);
  color:#f0dcc0;
  font:12px/1.4 "Courier New",Courier,monospace;
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.06);
}
.dungeon-ability-dropdown-toggle:hover,
.dungeon-ability-dropdown.open .dungeon-ability-dropdown-toggle,
.dungeon-custom-dropdown-toggle:hover,
.dungeon-custom-dropdown.open .dungeon-custom-dropdown-toggle{
  border-color:#a6793d;
  background:linear-gradient(180deg,#24180f,#130d08);
}
.dungeon-custom-dropdown-arrow{
  flex:0 0 auto;
  color:#d7a34c;
  font-size:17px;
  line-height:1;
  transition:transform .12s ease;
}
.dungeon-custom-dropdown.open .dungeon-custom-dropdown-arrow{transform:rotate(180deg)}
.dungeon-custom-dropdown-menu{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:90;
  max-height:260px;
  overflow-y:auto;
  padding:5px;
  border:3px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-6px;
  background:linear-gradient(145deg,#1b1511,#090706 76%,#040303);
  box-shadow:0 14px 28px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,215,139,.1);
}
.dungeon-custom-dropdown.open .dungeon-custom-dropdown-menu{display:grid;gap:2px}
.dungeon-custom-dropdown-option{
  width:100%;
  padding:8px 10px;
  border:0;
  border-bottom:1px solid rgba(190,145,76,.18);
  border-radius:0;
  background:transparent;
  color:#e8d1ad;
  font:12px/1.35 "Courier New",Courier,monospace;
  text-align:left;
  cursor:pointer;
}
.dungeon-custom-dropdown-option:last-child{border-bottom:0}
.dungeon-custom-dropdown-option:hover,
.dungeon-custom-dropdown-option:focus{
  outline:0;
  background:rgba(185,126,53,.18);
  color:#ffd992;
}
.dungeon-custom-dropdown-option.selected{
  background:rgba(185,126,53,.12);
  color:#f3c66f;
}
.dungeon-ability-dropdown-option[hidden]{display:none!important}
.dungeon-ability-dropdown-option:disabled{display:none!important}
.dungeon-ability-description{grid-column:1/-1}
@media(max-width:760px){
  .dungeon-ability-slot{grid-template-columns:1fr!important}
  .dungeon-custom-dropdown-menu{position:static;margin-top:4px}
}

/* V-DESKTOP-SCALE: Lorheim standardmäßig wie 120 % Browser-Zoom darstellen.
   Ausschließlich Desktop; alle Ansichten bis einschließlich 860 px bleiben unverändert. */
@media (min-width: 861px) {
  html {
    }
}


/* Dungeon preparation: reliable dropdown layering on desktop and mobile. */
.dungeon-prep-card,
.dungeon-prep-section,
.dungeon-abilities-section,
.dungeon-ability-slot,
.dungeon-prep-section .dungeon-field {
  overflow:visible!important;
}
.dungeon-ability-slot {
  position:relative;
  z-index:1;
}
.dungeon-ability-slot.dungeon-dropdown-active {
  z-index:40;
}
.dungeon-ability-slot > .dungeon-field {
  position:relative;
  z-index:10;
}
.dungeon-ability-slot > .dungeon-field:first-child {
  z-index:30;
}
.dungeon-ability-slot > .dungeon-field.dungeon-dropdown-active {
  z-index:60;
}
.dungeon-ability-dropdown.open,
.dungeon-custom-dropdown.open {
  z-index:70;
}
.dungeon-ability-dropdown-menu {
  z-index:80!important;
}
.dungeon-custom-dropdown-menu {
  z-index:80!important;
}
@media(max-width:760px) {
  .dungeon-ability-dropdown-menu,
  .dungeon-custom-dropdown-menu {
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:calc(100% + 4px)!important;
    margin-top:0!important;
    max-height:min(240px,48vh)!important;
  }
  .dungeon-ability-slot {
    isolation:auto;
  }
}


/* Lorheim shared framed craft icons: smithing + apothecary */
.smith-craft-icon,
.potion-craft-icon{
  aspect-ratio:1/1!important;
  box-sizing:border-box!important;
  place-items:center!important;
}
.smith-craft-icon img,
.smith-craft-icon .item-icon-img,
.potion-craft-icon img,
.potion-craft-icon .item-icon-img{
  object-fit:contain!important;
  object-position:center!important;
  image-rendering:auto!important;
  transform:none!important;
}

/* Dungeonbericht: kompakter Kampfbericht vollständig in Courier, 12px. */
.dungeon-combat-report,
.dungeon-combat-report summary,
.dungeon-combat-report .dungeon-room-log,
.dungeon-combat-report .dungeon-room-log-entry,
.dungeon-combat-report .dungeon-room-log-entry * {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 12px !important;
}

/* Questboard final polish: kompakte NPC-Übersicht ohne redundantes Tier-Badge. */
.quest-detail-card { position:relative; }
.quest-detail-box span {
  font-family:"Courier New",Courier,monospace !important;
  font-size:13px;
}
.quest-npc-card { grid-template-columns:44px minmax(0,1fr) !important; }
@media(max-width:860px){
  .quest-npc-card{grid-template-columns:40px minmax(0,1fr) !important}
}

.lorheim-inventory-full-popup{position:fixed;z-index:10050;outline-offset:-5px;}.lorheim-inventory-full-popup b{display:block;}.lorheim-inventory-full-popup span{}

/* Lorheim individual socket variants */
#smithView{position:relative;}
.smith-blueprint-required{font:700 12px/1.35 "Courier New",monospace!important;}
.smith-socket-section,.smith-socket-card,.smith-socket-actions{height:auto!important;min-height:0!important;}
.smith-socket-actions{flex:none!important;}
.smith-socket-empty{font:11px/1.35 "Courier New",monospace;color:#b9a889;}
.smith-socket-qty{font:700 10px/1 "Courier New",monospace;color:#c9cdd2;}
.smith-socket-row.is-filled{border-color:rgba(225,235,244,.65)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 10px rgba(225,235,244,.13);}


.ii-socket-mark-v3{
  position:absolute;left:5px;bottom:4px;z-index:5;display:grid;place-items:center;width:16px;height:16px;
  border:1px solid rgba(235,242,248,.72);background:rgba(16,19,22,.92);color:#eef4f8;
  font:bold 14px/1 "Courier New",monospace;text-shadow:none;pointer-events:none;
}
.ii-bag-item-v3.ii-socket-drag-over-v3{
  border-color:#fff!important;outline:2px solid rgba(235,245,255,.92)!important;
  filter:brightness(1.22);box-shadow:0 0 22px rgba(225,238,248,.72),inset 0 0 20px rgba(225,238,248,.17)!important;
}
.smith-socket-row.is-empty{min-height:118px;display:grid!important;place-items:center;border-style:dashed!important;opacity:.72;}
.smith-socket-placeholder{text-align:center;padding:12px;}
.smith-socket-placeholder b{display:block;margin-bottom:7px;color:#dce3e9!important;font:bold 12px/1.2 Georgia,"Times New Roman",serif;}
.smith-socket-placeholder small{font:11px/1.35 "Courier New",monospace!important;color:#9ca5ad!important;}

/* Lorheim socket/stat polish */
.ii-stat-card-v3 strong{display:flex;align-items:baseline;gap:5px;white-space:nowrap;}
.ii-stat-bonus-v3{color:#45d878;font:inherit;font-style:normal;text-shadow:0 0 8px rgba(69,216,120,.22);}
.smith-socket-direct{width:100%;max-width:none;margin:0;box-sizing:border-box;}

/* Lorheim smith width + switchable detailed character stats */
.smith-socket-direct{
  grid-column:1 / -1!important;
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
  align-self:start!important;
  box-sizing:border-box!important;
}
.smith-socket-direct .smith-socket-actions{width:100%!important;}

.ii-stats-switcher-v4{
  position:relative;
  min-width:0;
  margin-top:0;
  height:172px;
}
.ii-stats-switcher-v4 .ii-stats-v3{margin-top:0;height:100%;box-sizing:border-box;}
.is-hidden-v4{display:none!important;}
.ii-stats-toggle-v4{
  position:absolute;
  top:50%;
  right:-17px;
  z-index:40;
  width:18px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  display:grid;
  place-items:center;
  filter:drop-shadow(0 1px 2px #000);
}
.ii-stats-toggle-v4 span{
  display:block;
  width:0;
  height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:9px solid #e8bd52;
  transition:transform .14s ease,filter .14s ease;
}
.ii-stats-switcher-v4.is-detailed .ii-stats-toggle-v4 span{
  transform:rotate(180deg);
}
.ii-stats-toggle-v4:hover span,
.ii-stats-toggle-v4:focus-visible span{
  filter:brightness(1.3) drop-shadow(0 0 4px rgba(255,193,73,.55));
}
.ii-detailed-stats-v4{
  height:100%;
  min-height:0;
  max-height:none;
  box-sizing:border-box;
  border:2px solid #4f3d28;
  outline:1px solid rgba(213,151,73,.18);
  outline-offset:-5px;
  background:rgba(0,0,0,.24);
  padding:9px 10px 10px;
  color:#d5b47f;
  font:10px/1.35 "Courier New",Courier,monospace;
  overflow:hidden;
}
.ii-detailed-stats-title-v4{
  padding:1px 0 7px;
  border-bottom:1px solid rgba(213,151,73,.28);
  color:#f0c875;
  font:bold 11px/1.2 "Courier New",Courier,monospace;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ii-detailed-stats-scroll-v4{
  height:calc(100% - 31px);
  max-height:none;
  overflow-y:auto;
  padding:5px 4px 2px 0;
  scrollbar-width:thin;
  scrollbar-color:#76542f #100c08;
}
.ii-detail-stat-v4{
  padding:5px 2px 6px;
  border-bottom:1px solid rgba(213,151,73,.16);
}
.ii-detail-stat-v4:last-child{border-bottom:0;}
.ii-detail-stat-v4 header{
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:5px;
  align-items:center;
  margin-bottom:3px;
}
.ii-detail-stat-v4 header>b{
  color:#f4ddb1;
  font:bold 10px/1.2 "Courier New",Courier,monospace;
  text-transform:uppercase;
}
.ii-detail-stat-v4 header>strong{
  color:#ffb13b;
  font:bold 10px/1.2 "Courier New",Courier,monospace;
  white-space:nowrap;
}
.ii-detail-stat-v4 header>strong em{
  color:#45d878;
  font:inherit;
  font-style:normal;
}
.ii-detail-source-list-v4{padding-left:4px;}
.ii-detail-source-v4{
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:5px;
  align-items:start;
  padding:2px 0;
  color:#cdb58c;
  font:10px/1.3 "Courier New",Courier,monospace;
}
.ii-detail-source-icon-v4{line-height:1.2;text-align:center;}
.ii-detail-source-name-v4{overflow-wrap:anywhere;}
.ii-detail-source-v4>strong{
  color:#77dc91;
  font:bold 10px/1.3 "Courier New",Courier,monospace!important;
  white-space:nowrap;
}
.ii-detail-empty-v4{
  padding:2px 0 2px 23px;
  color:#7d6d57;
  font:10px/1.3 "Courier New",Courier,monospace;
}
.ii-stat-card-v3 strong{
  display:flex;
  align-items:baseline;
  gap:5px;
  white-space:nowrap;
}
.ii-stat-bonus-v3{
  color:#45d878!important;
  font:inherit!important;
  font-style:normal!important;
  text-shadow:0 0 8px rgba(69,216,120,.22);
}
@media(max-width:860px){
  .ii-stats-toggle-v4{
    top:50%;
    right:2px;
    width:28px;
    height:44px;
    transform:translateY(-50%);
  }
  .ii-stats-switcher-v4{height:300px;} .ii-detailed-stats-v4{max-height:none;}
  .ii-detailed-stats-scroll-v4{max-height:none;}
}


/* Lorheim global scrollbar polish: einheitlich wie die detaillierten Charakterwerte */
html,
body,
* {
  scrollbar-width: thin !important;
  scrollbar-color: #76542f #100c08 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 9px !important;
  height: 9px !important;
  display: block !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #100c08 !important;
  border-left: 1px solid rgba(213,151,73,.14);
  border-top: 1px solid rgba(213,151,73,.14);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  min-height: 28px;
  background: linear-gradient(90deg,#4d351f,#76542f 48%,#4d351f) !important;
  border: 1px solid #9a7040 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255,215,139,.10);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg,#624528,#91683a 48%,#624528) !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: #100c08 !important;
}


/* Multi-fix: Dropdowns bleiben innerhalb ihrer eigenen UI-Ebene. */
#smithView, #dungeonView, .dungeon-prep-card, .smith-master-services { isolation:isolate; }
#smithView .smith-custom-select-menu, #dungeonView .dungeon-ability-dropdown-menu, #dungeonView .dungeon-custom-dropdown-menu { z-index:80!important; }


/* Final inventory/bank interaction polish */
.ii-panel-v3{isolation:isolate;}
.ii-stats-switcher-v4{z-index:1;}
.ii-stats-toggle-v4{z-index:2!important;}
.ii-trash-v3{position:relative;transition:border-color .12s ease,box-shadow .12s ease,filter .12s ease,background .12s ease;}
.ii-trash-v3.is-over{border-color:#ff4a4a!important;background:linear-gradient(#4b1717,#190707)!important;box-shadow:0 0 0 1px rgba(255,70,70,.65),0 0 16px rgba(255,35,35,.72),inset 0 0 12px rgba(255,50,50,.22)!important;filter:brightness(1.22);animation:iiTrashPulseV3 .62s ease-in-out infinite alternate;}
.ii-bag-item-v3.ii-delete-pulse-v3{border-color:#ff4a4a!important;box-shadow:0 0 0 2px rgba(255,55,55,.7),0 0 18px rgba(255,35,35,.7),inset 0 0 16px rgba(255,20,20,.18)!important;animation:iiItemDeletePulseV3 .46s ease-in-out infinite alternate;}
@keyframes iiTrashPulseV3{from{transform:scale(1.02)}to{transform:scale(1.07)}}
@keyframes iiItemDeletePulseV3{from{filter:brightness(.92)}to{filter:brightness(1.18)}}

/* Inventory capacity/merge polish */
.ii-gold-v3{font-family:"Courier New",Courier,monospace!important;font-size:12px!important;font-weight:400!important;}
@keyframes iiStackMergeGoldV3{0%{box-shadow:inset 0 0 0 2px rgba(255,208,92,0),0 0 0 rgba(255,177,59,0)}45%{box-shadow:inset 0 0 0 2px rgba(255,224,132,.95),0 0 18px rgba(255,177,59,.95)}100%{box-shadow:inset 0 0 0 2px rgba(255,208,92,0),0 0 0 rgba(255,177,59,0)}}
.ii-stack-merge-flash-v3{animation:iiStackMergeGoldV3 .42s ease-out!important;}


/* Unified inventory/bank tool menus */
.ii-tool-pop-v3,
.ii-tool-pop-v3 h4,
.ii-tool-pop-v3 div,
.ii-tool-pop-v3 label,
.ii-tool-pop-v3 input,
.ii-tool-pop-v3 select,
.ii-tool-pop-v3 option,
.ii-tool-pop-v3 button {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
.ii-tool-pop-v3 h4 { font-weight: 700 !important; }


/* Visuelles Feedback: erhaltenes Item fliegt in den Rucksack der Navigation. */
.inventory-gain-fx{
  position:fixed;
  z-index:12050;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  contain:layout paint;
  color:#f7deb0;
  font-size:28px;
  line-height:1;
  will-change:transform,opacity;
}
.inventory-gain-fx img{
  width:32px;
  height:32px;
  object-fit:contain;
  image-rendering:auto;
  filter:drop-shadow(0 0 4px rgba(255,190,79,.45));
}
#inventoryNav.inventory-gain-target-pulse{
  animation:inventoryGainTargetPulse .52s ease-out;
}
@keyframes inventoryGainTargetPulse{
  0%{box-shadow:inset 0 0 0 1px rgba(255,203,121,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 0 1px #090604}
  45%{border-color:#e6aa42;box-shadow:0 0 8px rgba(255,198,91,.85),0 0 18px rgba(255,134,31,.48),inset 0 0 8px rgba(255,220,143,.28)}
  100%{box-shadow:inset 0 0 0 1px rgba(255,203,121,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 0 1px #090604}
}
@media (prefers-reduced-motion:reduce){
  .inventory-gain-fx{display:none!important}
  #inventoryNav.inventory-gain-target-pulse{animation:none}
}


/* Tutorial-/Begleiter-/Mobile-Chat-Polish */
/* Tutorial-Ziele: sichtbarer Rahmen/Glow direkt am gemeinten Button und Icon */
.ww-tutorial-icon-highlight{
  position:relative;
  z-index:114!important;
  animation:wwTutorialIconPulse 1.15s ease-in-out infinite;
  filter:brightness(1.18) drop-shadow(0 0 5px rgba(255,190,72,.95)) drop-shadow(0 0 11px rgba(255,132,28,.7))!important;
}
@keyframes wwTutorialIconPulse{
  0%,100%{filter:brightness(1.08) drop-shadow(0 0 3px rgba(255,190,72,.75)) drop-shadow(0 0 7px rgba(255,132,28,.45))}
  50%{filter:brightness(1.32) drop-shadow(0 0 7px rgba(255,221,128,1)) drop-shadow(0 0 15px rgba(255,132,28,.85))}
}

/* Sidebar deutlich sichtbar, aber ohne übertriebenen Icon-Schein */
#lorheimSideHud .ww-tutorial-highlight,
#lorheimBuffHud .ww-tutorial-highlight{
  opacity:1!important;
  filter:brightness(1.12) saturate(1.06)!important;
  border-color:#ffd36e!important;
  outline:2px solid rgba(255,224,146,.78)!important;
  outline-offset:2px!important;
  box-shadow:
    0 0 0 2px rgba(255,207,92,.9),
    0 0 12px rgba(255,177,59,.72),
    inset 0 0 5px rgba(255,225,150,.2)!important;
}
#lorheimSideHud .ww-tutorial-icon-highlight,
#lorheimBuffHud .ww-tutorial-icon-highlight{
  filter:brightness(1.12) drop-shadow(0 0 4px rgba(255,196,85,.65))!important;
}

/* Navigationsleiste bewusst dezenter als die Sidebar */
.bottom-nav .ww-tutorial-highlight,
nav .ww-tutorial-highlight{
  opacity:1!important;
  filter:brightness(1.05) saturate(1.02)!important;
  border-color:#dca94e!important;
  outline:1px solid rgba(255,220,142,.55)!important;
  outline-offset:1px!important;
  box-shadow:
    0 0 0 1px rgba(255,195,76,.62),
    0 0 7px rgba(255,166,46,.38),
    inset 0 0 3px rgba(255,224,150,.12)!important;
  animation:wwTutorialNavPulse 1.35s ease-in-out infinite!important;
}
.bottom-nav .ww-tutorial-icon-highlight,
nav .ww-tutorial-icon-highlight{
  animation:wwTutorialNavIconPulse 1.35s ease-in-out infinite!important;
  filter:brightness(1.04) drop-shadow(0 0 2px rgba(255,190,80,.38))!important;
}
@keyframes wwTutorialNavPulse{
  0%,100%{filter:brightness(1.02);box-shadow:0 0 0 1px rgba(255,195,76,.48),0 0 5px rgba(255,166,46,.26),inset 0 0 3px rgba(255,224,150,.1)}
  50%{filter:brightness(1.09);box-shadow:0 0 0 1px rgba(255,205,92,.72),0 0 9px rgba(255,177,59,.46),inset 0 0 4px rgba(255,224,150,.16)}
}
@keyframes wwTutorialNavIconPulse{
  0%,100%{filter:brightness(1.02) drop-shadow(0 0 1px rgba(255,190,80,.28))}
  50%{filter:brightness(1.08) drop-shadow(0 0 3px rgba(255,196,85,.48))}
}


/* Tutorial-Sidebar: Wrapper von Quest, Fertigkeiten und Chat müssen gemeinsam mit dem Button angehoben werden. */
#lorheimSideHud .ww-tutorial-target-wrap,
#lorheimBuffHud .ww-tutorial-target-wrap{
  position:relative!important;
  z-index:9011!important;
  overflow:visible!important;
  opacity:1!important;
  filter:none!important;
  isolation:isolate!important;
  pointer-events:auto!important;
}
#lorheimSideHud .ww-tutorial-target-wrap > .ww-tutorial-highlight,
#lorheimBuffHud .ww-tutorial-target-wrap > .ww-tutorial-highlight,
#lorheimSideHud > .ww-tutorial-highlight,
#lorheimBuffHud > .ww-tutorial-highlight{
  position:relative!important;
  z-index:2!important;
  opacity:1!important;
  visibility:visible!important;
  filter:brightness(1.12) saturate(1.06)!important;
}

/* Tutorial-Sidebar FINAL: explizite ID-Selektoren schlagen die alten !important-HUD-Hotfixes. */
#lorheimSideHud.ww-tutorial-hud-elevated{
  position:fixed!important;
  z-index:9010!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#lorheimBuffHud.ww-tutorial-hud-elevated{
  position:fixed!important;
  z-index:9010!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#lorheimSideHud #skillHubWrap.ww-tutorial-target-wrap,
#lorheimSideHud #questHudWrap.ww-tutorial-target-wrap,
#lorheimSideHud #serverChatWrap.ww-tutorial-target-wrap,
#lorheimSideHud #lorheimSoundWrap.ww-tutorial-target-wrap,
#lorheimBuffHud #buffHudWrap.ww-tutorial-target-wrap{
  position:relative!important;
  z-index:9011!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none!important;
  isolation:auto!important;
  pointer-events:auto!important;
}
#lorheimSideHud #skillHubButton.ww-tutorial-highlight,
#lorheimSideHud #questHudButton.ww-tutorial-highlight,
#lorheimSideHud #serverChatButton.ww-tutorial-highlight,
#lorheimSideHud #lorheimMuteToggleBtn.ww-tutorial-highlight,
#lorheimSideHud #lorheimSoundButton.ww-tutorial-highlight,
#lorheimBuffHud #buffHudButton.ww-tutorial-highlight{
  position:relative!important;
  z-index:9012!important;
  opacity:1!important;
  visibility:visible!important;
  filter:brightness(1.14) saturate(1.08)!important;
  border-color:#ffd36e!important;
  outline:2px solid rgba(255,224,146,.82)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 2px rgba(255,207,92,.92),0 0 14px rgba(255,177,59,.76),inset 0 0 5px rgba(255,225,150,.22)!important;
  animation:wwTutorialSidebarPulse 1.15s ease-in-out infinite!important;
}
@keyframes wwTutorialSidebarPulse{
  0%,100%{filter:brightness(1.08) saturate(1.04);box-shadow:0 0 0 2px rgba(255,207,92,.72),0 0 9px rgba(255,177,59,.52),inset 0 0 4px rgba(255,225,150,.15)}
  50%{filter:brightness(1.2) saturate(1.1);box-shadow:0 0 0 2px rgba(255,220,120,.98),0 0 18px rgba(255,177,59,.88),inset 0 0 7px rgba(255,225,150,.28)}
}

/* Tutorial-Layer: ein einziger Root-Stack ohne verschachtelten Stacking-Context.
   display:contents löst den früheren fixed Overlay-Stacking-Context auf. Dadurch
   können Dimmer, markiertes HUD und Tutorialkarte zuverlässig in dieser Reihenfolge
   direkt im Root-Stack des Dokuments liegen. */
.ww-guide-overlay{
  display:contents!important;
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  opacity:1!important;
  transform:none!important;
  filter:none!important;
  isolation:auto!important;
  pointer-events:none!important;
}
.ww-guide-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  background:rgba(0,0,0,.38)!important;
  opacity:1!important;
  backdrop-filter:none!important;
  pointer-events:auto!important;
}
.ww-tutorial-hud-elevated,
.ww-tutorial-target-wrap,
.ww-tutorial-highlight,
.ww-tutorial-icon-highlight{
  z-index:2147483601!important;
}
.ww-guide-card{
  position:fixed!important;
  z-index:2147483602!important;
  opacity:1!important;
  pointer-events:auto!important;
  background:#100c09!important;
  border:4px solid #6f5535!important;
  outline:1px solid rgba(213,151,73,.55)!important;
  box-shadow:0 0 0 2px #080604,0 18px 44px rgba(0,0,0,.94),inset 0 0 0 1px rgba(255,215,139,.14)!important;
}
.ww-intro-overlay{
  z-index:2147483603!important;
}


/* Hotfix: companion bonus typography, fishing contest images, mobile bank sizing */
.ii-companion-v3 small,.ii-companion-choice-v3 small,.compendium-companion-info small{font:12px/1.35 "Courier New",Courier,monospace!important;}
.festival-pond-copy .festival-fishing-catch-pop .fishing-loot-icon{display:grid!important;place-items:center!important;align-content:center!important;justify-content:center!important;}
.festival-pond-copy .festival-fishing-catch-pop .fishing-loot-icon img{display:block;width:82px;height:82px;max-width:82px;max-height:82px;object-fit:contain;object-position:center;margin:auto;} 
.buff-hud-icon-img{display:block;width:24px;height:24px;object-fit:contain;object-position:center;margin:auto;}
@media(max-width:860px){.bank-grid-v1,.bank-deposit-grid-v1{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.bank-grid-v1 .ii-bag-item-v3,.bank-grid-v1 .ii-bag-empty-v3,.bank-deposit-grid-v1 .ii-bag-item-v3,.bank-deposit-grid-v1 .ii-bag-empty-v3{aspect-ratio:1/1!important;min-height:0!important}.bank-item-v1{touch-action:none!important}}

/* Pending-Dungeonbeute: dasselbe mittige Lootfenster bleibt sichtbar.
   Nur der Vollbild-Layer ist click-through, damit das Inventar dahinter bedienbar bleibt. */
.dungeon-chest-modal.pending-inventory-access{
  display:grid;
  place-items:center;
  pointer-events:none;
  
}
.dungeon-chest-modal.pending-inventory-access .dungeon-chest-box{
  position:relative;
  
  
  
  pointer-events:auto;
  box-sizing:border-box;
}
.dungeon-chest-modal.pending-inventory-access .dungeon-chest-close{pointer-events:auto;}
@media(max-width:700px){
  .dungeon-chest-modal.pending-inventory-access .dungeon-chest-box{
    
    
  }
}


/* Berufsboni am Ende der detaillierten Charakterwerte */
.ii-detailed-stats-subtitle-v4{
  margin:8px 2px 3px;
  padding:7px 0 5px;
  border-top:1px solid rgba(213,151,73,.32);
  border-bottom:1px solid rgba(213,151,73,.18);
  color:#f0c875;
  font:bold 10px/1.2 "Courier New",Courier,monospace;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ii-detail-profession-v4 header>strong{color:#77dc91;}


/* Zone 13: Drachenzahn-Schlüssel-Popup vor dem Aschenschlund. */
.aschenschlund-key-overlay{z-index:100020}
.aschenschlund-key-popup{width:min(590px,calc(100vw - 36px));padding:30px 34px}
.aschenschlund-key-icon{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 12px;border:2px solid #6b512e;outline:1px solid rgba(255,213,132,.42);outline-offset:-6px;background:radial-gradient(circle,rgba(255,178,65,.18),rgba(8,6,4,.96) 68%);box-shadow:inset 0 0 22px rgba(255,170,50,.13),0 0 24px rgba(255,142,31,.12);font-size:56px;line-height:1}
.aschenschlund-key-icon{width:132px;height:132px}
.aschenschlund-key-icon img.dungeon-report-icon{display:block;width:110px;height:110px;max-width:100%;margin:0;flex:0 0 auto;object-fit:contain}
.aschenschlund-key-popup h3{font-size:25px}
.aschenschlund-key-popup p{margin:10px 0;color:#ead8b7;font:15px/1.62 "Courier New",monospace}
.aschenschlund-key-popup .button{display:block;min-width:250px;margin:22px auto 0!important}
@media(max-width:600px){.aschenschlund-key-popup{padding:26px 22px}.aschenschlund-key-icon{width:112px;height:112px;font-size:50px}.aschenschlund-key-icon img.dungeon-report-icon{width:94px;height:94px}.aschenschlund-key-popup h3{font-size:22px}}

/* Gesockelte Edelsteine: zentrales Icon-Overlay in Inventar, Ausrüstung und Bank. */
.ii-item-icon-v3{position:relative;}
.ii-socket-gem-overlay-v3{
  position:absolute;
  left:50%;
  top:50%;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  z-index:4;
  pointer-events:none;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.88)) drop-shadow(0 2px 2px rgba(0,0,0,.92));
}
.ii-socket-gem-overlay-v3 .item-icon-img{
  width:26px!important;
  height:26px!important;
  margin:0!important;
  transform:none!important;
  object-fit:contain;
}
@media(max-width:860px){
  .ii-socket-gem-overlay-v3,
  .ii-socket-gem-overlay-v3 .item-icon-img{width:23px!important;height:23px!important;}
}

/* DevTools regression diagnostics (Phase 2) */
.dev-regression-card{grid-column:span 2}
.dev-regression-report{margin-top:10px;max-height:430px;overflow:auto;padding:8px;border:1px solid rgba(255,181,62,.22);background:rgba(0,0,0,.22);font:12px/1.4 "Courier New",monospace}
.dev-regression-report h4{margin:12px 0 6px;color:#f1cf8c;font:700 13px/1.3 Georgia,serif}
.dev-regression-summary{display:flex;flex-direction:column;gap:2px;padding:8px;margin-bottom:8px;border-left:3px solid #8d7447;background:rgba(255,255,255,.035)}
.dev-regression-summary.is-pass{border-left-color:#72b56a}.dev-regression-summary.is-fail{border-left-color:#c8665e}
.dev-regression-row{display:flex;flex-direction:column;gap:2px;padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.06)}
.dev-regression-row span{color:#bfae91}.dev-regression-row.is-fail strong{color:#ef8b82}
.dev-regression-global{padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.07)}
.dev-regression-global summary{cursor:pointer;font-weight:700;color:#dfca9e}.dev-regression-global summary small{font-weight:400;color:#9f927c}
.dev-regression-global>div{margin:4px 0 0 22px;color:#bfae91}
.dev-regression-files{word-break:break-word;color:#8f836f!important}
@media(max-width:760px){.dev-regression-card{grid-column:span 1}.dev-regression-report{max-height:55vh}}

/* C1.2 mobile inventory actions: normal tap uses the detail panel; long-press context menus are suppressed in JavaScript. */
@media (hover: none), (pointer: coarse) {
  [data-context-item],
  [data-context-slot] {
    -webkit-touch-callout: none;
    user-select: none;
  }
  .ii-context-v3 {
    touch-action: manipulation;
  }
}


/* Visuelles Feedback: neu erhaltener Buff fliegt von links in das Buff-Menü. */
.buff-gain-fx{
  position:fixed;
  z-index:12050;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  contain:layout paint;
  color:#f7deb0;
  font-size:28px;
  line-height:1;
  will-change:transform,opacity;
}
.buff-gain-fx img{
  width:32px;
  height:32px;
  object-fit:contain;
  image-rendering:auto;
  filter:drop-shadow(0 0 4px rgba(255,190,79,.45));
}
#buffHudButton.buff-gain-target-pulse{animation:buffGainTargetPulse .52s ease-out;}
@keyframes buffGainTargetPulse{
  0%{box-shadow:inset 0 0 0 1px rgba(255,203,121,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 0 1px #090604}
  45%{border-color:#e6aa42;box-shadow:0 0 8px rgba(255,198,91,.85),0 0 18px rgba(255,134,31,.48),inset 0 0 8px rgba(255,220,143,.28)}
  100%{box-shadow:inset 0 0 0 1px rgba(255,203,121,.16),inset 0 -6px 12px rgba(0,0,0,.46),0 0 0 1px #090604}
}
@media (prefers-reduced-motion:reduce){
  .buff-gain-fx{display:none!important}
  #buffHudButton.buff-gain-target-pulse{animation:none}
}


/* === Zone and skilltree image icons === */
.tier-icon{display:flex;align-items:center;justify-content:center}
.tier-icon-img{display:block;width:34px;height:34px;object-fit:contain}
.elf-skill-icon{position:absolute;inset:0;display:block;height:auto;margin:0;overflow:hidden;z-index:0}
.elf-skill-icon img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.elf-skill-rank{z-index:3}
@media(max-width:520px){
  .tier-icon-img{width:30px;height:30px}
  .elf-skill-icon{height:auto}
  .elf-skill-icon img{width:100%;height:100%}
}

/* === Zone icon crop/scaling: removes transparent/dead 1px edges without touching assets === */
.tier-icon{
  overflow:hidden;
}
.tier-icon-img{
  transform:scale(1.05);
  transform-origin:center;
}
.tier-option[data-modal-zone="8"] .tier-icon-img{
  transform:scale(1.20);
}
.tier-option[data-modal-zone="9"] .tier-icon-img{
  transform:scale(1.08);
}
.tier-option[data-modal-zone="10"] .tier-icon-img{
  transform:scale(1.02);
}

/* Devtool: direktes Charakterlevel */
.dev-level-field{display:flex;flex-direction:column;gap:6px;margin:8px 0 10px;font-family:"Courier New",monospace;font-size:12px}
.dev-level-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.dev-level-controls input{min-width:0;width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid rgba(197,151,83,.55);background:#0d0b09;color:#f1dfbd;font:inherit}
.dev-level-controls input:focus{outline:1px solid #c59753;outline-offset:1px}

.dev-level-controls select{min-width:132px;background:#100d0a;color:#f3d7a0;border:1px solid #72512f;padding:7px 8px;font-family:"Courier New",monospace}.dev-accessory-menu{max-width:620px}


/* Dungeon-Mechaniken im Talentbaum: dezente, einheitliche Kennzeichnung. */
.elf-skill-node.has-dungeon-mechanic::before { content:""; position:absolute; inset:0; border:3px solid rgba(190,68,68,.95); pointer-events:none; z-index:2; box-sizing:border-box; }
.elf-skill-node.has-dungeon-mechanic:hover::before, .elf-skill-node.has-dungeon-mechanic:focus-visible::before { border-color:rgba(225,92,92,1); }
.skilltree-dungeon-bonus { margin-top:10px; padding-top:0; }
.skilltree-dungeon-bonus > strong { display:block; color:#e7b1a9; font-family:Courier New,monospace; font-size:12px; }
.skilltree-dungeon-bonus p { margin:5px 0 0; }
.skilltree-dungeon-unlock p { color:#e7b1a9; font-family:"Courier New",monospace; }




/* Dungeon-Kampfbericht: persistente Echtzeit-Wiedergabe */
.dungeon-playback-report .dungeon-combat-report{display:block;}
.dungeon-playback-log{height:250px;max-height:250px;overflow:hidden;overflow-anchor:none;display:flex;flex-direction:column;justify-content:flex-end;}
.dungeon-playback-line{flex:0 0 auto;padding:5px 8px;border-bottom:1px solid rgba(213,177,74,.18);font-family:"Courier New",monospace;font-size:12px;line-height:1.45;opacity:.72;transition:opacity .18s ease,background-color .18s ease;}
.dungeon-playback-line-new{opacity:1;background:rgba(213,177,74,.09);}
.dungeon-playback-room{background:rgba(16,13,9,.96);color:#e5c76b;font-weight:700;border-top:2px solid #8d6b24;border-bottom:2px solid #8d6b24;}
.dungeon-playback-overlay{position:fixed;inset:0;z-index:12050;pointer-events:none;display:flex;align-items:center;justify-content:center;}
.dungeon-playback-effects{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:8px;align-items:center;justify-content:center;}
.dungeon-playback-effect{width:32px;height:32px;box-sizing:content-box;border:3px solid #b88a2f;outline:1px solid #2c1d08;background:rgba(20,14,7,.94);display:flex;align-items:center;justify-content:center;font-size:24px;line-height:32px;opacity:0;transform:scale(.7);transition:opacity .16s ease,transform .16s ease;box-shadow:0 0 0 1px rgba(231,194,89,.25),0 4px 14px rgba(0,0,0,.65);}
.dungeon-playback-effect.show{opacity:1;transform:scale(1);}
.dungeon-playback-notice{position:absolute;left:50%;top:36%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:8px;}
.dungeon-playback-notice-item{padding:9px 18px;border:3px solid #b88a2f;outline:1px solid #2c1d08;background:rgba(20,14,7,.96);color:#f2d77d;font-family:"Courier New",monospace;font-weight:700;font-size:15px;letter-spacing:.03em;box-shadow:0 6px 18px rgba(0,0,0,.7);opacity:0;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease;white-space:nowrap;}
.dungeon-playback-notice-item.show{opacity:1;transform:translateY(0);}
.dungeon-speed-options .mini-choice.active{border-color:#e2bd55;box-shadow:inset 0 0 0 2px rgba(226,189,85,.35);color:#f2d77d;}

/* Dungeon playback polish: boss warning and completion edge flash */
.dungeon-playback-notice-boss{min-width:220px;display:flex;align-items:center;justify-content:center;gap:10px;border-color:#d6a53c;box-shadow:0 0 14px rgba(214,165,60,.75),0 0 32px rgba(150,35,20,.55),0 6px 18px rgba(0,0,0,.78);animation:dungeonBossNoticePulse .72s ease-in-out infinite alternate;}
.dungeon-playback-notice-icon{font-size:30px;line-height:1;filter:drop-shadow(0 0 7px rgba(255,224,140,.8));}
@keyframes dungeonBossNoticePulse{from{transform:translateY(0) scale(1);filter:brightness(1);}to{transform:translateY(0) scale(1.035);filter:brightness(1.28);}}
body.dungeon-completion-flash-success::after,body.dungeon-completion-flash-failed::after{content:"";position:fixed;inset:0;z-index:13000;pointer-events:none;box-sizing:border-box;animation:dungeonCompletionEdgeFlash 1.3s ease-out forwards;}
body.dungeon-completion-flash-success::after{border:8px solid rgba(72,220,104,.92);box-shadow:inset 0 0 48px rgba(55,220,90,.58),0 0 34px rgba(55,220,90,.72);}
body.dungeon-completion-flash-failed::after{border:8px solid rgba(225,55,55,.94);box-shadow:inset 0 0 48px rgba(225,45,45,.62),0 0 34px rgba(225,45,45,.74);}
@keyframes dungeonCompletionEdgeFlash{0%{opacity:0;}18%{opacity:1;}55%{opacity:.68;}100%{opacity:0;}}

/* Friedhof Hotfix: Gregors rechte Beschreibungsbox in Courier */
.graveyard-warden-text,
.graveyard-warden-text p,
.graveyard-warden-text em{
  font-family:"Courier New", Courier, monospace !important;
}

/* === Skilltree icons: exact edge-to-edge fit inside the skill frame === */
.elf-skill-node{
  padding:0 !important;
  overflow:hidden !important;
  line-height:0;
}
.elf-skill-node .elf-skill-icon{
  position:absolute;
  inset:-1px !important;
  display:block;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden;
}
.elf-skill-node .elf-skill-icon img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0;
  object-fit:cover !important;
  object-position:center;
}


/* System-Icons: Emoji-Ersatz aus assets/images/system */
.system-hud-icon{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated;pointer-events:none}
.system-tool-icon{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated;pointer-events:none}
.system-inline-icon{width:1.35em;height:1.35em;display:inline-block;vertical-align:-.3em;object-fit:cover;image-rendering:pixelated}
.system-stat-icon{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated}
.system-skill-icon{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated}
#lorheimSideHud button,#lorheimBuffHud button,#skillHubButton,#questHudButton,#buffHudButton,#lorheimMuteToggleBtn,#serverChatButton{overflow:hidden}
#skillHubButton,#questHudButton,#buffHudButton,#serverChatButton,#lorheimMuteToggleBtn{padding:0!important}
.skill-hub-row span{overflow:hidden;padding:0!important}
.village-place-icon{overflow:hidden;padding:0!important}
.village-place-icon img{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated}
.ii-stat-card-v3 span{overflow:hidden;padding:0!important}
.ii-trash-v3{padding:0!important;overflow:hidden}
.bank-gold-v1>div,#bankGoldInfoV1>div,.ii-gold-v3{display:flex;align-items:center;gap:5px}
.festival-system-icon{width:1.6em;height:1.6em;display:inline-block;vertical-align:-.45em;object-fit:cover;image-rendering:pixelated}

/* FIX: Quest-/Buff-Zähler müssen über dem Icon-Panel liegen und den Rahmen überlappen. */
#questHudButton,
#buffHudButton{
  overflow:visible !important;
}
#questHudButton > .system-hud-icon,
#buffHudButton > .system-hud-icon{
  position:relative;
  z-index:1;
}
#questHudCount,
#buffHudCount{
  z-index:10;
  pointer-events:none;
}

/* System-Icons: Inventar/Bank-Werkzeuge und Berufsfortschritt */
.profession-meta strong,.alchemy-meta strong,.smithing-meta strong{display:inline-flex;align-items:center;gap:7px}
.profession-system-icon{width:25px;height:25px;display:block;object-fit:cover;image-rendering:pixelated;flex:0 0 25px}

/* System toolbar icons: fill their square button frames edge-to-edge. */
.ii-tool-v3{
  padding:0!important;
  overflow:hidden;
  line-height:0;
}
.ii-tool-v3 .system-tool-icon{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  margin:0;
  border:0;
}


/* Goldanzeige unter dem Buff-HUD: Icon füllt den Frame, Wert bleibt kompakt im unteren Bildbereich. */
#lorheimGoldHud{
  position:relative;
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  box-sizing:border-box;
  overflow:hidden;
  border:2px solid rgba(181,128,49,.72);
  outline:1px solid rgba(255,221,145,.18);
  outline-offset:-4px;
  background:linear-gradient(#281b10,#0c0805);
  box-shadow:0 8px 22px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,222,150,.08);
  opacity:.62;
  filter:saturate(.9) brightness(.94);
  pointer-events:auto;
}
#lorheimGoldHud>.system-hud-icon{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;}
#lorheimGoldHud::after{
  content:attr(data-full-gold);
  position:absolute;
  right:46px;
  top:50%;
  z-index:40;
  transform:translateY(-50%) translateX(4px);
  min-width:max-content;
  max-width:min(260px,calc(100vw - 72px));
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid rgba(224,173,82,.9);
  outline:1px solid rgba(255,221,145,.16);
  outline-offset:-3px;
  background:linear-gradient(180deg,rgba(40,27,16,.98),rgba(12,8,5,.98));
  box-shadow:0 8px 22px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,222,150,.07);
  color:#fff1b0;
  font:900 15px/1.2 "Courier New",Courier,monospace;
  letter-spacing:.01em;
  text-align:center;
  white-space:nowrap;
  text-shadow:0 1px 2px #000;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
}
#lorheimGoldHud:hover::after,
#lorheimGoldHud:focus-visible::after{
  opacity:1;
  visibility:visible;
  transform:translateY(-50%) translateX(0);
}
#lorheimGoldHud:hover,
#lorheimGoldHud:focus-visible{
  overflow:visible;
  opacity:1;
  filter:none;
  border-color:#e0ad52;
}
#lorheimGoldHudValue{
  position:absolute;
  z-index:3;
  left:2px;
  right:2px;
  bottom:1px;
  overflow:hidden;
  color:#fff1b0;
  background:rgba(7,4,2,.72);
  text-align:center;
  white-space:nowrap;
  text-overflow:clip;
  font:900 8px/1.25 "Courier New",Courier,monospace;
  letter-spacing:-.04em;
  text-shadow:0 1px 2px #000,0 0 4px #000;
  pointer-events:none;
}
.ii-required-v3.met{color:#78df8c!important;text-shadow:0 0 7px rgba(80,210,110,.18);}
@media(max-width:860px){
  #lorheimGoldHud{width:32px;height:32px;min-width:32px;min-height:32px;border-width:1px;outline-offset:-3px;}
  #lorheimGoldHudValue{left:1px;right:1px;bottom:1px;font-size:7px;}
  #lorheimGoldHud::after{right:39px;font-size:13px;padding:6px 8px;max-width:calc(100vw - 52px);}
}

/* Patch 2026-07-31: Begleiter, mobile Schmiede, leere Begleiteranzeige */
.companion-empty-panel img{width:54px;height:54px;object-fit:contain;image-rendering:pixelated}.companion-empty-panel p{font-family:"Courier New",Courier,monospace!important}

@media(max-width:720px){.smith-craft-card,.smith-craft-card.craft-quantity-panel{height:auto!important;min-height:0!important;overflow:visible!important;padding-bottom:12px!important}.smith-craft-card .craft-card-layout,.smith-craft-card .craft-info-column,.smith-craft-card .craft-actions,.smith-craft-card .craft-progress-block{height:auto!important;min-height:0!important;overflow:visible!important}.smith-craft-card .craft-info-column{display:flex!important;flex-direction:column!important;align-items:stretch!important}.smith-craft-card .craft-title-text,.smith-craft-card .craft-item-name,.smith-craft-card .recipe-meta,.smith-craft-card .recipe-meta-sub,.smith-craft-card .recipe-meta-materials,.smith-craft-card .recipe-meta-stat{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;max-width:100%!important}.smith-craft-card .craft-tier-mini{display:none!important}}


/* Real item/monster images in overworld action cards. Quest icons keep their existing panel size. */
.overworld-action-icon{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  vertical-align:middle;
  line-height:1!important;
}
.overworld-action-icon .item-icon-img,
.overworld-action-icon>img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  display:block!important;
}
.quest-item-image{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}
.quest-item-image .item-icon-img{width:100%;height:100%;object-fit:contain;display:block}

/* Festival- und Verbrauchsicon-Pfade: quadratische PNGs mit Emoji-Fallback. */
.festival-task-icon,.festival-button-icon,.festival-currency-icon,.festival-footer-icon,.festival-popup-icon-img{display:inline-block;object-fit:cover;image-rendering:pixelated;vertical-align:middle}
.festival-task-icon{width:34px;height:34px}.festival-button-icon{width:24px;height:24px;margin-right:6px}.festival-currency-icon,.festival-footer-icon{width:24px;height:24px}.festival-popup-icon-img{width:72px;height:72px}
.festival-icon-button{display:inline-flex;align-items:center;justify-content:center}.festival-result-icon img{display:block;margin:0 auto}
.festival-night-grid .festival-button-icon{width:28px;height:28px}.festival-header>.festival-system-icon{width:48px;height:48px;vertical-align:middle}


/* Festival/Taverne Icon-Layout: kompakt, sauber gerahmt, keine Button-Icons. */
.village-place-icon{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  flex:0 0 34px!important;
  box-sizing:border-box!important;
}
.village-place-icon img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* Festivalkopf: Icon exakt so hoch wie Titel plus Wochenzeile. */
.festival-header{
  min-height:0!important;
  align-items:center!important;
  gap:14px!important;
}
.festival-header>.festival-main-icon-frame{
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  min-height:72px!important;
  flex:0 0 72px!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding:0!important;
  overflow:hidden!important;
  border:2px solid #9b7137!important;
  outline:0!important;
  background:#0c0906!important;
  box-shadow:inset 0 0 0 1px rgba(255,220,143,.16),0 2px 7px rgba(0,0,0,.5)!important;
  line-height:0!important;
}
.festival-header>.festival-main-icon-frame .festival-system-icon{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* Festival-Aufgaben/NPCs: 64px vor dem Namen. */
.festival-icon-frame,
.festival-panel .craft-head .name>.icon{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  min-height:64px!important;
  flex:0 0 64px!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding:0!important;
  overflow:hidden!important;
  border:2px solid #9b7137!important;
  outline:0!important;
  background:#0c0906!important;
  box-shadow:inset 0 0 0 1px rgba(255,220,143,.16),0 2px 7px rgba(0,0,0,.5)!important;
  line-height:0!important;
}
.festival-icon-frame img,
.festival-panel .craft-head .name>.icon img{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.festival-task-head .name,
.festival-panel .craft-head .name{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
.festival-task-title,
.festival-panel .craft-head .name{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.festival-action-card,
.festival-meal-card,
.festival-buff-shop-card,
.festival-night-grid article{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.festival-action-card .craft-head,
.festival-meal-card .craft-head,
.festival-buff-shop-card .craft-head,
.festival-night-grid article .craft-head{
  min-height:68px!important;
  align-items:center!important;
}
.festival-currency{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 12px!important;
}
.festival-panel .button .festival-button-icon,
.festival-panel .button .festival-task-icon,
.festival-panel .button .festival-system-icon,
.festival-panel .button .item-icon-img{
  display:none!important;
}

/* Tavernen-Speisen und -Getränke: kompakte 50px-Rahmen, Bilder vollständig sichtbar. */
.tavern-menu-grid .tavern-menu-item .craft-head{
  align-items:center!important;
  gap:10px!important;
  min-height:54px!important;
}
.tavern-menu-grid .tavern-menu-item .craft-head .name{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.15!important;
}
.tavern-menu-grid .tavern-menu-item .craft-head .name>.icon{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  flex:0 0 50px!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  padding:2px!important;
  overflow:hidden!important;
  border:2px solid #9b7137!important;
  outline:0!important;
  background:#0c0906!important;
  box-shadow:inset 0 0 0 1px rgba(255,220,143,.16),0 2px 7px rgba(0,0,0,.5)!important;
  line-height:0!important;
}
.tavern-menu-grid .tavern-menu-item .craft-head .name>.icon img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.tavern-menu-grid .tavern-menu-item:not(.world-npc-dual-card){
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.tavern-menu-grid .tavern-menu-item:not(.world-npc-dual-card) .buff-note{
  min-height:0!important;
  margin:8px 0!important;
  overflow:visible!important;
}
.tavern-menu-grid .tavern-menu-item .button{margin-top:auto!important;}

@media(max-width:760px){
  .festival-header{align-items:center!important;flex-wrap:wrap!important}
  .festival-header>.festival-main-icon-frame{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;flex-basis:64px!important}
  .festival-icon-frame,.festival-panel .craft-head .name>.icon{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;flex-basis:56px!important}
  .festival-currency{margin-left:0!important;margin-top:0!important}
  .tavern-menu-grid .tavern-menu-item:not(.world-npc-dual-card) .craft-head{min-height:54px!important}
}

/* === Tavernen-Icon-Fix: einheitlich schwarze Bildfläche, gleichmäßiger Innenabstand === */
.tavern-menu-grid .tavern-menu-item .craft-head .name>.icon{
  background:#050403!important;
  padding:4px!important;
}
.tavern-menu-grid .tavern-menu-item .craft-head .name>.icon img.tavern-item-icon-img{
  width:auto!important;
  height:auto!important;
  max-width:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  object-position:center!important;
}

.tavern-action-icon-frame{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  flex:0 0 50px!important;
  box-sizing:border-box!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:4px!important;
  overflow:hidden!important;
  border:2px solid #9b7137!important;
  outline:0!important;
  background:#050403!important;
  box-shadow:inset 0 0 0 1px rgba(255,220,143,.16),0 2px 7px rgba(0,0,0,.5)!important;
  line-height:0!important;
}
.tavern-action-icon-img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}
#gambleTab .craft-head .name,
.tavern-backroom-action-card .craft-head .name{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}

/* === Finaler Icon-Abgleich: Festival 50px, Taverne einheitlicher Innenabstand === */
.festival-header>.festival-main-icon-frame,
.festival-icon-frame,
.festival-panel .craft-head .name>.icon{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  flex:0 0 50px!important;
  box-sizing:border-box!important;
}
.festival-header>.festival-main-icon-frame .festival-system-icon,
.festival-icon-frame img,
.festival-panel .craft-head .name>.icon img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.festival-action-card .craft-head,
.festival-meal-card .craft-head,
.festival-buff-shop-card .craft-head,
.festival-night-grid article .craft-head{
  min-height:54px!important;
}

/* Jede sichtbare Tavernen-Iconbox nutzt denselben 50px-Rahmen und 4px Abstand. */
#tavernView .craft-head .name>.icon{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  flex:0 0 50px!important;
  box-sizing:border-box!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:4px!important;
  overflow:hidden!important;
  border:2px solid #9b7137!important;
  outline:0!important;
  background:#050403!important;
  box-shadow:inset 0 0 0 1px rgba(255,220,143,.16),0 2px 7px rgba(0,0,0,.5)!important;
  line-height:0!important;
}
#tavernView .craft-head .name>.icon img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}
@media(max-width:760px){
  .festival-header>.festival-main-icon-frame,
  .festival-icon-frame,
  .festival-panel .craft-head .name>.icon{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    flex-basis:50px!important;
  }
}

/* Buff-Segen: echte Bilder in derselben visuellen Groesse wie die bisherigen 18px-Emojis. */
#buffHudPanel .buff-hud-icon-img.buff-blessing-icon{
  width:18px;
  height:18px;
  max-width:18px;
  max-height:18px;
  object-fit:contain;
  object-position:center;
  display:block;
  margin:auto;
}

/* Church blessing icons use the same artwork as the granted buffs. */
#churchView .blessing-icon-frame{
  width:50px;
  height:50px;
  min-width:50px;
  flex:0 0 50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#050403;
  border:1px solid rgba(201,151,76,.9);
  box-sizing:border-box;
  vertical-align:middle;
}
#churchView .blessing-icon-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  image-rendering:pixelated;
}


/* Hotfix 2026-08-02: Bossdrop-Popup und Begleiter-Popups/Kompendium. */



.ii-companion-dialog-v3 h3{
  font-family:Georgia,"Times New Roman",serif!important;
  text-transform:uppercase!important;
}
.ii-companion-choice-v3 .ii-companion-choice-title-v3{
  text-transform:none!important;
}
.ii-companion-dialog-v3 h3{font-size:22px!important;}
.ii-companion-choice-v3{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr)!important;
  align-items:center!important;
}
.ii-companion-choice-icon-v3,
.ii-companion-choice-v3>span:first-child{
  width:62px!important;
  height:62px!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border:1px solid #6f5535;
  background:#080705;
  box-sizing:border-box;
  line-height:1!important;
}
.ii-companion-choice-pet-img-v3{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
}
.ii-companion-choice-copy-v3{min-width:0!important;}
@media(max-width:520px){.ii-companion-choice-v3{grid-template-columns:54px minmax(0,1fr)!important}.ii-companion-choice-icon-v3,.ii-companion-choice-v3>span:first-child{width:54px!important;height:54px!important}}
.ii-companion-choice-v3 .ii-companion-choice-title-v3{
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:700!important;
}


.compendium-companion-detail .compendium-companion-bonus-text{
  font-family:"Courier New",Courier,monospace!important;
  font-size:12px!important;
  line-height:1.4!important;
}


/* Finaler Asset-/Begleiter-Hotfix 2026-08-02 */


.ii-companion-v3>div{
  position:relative!important;
  min-height:78px!important;
  padding:7px 8px 24px!important;
  box-sizing:border-box!important;
}
.ii-companion-v3 small{
  position:absolute!important;
  left:6px!important;
  right:6px!important;
  bottom:6px!important;
  margin:0!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  max-height:27px!important;
}

/* Kompendium-Fortschritt: feste Asset-Icons und Bossausrüstung */
.compendium-category-icon{width:32px!important;height:32px!important;margin:0 auto 8px!important;display:grid!important;place-items:center!important}
.compendium-category-icon img{width:32px!important;height:32px!important;object-fit:contain!important;display:block!important}
.compendium-category-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.compendium-equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;align-items:stretch}
.compendium-equipment-card{min-width:0;min-height:124px;display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:14px;padding:12px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.20);outline-offset:-5px;background:linear-gradient(145deg,#18120e,#090706 70%,#030302);color:#f5d59b;cursor:pointer;text-align:left;font-family:inherit;box-sizing:border-box}
.compendium-equipment-card:hover{filter:brightness(1.1);border-color:#9b743f}
.compendium-equipment-icon{width:96px;height:96px;display:grid;place-items:center;overflow:hidden;border:1px solid #6f5535;background:#080705;box-sizing:border-box}
.compendium-equipment-icon img{width:96px;height:96px;object-fit:contain;display:block}
.compendium-equipment-info{min-width:0}.compendium-equipment-info b{display:block;color:#f5d59b;font-family:inherit;font-size:18px;line-height:1.2;overflow-wrap:anywhere}.compendium-equipment-info small{display:block;margin-top:8px;color:#b49161;font:12px/1.35 "Courier New",monospace}
.compendium-equipment-big-icon{width:96px!important;height:96px!important;display:grid!important;place-items:center!important;overflow:hidden!important}.compendium-equipment-big-icon img{width:96px!important;height:96px!important;object-fit:contain!important;display:block!important}
.compendium-equipment-detail-grid dd,.compendium-equipment-detail .zone-flavor{font-family:"Courier New",monospace!important}
.ii-companion-none-icon-v3{width:100%!important;height:100%!important;object-fit:contain!important;flex:0 0 auto}
@media(max-width:900px){.compendium-equipment-grid{grid-template-columns:1fr}}

/* Dungeon report icon cleanup */
.dungeon-report-icon{width:18px;height:18px;display:inline-block;vertical-align:-4px;object-fit:contain;flex:0 0 18px;margin-right:4px}
.dungeon-playback-notice-icon-image{width:28px;height:28px;object-fit:contain;display:block}
.dungeon-room-complete-entry{display:flex;align-items:flex-start;gap:4px}
.dungeon-room-complete-entry .dungeon-report-icon{margin-top:1px;margin-right:0}
.dungeon-room-detail>summary{display:flex;align-items:center;gap:4px}

/* Dungeon UI: authoritative image-icon rendering, no emoji fallbacks. */
.dungeon-ability-description-title{display:flex!important;align-items:center;gap:7px}
.dungeon-ability-description-title .dungeon-report-icon{width:18px;height:18px;flex:0 0 18px;margin:0}
.dungeon-room-log-entry .dungeon-report-icon,.dungeon-playback-line .dungeon-report-icon{width:18px;height:18px;vertical-align:middle;margin:0 7px 0 0;object-fit:contain}
.dungeon-playback-effect img{display:block;width:34px;height:34px;object-fit:contain}



/* Dungeon report final alignment and room controls */
.dungeon-playback-notice-item{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.dungeon-playback-notice-item .dungeon-playback-notice-icon-image{
  width:28px;
  height:28px;
  flex:0 0 28px;
  margin:0;
}
.dungeon-playback-notice-item>span{
  display:block;
  line-height:28px;
  text-align:left;
}
.dungeon-room-detail>summary{
  list-style:none;
  cursor:pointer;
}
.dungeon-room-detail>summary::-webkit-details-marker{display:none}
.dungeon-room-detail>summary::before{
  content:"";
  width:0;
  height:0;
  flex:0 0 auto;
  margin:0 3px 0 1px;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid #c99a4b;
  transform-origin:3px 5px;
  transition:transform .14s ease;
}
.dungeon-room-detail[open]>summary::before{transform:rotate(90deg)}
.dungeon-room-report-toolbar{
  display:flex;
  justify-content:flex-start;
  margin:8px 0 5px;
}
.dungeon-room-toggle-all{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(190,145,76,.4);
  background:rgba(15,10,6,.72);
  color:#d8bd8d;
  font:11px/1.25 "Courier New",Courier,monospace;
  cursor:pointer;
}
.dungeon-room-toggle-all:hover,
.dungeon-room-toggle-all:focus{
  outline:0;
  border-color:#a6793d;
  color:#f3c66f;
  background:rgba(44,28,14,.72);
}
.dungeon-room-toggle-all-arrow{
  width:0;
  height:0;
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  border-left:6px solid currentColor;
  transition:transform .14s ease;
}
.dungeon-room-toggle-all.all-open .dungeon-room-toggle-all-arrow{transform:rotate(90deg)}


/* =========================================================
   V59 CHARACTER HUB POLISH
   Einheitliche Charakterwerte, echte Systemicons und klare Slottexte.
   ========================================================= */
#characterModal .lorheim-selected-stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(48px,1fr))!important;
  gap:7px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:9px 10px!important;
  border:2px solid #4f3d28!important;
  outline:1px solid rgba(213,151,73,.18)!important;
  outline-offset:-5px!important;
  background:rgba(0,0,0,.20)!important;
  text-shadow:0 1px #000!important;
  box-sizing:border-box!important;
}
#characterModal .lorheim-selected-stats .lorheim-character-stat-card{
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  min-height:48px!important;
  padding:7px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-areas:"icon label" "icon value"!important;
  gap:1px 7px!important;
  align-items:center!important;
  justify-content:stretch!important;
  text-align:left!important;
  border:1px solid rgba(213,151,73,.22)!important;
  background:linear-gradient(145deg,rgba(255,191,92,.055),rgba(0,0,0,.18))!important;
  box-sizing:border-box!important;
}
#characterModal .lorheim-selected-stats .lorheim-character-stat-icon{
  grid-area:icon!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(213,151,73,.25)!important;
  background:rgba(0,0,0,.24)!important;
  overflow:hidden!important;
}
#characterModal .lorheim-selected-stats .lorheim-character-stat-icon img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  image-rendering:pixelated!important;
}
#characterModal .lorheim-selected-stats .lorheim-character-stat-card b{
  grid-area:label!important;
  min-width:0!important;
  color:#fff0c7!important;
  font:bold 9px/1.1 "Courier New",Courier,monospace!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#characterModal .lorheim-selected-stats .lorheim-character-stat-card strong{
  grid-area:value!important;
  display:block!important;
  width:auto!important;
  color:#ffb13b!important;
  font:bold 14px/1.1 "Courier New",Courier,monospace!important;
  text-align:left!important;
  white-space:nowrap!important;
  text-shadow:0 1px #000!important;
}
#characterModal .lorheim-character-slot.muted{
  border-style:solid!important;
  cursor:default!important;
}
#characterModal .lorheim-character-slot.muted .lorheim-slot-copy span{
  display:block!important;
  margin-top:4px!important;
  color:#b49161!important;
}
#characterModal .lorheim-character-slot.empty-slot{
  grid-template-columns:1fr!important;
  place-items:center!important;
  padding:10px 12px!important;
  opacity:.58!important;
  border-style:dashed!important;
  text-align:center!important;
}
#characterModal .lorheim-character-slot.empty-slot strong{
  color:#a58d6d!important;
  font-size:clamp(14px,1.8vw,17px)!important;
}
#characterCreatorModal #characterNameInput:invalid{
  border-color:#a64038!important;
  box-shadow:0 0 0 1px rgba(220,82,70,.24),inset 0 0 10px rgba(120,20,20,.12)!important;
}
@media(max-width:760px){
  #characterModal .lorheim-selected-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(3,minmax(46px,auto))!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}
@media(max-width:420px){
  #characterModal .lorheim-selected-stats .lorheim-character-stat-card{padding:6px!important;gap:1px 5px!important;}
  #characterModal .lorheim-selected-stats .lorheim-character-stat-card b{font-size:8px!important;}
  #characterModal .lorheim-selected-stats .lorheim-character-stat-card strong{font-size:13px!important;}
}

/* V57: Fraktionskacheln links neben ihren zugehörigen Völkern. */
@media (min-width: 861px) {
  #characterCreatorModal .character-popover {
    width:min(1450px,97vw) !important;
    max-height:95vh !important;
    overflow-y:auto !important;
  }
  #characterCreatorModal .race-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:1390px !important;
    gap:14px !important;
    margin-inline:auto !important;
  }
  #characterCreatorModal .race-card {
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
    padding:13px 12px !important;
    display:block !important;
  }
  #characterCreatorModal .race-icon {height:190px !important;margin:0 0 8px !important;}
  #characterCreatorModal .race-icon img {width:auto !important;height:auto !important;max-width:100% !important;max-height:100% !important;}
  #characterCreatorModal .race-card h2 {margin:0 0 7px !important;font-size:20px !important;}
  #characterCreatorModal .race-card ul {display:block !important;min-height:18px !important;font-size:12px !important;line-height:1.45 !important;}
  #characterCreatorModal .race-card .button {margin-top:11px !important;padding:9px 12px !important;font-size:12px !important;}
  #characterCreatorModal .faction-card-crown {grid-column:1;grid-row:1;}
  #characterCreatorModal .race-card[data-create-race="elf"] {grid-column:2;grid-row:1;}
  #characterCreatorModal .race-card[data-create-race="gnome"] {grid-column:3;grid-row:1;}
  #characterCreatorModal .race-card[data-create-race="dwarf"] {grid-column:4;grid-row:1;}
  #characterCreatorModal .faction-card-ash {grid-column:1;grid-row:2;}
  #characterCreatorModal .race-card[data-create-race="darkelf"] {grid-column:2;grid-row:2;}
  #characterCreatorModal .race-card[data-create-race="orc"] {grid-column:3;grid-row:2;}
  #characterCreatorModal .race-card[data-create-race="troll"] {grid-column:4;grid-row:2;}
}


/* V56: Einheitliche Volksboni und informative Spezialisierungsübersicht. */
#characterCreatorModal .race-card{position:relative!important;}
#characterCreatorModal .race-info-button{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  z-index:5!important;
  width:auto!important;
  min-width:46px!important;
  margin:0!important;
  padding:5px 9px!important;
  border:1px solid #8b6737!important;
  background:rgba(12,9,7,.88)!important;
  color:#e8c47e!important;
  font:700 10px/1.1 "Courier New",Courier,monospace!important;
  letter-spacing:.04em!important;
  cursor:pointer!important;
  box-shadow:0 3px 10px rgba(0,0,0,.5)!important;
}
#characterCreatorModal .race-info-button:hover,
#characterCreatorModal .race-info-button:focus-visible{
  outline:none!important;
  border-color:#d29a48!important;
  color:#ffe1a0!important;
  background:#24170d!important;
}
.race-info-modal{z-index:2147482500!important;padding:18px!important;place-items:center!important;align-items:center!important;}
.race-info-popover{
  position:relative;
  width:min(760px,94vw);
  max-height:92vh;
  overflow-y:auto;
  padding:22px;
  border:3px solid #6f5535;
  outline:1px solid rgba(213,151,73,.4);
  outline-offset:-7px;
  background:radial-gradient(circle at 15% 8%,rgba(255,191,92,.12),transparent 38%),linear-gradient(145deg,#1b1511,#090706 76%,#040303);
  color:#e8d1ad;
  box-shadow:0 18px 48px rgba(0,0,0,.82),inset 0 0 0 1px rgba(255,215,139,.1);
}

.race-info-close{
  position:absolute;
  top:10px;
  right:12px;
  z-index:2;
}

.race-info-header{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;padding-right:32px;}
.race-info-portrait{height:160px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 50% 75%,rgba(255,177,59,.15),transparent 62%);}
.race-info-portrait img{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(0,0,0,.6));}
.race-info-heading>span{display:block;margin-bottom:5px;color:#b8905d;font:700 10px/1.3 "Courier New",Courier,monospace;text-transform:uppercase;letter-spacing:.09em;}
.race-info-heading h2{margin:0 0 8px;color:#f3cf8b;font-size:29px;line-height:1.05;}
.race-info-heading p{margin:0;color:#ccb48d;font:13px/1.55 "Courier New",Courier,monospace;}
.race-info-bonus{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:10px 12px;border:1px solid rgba(190,145,76,.3);background:rgba(10,7,5,.55);font:12px/1.35 "Courier New",Courier,monospace;}
.race-info-bonus strong{color:#d3ad6b;}.race-info-bonus span{color:#f0d39b;font-weight:700;}
.race-info-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.race-info-spec{display:grid;grid-template-columns:54px minmax(0,1fr);gap:11px;align-items:center;min-width:0;padding:12px;border:1px solid rgba(190,145,76,.28);background:rgba(5,4,3,.52);}
.race-info-spec img{width:54px;height:54px;display:block;object-fit:cover;border:1px solid rgba(213,151,73,.35);background:#090604;}
.race-info-spec strong{display:block;margin-bottom:4px;color:#efc97f;font-size:15px;line-height:1.2;}
.race-info-role{display:block;margin-bottom:6px;color:#d3ad6b;font:700 10px/1.35 "Courier New",Courier,monospace;}
.race-info-spec p{margin:0;color:#c8ae87;font:11px/1.45 "Courier New",Courier,monospace;}
.race-info-back{display:block;margin:17px auto 0!important;min-width:190px;}
@media(max-width:860px){
  #characterCreatorModal .race-info-button{top:6px!important;right:6px!important;min-width:40px!important;padding:4px 7px!important;font-size:8px!important;}
  .race-info-popover{padding:18px 14px;}
  .race-info-header{grid-template-columns:100px minmax(0,1fr);gap:12px;}
  .race-info-portrait{height:115px;}
  .race-info-heading h2{font-size:23px;}
  .race-info-heading p{font-size:11px;}
  .race-info-specs{grid-template-columns:1fr;}
  .race-info-bonus{align-items:flex-start;flex-direction:column;gap:4px;}
}

/* V57: Symmetrische Fraktionskarten im Charakterersteller. */
#characterCreatorModal .faction-card{cursor:default!important;}
#characterCreatorModal .faction-card .faction-icon{align-items:center!important;background:transparent!important;}
#characterCreatorModal .faction-card .faction-icon img{max-width:92%!important;max-height:92%!important;filter:drop-shadow(0 10px 12px rgba(0,0,0,.72))!important;}
#characterCreatorModal .faction-card-crown{border-color:#416d9e!important;outline-color:rgba(112,171,229,.35)!important;background:radial-gradient(circle at 50% 48%,rgba(45,117,193,.16),transparent 58%),linear-gradient(145deg,#101a25,#070a0e 72%,#040506)!important;box-shadow:inset 0 0 0 1px rgba(155,211,255,.13),inset 0 0 22px rgba(38,114,197,.09)!important;}
#characterCreatorModal .faction-card-crown:hover{border-color:#78b7ef!important;box-shadow:0 0 24px rgba(55,149,238,.42),inset 0 0 0 1px rgba(196,229,255,.22),inset 0 0 26px rgba(38,123,211,.18)!important;filter:brightness(1.12)!important;}
#characterCreatorModal .faction-card-crown h2{color:#a9d5ff!important;}
#characterCreatorModal .faction-card-crown ul{color:#83b9e7!important;white-space:nowrap!important;}
#characterCreatorModal .faction-card-ash{border-color:#8e3d36!important;outline-color:rgba(222,91,72,.34)!important;background:radial-gradient(circle at 50% 48%,rgba(183,54,36,.16),transparent 58%),linear-gradient(145deg,#24120f,#0d0706 72%,#050403)!important;box-shadow:inset 0 0 0 1px rgba(255,173,151,.11),inset 0 0 22px rgba(175,48,31,.09)!important;}
#characterCreatorModal .faction-card-ash:hover{border-color:#e06a59!important;box-shadow:0 0 24px rgba(222,66,44,.42),inset 0 0 0 1px rgba(255,195,177,.2),inset 0 0 26px rgba(192,50,30,.18)!important;filter:brightness(1.12)!important;}
#characterCreatorModal .faction-card-ash h2{color:#f2b0a5!important;}
#characterCreatorModal .faction-card-ash ul{color:#d98577!important;white-space:nowrap!important;}
#characterCreatorModal .faction-select-button{cursor:pointer!important;}
@media(max-width:860px){
  /* Mobile character creation: one faction per column, preserving desktop race sequence. */
  #characterCreatorModal .faction-race-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #characterCreatorModal .faction-race-grid > .faction-card-crown{grid-column:1;grid-row:1;}
  #characterCreatorModal .faction-race-grid > .faction-card-ash{grid-column:2;grid-row:1;}
  #characterCreatorModal .faction-race-grid > [data-create-race="elf"]{grid-column:1;grid-row:2;}
  #characterCreatorModal .faction-race-grid > [data-create-race="darkelf"]{grid-column:2;grid-row:2;}
  #characterCreatorModal .faction-race-grid > [data-create-race="gnome"]{grid-column:1;grid-row:3;}
  #characterCreatorModal .faction-race-grid > [data-create-race="orc"]{grid-column:2;grid-row:3;}
  #characterCreatorModal .faction-race-grid > [data-create-race="dwarf"]{grid-column:1;grid-row:4;}
  #characterCreatorModal .faction-race-grid > [data-create-race="troll"]{grid-column:2;grid-row:4;}
  #characterCreatorModal .faction-card ul{white-space:normal!important;}
}

/* V59: Volkskacheln tragen die Farben ihrer Fraktion. */
#characterCreatorModal .race-card[data-create-race="elf"],
#characterCreatorModal .race-card[data-create-race="gnome"],
#characterCreatorModal .race-card[data-create-race="dwarf"]{
  border-color:#416d9e!important;
  outline-color:rgba(112,171,229,.35)!important;
  box-shadow:inset 0 0 0 1px rgba(155,211,255,.12),inset 0 0 18px rgba(38,114,197,.07)!important;
}
#characterCreatorModal .race-card[data-create-race="elf"] h2,
#characterCreatorModal .race-card[data-create-race="gnome"] h2,
#characterCreatorModal .race-card[data-create-race="dwarf"] h2{
  color:#a9d5ff!important;
}
#characterCreatorModal .race-card[data-create-race="elf"]:hover,
#characterCreatorModal .race-card[data-create-race="gnome"]:hover,
#characterCreatorModal .race-card[data-create-race="dwarf"]:hover{
  border-color:#78b7ef!important;
  box-shadow:0 0 20px rgba(55,149,238,.34),inset 0 0 0 1px rgba(196,229,255,.2),inset 0 0 22px rgba(38,123,211,.14)!important;
}

#characterCreatorModal .race-card[data-create-race="darkelf"],
#characterCreatorModal .race-card[data-create-race="orc"],
#characterCreatorModal .race-card[data-create-race="troll"]{
  border-color:#8e3d36!important;
  outline-color:rgba(222,91,72,.34)!important;
  box-shadow:inset 0 0 0 1px rgba(255,173,151,.1),inset 0 0 18px rgba(175,48,31,.07)!important;
}
#characterCreatorModal .race-card[data-create-race="darkelf"] h2,
#characterCreatorModal .race-card[data-create-race="orc"] h2,
#characterCreatorModal .race-card[data-create-race="troll"] h2{
  color:#f2b0a5!important;
}
#characterCreatorModal .race-card[data-create-race="darkelf"]:hover,
#characterCreatorModal .race-card[data-create-race="orc"]:hover,
#characterCreatorModal .race-card[data-create-race="troll"]:hover{
  border-color:#e06a59!important;
  box-shadow:0 0 20px rgba(222,66,44,.34),inset 0 0 0 1px rgba(255,195,177,.18),inset 0 0 22px rgba(192,50,30,.14)!important;
}


/* LORHEIM BATTLEGROUNDS V1 */
.battleground-view{display:none;padding:14px clamp(12px,2.4vw,24px) 16px;background:linear-gradient(rgba(7,6,5,.82),rgba(7,6,5,.96)),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 5px)}
.battleground-view.active-view{display:block}
.battleground-content-placeholder{min-height:12px}
.battleground-popover{width:min(760px,calc(100vw - 28px))}
.battleground-list{display:flex;flex-direction:column;align-items:stretch;gap:7px;max-width:620px;margin:0 auto}
.battleground-option{grid-template-columns:54px 1fr auto}
.battleground-option .tier-icon{width:46px;height:46px}
.battleground-option .tier-icon-img{width:100%;height:100%;object-fit:cover;border-radius:2px}
.battleground-option .tier-sub{display:flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1.25}
.battleground-option .battleground-region{display:block;color:inherit}
.battleground-option .tier-requirements{display:block}
@media(max-width:860px){
  .battleground-view{padding:9px 10px 10px}
  .battleground-popover{width:min(94vw,620px)}
  .battleground-option{grid-template-columns:46px 1fr auto}
  .battleground-option .tier-icon{width:40px;height:40px}
}

/* LORHEIM BATTLEGROUNDS V2: live fortress combat */
.battleground-arena{max-width:980px;margin:12px auto 0;padding:0 2px 14px}
.battleground-fortress-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}
.battleground-fortress{position:relative;padding:14px;border:2px solid #654927;outline:1px solid rgba(229,188,112,.22);outline-offset:-6px;background:linear-gradient(150deg,rgba(31,24,17,.98),rgba(8,7,6,.98));box-shadow:inset 0 0 0 1px rgba(255,224,169,.08),inset 0 0 22px rgba(0,0,0,.65),0 8px 18px rgba(0,0,0,.38)}
.battleground-fortress-blue{border-color:#315f91;background:radial-gradient(circle at 20% 0%,rgba(50,116,187,.16),transparent 38%),linear-gradient(150deg,rgba(24,31,42,.98),rgba(7,8,10,.98))}
.battleground-fortress-red{border-color:#8d3c34;background:radial-gradient(circle at 80% 0%,rgba(183,62,45,.15),transparent 38%),linear-gradient(150deg,rgba(42,25,21,.98),rgba(10,7,6,.98))}
.battleground-fortress-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.battleground-faction-icon{flex:0 0 40px;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.75))}
.battleground-fortress-kicker{display:block;color:#c6a46b;text-transform:uppercase;letter-spacing:.12em;font:bold 10px/1.2 "Courier New",monospace}
.battleground-fortress h3{margin:2px 0 0;color:#f0ddbb;font:700 18px/1.15 Georgia,serif;text-shadow:0 2px 2px #000}
.battleground-hp-row{display:flex;justify-content:space-between;gap:10px;margin:0 1px 6px;color:#cbb58f;font:bold 11px/1.2 "Courier New",monospace}
.battleground-hp-row strong{color:#f7e4bd;font-size:12px}
.battleground-hp-shell{height:24px;padding:3px;border:2px solid #21170e;background:#050403;box-shadow:inset 0 0 8px #000,0 1px 0 rgba(255,255,255,.08);overflow:hidden}
.battleground-hp-fill{width:100%;height:100%;transition:width .38s ease-out;box-shadow:inset 0 1px rgba(255,255,255,.3),inset 0 -5px rgba(0,0,0,.28)}
.battleground-hp-shell-blue .battleground-hp-fill{background:linear-gradient(90deg,#163e72,#3b8bd4 55%,#73bdff)}
.battleground-hp-shell-red .battleground-hp-fill{background:linear-gradient(90deg,#6c1714,#b5322a 55%,#ed6a55)}
.battleground-attack-button{width:100%;margin:11px 0 7px!important;min-height:38px}
.battleground-attack-button:disabled{cursor:not-allowed;filter:grayscale(.45);opacity:.54}
.battleground-attack-button.is-own-fortress{color:#b8aa8e}
.battleground-cycle-label{margin-top:3px}
.battleground-cycle-shell{height:12px}
.battleground-cycle-progress{width:0%;background:linear-gradient(90deg,#7f501f,#d89b42,#f5cf76);box-shadow:0 0 8px rgba(235,169,77,.45)}
.battleground-log{margin-top:12px;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center}
.battleground-event-overlay{position:fixed;inset:0;z-index:100005;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,0);pointer-events:none;opacity:0;transition:opacity .18s ease,background .18s ease}
.battleground-event-overlay.open{opacity:1;background:rgba(0,0,0,.48);pointer-events:auto}
.battleground-event-box{width:min(560px,calc(100vw - 32px));padding:24px 28px 22px;border:3px solid #654927;outline:1px solid rgba(255,213,132,.46);outline-offset:-8px;background:radial-gradient(circle at 50% 0%,rgba(192,111,34,.18),transparent 38%),linear-gradient(145deg,#21160d,#080604 74%);box-shadow:inset 0 0 0 1px rgba(255,224,169,.14),inset 0 0 30px rgba(0,0,0,.52),0 20px 50px rgba(0,0,0,.72);text-align:center;transform:translateY(12px) scale(.98);transition:transform .18s ease}
.battleground-event-overlay.open .battleground-event-box{transform:translateY(0) scale(1)}
.battleground-event-kicker{color:#f0a43e;text-transform:uppercase;letter-spacing:.15em;font:bold 12px/1.2 "Courier New",monospace;text-shadow:0 2px #000,0 0 12px rgba(240,135,40,.35)}
.battleground-event-box h3{margin:7px 0 9px;color:#f5dfb4;font:700 24px/1.15 Georgia,serif;text-shadow:0 2px #000}
.battleground-event-box p{margin:0;color:#ead1aa;font:14px/1.5 "Courier New",monospace}
#lorheimBattlegroundBtn{position:relative!important;overflow:hidden}
#lorheimBattlegroundBtn > .system-hud-icon{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;display:block!important;opacity:1!important;visibility:visible!important;pointer-events:none!important;margin:0!important}
@media(max-width:700px){
  .battleground-arena{margin-top:9px;padding-bottom:8px}
  .battleground-fortress-grid{grid-template-columns:1fr;gap:9px}
  .battleground-fortress{padding:11px}
  .battleground-fortress h3{font-size:16px}
  .battleground-hp-shell{height:22px}
  .battleground-attack-button{min-height:35px;margin-top:9px!important}
  .battleground-log{margin-top:9px;font-size:11px}
  .battleground-event-box{padding:21px 18px 19px}
  .battleground-event-box h3{font-size:21px}
  .battleground-event-box p{font-size:12px}
}

.battleground-deserter-status{margin:0 0 12px;padding:10px 12px;border:1px solid #8d3c34;background:linear-gradient(135deg,rgba(91,24,20,.92),rgba(25,10,8,.96));color:#f1c2b7;text-align:center;font:bold 12px/1.45 "Courier New",monospace;box-shadow:inset 0 0 14px rgba(0,0,0,.5)}
.battleground-deserter-status strong{display:block;color:#ffdfd5;font:700 15px/1.2 Georgia,serif;margin-bottom:2px}
.battleground-modal-deserter{max-width:620px;margin:0 auto 10px}
.lorheim-battleground-button.is-deserter{filter:grayscale(.6);opacity:.62}

/* Battleground participant prototype */
.battleground-participants{margin-top:9px;border-top:1px solid rgba(201,166,94,.24);padding-top:7px}
.battleground-participants-head{height:25px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:0 5px;margin-bottom:4px;font:700 11px/1.1 var(--font-mono,monospace);letter-spacing:.03em;color:#d7c49a;text-transform:uppercase}
.battleground-participant-add,.battleground-participant-remove{border:1px solid rgba(201,166,94,.4);background:rgba(10,11,14,.82);color:#e4d3aa;border-radius:3px;display:grid;place-items:center;cursor:pointer;padding:0}
.battleground-participant-add{width:23px;height:21px;font-size:16px}
.battleground-participant-remove{width:18px;height:18px;font-size:14px;line-height:1;color:#bfae8b}
.battleground-participant-add:hover,.battleground-participant-remove:hover{border-color:#d7b86b;color:#fff}
.battleground-participants-list{display:grid;gap:2px}
.battleground-participant-row{height:25px;min-height:25px;display:grid;grid-template-columns:16px minmax(68px,1fr) 47px 58px 58px;align-items:center;gap:6px;padding:0 5px;border:1px solid rgba(201,166,94,.15);background:rgba(8,9,12,.58);font:600 10px/1 var(--font-mono,monospace);color:#bdb59f;overflow:hidden}
.battleground-participant-avatar{width:16px;height:16px;border:1px solid rgba(201,166,94,.45);border-radius:2px;background:#08090b;box-shadow:inset 0 0 0 1px rgba(0,0,0,.45);overflow:hidden;display:block}.battleground-participant-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;image-rendering:auto}
.battleground-participant-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee0bd;font-size:11px}
.battleground-participant-empty{height:25px;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(201,166,94,.16);color:#807867;font:600 10px/1 var(--font-mono,monospace)}
.battleground-participant-slot-empty{border-style:dashed;background:rgba(8,9,12,.3);color:#756e60}.battleground-participant-slot-empty .battleground-participant-name{color:#756e60;font-weight:600}.battleground-participant-avatar-empty{border-style:dashed;background:rgba(0,0,0,.22)}
@media(max-width:720px){.battleground-participant-row{grid-template-columns:16px minmax(62px,1fr) 42px 50px 50px;gap:4px;padding:0 4px;font-size:9px}.battleground-participant-name{font-size:10px}}


/* 2026-08-04: kompakte Spezialisierungskacheln, äußerer Goldrahmen und sichtbarer Hold-Fortschritt */
.elf-spec-choice{
  min-height:42px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:7px;
  padding:7px 8px;
  text-align:left;
}
.elf-spec-choice-ultimate{
  width:32px;
  height:32px;
  display:block;
  overflow:hidden;
  border:2px solid #c9943d;
  background:#080706;
  box-shadow:inset 0 0 0 1px rgba(255,224,155,.2),0 0 8px rgba(201,148,61,.18);
}
.elf-spec-choice-ultimate img{width:100%;height:100%;display:block;object-fit:cover}
.elf-spec-choice-copy{height:32px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:0}
.elf-spec-choice-copy strong{margin:0;line-height:1;font-size:11px}
.elf-spec-choice-copy small{margin:0;line-height:1;font-size:8px;color:#bda77d}

/* Kein roter Dungeon-Rahmen mehr. Der Goldrahmen liegt vollständig außerhalb des Icons. */
.elf-skill-node,
.elf-skill-node.ultimate,
.elf-skill-node.can-invest,
.elf-skill-node.preview-locked,
.elf-skill-node.tier-locked{
  border:0 !important;
  box-shadow:0 0 0 4px #b8832f,inset 0 0 0 1px rgba(255,215,139,.16),inset 0 -10px 20px rgba(0,0,0,.42),0 5px 12px rgba(0,0,0,.35) !important;
}
.elf-skill-node.detail-selected{
  box-shadow:0 0 0 4px #e0aa47,0 0 14px rgba(255,177,59,.48),inset 0 0 0 1px rgba(255,238,185,.38),inset 0 -10px 20px rgba(0,0,0,.42) !important;
}
.elf-skill-node.has-dungeon-mechanic::before{display:none!important}

/* Moderne Hold-Rückmeldung: kein Füllbalken, sondern ein ruhiger Goldpuls. */
.elf-skill-node.holding{
  transform:scale(.985)!important;
  filter:none!important;
  animation:skillHoldNodePulse .72s ease-in-out infinite alternate;
}
.elf-skill-node.holding .elf-skill-icon img{
  opacity:.72;
  filter:saturate(.72) brightness(.86);
  transition:opacity .12s ease,filter .12s ease;
}
.elf-skill-node.holding::after{
  content:"";
  position:absolute;
  inset:-4px;
  z-index:3;
  pointer-events:none;
  border:2px solid rgba(255,205,104,.78);
  box-shadow:0 0 7px rgba(255,177,59,.38),inset 0 0 8px rgba(255,205,104,.12);
  animation:skillHoldFramePulse .52s ease-in-out infinite alternate;
}
@keyframes skillHoldNodePulse{
  from{filter:brightness(.94)}
  to{filter:brightness(1.13)}
}
@keyframes skillHoldFramePulse{
  from{opacity:.42;box-shadow:0 0 4px rgba(255,177,59,.22),inset 0 0 5px rgba(255,205,104,.08)}
  to{opacity:1;box-shadow:0 0 15px rgba(255,196,83,.72),inset 0 0 11px rgba(255,224,145,.22)}
}

/* Kurzer Abschlussblitz nach erfolgreicher Punktvergabe. */
.elf-skill-node.skill-invest-complete{
  animation:skillInvestComplete .34s ease-out both!important;
}
.elf-skill-node.skill-invest-complete::after{
  content:"";
  position:absolute;
  inset:-5px;
  z-index:4;
  pointer-events:none;
  border:2px solid rgba(255,239,177,.95);
  box-shadow:0 0 22px rgba(255,205,92,.95),inset 0 0 15px rgba(255,244,199,.42);
  animation:skillInvestCompleteFrame .34s ease-out both;
}
@keyframes skillInvestComplete{
  0%{transform:scale(.97);filter:brightness(.95)}
  42%{transform:scale(1.055);filter:brightness(1.48) saturate(1.18)}
  100%{transform:scale(1);filter:brightness(1)}
}
@keyframes skillInvestCompleteFrame{
  0%{opacity:0;transform:scale(.86)}
  38%{opacity:1;transform:scale(1.05)}
  100%{opacity:0;transform:scale(1.13)}
}
@media(max-width:520px){
  .elf-spec-choice{grid-template-columns:36px minmax(0,1fr);min-height:44px;gap:6px;padding:6px 7px}
  .elf-spec-choice-ultimate{width:32px;height:32px}
  .elf-spec-choice-copy{width:auto;height:32px}
  .elf-spec-choice-copy strong{font-size:10px}
  .elf-spec-choice-copy small{font-size:8px}
}


/* 2026-08-04: einheitliche Skilltree-Iconmaße – Auswahl-Ultimates und Knoten exakt 50 × 50 px */
.elf-spec-choice{
  grid-template-columns:54px minmax(0,1fr) !important;
  min-height:60px !important;
}
.elf-spec-choice-ultimate{
  width:50px !important;
  height:50px !important;
  flex:0 0 50px !important;
  box-sizing:border-box !important;
}
.elf-spec-choice-copy{
  height:50px !important;
}
.elf-skill-node,
.elf-skill-node.ultimate{
  width:50px !important;
  height:50px !important;
  min-width:50px !important;
  min-height:50px !important;
  box-sizing:border-box !important;
}
.elf-tree-row{min-height:64px !important;}
.elf-tree-nodes{gap:18px !important;}
.elf-tree-tier-1 .elf-tree-nodes{gap:24px !important;}
.elf-tree-tier-3 .elf-tree-nodes{gap:12px !important;}
.elf-tree-tier-4 .elf-tree-nodes{gap:20px !important;}
.elf-skill-rank{
  left:2px !important;
  right:2px !important;
  bottom:2px !important;
  font-size:9px !important;
  line-height:1 !important;
}
@media(max-width:520px){
  .elf-spec-choice{grid-template-columns:54px minmax(0,1fr) !important;min-height:60px !important;}
  .elf-spec-choice-ultimate{width:50px !important;height:50px !important;}
  .elf-spec-choice-copy{height:50px !important;}
  .elf-skill-node,.elf-skill-node.ultimate{width:50px !important;height:50px !important;min-width:50px !important;min-height:50px !important;}
  .elf-tree-row{min-height:64px !important;}
}


/* PvP-Ehre und Rangübersicht */
.compendium-pvp-placeholder{font-size:30px;line-height:1}
.pvp-rank-summary{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;border:1px solid rgba(201,166,94,.35);background:linear-gradient(135deg,rgba(201,166,94,.12),rgba(8,9,12,.78));margin:12px 0 8px}
.pvp-rank-summary-icon{width:54px;height:54px;display:grid;place-items:center;border:2px solid #b98c42;background:#100d09;font-size:31px}
.pvp-rank-summary div{display:grid;gap:3px}.pvp-rank-summary small{color:#9d927d;text-transform:uppercase;letter-spacing:.08em}.pvp-rank-summary strong{color:#f0d18a;font:700 18px/1.1 Georgia,serif}.pvp-rank-summary span{color:#d5c8aa}.pvp-summary-honor-number{font-family:"Courier New",Courier,monospace;font-weight:inherit;color:inherit}
.pvp-rank-progress{height:10px;border:1px solid rgba(201,166,94,.38);background:#08090b;overflow:hidden}.pvp-rank-progress i{display:block;height:100%;background:linear-gradient(90deg,#806025,#e1ba62)}
.pvp-rank-next{margin:5px 0 12px;text-align:right;color:#9f957f;font-size:11px}
.pvp-rank-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px;font-family:"Courier New",Courier,monospace}.pvp-rank-stats span{padding:7px;border:1px solid rgba(201,166,94,.2);background:rgba(8,9,12,.55);text-align:center;color:#aaa18e;font-size:10px;font-family:inherit}.pvp-rank-stats b{display:block;color:#eee0bd;font-size:13px;margin-top:2px;font-family:inherit}
.pvp-rank-list{display:grid;gap:4px;font-family:"Courier New",Courier,monospace}.pvp-rank-row{min-height:38px;display:grid;grid-template-columns:28px 58px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 9px;border:1px solid rgba(201,166,94,.14);background:rgba(8,9,12,.5);color:#807968;font-family:inherit}.pvp-rank-row.is-earned{color:#c9bea5}.pvp-rank-icon{font-size:20px;text-align:center}.pvp-rank-row b{font-size:10px;text-transform:uppercase;font-family:inherit}.pvp-rank-row strong{font-size:12px;color:inherit;font-family:inherit}.pvp-rank-row em{font-style:normal;font-size:10px;color:#9f9277;font-family:inherit}
@media(max-width:620px){.pvp-rank-stats{grid-template-columns:repeat(2,1fr)}.pvp-rank-row{grid-template-columns:26px 52px minmax(0,1fr);}.pvp-rank-row em{grid-column:3}}


/* PvP/Kompendium und Questgeber-Übersicht – Layout-Fix 2026-08-04 */
.compendium-category-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

/* Nur Ebene 1 der Questgeberübersicht: Portrait groß und bündig zum Textblock. */
.quest-npc-card{
  grid-template-columns:64px minmax(0,1fr) !important;
  min-height:88px !important;
  gap:12px !important;
}
.quest-npc-card .quest-npc-icon{
  width:64px !important;
  height:64px !important;
  align-self:center !important;
}
.quest-npc-card .quest-npc-icon .quest-portrait-img{
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  object-fit:cover !important;
  object-position:center top !important;
  display:block !important;
}
@media(max-width:620px){
  .compendium-category-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
  .compendium-category-card{min-height:112px !important;padding:10px 7px !important}
  .compendium-category-card strong{font-size:15px !important}
  .compendium-category-card small{font-size:10px !important}
  .quest-npc-card{grid-template-columns:56px minmax(0,1fr) !important;min-height:80px !important;gap:10px !important}
  .quest-npc-card .quest-npc-icon{width:56px !important;height:56px !important}
}


/* ===== Elf Skilltree Demo ===== */

.skilltree-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 0;
  border: 2px solid #72572b;
  background: radial-gradient(circle at top, rgba(255,235,160,.22), rgba(24,15,7,.98));
  color: #f7e8c8;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0,0,0,.58);
}

.skilltree-node span:first-child {
  font-size: 26px;
}

.skilltree-node-rank {
  position: absolute;
  right: -9px;
  bottom: -8px;
  min-width: 30px;
  height: 22px;
  border-radius: 999px;
  background: #140d06;
  border: 1px solid #c89b3c;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skilltree-node.is-selected {
  outline: 3px solid #fff2a8;
}

.skilltree-node.is-locked {
  opacity: .38;
  filter: grayscale(.7);
}

.skilltree-node.is-active {
  border-color: #f0c85a;
}

.skilltree-node.is-ultimate {
  width: 84px;
  height: 84px;
  border-radius: 0;
}

.skilltree-node.is-ultimate span:first-child {
  font-size: 34px;
}


/* Rare-Fund und zugehöriger Begleiter-Popup stehen im selben vertikalen UI-Stack. */

#rareDiscoveryOverlay > .rare-discovery-card{flex:0 0 auto;}
@media(max-width:720px){
  .rare-discovery-overlay{padding:10px;}
  
}

/* Begleiterbox: Effektzeile höher; nur Grauwolf und Braunbär im Hauptpanel größer. */
.ii-companion-v3>div{padding-bottom:34px!important;}
.ii-companion-v3 small{bottom:16px!important;}
.ii-companion-drachling small{white-space:nowrap!important;max-height:none!important;font-size:9px!important;letter-spacing:0!important;}
.ii-companion-grauwolf .ii-companion-pet-img-v3,
.ii-companion-braunbaer .ii-companion-pet-img-v3{
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
}

/* =========================================================
   LORHEIM ACCOUNT GATE V1
   Ausschließlich Courier für UI-Text; das Lorheim-Logo bleibt Bildmaterial.
   ========================================================= */
body.lorheim-auth-locked{overflow:hidden!important}
.lorheim-auth-gate{
  position:fixed;
  inset:0;
  z-index:300000;
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100dvh;
  padding:22px;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 18%,rgba(178,117,43,.16),transparent 32%),
    radial-gradient(circle at 15% 82%,rgba(112,56,20,.11),transparent 28%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.012) 0 1px,transparent 1px 6px),
    linear-gradient(180deg,#0b0907 0%,#050403 55%,#020202 100%);
  color:#e9d4ae;
  font-family:"Courier New",Courier,monospace;
  transition:opacity .24s ease,visibility .24s ease;
}
.lorheim-auth-gate[hidden]{display:none!important}
.lorheim-auth-gate.is-leaving{opacity:0;visibility:hidden}
.lorheim-auth-vignette{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,0,0,.72),transparent 22%,transparent 78%,rgba(0,0,0,.72)),
    linear-gradient(180deg,rgba(0,0,0,.34),transparent 24%,transparent 72%,rgba(0,0,0,.72));
  box-shadow:inset 0 0 180px rgba(0,0,0,.92);
}
.lorheim-auth-panel{
  position:relative;
  width:min(470px,calc(100vw - 28px));
  padding:24px 26px 20px;
  border:3px solid #6b4b27;
  outline:1px solid rgba(242,190,105,.42);
  outline-offset:-8px;
  background:
    radial-gradient(circle at 50% 0%,rgba(226,153,58,.14),transparent 31%),
    linear-gradient(145deg,rgba(31,23,16,.985),rgba(12,9,7,.99) 62%,rgba(5,4,3,.995));
  box-shadow:
    0 26px 80px rgba(0,0,0,.82),
    0 0 0 1px #100b07,
    inset 0 0 0 1px rgba(255,220,155,.12),
    inset 0 0 34px rgba(232,145,40,.04);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  font-family:"Courier New",Courier,monospace;
}
.lorheim-auth-panel::before,
.lorheim-auth-panel::after{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  height:1px;
  background:linear-gradient(90deg,transparent,#a97839,transparent);
  opacity:.7;
}
.lorheim-auth-panel::before{top:13px}
.lorheim-auth-panel::after{bottom:13px}
.lorheim-auth-brand{text-align:center;font-family:"Courier New",Courier,monospace}
.lorheim-auth-logo{
  display:block;
  width:min(330px,82%);
  max-height:128px;
  object-fit:contain;
  margin:0 auto 5px;
  image-rendering:auto;
  filter:drop-shadow(0 4px 2px rgba(0,0,0,.88)) drop-shadow(0 0 15px rgba(212,142,51,.15));
}
.lorheim-auth-kicker{
  margin:1px 0 7px;
  color:#c68c43;
  font:900 10px/1.2 "Courier New",Courier,monospace;
  letter-spacing:.31em;
  text-transform:uppercase;
}
.lorheim-auth-brand h1{
  margin:0 0 18px;
  color:#f0d39f;
  font:900 18px/1.15 "Courier New",Courier,monospace;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-shadow:0 2px 0 #000,0 0 12px rgba(221,153,63,.14);
}
.lorheim-auth-loading{
  min-height:196px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:14px;
  color:#c5a578;
  font:900 11px/1.4 "Courier New",Courier,monospace;
  letter-spacing:.08em;
  text-align:center;
}
.lorheim-auth-loading[hidden],.lorheim-auth-content[hidden],.lorheim-auth-form[hidden]{display:none!important}
.lorheim-auth-spinner{
  width:32px;
  height:32px;
  border:2px solid rgba(184,128,61,.24);
  border-top-color:#d79a4b;
  transform:rotate(45deg);
  animation:lorheim-auth-spin 1s linear infinite;
  box-shadow:0 0 14px rgba(215,154,75,.12);
}
@keyframes lorheim-auth-spin{to{transform:rotate(405deg)}}
.lorheim-auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-bottom:16px;
  padding:4px;
  border:1px solid #4b3621;
  background:#080604;
  box-shadow:inset 0 2px 9px rgba(0,0,0,.7);
}
.lorheim-auth-tab{
  min-height:38px;
  border:1px solid transparent;
  background:transparent;
  color:#8f7653;
  font:900 11px/1 "Courier New",Courier,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.lorheim-auth-tab:hover:not(:disabled){color:#e1c18e;background:rgba(166,105,42,.08)}
.lorheim-auth-tab.active{
  border-color:#76512a;
  background:linear-gradient(180deg,#342314,#171008);
  color:#f0cb8e;
  box-shadow:inset 0 0 0 1px rgba(255,210,135,.08),0 2px 8px rgba(0,0,0,.35);
}
.lorheim-auth-tab:disabled{color:#554736;cursor:not-allowed;opacity:.66}
/* Verification screen: keep original auth fonts, borders, and button styles. */
#lorheimForgotPasswordBtn{display:block;width:100%;height:auto;min-height:38px;margin:8px auto 4px;text-align:center}
#lorheimVerificationPanel{width:100%;margin:0;padding:0}
#lorheimVerificationPanel[hidden]{display:none!important}
#lorheimResendVerificationBtn{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0}
.lorheim-auth-form{display:grid;gap:13px;font-family:"Courier New",Courier,monospace}
.lorheim-auth-field{display:grid;gap:6px;font-family:"Courier New",Courier,monospace}
.lorheim-auth-field>span:first-child{
  color:#b7976a;
  font:900 10px/1.2 "Courier New",Courier,monospace;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.lorheim-auth-field input{
  width:100%;
  height:45px;
  box-sizing:border-box;
  border:2px solid #4f3922;
  outline:1px solid rgba(203,148,73,.11);
  outline-offset:-5px;
  border-radius:0;
  background:linear-gradient(180deg,#0d0a07,#080604);
  color:#f2debd;
  padding:10px 12px;
  font:700 14px/1 "Courier New",Courier,monospace;
  caret-color:#e3a653;
  box-shadow:inset 0 3px 9px rgba(0,0,0,.62);
}
.lorheim-auth-field input:-webkit-autofill,
.lorheim-auth-field input:-webkit-autofill:hover,
.lorheim-auth-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f2debd;
  -webkit-box-shadow:0 0 0 1000px #0b0806 inset;
  font-family:"Courier New",Courier,monospace;
}
.lorheim-auth-field input:focus{
  border-color:#aa7134;
  outline-color:rgba(245,190,101,.28);
  box-shadow:inset 0 3px 9px rgba(0,0,0,.62),0 0 13px rgba(211,137,48,.13);
}
.lorheim-auth-password-wrap{position:relative;display:block}
.lorheim-auth-password-wrap input{padding-right:90px}
.lorheim-auth-password-toggle{
  position:absolute;
  top:7px;
  right:7px;
  bottom:7px;
  width:76px;
  border:1px solid #5f4224;
  background:#171008;
  color:#c8a578;
  font:900 9px/1 "Courier New",Courier,monospace;
  letter-spacing:.04em;
  cursor:pointer;
}
.lorheim-auth-password-toggle{display:flex;align-items:center;justify-content:center;gap:3px;padding:0 2px}
.lorheim-auth-password-toggle::before{content:"";width:12px;height:12px;flex:0 0 12px;background:currentColor;mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat}
.lorheim-auth-password-toggle[aria-pressed="true"]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 3l18 18M10.6 5.1C11 5 11.5 5 12 5c6 0 10 7 10 7a18 18 0 0 1-3 3.7M6 6.7A18 18 0 0 0 2 12s4 7 10 7a10 10 0 0 0 4-.8'/%3E%3C/svg%3E")}
.lorheim-auth-password-toggle:hover{border-color:#95622f;color:#f0c98c}
.lorheim-auth-submit{
  min-height:48px;
  margin-top:2px;
  border:2px solid #9a682f;
  outline:1px solid rgba(255,210,127,.16);
  outline-offset:-5px;
  background:linear-gradient(180deg,#d69a49 0%,#9d5e26 48%,#5a3013 100%);
  color:#170c04;
  font:900 13px/1 "Courier New",Courier,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 1px rgba(255,225,168,.27);
  box-shadow:inset 0 1px rgba(255,236,192,.34),inset 0 -5px 9px rgba(0,0,0,.26),0 3px 0 #321b0b,0 8px 16px rgba(0,0,0,.3);
  cursor:pointer;
}
.lorheim-auth-submit:hover:not(:disabled){filter:brightness(1.08)}
.lorheim-auth-submit:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px rgba(255,236,192,.25),inset 0 -3px 8px rgba(0,0,0,.3),0 1px 0 #321b0b}
.lorheim-auth-gate.is-busy .lorheim-auth-submit,.lorheim-auth-submit:disabled{filter:grayscale(.35);opacity:.62;cursor:wait}
.lorheim-auth-status{
  margin:13px 0 0;
  padding:9px 10px;
  border:1px solid #5a452c;
  background:rgba(0,0,0,.28);
  color:#d0b286;
  font:900 10px/1.45 "Courier New",Courier,monospace;
  letter-spacing:.035em;
  text-align:center;
  text-transform:uppercase;
}
.lorheim-auth-status[data-type="error"]{border-color:#783735;background:rgba(83,20,18,.28);color:#f0a29a}
.lorheim-auth-status[data-type="success"]{border-color:#4f7040;background:rgba(31,72,23,.24);color:#b9dba2}
.lorheim-auth-registration-note{
  margin:13px 3px 0;
  color:#76644c;
  font:700 9px/1.5 "Courier New",Courier,monospace;
  letter-spacing:.045em;
  text-align:center;
  text-transform:uppercase;
}
.lorheim-auth-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
  padding-top:12px;
  border-top:1px solid rgba(129,89,43,.42);
  color:#6f5c44;
  font:900 8px/1.3 "Courier New",Courier,monospace;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
}
.lorheim-account-summary{
  display:grid;
  gap:5px;
  margin-bottom:10px;
  padding:10px 11px;
  border:1px solid #4d3823;
  background:rgba(0,0,0,.24);
  font-family:"Courier New",Courier,monospace;
}
.lorheim-account-summary span{color:#9f815b;font:900 9px/1.2 "Courier New",Courier,monospace;letter-spacing:.08em}
.lorheim-account-summary strong{overflow:hidden;color:#efd2a1;font:700 12px/1.35 "Courier New",Courier,monospace;text-overflow:ellipsis;white-space:nowrap}
.lorheim-logout-button{border-color:#7c3d34!important;background:linear-gradient(180deg,#7f4338,#4a251f 52%,#24110f)!important;color:#f4c0b4!important}
@media(max-width:560px){
  .lorheim-auth-gate{padding:10px}
  .lorheim-auth-panel{width:min(100%,430px);padding:19px 17px 17px;outline-offset:-6px}
  .lorheim-auth-logo{width:min(300px,88%);max-height:108px}
  .lorheim-auth-brand h1{font-size:15px;margin-bottom:14px}
  .lorheim-auth-tabs{margin-bottom:13px}
  .lorheim-auth-field input{height:44px;font-size:13px}
  .lorheim-auth-footer{gap:6px;font-size:7px}
}
@media(max-height:650px) and (min-width:561px){
  .lorheim-auth-gate{align-items:start;padding-top:12px;padding-bottom:12px}
  .lorheim-auth-panel{padding-top:17px;padding-bottom:15px}
  .lorheim-auth-logo{max-height:88px}
  .lorheim-auth-brand h1{margin-bottom:12px}
  .lorheim-auth-form{gap:9px}
  .lorheim-auth-field input{height:40px}
  .lorheim-auth-submit{min-height:42px}
  .lorheim-auth-footer{margin-top:12px;padding-top:9px}
}

/* 2026-08-06: Einheitliche kleine Systemicons in Weltkampf-/AFK-Berichten und am Brunnen. */
.combat-report-icon,
.offline-report-body .combat-report-icon,
#combatReportText .combat-report-icon{
  width:16px;
  height:16px;
  display:inline-block;
  flex:0 0 16px;
  margin-right:4px;
  vertical-align:-3px;
  object-fit:contain;
  image-rendering:pixelated;
}
.well-result-icon{
  width:18px;
  height:18px;
  display:inline-block;
  flex:0 0 18px;
  margin-right:5px;
  vertical-align:-4px;
  object-fit:contain;
  image-rendering:pixelated;
}

/* Multiplayer-Lobby V2: 3 Spieler + Dungeon-Reise + Gruppenleiste */
.lobby-layout{grid-template-rows:190px 430px;}
.multiplayer-dungeon-travel{
  position:fixed;
  inset:0;
  z-index:10050;
  display:grid;
  place-items:center;
  background:rgba(5,4,3,.94);
  backdrop-filter:blur(2px);
}
.multiplayer-dungeon-travel-box{
  min-width:min(420px,calc(100vw - 32px));
  min-height:190px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:18px;
  border:2px solid #5d462b;
  outline:1px solid rgba(213,151,73,.24);
  outline-offset:-7px;
  background:linear-gradient(145deg,#15110e,#080604 72%,#020101);
  box-shadow:0 18px 44px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,215,139,.08);
  color:#f0d39f;
  font:900 13px/1.3 "Courier New",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.multiplayer-dungeon-party{
  width:100%;
  display:grid;
  grid-template-columns:repeat(var(--party-count,2),minmax(0,1fr));
  gap:8px;
  margin:0 0 12px;
}
.multiplayer-dungeon-player{
  min-width:0;
  min-height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #5d462b;
  background:linear-gradient(180deg,rgba(34,27,18,.82),rgba(8,7,6,.76));
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.06);
}
.multiplayer-dungeon-player-role{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid #5d462b;
  background:rgba(0,0,0,.28);
  font-size:18px;
}
.multiplayer-dungeon-player-copy{min-width:0;display:grid;gap:3px;}
.multiplayer-dungeon-player-copy strong{color:#f4d69c;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.multiplayer-dungeon-player-copy span{color:#c6a06f;font:11px/1.25 "Courier New",monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:520px){
  .multiplayer-dungeon-party{gap:5px;}
  .multiplayer-dungeon-player{padding:6px;gap:6px;min-height:54px;}
  .multiplayer-dungeon-player-role{width:28px;height:28px;flex-basis:28px;font-size:15px;}
  .multiplayer-dungeon-player-copy strong{font-size:11px;}
  .multiplayer-dungeon-player-copy span{font-size:9px;}
}


/* Lobby V3 – öffentliche Spiele, Portraits und saubere 3er-Darstellung */
.lobby-menu-actions{grid-template-columns:repeat(3,1fr);}
.lobby-search-config{display:none;border:1px solid #3b2a18;background:rgba(0,0,0,.18);padding:8px;gap:8px;}
.lobby-search-config.active{display:grid;}
.lobby-search-config label,.lobby-search-filter-title{color:#f4d69c;font:bold 11px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;}
.lobby-search-config>input{min-width:0;border:1px solid #5d462b;background:#0b0806;color:#f4ead1;padding:8px 9px;font:12px/1.2 "Courier New",monospace;outline:none;}
.lobby-search-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:118px;overflow:auto;padding:5px;border:1px solid #3b2a18;background:rgba(0,0,0,.2);}
.lobby-search-filter{display:flex!important;align-items:center;gap:6px;margin:0!important;color:#c6a06f!important;text-transform:none!important;letter-spacing:0!important;font-size:10px!important;cursor:pointer;}
.lobby-search-filter input{accent-color:#8a622f;}
.lobby-slot-avatar{overflow:hidden;padding:0;position:relative;}
.lobby-portrait-img{width:100%;height:100%;object-fit:cover;display:block;}
.lobby-portrait-fallback{width:100%;height:100%;place-items:center;color:#f4d69c;font-weight:900;font-size:14px;}
.lobby-empty-mark{color:#8f7959;font-size:19px;}
.lobby-action-row{grid-template-columns:1fr 1fr 1fr;}
.lobby-leave-btn{width:100%;}
.lobby-public-card{display:grid;grid-template-columns:52px minmax(0,1fr) 66px;align-items:center;gap:10px;min-height:82px;}
.lobby-public-card:disabled{cursor:not-allowed;opacity:.72;}
.lobby-public-zone-icon{width:46px;height:46px;border:1px solid #5d462b;background:rgba(0,0,0,.34);display:grid;place-items:center;overflow:hidden;}
.lobby-public-zone-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.lobby-public-copy{min-width:0;display:grid;gap:2px;}
.lobby-public-copy strong{margin:0!important;}
.lobby-public-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lobby-public-code{opacity:.65;font-size:9px!important;letter-spacing:.06em;}
.lobby-public-capacity{display:grid;justify-items:end;gap:4px;text-align:right;}
.lobby-public-capacity b{color:#f4d69c;font-size:13px;}
.lobby-public-capacity em{font-style:normal;color:#8fd18f;font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.06em;}
.lobby-public-card.full .lobby-public-capacity em{color:#cf9b62;}
.multiplayer-dungeon-party{margin:10px 0 14px;}
.multiplayer-dungeon-player-avatar{width:46px;height:46px;flex:0 0 46px;border:1px solid #5d462b;background:rgba(0,0,0,.32);display:grid;place-items:center;overflow:hidden;}
.multiplayer-dungeon-player-portrait{width:100%;height:100%;object-fit:cover;display:block;}
.multiplayer-dungeon-player-fallback{width:100%;height:100%;place-items:center;color:#f4d69c;font-weight:900;}
@media (max-width:520px){.lobby-menu-actions,.lobby-action-row{grid-template-columns:1fr;}.lobby-search-filters{grid-template-columns:1fr;}.lobby-public-card{grid-template-columns:42px minmax(0,1fr) 56px;}.lobby-public-zone-icon{width:38px;height:38px;}.multiplayer-dungeon-player-avatar{width:34px;height:34px;flex-basis:34px;}}
/* Lobby V3 darf beim Öffnen der Suche vertikal wachsen, ohne Inhalte abzuschneiden. */
.lobby-layout{grid-template-rows:auto 430px;}
@media (max-width:980px){.lobby-layout{grid-template-rows:auto auto 420px;}}

/* Multiplayer Dungeon – uses existing Lorheim dungeon surfaces. */
.dungeon-report-player{display:inline-flex;align-items:center;gap:6px;margin-right:4px;vertical-align:middle;white-space:nowrap;color:#f3d59b;}
.dungeon-report-player-portrait{width:22px;height:22px;object-fit:cover;border:1px solid #6c4e2c;background:#120d08;vertical-align:middle;}
.multiplayer-dungeon-start-btn,.multiplayer-dungeon-confirm-btn{margin-top:12px;width:100%;}

/* Lobby: only the inner panels carry a frame. */
.lobby-page-shell{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;}

/* ============================================================
   ORDEN V1 · Kirche / Ordenshalle / serverautoritatives UI
   2026-08-11 — isolierte Ergänzungen, bestehende Systeme unberührt
   ============================================================ */
.church-section-tabs{
  margin-top:0;
  margin-bottom:12px;
}
.church-section-tabs .tab-btn{
  font-family:Georgia,"Times New Roman",serif;
}
.church-section-panel[hidden]{display:none !important;}
.church-shrine-placeholder-v1{min-height:1px;}

.order-layout-v1{
  display:grid;
  grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);
  gap:10px;
}
.order-crest-panel-v1,
.order-members-panel-v1,
.order-summary-panel-v1{
  position:relative;
  min-width:0;
  border:2px solid #6f5535;
  outline:1px solid rgba(213,151,73,.35);
  outline-offset:-5px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.16),inset 0 0 0 4px rgba(6,5,4,.72),0 6px 14px rgba(0,0,0,.38);
}
.order-crest-panel-v1{
  min-height:218px;
  padding:10px 11px 10px;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.order-crest-stage-v1{
  min-height:160px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.order-crest-stage-v1 img{
  display:block;
  width:168px;
  height:168px;
  max-width:84%;
  object-fit:contain;
  image-rendering:auto;
  opacity:1;
  visibility:visible;
  filter:none;
  transition:width .18s ease,height .18s ease,max-width .18s ease;
}
.order-crest-panel-v1.has-order{
  grid-template-rows:1fr;
  min-height:218px;
}
.order-crest-panel-v1.has-order .order-crest-stage-v1{min-height:196px;}
.order-crest-panel-v1.has-order .order-crest-stage-v1 img{
  width:214px;
  height:214px;
  max-width:92%;
}
.order-create-button-v1{
  width:100%;
  margin:0;
  min-height:38px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  letter-spacing:.07em;
}
.order-settings-button-v1{
  position:absolute;
  z-index:4;
  top:9px;
  right:9px;
  width:30px;
  height:30px;
  padding:0;
  display:grid;
  place-items:center;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer;
  opacity:.86;
}
.order-settings-button-v1:hover,
.order-settings-button-v1:focus-visible{opacity:1;transform:scale(1.05);filter:none!important;}
.order-settings-button-v1 img{display:block;width:27px;height:27px;object-fit:contain;image-rendering:pixelated;filter:none!important;opacity:1!important;visibility:visible!important;}

.order-members-panel-v1{
  min-height:218px;
  padding:9px 10px 10px;
  overflow:hidden;
}
.order-members-head-v1{
  height:27px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 4px 5px;
  border-bottom:1px solid rgba(201,166,94,.24);
  color:#d7c49a;
  font:700 10px/1.1 "Courier New",monospace;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.order-members-head-v1 strong{font:700 14px/1 Georgia,"Times New Roman",serif;color:#f5d59b;letter-spacing:.04em;}
.order-members-head-v1 span{white-space:nowrap;color:#b49161;}
.order-members-list-v1{
  display:grid;
  gap:3px;
  margin-top:6px;
  max-height:170px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#6f5535 #090706;
}
.order-member-row{
  height:25px;
  min-height:25px;
  display:grid;
  grid-template-columns:16px minmax(68px,1fr) 47px 58px 58px;
  align-items:center;
  gap:6px;
  padding:0 5px;
  border:1px solid rgba(201,166,94,.15);
  background:rgba(8,9,12,.58);
  font:600 10px/1 "Courier New",monospace;
  color:#bdb59f;
  overflow:hidden;
  transition:opacity .12s ease,border-color .12s ease,background .12s ease;
}
.order-member-row.faction-blue{
  border-color:#315f91;
  background:linear-gradient(90deg,rgba(50,116,187,.16),rgba(8,9,12,.58) 58%);
}
.order-member-row.faction-red{
  border-color:#8d3c34;
  background:linear-gradient(90deg,rgba(183,62,45,.16),rgba(8,9,12,.58) 58%);
}
.order-member-row.offline{opacity:.48;}
.order-member-row.online{opacity:1;}
.order-member-avatar{
  position:relative;
  width:16px;
  height:16px;
  display:block;
  overflow:visible;
  border:1px solid rgba(201,166,94,.45);
  border-radius:2px;
  background:#08090b;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.45);
}
.order-member-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
.order-online-dot{
  position:absolute;
  width:5px;
  height:5px;
  right:-3px;
  bottom:-2px;
  border:1px solid #060504;
  background:#6a8f51;
  box-shadow:0 0 4px rgba(106,143,81,.65);
  display:none;
}
.order-member-row.online .order-online-dot{display:block;}
.order-member-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee0bd;font-size:11px;}
.order-members-empty{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px;
  border:1px dashed rgba(201,166,94,.17);
  color:#807867;
  text-align:center;
  font:600 10px/1.25 "Courier New",monospace;
}

.order-summary-panel-v1{
  grid-column:1/-1;
  min-height:150px;
  padding:16px 17px 14px;
}
.order-summary-panel-v1 h3{
  margin:0;
  color:#f5d59b;
  font:700 25px/1.1 Georgia,"Times New Roman",serif;
  letter-spacing:.045em;
  text-shadow:0 2px 0 #000;
}
.order-summary-divider-v1{
  height:1px;
  margin:9px 0 11px;
  background:linear-gradient(90deg,rgba(213,151,73,.65),rgba(213,151,73,.12));
  box-shadow:0 1px 0 rgba(0,0,0,.65);
}
.order-summary-panel-v1 p{
  min-height:52px;
  margin:0 0 12px;
  color:#c6a06f;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:12px/1.5 "Courier New",monospace;
}
.order-summary-panel-v1 a{
  color:#8fba72;
  font:700 11px/1.3 "Courier New",monospace;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.order-summary-panel-v1 a::before{content:"COMMUNITY-LINK: ";color:#b49161;}
.order-summary-panel-v1 a:hover{text-decoration:underline;color:#b9d99f;}

/* Ordensfenster: absichtlich kompakt, exakt Lorheim-Farbwelt. */
.order-modal-overlay{
  position:fixed;
  inset:0;
  z-index:100120;
  display:none;
  place-items:center;
  padding:16px;
  background:radial-gradient(circle at 50% 12%,rgba(120,74,22,.28),transparent 32rem),rgba(0,0,0,.86);
}
.order-modal-overlay.open{display:grid;}
.order-modal-box{
  position:relative;
  width:min(380px,94vw);
  max-height:min(86vh,760px);
  overflow:auto;
  padding:17px 17px 15px;
  border:3px solid #5d462b;
  outline:1px solid rgba(213,151,73,.36);
  outline-offset:-6px;
  background:radial-gradient(circle at 18% 12%,rgba(255,191,92,.09),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 70%,#050403);
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.13),inset 0 0 0 4px rgba(6,5,4,.72),0 24px 70px rgba(0,0,0,.88);
  scrollbar-width:thin;
  scrollbar-color:#6f5535 #090706;
}
.order-modal-box.order-modal-compact{width:min(350px,94vw);}
.order-modal-box.order-modal-wide{width:min(620px,96vw);}
.order-modal-box.order-modal-invite{width:min(365px,94vw);text-align:center;}

.order-modal-close{
  position:absolute;
  z-index:12;
  right:-14px;
  top:-14px;
}

.order-modal-title,
.order-invite-name{
  margin:0 30px 14px 0;
  color:#f5d59b;
  font:700 21px/1.15 Georgia,"Times New Roman",serif;
  letter-spacing:.045em;
  text-shadow:0 2px 0 #000;
}
.order-modal-invite .order-invite-name{margin:3px 0 9px;text-align:center;font-size:22px;}
.order-field{
  display:grid;
  gap:5px;
  margin:0 0 11px;
  color:#c6a06f;
  font:700 10px/1.2 "Courier New",monospace;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.order-field small{font-size:9px;color:#807867;text-transform:none;letter-spacing:0;}
.order-field input,
.order-field select,
.order-field textarea{
  width:100%;
  box-sizing:border-box;
  padding:8px 9px;
  border:1px solid #5d462b;
  outline:1px solid rgba(213,151,73,.12);
  outline-offset:-3px;
  background:#090706;
  color:#e8d2b0;
  font:12px/1.35 "Courier New",monospace;
}
.order-field textarea{resize:vertical;min-height:62px;}
.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus{border-color:#b37a2a;outline-color:rgba(213,151,73,.28);}
.order-emblem-grid{
  display:grid;
  grid-template-columns:repeat(5,96px);
  justify-content:center;
  gap:7px;
  max-height:323px;
  overflow:auto;
  padding:6px;
  border:1px solid rgba(111,85,53,.52);
  background:rgba(5,4,3,.45);
  scrollbar-width:thin;
  scrollbar-color:#6f5535 #090706;
}
.order-emblem-choice{
  width:96px;
  height:96px;
  min-width:96px;
  min-height:96px;
  padding:0;
  overflow:hidden;
  border:2px solid #4d3b27;
  outline:1px solid rgba(213,151,73,.10);
  outline-offset:-4px;
  background:radial-gradient(circle at 50% 30%,rgba(255,191,92,.08),transparent 52%),#080706;
  cursor:pointer;
}
.order-emblem-choice:hover{border-color:#9a7139;filter:brightness(1.08);}
.order-emblem-choice.selected{border-color:#d19a49;box-shadow:0 0 9px rgba(255,177,59,.30),inset 0 0 0 1px rgba(255,222,150,.16);}
.order-emblem-choice img{display:block;width:96px;height:96px;object-fit:contain;image-rendering:auto;opacity:1;visibility:visible;filter:none;}
.order-modal-actions,
.order-invite-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:12px;
}
.order-modal-actions .button,
.order-invite-actions .button{min-width:112px;font-size:11px;font-family:Georgia,"Times New Roman",serif;}
.order-settings-list{display:grid;gap:6px;}
.order-settings-list .button{width:100%;min-height:34px;margin:0;font-size:11px;font-family:Georgia,"Times New Roman",serif;}
.order-modal-status{
  min-height:14px;
  margin:9px 0 0;
  color:#c6a06f;
  text-align:center;
  font:10px/1.35 "Courier New",monospace;
}
.order-invite-emblem{display:grid;place-items:center;margin:2px 0 0;}
.order-invite-emblem img{display:block;width:112px;height:112px;object-fit:contain;opacity:1;visibility:visible;filter:none;}
.order-invite-text{
  margin:0 auto 12px;
  max-width:310px;
  color:#c6a06f;
  text-align:center;
  font:12px/1.5 "Courier New",monospace;
}
.order-invite-text strong{color:#e8d2b0;font:700 12px/1.5 "Courier New",monospace;}
.order-toast-v1{
  position:fixed;
  z-index:100140;
  left:50%;
  bottom:74px;
  transform:translate(-50%,12px);
  opacity:0;
  pointer-events:none;
  padding:7px 11px;
  border:1px solid #6f5535;
  background:rgba(10,8,6,.96);
  color:#e8d2b0;
  font:10px/1.3 "Courier New",monospace;
  box-shadow:0 7px 20px rgba(0,0,0,.55);
  transition:opacity .15s ease,transform .15s ease;
}
.order-toast-v1.show{opacity:1;transform:translate(-50%,0);}
.order-toast-v1.error{border-color:#8d3c34;color:#f1c2b7;}


.order-rank-help{margin:0 0 10px;color:#9e8a70;font:10px/1.45 "Courier New",monospace;}
.order-rank-list{display:grid;gap:7px;}
.order-rank-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px;border:1px solid rgba(111,85,53,.58);background:rgba(5,4,3,.42);}
.order-rank-member{display:grid;gap:2px;min-width:0;text-align:left;}
.order-rank-member strong{overflow:hidden;text-overflow:ellipsis;color:#e8d2b0;font:700 12px/1.25 Georgia,"Times New Roman",serif;}
.order-rank-member span{color:#9e8a70;font:9px/1.2 "Courier New",monospace;text-transform:uppercase;}
.order-rank-action{flex:0 0 auto;min-width:104px!important;margin:0!important;font-size:9px!important;}

/* Post-Button im bestehenden Lorheim-Schnellmenü. */
#orderMailButton{
  position:relative !important;
  padding:0 !important;
  overflow:visible !important;
}
#orderMailButton > .system-hud-icon{
  position:absolute!important;
  inset:0!important;
  z-index:1;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  image-rendering:pixelated;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
  margin:0!important;
  filter:none!important;
}
.order-mail-badge{
  position:absolute;
  z-index:8;
  top:-5px;
  right:-5px;
  min-width:15px;
  height:15px;
  padding:0 3px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7b86b;
  background:#7a211b;
  color:#fff0d5;
  box-shadow:0 2px 5px rgba(0,0,0,.7);
  font:700 9px/1 "Courier New",monospace;
}

/* Inventar-Kopf: kompakter, ohne bestehende Inventarfunktionen anzutasten. */
#inventoryView .character-card{
  grid-template-columns:86px minmax(0,1fr) !important;
  gap:9px !important;
  align-items:start !important;
  padding:9px 10px !important;
  margin-bottom:10px !important;
}
#inventoryView .character-avatar{
  width:78px !important;
  height:98px !important;
  align-self:start !important;
}
#inventoryView .character-avatar img{
  width:auto !important;
  height:104% !important;
  max-width:126% !important;
  max-height:104% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
}
#inventoryView .character-name{
  position:relative;
  top:-20px;
  margin:1px 0 -17px;
  color:#f5d59b;
  font:700 19px/1.1 Georgia,"Times New Roman",serif;
  letter-spacing:.025em;
  text-shadow:0 2px #000;
}
#inventoryView .character-identity-line{
  display:flex;
  flex-wrap:wrap;
  gap:3px 12px;
  margin:0 0 4px;
  color:#9e825b;
  font:10px/1.3 "Courier New",monospace;
}
#inventoryView .character-identity-line b{color:#d8c39e;font-weight:700;}
#inventoryView .character-details,
#inventoryView .character-bonus{font-size:10px;line-height:1.28;margin-top:2px;}
#inventoryView .char-xp-panel{
  margin:6px 0 6px;
  padding:6px 7px;
  border-width:1px;
  outline-offset:-3px;
}
#inventoryView .char-xp-panel .bar-label{font-size:9px;}
#inventoryView .char-xp-panel .progress-shell{height:8px;}
#inventoryView .derived-stats{margin-top:4px;font-size:9px;line-height:1.25;gap:1px;}
#inventoryView .status-point-button{min-height:27px;margin-top:5px;padding:5px 7px;font-size:9px;}
#inventoryView .attribute-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;
  margin:5px 0 0;
}
#inventoryView .attribute-tile{padding:4px 3px;}
#inventoryView .attribute-tile strong{font-size:8px;margin-bottom:1px;}
#inventoryView .attribute-tile span{font-size:11px;}
#inventoryView .stat-grid{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  margin-top:0;
}
#inventoryView .stat-tile{
  min-width:0;
  padding:5px 6px;
  border:1px solid rgba(255,181,62,.18);
  background:rgba(0,0,0,.20);
  color:#a88c63;
  font:9px/1.25 "Courier New",monospace;
  overflow:hidden;
}
#inventoryView .stat-tile strong{display:block;margin-bottom:2px;color:#d8c39e;font-size:9px;}
#inventoryView .stat-tile > span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

@media(max-width:720px){
  .order-layout-v1{grid-template-columns:1fr;}
  .order-summary-panel-v1{grid-column:1;}
  .order-crest-panel-v1,.order-members-panel-v1{min-height:190px;}
  .order-crest-stage-v1{min-height:138px;}
  .order-crest-stage-v1 img{width:146px;height:146px;}
  .order-crest-panel-v1.has-order .order-crest-stage-v1{min-height:172px;}
  .order-crest-panel-v1.has-order .order-crest-stage-v1 img{width:182px;height:182px;}
  .order-member-row{grid-template-columns:16px minmax(62px,1fr) 42px 50px 50px;gap:4px;padding:0 4px;font-size:9px;}
  .order-member-name{font-size:10px;}
  .order-emblem-grid{grid-template-columns:repeat(4,96px);}
  #inventoryView .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:470px){
  .order-modal-box.order-modal-wide{width:min(430px,96vw);}
  .order-emblem-grid{grid-template-columns:repeat(3,96px);}
  #inventoryView .character-card{grid-template-columns:70px minmax(0,1fr) !important;padding:8px !important;gap:7px !important;}
  #inventoryView .character-avatar{width:64px !important;height:82px !important;}
  #inventoryView .character-name{font-size:17px;}
  #inventoryView .attribute-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;}
  #inventoryView .attribute-tile{padding:3px 1px;}
  #inventoryView .attribute-tile strong{font-size:7px;}
  #inventoryView .attribute-tile span{font-size:10px;}
}
@media(max-width:360px){
  .order-emblem-grid{grid-template-columns:repeat(2,96px);}
}
.order-mail-badge[hidden]{display:none !important;}

/* ============================================================
   POST V1 · persistente Nachrichten / Gegenstände / Einladungen
   Verwendet exakt die Ordens-Popover- und Lorheim-Button-Sprache.
   ============================================================ */
.mailbox-modal-box{font-family:"Courier New",monospace;}
.mailbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.mailbox-head .order-modal-title{margin-bottom:0;}
.mailbox-compose-button{width:auto!important;min-width:168px;margin:0!important;padding:8px 11px!important;font-size:10px!important;}
.mailbox-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 9px;border-bottom:1px solid rgba(201,166,94,.22);padding-bottom:7px;}
.mailbox-tab{min-height:31px;border:1px solid #5d462b;background:#090706;color:#b49161;cursor:pointer;font:700 10px/1 "Courier New",monospace;text-transform:uppercase;letter-spacing:.05em;}
.mailbox-tab span{color:#f5d59b;}
.mailbox-tab.active{border-color:#b37a2a;background:rgba(213,151,73,.12);color:#f5d59b;box-shadow:inset 0 0 0 1px rgba(255,222,150,.08);}
.mailbox-list{display:grid;gap:5px;max-height:430px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#6f5535 #090706;}
.mailbox-row{width:100%;min-height:53px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border:1px solid #3f3020;background:linear-gradient(180deg,rgba(24,19,14,.78),rgba(8,7,6,.72));color:#c6a06f;text-align:left;cursor:pointer;font-family:"Courier New",monospace;}
.mailbox-row:hover{border-color:#7b5c35;background:linear-gradient(180deg,rgba(37,28,19,.85),rgba(10,8,6,.78));}
.mailbox-row.unread{border-color:#8a622f;box-shadow:inset 3px 0 0 #c18a42;}
.mailbox-row-icon,.mailbox-row-letter{width:34px;height:34px;display:grid;place-items:center;border:1px solid #5d462b;background:#080706;color:#f5d59b;font:700 18px/1 Georgia,"Times New Roman",serif;overflow:hidden;}
.mailbox-row-icon img,.mailbox-row-letter img{width:100%;height:100%;object-fit:contain;display:block;filter:none;}
.mailbox-row-main{min-width:0;display:grid;gap:4px;}
.mailbox-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5d59b;font:700 12px/1.15 Georgia,"Times New Roman",serif;letter-spacing:.02em;}
.mailbox-row-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a58b68;font:10px/1.25 "Courier New",monospace;}
.mailbox-row-time,.mailbox-row-mark{color:#8f7655;white-space:nowrap;font:700 9px/1.2 "Courier New",monospace;}
.mailbox-row-mark{color:#d7b86b;}
.mailbox-modal-box .mailbox-show-all{
  display:block;
  width:max-content;
  min-width:0;
  margin:10px auto 2px;
  padding:3px 8px;
  border:0;
  background:transparent;
  box-shadow:none;
  color:#9c886d;
  font:normal 10px/1.4 "Courier New",monospace;
  letter-spacing:0;
  text-transform:none;
  text-decoration:underline;
  text-decoration-color:rgba(156,136,109,.5);
  text-underline-offset:3px;
  cursor:pointer;
}
.mailbox-modal-box .mailbox-show-all:hover,
.mailbox-modal-box .mailbox-show-all:focus-visible{
  background:transparent;
  box-shadow:none;
  color:#dac19b;
  text-decoration-color:currentColor;
}
.mailbox-modal-box .mailbox-show-all:disabled{opacity:.5;cursor:default;}
.mailbox-empty{min-height:92px;display:grid;place-items:center;border:1px dashed rgba(111,85,53,.55);color:#807867;text-align:center;font:10px/1.4 "Courier New",monospace;}
.mailbox-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #4a3824;background:rgba(0,0,0,.25);}
.mailbox-detail-meta strong{color:#f5d59b;font:700 13px/1.2 Georgia,"Times New Roman",serif;}
.mailbox-detail-meta span{color:#8f7655;font:9px/1.2 "Courier New",monospace;}
.mailbox-detail-body{min-height:95px;margin-top:8px;padding:11px;border:1px solid #4a3824;background:#090706;color:#d2b78e;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 "Courier New",monospace;}
.mailbox-muted{color:#807867;}
.mailbox-item-fallback{color:#d7b86b;font:700 8px/1 "Courier New",monospace;}
.mailbox-detail-actions{flex-wrap:wrap;}
.mailbox-detail-actions .button{width:auto;min-width:120px;margin-top:0;}
#orderMailButton.has-mail{border-color:#c18a42!important;box-shadow:0 0 0 1px rgba(255,221,145,.20),0 0 12px rgba(255,177,59,.34)!important;}
@media(max-width:640px){
  .mailbox-head{align-items:stretch;flex-direction:column;}
  .mailbox-compose-button{width:100%!important;}
  .mailbox-row{grid-template-columns:34px minmax(0,1fr);}
  .mailbox-row-time,.mailbox-row-mark{grid-column:2;justify-self:start;}
  .mailbox-detail-meta{align-items:flex-start;flex-direction:column;}
}



/* ============================================================
   ORDENS UI V3 · shared Lorheim controls + exact asset rendering
   ============================================================ */
/* Zahnrad: rahmenlos, keine zusätzliche Bearbeitung/Opacity. */
.order-settings-button-v1{
  width:32px!important;height:32px!important;padding:0!important;
  border:0!important;outline:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;opacity:1!important;transform:none!important;
}
.order-settings-button-v1:hover,.order-settings-button-v1:focus-visible{
  border:0!important;outline:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;opacity:1!important;transform:none!important;
}
.order-settings-button-v1 > img{
  width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;
  display:block!important;object-fit:contain!important;image-rendering:auto!important;
  border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;
  filter:none!important;opacity:1!important;transform:none!important;
}
/* Order/Post benutzen exakt den bereits bestehenden Optionsmenü-Schließen-Button. */
.order-modal-box > .order-shared-close{z-index:60!important;}
/* Bilder niemals cover-croppen: echte PNG-Datei vollständig zeigen. */
#orderMailButton > .system-hud-icon{
  width:30px!important;height:30px!important;inset:4px!important;
  max-width:30px!important;max-height:30px!important;object-fit:contain!important;
  image-rendering:auto!important;filter:none!important;background:transparent!important;
}
.order-crest-stage-v1 img,.order-emblem-choice img{
  object-fit:contain!important;image-rendering:auto!important;filter:none!important;
  opacity:1!important;visibility:visible!important;
}



/* ============================================================
   ORDENS UI V5 · CLOSE + SETTINGS ICON FINAL
   Scoped only to Orden/Post modals and Ordens settings control.
   ============================================================ */

/* Ordens-/Post-X: Position innerhalb des Panels. */
.order-modal-box > .order-shared-close{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  left:auto!important;
  bottom:auto!important;
  overflow:visible!important;
  z-index:80!important;
}



/* Ordens-Zahnrad: eigenes img ohne globale .nav-icon-img-Regeln. 40% kleiner als vorher. */
.order-settings-button-v1{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  cursor:pointer!important;
  overflow:visible!important;
  z-index:8!important;
}
.order-settings-button-v1:hover,
.order-settings-button-v1:focus-visible{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
}
.order-settings-button-v1 > .order-settings-icon-v1{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  max-width:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  image-rendering:auto!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:none!important;
}

/* ORDER SHRINE V1 · compact two-panel Lorheim church style */
#churchShrinePanel{padding-top:8px}.shrine-layout-v1{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shrine-panel-v1{min-width:0}.shrine-personal-status{margin:8px 0;color:#d8c29b;font:700 11px/1.35 "Courier New",monospace}.shrine-resource-row{position:relative;display:grid;grid-template-columns:1fr auto;gap:3px 8px;width:100%;margin:7px 0;padding:6px 7px;border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.18);color:#e8d4b4;text-align:left;cursor:pointer;font:700 11px/1.2 "Courier New",monospace}.shrine-resource-row:disabled{cursor:default;opacity:1}.shrine-resource-row .progress-shell{grid-column:1/-1;height:7px}.shrine-progress{height:100%}.shrine-resource-label{color:#f0c982}.shrine-resource-values{color:#cdb58e}.shrine-tooltip{display:none;position:absolute;z-index:15;left:10px;bottom:calc(100% + 5px);padding:6px 8px;border:1px solid rgba(213,151,73,.55);background:#17100a;color:#f2d7aa;box-shadow:0 5px 14px rgba(0,0,0,.45);white-space:nowrap;font:700 10px "Courier New",monospace}.shrine-resource-row:hover .shrine-tooltip{display:block}.shrine-upgrade-btn{width:100%;margin-top:8px}.shrine-recent{margin-top:10px;padding-top:8px;border-top:1px solid rgba(213,151,73,.23);font:700 10px/1.45 "Courier New",monospace;color:#bca17b}.shrine-recent>strong{display:block;margin-bottom:4px;color:#e6c68f;text-transform:uppercase}.shrine-recent-empty{opacity:.65}.shrine-max{display:flex;min-height:170px;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#d8c29b;text-align:center}.shrine-max strong{font-size:17px;color:#f0c982}.shrine-max b{color:#e7d6b7}.shrine-empty-v1{padding:28px;text-align:center;border:1px solid rgba(213,151,73,.24);background:rgba(0,0,0,.14);color:#b99a70;font:700 11px "Courier New",monospace}.shrine-contrib-meta{display:grid;gap:6px;margin:8px 0 12px;padding:8px;border:1px solid rgba(213,151,73,.25);background:rgba(0,0,0,.18);font:700 11px "Courier New",monospace}.shrine-contrib-meta span{display:flex;justify-content:space-between;gap:12px}.shrine-amount-line{display:grid;grid-template-columns:1fr auto;gap:7px}.shrine-amount-line input{width:100%;box-sizing:border-box;background:#130e09;border:1px solid rgba(213,151,73,.45);color:#f3dfbd;padding:8px;font:700 12px "Courier New",monospace}@media(max-width:760px){.shrine-layout-v1{grid-template-columns:1fr}}

/* ============================================================
   ORDER SHRINE V1.1 · 2026-08-12 UI regression fixes
   ============================================================ */
/* Persönliches Schreingebet nutzt exakt die bestehende Altar-Balkenlogik. */
.shrine-prayer-runtime{margin-top:8px;}
.shrine-group-progress{margin-top:8px;}
.shrine-group-progress .progress-shell{height:7px;}
.shrine-group-progress-fill{height:100%;}

/* Beitragsliste bleibt aus dem Hauptpanel heraus; nur kompakter Einstieg. */
.shrine-history-link{
  width:100%;margin-top:10px;padding:7px 8px;
  border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.16);
  color:#d8bd91;font:700 10px/1.2 "Courier New",monospace;
  text-transform:uppercase;cursor:pointer;
}
.shrine-history-link:hover,.shrine-history-link:focus-visible{border-color:rgba(240,201,130,.55);color:#f0c982;}
.shrine-history-list{display:grid;gap:6px;max-height:58vh;overflow:auto;padding-right:2px;}
.shrine-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border:1px solid rgba(213,151,73,.24);background:rgba(0,0,0,.18);font:700 11px/1.3 "Courier New",monospace;}
.shrine-history-row>span{display:grid;gap:2px;min-width:0;color:#e5cba0;}
.shrine-history-row small{color:#92785b;font-size:9px;font-weight:700;}
.shrine-history-row strong{color:#f0c982;text-align:right;white-space:nowrap;}
.shrine-history-empty{padding:18px;text-align:center;color:#a98b66;font:700 11px "Courier New",monospace;}

/* Schrein-Popups: Position innerhalb des Panels. */
.shrine-modal-box{padding-top:30px!important;}

.shrine-modal-box>.shrine-modal-close{
  position:absolute!important;right:8px!important;top:8px!important;
  z-index:90!important;
}


/* ============================================================
   ORDER SHRINE V1.3 · final symmetric desktop layout
   ============================================================ */
.shrine-blessing-copy{
  color:#f1d782;
  font:700 11px/1.45 "Courier New",monospace;
  text-transform:none;
}
.shrine-blessing-copy b{color:#ffe36c;}
.shrine-blessing-live{display:block;margin-top:7px;color:#cdb58e;}
.shrine-blessing-live b{color:#f0c982;}
.shrine-prayer-stat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border:1px solid rgba(213,151,73,.24);background:rgba(0,0,0,.18);font:700 11px/1.3 "Courier New",monospace;}
.shrine-prayer-stat-row>span{display:grid;gap:2px;min-width:0;color:#e5cba0;}
.shrine-prayer-stat-row small{color:#92785b;font-size:9px;font-weight:700;}
.shrine-prayer-stat-row strong{color:#f0c982;text-align:right;white-space:nowrap;}
.shrine-prayer-stats-list{display:grid;gap:6px;max-height:220px;overflow:auto;padding-right:2px;}
.shrine-prayer-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px;padding:8px;border:1px solid rgba(213,151,73,.3);background:rgba(0,0,0,.2);color:#d8bd91;font:700 11px "Courier New",monospace;}
.shrine-prayer-summary b{color:#f0c982;}
.shrine-modal-subtitle{margin:12px 0 6px;color:#d8bd91;font:700 10px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.03em;}

@media(min-width:761px){
  .shrine-layout-v1{align-items:stretch;}
  .shrine-panel-v1{
    display:grid;
    grid-template-rows:31px 48px 48px 48px 48px 40px 34px;
    gap:6px;
    min-height:0;
  }
  .shrine-panel-v1>.craft-head{grid-row:1;margin:0;align-self:start;}

  /* Right panel: four resource rows occupy the four shared content rows. */
  .shrine-upgrade-panel>.shrine-resource-row{margin:0;height:48px;box-sizing:border-box;align-self:stretch;}
  .shrine-upgrade-panel>.shrine-resource-row:nth-of-type(1){grid-row:2;}
  .shrine-upgrade-panel>.shrine-resource-row:nth-of-type(2){grid-row:3;}
  .shrine-upgrade-panel>.shrine-resource-row:nth-of-type(3){grid-row:4;}
  .shrine-upgrade-panel>.shrine-resource-row:nth-of-type(4){grid-row:5;}
  .shrine-upgrade-panel>.shrine-upgrade-btn{grid-row:6;margin:0;width:100%;height:40px;align-self:stretch;text-transform:none;}
  .shrine-upgrade-panel>.shrine-history-link{grid-row:7;margin:0;height:34px;align-self:stretch;}

  /* Left panel: description fills Gold+Ore rows; both prayer bars line up with Gems+Altmaterial. */
  .shrine-blessing-panel>.shrine-blessing-copy{
    grid-row:2 / span 2;
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    box-sizing:border-box;
    min-height:0;
    margin:0;
    padding:10px 12px;
    border:1px solid rgba(213,151,73,.28);
    background:rgba(0,0,0,.18);
    color:#e8d4b4;
    font:700 12px/1.55 "Courier New",monospace;
    letter-spacing:0;
    text-transform:none;
    text-align:left;
    overflow:hidden;
  }
  .shrine-blessing-panel>.shrine-blessing-copy b{color:#f0c982;font-weight:700;}
  .shrine-blessing-panel>.shrine-blessing-copy .shrine-blessing-live{
    display:block;
    margin-top:5px;
    color:#cdb58e;
    font-size:11px;
    line-height:1.25;
  }
  .shrine-blessing-panel>.shrine-align-row-3{grid-row:4;}
  .shrine-blessing-panel>.shrine-align-row-4{grid-row:5;}
  .shrine-blessing-panel>.shrine-group-progress,
  .shrine-blessing-panel>.shrine-prayer-runtime{
    margin:0;
    height:48px;
    box-sizing:border-box;
    align-self:stretch;
    display:grid;
    grid-template-rows:auto 10px;
    align-content:center;
    padding:6px 7px;
  }
  .shrine-blessing-panel>.shrine-group-progress .bar-label,
  .shrine-blessing-panel>.shrine-prayer-runtime .bar-label{margin:0 0 3px;}
  .shrine-blessing-panel>.shrine-group-progress .progress-shell,
  .shrine-blessing-panel>.shrine-prayer-runtime .progress-shell{height:10px;}
  .shrine-blessing-panel>.shrine-prayer-btn{grid-row:6;margin:0;width:100%;height:40px;align-self:stretch;text-transform:none;}
  .shrine-blessing-panel>.shrine-history-link{grid-row:7;margin:0;height:34px;align-self:stretch;}
}

@media(max-width:760px){
  .shrine-panel-v1{display:block;}
  .shrine-blessing-copy{margin:7px 0 10px;padding:4px 0;}
  .shrine-group-progress,.shrine-prayer-runtime{margin-top:8px;}
  .shrine-prayer-btn,.shrine-upgrade-btn{width:100%;margin-top:8px;text-transform:none;}
  .shrine-history-link{margin-top:10px;}
}

/* ============================================================
   ORDER SHRINE V1.6 · final copy / bar parity
   ============================================================ */
.shrine-blessing-copy>span{display:inline;max-width:100%;}
.shrine-blessing-copy .shrine-bonus-inline{display:inline!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#f0c982!important;font:inherit!important;font-weight:700!important;white-space:normal!important;}
@media(min-width:761px){
  .shrine-blessing-panel>.shrine-blessing-copy{
    justify-content:center;
    font-size:11.5px;
    line-height:1.48;
    padding:9px 12px;
  }
  .shrine-upgrade-panel>.shrine-resource-row .progress-shell{height:10px;}
  .shrine-upgrade-panel>.shrine-resource-row .shrine-progress{height:100%;}
}


/* 2026-08-14 UI sync + geometry polish
   Building roots keep one desktop/mobile top inset and opt out of browser scroll anchoring,
   so changing a building tab cannot move the entire view. */
#tavernView,#apothecaryView,#churchView,#bankView,#smithView,#marketView,#wellView,#pondView,#graveyardView{
  padding-top:14px!important;
  overflow-anchor:none!important;
  box-sizing:border-box;
}
#smithCraftGrid,#smithView .smith-master-services,#smithView .smith-recycle-grid,#smithView .smith-socket-actions{
  overflow-anchor:none!important;
}
.smith-salvage-row{
  grid-template-columns:32px minmax(0,1fr) 40px 44px!important;
  align-items:center!important;
}
.smith-salvage-tier{
  margin:0 2px 0 6px!important;
  flex:0 0 auto;
}
/* Empty and occupied socket choices use the same physical card box. */
#smithView .smith-socket-row,
#smithView .smith-socket-row.is-empty{
  width:100%!important;
  height:132px!important;
  min-height:132px!important;
  max-height:132px!important;
  box-sizing:border-box!important;
  margin:0!important;
}
#smithView .smith-socket-row.is-empty{
  border-width:1px!important;
  border-style:dashed!important;
}
#smithView .smith-socket-actions{
  align-items:stretch!important;
  grid-auto-rows:132px!important;
}
@media(max-width:860px){
  #tavernView,#apothecaryView,#churchView,#bankView,#smithView,#marketView,#wellView,#pondView,#graveyardView{padding-top:9px!important;}
  #smithView .smith-socket-actions{grid-auto-rows:132px!important;}
}

/* DUNGEON STRUCTURE INLINE PANEL V8 */
.dungeon-structure-inline{
  margin:4px 0 2px!important;
  border:1px solid rgba(255,181,62,.18)!important;
  background:rgba(0,0,0,.16)!important;
  padding:6px 8px!important;
  font-family:"Courier New",Courier,monospace!important;
  font-size:11px!important;
}
.dungeon-structure-inline summary{
  cursor:pointer;
  color:#b49161;
  font:bold 11px "Courier New",Courier,monospace!important;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dungeon-structure-inline .dungeon-structure-details-body,
.dungeon-structure-inline .dungeon-encounter-list,
.dungeon-structure-inline .dungeon-encounter-list li{
  font-family:"Courier New",Courier,monospace!important;
  font-size:11px!important;
}
.dungeon-start-btn + .dungeon-structure-inline,
.multiplayer-dungeon-start-btn + .dungeon-structure-inline{
  margin-top:12px!important;
}
.dungeon-structure-inline + .dungeon-prep-section{
  margin-top:4px;
}


/* 2026-08-16 migration regression polish */
:root{--lorheim-view-top-inset:14px;}
.actions,.village,.area-placeholder,.smith-view,.inventory-view,.dungeon-view,.battleground-view,.lobby-view,.compendium-view,.personalities-page-shell{padding-top:var(--lorheim-view-top-inset)!important;}
#dungeonView>.dungeon-panel:not(.locked){border-color:transparent!important;outline-color:transparent!important;background:none!important;box-shadow:none!important;}


.offline-report-close{right:8px!important;top:8px!important;}
@media(max-width:860px){:root{--lorheim-view-top-inset:9px;}}

.skill.active .progress{transition:none!important;}
.lobby-page-shell{border-color:transparent!important;outline-color:transparent!important;background:none!important;box-shadow:none!important;}

/* Live action bars are driven per animation frame. No CSS interpolation layer may trail the server-synced phase. */
.skill.active .progress,.skill.active .fishing-progress{transition:none!important;will-change:transform;}
.inventory-gain-fx,.buff-gain-fx{backface-visibility:hidden;transform:translateZ(0);}

/* Dungeon ability menus: viewport-safe scrolling and upward expansion near screen edge. */
#dungeonView .dungeon-ability-dropdown-menu,
#dungeonView .dungeon-custom-dropdown-menu{
  max-height:var(--dungeon-dropdown-max-height,260px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#dungeonView .dungeon-ability-dropdown.drop-up .dungeon-ability-dropdown-menu,
#dungeonView .dungeon-custom-dropdown.drop-up .dungeon-custom-dropdown-menu{
  top:auto!important;
  bottom:calc(100% + 4px)!important;
}
#dungeonView .dungeon-ability-dropdown-menu::-webkit-scrollbar,
#dungeonView .dungeon-custom-dropdown-menu::-webkit-scrollbar{width:9px}
#dungeonView .dungeon-ability-dropdown-menu::-webkit-scrollbar-thumb,
#dungeonView .dungeon-custom-dropdown-menu::-webkit-scrollbar-thumb{background:#6f5535;border:2px solid #140e09}
#dungeonView .dungeon-ability-dropdown-menu::-webkit-scrollbar-track,
#dungeonView .dungeon-custom-dropdown-menu::-webkit-scrollbar-track{background:#0b0806}

.shrine-resource-row:disabled{opacity:1;color:#e8d4b4;background:rgba(0,0,0,.18)}
.shrine-resource-row .progress-shell{display:block;overflow:hidden}.shrine-resource-row .shrine-progress{display:block;min-width:0}
.shrine-choice-list{display:grid;gap:6px;max-height:230px;overflow-y:auto;margin:8px 0 12px;padding-right:3px}.shrine-choice-row{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:9px;width:100%;padding:7px;border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.18);color:#e8d4b4;text-align:left;cursor:pointer}.shrine-choice-row.selected{border-color:rgba(240,201,130,.9);box-shadow:inset 0 0 0 1px rgba(240,201,130,.22)}.shrine-choice-art{width:36px;height:36px;display:grid;place-items:center}.shrine-choice-icon{max-width:32px;max-height:32px;image-rendering:pixelated}.shrine-choice-icon-fallback{font-size:22px}.shrine-choice-main{display:grid;gap:2px;font:700 11px/1.25 "Courier New",monospace}.shrine-choice-main b{color:#f0c982}.shrine-choice-main small{color:#bda27a;font-size:10px}.shrine-choice-empty{padding:10px;border:1px dashed rgba(213,151,73,.25);color:#a98d68;font:700 10px "Courier New",monospace}

/* Shrine contribution polish: material cards stay readable; only actions are disabled. */
.shrine-resource-row .progress-shell{display:block;overflow:hidden;min-width:0;background:rgba(0,0,0,.42);border:1px solid rgba(213,151,73,.32);}
.shrine-resource-row .shrine-progress{display:block;min-width:0;background:linear-gradient(90deg,#9d6a25,#d6a64c);}
.shrine-source-list{display:grid;gap:6px;max-height:260px;overflow:auto;margin:8px 0 12px;padding-right:3px;}
.shrine-source-item{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:8px;width:100%;padding:7px;border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.2);color:#e8d4b4;text-align:left;cursor:pointer;}
.shrine-source-item:hover,.shrine-source-item.selected{border-color:rgba(240,201,130,.78);background:rgba(213,151,73,.11);}
.shrine-source-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(213,151,73,.3);background:#130e09;}
.shrine-source-icon img{display:block;width:32px;height:32px;object-fit:contain;image-rendering:pixelated;}
.shrine-source-copy{display:grid;gap:3px;min-width:0;font:700 11px/1.2 "Courier New",monospace;}
.shrine-source-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0c982;}
.shrine-source-copy small{color:#b99a70;}

/* Multiplayer dungeon summary: server-authoritative values per character. */
.dungeon-player-summary-list{display:grid;gap:8px;margin-top:8px}
.dungeon-player-summary-row{display:grid;grid-template-columns:minmax(120px,1.2fr) repeat(4,minmax(90px,1fr));gap:8px;align-items:center;padding:8px 10px;border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.18);font:700 11px/1.3 "Courier New",Courier,monospace}
.dungeon-player-summary-row>strong{color:#f0c982}
@media(max-width:760px){.dungeon-player-summary-row{grid-template-columns:1fr 1fr}.dungeon-player-summary-row>strong{grid-column:1/-1}}


/* 2026-08-16: fixed dungeon preparation frame + permanent drop-up menus. */
#dungeonView .dungeon-prep-card,
#dungeonView .dungeon-abilities-section,
#dungeonView .dungeon-ability-slot{
  overflow:visible!important;
}
#dungeonView .dungeon-prep-card{
  padding-bottom:0!important;
}
#dungeonView .dungeon-ability-slot .dungeon-ability-dropdown-menu,
#dungeonView .dungeon-ability-slot .dungeon-custom-dropdown-menu{
  position:absolute!important;
  top:auto!important;
  bottom:calc(100% + 4px)!important;
  max-height:var(--dungeon-dropdown-max-height,min(260px,40vh))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin!important;
}
#dungeonView .dungeon-ability-slot .dungeon-ability-dropdown-menu::-webkit-scrollbar,
#dungeonView .dungeon-ability-slot .dungeon-custom-dropdown-menu::-webkit-scrollbar{width:9px!important;}
#dungeonView .dungeon-ability-slot .dungeon-ability-dropdown.drop-up .dungeon-ability-dropdown-arrow,
#dungeonView .dungeon-ability-slot .dungeon-custom-dropdown.drop-up .dungeon-custom-dropdown-arrow{transform:rotate(180deg)}
#dungeonView .dungeon-ability-slot .dungeon-ability-dropdown.drop-up.open .dungeon-ability-dropdown-arrow,
#dungeonView .dungeon-ability-slot .dungeon-custom-dropdown.drop-up.open .dungeon-custom-dropdown-arrow{transform:none}

/* 2026-08-16: Dungeon per-player Tabelle & Diagramm + einheitliche Live-Iconframes */
.dungeon-telemetry-report{margin-top:10px;border:2px solid #6f5535;background:rgba(8,6,4,.84)}
.dungeon-telemetry-report>summary{cursor:pointer;padding:10px 12px;color:#e6c77b;font:700 12px "Courier New",monospace;list-style:none}
.dungeon-telemetry-report-body{padding:0 10px 12px}.dungeon-telemetry-player{margin-top:10px}.dungeon-telemetry-player h4{margin:0 0 7px;color:#f0c982;font:700 13px "Courier New",monospace}
.dungeon-telemetry-table-wrap{overflow-x:auto;border:2px solid #6f5535}.dungeon-telemetry-table{width:100%;border-collapse:collapse;min-width:860px;background:#0a0806;font:11px/1.25 "Courier New",monospace;color:#d8c29a}
.dungeon-telemetry-table th,.dungeon-telemetry-table td{height:32px;padding:3px 5px;border:1px solid rgba(213,151,73,.42);text-align:center;vertical-align:middle}.dungeon-telemetry-table thead th{color:#f0c982;background:#120e09}.dungeon-telemetry-table tbody th{color:#f0c982;width:42px}
.dungeon-telemetry-cell-content{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.dungeon-telemetry-cell-content>b{color:#f0c982}.dungeon-telemetry-kill-name{margin-left:4px;color:#d8c29a;white-space:nowrap}
.dungeon-telemetry-icon{width:22px;height:22px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid #b88a2f;background:#0b0805;vertical-align:middle;overflow:hidden;color:#d9bc67;font-size:15px;line-height:1}.dungeon-telemetry-icon img{width:18px;height:18px;object-fit:contain;display:block}.dungeon-telemetry-icon-fallback{font-family:serif}
.dungeon-telemetry-chart{margin-top:9px;border:2px solid #6f5535;background:#090705;padding:8px}.dungeon-telemetry-chart-title{color:#f0c982;font:700 11px "Courier New",monospace;margin-bottom:4px}.dungeon-telemetry-chart svg{display:block;width:100%;height:auto;min-height:220px}.dungeon-chart-axis{stroke:#8d7447;stroke-width:1}.dungeon-telemetry-chart text{fill:#ab9673;font:10px "Courier New",monospace}.dungeon-chart-line{fill:none;stroke-width:2;opacity:.9}.dungeon-chart-line-0{stroke:#8cc8df}.dungeon-chart-line-1{stroke:#e7b34e}.dungeon-chart-line-2{stroke:#9fc18a}.dungeon-chart-line-3{stroke:#c29be2}.dungeon-chart-line-4{stroke:#e48c8c}.dungeon-chart-line-5{stroke:#dfd17b}.dungeon-chart-line-6{stroke:#b5b5b5}.dungeon-chart-skull{fill:#ddd!important;font-size:17px!important}.dungeon-chart-legend{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:5px}.dungeon-chart-legend>span{display:inline-flex;align-items:center;gap:4px;font:10px "Courier New",monospace;color:#c8b38c}.dungeon-chart-legend .dungeon-telemetry-icon{width:18px;height:18px}.dungeon-chart-legend .dungeon-telemetry-icon img{width:14px;height:14px}
/* Echtzeit-Dungeon: alle Aktionsicons teilen exakt denselben 1px-Goldrahmen. */
.dungeon-playback-line .dungeon-report-icon,.dungeon-playback-room .dungeon-report-icon,.dungeon-ability-description-title .dungeon-report-icon,.dungeon-choice-icon,.dungeon-playback-notice-icon-image,.dungeon-playback-effect img{box-sizing:border-box!important;width:24px!important;height:24px!important;padding:2px!important;border:1px solid #b88a2f!important;background:#0b0805!important;object-fit:contain!important;image-rendering:auto}
.dungeon-playback-effect img{width:34px!important;height:34px!important;padding:3px!important}.dungeon-playback-notice-icon-image{width:30px!important;height:30px!important;padding:2px!important}


/* 2026-08-16 · Schrein-Ausbau bleibt visuell normal; nur Aktionsbuttons zeigen disabled. */
.shrine-panel-v1.craft:has(> .button:disabled){opacity:1!important;filter:none!important;}
.shrine-panel-v1 .shrine-resource-row,.shrine-panel-v1 .shrine-resource-row:disabled{opacity:1!important;filter:none!important;color:#e8d4b4!important;}
.shrine-source-item{grid-template-columns:18px 42px 1fr;user-select:none;}
.shrine-source-check{width:14px;height:14px;margin:0;accent-color:#c69543;cursor:pointer;}
.shrine-source-item:has(.shrine-source-check:checked){border-color:rgba(240,201,130,.78);background:rgba(213,151,73,.11);}

/* Dungeon Nerd-Statistik: Desktop kompakt, auf Smartphones komplett ausblenden. */
.dungeon-telemetry-table{min-width:690px!important;table-layout:fixed;}
.dungeon-telemetry-table col.col-room{width:46px}.dungeon-telemetry-table col.col-dodge{width:82px}.dungeon-telemetry-table col.col-crit{width:82px}.dungeon-telemetry-table col.col-block{width:82px}.dungeon-telemetry-table col.col-ability{width:105px}.dungeon-telemetry-table col.col-potion{width:74px}.dungeon-telemetry-table col.col-kill{width:auto}.dungeon-telemetry-table col.col-death{width:48px}
.dungeon-telemetry-table th,.dungeon-telemetry-table td{padding-left:3px!important;padding-right:3px!important;}
@media(max-width:760px){.dungeon-telemetry-report{display:none!important;}}

/* Battleground: stabile Rangliste nach serverseitigem Schaden */
.battleground-header-actions{display:flex;justify-content:center;margin:10px auto 0;max-width:980px}
.battleground-header-actions .dungeon-exit-btn{min-width:190px}
.battleground-participant-row{grid-template-columns:16px minmax(68px,1fr) 44px 54px 78px}
.battleground-participant-damage{color:#f2c96f;text-align:right;white-space:nowrap;font-weight:700}
@media(max-width:720px){.battleground-participant-row{grid-template-columns:16px minmax(62px,1fr) 40px 47px 68px}.battleground-participant-damage{font-size:9px}}

/* Battleground result: persistent Lorheim popup, closed explicitly with the standard X. */
.battleground-result-modal{z-index:100020}
.battleground-result-popover{position:relative;width:min(360px,92vw);text-align:center;padding:22px 24px 20px}
.battleground-result-close{right:8px!important;top:8px!important}
.battleground-result-crest{display:block;width:82px;height:82px;object-fit:contain;margin:2px auto 10px;image-rendering:auto}
.battleground-result-title{margin:0 0 15px;color:#f0cf8c;font:700 28px/1 Georgia,"Times New Roman",serif;letter-spacing:.08em;text-shadow:0 2px 0 #000}
.battleground-result-rewards{display:grid;gap:8px;margin:0 auto;max-width:230px}
.battleground-result-reward-plaque{width:100%;margin:0!important;display:flex;justify-content:center;align-items:center;gap:7px;cursor:default;pointer-events:none;box-sizing:border-box;text-align:center}
.battleground-result-reward-plaque span,.battleground-result-reward-plaque strong{color:#180d05;font:900 14px/1 Georgia,"Times New Roman",serif;text-shadow:0 1px rgba(255,217,139,.22)}
.battleground-result-reward-plaque strong{font-size:16px}


/* Inventory PvP summary: server-authored honor/rank, compact Lorheim header. */
#inventoryView .inventory-pvp-strip{position:relative;display:flex;align-items:center;justify-content:center;min-height:30px;margin:4px 0 6px;padding:0 40px;border-bottom:1px solid rgba(213,151,73,.28)}
#inventoryView .inventory-pvp-values{display:flex;align-items:center;justify-content:center;gap:26px;color:var(--gold-bright,#f5d59b);font:700 13px/1 Georgia,"Times New Roman",serif;letter-spacing:.05em;text-transform:uppercase}
#inventoryView .inventory-pvp-values b{color:inherit;font-size:14px;font-weight:700}
#inventoryView .inventory-pvp-info{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:3px;border:1px solid #8a622f;background:linear-gradient(180deg,#21170d,#0f0b08);cursor:pointer;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,215,139,.12)}
#inventoryView .inventory-pvp-info img{display:block;width:20px;height:20px;object-fit:contain}
#inventoryView .inventory-pvp-info:hover{filter:brightness(1.12)}
#inventoryView .inventory-pvp-strip + .equipment-grid{margin-top:0}
@media(max-width:720px){#inventoryView .inventory-pvp-values{gap:12px;font-size:10px}#inventoryView .inventory-pvp-values b{font-size:11px}#inventoryView .inventory-pvp-strip{padding:0 34px}.inventory-pvp-info{width:24px;height:24px}}

/* PvP rank image assets */
.pvp-rank-summary-icon img{width:42px;height:42px;object-fit:contain;display:block}
.pvp-rank-icon{display:grid;place-items:center}
.pvp-rank-icon img{width:24px;height:24px;object-fit:contain;display:block}

/* 2026-08-16: PvP honor summary + authoritative battleground availability HUD. */
.pvp-rank-summary .pvp-summary-honor,
.pvp-rank-summary .pvp-summary-honor-number{
  font-family:"Courier New",Courier,monospace!important;
}

#lorheimBattlegroundBtn{overflow:visible!important;}
#battlegroundHudCount{
  position:absolute;
  right:-6px;
  top:-6px;
  z-index:12;
  min-width:18px;
  height:18px;
  padding:0 4px;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border:1px solid #e7c58a;
  border-radius:9px;
  background:#8c1820;
  color:#fff;
  font:700 11px/1 "Courier New",Courier,monospace;
  box-shadow:0 0 0 1px #160a08;
  pointer-events:none;
}
#battlegroundHudCount[hidden]{display:none!important;}
#lorheimBattlegroundBtn.has-open-battleground{
  border-color:#c18a42!important;
  box-shadow:0 0 0 1px rgba(255,221,145,.20),0 0 12px rgba(255,177,59,.34)!important;
}
#lorheimBattlegroundBtn.bg-start-pulse{animation:lorheimBgStartPulse .45s ease-in-out 4;}
@keyframes lorheimBgStartPulse{
  0%,100%{filter:none;}
  50%{filter:brightness(1.45);box-shadow:0 0 0 1px rgba(255,221,145,.30),0 0 18px rgba(255,177,59,.68)!important;}
}
#battlegroundStartToast,.world-npc-local-toast,.lorheim-effect-hover{
  width:max-content;
  max-width:340px;
  padding:7px 10px;
  border:1px solid #8e6e39;
  background:linear-gradient(145deg,#261a0f,#0d0905 75%);
  color:#e8d2a7;
  font:12px/1.35 "Courier New",Courier,monospace;
  box-shadow:0 6px 16px rgba(0,0,0,.58);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
#battlegroundStartToast{position:absolute;left:calc(100% + 10px);top:50%;transform:translate(8px,-50%);z-index:30;white-space:nowrap;}
#battlegroundStartToast.open,.world-npc-local-toast.open{opacity:1;visibility:visible;transform:translate(0,-50%);}
@media(max-width:700px){#battlegroundStartToast{display:none!important;}}


/* 2026-08-16: Sidebar attention scope — dim by default, glow ONLY for unread mail / open BG. */
#lorheimSideHud button:not(.ww-tutorial-highlight),
#lorheimSideHud #skillHubButton:not(.ww-tutorial-highlight),
#lorheimSideHud #questHudButton:not(.ww-tutorial-highlight){
  opacity:.42 !important;
  filter:saturate(.78) brightness(.86) !important;
  box-shadow:0 8px 22px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,222,150,.08) !important;
}
#lorheimSideHud button:hover,
#lorheimSideHud button:focus-visible,
#lorheimSideHud #skillHubWrap:focus-within #skillHubButton,
#lorheimSideHud #questHudWrap:focus-within #questHudButton{
  opacity:.72 !important;
  filter:saturate(.9) brightness(.96) !important;
  box-shadow:0 8px 22px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,222,150,.08) !important;
}
#orderMailButton.has-mail,
#lorheimBattlegroundBtn.has-open-battleground{
  opacity:1 !important;
  filter:none !important;
  border-color:#c18a42 !important;
  box-shadow:0 0 0 1px rgba(255,221,145,.20),0 0 12px rgba(255,177,59,.34) !important;
}
#battlegroundHudCount{border-radius:0 !important;}
.battleground-option-meta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;min-width:190px;}
.battleground-next-start{display:block;white-space:nowrap;color:var(--gold-bright);font:700 10px/1.1 "Courier New",Courier,monospace;text-align:right;}
.battleground-next-start.urgent{color:#d83a3a;}
@media(max-width:860px){.battleground-option-meta{min-width:145px}.battleground-next-start{font-size:9px;}}


/* 2026-08-16 FINAL: Sidebar must stay visually quiet unless attention is required. */
#lorheimSideHud .lorheim-side-button:not(.ww-tutorial-highlight),
#lorheimSideHud button:not(.ww-tutorial-highlight),
#lorheimSideHud #skillHubButton:not(.ww-tutorial-highlight),
#lorheimSideHud #questHudButton:not(.ww-tutorial-highlight){
  opacity:.38!important;
  filter:saturate(.68) brightness(.72)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,222,150,.05)!important;
  text-shadow:none!important;
}
#lorheimSideHud .lorheim-side-button:hover,
#lorheimSideHud button:hover,
#lorheimSideHud .lorheim-side-button:focus-visible,
#lorheimSideHud button:focus-visible{
  opacity:.58!important;
  filter:saturate(.78) brightness(.84)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,222,150,.05)!important;
}
#lorheimSideHud #orderMailButton.has-mail,
#lorheimSideHud #lorheimBattlegroundBtn.has-open-battleground{
  opacity:1!important;
  filter:none!important;
  border-color:#c18a42!important;
  box-shadow:0 0 0 1px rgba(255,221,145,.20),0 0 12px rgba(255,177,59,.48)!important;
}
@media(max-width:700px){
  #lorheimSideHud .lorheim-side-button:not(.ww-tutorial-highlight),
  #lorheimSideHud button:not(.ww-tutorial-highlight),
  #lorheimSideHud #skillHubButton:not(.ww-tutorial-highlight),
  #lorheimSideHud #questHudButton:not(.ww-tutorial-highlight){opacity:.30!important;filter:saturate(.62) brightness(.68)!important;}
  #lorheimSideHud #orderMailButton.has-mail,
  #lorheimSideHud #lorheimBattlegroundBtn.has-open-battleground{opacity:1!important;filter:none!important;}
}
.battleground-result-reward-plaque{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:max-content!important;
  justify-content:center!important;
  align-content:center!important;
  column-gap:7px!important;
  text-align:center!important;
}

/* Apotheke V2: gleiche Tab-Geometrie wie Schmiede */
.apothecary-tab-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(255,181,62,.28);box-shadow:0 1px 0 rgba(0,0,0,.55)}
.apothecary-tab-btn{margin:0!important;padding:12px 6px!important;min-height:44px!important;font-size:12px!important;letter-spacing:.035em;text-transform:uppercase;border-width:2px!important;line-height:1.05!important;white-space:nowrap}
.apothecary-tab-btn.is-locked:disabled{opacity:.52;filter:grayscale(1) brightness(.68);cursor:not-allowed;box-shadow:none!important;pointer-events:none;}
.apothecary-tab-btn.active{filter:brightness(1.2);border-color:#c18a42!important;box-shadow:0 0 12px rgba(255,145,37,.18),inset 0 1px rgba(255,235,185,.25),inset 0 -5px 10px rgba(0,0,0,.36),0 3px 0 #3b210d!important}
.reagent-select{width:100%;margin-top:12px;min-height:36px;background:#0b0908;color:#f5d59b;border:1px solid #5d462b;padding:7px 9px;font:12px "Courier New",monospace}
@media(max-width:860px){.apothecary-tab-row{gap:5px}.apothecary-tab-btn{font-size:10px!important;padding:9px 4px!important;min-height:38px!important}}




/* 2026-08-18 · Schmuckrezept-Materialzeile */
.smith-jewelry-materials{display:block;margin:4px 0 8px;font-family:"Courier New",monospace!important;color:#c6a06f;}

/* 2026-08-18 · Schlachtfeld: nur die ehemals fremde Schrift in den unteren Angreifer-Panels.
   Headlines/übriges Schlachtfeld-Layout bleiben unverändert. */
.battleground-participants-head,
.battleground-participant-name,
.battleground-participant-row > span:not(.battleground-participant-avatar),
.battleground-participant-damage{font-family:"Courier New",monospace!important;}

/* Runenstein-Artwork: tatsächliche Runenstein-Items 60 % kleiner, Slot/Layout unverändert. */
.item-icon-img.runestone-icon-compact{
  transform:scale(.40)!important;
  transform-origin:center center!important;
}


/* Friedhof serverautoritärer Wellenkampf: Dungeon-artige Vorbereitung, eigener Namespace. */
.graveyard-prep-card{grid-column:1 / -1!important;min-width:0;}
.graveyard-prep-title{margin:0 0 8px;color:#f1d49a;font:bold 15px Georgia,"Times New Roman",serif;}
#graveyardPrepRoot .dungeon-prep-section{margin-top:7px;}
#graveyardPrepRoot .graveyard-prep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;}
#graveyardPrepRoot .graveyard-prep-column{min-width:0;}
#graveyardPrepRoot .graveyard-prep-select{width:100%;min-height:34px;box-sizing:border-box;border:1px solid #6b4a2a;background:#120d08;color:#dbc394;padding:6px 8px;font:11px/1.2 "Courier New",Courier,monospace;}
#graveyardPrepRoot .graveyard-ability-copy{min-height:30px;margin:4px 0 8px;color:#9f8a68;font:10px/1.35 "Courier New",Courier,monospace;}
#graveyardPrepRoot .dungeon-field-label{font-family:"Courier New",Courier,monospace!important;font-size:11px!important;}
.graveyard-log-legacy{display:none!important;}
#graveyardDetailReport{grid-column:1 / -1!important;}
#graveyardDetailReport .graveyard-detail-body{max-height:310px!important;overflow-y:auto!important;display:block!important;padding-right:5px;scrollbar-gutter:stable;}
#graveyardDetailReport .dungeon-room-detail-line{min-height:20px;line-height:1.45;}
.graveyard-combat-line-icon{width:18px;height:18px;object-fit:contain;vertical-align:middle;margin:0 6px 0 0;image-rendering:auto;}
.graveyard-combat-line-icon.player{border-radius:2px;}
.graveyard-wave-divider{margin:6px 0 3px;padding-top:6px;border-top:1px solid rgba(213,151,73,.20);color:#e8c786;font-weight:700;}
@media(max-width:760px){#graveyardPrepRoot .graveyard-prep-grid{grid-template-columns:1fr;}}


/* Friedhof UI Final: obere Statusreihe + exakt dieselben Vorbereitungsbausteine wie Solo-Dungeon. */
#graveyardPrepCard{
  grid-column:1 / -1!important;
  min-width:0!important;
  margin:0!important;
}
#graveyardPrepRoot{
  display:grid!important;
  gap:14px!important;
  min-width:0!important;
}
#graveyardPrepRoot .dungeon-prep-section{margin:0!important;}
#graveyardPrepRoot .dungeon-custom-dropdown-toggle:disabled,
#graveyardPrepRoot .dungeon-ability-dropdown-toggle:disabled{opacity:.52!important;cursor:not-allowed!important;}
.graveyard-record-summary{
  margin:8px auto 0!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px 24px!important;
  width:100%!important;
  box-sizing:border-box!important;
  color:#d8bc8e!important;
  font:14px/1.35 "Courier New",Courier,monospace!important;
  text-align:center!important;
}
.graveyard-record-summary strong{color:#f1d49a!important;font:inherit!important;text-transform:none!important;}
.graveyard-layout-v2{align-items:stretch!important;}
.graveyard-combat-card,
.graveyard-warden-card{box-sizing:border-box!important;height:176px!important;min-height:176px!important;margin:0!important;}
.graveyard-combat-card{display:flex!important;flex-direction:column!important;padding:10px 12px!important;}
.graveyard-combat-title{
  min-height:30px!important;display:flex!important;align-items:center!important;box-sizing:border-box!important;
  margin:0 0 5px!important;padding:5px 9px!important;font-family:"Courier New",Courier,monospace!important;
}
.graveyard-combat-title strong{font:700 15px/1.2 "Courier New",Courier,monospace!important;}
.graveyard-wave-badge{min-width:28px!important;padding:3px 6px!important;font:700 12px/1.2 "Courier New",Courier,monospace!important;}
.graveyard-timer-label{min-height:15px!important;margin:0 0 2px!important;font:11px/1.2 "Courier New",Courier,monospace!important;}
.graveyard-progress-shell{height:13px!important;margin:0 0 8px!important;}
.graveyard-hp-shell{height:12px!important;margin:0 0 8px!important;background:rgba(0,0,0,.55)!important;overflow:hidden!important;}
.graveyard-hp-progress{height:100%!important;width:0;transition:width .10s linear,background-color .10s linear!important;box-shadow:0 0 7px rgba(0,0,0,.35)!important;}
.graveyard-combat-card > .button{margin-top:auto!important;min-height:38px!important;}
.graveyard-warden-card{
  grid-template-columns:156px minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:10px!important;
  padding:10px!important;align-items:stretch!important;
}
.graveyard-warden-portrait{grid-row:1!important;width:156px!important;min-width:156px!important;height:156px!important;min-height:156px!important;}
.graveyard-warden-text{
  height:156px!important;min-height:156px!important;box-sizing:border-box!important;padding:8px 10px!important;overflow:hidden!important;
  font:11px/1.28 "Courier New",Courier,monospace!important;
}
.graveyard-warden-text p{margin:0 0 5px!important;}
.graveyard-warden-text em{font:italic 11px/1.24 "Courier New",Courier,monospace!important;}
@media(max-width:760px){
  .graveyard-combat-card,.graveyard-warden-card{height:auto!important;min-height:0!important;}
  .graveyard-warden-card{grid-template-columns:118px minmax(0,1fr)!important;}
  .graveyard-warden-portrait{width:118px!important;min-width:118px!important;height:118px!important;min-height:118px!important;}
  .graveyard-warden-text{height:118px!important;min-height:118px!important;font-size:10px!important;}
  .graveyard-record-summary{font-size:12px!important;gap:5px 12px!important;}
}
/* Friedhof: dieselbe Dropdown-Geometrie wie die Solo-Dungeon-Vorbereitung, nur lokal gespiegelt. */
#graveyardPrepCard,
#graveyardPrepRoot .dungeon-abilities-section,
#graveyardPrepRoot .dungeon-ability-slot{overflow:visible!important;}
#graveyardPrepCard{padding-bottom:0!important;}
#graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown-menu,
#graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown-menu{
  position:absolute!important;
  top:auto!important;
  bottom:calc(100% + 4px)!important;
  max-height:var(--dungeon-dropdown-max-height,min(260px,40vh))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin!important;
}
#graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown-menu::-webkit-scrollbar,
#graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown-menu::-webkit-scrollbar{width:9px!important;}
#graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown.drop-up .dungeon-ability-dropdown-arrow,
#graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown.drop-up .dungeon-custom-dropdown-arrow{transform:rotate(180deg)}
#graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown.drop-up.open .dungeon-ability-dropdown-arrow,
#graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown.drop-up.open .dungeon-custom-dropdown-arrow{transform:none}

/* 2026-08-20 Apotheke/Reagenzien: harte Geometrie-Synchronisierung beider Verarbeitungspanels. */
#apothecaryView .apothecary-reagent-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  align-items:stretch!important;
}
#apothecaryView .apothecary-reagent-card{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:22px 46px 1px minmax(0,1fr)!important;
  align-items:stretch!important;
  min-height:0!important;
  height:100%!important;
  padding:10px 11px 11px!important;
}
#apothecaryView .apothecary-reagent-title{
  box-sizing:border-box!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  margin:0!important;
  padding:0!important;
  line-height:18px!important;
  overflow:hidden!important;
}
#apothecaryView .apothecary-reagent-copy{
  box-sizing:border-box!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:4px 0 6px!important;
  overflow:hidden!important;
  display:block!important;
}
#apothecaryView .apothecary-reagent-divider{
  width:100%!important;
  height:1px!important;
  min-height:1px!important;
  margin:0!important;
  padding:0!important;
  background:rgba(213,151,73,.24)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.55)!important;
}
#apothecaryView .apothecary-reagent-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:136px 136px 26px 31px!important;
  gap:7px!important;
  align-content:start!important;
  align-items:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding-top:8px!important;
}
#apothecaryView .apothecary-reagent-source,
#apothecaryView .apothecary-reagent-summary{
  box-sizing:border-box!important;
  width:100%!important;
  height:136px!important;
  min-height:136px!important;
  max-height:136px!important;
  margin:0!important;
  padding:0!important;
}
#apothecaryView .reagent-source-list{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:42px!important;
  gap:5px!important;
  width:100%!important;
  height:136px!important;
  min-height:136px!important;
  max-height:136px!important;
  margin:0!important;
  padding:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  align-content:start!important;
}
#apothecaryView .reagent-source-list::-webkit-scrollbar{display:none!important;width:0!important}
#apothecaryView .reagent-source-list.is-empty{
  border:0!important;
  background:transparent!important;
}
#apothecaryView .reagent-source-list .smith-salvage-row{
  box-sizing:border-box!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:5px 8px!important;
  grid-template-columns:32px minmax(0,1fr) 40px 44px!important;
  align-items:center!important;
}
#apothecaryView .apothecary-reagent-summary{
  display:grid!important;
  grid-template-rows:42px 42px 42px!important;
  gap:5px!important;
  align-content:start!important;
}
#apothecaryView .apothecary-reagent-summary .smith-recycle-stock{
  box-sizing:border-box!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
}
#apothecaryView .apothecary-reagent-quantity{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 74px 68px!important;
  gap:6px!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:4px 5px 4px 10px!important;
  align-items:center!important;
}
#apothecaryView .apothecary-reagent-card .smith-recycle-progress{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:14px 10px!important;
  gap:2px!important;
  width:100%!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  align-self:stretch!important;
}
#apothecaryView .apothecary-reagent-card .smith-recycle-timer{
  box-sizing:border-box!important;
  height:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  margin:0!important;
  padding:0!important;
  line-height:12px!important;
}
#apothecaryView .apothecary-reagent-card .progress-shell{
  box-sizing:border-box!important;
  width:100%!important;
  height:10px!important;
  min-height:10px!important;
  max-height:10px!important;
  margin:0!important;
}
#apothecaryView .apothecary-reagent-process{
  box-sizing:border-box!important;
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:6px 8px!important;
  align-self:stretch!important;
}
@media(max-width:860px){
  #apothecaryView .apothecary-reagent-grid{grid-template-columns:1fr!important;}
  #apothecaryView .apothecary-reagent-card{grid-template-rows:22px 46px 1px minmax(0,1fr)!important;}
}


/* 2026-08-20 Reagenzien/Verwerten: gemeinsame harte Y-Geometrie und leere Zustände. */
#apothecaryView .reagent-source-list.is-empty{
  display:block!important;
  box-sizing:border-box!important;
  padding:9px 8px!important;
  border:0!important;
  background:transparent!important;
}
#apothecaryView .apothecary-reagent-empty{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#d6ad69!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font:11px/1.3 "Courier New",Courier,monospace!important;
  letter-spacing:0!important;
  text-align:left!important;
}
#apothecaryView .apothecary-reagent-summary .smith-recycle-stock-source.is-empty{
  visibility:hidden!important;
}

#smithView .smith-recycle-aligned-card{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:22px 72px 1px minmax(0,1fr)!important;
  align-items:stretch!important;
  height:100%!important;
  min-height:0!important;
  padding:10px 11px 11px!important;
}
#smithView .smith-recycle-grid{align-items:stretch!important}
#smithView .smith-recycle-aligned-card{min-height:384px!important;height:auto!important;max-height:none!important}
#smithView .smith-recycle-aligned-card>h3{
  box-sizing:border-box!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  margin:0!important;
  padding:0!important;
  line-height:18px!important;
  overflow:hidden!important;
}
#smithView .smith-recycle-aligned-copy{
  box-sizing:border-box!important;
  display:block!important;
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
  margin:0!important;
  padding:4px 0 6px!important;
  overflow:hidden!important;
}
#smithView .smith-recycle-divider{
  box-sizing:border-box!important;
  width:100%!important;
  height:1px!important;
  min-height:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  background:rgba(213,151,73,.24)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.55)!important;
}
#smithView .smith-recycle-aligned-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:136px 42px 26px 31px!important;
  gap:7px!important;
  align-content:start!important;
  align-items:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding-top:8px!important;
}
#smithView .smith-recycle-aligned-actions:not(:has(>.quest-turnin-inline)){grid-template-rows:136px 26px 31px!important}
#smithView .smith-recycle-aligned-actions>.quest-turnin-inline{
  width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  grid-template-columns:minmax(0,1fr) 74px 68px!important;gap:6px!important;
  margin:0!important;padding:4px 5px 4px 10px!important;align-self:stretch!important;
}
#smithView .smith-recycle-aligned-actions>.smith-recycle-body{
  box-sizing:border-box!important;
  width:100%!important;
  height:136px!important;
  min-height:136px!important;
  max-height:136px!important;
  margin:0!important;
  padding:0!important;
}
#smithView .smith-recycle-aligned-actions .smith-salvage-list{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:136px!important;max-height:136px!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding-right:0!important;scrollbar-width:none!important;-ms-overflow-style:none!important;
}
#smithView .smith-recycle-aligned-actions .smith-salvage-list::-webkit-scrollbar{display:none!important;width:0!important}
#smithView .smith-recycle-aligned-actions .smith-salvage-row{width:100%!important;min-width:0!important;box-sizing:border-box!important}
#smithView .smith-recycle-aligned-actions>.smith-recycle-progress{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:14px 10px!important;
  gap:2px!important;
  width:100%!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
}
#smithView .smith-recycle-aligned-actions>.smith-recycle-progress .smith-recycle-timer{
  box-sizing:border-box!important;
  height:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  margin:0!important;
  padding:0!important;
  line-height:12px!important;
}
#smithView .smith-recycle-aligned-actions>.smith-recycle-progress .progress-shell{
  box-sizing:border-box!important;
  height:10px!important;
  min-height:10px!important;
  max-height:10px!important;
  margin:0!important;
}
#smithView .smith-recycle-aligned-actions>.smith-recycle-action{
  box-sizing:border-box!important;
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:6px 8px!important;
}

/* 2026-08-20 · Einheitliches Kampftextfenster Solo/Multiplayer/Friedhof */
.dungeon-playback-log,
#graveyardDetailBody{
  box-sizing:border-box!important;
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
  overflow:hidden!important;
  display:block!important;
  padding:3px 0!important;
  scroll-behavior:auto!important;
}
.dungeon-playback-log .dungeon-playback-line,
#graveyardDetailBody>.dungeon-room-detail-line{
  box-sizing:border-box!important;
  min-height:21px!important;
  margin:0!important;
  padding:2px 4px!important;
  border-top:1px solid rgba(213,151,73,.12)!important;
  font:11px/17px "Courier New",Courier,monospace!important;
}
.lorheim-combat-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 172px!important;
  column-gap:18px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
}
.lorheim-combat-copy{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  color:#d8c29a!important;
}
.lorheim-combat-hp{
  width:172px!important;
  display:grid!important;
  grid-template-columns:78px 1fr!important;
  gap:5px!important;
  justify-self:end!important;
  white-space:nowrap!important;
  color:#c9a36f!important;
  font:11px/17px "Courier New",Courier,monospace!important;
}
.lorheim-combat-hp span{text-align:right!important;}
.lorheim-combat-hp b{
  display:block!important;
  min-width:84px!important;
  text-align:right!important;
  color:#f0d39d!important;
  font:700 11px/17px "Courier New",Courier,monospace!important;
}
.dungeon-playback-room-start .lorheim-combat-copy,
.graveyard-wave-divider{
  color:#f0c982!important;
  font-weight:700!important;
}
.lorheim-room-enemy{display:inline-flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important;}
.lorheim-room-enemy img{
  display:inline-block!important;
  width:18px!important;height:18px!important;
  margin:0 1px 0 2px!important;
  padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;
  object-fit:contain!important;vertical-align:-4px!important;
}
#graveyardDetailBody .graveyard-combat-line-icon{
  width:18px!important;height:18px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important;vertical-align:-4px!important;margin-right:4px!important;
}
@media(max-width:760px){
  .lorheim-combat-row{grid-template-columns:minmax(0,1fr) 146px!important;column-gap:8px!important;}
  .lorheim-combat-hp{width:146px!important;grid-template-columns:66px 1fr!important;font-size:10px!important;}
  .lorheim-combat-hp b{min-width:72px!important;font-size:10px!important;}
}

/* Reagenzien: Ergebnis wirklich unter Progress + Verarbeiten, nicht mehr im Quell-/Scrollbereich. */
#apothecaryView .apothecary-reagent-actions{
  grid-template-rows:136px 89px 26px 31px 42px!important;
  gap:7px!important;
}
#apothecaryView .apothecary-reagent-summary{
  height:89px!important;min-height:89px!important;max-height:89px!important;
  grid-template-rows:42px 42px!important;
}
#apothecaryView .apothecary-reagent-result{
  box-sizing:border-box!important;
  width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;
}
.lorheim-combat-proc{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#d8c29a}
.lorheim-proc-icon{width:16px!important;height:16px!important;padding:0!important;margin:0 1px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important;vertical-align:-3px!important}


.ii-socket-gem-inline-v3{display:inline-flex;width:18px;height:18px;vertical-align:-4px;align-items:center;justify-content:center;margin:0 3px;overflow:hidden;}
.ii-socket-gem-inline-v3 .item-icon-img{display:block;width:18px;height:18px;object-fit:contain;}

/* Currency V2: Gold + Silber */
.currency-inline-icon{width:16px;height:16px;object-fit:contain;vertical-align:-3px;margin-right:3px}.currency-gap{display:inline-block;width:8px}.lorheim-currency{white-space:nowrap}.currency-hud-silver{margin-left:-5px;transform:scale(.82);transform-origin:center}




/* 2026-08-21 canonical multiplayer loot-roll UI.
   One stack root owns layout. Individual cards are never fullscreen overlays and
   therefore cannot move their controls outside the viewport. */


















/* Shared multiplayer chest: clear split between group loot and personal share. */
.multiplayer-shared-chest-state .multiplayer-shared-chest-total{margin:0 0 18px!important;}
.multiplayer-shared-chest-state .multiplayer-shared-chest-share{margin:0!important;color:#76d985!important;}
.multiplayer-shared-chest-state .multiplayer-shared-chest-share strong{color:#8ff09d!important;}
.multiplayer-shared-chest-state .multiplayer-shared-chest-share .lorheim-currency{color:inherit!important;}

/* 2026-08-21 Inventory V5/Bank V2: socket gem overlays scaled to compact 69px bag grids. */
.ii-bag-workspace-v4 .ii-item-icon-v3>.ii-socket-gem-overlay-v3,
.bank-grid-v1 .ii-item-icon-v3>.ii-socket-gem-overlay-v3,
.bank-deposit-grid-v1 .ii-item-icon-v3>.ii-socket-gem-overlay-v3{
  left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  width:18px!important;height:18px!important;
  transform:translate(-50%,-50%)!important;
  display:grid!important;place-items:center!important;
  z-index:8!important;pointer-events:none!important;
  filter:drop-shadow(0 0 2px rgba(255,255,255,.72)) drop-shadow(0 1px 1px rgba(0,0,0,.92))!important;
}
.ii-bag-workspace-v4 .ii-item-icon-v3>.ii-socket-gem-overlay-v3 .item-icon-img,
.bank-grid-v1 .ii-item-icon-v3>.ii-socket-gem-overlay-v3 .item-icon-img,
.bank-deposit-grid-v1 .ii-item-icon-v3>.ii-socket-gem-overlay-v3 .item-icon-img{
  width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;
  transform:none!important;margin:0!important;object-fit:contain!important;
}

/* 2026-08-22: Kompakte Story-/Urahnenkarten.
   T5-Epilog und T17-Krypta teilen bewusst dieselbe ruhige Geometrie. */
.ancestor-inside{max-width:740px}
.ancestor-spirit-card,
.dungeon-lore-card{
  width:min(720px,calc(100vw - 36px));
  min-height:0;
  grid-template-columns:174px minmax(0,1fr);
  align-items:stretch;
}
.ancestor-spirit-card .ancestor-portrait-frame,
.dungeon-lore-card .ancestor-portrait-frame{
  min-height:0;
  height:auto;
  padding:11px;
  border-right:2px solid #5d462b;
  background:linear-gradient(145deg,#111019,#050405);
}
.ancestor-spirit-card .ancestor-portrait-frame img,
.dungeon-lore-card .ancestor-portrait-frame img{
  display:block;
  width:150px;
  height:150px;
  max-width:150px;
  max-height:150px;
  object-fit:contain;
  filter:none;
}
.ancestor-spirit-card .ancestor-spirit-copy,
.dungeon-lore-card .ancestor-spirit-copy{
  min-width:0;
  padding:15px 18px;
  justify-content:center;
}
.ancestor-spirit-card .ancestor-spirit-title h2,
.dungeon-lore-card .ancestor-spirit-title h2{
  font-size:19px;
  line-height:1.15;
}
.ancestor-spirit-card .ancestor-spirit-title span,
.dungeon-lore-card .ancestor-spirit-title span{
  margin-top:3px;
  font-size:10px;
  line-height:1.25;
}
.ancestor-spirit-card .ancestor-divider,
.dungeon-lore-card .ancestor-divider{
  height:1px;
  margin:9px 0 10px;
}
.ancestor-spirit-card .ancestor-spirit-copy p,
.dungeon-lore-card .ancestor-spirit-copy p,
.dungeon-lore-dialog p{
  font-size:11px;
  line-height:1.45;
}
.dungeon-lore-dialog{gap:5px}
.ancestor-spirit-card .ancestor-gift-line{
  margin-top:10px;
  padding:7px 9px;
  font-size:10px;
  line-height:1.35;
}
.ancestor-spirit-card .ancestor-next-btn,
.dungeon-lore-card .ancestor-next-btn{
  min-width:170px;
  min-height:32px;
  margin:11px 0 0!important;
  padding:6px 12px!important;
  font-size:11px;
  align-self:flex-start;
}
.dungeon-lore-card{max-height:calc(100vh - 36px);overflow:hidden}
.dungeon-lore-card .ancestor-spirit-copy{max-height:calc(100vh - 58px);overflow-y:auto}

/* Krypta-Tor: echte Itemassets statt Platzhalter-Emoji. */
.ancestor-req-icon{font-size:0;overflow:hidden}
.ancestor-req-item-img{
  display:block;
  width:48px;
  height:48px;
  object-fit:contain;
  image-rendering:auto;
}

@media(max-width:760px){
  .ancestor-inside{max-width:100%}
  .ancestor-spirit-card,
  .dungeon-lore-card{
    width:min(430px,calc(100vw - 24px));
    grid-template-columns:1fr;
    max-height:calc(100vh - 24px);
    overflow-y:auto;
  }
  .ancestor-spirit-card .ancestor-portrait-frame,
  .dungeon-lore-card .ancestor-portrait-frame{
    min-height:0;
    height:136px;
    padding:7px;
    border-right:0;
    border-bottom:2px solid #5d462b;
  }
  .ancestor-spirit-card .ancestor-portrait-frame img,
  .dungeon-lore-card .ancestor-portrait-frame img{
    width:120px;
    height:120px;
    max-width:120px;
    max-height:120px;
  }
  .ancestor-spirit-card .ancestor-spirit-copy,
  .dungeon-lore-card .ancestor-spirit-copy{
    padding:12px 14px;
    max-height:none;
    overflow:visible;
  }
  .ancestor-spirit-card .ancestor-next-btn,
  .dungeon-lore-card .ancestor-next-btn{align-self:stretch}
}



/* 2026-08-25 canonical Gold/Silber input: one visual + parsing path for every manual money amount. */
.lorheim-money-overlay{position:fixed;inset:0;z-index:13050;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}
.lorheim-money-dialog{position:relative;width:min(430px,calc(100vw - 30px));box-sizing:border-box;border:2px solid #b7854b;outline:1px solid rgba(255,211,133,.28);outline-offset:-6px;background:linear-gradient(145deg,#21150d,#100b07 62%,#080503);box-shadow:0 18px 48px rgba(0,0,0,.72),inset 0 0 24px rgba(213,151,73,.08);padding:17px 18px 15px;color:#e8d4b4;font:12px/1.35 "Courier New",monospace}
.lorheim-money-dialog h3{margin:0 34px 13px 0;color:#ffd685;font:700 18px Georgia,"Times New Roman",serif;text-shadow:0 2px #000}

.lorheim-money-close{position:absolute;right:10px;top:8px;}
.lorheim-money-info{display:grid;gap:4px;margin-bottom:12px;padding:8px 9px;border:1px solid rgba(183,133,75,.28);background:rgba(0,0,0,.2)}
.lorheim-money-input{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 10px}
.lorheim-money-denom{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:7px;align-items:center;min-width:0}.lorheim-money-label{display:grid!important;place-items:center!important;width:20px;height:36px;line-height:36px;white-space:nowrap!important;overflow:visible!important}.lorheim-money-label img{display:block;width:18px;height:18px;object-fit:contain;margin:0!important;vertical-align:middle!important}.lorheim-money-denom>b{color:#f3cc85;font:700 11px/36px "Courier New",monospace;white-space:nowrap}.lorheim-money-denom input{width:100%;height:36px;box-sizing:border-box;padding:6px 8px;border:1px solid #765333;background:#100b07;color:#fff0cf;font:700 14px "Courier New",monospace;outline:none}.lorheim-money-denom input:focus{border-color:#d29a55;box-shadow:0 0 0 1px rgba(210,154,85,.2)}
.lorheim-money-total{min-height:24px;display:flex;align-items:center;gap:7px;padding:7px 8px;background:rgba(213,151,73,.08);border:1px solid rgba(213,151,73,.2)}.lorheim-money-status{min-height:17px;margin:7px 0;color:#e79573}.lorheim-money-actions{display:flex;gap:8px;justify-content:flex-end}.lorheim-money-actions .button{min-width:110px}
.bank-money-mode-dialog{position:fixed;z-index:13060;display:flex;gap:6px;padding:7px;border:1px solid #b7854b;background:#120c08;box-shadow:0 8px 24px rgba(0,0,0,.65)}.bank-money-mode-dialog .active{outline:1px solid #f1bd68}
.quest-detail-box em{min-width:0;overflow:hidden}.quest-detail-box em .lorheim-currency{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}.quest-detail-box em .lorheim-currency .currency-inline-icon{flex:0 0 16px;margin-right:3px!important}.quest-detail-box em .currency-gap{flex:0 0 8px;overflow:visible!important}
.quest-list-main small .lorheim-currency{display:inline-flex;align-items:center;vertical-align:middle}
@media(max-width:560px){.lorheim-money-input{grid-template-columns:1fr}.lorheim-money-dialog{padding:15px 13px}.lorheim-money-actions{flex-direction:column}.lorheim-money-actions .button{width:100%}}

/* 2026-08-25 Sidebar typography single source: compact 12px Courier. */
#lorheimSideHud,
#lorheimSideHud button,
#lorheimSideHud .lorheim-side-button,
#lorheimSideHud #skillHubButton,
#lorheimSideHud #questHudButton,
#lorheimSideHud .sidebar-tier-rank {
  font-family:"Courier New",Courier,monospace!important;
  font-size:12px!important;
}


/* === 2026-08-25 canonical compact UI controls === */
/* Elara/quest currency: requirement only; never mix player wallet into the progress line. */
.quest-currency-required{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#d7bd91}.quest-currency-required>span:first-child{color:#a98b63;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.quest-currency-separator{display:none!important}.lorheim-money-required{display:flex;align-items:center;justify-content:space-between;gap:14px}.lorheim-money-required>span{color:#b99a70;text-transform:uppercase;font-size:10px;letter-spacing:.06em}.lorheim-money-required strong{display:inline-flex;align-items:center;white-space:nowrap}.lorheim-currency{display:inline-flex!important;align-items:center!important;gap:10px!important;white-space:nowrap!important}.lorheim-currency .system-inline-icon{display:inline-block!important;vertical-align:middle!important;margin:0 4px 0 0!important;transform:none!important}.currency-gap{display:inline-block;width:4px}

/* Canonical money input: icons, number and explicit Lorheim steppers share one baseline. */
.lorheim-money-denom{display:grid!important;grid-template-columns:20px 26px minmax(60px,1fr) 26px auto!important;gap:8px!important;align-items:center!important;min-width:0}.lorheim-money-label{width:20px!important;height:36px!important;display:grid!important;place-items:center!important}.lorheim-money-label img{width:18px!important;height:18px!important;margin:0!important;display:block!important}.lorheim-money-denom input,.lorheim-number-input,.craft-quantity-input,.market-money-input-v2 input,#lobbyJoinCodeInput,.lobby-search-config>input{appearance:textfield;-moz-appearance:textfield;background:#100b07!important;border:1px solid #765333!important;color:#fff0cf!important;font-family:"Courier New",monospace!important;outline:none!important;box-shadow:inset 0 0 0 1px rgba(255,215,139,.04)!important}.lorheim-money-denom input::-webkit-inner-spin-button,.lorheim-money-denom input::-webkit-outer-spin-button,.lorheim-number-input::-webkit-inner-spin-button,.lorheim-number-input::-webkit-outer-spin-button,.craft-quantity-input::-webkit-inner-spin-button,.craft-quantity-input::-webkit-outer-spin-button,.market-money-input-v2 input::-webkit-inner-spin-button,.market-money-input-v2 input::-webkit-outer-spin-button::-webkit-inner-spin-button::-webkit-outer-spin-button{appearance:none;margin:0}.lorheim-money-step,.lorheim-number-step{width:26px;height:28px;padding:0;border:1px solid #8a6238;background:linear-gradient(#362416,#1a110b);color:#efcc91;font:700 16px/1 "Courier New",monospace;display:grid;place-items:center;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,216,150,.07)}.lorheim-money-step:hover,.lorheim-number-step:hover{border-color:#c69250;background:#432b18;color:#fff0c7}.lorheim-money-denom>b{margin-left:2px!important;line-height:1!important}.lorheim-money-total{margin-top:12px}

/* Shrine contribution popup: only actionable information, breathable controls. */
.shrine-contrib-meta{display:none!important}.shrine-contrib-need{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:8px 0 14px;padding:9px 10px;border:1px solid rgba(213,151,73,.28);background:rgba(0,0,0,.18);font:700 11px "Courier New",monospace;color:#bca17b}.shrine-contrib-need b{color:#f0c982;font-size:12px}.shrine-amount-line{display:flex!important;align-items:center!important;gap:12px!important}.shrine-amount-line>.lorheim-money-input{flex:1;margin:0!important}.lorheim-number-stepper{display:grid;grid-template-columns:28px minmax(70px,1fr) 28px;gap:8px;align-items:center;flex:1}.shrine-amount-line>#shrineMaxBtn{flex:0 0 auto;margin-left:3px}

/* Canonical checkbox treatment (native white boxes removed, semantics remain native input). */
input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:15px;height:15px;min-width:15px;border:1px solid #8a6238;background:#100b07;display:inline-grid;place-content:center;vertical-align:middle;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,215,139,.05)}input[type="checkbox"]::before{content:"";width:7px;height:7px;transform:scale(0);background:#d6a35f;box-shadow:0 0 4px rgba(214,163,95,.45)}input[type="checkbox"]:checked::before{transform:scale(1)}input[type="checkbox"]:focus-visible{outline:1px solid #e1b66f;outline-offset:2px}input[type="checkbox"]:disabled{opacity:.45;cursor:default}

/* Lobby code inputs: no browser-white form surfaces. */
#lobbyJoinCodeInput{box-sizing:border-box;width:100%;height:34px;padding:7px 9px;border-color:#5d462b!important;background:linear-gradient(180deg,#15100c,#090604)!important;color:#f4d69c!important;font:700 13px/1 "Courier New",monospace!important;letter-spacing:.08em;text-transform:uppercase}#lobbyJoinCodeInput:focus{border-color:#b7854b!important;box-shadow:0 0 0 1px rgba(183,133,75,.22)!important}.lobby-code-box{border-color:#5d462b!important;background:linear-gradient(180deg,rgba(31,22,14,.9),rgba(7,5,4,.9))!important;box-shadow:inset 0 0 0 1px rgba(255,215,139,.05)!important}

/* Page-local back buttons must never float above newly opened UI layers. */
.village-back-btn,.village-back-button,.quest-back,.lobby-back-btn,[data-back-to-village],[data-well-back]{position:relative!important;z-index:2!important}.character-modal,.tier-modal,.lorheim-options-view,.lorheim-options-overlay,.order-modal-overlay,.lorheim-money-overlay,#compendiumView,#achievementsView{isolation:isolate}


/* ================================================================
   DUNGEON ARENA V2 — sketch-faithful fixed geometry
   ================================================================ */
.dungeon-banner-wrap{position:relative!important;isolation:isolate}
.dungeon-arena{position:absolute;inset:0;z-index:4;overflow:hidden;font-family:"Courier New",Courier,monospace;color:#f9e4bb;pointer-events:none;contain:layout paint style}
.dungeon-arena-shade{position:absolute;inset:0;background:rgba(3,3,3,.60);z-index:-1}
.dungeon-arena::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,transparent 0 34%,rgba(0,0,0,.10) 68%,rgba(0,0,0,.28) 100%);z-index:-1}
.dungeon-arena-headline{position:absolute;top:4%;left:50%;transform:translateX(-50%);font:700 20px/1 "Courier New",Courier,monospace;letter-spacing:.09em;color:#efb35b;text-shadow:0 2px 2px #000;white-space:nowrap}
.dungeon-arena-party,.dungeon-arena-enemies{position:absolute;inset:0}
.dungeon-arena-actor{--slot-y:50%;position:absolute;top:var(--slot-y);transform:translateY(-50%);width:158px;height:86px;will-change:transform,filter,opacity}
.dungeon-arena-actor[data-slot="1"]{--slot-y:20%}.dungeon-arena-actor[data-slot="2"]{--slot-y:35%}.dungeon-arena-actor[data-slot="3"]{--slot-y:50%}.dungeon-arena-actor[data-slot="4"]{--slot-y:65%}.dungeon-arena-actor[data-slot="5"]{--slot-y:80%}
.dungeon-arena-actor.player{left:42px}.dungeon-arena-actor.enemy{right:42px}
.dungeon-arena-actor-inner{position:absolute;inset:0;display:grid;grid-template-rows:54px 13px 20px;align-content:center;transform:translateZ(0)}
.dungeon-arena-toprow{display:flex;align-items:flex-end;gap:7px;min-width:0;height:54px}
.dungeon-arena-actor.enemy .dungeon-arena-toprow{flex-direction:row}
.dungeon-arena-spritebox{position:relative;width:54px;height:54px;flex:0 0 54px;display:grid;place-items:end center;overflow:visible}
.dungeon-arena-sprite{display:block;max-width:52px;max-height:52px;width:auto;height:auto;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 2px rgba(0,0,0,.72));transform-origin:center bottom}
.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:38px;max-height:38px}
.dungeon-arena-actor.is-miniboss .dungeon-arena-sprite{max-width:60px;max-height:60px}.dungeon-arena-actor.is-boss .dungeon-arena-sprite{max-width:76px;max-height:76px}
.dungeon-arena-skull{display:none;width:50px;height:50px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 2px rgba(0,0,0,.7))}
.dungeon-arena-actor.player .dungeon-arena-skull{width:32px;height:32px}.dungeon-arena-actor.is-boss .dungeon-arena-skull{width:80px;height:80px}.dungeon-arena-actor.dead .dungeon-arena-sprite{display:none}.dungeon-arena-actor.dead .dungeon-arena-skull{display:block}
.dungeon-arena-name{min-width:0;padding-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 14px/1 "Courier New",Courier,monospace;color:#efb35b;text-shadow:0 2px 2px #000}
.dungeon-arena-hp{position:relative;width:92px;height:11px;margin-left:0;border:1px solid rgba(9,7,5,.95);background:rgba(14,11,9,.94);box-shadow:0 1px 2px rgba(0,0,0,.7);overflow:hidden}
.dungeon-arena-actor.enemy .dungeon-arena-hp{margin-left:0}
.dungeon-arena-hp-fill{position:absolute;left:0;top:0;bottom:0;width:100%;background:hsl(calc(var(--hp,100)*1.2),72%,42%);transition:width .13s ease-out,background .13s linear,filter .13s ease-out;will-change:width}
.dungeon-arena-hp-text{position:absolute;inset:0;z-index:2;display:grid;place-items:center;color:#080604;font:700 9px/10px "Courier New",Courier,monospace;text-shadow:0 1px rgba(255,255,255,.22);white-space:nowrap}.dungeon-arena[data-hp-mode="none"] .dungeon-arena-hp-text{display:none}
.dungeon-arena-statuses{width:120px;height:20px;display:flex;align-items:center;gap:2px;overflow:hidden}.dungeon-arena-statuses img{width:20px;height:20px;object-fit:contain;image-rendering:auto;animation:dungeonStatusIn .20s ease-out both}
@keyframes dungeonStatusIn{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}
.dungeon-arena-float{position:absolute;left:47px;top:69px;min-width:48px;height:18px;text-align:center;opacity:0;z-index:6;white-space:nowrap}.dungeon-arena-float.show{animation:dungeonArenaFloat .68s ease-out both}.dungeon-arena-float span{font:700 13px/1 "Courier New",Courier,monospace;text-shadow:0 1px 2px #000,0 0 5px currentColor}.dungeon-arena-float .damage{color:#ff5649}.dungeon-arena-float .heal{color:#62e379}.dungeon-arena-float .fire{color:#ff9a38}.dungeon-arena-float .poison{color:#73d55f}.dungeon-arena-float .frost{color:#7fd6ff}.dungeon-arena-float .shadow,.dungeon-arena-float .shadowcurse{color:#c883ff}
@keyframes dungeonArenaFloat{0%{opacity:0;transform:translateY(4px) scale(.85)}18%{opacity:1;transform:translateY(0) scale(1.08)}65%{opacity:1}100%{opacity:0;transform:translateY(-8px) scale(.94)}}
.dungeon-arena-impact{position:absolute;left:52px;top:22px;width:32px;height:32px;display:grid;place-items:center;opacity:0;z-index:10}.dungeon-arena-impact img{width:22px;height:22px;object-fit:contain;image-rendering:auto}.dungeon-arena-impact.show{animation:dungeonArenaImpact .78s cubic-bezier(.2,.85,.25,1) both}@keyframes dungeonArenaImpact{0%{opacity:0;transform:scale(.45)}18%{opacity:1;transform:scale(2)}38%{transform:scale(1.1)}72%{opacity:1}100%{opacity:0;transform:scale(.7)}}
.dungeon-arena-combat-copy{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(52%,610px);min-height:90px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:3px 6px;overflow:visible;text-shadow:0 2px 3px #000,0 0 7px #000}
.dungeon-arena-mainline,.dungeon-arena-sublines>div{max-width:100%;white-space:nowrap;overflow:visible;font:700 17px/1.25 "Courier New",Courier,monospace;color:#efb35b}.dungeon-arena-sublines{margin-top:4px}.dungeon-arena-sublines>div{font-size:14px;color:#f3d49b}.dungeon-arena-mainline.is-room-clear{font-size:20px!important;letter-spacing:.08em;color:#f2c06b}
.dungeon-arena-start-effect{position:absolute;top:10%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;opacity:0;z-index:20;white-space:nowrap;font:700 14px "Courier New",Courier,monospace;color:#f4cf91;text-shadow:0 2px 2px #000}.dungeon-arena-start-effect img{width:26px;height:26px;object-fit:contain;image-rendering:auto}.dungeon-arena-start-effect.show{animation:dungeonStartEffect .80s ease-out both}@keyframes dungeonStartEffect{0%{opacity:0;transform:translateX(-50%) scale(.5)}20%{opacity:1;transform:translateX(-50%) scale(1.75)}43%{transform:translateX(-50%) scale(1)}72%{opacity:1}100%{opacity:0;transform:translateX(-50%) scale(.9)}}
.dungeon-arena-potion-pop{position:absolute;inset:50% auto auto 50%;width:32px;height:32px;object-fit:contain;image-rendering:auto;z-index:20;animation:dungeonPotionPop .80s ease-out both}@keyframes dungeonPotionPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.85)}45%{transform:translate(-50%,-50%) scale(1)}72%{opacity:1}100%{opacity:0;transform:translate(-50%,-58%) scale(.85)}}
.dungeon-arena-actor.anim-lunge.player{animation:dungeonLungeRight .48s ease-in-out}.dungeon-arena-actor.anim-lunge.enemy{animation:dungeonLungeLeft .48s ease-in-out}@keyframes dungeonLungeRight{0%,100%{transform:translateY(-50%) translateX(0)}34%{transform:translateY(-50%) translateX(46px)}58%{transform:translateY(-50%) translateX(38px)}}@keyframes dungeonLungeLeft{0%,100%{transform:translateY(-50%) translateX(0)}34%{transform:translateY(-50%) translateX(-46px)}58%{transform:translateY(-50%) translateX(-38px)}}
.dungeon-arena-actor.anim-hit{animation:dungeonHitShake .42s ease-out}.dungeon-arena-actor.anim-block{animation:dungeonBlockKick .48s ease-out}.dungeon-arena-actor.anim-dodge.player{animation:dungeonDodgeLeft .56s ease-out}.dungeon-arena-actor.anim-dodge.enemy{animation:dungeonDodgeRight .56s ease-out}.dungeon-arena-actor.anim-heal .dungeon-arena-hp{animation:dungeonHealGlow .70s ease-out}.dungeon-arena-actor.anim-death{animation:dungeonDeathFlash .30s ease-out}@keyframes dungeonHitShake{0%,100%{transform:translateY(-50%) translateX(0)}22%{transform:translateY(-50%) translateX(-7px)}40%{transform:translateY(-50%) translateX(6px)}58%{transform:translateY(-50%) translateX(-3px)}}@keyframes dungeonBlockKick{0%,100%{transform:translateY(-50%) translateX(0)}25%{transform:translateY(-50%) translateX(-3px) scale(.99)}45%{transform:translateY(-50%) translateX(2px)}}@keyframes dungeonDodgeLeft{0%,100%{transform:translateY(-50%) translateX(0)}28%{transform:translateY(-50%) translateX(-18px)}58%{transform:translateY(-50%) translateX(-12px)}}@keyframes dungeonDodgeRight{0%,100%{transform:translateY(-50%) translateX(0)}28%{transform:translateY(-50%) translateX(18px)}58%{transform:translateY(-50%) translateX(12px)}}@keyframes dungeonHealGlow{0%,100%{box-shadow:0 1px 2px rgba(0,0,0,.7)}28%{box-shadow:0 0 15px rgba(84,255,120,.92),inset 0 0 7px rgba(151,255,167,.72)}}@keyframes dungeonDeathFlash{0%{filter:none}35%{filter:brightness(1.75) sepia(1) saturate(8) hue-rotate(320deg)}100%{filter:none}}
.dungeon-arena.room-transition .dungeon-arena-actor.dead{animation:dungeonCorpseDrop .72s ease-in forwards}.dungeon-arena.room-transition .dungeon-arena-actor.player:not(.dead){animation:dungeonPartyExit .72s ease-in forwards}@keyframes dungeonCorpseDrop{to{opacity:0;transform:translateY(calc(-50% + 38px)) scale(.72)}}@keyframes dungeonPartyExit{to{opacity:0;transform:translateY(-50%) translateX(52px)}}
.dungeon-arena .damage-word.fire{color:#ff9a38}.dungeon-arena .damage-word.poison{color:#78d866}.dungeon-arena .damage-word.frost{color:#80d5ff}.dungeon-arena .damage-word.shadow{color:#c184ff}.dungeon-arena .damage-word.bleed{color:#f16a6a}.dungeon-arena-statuses img.expiring{animation:dungeonStatusExpire .42s linear both}@keyframes dungeonStatusExpire{0%,22%,48%,72%{opacity:1}12%,35%,60%,100%{opacity:0}}
@media(max-width:760px){.dungeon-arena-actor{width:122px;height:72px}.dungeon-arena-actor.player{left:14px}.dungeon-arena-actor.enemy{right:14px}.dungeon-arena-actor-inner{grid-template-rows:43px 10px 18px}.dungeon-arena-toprow{height:43px;gap:4px}.dungeon-arena-spritebox{width:42px;height:42px;flex-basis:42px}.dungeon-arena-sprite{max-width:40px;max-height:40px}.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:29px;max-height:29px}.dungeon-arena-name{font-size:10px;padding-bottom:5px}.dungeon-arena-hp{width:76px;height:9px}.dungeon-arena-hp-text{font-size:7px}.dungeon-arena-statuses{width:100px;height:18px}.dungeon-arena-statuses img{width:18px;height:18px}.dungeon-arena-combat-copy{width:48%;min-height:62px;padding:1px}.dungeon-arena-mainline,.dungeon-arena-sublines>div{font-size:11px}.dungeon-arena-sublines>div{font-size:10px}.dungeon-arena-headline{font-size:13px}.dungeon-arena-float{left:37px;top:55px}.dungeon-arena-impact{left:40px;top:17px}.dungeon-arena-actor.anim-lunge.player{animation-name:dungeonLungeRightMobile}.dungeon-arena-actor.anim-lunge.enemy{animation-name:dungeonLungeLeftMobile}@keyframes dungeonLungeRightMobile{0%,100%{transform:translateY(-50%) translateX(0)}38%{transform:translateY(-50%) translateX(22px)}}@keyframes dungeonLungeLeftMobile{0%,100%{transform:translateY(-50%) translateX(0)}38%{transform:translateY(-50%) translateX(-22px)}}}
@media(prefers-reduced-motion:reduce){.dungeon-arena *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Dungeon Arena V3 — exact banner-safe composition */
.dungeon-arena-headline{top:3.4%;font-size:19px;letter-spacing:.09em;color:#efb35b}
.dungeon-arena-roomname{position:absolute;top:8.4%;left:50%;transform:translateX(-50%);max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font:700 13px/1.1 "Courier New",Courier,monospace;letter-spacing:.035em;color:#d95445;text-shadow:0 2px 3px #000,0 0 6px #000}
.dungeon-arena-actor{width:150px;height:96px}
.dungeon-arena-actor.player{left:26px}
.dungeon-arena-actor.enemy{right:26px}
.dungeon-arena-actor-inner{grid-template-rows:54px 11px 12px 20px;align-content:center}
.dungeon-arena-toprow{height:54px;gap:7px}
.dungeon-arena-spritebox{width:50px;height:54px;flex:0 0 50px}
.dungeon-arena-name{padding-bottom:7px;font-size:14px;color:#f1ba68}
.dungeon-arena-hp{width:88px;height:10px;margin:0;border-color:rgba(5,5,4,.96);background:#0d0b09;overflow:hidden}
.dungeon-arena-hp-fill{background:#23B14D;transition:width .12s ease-out,background .12s linear,filter .12s ease-out}
.dungeon-arena.is-reconciling *,.dungeon-arena.is-reconciling *::before,.dungeon-arena.is-reconciling *::after{animation:none!important;transition:none!important}
.dungeon-arena-hp-text{position:static;width:88px;height:12px;display:flex;align-items:flex-start;justify-content:center;color:#fff;font:700 8px/11px "Courier New",Courier,monospace;text-shadow:0 1px 2px #000,0 0 3px #000;white-space:nowrap;overflow:visible}
.dungeon-arena[data-hp-mode="none"] .dungeon-arena-hp-text{visibility:hidden;display:flex}
.dungeon-arena-statuses{width:112px;height:20px;margin-top:1px;display:flex;align-items:flex-start;gap:2px;overflow:hidden}
.dungeon-arena-statuses img{width:20px;height:20px}
.dungeon-arena-skull{width:34px;height:34px}
.dungeon-arena-actor.player .dungeon-arena-skull{width:24px;height:24px}
.dungeon-arena-actor.is-miniboss .dungeon-arena-skull{width:40px;height:40px}
.dungeon-arena-actor.is-boss .dungeon-arena-skull{width:48px;height:48px}
.dungeon-arena-ability-pop{position:absolute;left:50%;top:50%;width:30px;height:30px;display:grid;place-items:center;z-index:22;opacity:0;pointer-events:none}
.dungeon-arena-ability-pop img{max-width:28px;max-height:28px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.78))}
.dungeon-arena-ability-pop.show{animation:dungeonActorAbilityPop .80s cubic-bezier(.2,.82,.25,1) both}
@keyframes dungeonActorAbilityPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}19%{opacity:1;transform:translate(-50%,-50%) scale(1.85)}42%{transform:translate(-50%,-50%) scale(1)}72%{opacity:1}100%{opacity:0;transform:translate(-50%,-58%) scale(.82)}}
.dungeon-arena-float{left:40px;top:78px}
.dungeon-arena-impact{left:43px;top:21px}
.dungeon-arena-combat-copy{left:220px;right:220px;top:53%;transform:translateY(-50%);width:auto;max-width:none;min-height:90px;padding:4px 10px;box-sizing:border-box;overflow:hidden}
.dungeon-arena-mainline,.dungeon-arena-sublines>div{max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:balance;font:700 16px/1.28 "Courier New",Courier,monospace;color:#f0bd72;text-shadow:0 2px 3px #000,0 0 7px #000}
.dungeon-arena-sublines{width:100%;margin-top:4px;text-align:center}
.dungeon-arena-sublines>div{font-size:14px;color:#f1d19a}
.dungeon-arena-mainline.is-room-clear{font-size:20px!important;white-space:nowrap}
.dungeon-clear-panels-top{margin:0 0 10px}
.dungeon-header>.dungeon-clear-panels-top{max-width:100%}

@media(max-width:760px){
  .dungeon-arena-roomname{top:8.6%;max-width:48%;font-size:9px}
  .dungeon-arena-actor{width:116px;height:82px}
  .dungeon-arena-actor.player{left:8px}.dungeon-arena-actor.enemy{right:8px}
  .dungeon-arena-actor-inner{grid-template-rows:43px 9px 10px 18px}
  .dungeon-arena-hp{width:70px;height:8px}.dungeon-arena-hp-text{width:70px;height:10px;font-size:7px;line-height:9px}
  .dungeon-arena-statuses{width:92px;height:18px}.dungeon-arena-statuses img{width:18px;height:18px}
  .dungeon-arena-skull{width:28px;height:28px}.dungeon-arena-actor.player .dungeon-arena-skull{width:20px;height:20px}.dungeon-arena-actor.is-boss .dungeon-arena-skull{width:38px;height:38px}
  .dungeon-arena-combat-copy{left:128px;right:128px;top:53%;min-height:58px;padding:2px 4px}
  .dungeon-arena-mainline,.dungeon-arena-sublines>div{font-size:10px;line-height:1.2}.dungeon-arena-sublines>div{font-size:9px}
}

/* ================================================================
   2026-08-26 SHRINE + DUNGEON ARENA precision fixes
   ================================================================ */
/* Shrine modals: the visible X is the real hit target and always remains inside the dialog. */
#shrineModalRoot.order-modal-overlay{padding:18px!important;box-sizing:border-box!important;overflow:auto!important;z-index:10020!important;}
#shrineModalRoot .shrine-modal-box{position:relative!important;overflow:visible!important;padding-top:42px!important;box-sizing:border-box!important;}

#shrineModalRoot .shrine-modal-close{
  position:absolute!important;top:8px!important;right:8px!important;left:auto!important;
  z-index:25!important;pointer-events:auto!important;overflow:hidden!important;
}


/* Shrine contribution controls: never squeeze denomination steppers/buttons into each other. */
#shrineModalRoot .shrine-amount-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:end!important;width:100%!important;}
#shrineModalRoot .shrine-amount-line>.lorheim-money-input{min-width:0!important;width:100%!important;display:grid!important;gap:8px!important;}
#shrineModalRoot .lorheim-money-denom{display:grid!important;grid-template-columns:22px 28px minmax(68px,1fr) 28px 48px!important;gap:7px!important;align-items:center!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;}
#shrineModalRoot .lorheim-money-denom input{width:100%!important;min-width:0!important;height:32px!important;box-sizing:border-box!important;padding:5px 7px!important;}
#shrineModalRoot .lorheim-money-step{width:28px!important;height:28px!important;min-width:28px!important;padding:0!important;}
#shrineModalRoot #shrineMaxBtn{min-width:58px!important;height:34px!important;margin:0!important;align-self:end!important;}
#shrineModalRoot .lorheim-number-stepper{display:grid!important;grid-template-columns:30px minmax(82px,1fr) 30px!important;gap:8px!important;min-width:0!important;}
@media(max-width:520px){
  #shrineModalRoot .shrine-amount-line{grid-template-columns:1fr!important;}
  #shrineModalRoot #shrineMaxBtn{width:100%!important;}
  #shrineModalRoot .lorheim-money-denom{grid-template-columns:20px 28px minmax(56px,1fr) 28px 42px!important;gap:5px!important;}
}

/* Arena: exact vertical actor stack — sprite, name, HP bar, HP number. */
.dungeon-arena-actor{width:116px!important;height:104px!important;}
.dungeon-arena-actor.player{left:26px!important;}.dungeon-arena-actor.enemy{right:26px!important;}
.dungeon-arena-actor-inner{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:0!important;}
.dungeon-arena-toprow{display:contents!important;}
.dungeon-arena-spritebox{position:relative!important;width:76px!important;height:36px!important;flex:0 0 36px!important;display:grid!important;place-items:end start!important;overflow:visible!important;margin:0 0 5px 0!important;}
.dungeon-arena-sprite{max-width:36px!important;max-height:36px!important;margin:0!important;object-fit:contain!important;transform-origin:left bottom!important;}
.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:30px!important;max-height:30px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-sprite{max-width:44px!important;max-height:44px!important;}
.dungeon-arena-actor.is-boss .dungeon-arena-sprite{max-width:54px!important;max-height:54px!important;}
.dungeon-arena-name{width:82px!important;max-width:82px!important;min-width:0!important;margin:0 0 5px 0!important;padding:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:left!important;font:700 10px/1.05 "Courier New",Courier,monospace!important;color:#efb35b!important;}
.dungeon-arena-hp{width:82px!important;height:9px!important;margin:0 0 3px 0!important;align-self:flex-start!important;}
.dungeon-arena-hp-text{position:static!important;width:82px!important;height:auto!important;min-height:9px!important;margin:0!important;padding:0!important;display:block!important;text-align:left!important;place-items:unset!important;color:#f4d6a2!important;font:700 8px/9px "Courier New",Courier,monospace!important;text-shadow:0 1px 2px #000!important;white-space:nowrap!important;}
.dungeon-arena[data-hp-mode="none"] .dungeon-arena-hp-text{display:none!important;}
.dungeon-arena-statuses{width:88px!important;height:18px!important;margin-top:2px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:2px!important;overflow:visible!important;}
.dungeon-arena-statuses img{width:17px!important;height:17px!important;}
/* Ability is a separate pop above the portrait, never inside/overlaid in the race icon. */
.dungeon-arena-ability-pop{position:absolute!important;left:0!important;top:-17px!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;z-index:18!important;pointer-events:none!important;}
.dungeon-arena-ability-pop img{display:block!important;width:25px!important;height:25px!important;object-fit:contain!important;image-rendering:auto!important;filter:drop-shadow(0 2px 2px rgba(0,0,0,.8))!important;}
/* Death: one short red flash only — no hue/rainbow colour sweep. */
.dungeon-arena-actor.anim-death{animation:dungeonDeathRedFlash .26s ease-out!important;}
@keyframes dungeonDeathRedFlash{0%{filter:none}38%{filter:brightness(1.45) drop-shadow(0 0 8px rgba(220,35,28,.95))}100%{filter:none}}

@media(max-width:760px){
  .dungeon-arena-actor{width:92px!important;height:88px!important;}
  .dungeon-arena-actor.player{left:8px!important;}.dungeon-arena-actor.enemy{right:8px!important;}
  .dungeon-arena-spritebox{width:64px!important;height:30px!important;flex-basis:30px!important;margin-bottom:4px!important;}
  .dungeon-arena-sprite{max-width:30px!important;max-height:30px!important;}.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:25px!important;max-height:25px!important;}
  .dungeon-arena-name,.dungeon-arena-hp,.dungeon-arena-hp-text{width:68px!important;max-width:68px!important;}
  .dungeon-arena-name{font-size:8px!important;margin-bottom:4px!important;}.dungeon-arena-hp{height:7px!important;}.dungeon-arena-hp-text{font-size:7px!important;line-height:8px!important;}
  .dungeon-arena-ability-pop{top:-14px!important;width:23px!important;height:23px!important;}.dungeon-arena-ability-pop img{width:21px!important;height:21px!important;}
}

/* Kartograf: bewusst dieselben Questgeber-Panels, nur als Hinterzimmer-Overlay. */
.cartographer-overlay{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.72)}
.cartographer-overlay.open{display:flex}
.cartographer-modal{position:relative;width:min(720px,96vw);max-height:90vh;overflow:auto}

.cartographer-modal>.overlay-close-x{position:absolute!important;top:8px!important;right:8px!important;z-index:20!important;}
.cartographer-modal .quest-board-panel{min-height:330px}
@media(max-width:860px){.cartographer-overlay{padding:8px}.cartographer-modal{width:min(620px,98vw)}}

/* Cartographer one-shot receipts */
.cartographer-survey-toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(.98);z-index:24000;width:min(430px,calc(100vw - 28px));box-sizing:border-box;padding:15px 28px 14px 18px;border:1px solid #8d6b3f;background:linear-gradient(180deg,#241a12,#15100c);box-shadow:0 10px 34px #000c;text-align:center;opacity:0;transition:.18s ease;pointer-events:auto}
.cartographer-survey-toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cartographer-survey-toast strong{display:block;font-family:var(--font-heading,Georgia,serif);font-size:18px;color:#ead7ae;letter-spacing:.02em}
.cartographer-survey-toast span{display:block;margin-top:6px;font-family:"Courier New",monospace;font-size:12px;line-height:1.45;color:#c7b89b}

.cartographer-survey-close{position:absolute;top:4px;right:5px;}

.cartographer-dungeon-unlock-popup{position:fixed;inset:0;z-index:23950;display:grid;place-items:center;background:#0000;opacity:0;pointer-events:none;transition:.2s ease}
.cartographer-dungeon-unlock-popup.show{opacity:1}
.cartographer-dungeon-unlock-card{min-width:300px;padding:18px 24px;border:1px solid #a67a3f;background:linear-gradient(180deg,#2a1d12,#140f0b);box-shadow:0 12px 40px #000c;text-align:center}
.cartographer-dungeon-unlock-card strong{display:block;font-family:var(--font-heading,Georgia,serif);font-size:22px;color:#f2d596}
.cartographer-dungeon-unlock-card span{display:block;margin-top:6px;font-family:"Courier New",monospace;font-size:12px;color:#d5c5a6}


/* 2026-08-26 Reward feedback + Brunnenfee + compact mobile character/faction layout */
#lorheimGoldHud .currency-hud-silver{display:none!important;}
.currency-gain-fx{position:fixed;z-index:12055;display:flex;align-items:center;gap:5px;pointer-events:none;will-change:transform,opacity;color:#f8d991;font:900 12px/1 "Courier New",monospace;text-shadow:0 2px 2px #000,0 0 7px rgba(255,190,64,.55);white-space:nowrap;}
.currency-gain-fx img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 0 6px rgba(255,190,64,.62));}
#lorheimGoldHud.currency-gain-target-pulse{animation:currencyGainTargetPulse .52s ease-out;}
@keyframes currencyGainTargetPulse{0%{filter:none}45%{filter:brightness(1.45) drop-shadow(0 0 8px rgba(255,206,90,.95))}100%{filter:none}}
@media(prefers-reduced-motion:reduce){.currency-gain-fx{display:none!important}#lorheimGoldHud.currency-gain-target-pulse{animation:none!important}}

.lorheim-well-fairy-overlay{position:fixed;inset:0;z-index:12080;display:grid;place-items:center;padding:16px;background:rgba(2,2,1,.72);backdrop-filter:blur(2px);opacity:0;transition:opacity .18s ease;}
.lorheim-well-fairy-overlay.show{opacity:1;}
.lorheim-well-fairy-panel{position:relative;isolation:isolate;width:min(470px,94vw);overflow:hidden;text-align:center;padding:28px 28px 24px;border:2px solid #d9a83e;outline:1px solid rgba(255,227,138,.42);outline-offset:-7px;background:radial-gradient(circle at 50% 18%,rgba(255,221,91,.16),transparent 36%),linear-gradient(155deg,#171007,#080604 70%,#030201);box-shadow:0 0 20px rgba(255,196,54,.5),0 0 70px rgba(255,171,23,.22),inset 0 0 36px rgba(255,187,45,.08);}

.lorheim-well-fairy-close{position:absolute;right:8px;top:8px;z-index:4;}
.lorheim-well-fairy-kicker{color:#ffd76c;font:900 11px/1.2 "Courier New",monospace;letter-spacing:.14em;text-shadow:0 0 10px rgba(255,198,55,.65);}
.lorheim-well-fairy-sprite{display:block;width:96px;height:96px;object-fit:contain;margin:12px auto 7px;image-rendering:auto;filter:drop-shadow(0 0 9px rgba(255,228,117,.68)) drop-shadow(0 10px 10px rgba(0,0,0,.7));}
.lorheim-well-fairy-panel h2{margin:4px 0 12px;color:#ffe09a;font:900 23px/1.15 Georgia,"Times New Roman",serif;text-shadow:0 2px #000,0 0 14px rgba(255,194,53,.42);}
.lorheim-well-fairy-panel p{margin:0 auto 14px;max-width:390px;color:#ead6ad;font:13px/1.55 Georgia,"Times New Roman",serif;}
.lorheim-well-fairy-shard{display:flex;justify-content:center;align-items:center;gap:7px;margin:8px auto;color:#ffd873;font:900 13px/1.3 "Courier New",monospace;}
.lorheim-well-fairy-shard img{width:30px;height:30px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 0 6px rgba(255,215,87,.7));}
.lorheim-well-fairy-panel small{display:block;color:#bfa578;font:12px/1.45 "Courier New",monospace;}

@media(max-width:600px){
  #characterModal .lorheim-character-slots{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;height:auto!important;gap:7px!important;}
  #characterModal .lorheim-character-slot{min-height:72px!important;height:auto!important;padding:7px 8px!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;}
  #characterModal .lorheim-character-slot strong{font-size:14px!important;}
  #characterModal .lorheim-character-slot span,#characterModal .lorheim-character-slot small{font-size:9px!important;line-height:1.15!important;}
  #characterModal .lorheim-start-button{width:100%!important;min-width:0!important;padding:5px!important;font-size:9px!important;}
  #characterCreatorModal .faction-race-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  #characterCreatorModal .faction-card{min-height:150px!important;padding:7px!important;}
  #characterCreatorModal .faction-card .faction-icon{height:72px!important;}
  #characterCreatorModal .faction-card h2{font-size:14px!important;margin:4px 0!important;}
  #characterCreatorModal .faction-card ul{font-size:9px!important;line-height:1.18!important;margin:3px 0!important;}
  #characterCreatorModal .faction-select-button{font-size:9px!important;padding:5px 3px!important;}
}
.cartographer-map-icon{width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box}

/* Multiplayer dungeon playback must visibly own the banner from Start through loot. */
#dungeonView .dungeon-banner-wrap.multiplayer-dungeon-active>.dungeon-banner{filter:brightness(.34) saturate(.72)!important;transition:filter .18s ease}
#dungeonView .dungeon-banner-wrap.multiplayer-dungeon-active{background:#050403}

/* 2026-08-26 Jonathan Heim / Questlog exact Questboard reuse + arena horizontal actors */
.cartographer-quest-view{padding:12px 14px 14px!important}
.cartographer-quest-view .quest-back{margin:0 0 10px!important}
.cartographer-quest-view .quest-detail-card{gap:10px!important}
.cartographer-quest-view .quest-detail-head{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
.cartographer-quest-view .quest-list-icon.big{width:54px!important;height:54px!important}
.cartographer-quest-view .cartographer-map-icon{padding:2px!important;width:100%!important;height:100%!important;object-fit:contain!important}
.cartographer-quest-view .quest-board-title{font-size:20px!important;text-align:left!important;margin:0!important}
.cartographer-quest-view .quest-detail-head p{margin:4px 0 0!important;color:#c6a06f!important;font:12px/1.38 "Courier New",monospace!important;text-align:left!important}
.cartographer-intro-view .quest-detail-head p+p{margin-top:7px!important}
.cartographer-quest-view .quest-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.cartographer-quest-view .quest-detail-box{padding:8px 9px!important}
@media(max-width:700px){.cartographer-quest-view .quest-detail-grid{grid-template-columns:1fr!important}.cartographer-quest-view .quest-board-title{font-size:17px!important}}

/* Dungeon arena: sprite on the left, name + HP stack directly beside it. */
.dungeon-arena-actor{width:200px!important;height:82px!important}
.dungeon-arena-actor.player{left:20px!important}.dungeon-arena-actor.enemy{right:20px!important}
.dungeon-arena-actor-inner{position:absolute!important;inset:0!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:48px 18px!important;column-gap:7px!important;row-gap:2px!important;align-items:start!important;justify-content:stretch!important;overflow:visible!important}
.dungeon-arena-spritebox{grid-column:1!important;grid-row:1!important;position:relative!important;width:48px!important;height:48px!important;display:grid!important;place-items:center!important;margin:0!important;overflow:visible!important}
.dungeon-arena-sprite{max-width:var(--dungeon-monster-size,44px)!important;max-height:var(--dungeon-monster-size,44px)!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:0!important;translate:calc((44px - var(--dungeon-monster-size,44px))/2) 0}
.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:44px!important;max-height:44px!important}
.dungeon-arena-actor.is-miniboss .dungeon-arena-sprite{max-width:48px!important;max-height:48px!important}
.dungeon-arena-actor.is-boss .dungeon-arena-sprite{max-width:54px!important;max-height:54px!important}
.dungeon-arena-info{grid-column:2!important;grid-row:1!important;height:48px!important;min-width:0!important;display:grid!important;grid-template-rows:minmax(22px,auto) 9px 10px!important;align-content:space-between!important;gap:2px!important;padding-top:1px!important}
.dungeon-arena-name{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:left!important;font:700 10px/1.05 "Courier New",Courier,monospace!important;color:#efb35b!important}
.dungeon-arena-hp{width:100%!important;height:9px!important;margin:0!important;align-self:end!important}
.dungeon-arena-hp-text{position:static!important;width:100%!important;height:10px!important;min-height:10px!important;margin:0!important;padding:0!important;display:block!important;text-align:left!important;color:#f4d6a2!important;font:700 8px/10px "Courier New",Courier,monospace!important;white-space:nowrap!important}
.dungeon-arena-statuses{grid-column:2!important;grid-row:2!important;width:100%!important;height:18px!important;margin:0!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;gap:2px!important;overflow:visible!important}
.dungeon-arena-statuses img{width:17px!important;height:17px!important}
.dungeon-arena-ability-pop{position:absolute!important;left:9px!important;top:-27px!important;width:28px!important;height:28px!important;z-index:23!important}
.dungeon-arena-ability-pop img{width:25px!important;height:25px!important}
.dungeon-arena-skull{position:absolute!important;inset:auto!important;right:-2px!important;bottom:-2px!important;width:18px!important;height:18px!important}
.dungeon-arena-actor.player .dungeon-arena-skull{width:18px!important;height:18px!important}
.dungeon-arena-float{left:54px!important;top:54px!important}.dungeon-arena-impact{left:18px!important;top:15px!important}
.dungeon-arena-combat-copy{left:230px!important;right:230px!important}
@media(max-width:760px){
 .dungeon-arena-actor{width:145px!important;height:70px!important}.dungeon-arena-actor.player{left:6px!important}.dungeon-arena-actor.enemy{right:6px!important}
 .dungeon-arena-actor-inner{grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:40px 16px!important;column-gap:5px!important}
 .dungeon-arena-spritebox{width:38px!important;height:40px!important}.dungeon-arena-sprite,.dungeon-arena-actor.player .dungeon-arena-sprite{max-width:38px!important;max-height:38px!important;translate:0 0}
 .dungeon-arena-info{height:40px!important;grid-template-rows:minmax(18px,auto) 7px 8px!important;gap:1px!important}.dungeon-arena-name{font-size:8px!important;line-height:1.03!important}.dungeon-arena-hp{height:7px!important}.dungeon-arena-hp-text{height:8px!important;font-size:7px!important;line-height:8px!important}
 .dungeon-arena-statuses{height:16px!important}.dungeon-arena-statuses img{width:15px!important;height:15px!important}.dungeon-arena-ability-pop{left:6px!important;top:-23px!important;width:23px!important;height:23px!important}.dungeon-arena-ability-pop img{width:21px!important;height:21px!important}
 .dungeon-arena-combat-copy{left:158px!important;right:158px!important}
}

/* Jonathan Heim uses the real Questboard proportions. The back button is navigation only; it never mutates quest state. */
#cartographerRoot .cartographer-quest-view{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#cartographerRoot .cartographer-quest-view .quest-detail-head{
  grid-template-columns:64px minmax(0,1fr)!important;
}
#cartographerRoot .cartographer-quest-view .quest-list-icon.big{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  overflow:hidden!important;
}
#cartographerRoot .cartographer-quest-view .quest-detail-head>div:last-child{min-width:0!important}
#cartographerRoot .cartographer-quest-view .quest-detail-box span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
#cartographerRoot .cartographer-intro-view .quest-detail-head{align-items:start!important}
#cartographerRoot .cartographer-intro-view .quest-detail-head p{font:12px/1.42 "Courier New",Courier,monospace!important;color:#c6a06f!important}

/* Cartographer modal must match the Questboard detail width and hug its content. */
.cartographer-modal{
  width:min(1300px,96vw)!important;
  max-width:none!important;
  height:auto!important;
}
.cartographer-modal .quest-board-panel{
  min-height:0!important;
  height:auto!important;
}
@media(max-width:860px){.cartographer-modal{width:98vw!important}}

/* === Festival-Standardaktionen kompakt: Icon + Titel + Tageslimit in einer Zeile ===
   Scope absichtlich nur .festival-action-card (Bogenschießen/Axtwerfen/Losbude/etc.).
   Sonderlayouts wie Nachtmarkt und Angelwettbewerb bleiben unberührt. */
.festival-action-card .festival-task-head{
  min-height:50px!important;
  margin:0!important;
}
.festival-action-card .festival-task-head .name{
  align-items:stretch!important;
  min-height:50px!important;
}
.festival-action-card .festival-task-copy{
  min-width:0!important;
  height:50px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  padding:2px 0!important;
  box-sizing:border-box!important;
}
.festival-action-card .festival-task-title{
  display:block!important;
  margin:0!important;
  line-height:1.15!important;
}
.festival-action-card .festival-task-copy>.festival-limit{
  display:block!important;
  margin:0!important;
  line-height:1.15!important;
}
.festival-action-card .festival-action-bottom{
  margin-top:8px!important;
}

/* 2026-08-27 Nachtmarkt – Geheimniskrämer: serverautoritärer 4er-Warenstock.
   Nur dieses Händlerpanel; Wahrsagerin und andere Festival-Sonderlayouts bleiben unverändert. */
.festival-night-merchant .festival-night-item-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  width:100%;
  margin:10px 0 9px;
}
.festival-night-merchant .festival-night-item{
  position:relative;
  min-width:0;
  min-height:116px;
  padding:25px 5px 7px;
  border:2px solid #39332e;
  outline:1px solid rgba(213,151,73,.18);
  outline-offset:-5px;
  border-radius:0;
  background:linear-gradient(145deg,#181818,#0d0d0d);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),inset 0 0 18px rgba(0,0,0,.48);
  color:#ead9b7;
  cursor:pointer;
  overflow:hidden;
}
.festival-night-merchant .festival-night-item:hover:not(:disabled),
.festival-night-merchant .festival-night-item.is-selected{
  border-color:#8a672c;
  outline-color:rgba(232,185,91,.36);
  background:linear-gradient(145deg,#211a12,#0e0d0b);
}
.festival-night-merchant .festival-night-item.is-selected{
  box-shadow:inset 0 0 0 1px rgba(255,210,118,.08),0 0 10px rgba(205,153,65,.16);
}
.festival-night-merchant .festival-night-item.is-sold-out,
.festival-night-merchant .festival-night-item:disabled{
  opacity:.34;
  filter:grayscale(.7) brightness(.68);
  cursor:default;
}
.festival-night-merchant .festival-night-price,
.festival-night-merchant .festival-night-qty{
  position:absolute;
  top:6px;
  z-index:2;
  font:700 11px/16px "Courier New",monospace;
  color:#e8d5ae;
  text-shadow:0 1px #000;
}
.festival-night-merchant .festival-night-price{left:7px;display:flex;align-items:center;gap:3px;}
.festival-night-merchant .festival-night-price img{width:16px;height:16px;object-fit:contain;image-rendering:auto;}
.festival-night-merchant .festival-night-qty{right:7px;color:#cbb994;}
.festival-night-merchant .festival-night-item-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  margin:0 auto 5px;
  font-size:34px;
}
.festival-night-merchant .festival-night-item-icon img{
  display:block;
  width:48px;
  height:48px;
  object-fit:contain;
  image-rendering:auto;
}
.festival-night-merchant .festival-night-item-name{
  display:block;
  min-width:0;
  text-align:center;
  color:#dfcaa4;
  font:700 10px/1.15 "Courier New",monospace;
  overflow-wrap:anywhere;
}
.festival-night-merchant .festival-night-buy{width:100%;margin-top:0!important;}
.festival-night-merchant .festival-night-loading{
  grid-column:1/-1;
  min-height:116px;
  display:grid;
  place-items:center;
  border:2px solid #39332e;
  background:#101010;
  color:#9f8d72;
  font:12px/1.4 "Courier New",monospace;
  text-align:center;
  padding:12px;
}
@media(max-width:760px){
  .festival-night-merchant .festival-night-item-grid{gap:5px;}
  .festival-night-merchant .festival-night-item{min-height:104px;padding:24px 3px 5px;}
  .festival-night-merchant .festival-night-item-icon{width:44px;height:44px;}
  .festival-night-merchant .festival-night-item-icon img{width:42px;height:42px;}
  .festival-night-merchant .festival-night-item-name{font-size:8.5px;}
  .festival-night-merchant .festival-night-price,.festival-night-merchant .festival-night-qty{font-size:9px;}
}

/* 2026-08-27 Character hub V6 + inventory green alignment */
#characterModal .lorheim-character-hub{display:flex;flex-direction:column;}
#characterModal .lorheim-character-slots{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(4,minmax(86px,1fr))!important;height:auto!important;gap:10px!important;}
#characterModal .lorheim-character-slot{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;align-items:center!important;gap:10px!important;min-height:91px!important;padding:10px 10px 10px 14px!important;cursor:pointer!important;overflow:hidden!important;}
#characterModal .lorheim-character-slot.locked{cursor:default!important;opacity:.58!important;}
#characterModal .lorheim-character-slot.selected{border-color:#e1a43a!important;box-shadow:0 0 0 1px rgba(255,209,105,.78),0 0 16px rgba(255,177,59,.18),inset 0 0 0 1px rgba(255,215,139,.16)!important;}
#characterModal .lorheim-slot-copy{min-width:0!important;padding-right:2px!important;}
#characterModal .lorheim-slot-race-portrait{width:76px;height:72px;display:flex;align-items:center;justify-content:flex-end;align-self:center;overflow:hidden;pointer-events:none;}
#characterModal .lorheim-slot-race-portrait img{display:block;width:auto;height:70px;max-width:76px;object-fit:contain;object-position:right center;filter:drop-shadow(0 6px 6px rgba(0,0,0,.62));}
#characterModal .lorheim-character-delete,#characterModal .lorheim-load-character,#characterModal #newCharacterBtn{display:none!important;}
#characterModal .lorheim-character-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin-top:12px;}
#characterModal .lorheim-character-action{width:100%;min-width:0;padding:9px 8px;font:900 11px/1 "Courier New",monospace;text-transform:uppercase;letter-spacing:.06em;}
#characterModal .lorheim-character-action:disabled{filter:grayscale(.45) brightness(.55);cursor:not-allowed;opacity:.72;}
#characterCreatorModal .character-popover{position:relative;}
#characterCreatorModal .lorheim-creator-close{right:-14px;top:-14px;}
#characterCreatorModal .lorheim-creator-close[hidden]{display:none!important;}

/* Character-XP uses the exact combat HP green, with no gradient or visual transition. */
#inventoryView #charXpProgress{background:#23B14D!important;box-shadow:none!important;transition:none!important;}
/* Fixed character stat source/bonus text matches the same combat green. */
#inventoryView #characterAtkSource,#inventoryView #characterDefSource{color:#23B14D!important;text-shadow:none!important;}

@media(max-width:760px){
  #characterModal .lorheim-character-slot{grid-template-columns:minmax(0,1fr) 62px!important;min-height:82px!important;padding:8px 8px 8px 10px!important;}
  #characterModal .lorheim-slot-race-portrait{width:62px;height:64px!important;}
  #characterModal .lorheim-slot-race-portrait img{height:62px;max-width:62px;}
  #characterModal .lorheim-character-actions{gap:5px;margin-top:9px;}
  #characterModal .lorheim-character-action{padding:8px 4px;font-size:9px;}
}


/* 2026-08-30 · Dungeon Abschlussdetails: gleiche geschlossene Oberfläche.
   Nerd-Bericht bleibt verfügbar, aber erst NACH der visuellen Arena-Wiedergabe. */
#dungeonView .dungeon-report > .dungeon-detail-report,
#dungeonView .dungeon-report > .dungeon-telemetry-report,
#dungeonView .dungeon-report > .dungeon-combat-report,
#graveyardView .dungeon-report > .dungeon-detail-report,
#graveyardView .dungeon-report > .dungeon-telemetry-report,
#graveyardView .dungeon-report > .dungeon-combat-report{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:38px!important;
  margin:8px 0!important;
  padding:0!important;
  border:1px solid rgba(255,181,62,.18)!important;
  background:rgba(0,0,0,.16)!important;
}
#dungeonView .dungeon-report > .dungeon-detail-report > summary,
#dungeonView .dungeon-report > .dungeon-telemetry-report > summary,
#dungeonView .dungeon-report > .dungeon-combat-report > summary,
#graveyardView .dungeon-report > .dungeon-detail-report > summary,
#graveyardView .dungeon-report > .dungeon-telemetry-report > summary,
#graveyardView .dungeon-report > .dungeon-combat-report > summary{
  box-sizing:border-box!important;
  min-height:38px!important;
  padding:0 9px!important;
  display:flex!important;
  align-items:center!important;
  cursor:pointer!important;
  color:#b49161!important;
  font:bold 12px/1 "Courier New",Courier,monospace!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
#dungeonView .dungeon-telemetry-report-body,
#graveyardView .dungeon-telemetry-report-body{padding:0 10px 12px!important;}


/* V58: Server-authoritative character gender selector (race1=male, race2=female). */
#characterCreatorModal .race-gender-controls{
  position:absolute!important;
  top:42px!important;
  right:10px!important;
  z-index:6!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:5px!important;
}
#characterCreatorModal .race-gender-button{
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  min-width:25px!important;
  min-height:25px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #6f5535!important;
  border-radius:4px!important;
  background:rgba(12,9,7,.88)!important;
  color:#c7a66d!important;
  font:18px/1 Arial,sans-serif!important;
  cursor:pointer!important;
  box-shadow:0 2px 8px rgba(0,0,0,.42)!important;
}
#characterCreatorModal .race-gender-button:hover,
#characterCreatorModal .race-gender-button:focus-visible{outline:none!important;border-color:#d29a48!important;color:#ffe1a0!important;background:#24170d!important;}
#characterCreatorModal .race-gender-button.active{border-color:#e0aa54!important;color:#fff0bd!important;background:#31200f!important;box-shadow:0 0 0 1px rgba(255,210,122,.18),0 0 9px rgba(210,154,72,.24)!important;}
@media(max-width:860px){
  #characterCreatorModal .race-gender-controls{top:33px!important;right:6px!important;gap:3px!important;}
  #characterCreatorModal .race-gender-button{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;font-size:15px!important;}
}


/* 2026-09-02 · Unified Dungeon Combat Presentation Patch */
.dungeon-arena-info{grid-template-rows:minmax(14px,auto) 10px 9px 10px!important;align-content:center!important;gap:1px!important}
.dungeon-arena-level{width:100%;min-width:0;margin:0;padding:0;color:#bda47d;font:700 8px/9px "Courier New",Courier,monospace;text-align:left;white-space:nowrap;text-shadow:0 1px 2px #000}
.dungeon-arena-potion-pop{inset:auto auto calc(100% + 5px) 50%!important;width:32px!important;height:32px!important;transform-origin:center bottom!important}
.dungeon-arena-actor.anim-heal .dungeon-arena-actor-inner{animation:dungeonActorHealGlow .70s ease-out}
@keyframes dungeonActorHealGlow{0%,100%{filter:none}26%{filter:drop-shadow(0 0 8px rgba(83,255,118,.95)) drop-shadow(0 0 15px rgba(83,255,118,.45))}}
.dungeon-arena-proxy-projectile{position:absolute;width:32px;height:32px;object-fit:contain;z-index:40;pointer-events:none;image-rendering:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.85));animation:dungeonProxyProjectile .58s cubic-bezier(.18,.76,.28,1) both}
@keyframes dungeonProxyProjectile{0%{opacity:0;transform:translate(0,0) scale(.72)}15%{opacity:1;transform:translate(0,0) scale(1)}72%{opacity:1;transform:translate(var(--proxy-x),var(--proxy-y)) scale(.96)}100%{opacity:0;transform:translate(var(--proxy-x),var(--proxy-y)) scale(.76)}}
@media(max-width:760px){.dungeon-arena-info{grid-template-rows:minmax(12px,auto) 8px 7px 8px!important}.dungeon-arena-level{font-size:7px;line-height:8px}.dungeon-arena-proxy-projectile{width:28px;height:28px}}


/* Kesselfest: neutral material requirements; green only when requirement is complete. */
.festival-kessel .festival-requirements .festival-requirement{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  color:#b9967a!important;white-space:normal;overflow:visible;text-overflow:clip;
}
.festival-kessel .festival-requirements .festival-requirement b{
  color:inherit;font-weight:700;white-space:nowrap;
}
.festival-kessel .festival-requirements .festival-requirement.met{color:#8fca82!important;}


/* 2026-09-02 – one-time new-character building welcomes. Existing characters without
   buildingWelcomeState are deliberately ineligible; no legacy visual fallback. */
.lorheim-building-welcome-overlay{position:fixed;inset:0;z-index:13100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(5,6,7,.70);backdrop-filter:blur(2px);opacity:0;transition:opacity .16s ease;}
.lorheim-building-welcome-overlay.open{opacity:1;}
.lorheim-building-welcome{position:relative;display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:center;width:min(760px,calc(100vw - 44px));min-height:216px;padding:17px 20px 17px 17px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-6px;background:linear-gradient(145deg,#201913,#100d0b 58%,#070605);box-shadow:0 18px 55px rgba(0,0,0,.62),inset 0 0 0 1px rgba(255,255,255,.035);}
.lorheim-building-welcome-portrait{width:180px;height:180px;display:block;object-fit:contain;object-position:center;border:1px solid rgba(176,142,92,.58);background:radial-gradient(circle at 50% 35%,rgba(151,122,80,.18),rgba(12,13,13,.58) 70%);box-shadow:inset 0 0 18px rgba(0,0,0,.45),0 4px 14px rgba(0,0,0,.35);}
.lorheim-building-welcome-copy{min-width:0;padding-right:10px;}
.lorheim-building-welcome-copy .zone-kicker{margin:0 0 3px;color:#b49161;font:700 10px/1.2 "Courier New",Courier,monospace;letter-spacing:.12em;text-transform:uppercase;text-align:left;}
.lorheim-building-welcome-copy h2{margin:0 0 8px;color:#ffb13b;font:700 18px/1.1 Georgia,"Times New Roman",serif;text-shadow:0 2px 0 #000;text-align:left;}
.lorheim-building-welcome-text{display:grid;gap:4px;color:#c6a06f;font:10px/1.38 "Courier New",Courier,monospace;}
.lorheim-building-welcome-text span{display:block;}
.lorheim-building-welcome-close{top:8px;right:9px;}
@media(max-width:620px){.lorheim-building-welcome-overlay{padding:12px}.lorheim-building-welcome{grid-template-columns:110px minmax(0,1fr);gap:12px;width:min(100%,540px);min-height:0;padding:13px}.lorheim-building-welcome-portrait{width:110px;height:110px}.lorheim-building-welcome-copy{padding-right:4px}.lorheim-building-welcome-copy h2{font-size:16px;margin-bottom:6px}.lorheim-building-welcome-text{font-size:10px;line-height:1.34;gap:3px}.lorheim-building-welcome-copy .zone-kicker{font-size:9px}}

/* Dungeon completion top-summary is outside .dungeon-report; carry the fail state explicitly. */
.dungeon-clear-panels.failed .dungeon-summary-panel .dungeon-report-head strong{color:#ff6f63;}


/* 2026-09-03 audit: AFK report X stays within its panel. */
.offline-report-panel .offline-report-close{right:7px!important;top:7px!important;z-index:2!important;}

/* Kesselfest unlock: intentionally compact Lorheim popup. */
.festival-kessel-unlock-overlay{position:fixed;inset:0;z-index:13120;display:grid;place-items:center;padding:18px;background:rgba(4,5,5,.62);}
.festival-kessel-unlock-popup{position:relative;width:min(360px,calc(100vw - 36px));padding:18px 18px 16px;text-align:center;border:2px solid #725333;outline:1px solid rgba(214,161,91,.35);outline-offset:-6px;background:linear-gradient(145deg,#2b2118,#0f0b08 72%);box-shadow:0 18px 50px rgba(0,0,0,.65),inset 0 0 0 1px rgba(255,220,160,.06);}
.festival-kessel-unlock-icon{width:96px;height:96px;margin:2px auto 8px;display:grid;place-items:center;}
.festival-kessel-unlock-img{display:block;width:96px;height:96px;object-fit:contain;image-rendering:pixelated;}
.festival-kessel-unlock-popup h3{margin:0 30px 7px;color:#f0cf94;font:700 18px/1.15 Georgia,"Times New Roman",serif;text-shadow:0 2px #000;}
.festival-kessel-unlock-popup p{margin:0;color:#c6a06f;font:12px/1.4 "Courier New",monospace;}

/* 2026-09-03 · Friedhof Arena-Rebuild: Dungeon-Optik, keine Legacy-Unterpanels. */
#graveyardView .graveyard-layout-v2{
  display:block!important;
  margin-top:14px!important;
}
#graveyardView .graveyard-prep-card{
  width:100%!important;
  box-sizing:border-box!important;
  display:grid!important;
  gap:14px!important;
  overflow:visible!important;
  padding-bottom:0!important;
}
#graveyardView #graveyardStartSlot{display:block!important;}
#graveyardView #graveyardStartSlot .dungeon-start-btn{width:100%!important;}
#graveyardView #graveyardPrepRoot .dungeon-prep-section,
#graveyardView #graveyardPrepRoot .dungeon-abilities-section,
#graveyardView #graveyardPrepRoot .dungeon-ability-slot{overflow:visible!important;}
#graveyardView #graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown-menu,
#graveyardView #graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown-menu{
  position:absolute!important;
  top:auto!important;
  bottom:calc(100% + 4px)!important;
  max-height:var(--dungeon-dropdown-max-height,min(260px,40vh))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin!important;
}
#graveyardView #graveyardPrepRoot .dungeon-ability-slot .dungeon-ability-dropdown-menu::-webkit-scrollbar,
#graveyardView #graveyardPrepRoot .dungeon-ability-slot .dungeon-custom-dropdown-menu::-webkit-scrollbar{width:9px!important;}
#graveyardView .graveyard-banner-wrap{position:relative!important;overflow:hidden!important;}
#graveyardView #graveyardArenaHost{position:absolute;inset:0;pointer-events:none;}
#graveyardView #graveyardArenaHost:empty{display:none;}
#graveyardView .graveyard-arena{position:absolute!important;inset:0!important;}
#graveyardView.graveyard-daytime-only .graveyard-layout-v2{display:block!important;}

/* Friedhof: Loot und Kampftext teilen einen vertikalen Textfluss. */
#graveyardView .graveyard-banner-loot{display:none;width:100%;flex:none;margin:0 0 5px;text-align:center;overflow-wrap:anywhere;color:#fff;font:400 14px/1.26 "Courier New",Courier,monospace;text-shadow:0 2px 2px #000;}
#graveyardView .graveyard-banner-loot.has-loot{display:block;}
#graveyardView .dungeon-arena-combat-copy:has(.has-loot){max-height:none!important;overflow:visible!important;}
@media(max-width:760px){#graveyardView .graveyard-banner-loot{font-size:9px;}}
@media(max-width:760px) and (orientation:portrait){#graveyardView .graveyard-banner-loot{font-size:11px;line-height:1.24;}}

/* Friedhof 2026-09-03: zentraler Abschlusszustand im Banner */
#graveyardView .graveyard-end-state{position:absolute;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;background:rgba(10,8,8,.18);text-shadow:0 2px 3px #000,1px 0 2px #000,-1px 0 2px #000;}
#graveyardView .graveyard-end-portrait{width:108px;height:108px;object-fit:contain;margin:0 0 8px;animation:graveyardEndPulse 2.15s ease-in-out infinite;transform-origin:center;}
#graveyardView .graveyard-end-title{font-family:"Cinzel",Georgia,serif;font-size:28px;line-height:1.05;font-weight:800;letter-spacing:.7px;color:#f4e4bf;margin:1px 0 8px;}
#graveyardView .graveyard-end-waves{font:700 16px/1.25 "Courier New",Courier,monospace;color:#f1dfbd;}
#graveyardView .graveyard-end-record{font:700 12px/1.25 "Courier New",Courier,monospace;color:#e6cc91;margin-top:5px;}
#graveyardView .graveyard-end-portrait.glow-elf{filter:drop-shadow(0 0 8px rgba(82,190,95,.72)) drop-shadow(0 0 18px rgba(61,151,76,.36));}
#graveyardView .graveyard-end-portrait.glow-darkelf{filter:drop-shadow(0 0 8px rgba(157,92,210,.78)) drop-shadow(0 0 18px rgba(108,56,165,.38));}
#graveyardView .graveyard-end-portrait.glow-dwarf{filter:drop-shadow(0 0 8px rgba(205,145,69,.78)) drop-shadow(0 0 18px rgba(144,92,37,.38));}
#graveyardView .graveyard-end-portrait.glow-gnome{filter:drop-shadow(0 0 8px rgba(75,169,213,.78)) drop-shadow(0 0 18px rgba(45,116,163,.38));}
#graveyardView .graveyard-end-portrait.glow-orc{filter:drop-shadow(0 0 8px rgba(190,72,62,.8)) drop-shadow(0 0 18px rgba(137,46,39,.4));}
#graveyardView .graveyard-end-portrait.glow-troll{filter:drop-shadow(0 0 8px rgba(67,181,161,.8)) drop-shadow(0 0 18px rgba(39,128,116,.4));}
@keyframes graveyardEndPulse{0%,100%{transform:scale(1);opacity:.94}50%{transform:scale(1.055);opacity:1}}


/* Canonical successful-action glow. Geometry is fixed to the confirmed card;
   the one 680ms compositor animation is owned by inventory_feedback.js. */
.lorheim-success-glow-frame{
  position:fixed;z-index:9000;box-sizing:border-box;pointer-events:none;
  border:2px solid rgba(255,218,108,.88);border-radius:8px;
  box-shadow:0 0 9px 3px rgba(255,211,87,.85),0 0 23px 8px rgba(229,159,45,.55),inset 0 0 14px rgba(255,220,126,.23);
  background:transparent;opacity:0;
}

.festival-meal-card.unlocked{opacity:1!important;border-color:rgba(213,170,82,.58)!important}
.festival-meal-card.unlocked .festival-unlocked-button{opacity:1!important;filter:none!important;cursor:default!important;pointer-events:none!important;color:#f3d18a!important;border-color:#a9782d!important;background:linear-gradient(#5a3816,#2f1b0b)!important;box-shadow:inset 0 0 0 1px rgba(255,220,142,.14),0 0 8px rgba(213,160,65,.18)!important}

.lorheim-well-fairy-overlay{overflow:hidden}
.lorheim-well-fairy-panel{overflow:visible!important;animation:wellFairyPanelArrival .72s cubic-bezier(.2,.85,.25,1) both;box-shadow:0 0 0 2px rgba(255,247,205,.88),0 0 28px 9px rgba(255,223,111,.76),0 0 85px 28px rgba(236,177,49,.42),inset 0 0 42px rgba(255,228,141,.13)!important}
.lorheim-well-fairy-panel::before,.lorheim-well-fairy-panel::after{content:"✦  ·  ✧  ✦  ·  ✧  ✦";position:absolute;left:-9%;right:-9%;pointer-events:none;color:#fff4c0;text-shadow:0 0 5px #fff,0 0 11px #ffe06b,0 0 18px #e9a72c;letter-spacing:18px;white-space:nowrap;opacity:0;z-index:5}
.lorheim-well-fairy-panel::before{top:-30px;animation:wellFairyGlitterTop 1.8s ease-in-out infinite}
.lorheim-well-fairy-panel::after{bottom:-30px;animation:wellFairyGlitterBottom 2.1s .22s ease-in-out infinite}
.lorheim-well-fairy-sprite{position:relative;z-index:2;width:96px!important;height:96px!important;filter:drop-shadow(0 8px 8px rgba(0,0,0,.72))!important}
.lorheim-well-fairy-panel h2{position:relative;z-index:2}
.lorheim-well-fairy-panel p{position:relative;z-index:2;font:12px/1.55 "Courier New",monospace!important;color:#ead6ad!important}
.lorheim-well-fairy-shard,.lorheim-well-fairy-panel small,.lorheim-well-fairy-close,.lorheim-well-fairy-kicker{position:relative;z-index:6}
@keyframes wellFairyPanelArrival{0%{opacity:0;transform:scale(.88);filter:brightness(2)}55%{opacity:1;transform:scale(1.025);filter:brightness(1.26)}100%{opacity:1;transform:scale(1);filter:none}}
@keyframes wellFairyGlitterTop{0%,100%{opacity:.18;transform:translateX(-8px) scale(.92)}45%{opacity:1;transform:translateX(8px) scale(1.05)}70%{opacity:.42}}
@keyframes wellFairyGlitterBottom{0%,100%{opacity:.12;transform:translateX(9px) scale(.95)}48%{opacity:.88;transform:translateX(-7px) scale(1.04)}75%{opacity:.3}}

/* Fixed combat playback timing: former level 2 (+30% duration). No selectable speed manager. */
.dungeon-arena .dungeon-arena-actor.anim-lunge.player,
.dungeon-arena .dungeon-arena-actor.anim-lunge.enemy{animation-duration:.624s!important;}
.dungeon-arena .dungeon-arena-actor.anim-hit{animation-duration:.546s!important;}
.dungeon-arena .dungeon-arena-actor.anim-block{animation-duration:.624s!important;}
.dungeon-arena .dungeon-arena-actor.anim-dodge.player,
.dungeon-arena .dungeon-arena-actor.anim-dodge.enemy{animation-duration:.728s!important;}
.dungeon-arena .dungeon-arena-actor.anim-heal .dungeon-arena-hp,
.dungeon-arena .dungeon-arena-actor.anim-heal .dungeon-arena-actor-inner{animation-duration:.91s!important;}
.dungeon-arena .dungeon-arena-actor.anim-death{animation-duration:.338s!important;}
.dungeon-arena .dungeon-arena-ability-pop.show,
.dungeon-arena .dungeon-arena-start-effect.show{animation-duration:1.04s!important;}
.dungeon-arena .dungeon-arena-impact.show{animation-duration:1.014s!important;}
.dungeon-arena .dungeon-arena-float.show{animation-duration:.884s!important;}
.dungeon-arena .dungeon-arena-proxy-projectile{animation-duration:.754s!important;}

/* 2026-09-04 canonical compact multiplayer boss roll */















.multiplayer-loot-timebar>i{
  display:block;
  
  transition:width .08s linear,background-color .12s linear;
}

/* Idle/AFK inventory-capacity notice: activity continues, loot may be discarded. */
.offline-inventory-full-warning{margin-top:8px;padding-top:7px;border-top:1px solid rgba(213,170,82,.32);color:#d8bd8b;font:12px/1.4 "Courier New",Courier,monospace}.offline-inventory-full-warning strong{color:#f1d39b}


/* 2026-09-05 final dungeon presentation polish: presentation only, no combat mechanics. */
.dungeon-arena-mainline,
.dungeon-arena-sublines>div{
  font-weight:400!important;
}
.dungeon-arena-mainline{font-size:15px!important;line-height:1.28!important;}
.dungeon-arena-sublines>div{font-size:13px!important;line-height:1.24!important;}
.dungeon-arena-mainline.is-room-clear{
  font-size:17px!important;
  font-weight:400!important;
  letter-spacing:.055em!important;
}

/* Room transition contract: defeated enemies remain visible through ROOM CLEARED.
   At the next roomStart the old encounter is replaced atomically; the new room label
   and the new encounter enter together. */
.dungeon-arena.room-transition .dungeon-arena-actor.player:not(.dead){animation:none!important;}
.dungeon-arena-enemies.encounter-enter .dungeon-arena-actor{
  animation:dungeonEncounterEnter .42s cubic-bezier(.2,.72,.25,1) both!important;
}
.dungeon-arena.encounter-swap .dungeon-arena-roomname,
.dungeon-arena.encounter-swap .dungeon-arena-headline{
  animation:dungeonRoomLabelEnter .42s cubic-bezier(.2,.72,.25,1) both!important;
}
@keyframes dungeonEncounterEnter{
  from{opacity:0;transform:translateY(-50%) translateX(22px) scale(.96)}
  to{opacity:1;transform:translateY(-50%) translateX(0) scale(1)}
}
@keyframes dungeonRoomLabelEnter{
  from{opacity:0;transform:translateX(14px)}
  to{opacity:1;transform:translateX(0)}
}

/* Standard mobs: single-line names on desktop; HP geometry can never be overlapped. */
.dungeon-arena-actor:not(.is-boss):not(.is-miniboss){width:220px!important;}
.dungeon-arena-actor:not(.is-boss):not(.is-miniboss) .dungeon-arena-name{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  font-size:9px!important;
  line-height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
}

/* Vorboss/Boss: portrait above name + HP instead of beside it. */
.dungeon-arena-actor.is-miniboss{width:178px!important;height:138px!important;}
.dungeon-arena-actor.is-boss{width:196px!important;height:188px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner,
.dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{
  display:grid!important;
  grid-template-columns:1fr!important;
  column-gap:0!important;
  align-items:start!important;
  justify-items:center!important;
  overflow:visible!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner{grid-template-rows:72px 43px 18px!important;}
.dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{grid-template-rows:124px 43px 18px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-spritebox,
.dungeon-arena-actor.is-boss .dungeon-arena-spritebox{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;height:100%!important;margin:0!important;
  display:grid!important;place-items:end center!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-sprite{max-width:70px!important;max-height:70px!important;}
.dungeon-arena-actor.is-boss .dungeon-arena-sprite{max-width:100px!important;max-height:100px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-info,
.dungeon-arena-actor.is-boss .dungeon-arena-info{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;height:43px!important;
  display:grid!important;grid-template-rows:15px 9px 10px!important;
  gap:2px!important;padding:2px 8px 0!important;box-sizing:border-box!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-name,
.dungeon-arena-actor.is-boss .dungeon-arena-name{
  width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  text-align:center!important;font-size:9px!important;line-height:13px!important;min-height:13px!important;max-height:13px!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-hp,
.dungeon-arena-actor.is-boss .dungeon-arena-hp,
.dungeon-arena-actor.is-miniboss .dungeon-arena-hp-text,
.dungeon-arena-actor.is-boss .dungeon-arena-hp-text{width:100%!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-statuses,
.dungeon-arena-actor.is-boss .dungeon-arena-statuses{
  grid-column:1!important;grid-row:3!important;width:100%!important;justify-content:center!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-ability-pop,
.dungeon-arena-actor.is-boss .dungeon-arena-ability-pop{left:50%!important;top:-25px!important;transform:translateX(-50%)!important;}

@media(max-width:760px){
  .dungeon-arena-mainline{font-size:10px!important}.dungeon-arena-sublines>div{font-size:9px!important}.dungeon-arena-mainline.is-room-clear{font-size:12px!important}
  .dungeon-arena-actor:not(.is-boss):not(.is-miniboss){width:148px!important;}
  .dungeon-arena-actor:not(.is-boss):not(.is-miniboss) .dungeon-arena-name{
    white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
    line-height:9px!important;min-height:18px!important;max-height:18px!important;font-size:8px!important;
  }
  .dungeon-arena-actor:not(.is-boss):not(.is-miniboss) .dungeon-arena-info{
    height:46px!important;grid-template-rows:18px 7px 8px!important;
  }
  .dungeon-arena-actor.is-miniboss{width:124px!important;height:112px!important;}
  .dungeon-arena-actor.is-boss{width:140px!important;height:154px!important;}
  .dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner{grid-template-rows:58px 38px 16px!important;}
  .dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{grid-template-rows:98px 40px 16px!important;}
  .dungeon-arena-actor.is-miniboss .dungeon-arena-sprite{max-width:57px!important;max-height:57px!important;}
  .dungeon-arena-actor.is-boss .dungeon-arena-sprite{max-width:82px!important;max-height:82px!important;}
  .dungeon-arena-actor.is-miniboss .dungeon-arena-name,
  .dungeon-arena-actor.is-boss .dungeon-arena-name{
    white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
    line-height:9px!important;min-height:18px!important;max-height:18px!important;font-size:8px!important;
  }
  .dungeon-arena-actor.is-miniboss .dungeon-arena-info,
  .dungeon-arena-actor.is-boss .dungeon-arena-info{height:40px!important;grid-template-rows:18px 7px 8px!important;padding:1px 5px 0!important;}
}


/* 2026-09-05 canonical dungeon presentation polish */
.dungeon-arena-mainline{font-size:14px!important;font-weight:400!important;line-height:1.26!important;}
.dungeon-arena-mainline.is-room-clear{font-size:16px!important;font-weight:400!important;}
.dungeon-arena-enemies.encounter-enter .dungeon-arena-actor{
  animation:dungeonEncounterEnter .34s cubic-bezier(.18,.72,.22,1) both!important;
}
.dungeon-arena.encounter-swap .dungeon-arena-roomname,
.dungeon-arena.encounter-swap .dungeon-arena-headline{
  animation:dungeonRoomLabelEnter .34s cubic-bezier(.18,.72,.22,1) both!important;
}
@keyframes dungeonEncounterEnter{
  from{opacity:0;transform:translateY(-50%) translateX(12px) scale(.985)}
  to{opacity:1;transform:translateY(-50%) translateX(0) scale(1)}
}
@keyframes dungeonRoomLabelEnter{
  from{opacity:0;transform:translateX(8px)}
  to{opacity:1;transform:translateX(0)}
}
/* Death icon occupies the actor sprite slot instead of floating below/right. */
.dungeon-arena-skull{
  position:static!important;
  inset:auto!important;
  margin:0!important;
  justify-self:start!important;
  align-self:end!important;
  object-fit:contain!important;
}
.dungeon-arena-actor.dead .dungeon-arena-spritebox{place-items:end start!important;}
/* Large boss portraits remain above their info, but align to the same left edge. */
.dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner,
.dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{justify-items:start!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-spritebox,
.dungeon-arena-actor.is-boss .dungeon-arena-spritebox{place-items:end start!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-info,
.dungeon-arena-actor.is-boss .dungeon-arena-info{padding-left:0!important;padding-right:0!important;text-align:left!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-name,
.dungeon-arena-actor.is-boss .dungeon-arena-name{text-align:left!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-statuses,
.dungeon-arena-actor.is-boss .dungeon-arena-statuses{justify-content:flex-start!important;}
@media(max-width:760px){
  .dungeon-arena-mainline{font-size:9px!important;}
  .dungeon-arena-mainline.is-room-clear{font-size:11px!important;}
}

/* 2026-09-05 dungeon sprite-slot skull + centered room-label transition fix */
/* Normal mobs: death skull is a true replacement for the living sprite. */
.dungeon-arena-actor.dead:not(.is-boss):not(.is-miniboss) .dungeon-arena-spritebox{
  place-items:center!important;
}
.dungeon-arena-actor.dead:not(.is-boss):not(.is-miniboss) .dungeon-arena-skull{
  position:static!important;
  inset:auto!important;
  width:9px!important;
  height:9px!important;
  margin:0!important;
  justify-self:center!important;
  align-self:center!important;
  object-fit:contain!important;
}
/* The room labels are centered with translateX(-50%); preserve that centering for every animation frame. */
@keyframes dungeonRoomLabelEnter{
  from{opacity:0;transform:translateX(calc(-50% + 8px))}
  to{opacity:1;transform:translateX(-50%)}
}
@media(max-width:760px){
  .dungeon-arena-actor.dead:not(.is-boss):not(.is-miniboss) .dungeon-arena-skull{
    width:8px!important;
    height:8px!important;
  }
}


/* 2026-09-07 CANONICAL: Begleiter-Detail und Freischaltungs-Panel.
   Natürliche Sprites ohne quadratischen Bildrahmen, graue Systemrahmen analog Buff-/Skill-HUD
   und einheitlicher Sprite→Bonus-Abstand. */
.compendium-companion-detail .compendium-detail-img.compendium-companion-big-icon{
  border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;
}
.compendium-companion-detail .compendium-companion-big-icon,
.compendium-companion-detail .compendium-companion-big-icon span{
  width:96px!important;height:96px!important;display:grid!important;place-items:center!important;
}
.compendium-companion-detail .compendium-companion-pet-img{
  width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important;object-fit:contain!important;
}










/* PvE-Setfund: identisches Bossloot-Layout, ausschließlich grüne Rahmung. */







/* PvE-Set: Beschworenes Skelett – kompakter, spielergebundener Unit-Frame. */
.dungeon-arena-summon{position:absolute;left:46px;top:-18px;z-index:4;display:none;pointer-events:none;max-width:108px}
.dungeon-arena-summon.show{display:block}
.dungeon-arena-summon-card{display:flex;align-items:center;gap:4px;padding:2px 3px;background:rgba(7,7,9,.84);border:1px solid rgba(105,52,145,.5);box-shadow:0 1px 4px rgba(0,0,0,.68);font-family:"Courier New",Courier,monospace}
.dungeon-arena-summon-sprite{width:20px;height:20px;min-width:20px;object-fit:contain;border:1px solid #8d47b7;background:rgba(0,0,0,.36);image-rendering:auto}
.dungeon-arena-summon-info{width:72px;min-width:0}
.dungeon-arena-summon-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ddd4e5;font-size:7px;line-height:8px;font-weight:700}
.dungeon-arena-summon-hp{width:54px;height:4px;margin-top:1px;border:1px solid rgba(0,0,0,.85);background:#271b1b;overflow:hidden}
.dungeon-arena-summon-hp-fill{height:100%;background:#5ca763}
.dungeon-arena-summon-hp-text{margin-top:1px;color:#cfc9d4;font-size:6px;line-height:7px}

/* Freeze ist ein kanonischer Zustand in Dungeon und Friedhof. */
.dungeon-arena-actor.is-frozen .dungeon-arena-spritebox{filter:drop-shadow(0 0 4px rgba(82,173,255,.95)) drop-shadow(0 0 8px rgba(69,132,255,.72))}
.dungeon-arena-actor.is-frozen .dungeon-arena-sprite{filter:saturate(.78) brightness(1.12)}

@media(max-width:760px){
  .dungeon-arena-summon{left:32px;top:-11px;max-width:78px}
  .dungeon-arena-summon-card{gap:2px;padding:1px 2px}
  .dungeon-arena-summon-sprite{width:16px;height:16px;min-width:16px}
  .dungeon-arena-summon-info{width:54px}
  .dungeon-arena-summon-name{font-size:6px;line-height:7px}
  .dungeon-arena-summon-hp{width:38px;height:3px}
  .dungeon-arena-summon-hp-text{font-size:5px;line-height:6px}
}

/* PvE-Set T5: kompakter Begleiter direkt über dem zugehörigen Spieler-Frame. */
.dungeon-arena-actor.player .dungeon-arena-summon{
  position:absolute;
  left:0;
  top:-34px;
  width:116px;
  min-height:28px;
  display:none;
  z-index:8;
  pointer-events:none;
}
.dungeon-arena-actor.player .dungeon-arena-summon.show{display:block;}
.dungeon-arena-summon-card{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:center;
  gap:4px;
  width:100%;
  min-width:0;
}
.dungeon-arena-summon-sprite{
  width:20px!important;
  height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
  object-fit:contain;
  image-rendering:pixelated;
  border:0;
  box-sizing:border-box;
  background:transparent;
}
.dungeon-arena-summon-info{min-width:0;display:flex;flex-direction:column;gap:1px;}
.dungeon-arena-summon-name{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#d8c7e8;
  font:700 8px/1.05 "Courier New",Courier,monospace;
  text-shadow:1px 1px 0 #000;
}
.dungeon-arena-summon-hp{
  width:54px;
  max-width:100%;
  height:4px;
  border:1px solid rgba(0,0,0,.9);
  background:#1d1418;
  box-sizing:border-box;
  overflow:hidden;
}
.dungeon-arena-summon-hp-fill{height:100%;background:#23B14D;}
.dungeon-arena-summon-hp-text{
  color:#e7e2e8;
  font:700 7px/1 "Courier New",Courier,monospace;
  text-shadow:1px 1px 0 #000;
}

/* T5 PvE-Set-Skelett: keine eigene Karte/Plakette um den Begleiter. */
.dungeon-arena-summon-card.is-pve-skeleton{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.dungeon-arena-summon-card.is-pve-skeleton .dungeon-arena-summon-sprite{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Boss-Sprites dürfen ihre transparente Bildfläche vollständig zeigen. */
.dungeon-arena-actor.is-boss,
.dungeon-arena-actor.is-boss .dungeon-arena-actor-inner,
.dungeon-arena-actor.is-boss .dungeon-arena-spritebox{overflow:visible!important;}
.dungeon-arena-actor.is-boss .dungeon-arena-sprite{clip-path:none!important;object-fit:contain!important;}

/* Freeze ist ein kanonischer Zustand; der Glow hängt ausschließlich am echten Status. */
.dungeon-arena-actor.is-frozen .dungeon-arena-spritebox{
  filter:drop-shadow(0 0 3px rgba(85,170,255,.95)) drop-shadow(0 0 7px rgba(70,130,255,.72));
}
@media (max-width:700px){
  .dungeon-arena-actor.player .dungeon-arena-summon{top:-25px;width:88px;}
  .dungeon-arena-summon-card{grid-template-columns:18px minmax(0,1fr);gap:3px;}
  .dungeon-arena-summon-sprite{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;}
  .dungeon-arena-summon-name{font-size:6.5px;}
  .dungeon-arena-summon-hp{width:38px;height:3px;}
  .dungeon-arena-summon-hp-text{font-size:6px;}
}

/* PvE-Setfund im Kampf-/AFK-Bericht: bestehende Lorheim-Typografie, nur der Fundname wird hervorgehoben. */
.pve-set-report-line-v2{margin-top:4px;color:#f0d6a2;font:700 11px/1.35 "Courier New",Courier,monospace;}
.pve-set-report-line-v2 strong{color:#65d879;}

/* Festival fishing result polish: neutral result panel; rarity glow only on the fish icon. */
.festival-pond-copy .fishing-result-panel{
  background:linear-gradient(145deg,#1b1511,#0b0908 70%,#050403)!important;
}
.festival-pond-copy .festival-fishing-catch-pop{
  filter:none!important;
  text-shadow:none;
}
.festival-pond-copy .festival-fishing-catch-pop .fishing-loot-icon{
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.42)!important;
}
.festival-pond-copy .festival-fishing-catch-pop .fishing-loot-icon.festival-fishing-rare-icon{
  border:1px solid rgba(230,190,98,.78)!important;
  box-shadow:inset 0 0 0 1px rgba(255,221,142,.16),0 0 5px rgba(229,189,101,.34)!important;
}

/* Mail compose V10: compact standalone shell aligned to the reference; inventory visuals stay canonical. */
.mail-compose-overlay-v10{position:fixed;inset:0;z-index:13040;display:none;place-items:center;padding:6px;background:rgba(0,0,0,.74);box-sizing:border-box;}
.mail-compose-overlay-v10.open{display:grid;}
.mail-compose-shell-v10{position:relative;width:601px;max-width:calc(100vw - 12px);height:auto;max-height:calc(100vh - 12px);overflow:auto;box-sizing:border-box;padding:12px 12px 10px;border:3px solid #51412d;outline:1px solid rgba(222,182,111,.28);outline-offset:-7px;background:linear-gradient(145deg,#17120d,#080706 72%,#040403);box-shadow:0 20px 56px rgba(0,0,0,.82),inset 0 0 0 1px rgba(255,220,155,.07);}

.mail-compose-close-v10{position:absolute;right:8px;top:7px;z-index:3;}
.mail-compose-header-v10{height:43px;display:flex;align-items:flex-start;justify-content:space-between;padding-right:31px;box-sizing:border-box;gap:10px;}
.mail-compose-header-v10 h3{margin:2px 0 0;color:#f0d5a1;font:700 25px/1.05 Georgia,"Times New Roman",serif;letter-spacing:.02em;text-shadow:0 2px 2px #000;white-space:nowrap;}
.mail-compose-send-v10{width:174px!important;height:35px!important;margin:0!important;padding:0!important;flex:0 0 174px!important;}
.mail-compose-field-v10{display:block;margin:6px 0 0;}
.mail-compose-field-v10>span{display:block;margin:0 0 5px;color:#b99565;font:700 11px/1 Georgia,"Times New Roman",serif;letter-spacing:.02em;}
.mail-compose-field-v10>input,.mail-compose-field-v10>textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #60462b;border-radius:0;background:#050504;color:#e9d8ba;font:13px/1.35 "Courier New",Courier,monospace;box-shadow:inset 0 0 0 1px #17110b,inset 0 2px 8px rgba(0,0,0,.8);outline:none;}
.mail-compose-field-v10>input{height:39px;padding:0 9px;}
.mail-compose-field-v10>textarea{height:118px;min-height:118px;max-height:118px;padding:10px 9px;resize:none;}
.mail-compose-workbench-v10{margin-top:9px;}
.mail-compose-lower-v10{height:300px;display:grid;grid-template-columns:146px 48px 351px;column-gap:10px;align-items:start;justify-content:start;}
.mail-compose-slots-v10{width:146px;height:300px;display:grid;grid-template-columns:repeat(2,69px);grid-template-rows:repeat(4,69px);gap:8px;align-content:start;}
.mail-compose-slots-v10 .mailbox-send-slot{width:69px!important;height:69px!important;min-width:69px!important;min-height:69px!important;max-width:69px!important;max-height:69px!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;overflow:hidden;position:relative;}
.mail-compose-slots-v10 .mailbox-send-slot.filled{border:3px solid #39332e!important;outline:1px solid rgba(213,151,73,.25)!important;outline-offset:-6px!important;background:#101010!important;box-shadow:none!important;}
.mail-compose-slots-v10 .mailbox-send-slot.is-over{border-color:#b37a2a!important;box-shadow:0 0 10px rgba(200,155,60,.20)!important;}
.mail-compose-slots-v10 .mailbox-send-slot>.ii-item-icon-v3{width:100%;height:100%;display:grid;place-items:center;}
.mail-compose-post-v10{width:48px;height:48px;align-self:center;justify-self:center;display:grid;place-items:center;border:2px solid #332d26;outline:1px solid rgba(213,151,73,.16);outline-offset:-4px;background:#0c0a08;box-shadow:inset 0 0 10px rgba(0,0,0,.75);}
.mail-compose-post-v10 img{width:35px;height:35px;object-fit:contain;opacity:.68;filter:drop-shadow(0 2px 2px #000);}
.mail-compose-backpack-v10{width:351px!important;height:300px!important;margin:0!important;}
.mail-compose-grid-v10{width:300px!important;height:300px!important;}
.mail-compose-tools-v10{width:45px!important;height:300px!important;}
.mail-compose-money-row-v10{height:37px;margin-top:7px;display:grid;grid-template-columns:146px 48px 351px;column-gap:10px;align-items:center;justify-content:start;}
.mail-compose-money-entry-v10{grid-column:1;width:146px;height:37px;display:grid;grid-template-columns:1fr 1fr;gap:5px;align-items:center;padding:4px 5px;box-sizing:border-box;border:2px solid #4d3b27;background:linear-gradient(#1a130c,#090705);box-shadow:inset 0 0 0 2px rgba(0,0,0,.55);}
.mail-compose-money-entry-v10 label{display:grid;grid-template-columns:17px 1fr;gap:3px;align-items:center;min-width:0;}
.mail-compose-money-entry-v10 img{width:15px;height:15px;object-fit:contain;}
.mail-compose-money-entry-v10 input{width:100%;height:23px;min-width:0;box-sizing:border-box;border:1px solid #3b2b1b;background:#0a0705;color:#e8d4ae;padding:2px 4px;font:700 10px "Courier New",monospace;box-shadow:inset 0 2px 7px rgba(0,0,0,.72);outline:none;-moz-appearance:textfield;}
.mail-compose-money-entry-v10 input::-webkit-outer-spin-button,.mail-compose-money-entry-v10 input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.mail-compose-wallet-v10{grid-column:3;width:351px;height:37px;box-sizing:border-box;border:2px solid #4d3b27;background:linear-gradient(#1a130c,#090705);box-shadow:inset 0 0 0 2px rgba(0,0,0,.55);display:grid!important;grid-template-columns:1fr 1fr;align-items:center;padding:0 10px;color:#e7c98d;font:10px/1.2 "Courier New",monospace;}
.mail-compose-wallet-v10>div{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;white-space:nowrap;}
.mail-compose-wallet-v10 .system-inline-icon{width:15px!important;height:15px!important;margin:0 1px -3px 0!important;}
.mail-compose-wallet-v10 .currency-gap{width:4px!important;}
.mail-compose-status-v10{min-height:0;height:auto;margin:4px 0 0;color:#d7bd91;font:11px/15px "Courier New",monospace;}
.mail-compose-reserved-v10{position:relative;filter:grayscale(.92) brightness(.52);opacity:.58;}
.mail-compose-reserved-v10[data-mail-fully-reserved="1"]{cursor:not-allowed!important;}
.mail-compose-reserved-mark-v10{position:absolute;left:3px;right:3px;bottom:3px;z-index:4;padding:1px 2px;border:1px solid rgba(199,153,76,.65);background:rgba(10,7,4,.88);color:#d8b875;font:700 8px/1.1 "Courier New",monospace;text-align:center;pointer-events:none;}
@media(max-width:620px){
  .mail-compose-overlay-v10{padding:4px;place-items:center;}
  .mail-compose-shell-v10{width:calc(100vw - 8px);max-width:390px;max-height:calc(100vh - 8px);padding:9px 8px 8px;overflow-y:auto;overflow-x:hidden;}
  .mail-compose-header-v10{height:39px;padding-right:28px;gap:6px;}
  .mail-compose-header-v10 h3{font-size:20px;line-height:1.05;margin-top:3px;}
  .mail-compose-send-v10{width:126px!important;height:32px!important;flex:0 0 126px!important;}
  .mail-compose-field-v10{margin-top:5px;}
  .mail-compose-field-v10>input{height:35px;}
  .mail-compose-field-v10>textarea{height:92px;min-height:92px;max-height:92px;}
  .mail-compose-workbench-v10{margin-top:7px;}
  .mail-compose-lower-v10{height:auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;overflow:visible;}
  .mail-compose-slots-v10{width:300px;height:146px;grid-template-columns:repeat(4,69px);grid-template-rows:repeat(2,69px);gap:8px;}
  .mail-compose-post-v10{width:42px;height:42px;align-self:center;margin:0;}
  .mail-compose-post-v10 img{width:31px;height:31px;}
  .mail-compose-backpack-v10{margin:0 auto!important;max-width:100%!important;}
  .mail-compose-money-row-v10{height:auto;width:min(351px,100%);margin:7px auto 0;display:flex;flex-direction:column;gap:6px;align-items:stretch;overflow:visible;}
  .mail-compose-money-entry-v10{width:100%;height:37px;grid-template-columns:1fr 1fr;}
  .mail-compose-wallet-v10{width:100%;height:37px;grid-template-columns:1fr 1fr;padding:0 6px;}
  .mail-compose-status-v10{margin-top:3px;}
}
@media(max-width:360px){
  .mail-compose-slots-v10{width:265px;height:130px;grid-template-columns:repeat(4,62.5px);grid-template-rows:repeat(2,62.5px);gap:5px;}
  .mail-compose-slots-v10 .mailbox-send-slot{width:62.5px!important;height:62.5px!important;min-width:62.5px!important;min-height:62.5px!important;max-width:62.5px!important;max-height:62.5px!important;}
  .mail-compose-money-row-v10{width:310px;max-width:100%;}
}



/* Mail received-items V11: canonical inventory slots only; no name/copy cards. */
.mailbox-received-wrap-v11{margin-top:8px;display:grid;gap:7px;}
.mailbox-received-grid-v11{width:300px!important;height:146px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;grid-template-columns:repeat(4,69px)!important;grid-template-rows:repeat(2,69px)!important;gap:8px!important;justify-content:start!important;align-content:start!important;overflow:visible!important;}
.mailbox-received-grid-v11 .ii-bag-item-v3,.mailbox-received-grid-v11 .ii-bag-empty-v3{width:69px!important;height:69px!important;min-width:69px!important;min-height:69px!important;max-width:69px!important;max-height:69px!important;box-sizing:border-box!important;}
.mailbox-received-tile-v11{width:69px;height:69px;}
.mailbox-received-tile-v11.claimed{opacity:.48;filter:grayscale(.7);}
.mailbox-received-money-v11{width:300px;box-sizing:border-box;padding:7px 9px;border:1px solid #4d3b27;background:#090706;color:#d7bd91;font:10px/1.2 "Courier New",monospace;text-align:center;}
.mailbox-received-money-v11.claimed{opacity:.55;}
.mailbox-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important;margin-top:8px!important;}
.mailbox-detail-actions .button{width:100%!important;min-width:0!important;margin:0!important;}
.mail-compose-slots-v10 .ii-item-icon-v3>.ii-socket-gem-overlay-v3,.mailbox-received-grid-v11 .ii-item-icon-v3>.ii-socket-gem-overlay-v3{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;width:18px!important;height:18px!important;transform:translate(-50%,-50%)!important;display:grid!important;place-items:center!important;z-index:8!important;pointer-events:none!important;filter:drop-shadow(0 0 2px rgba(255,255,255,.72)) drop-shadow(0 1px 1px rgba(0,0,0,.92))!important;}
.mail-compose-slots-v10 .ii-item-icon-v3>.ii-socket-gem-overlay-v3 .item-icon-img,.mailbox-received-grid-v11 .ii-item-icon-v3>.ii-socket-gem-overlay-v3 .item-icon-img{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;transform:none!important;margin:0!important;object-fit:contain!important;}
.mailbox-detail-status-v11{min-height:0!important;margin:6px 0 0!important;}
@media(max-width:380px){.mailbox-received-grid-v11{width:265px!important;height:130px!important;grid-template-columns:repeat(4,62.5px)!important;grid-template-rows:repeat(2,62.5px)!important;gap:5px!important}.mailbox-received-grid-v11 .ii-bag-item-v3,.mailbox-received-grid-v11 .ii-bag-empty-v3,.mailbox-received-tile-v11{width:62.5px!important;height:62.5px!important;min-width:62.5px!important;min-height:62.5px!important;max-width:62.5px!important;max-height:62.5px!important}.mailbox-received-money-v11{width:265px;max-width:100%}}

/* Mail V12: compact received-message frame + exact inventory-compose controls. */
.order-modal-box.mailbox-detail-compact-v12{
  width:min(340px,calc(100vw - 16px));
  box-sizing:border-box;
  max-height:min(92vh,720px);
  padding:17px 17px 15px;
}
.mailbox-detail-compact-v12 .mailbox-detail-body{min-height:88px;margin-top:8px;box-sizing:border-box;}
.mailbox-detail-compact-v12 .mailbox-received-wrap-v11{width:300px;max-width:100%;margin:8px auto 0;}
.mailbox-detail-compact-v12 .mailbox-detail-status-v11:empty{display:none!important;margin:0!important;}
.mailbox-detail-compact-v12 .mailbox-detail-actions{width:300px!important;max-width:100%!important;margin:8px auto 0!important;}
.mailbox-detail-compact-v12 .mailbox-detail-actions.single{grid-template-columns:1fr!important;}
.mailbox-detail-compact-v12 #mailDeleteBtn{width:100%!important;}
.mail-compose-send-v10{
  width:76px!important;
  height:24px!important;
  min-height:24px!important;
  flex:0 0 76px!important;
  padding:0 7px!important;
  font-size:10px!important;
  line-height:22px!important;
}
.mail-compose-field-v10>span{
  font-family:"Courier New",Courier,monospace!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:400!important;
  text-transform:uppercase!important;
}
@media(max-width:620px){
  .mail-compose-send-v10{width:76px!important;height:24px!important;min-height:24px!important;flex:0 0 76px!important;font-size:10px!important;line-height:22px!important;}
}
@media(max-width:380px){
  .order-modal-box.mailbox-detail-compact-v12{width:min(305px,calc(100vw - 10px));padding:17px 17px 15px;}
  .mailbox-detail-compact-v12 .mailbox-received-wrap-v11,.mailbox-detail-compact-v12 .mailbox-detail-actions{width:265px!important;}
}


/* Welt-NPC-Zonen: kanonische Zonenkarte + rein visuelles Zweitpanel */
.tier-carousel-shell{position:relative;min-width:0;overflow:visible}
.tier-carousel-viewport{overflow:hidden;min-width:0}
.tier-carousel-track{display:flex;width:100%;transition:transform .18s ease;will-change:transform}
.tier-carousel-shell.has-world-npc .tier-carousel-track{width:200%}
.tier-carousel-shell.has-world-npc.show-npc .tier-carousel-track{transform:translateX(-50%)}
.tier-carousel-face{position:relative;flex:0 0 100%;min-width:0;padding-right:42px!important}
.tier-carousel-shell.has-world-npc .tier-carousel-face{flex-basis:50%}
.tier-option .tier-rank{position:absolute;top:8px;right:10px;line-height:1}
.tier-carousel-chevron{position:absolute;top:24px;right:8px;z-index:4;width:22px;height:28px;padding:0;border:0;background:transparent;display:grid;place-items:center;cursor:default;filter:drop-shadow(0 1px 2px #000)}
.tier-carousel-chevron span{display:block;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:9px solid #665f54;transition:transform .14s ease,filter .14s ease,border-left-color .14s ease}
.tier-carousel-chevron.is-available{cursor:pointer}
.tier-carousel-chevron.is-available span{border-left-color:#e8bd52}
.tier-carousel-chevron.is-available:hover span,.tier-carousel-chevron.is-available:focus-visible span{filter:brightness(1.3) drop-shadow(0 0 4px rgba(255,193,73,.55))}
.tier-carousel-chevron.is-reversed span{transform:rotate(180deg)}
.tier-carousel-chevron:disabled{opacity:.72}
.tier-carousel-chevron.beta-locked span{width:auto;height:auto;border:0;font:14px/1 "Segoe UI Symbol",sans-serif;}
.tier-npc-option.npc-undiscovered{opacity:.72;filter:saturate(.55)}
.tier-npc-option.npc-undiscovered .tier-name{color:#b9ad98}
body.world-npc-view-active .actions>.skill-grid,
body.world-npc-view-active .actions>#log{display:none!important}
/* NPC-Header behält exakt die Geometrie des normalen Zonen-Headers. */
.zone-title.world-npc-title-layered{position:relative}
.world-npc-zone-title-geometry{display:block;visibility:hidden;pointer-events:none}
.world-npc-title-overlay{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;white-space:nowrap;font:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit;color:inherit;text-shadow:inherit}
@media(max-width:620px){
  .world-npc-title-overlay{font-size:.86em;letter-spacing:.035em}
}
@media(max-width:860px){
  .tier-option .tier-rank{top:8px;right:9px}
  .tier-carousel-chevron{top:24px;right:7px}
  .tier-carousel-face{padding-right:40px!important}
}

/* Dungeon boss mechanics: short, high-priority ability announcements. */
.dungeon-boss-ability-log{
  color:#ff5a5a;
  font-weight:800;
  text-shadow:0 0 5px rgba(255,35,35,.72);
  animation:dungeonBossAbilityPulse .72s ease-in-out 2;
}
@keyframes dungeonBossAbilityPulse{
  0%,100%{opacity:1;filter:brightness(1)}
  50%{opacity:.68;filter:brightness(1.45)}
}
/* Boss mechanics: buffs above HP bar; debuffs remain below. */
.dungeon-arena-buffs{display:none;align-items:center;gap:2px;overflow:visible;pointer-events:none;}
.dungeon-arena-buffs img{width:17px;height:17px;object-fit:contain;image-rendering:auto;animation:dungeonStatusIn .20s ease-out both;}
.dungeon-arena-actor.is-miniboss{height:148px!important;}
.dungeon-arena-actor.is-boss{height:184px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner{grid-template-rows:66px 61px 18px!important;}
.dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{grid-template-rows:104px 61px 18px!important;}
.dungeon-arena-actor.is-miniboss .dungeon-arena-info,
.dungeon-arena-actor.is-boss .dungeon-arena-info{
  height:61px!important;
  grid-template-rows:15px 18px 9px 10px!important;
  gap:2px!important;
}
.dungeon-arena-actor.is-miniboss .dungeon-arena-buffs,
.dungeon-arena-actor.is-boss .dungeon-arena-buffs{
  display:flex!important;
  width:100%!important;
  min-height:18px!important;
  justify-content:flex-start!important;
  align-items:center!important;
}
@media(max-width:760px){
  .dungeon-arena-actor.is-miniboss{height:124px!important;}
  .dungeon-arena-actor.is-boss{height:156px!important;}
  .dungeon-arena-actor.is-miniboss .dungeon-arena-actor-inner{grid-template-rows:54px 54px 16px!important;}
  .dungeon-arena-actor.is-boss .dungeon-arena-actor-inner{grid-template-rows:84px 56px 16px!important;}
  .dungeon-arena-actor.is-miniboss .dungeon-arena-info,
  .dungeon-arena-actor.is-boss .dungeon-arena-info{height:54px!important;grid-template-rows:18px 16px 7px 8px!important;}
  .dungeon-arena-actor.is-boss .dungeon-arena-info{height:56px!important;}
  .dungeon-arena-buffs img{width:15px;height:15px;}
}



/* 2026-09-15 Boss summons: compact unit frames; start-adds are part of the room snapshot, not duplicated spawn overlays. */
.dungeon-arena-actor.enemy.is-boss-summon{
  width:150px!important;
}
.dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-actor-inner{
  grid-template-columns:42px minmax(0,1fr)!important;
  column-gap:5px!important;
}
.dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-spritebox{
  width:42px!important;height:42px!important;
}
.dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-sprite{
  max-width:40px!important;max-height:40px!important;
}
.dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-name{
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  overflow-wrap:normal!important;font-size:8px!important;line-height:10px!important;
  min-height:10px!important;max-height:10px!important;
}
@media(max-width:760px){
  .dungeon-arena-actor.enemy.is-boss-summon{width:112px!important;}
  .dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-actor-inner{grid-template-columns:32px minmax(0,1fr)!important;column-gap:4px!important;}
  .dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-spritebox{width:32px!important;height:34px!important;}
  .dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-sprite{max-width:32px!important;max-height:32px!important;}
  .dungeon-arena-actor.enemy.is-boss-summon .dungeon-arena-name{font-size:7px!important;line-height:8px!important;min-height:8px!important;max-height:8px!important;}
}


/* 2026-09-15 canonical Raserei presentation: banner + boss-only persistent rage state. */
.dungeon-arena-enrage-banner{
  position:absolute;left:50%;top:42%;z-index:42;transform:translate(-50%,-50%);
  max-width:min(78%,620px);padding:3px 8px;border:0;
  background:transparent;color:#ff5b5b;font-weight:900;font-size:15px;line-height:1.15;
  text-align:center;text-shadow:0 0 5px #ff1f1f,0 0 12px rgba(255,0,0,.72);
  box-shadow:none;
  opacity:0;pointer-events:none;visibility:hidden;
}
.dungeon-arena-enrage-banner.show{
  visibility:visible;animation:dungeonEnrageBannerPulse 2s ease-in-out both;
}
@keyframes dungeonEnrageBannerPulse{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.92)}
  12%,78%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  28%,52%{text-shadow:0 0 7px #ff2424,0 0 18px rgba(255,0,0,.92)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.02)}
}
/* Raserei folgt der Alpha-Silhouette des Monsters; keine flächige ovale Aura hinter dem Sprite. */
.dungeon-arena-actor.is-boss.is-enraged .dungeon-arena-sprite,
.dungeon-arena-actor.is-miniboss.is-enraged .dungeon-arena-sprite{
  transform:scale(1.06)!important;transform-origin:center bottom!important;
  filter:drop-shadow(0 0 2px rgba(255,70,70,.95)) drop-shadow(0 0 5px rgba(220,20,20,.82)) drop-shadow(0 0 9px rgba(130,0,0,.48))!important;
  transition:transform .32s ease-out,filter .32s ease-out!important;
  animation:dungeonEnrageSpritePulse 1.25s ease-in-out infinite;
}
@keyframes dungeonEnrageSpritePulse{0%,100%{opacity:.94}50%{opacity:1}}
@media(max-width:760px){.dungeon-arena-enrage-banner{font-size:12px;padding:2px 6px;max-width:84%;}}


/* Graveyard end-of-run chest */

/* Native story quests: same left Quest HUD flow, compact quest-item reward frame. */
.world-npc-story-content{display:none;justify-content:center;align-items:center;gap:10px;margin:14px auto;max-width:680px}
body.world-npc-view-active .world-npc-story-content{display:flex}
.world-npc-story-action{min-width:160px}



.quest-item-popup-icon{display:block;width:48px;height:48px;object-fit:contain;margin:7px auto 2px}
.quest-item-popup-name{font-weight:800;margin-top:4px}
.story-extra-continue{display:flex;justify-content:center;margin:14px 0}.story-extra-room{margin-top:14px}.story-extra-room h3{margin-top:0}


/* 2026-09-17 Questabgabe: native Browser-Prompts entfernt; Menge direkt im Lorheim-Panel. */
.quest-turnin-row{display:grid;grid-template-columns:minmax(118px,.72fr) minmax(0,1.28fr);align-items:stretch;gap:8px;width:100%;min-width:0}
.quest-turnin-submit{width:100%;min-width:0;margin:0!important}
.quest-turnin-inline{min-width:0;display:grid;grid-template-columns:minmax(92px,1fr) 74px 68px;align-items:center;gap:6px;padding:4px 5px 4px 10px;border:2px solid #5d462b;outline:1px solid rgba(213,151,73,.18);outline-offset:-4px;background:linear-gradient(180deg,#18110c,#090705);box-shadow:inset 0 0 0 1px rgba(255,215,139,.07),inset 0 0 12px rgba(0,0,0,.45);box-sizing:border-box}
.quest-turnin-possible{min-width:0;color:#c9a66d;font:700 10px/1.15 "Courier New",monospace;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.quest-turnin-possible strong{color:#f0ca86;font:800 12px/1 Georgia,"Times New Roman",serif}
.quest-turnin-amount{appearance:textfield;-moz-appearance:textfield;width:100%;height:30px;min-width:0;box-sizing:border-box;border:1px solid #73522f!important;outline:1px solid rgba(213,151,73,.10);outline-offset:-3px;border-radius:0!important;background:linear-gradient(#16100b,#0a0705)!important;color:#f1d39a!important;box-shadow:inset 0 0 8px rgba(0,0,0,.72)!important;text-align:center;font:700 13px/30px Georgia,"Times New Roman",serif!important;padding:0 6px!important}
.quest-turnin-amount:focus{border-color:#b67d38!important;outline-color:rgba(238,185,99,.28)!important;box-shadow:inset 0 0 8px rgba(0,0,0,.72),0 0 0 1px rgba(182,125,56,.16)!important}
.quest-turnin-amount::-webkit-outer-spin-button,.quest-turnin-amount::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.quest-turnin-max{height:30px!important;min-height:30px!important;min-width:0!important;padding:0 8px!important;margin:0!important;font-size:10px!important;line-height:26px!important}
@media(max-width:620px){.quest-turnin-row{grid-template-columns:1fr}.quest-turnin-inline{grid-template-columns:minmax(80px,1fr) 68px 62px}}

/* Welt-NPC-Zonencarousel ohne transformiertes Text-Raster: scharfe Schrift auf beiden Karten. */
.tier-carousel-shell.has-world-npc .tier-carousel-track{display:grid;width:100%;transform:none!important;transition:none!important;will-change:auto!important}
.tier-carousel-shell.has-world-npc .tier-carousel-face{grid-area:1/1;flex:none;width:100%;min-width:0}
.tier-carousel-shell.has-world-npc .tier-npc-option{display:none}
.tier-carousel-shell.has-world-npc.show-npc .tier-carousel-face:not(.tier-npc-option){display:none}
.tier-carousel-shell.has-world-npc.show-npc .tier-npc-option{display:grid}

/* 2026-09-17 CANONICAL QUEST HUD — single visual truth for every quest type. */
body > #questHudPanel,
body > #lorheimBookPanel{
  display:none!important;
  position:fixed!important;
  top:var(--quest-hud-anchor-top,96px)!important;
  left:var(--quest-hud-anchor-left,58px)!important;
  right:auto!important;
  z-index:24020!important;
  width:410px!important;
  max-width:calc(100vw - var(--quest-hud-anchor-left,58px) - 10px)!important;
  max-height:calc(100vh - var(--quest-hud-anchor-top,96px) - 10px)!important;
  box-sizing:border-box!important;
  padding:10px!important;
  overflow:hidden!important;
  border:3px solid #6f5535!important;
  outline:1px solid rgba(213,151,73,.35)!important;
  outline-offset:-6px!important;
  background:linear-gradient(145deg,#201913,#100d0b 58%,#070605)!important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.08),0 18px 40px rgba(0,0,0,.72)!important;
}
body > #questHudPanel.open,body > #lorheimBookPanel.open{display:block!important}
body > #questHudPanel > .quest-hud-title{
  margin:0 30px 9px 0!important;
  color:#eee5d6!important;
  font:700 13px/1.2 "Courier New",Courier,monospace!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  text-align:center!important;
}
body > #questHudPanel.detail-open > .quest-hud-title{display:none!important}
body > #questHudPanel #questHudList{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;
  max-height:calc(100vh - var(--quest-hud-anchor-top,96px) - 44px)!important;
  padding:0 4px 0 0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  scrollbar-width:thin!important;
  scrollbar-color:#765938 #120c08!important;
}
body > #questHudPanel #questHudList::-webkit-scrollbar{width:8px!important}
body > #questHudPanel #questHudList::-webkit-scrollbar-track{background:#120c08!important}
body > #questHudPanel #questHudList::-webkit-scrollbar-thumb{background:#765938!important;border:2px solid #120c08!important}
body > #questHudPanel .quest-hud-card{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  margin:0!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
  border:1px solid #654a2b!important;
  outline:1px solid rgba(213,151,73,.10)!important;
  outline-offset:-3px!important;
  background:linear-gradient(180deg,#2a1d12,#160e09)!important;
  box-shadow:inset 0 0 0 1px #090503!important;
  color:#e8dfd0!important;
  text-align:left!important;
  cursor:pointer!important;
}
body > #questHudPanel .quest-hud-card.ready{border-color:#a87833!important;box-shadow:inset 0 0 0 1px #090503,0 0 0 1px rgba(210,155,70,.14)!important}
body > #questHudPanel .quest-hud-card-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
body > #questHudPanel .quest-hud-name{color:var(--gold-bright)!important;font:700 14px/1.18 Georgia,"Times New Roman",serif!important;white-space:normal!important;overflow-wrap:anywhere!important}
body > #questHudPanel .quest-hud-card-copy small{color:#9f9485!important;font:10px/1.18 "Courier New",Courier,monospace!important;text-transform:uppercase!important;letter-spacing:.04em!important}
body > #questHudPanel .quest-hud-empty{padding:12px 10px!important;color:#a99b88!important;font:11px/1.4 "Courier New",Courier,monospace!important}

body > #questHudPanel .quest-hud-close{
  position:absolute!important;right:9px!important;top:7px!important;z-index:3!important;
}

body > #questHudPanel .quest-canonical-detail{display:grid!important;gap:9px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
body > #questHudPanel .quest-hud-back{justify-self:start!important;width:auto!important;margin:0!important;padding:6px 10px!important;min-height:0!important;font-size:11px!important;line-height:1.15!important}
body > #questHudPanel .quest-canonical-head{display:grid!important;gap:4px!important;min-width:0!important;padding:1px 0 2px!important}
body > #questHudPanel .quest-canonical-title{margin:0!important;padding-right:24px!important;color:#f0d19a!important;font:700 19px/1.08 Georgia,"Times New Roman",serif!important;text-transform:uppercase!important;letter-spacing:.025em!important;white-space:normal!important;overflow-wrap:anywhere!important}
body > #questHudPanel .quest-canonical-npc{margin:0!important;color:#a99b88!important;font:10px/1.25 "Courier New",Courier,monospace!important;text-transform:uppercase!important;letter-spacing:.055em!important}
body > #questHudPanel .quest-canonical-copy{margin:4px 0 1px!important;color:#e7dccb!important;font:10px/1.45 "Courier New",Courier,monospace!important;white-space:pre-line!important;overflow-wrap:anywhere!important}
body > #questHudPanel .quest-canonical-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;min-width:0!important}
body > #questHudPanel .quest-canonical-box{display:grid!important;gap:4px!important;width:100%!important;min-width:0!important;padding:8px 9px!important;box-sizing:border-box!important;border:1px solid #5d462b!important;background:rgba(24,15,9,.72)!important;text-align:left!important}
body > #questHudPanel .quest-canonical-box > strong{color:#dca85e!important;font:700 10px/1.2 "Courier New",Courier,monospace!important;text-transform:uppercase!important;letter-spacing:.06em!important}
body > #questHudPanel .quest-canonical-box span{color:#eee2ce!important;font:12px/1.34 "Courier New",Courier,monospace!important;white-space:normal!important;overflow-wrap:anywhere!important}
body > #questHudPanel .quest-canonical-box em{color:#a99b88!important;font:10px/1.25 "Courier New",Courier,monospace!important;font-style:normal!important;white-space:normal!important}
body > #questHudPanel .quest-canonical-requirement-row{display:grid!important;gap:3px!important}
body > #questHudPanel .quest-canonical-requirement-row.is-extra{padding-top:6px!important;border-top:1px solid rgba(132,91,48,.42)!important}
body > #questHudPanel .quest-canonical-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;margin-top:1px!important}
body > #questHudPanel .quest-hud-complete,
body > #questHudPanel .story-quest-button[data-story-primary="complete"]{width:100%!important;margin:0!important;border-color:#b47b2e!important;background:linear-gradient(180deg,#d08b2e,#6b3915)!important;color:#1b1006!important;font-weight:800!important;text-shadow:0 1px rgba(255,224,155,.28)!important}
body > #questHudPanel .quest-hud-cancel{width:100%!important;margin:0!important;border-color:#843d36!important;background:linear-gradient(180deg,#56251f,#27100e)!important;color:#e7c4b8!important}
body > #questHudPanel .story-quest-button{width:100%!important;margin:0!important}
@media(max-width:560px){
  body > #questHudPanel,body > #lorheimBookPanel{width:calc(100vw - var(--quest-hud-anchor-left,58px) - 8px)!important;max-width:none!important}
  body > #questHudPanel .quest-canonical-title{font-size:17px!important}
}


/* ============================================================
   2026-09-17 · CANONICAL SIDEBAR SURFACE
   Eine Hintergrundfarbe fuer alle Sidebar-Menues und deren
   inhaltliche Unterebenen. Frames/Border/Akzentfarben bleiben
   unveraendert. Buttons und Formfelder behalten ihre Zustandsfarben.
   ============================================================ */
:root{--lorheim-sidebar-surface:#0E0C09;}

/* Fertigkeiten + aktive Buffs */
#skillHubPanel,
#skillHubPanel .skill-hub-row,
#buffHudPanel,
#buffHudPanel .buff-row{
  background:var(--lorheim-sidebar-surface)!important;
}

/* Questlog: Ebene 1 + kanonische Detail-/Anforderungsflaechen */
body > #questHudPanel,
body > #lorheimBookPanel,
body > #questHudPanel .quest-hud-card,
body > #questHudPanel .quest-canonical-box{
  background:var(--lorheim-sidebar-surface)!important;
}

/* Chat: Hauptpanel und echte Untermenue-/Inhaltsflaechen */
body :is(#serverChatPanel,.server-chat-panel),
body :is(#serverChatPanel,.server-chat-panel) .server-chat-head,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-settings-menu,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-presence,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-log,
body :is(#serverChatPanel,.server-chat-panel) .server-chat-emoji{
  background:var(--lorheim-sidebar-surface)!important;
}

/* Post: Hauptansicht, Detailansicht und Nachricht-schreiben-Unterebene */
#mailModalRoot .order-modal-box.mailbox-modal-box,
#mailModalRoot .mailbox-row,
#mailModalRoot .mailbox-detail-meta,
#mailModalRoot .mailbox-detail-body,
#mailModalRoot .mailbox-empty,
#mailModalRoot .mailbox-received-money-v11,
#mailComposeModalRoot .mail-compose-shell-v10{
  background:var(--lorheim-sidebar-surface)!important;
}

/* Jahrmarkttruhe: exakt derselbe gemeinsame Truhendialog, nur Festival-Farbgebung. */



/* 2026-09-21 · kanonische Gruppenbuff-Anzeige: Buffs immer oberhalb der Spieler-LP. */
.dungeon-arena-actor.player .dungeon-arena-buffs{
  display:flex!important;position:absolute!important;left:0!important;top:-20px!important;z-index:28!important;
  height:18px!important;min-height:18px!important;width:100%!important;max-width:none!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;overflow:visible!important;
}
.dungeon-arena-actor.player .dungeon-arena-buffs img{width:16px!important;height:16px!important;object-fit:contain!important;}
.dungeon-arena-player-buff{position:relative;display:inline-flex;width:16px;height:16px;}
.dungeon-arena-player-buff>b{position:absolute;right:-3px;bottom:-4px;min-width:9px;height:9px;padding:0 1px;border-radius:5px;background:#090705;color:#f4d69c;font:700 7px/9px "Courier New",monospace;text-align:center;}
.dungeon-arena-actor.player.anim-group-buff .dungeon-arena-actor-inner{animation:dungeonGroupBuffPulse .72s ease-out;}
@keyframes dungeonGroupBuffPulse{0%{filter:none}28%{filter:brightness(1.55) drop-shadow(0 0 6px rgba(245,206,113,.85));transform:scale(1.025)}100%{filter:none;transform:scale(1)}}
@media(max-width:760px){.dungeon-arena-actor.player .dungeon-arena-buffs{left:0!important;top:-18px!important;width:100%!important;max-width:none!important;height:16px!important;min-height:16px!important;gap:3px!important}.dungeon-arena-actor.player .dungeon-arena-buffs img,.dungeon-arena-player-buff{width:15px!important;height:15px!important}}


/* 2026-09-23 canonical elemental combat feedback */
.dungeon-arena-ability-pop{width:58px!important;height:58px!important;z-index:46!important;}
.dungeon-arena-ability-pop img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;filter:drop-shadow(0 3px 4px rgba(0,0,0,.82))!important;}
@media(max-width:760px){.dungeon-arena-ability-pop{width:48px!important;height:48px!important}.dungeon-arena-ability-pop img{width:43px!important;height:43px!important;max-width:43px!important;max-height:43px!important}}
.dungeon-arena-actor.combat-impact-fire .dungeon-arena-sprite{animation:lorheimImpactFire .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-frost .dungeon-arena-sprite{animation:lorheimImpactFrost .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-poison .dungeon-arena-sprite{animation:lorheimImpactPoison .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-bleed .dungeon-arena-sprite{animation:lorheimImpactBleed .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-shadow .dungeon-arena-sprite{animation:lorheimImpactShadow .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-lightning .dungeon-arena-sprite{animation:lorheimImpactLightning .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-arcane .dungeon-arena-sprite{animation:lorheimImpactArcane .62s ease-out both!important}
.dungeon-arena-actor.combat-impact-physical .dungeon-arena-sprite{animation:lorheimImpactPhysical .52s ease-out both!important}
@keyframes lorheimImpactFire{0%{filter:brightness(1)}25%{filter:brightness(1.8) saturate(1.6) sepia(.45) drop-shadow(0 0 5px #ff2600) drop-shadow(0 0 12px #ff7a00)}65%{filter:brightness(1.3) saturate(1.3) drop-shadow(0 0 7px #b92000)}100%{filter:brightness(1)}}
@keyframes lorheimImpactFrost{0%{filter:brightness(1)}25%{filter:brightness(1.75) saturate(.7) hue-rotate(160deg) drop-shadow(0 0 5px #bff4ff) drop-shadow(0 0 12px #56cfff)}100%{filter:brightness(1)}}
@keyframes lorheimImpactPoison{0%{filter:brightness(1)}25%{filter:brightness(1.5) saturate(1.7) hue-rotate(65deg) drop-shadow(0 0 6px #63ff43) drop-shadow(0 0 12px #159900)}100%{filter:brightness(1)}}
@keyframes lorheimImpactBleed{0%{filter:brightness(1)}25%{filter:brightness(1.45) saturate(1.7) drop-shadow(0 0 6px #d40020) drop-shadow(0 0 11px #69000d)}100%{filter:brightness(1)}}
@keyframes lorheimImpactShadow{0%{filter:brightness(1)}25%{filter:brightness(1.3) saturate(1.35) drop-shadow(0 0 6px #9f54ff) drop-shadow(0 0 13px #3f087d)}100%{filter:brightness(1)}}
@keyframes lorheimImpactLightning{0%{filter:brightness(1)}20%{filter:brightness(2.25) saturate(.75) drop-shadow(0 0 5px #e9fbff) drop-shadow(0 0 13px #7bdcff)}100%{filter:brightness(1)}}
@keyframes lorheimImpactArcane{0%{filter:brightness(1)}25%{filter:brightness(1.65) saturate(1.45) drop-shadow(0 0 6px #f06cff) drop-shadow(0 0 13px #7b2cff)}100%{filter:brightness(1)}}
@keyframes lorheimImpactPhysical{0%{filter:brightness(1)}25%{filter:brightness(1.45) drop-shadow(0 0 6px rgba(255,70,70,.8))}100%{filter:brightness(1)}}

/* Canonical timed-task progress: JS width is the authoritative task clock. */
.authoritative-task-progress{transition:none!important;will-change:transform;}

/* Story-extra location artwork (Ragors Vermächtnis / future story rooms). */
.story-extra-room-image{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:8px;margin:0 0 14px;}

/* Skilltree: Wechsel zwischen Haupt- und Sekundaerspezialisierung. */
.skilltree-modal .elf-tree-card{position:relative}
.skilltree-switch-chevron{position:absolute;top:50%;right:14px;z-index:8;width:42px;height:54px;padding:0;border:0;background:transparent;display:grid;place-items:center;transform:translateY(-50%);cursor:default;filter:drop-shadow(0 2px 3px #000)}
.skilltree-switch-chevron span{display:block;width:0;height:0;border-top:13px solid transparent;border-bottom:13px solid transparent;border-left:16px solid #665f54;transition:transform .16s ease,filter .16s ease,border-left-color .16s ease}
.skilltree-switch-chevron.is-available{cursor:pointer}
.skilltree-switch-chevron.is-available span{border-left-color:#e8bd52}
.skilltree-switch-chevron.is-available:hover span,.skilltree-switch-chevron.is-available:focus-visible span{filter:brightness(1.25) drop-shadow(0 0 5px rgba(255,193,73,.5))}
.skilltree-switch-chevron.is-reversed{right:auto;left:14px}
.skilltree-switch-chevron.is-reversed span{transform:rotate(180deg)}
.skilltree-switch-chevron:disabled{opacity:.78}
@keyframes skilltreeSecondaryChevronPulse{0%,100%{filter:drop-shadow(0 2px 3px #000)}50%{filter:drop-shadow(0 2px 3px #000) drop-shadow(0 0 5px rgba(232,189,82,.48))}}
.skilltree-switch-chevron.is-pulsing{animation:skilltreeSecondaryChevronPulse 1.8s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.skilltree-switch-chevron.is-pulsing{animation:none}}

/* 2026-10-02 Talent hold: whole skill button glow + zoom for the canonical 800 ms hold. */
.skilltree-hold-cursor-loader{display:none!important;}
.elf-skill-node.holding{
  transform:scale(1.08)!important;
  filter:brightness(1.28) saturate(1.08)!important;
  animation:skillHoldButtonGlow .8s ease-in-out both!important;
  box-shadow:0 0 0 4px #e0aa47,0 0 14px rgba(255,211,115,.78),0 0 28px rgba(255,163,45,.82),inset 0 0 0 1px rgba(255,239,190,.36),inset 0 -10px 20px rgba(0,0,0,.30)!important;
}
.elf-skill-node.holding .elf-skill-icon img{
  opacity:1!important;
  filter:brightness(1.12) saturate(1.08)!important;
}
.elf-skill-node.holding::after{display:none!important;content:none!important;}
@keyframes skillHoldButtonGlow{
  0%{transform:scale(1.00);filter:brightness(1) saturate(1);}
  38%{transform:scale(1.055);filter:brightness(1.20) saturate(1.05);}
  100%{transform:scale(1.08);filter:brightness(1.30) saturate(1.08);}
}
@media (prefers-reduced-motion:reduce){
  .elf-skill-node.holding{animation:none!important;transform:scale(1.06)!important;}
}


/* 2026-10-05 Bossloot presentation parity: signature boss drops use the same visual scale as PvE loot.
   This targets boss loot only; PvE set cards and generic chest dialogs keep their own presentation. */














/* 2026-10-05: Kartografenquests existieren ausschließlich im linken Quest-HUD. */
#questHudPanel .cartographer-quest-view,
#questHudPanel .cartographer-quest-view.quest-board-panel,
#questHudPanel .cartographer-quest-view .quest-detail-card{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}
#questHudPanel .cartographer-quest-view{margin:0!important}
#questHudPanel .cartographer-quest-view .quest-detail-grid{grid-template-columns:1fr!important}

/* Pending loot: larger grab handle only; loot/claim authority remains untouched. */
.dungeon-chest-modal.pending-inventory-access #dungeonChestKicker{
  
  
  cursor:grab!important;
}
.dungeon-chest-modal.pending-inventory-access #dungeonChestKicker.dragging{cursor:grabbing!important;}

/* Multiplayer player list reuses the canonical Order member-list CSS verbatim. */
.multiplayer-player-list-panel{margin-top:10px;width:100%;box-sizing:border-box;}

/* 2026-10-06 Last Oath quest-item reward frame: canonical square double-frame, no rounded corners. */





/* Last Oath: T3 Forest Ruin story handoff. The continue action lives on the
   completed dungeon banner; once entered, the story room owns the dungeon view. */
.story-extra-banner-continue{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;margin:0!important;pointer-events:none}
.story-extra-banner-continue>.button{pointer-events:auto;width:auto!important;min-width:104px;max-width:160px;padding:7px 18px!important}
/* The dungeon host must obey the standard view/overlay visibility lifecycle. */
.last-oath-waldruine-room{width:min(100%,760px);margin:18px auto!important;box-sizing:border-box;display:grid;gap:12px;justify-items:center;text-align:center}
.last-oath-waldruine-room .story-extra-room-image{width:100%;max-height:430px;object-fit:cover;border-radius:0;margin:0}

.last-oath-waldruine-room h3{margin:0;color:#e2b56f}
.last-oath-waldruine-room p{margin:0;max-width:660px;line-height:1.55}
.last-oath-story-chest{width:min(100%,340px);cursor:pointer;outline-offset:4px}
.last-oath-story-chest:focus-visible{outline:2px solid #dcb779}
.last-oath-story-chest[aria-disabled="true"]{opacity:.65;pointer-events:none}
.last-oath-story-chest .dungeon-chest-box{position:relative;box-sizing:border-box;pointer-events:none;}

.last-oath-waldruine-room .last-oath-story-return{width:auto!important;min-width:140px;max-width:220px;padding:8px 18px}


/* 2026-10-06 language/community entry + chat community controls */
.lorheim-auth-language-choice{display:flex;justify-content:center;gap:28px;margin:12px 0 2px;padding-top:10px;border-top:1px solid rgba(198,160,111,.22)}
.lorheim-auth-language-choice button{appearance:none;border:1px solid transparent;background:transparent;color:#c6a06f;min-width:78px;padding:6px 8px;cursor:pointer;display:grid;justify-items:center;gap:4px;opacity:.7}
.lorheim-auth-language-choice button:hover,.lorheim-auth-language-choice button.active{opacity:1;border-color:#6b4c2c;background:rgba(73,45,20,.18)}
.lorheim-language-flag{display:block;width:36px;height:24px;flex-shrink:0}
.lorheim-mini-flag{display:inline-block;width:22px;height:15px;vertical-align:middle;flex-shrink:0}
.lorheim-language-label{font:700 12px/1 "Courier New",monospace;letter-spacing:.08em}
.community-choice-row .button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.community-current-status{display:block;margin-top:7px!important}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper-target{padding:5px 8px;border-bottom:1px solid #3b2a18;color:#d5b277;font:11px/1.2 "Courier New",monospace;display:none}
body :is(#serverChatPanel,.server-chat-panel) .server-chat-whisper-target.visible{display:block}


/* Shop preview: large 2x2 purchase surface, intentionally no payment authority yet. */
.lorheim-shop-overlay{
  position:fixed;inset:0;z-index:12500;display:none;align-items:center;justify-content:center;
  padding:24px;background:rgba(4,3,2,.82);backdrop-filter:blur(3px);
}
.lorheim-shop-overlay.open{display:flex;}
body.lorheim-shop-open{overflow:hidden;}
.lorheim-shop-popover{
  position:relative;width:min(820px,96vw);max-height:92vh;overflow:auto;padding:24px 26px 22px!important;
  border:2px solid #9d6a25!important;outline:1px solid rgba(255,215,139,.34);outline-offset:-6px;
  background:radial-gradient(circle at 50% 0,rgba(255,183,73,.10),transparent 34%),linear-gradient(145deg,#1b1511,#0b0908 72%,#050403)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,221,151,.14),inset 0 0 28px rgba(255,157,41,.045)!important;
}

.lorheim-shop-close{
  position:absolute;right:12px;top:12px;
  z-index:2;
}

.lorheim-shop-head{text-align:center;margin:0 42px 18px;}
.lorheim-shop-head h2{margin:0;color:#ffb13b;font:900 27px Georgia,"Times New Roman",serif;letter-spacing:.12em;text-shadow:0 2px #000;}
.lorheim-shop-head p{margin:7px 0 0;color:#c6a06f;font:700 11px/1.35 "Courier New",monospace;letter-spacing:.06em;}
.lorheim-shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1040px;margin:0 auto;}
.lorheim-shop-card{
  min-height:245px;padding:16px 15px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;
  border:2px solid #a46e27;outline:1px solid rgba(255,219,148,.30);outline-offset:-6px;
  background:radial-gradient(circle at 50% 25%,rgba(255,191,92,.11),transparent 42%),linear-gradient(150deg,#211810,#0e0a07 70%,#080604);
  box-shadow:inset 0 0 0 1px rgba(255,221,151,.12),inset 0 -18px 30px rgba(0,0,0,.22),0 7px 14px rgba(0,0,0,.38);
}
.lorheim-shop-card:hover{border-color:#d89b3d;box-shadow:0 0 18px rgba(255,177,59,.15),inset 0 0 0 1px rgba(255,221,151,.16),0 8px 16px rgba(0,0,0,.42);}
.lorheim-shop-icon{min-height:70px;display:grid;place-items:center;font-size:48px;line-height:1;filter:drop-shadow(0 5px 5px rgba(0,0,0,.55));}
.lorheim-shop-card h3{min-height:38px;margin:8px 0 5px;color:#f6d79c;font:900 15px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.045em;}
.lorheim-shop-card p{min-height:34px;margin:0 0 8px;color:#b99a72;font:11px/1.35 "Courier New",monospace;}
.lorheim-shop-price{display:block;margin:3px 0 10px;color:#ffbd55;font:900 17px "Courier New",monospace;text-shadow:0 2px #000;}
.lorheim-shop-buy{width:100%;max-width:180px;margin:0!important;padding:8px 12px!important;font:900 11px "Courier New",monospace!important;}
.lorheim-shop-status{max-width:700px;min-height:18px;margin:14px auto 0;text-align:center;color:#c6a06f;font:10px/1.4 "Courier New",monospace;}
@media(max-width:620px){
  .lorheim-shop-overlay{padding:10px;align-items:flex-start;overflow:auto;}
  .lorheim-shop-popover{margin:auto 0;padding:18px 12px 16px!important;max-height:none;}
  .lorheim-shop-head{margin:0 38px 14px;}.lorheim-shop-head h2{font-size:22px;}
  .lorheim-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .lorheim-shop-card{min-height:205px;padding:10px 8px;}
  .lorheim-shop-icon{min-height:54px;font-size:36px;}
  .lorheim-shop-card h3{min-height:34px;font-size:11px;}
  .lorheim-shop-card p{font-size:8.5px;min-height:32px;}
  .lorheim-shop-price{font-size:13px;margin-bottom:7px;}
  .lorheim-shop-buy{font-size:9px!important;padding:6px 6px!important;}
}

/* === LORHEIM INFO / CONTACT / LEGAL CENTER 2026-10-06 === */
.lorheim-auth-footer{display:flex;flex-direction:column;align-items:center;gap:8px}
.lorheim-auth-footer-status{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.lorheim-auth-legal-separator{color:#6f5c44;font:400 12px/1.2 "Courier New",Courier,monospace;pointer-events:none}
.lorheim-info-contact-summary{display:grid;gap:10px}
.lorheim-legal-overlay{position:fixed;inset:0;z-index:20050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(2,2,2,.88);backdrop-filter:blur(3px)}
.lorheim-legal-overlay.open{display:flex}
.lorheim-legal-panel{position:relative;width:min(960px,96vw);height:min(760px,91vh);display:flex;flex-direction:column;border:2px solid #8f6a2e;outline:1px solid rgba(238,198,106,.42);outline-offset:-6px;background:radial-gradient(circle at 20% 0,rgba(210,156,67,.10),transparent 35%),linear-gradient(145deg,#1a1510,#090807 70%);box-shadow:0 22px 70px rgba(0,0,0,.75),inset 0 0 0 1px rgba(255,226,159,.12);padding:18px}

.lorheim-legal-close{position:absolute;right:14px;top:12px;z-index:2;}
.lorheim-legal-head{padding:2px 44px 12px 4px;border-bottom:1px solid rgba(194,150,76,.28)}
.lorheim-legal-head h2{margin:0;color:#f0d392;font:700 22px/1.15 "Courier New",monospace;letter-spacing:.08em}
.lorheim-legal-head p{margin:8px 0 0;color:#c9bca6;font:11px/1.45 "Courier New",monospace}
.lorheim-legal-scroll{overflow:auto;padding:8px 8px 24px 4px;scrollbar-width:thin}
.lorheim-legal-lang:not([hidden]){display:grid;gap:14px}
.lorheim-legal-lang section{scroll-margin-top:10px;border:1px solid rgba(197,151,76,.24);background:rgba(6,5,4,.48);padding:15px}
.lorheim-legal-lang h3{margin:0 0 10px;color:#e6c67e;font:700 15px/1.25 "Courier New",monospace;letter-spacing:.05em}
.lorheim-legal-lang p{margin:7px 0;color:#c9c0b1;font:11px/1.55 "Courier New",monospace}
.lorheim-legal-lang strong{color:#e6d7bc}
.lorheim-legal-required{border-left:3px solid #c47748;padding:8px 10px;background:rgba(138,67,31,.13);color:#e4b890!important}
body.lorheim-legal-open{overflow:hidden}
@media(max-width:700px){.lorheim-legal-overlay{padding:7px}.lorheim-legal-panel{width:100%;height:95vh;padding:13px}.lorheim-legal-head h2{font-size:18px}.lorheim-legal-lang section{padding:12px}}

/* Admin Monitoring V1 - intentionally compact */
.lorheim-admin-monitoring{gap:12px}.lorheim-admin-monitor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.lorheim-admin-monitor-body{display:grid;gap:12px}.admin-monitor-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}.admin-monitor-row{display:flex;justify-content:space-between;gap:12px;padding:7px 9px;border:1px solid rgba(191,154,78,.28);background:rgba(0,0,0,.2);font:12px "Courier New",monospace}.admin-monitor-row strong{white-space:nowrap}.lorheim-admin-monitor-body .ok{color:#8fd18d}.lorheim-admin-monitor-body .warn{color:#e4b760}.admin-monitor-security,.admin-monitor-errors{display:grid;gap:6px;padding:10px;border:1px solid rgba(191,154,78,.34);background:rgba(0,0,0,.22);font:12px "Courier New",monospace}.admin-monitor-security small{opacity:.72}.admin-monitor-errors>div{display:grid;grid-template-columns:145px minmax(130px,1fr) 1fr;gap:8px;padding-top:5px;border-top:1px solid rgba(255,255,255,.07);font-size:11px}.admin-monitor-errors code{overflow:hidden;text-overflow:ellipsis}.admin-monitor-errors small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.7}@media(max-width:760px){.admin-monitor-grid{grid-template-columns:1fr}.admin-monitor-errors>div{grid-template-columns:1fr}.lorheim-admin-monitor-head{align-items:flex-start;flex-direction:column}}


/* ============================================================
   2026-10-06 · QUEST HUD VISUAL SINGLE TRUTH
   Every quest rendered in the left quest HUD uses one readable
   typographic system. Quest content never renders image artwork.
   Gameplay/quest authority is intentionally untouched.
   ============================================================ */
body > #questHudPanel #questHudList img{
  display:none!important;
}

/* Canonical quest detail: this is the visual baseline for every quest. */
body > #questHudPanel .quest-canonical-copy{
  margin:5px 0 2px!important;
  color:#e7dccb!important;
  font:12px/1.45 "Courier New",Courier,monospace!important;
  white-space:pre-line!important;
  overflow-wrap:anywhere!important;
}
body > #questHudPanel .quest-canonical-box > strong{
  font:700 10px/1.2 "Courier New",Courier,monospace!important;
}
body > #questHudPanel .quest-canonical-box span{
  color:#eee2ce!important;
  font:13px/1.38 "Courier New",Courier,monospace!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
body > #questHudPanel .quest-canonical-box em{
  color:#b49161!important;
  font:11px/1.32 "Courier New",Courier,monospace!important;
  font-style:normal!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Legacy/NPC/cartographer interactions opened inside the same HUD are forced
   onto the exact same reading scale and one-column detail layout. */
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-card{
  display:grid!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-head,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-top{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  align-items:start!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-head .quest-list-icon,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-top .quest-list-icon,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-item-image,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-special-image{
  display:none!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-head p,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-top p,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-card > p,
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-npc-dialogue p{
  margin:5px 0 2px!important;
  color:#e7dccb!important;
  font:12px/1.45 "Courier New",Courier,monospace!important;
  white-space:pre-line!important;
  overflow-wrap:anywhere!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-box{
  display:grid!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
  padding:8px 9px!important;
  box-sizing:border-box!important;
  border:1px solid #5d462b!important;
  background:var(--lorheim-sidebar-surface,#0E0C09)!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-box strong{
  color:#dca85e!important;
  font:700 10px/1.2 "Courier New",Courier,monospace!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-box span{
  color:#eee2ce!important;
  font:13px/1.38 "Courier New",Courier,monospace!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
body > #questHudPanel .quest-board-panel.quest-detail-view .quest-detail-box em{
  color:#b49161!important;
  font:11px/1.32 "Courier New",Courier,monospace!important;
  font-style:normal!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* 2026-10-06: Cartographer/world-map back-room cards use the normal tavern card language. */
#gambleTab .craft[data-world-map],
#gambleTab .craft[data-cartographer]{
  border-color:var(--border,#6f5535) !important;
  outline-color:rgba(213,151,73,.22) !important;
  background:linear-gradient(145deg,#18120d,#090705 72%) !important;
  box-shadow:inset 0 0 0 1px rgba(255,215,139,.10),inset 0 0 0 4px rgba(6,5,4,.62),0 6px 14px rgba(0,0,0,.32) !important;
}
#gambleTab .craft[data-world-map] .name,
#gambleTab .craft[data-cartographer] .name{color:inherit !important}

/* Canonical world-map fog V7: the canvas and parchment map share one pixel frame.
   Only server-synchronized cartographer completion selects the reveal masks. */
.lorheim-map-canvas{position:relative;display:block;width:min(100%,calc((100vh - 124px)*2/3));aspect-ratio:2/3;margin-inline:auto;line-height:0}
.lorheim-map-canvas>img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:fill!important}
.lorheim-map-fog-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;background-image:url("assets/images/weltkarte_fog.png");background-size:100% 100%;background-repeat:no-repeat}

/* 2026-10-07: Rare mobs, rare loot and epic quest items use the canonical achievement frame. */
.lorheim-achievement-frame-notice{box-shadow:inset 0 0 0 1px rgba(255,215,139,.18),inset 0 0 0 4px rgba(6,5,4,.72),inset 0 0 22px rgba(255,150,39,.055),0 10px 24px rgba(0,0,0,.55),0 0 12px rgba(246,232,202,.085)!important}



.rare-notice-mob-img{width:32px;height:32px}



.rare-loot-achievement-notice,.quest-item-achievement-notice{width:100%;box-sizing:border-box}

/* Legacy fallback only: never return to the former red quest-item frame. */





/* V20261007: Options menu fixed-height shell + Settings/Look merge
   The outer options stage never changes height between sections.
   Long subsection content scrolls INSIDE the panel. */
.lorheim-options-stage{
  height:520px !important;
  min-height:520px !important;
  max-height:520px !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
.lorheim-options-list{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:3px !important;
}
.lorheim-options-hint{
  flex:0 0 auto !important;
}
.lorheim-options-subpanel{
  height:100% !important;
  min-height:0 !important;
  max-height:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  flex-direction:column !important;
}
.lorheim-options-subpanel.open{
  display:flex !important;
}
.lorheim-options-subpanel > .lorheim-options-back,
.lorheim-options-subpanel > h3{
  flex:0 0 auto !important;
}
.lorheim-options-content.active{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-right:5px;
}
.lorheim-look-settings .classic-option-status{
  margin-bottom:0 !important;
}
@media(max-height:700px){
  .lorheim-options-stage{
    height:470px !important;
    min-height:470px !important;
    max-height:470px !important;
  }
}


/* === Smooth authoritative task progress =====================================
   Timed task bars are compositor-driven. Never animate width here: width updates
   force layout/paint and fight requestAnimationFrame, producing visible jitter. */
.authoritative-task-progress{
  display:block !important;
  height:100% !important;
  width:100% !important;
  transform-origin:0 50% !important;
  transform:scaleX(var(--lorheim-progress-scale,0));
  /* JS writes the exact phase each frame; interpolation here causes retargeting/jitter. */
  transition:none !important;
  will-change:transform;
  backface-visibility:hidden;
  contain:paint;
}
.authoritative-task-progress.lorheim-progress-wrap-reset{transition:none !important;}
/* Preserve fishing bite motion without replacing the progress scale transform. */
@keyframes fishingBiteTwitch{
  0%{transform:scaleX(var(--lorheim-progress-scale,1)) translateX(0);filter:brightness(1)}
  28%{transform:scaleX(var(--lorheim-progress-scale,1)) translateX(-3px);filter:brightness(1.55)}
  62%{transform:scaleX(var(--lorheim-progress-scale,1)) translateX(3px);filter:brightness(1.3)}
  100%{transform:scaleX(var(--lorheim-progress-scale,1)) translateX(0);filter:brightness(1)}
}


/* Merten: invisible dialogue hit-area; the speech bubble exists only as the hover cursor. */
.zone-banner-wrap{position:relative}
.world-npc-dialogue-hotspot{position:absolute;left:0;top:0;width:100%;height:100%;border:0;background:transparent;padding:0;margin:0;z-index:40;pointer-events:auto;appearance:none;-webkit-appearance:none;outline:none;box-shadow:none;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 4h24v17H15l-7 7v-7H4z' fill='%23ffffff' stroke='%231b120b' stroke-width='2'/%3E%3Ccircle cx='10' cy='13' r='2' fill='%231b120b'/%3E%3Ccircle cx='16' cy='13' r='2' fill='%231b120b'/%3E%3Ccircle cx='22' cy='13' r='2' fill='%231b120b'/%3E%3C/svg%3E") 4 4,pointer}
.world-npc-dialogue-hotspot-merten{left:20%;top:13%;width:25%;height:72%}
.world-npc-dialogue-hotspot-roland{left:62%;top:23%;width:24%;height:55%}
.world-npc-dialogue-hotspot-verwitterter_grabstein{left:57%;top:36%;width:15%;height:28%}
.world-npc-dialogue-hotspot-aschenkloster{left:61%;top:45%;width:20%;height:36%}
.world-npc-dialogue-hotspot-bjarn{left:27%;top:39%;width:15%;height:38%}
.world-npc-dialogue-hotspot-fizzl_goldschnapp{left:76%;top:43%;width:14%;height:31%}
.world-npc-dialogue-hotspot-alva{left:0;top:0;width:100%;height:100%;z-index:50;pointer-events:auto}
body.world-npc-view-active .world-npc-story-content.aschenkloster-task-host{max-width:none;display:block}
.aschenkloster-task-grid{width:100%}

.world-npc-dialogue-hotspot:focus-visible{outline:2px solid var(--gold-bright);outline-offset:-3px}
.world-npc-local-toast{position:fixed;left:var(--world-npc-toast-x);top:var(--world-npc-toast-y);transform:translate(0,-50%);z-index:30000;max-width:min(340px,calc(100vw - 28px));white-space:normal}


/* T7 Bjarn: Dorfteich-UI unverändert wiederverwendet; vor Questabschluss ist das komplette Angelpanel sichtbar, aber gesperrt. */
body.world-npc-view-active .world-npc-story-content.bjarn-fishing-host{max-width:860px;width:min(860px,100%);display:block}
.bjarn-fishing-layout{width:100%}
.bjarn-fishing-layout.bjarn-fishing-locked{filter:grayscale(1);opacity:.42;pointer-events:none;user-select:none}

/* Hedra weapon-enchantment additions */
.buff-row .buff-kind-note{font-size:8px;line-height:1;opacity:.58;font-style:normal;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;}
.hedra-poison-grid{margin-top:12px;}
.hedra-poison-card.locked-action{opacity:.46;filter:grayscale(.72);pointer-events:none;}
.hedra-poison-status{font-size:11px;opacity:.72;margin-top:4px;}



/* 2026-10-08 Brunnenfee close control: keep the X anchored to the panel edge. */
.lorheim-well-fairy-panel>.lorheim-well-fairy-close{position:absolute!important;right:8px!important;top:8px!important;z-index:20!important;}

/* Epic quest story extras: continue actions stay beside the canonical dungeon exit. */
.dungeon-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.story-extra-header-continue{order:2}
.deep-crystals-schmelztiefen-room,.deep-crystals-old-stollen-room{display:grid;gap:12px;justify-items:center;text-align:center}
.deep-crystals-schmelztiefen-room .story-extra-room-image,.deep-crystals-old-stollen-room .story-extra-room-image{width:100%;max-height:430px;object-fit:cover}
.deep-crystal-research-center{width:min(360px,100%);margin:0 auto}
.deep-crystal-research-center .skill{width:100%;margin:0}

/* Alva finale: der Storyrun ist absichtlich ausschließlich Solo. */
.quest-canonical-alert{margin:10px 0 12px;padding:10px 12px;border:2px solid #a52222;background:rgba(92,10,10,.82);color:#ff5c5c!important;font-size:15px;font-weight:900;letter-spacing:.055em;text-align:center;text-transform:uppercase;box-shadow:inset 0 0 18px rgba(0,0,0,.35),0 0 10px rgba(165,34,34,.22)}

.lorheim-achievement-frame-notice{position:relative}



.rare-mob-achievement-notice{padding-right:40px}


/* Aschenkloster icon layout; dimensions from the shared World-NPC rule. */
.aschenkloster-task-grid .skill-head .name{display:flex;align-items:center;gap:10px}


/* All paired World-NPC action/shop cards share one geometry and button baseline.
   The zone banner and panels live in the same .actions content width.
   Bjarn's fishing UI and the single fate well are intentionally excluded. */
body.world-npc-view-active .world-npc-story-content:has(.world-npc-dual-grid){
  display:block;width:100%;max-width:none;margin:14px 0;min-width:0;
}
.world-npc-dual-grid,
.world-npc-story-content .world-npc-dual-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;width:100%;max-width:none;min-width:0;align-items:stretch;
}
.world-npc-dual-grid>.world-npc-dual-card:not(.hedra-poison-card){
  box-sizing:border-box;min-width:0;width:100%;height:168px;min-height:168px;
  max-height:168px;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;
}
/* Aschenkloster: room for standard progress bars and both labels, not the compressed dual-card geometry. */
.world-npc-dual-grid.aschenkloster-task-grid>.world-npc-dual-card{
  height:auto;min-height:190px;max-height:none;overflow:visible;
}
.world-npc-dual-grid.aschenkloster-task-grid>.world-npc-dual-card>.skill-head{
  flex:0 0 auto;min-height:0;max-height:none;overflow:visible;
}
.world-npc-dual-grid.aschenkloster-task-grid>.world-npc-dual-card>.progress-shell{
  flex:0 0 12px;height:12px;min-height:12px;max-height:12px;width:100%;box-sizing:border-box;
}
.world-npc-dual-grid.aschenkloster-task-grid>.world-npc-dual-card>.bar-label{flex:0 0 auto;margin:6px 0 3px}
.world-npc-dual-grid.aschenkloster-task-grid>.world-npc-dual-card>.button{margin-top:auto}
.world-npc-dual-grid>.world-npc-dual-card>.craft-head,
.world-npc-dual-grid>.world-npc-dual-card>.skill-head{
  flex:0 0 62px;min-height:0;max-height:62px;overflow:hidden;margin:0;
}
.world-npc-dual-grid>.world-npc-dual-card>.buff-note,
.world-npc-dual-grid>.world-npc-dual-card>.lorheim-small-text{
  min-height:0;max-height:none;margin:5px 0;overflow:auto;overflow-wrap:anywhere;
}
.world-npc-dual-grid>.world-npc-dual-card>.button{
  flex:0 0 36px;height:36px;min-height:36px;max-height:36px;
  width:100%;margin-top:auto;align-self:stretch;
}
/* Henker status consumes no vertical space when empty; description may scroll. */
.world-npc-dual-grid>.hungriger-henker-shop-item [data-henker-status]:empty{display:none}
@media(max-width:760px){
  .world-npc-dual-grid,.world-npc-story-content .world-npc-dual-grid{grid-template-columns:1fr}
}

body.tier-modal-open .world-npc-dialogue-hotspot{
  display:none!important;
  pointer-events:none!important;
  cursor:default!important;
}




/* Secret view must never resize its normal zone header when a dialogue hotspot appears. */
.actions .zone-header,.actions .zone-banner-wrap{min-width:0;max-width:100%;width:100%}
.actions .zone-banner-wrap{flex-shrink:0;contain:layout paint;}
.actions .zone-banner{max-width:100%;display:block;}
.world-npc-dialogue-hotspot{box-sizing:border-box;max-width:100%;}

/* Monastery actions are displayed before acceptance but visibly inaccessible. */
.world-npc-story-content.aschenkloster-task-locked .aschenkloster-task-grid{filter:grayscale(1);opacity:.46;}
.world-npc-story-content.aschenkloster-task-locked .aschenkloster-task-grid button{pointer-events:none;}

/* Options sections remain strictly inside their parent menu frame. */
.lorheim-options-stage{position:relative!important;overflow:hidden!important;}
.lorheim-options-subpanel{inset:0!important;max-width:100%!important;max-height:100%!important;box-sizing:border-box!important;overflow:hidden!important;}
.lorheim-options-content.active{min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;}



/* Removed superseded October 19 popup design rules; non-popup rules retained. */
:root{--lh-popup-gold:#6f5535;--lh-popup-green:#63b86f;--lh-popup-red:#b94e45}.world-npc-local-toast.world-npc-faith-reward{
  transform:translate(-50%,-100%);
  text-align:center;
  pointer-events:none;
}.world-npc-dual-grid.hungriger-henker-shop-grid>.hungriger-henker-shop-item{
  height:150px;min-height:150px;max-height:150px;
}.world-npc-dual-grid.hungriger-henker-shop-grid>.hungriger-henker-shop-item>.craft-head{
  flex-basis:48px;max-height:48px;
}.world-npc-dual-grid.merten-shop-grid>.merten-shop-item>.buff-note,
.world-npc-dual-grid.hungriger-henker-shop-grid>.hungriger-henker-shop-item>.buff-note{
  overflow:visible;margin:3px 0 5px;
}.world-npc-dual-grid.hungriger-henker-shop-grid>.hungriger-henker-shop-item>.lorheim-small-text{
  overflow:visible;margin:2px 0;
}.options-view.active-view .lorheim-options-menu-panel{
  width:min(410px,calc(100vw - 24px))!important;
  max-width:410px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}.options-view.active-view .lorheim-options-stage{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:10px!important;
  overflow:hidden!important;
}.options-view.active-view #lorheimOptionsList{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  margin:4px 0 0!important;
  padding:0!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}.options-view.active-view #lorheimOptionsList>.lorheim-option-menu-btn{
  box-sizing:border-box!important;
  flex:0 0 36px!important;
  width:100%!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0!important;
  padding:5px 10px!important;
  font:900 14px/1 Georgia,"Times New Roman",serif!important;
  letter-spacing:.06em!important;
}.options-view.active-view .lorheim-options-hint{
  min-height:0!important;
  margin:7px 0 0!important;
  padding:0!important;
  line-height:1.25!important;
}#marketView .market-shell-v1{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1180px!important;
  min-width:0!important;
  border:2px solid #795a36!important;
  background:radial-gradient(circle at 12% 12%,rgba(255,191,92,.10),transparent 34%),linear-gradient(145deg,#201913,#100d0b 65%,#090705)!important;
  color:#e7c58f!important;
  font-family:"Courier New",monospace!important;
}#marketView .market-shell-v1 button{
  box-sizing:border-box!important;
  width:auto;
  min-width:0!important;
  margin-top:0!important;
  padding:7px 8px!important;
  border:2px solid #8a622f!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#e0a044 0%,#b36b25 46%,#6e3a14 100%)!important;
  color:#180d05!important;
  font:900 12px/1 "Courier New",monospace!important;
  text-shadow:0 1px rgba(255,217,139,.22)!important;
  box-shadow:inset 0 1px rgba(255,231,160,.34),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 0 1px rgba(255,186,76,.12)!important;
}#marketView .market-shell-v1 button:hover,
#marketView .market-shell-v1 button:focus-visible{
  filter:brightness(1.14)!important;
  border-color:#d49a4a!important;
}#marketView .market-shell-v1 button.active,
#marketView .market-shell-v1 button.selected{
  border-color:#d49a4a!important;
  box-shadow:inset 0 1px rgba(255,231,160,.40),inset 0 -4px 8px rgba(0,0,0,.34),0 3px 0 #3b210d,0 0 14px rgba(255,177,59,.25)!important;
}#marketView .market-shell-v1 input,
#marketView .market-shell-v1 select{
  box-sizing:border-box!important;
  min-width:0!important;
  background:#100b07!important;
  color:#fff0cf!important;
  border:1px solid #795a36!important;
  border-radius:0!important;
  font:12px/1.35 "Courier New",monospace!important;
  caret-color:#ffe0a6!important;
}#marketView .market-shell-v1 input::placeholder{color:#aa8d69!important;opacity:1!important}#marketView .market-shell-v1 input:focus{outline:1px solid #d6a05b!important}#marketSearchInputV1{min-width:0!important;flex:1 1 170px;min-height:33px;padding:7px 10px!important}#marketView .market-body-v1{min-width:0!important;grid-template-columns:minmax(0,170px) minmax(0,1fr)!important}#marketView .market-body-v1>main{min-width:0!important;max-width:100%!important;overflow:hidden!important}#marketView .market-table-v1{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}#marketView .market-head-v1,
#marketView .market-row-v1{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  grid-template-columns:minmax(0,2fr) minmax(0,.65fr) minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,1fr) minmax(0,.85fr)!important;
  gap:clamp(3px,.5vw,7px)!important;
  padding:7px 5px!important;
  overflow-wrap:anywhere!important;
}#marketView .market-head-v1{color:#e6c38e!important;background:rgba(105,70,32,.18)!important;font:bold 11px/1.35 "Courier New",monospace!important}#marketView .market-head-v1>*,#marketView .market-row-v1>*{min-width:0!important;overflow-wrap:anywhere!important}#marketView .market-item-v1{min-width:0!important}#marketView .market-item-v1>div{min-width:0!important}#marketView .market-row-v1{border-bottom-color:rgba(213,151,73,.19)!important}@media(max-width:760px){#marketView .market-body-v1{grid-template-columns:minmax(0,1fr)!important}#marketView .market-head-v1{display:none!important}#marketView .market-row-v1{grid-template-columns:repeat(2,minmax(0,1fr))!important}#marketView .market-shell-v1 .market-cats-v1{flex-direction:row;flex-wrap:wrap}}@media(max-width:420px){.options-view.active-view #lorheimOptionsList>.lorheim-option-menu-btn{height:34px!important;min-height:34px!important;max-height:34px!important;flex-basis:34px!important;font-size:13px!important}}.world-npc-dual-grid > .world-npc-dual-card:has(> .button:is([data-merten-offer],[data-fizzl-offer],[data-orc-service],[data-henker-offer])) {
  box-sizing:border-box;
  height:168px;
  min-height:168px;
  max-height:168px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}.world-npc-dual-grid > .world-npc-dual-card:has(> .button:is([data-merten-offer],[data-fizzl-offer],[data-orc-service],[data-henker-offer])) > .craft-head {
  flex:0 0 auto;
  min-height:0;
  max-height:none;
  overflow:visible;
}.world-npc-dual-grid > .world-npc-dual-card:has(> .button:is([data-merten-offer],[data-fizzl-offer],[data-orc-service],[data-henker-offer])) > .buff-note {
  flex:0 1 auto;
  margin:10px 0 12px;
  min-height:0;
  overflow:visible;
  overflow-wrap:anywhere;
}.world-npc-dual-grid > .world-npc-dual-card:has(> .button:is([data-merten-offer],[data-fizzl-offer],[data-orc-service],[data-henker-offer])) > .lorheim-small-text {
  margin:0 0 8px;
  min-height:0;
  overflow:visible;
}.world-npc-dual-grid > .world-npc-dual-card:has(> .button:is([data-merten-offer],[data-fizzl-offer],[data-orc-service],[data-henker-offer])) > .button {
  margin-top:auto;
  flex:0 0 36px;
  height:36px;
  min-height:36px;
  max-height:36px;
}.lorheim-options-subpanel .lorheim-options-content.active{
  scrollbar-gutter:auto!important;
  padding-right:0!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}.lorheim-options-subpanel .lorheim-options-content.active::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}.lorheim-options-subpanel > .lorheim-options-back{
  display:block;
  width:100%!important;
  box-sizing:border-box!important;
}
/* World-NPC / A- and B-zone offer icons: ONE shared 48px frame.
   No independent black shop frames or mobile miniatures. */
:is(#tavernView .world-npc-dual-grid .craft-head .name > .icon,
    .world-npc-dual-grid .craft-head .name > .icon,
    .aschenkloster-task-grid .aschenkloster-action-icon){
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  max-width:48px!important;max-height:48px!important;flex:0 0 48px!important;
  box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%)!important;
  border:1px solid #8f744c!important;outline:0!important;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 10px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08)!important;
  line-height:1!important;
}
.world-npc-dual-grid .craft-head .name > .icon img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:0!important;
}









/* Hedra T9: the real apothecary craft components, without the compressed NPC-offer geometry.
   Recipe copy is fully readable and the original progress bar spans its complete card. */
.world-npc-dual-grid>.hedra-poison-card{
  box-sizing:border-box;min-width:0;width:100%;height:auto!important;min-height:248px!important;
  max-height:none!important;overflow:visible!important;
  display:flex;flex-direction:column;align-items:stretch;
}
.world-npc-dual-grid .hedra-poison-card .craft-visual-row{
  grid-template-columns:104px minmax(0,1fr)!important;gap:12px!important;
  align-items:start;margin-bottom:12px;
}
.world-npc-dual-grid .hedra-poison-card .craft-large-icon{
  width:104px!important;height:104px!important;min-width:104px!important;min-height:104px!important;
  max-width:104px!important;max-height:104px!important;
}
.world-npc-dual-grid .hedra-poison-card .craft-large-icon img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center;
}
.world-npc-dual-grid .hedra-poison-card .craft-info-column{
  height:auto!important;min-height:104px!important;max-height:none!important;
  overflow:visible!important;
}
.world-npc-dual-grid .hedra-poison-card .craft-title-row{
  grid-template-columns:minmax(0,1fr) auto;align-items:start;
}
.world-npc-dual-grid .hedra-poison-card :is(.craft-title-text,.craft-item-name){
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:break-word!important;line-height:1.25!important;
}
.world-npc-dual-grid .hedra-poison-card :is(.recipe-meta,.recipe-meta-materials,.recipe-meta-stat,.recipe-meta-sub){
  height:auto!important;min-height:0!important;max-height:none!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  line-height:1.4!important;margin-bottom:6px!important;
  font-family:"Courier New",Courier,monospace;
}
.world-npc-dual-grid .hedra-poison-card>.craft-progress-block{
  width:100%;flex:0 0 auto;margin:2px 0 12px!important;
}
.world-npc-dual-grid .hedra-poison-card>.craft-progress-block .progress-shell{width:100%;box-sizing:border-box;}
.world-npc-dual-grid>.hedra-poison-card>.button{
  width:100%;flex:0 0 36px;height:36px;min-height:36px;max-height:36px;
  margin-top:auto!important;
}
@media(max-width:860px){
  .world-npc-dual-grid .hedra-poison-card .craft-visual-row{grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;}
  .world-npc-dual-grid .hedra-poison-card .craft-large-icon{width:92px!important;height:92px!important;min-width:92px!important;min-height:92px!important;max-width:92px!important;max-height:92px!important;}
  .world-npc-dual-grid .hedra-poison-card .craft-info-column{min-height:92px!important;}
}
@media(max-width:390px){
  .world-npc-dual-grid .hedra-poison-card .craft-visual-row{grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;}
  .world-npc-dual-grid .hedra-poison-card .craft-large-icon{width:74px!important;height:74px!important;min-width:74px!important;min-height:74px!important;max-width:74px!important;max-height:74px!important;}
  .world-npc-dual-grid .hedra-poison-card .craft-info-column{min-height:74px!important;}
}

/* Shared notification stack position and keyboard interaction. */


/* LORHEIM POPUP DESIGN — 2026-10-28 single authoritative geometry. */

















/* Exact shared two-column notice placement: defeat the older flex and width rules. */













/* Unified item modal width, independent of old dungeon positioning. */



/* All solo loot and set item cards use the same compact frame. */








.lorheim-item-delivery{position:absolute!important;bottom:9px!important;right:11px!important;display:flex!important;align-items:center!important;gap:10px!important;z-index:3!important}
.lorheim-item-delivery-check{font:700 12px "Courier New",monospace;color:#00593c}.lorheim-item-delivery.is-pending .lorheim-item-delivery-check{display:none}
.lorheim-item-delivery-bag{display:grid;place-items:center;width:27px;height:27px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.lorheim-item-delivery-bag img{display:block;width:20px;height:20px;object-fit:contain}
/* Canonical receipt green: Werder primary green #00593C (RGB 0/89/60).
   Only a server-confirmed, delivered item receives this tint. */
.lorheim-item-delivery.is-delivered .lorheim-item-delivery-bag img{
 filter:brightness(0) saturate(100%) invert(25%) sepia(37%) saturate(1237%) hue-rotate(113deg) brightness(86%) contrast(104%);
}
.lorheim-item-delivery.is-failed .lorheim-item-delivery-bag,
.lorheim-item-delivery.is-failed .lorheim-item-delivery-check{display:none!important}
.lorheim-item-delivery.is-pending .lorheim-item-delivery-bag{cursor:pointer;animation:lorheimBagPendingPulse 1.4s ease-in-out infinite}
.lorheim-item-delivery.is-pending .lorheim-item-delivery-bag img{filter:brightness(0) saturate(100%) invert(45%) sepia(70%) saturate(1414%) hue-rotate(314deg) brightness(98%)}
/* Single presentation rule for solo non-chest item delivery, not chest or MP. */
.lorheim-solo-popup-delivery{position:absolute!important;bottom:8px!important;right:11px!important;display:flex!important;align-items:center!important;gap:5px!important;z-index:4!important}
.lorheim-solo-popup-delivery .lorheim-item-delivery-check{font:700 14px/1 "Courier New",monospace;color:#00593c}
.lorheim-solo-popup-delivery .lorheim-item-delivery-discard{border:0;background:transparent;color:#e46865;font:700 18px/1 Georgia,serif;cursor:pointer;padding:1px 3px}
.lorheim-solo-popup-delivery .lorheim-item-delivery-bag{display:grid;place-items:center;box-sizing:border-box;width:27px;height:27px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:default}
.lorheim-solo-popup-delivery .lorheim-item-delivery-bag img{display:block;width:20px;height:20px;object-fit:contain;filter:brightness(0) saturate(100%) invert(25%) sepia(37%) saturate(1237%) hue-rotate(113deg) brightness(86%) contrast(104%)}
.lorheim-solo-popup-delivery.is-pending .lorheim-item-delivery-check{display:none}
.lorheim-solo-popup-delivery.is-delivered .lorheim-item-delivery-discard{display:none}
.lorheim-solo-popup-delivery.is-pending.is-full .lorheim-item-delivery-bag{animation:lorheimSoloBagPulse 1.8s ease-in-out infinite}
.lorheim-solo-popup-delivery.is-pending.is-full .lorheim-item-delivery-bag img{filter:brightness(0) saturate(100%) invert(43%) sepia(77%) saturate(1081%) hue-rotate(318deg) brightness(100%)}
.lorheim-solo-popup-delivery.is-pending.is-ready .lorheim-item-delivery-bag{cursor:pointer;animation:lorheimSoloBagPulse 1.8s ease-in-out infinite}
.lorheim-solo-popup-delivery.is-pending.is-ready .lorheim-item-delivery-bag img{filter:brightness(0) saturate(100%) invert(77%) sepia(41%) saturate(653%) hue-rotate(355deg) brightness(101%)}
.lorheim-solo-popup-delivery.is-busy .lorheim-item-delivery-bag{animation:none;opacity:.7}
@keyframes lorheimBagPendingPulse{0%,100%{transform:scale(1);filter:drop-shadow(0 0 2px #cb9233)}50%{transform:scale(1.3);filter:drop-shadow(0 0 7px #ffc567)}}
@keyframes lorheimSoloBagPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
@keyframes lorheimInventoryWarningFlash{0%,100%{filter:none}45%{filter:drop-shadow(0 0 17px #de5a50) brightness(1.3)}}
.lorheim-inventory-warning-flash{animation:lorheimInventoryWarningFlash .55s ease-out 1}









/* Multiplayer voting uses the identical top item block; only controls add height. */

















/* Shared popup implementation: interaction overlays and rune popups; no generated CSS. */
.rune-gamble-overlay{position:fixed;inset:0;z-index:100003;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}
.rune-gamble-overlay.open{display:flex}
/* Rune events use the same canonical standard-popup geometry as every other notice. */









/* Shared notification geometry: compact, square corners, same title/stats system. */



/* Avoid clipping headline on mobile; permit content truncation only in body. */






/* Unified structural popup rules for companions and inventory-full notices. */











/* Approved popup reference: 530px wide, 146px desktop / 125px mobile; NO third inner border. */








/* Quest cancellation is a warning too, with same compact sizing and typography. */



/* Compact native quest-cancellation frame: reference geometry, no decorative third line. */

/* Unified popup stacks — single DOM host for achievements, companions and multiplayer rolls. */








/* Vertically center title, stats and effect beside the icon, as in approved visual. */








/* Active multiplayer vote: independent extra controls, shared item-frame visual tokens. */





/* Quest cancel: the only flexible dimension is the action height; image frame unchanged. */



/* CANONICAL POPUP SHELL: one geometry for all standard notification types.
   Only --lr-edge, --lr-outer and --lr-glow vary by category.
   Multiplayer voting and opened chests retain their explicit expansion layouts. */










/* Verbindliche Popup-Geometrie: alle Standardmeldungen teilen exakt dieselbe Zentrierung. */




/* Shared text-box constraints; content must never pass through the outer edge. */


/* ITEM-POPUP CONTENT: only genuine item/set lore, shared typography and fixed frame. */
















/* Category tokens only: no geometry overrides. */


/* Popup content clipping correction, no new layout geometry. */







/* Rune-close geometry contract: match the canonical popup's 21px close control. */

/* Shared popup typography for rune events: match the gold headings and Courier text. */


/* Modal rune windows must sit above the shared dimming layer, not underneath it. */


/* Standard rune loot uses the same item popup geometry; only hue changes. */





/* First Zarok rune discovery: body directly below heading, no distributed blank line. */

/* Canonical grid-item width: content column is strictly the remaining grid track. */




/* Fix root cause: absolute main had width:100% alongside left/right insets. */


/* Boss loot preserves canonical geometry but receives orange category tokens. */


/* Boss mechanical effects take absolute precedence over optional lore. */




/* LORHEIM shared loot typography baseline – single semantic contract for PvE and boss items. */

/* Exactly four pixels between numerical attributes and the subsequent effect;
   the set-name row, when present, remains directly beneath the attributes. */
.dungeon-chest-box .boss-loot-stats:has(+.boss-loot-effect),
.dungeon-chest-box .boss-loot-set:has(+.boss-loot-effect){margin-bottom:4px!important;}


/* Canonical hard stop: content never continues below the item icon. */





/* LORHEIM CANONICAL POPUP FRAME. Dark 2px OUTSIDE, light 2px INSIDE.
   Categories vary ONLY through --lr-edge / --lr-outer / --lr-glow. */




/* UNOPENED CHEST: shared popup geometry, no extra layout layers.
   The 96px icon is vertically CENTERED within 146px outer panel.
   Action button shares the icon's bottom edge. */








/* CANONICAL NOTICES: one panel, one layout, one pair of frame strokes.
   Large multiplayer boss/PvE loot rolls are excluded on purpose. */

/* The category kicker must never consume space or duplicate the title. */











/* Canonical alignment: title starts exactly at top edge of icon. */




/* QUEST-CANCEL: single canonical layout (desktop 480x146; mobile 366x125). */














/* ================================================================
  LORHEIM / CANONICAL NOTIFICATION SYSTEM / 2026-10-29
  Only geometry/typography authority for achievement, quests, item
  pickups, companions, inventory, chest previews, boss rolls & runes.
  Desktop 480x146, mobile 366x125; enlarged only when controls require it.
  Heading baseline = top of 96x96 (76x76 mobile) icon.
  ================================================================ */
:root{--lr-notice-width:480px;--lr-notice-height:146px;--lr-notice-icon:96px;--lr-notice-gap:14px;--lr-notice-inset:13px;--lr-edge:#c7a464;--lr-outer:#70562a;--lr-glow:rgba(218,167,70,.33)}
@media(max-width:430px){:root{--lr-notice-width:366px;--lr-notice-height:125px;--lr-notice-icon:76px;--lr-notice-gap:10px;--lr-notice-inset:10px}}
/* One shared stack: nested companion and multiplayer stacks remain layout hosts only. */
#achievementUnlockStack,#companionUnlockStack,#multiplayerLootRollStack{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:25px;pointer-events:none;overflow:visible}
#achievementUnlockStack{position:fixed;z-index:100006;top:max(16px,calc(42vh - 73px));left:50%;transform:translateX(-50%);width:min(var(--lr-notice-width),calc(100vw - 16px))}
#companionUnlockStack,#multiplayerLootRollStack{position:relative;inset:auto;width:100%;margin:0;padding:0;transform:none}
body>#multiplayerLootRollStack{position:fixed;z-index:100007;top:max(16px,calc(42vh - 73px));left:50%;transform:translateX(-50%);width:min(var(--lr-notice-width),calc(100vw - 16px))}
/* CANONICAL FRAME — the only popup-panel frame definition.
   Outer stroke: dark category shade; inner stroke: lighter category shade.
   Glow is category-only, never a replacement for either solid stroke.
   !important prevents older generic modal/button skins replacing the common frame. */
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup),
#pveSetLootModal .dungeon-chest-box,#dungeonChestModal .dungeon-chest-box,#multiplayerLootRollStack .dungeon-chest-box,
#lorheimQuestCancelConfirm .lorheim-quest-cancel-frame,.rune-unlock-box,.rune-upgrade-success-box,.rune-gamble-box){
  box-sizing:border-box;position:relative;inset:auto;transform:none;flex:none;
  width:min(var(--lr-notice-width),calc(100vw - 16px));max-width:100%;height:var(--lr-notice-height);min-height:var(--lr-notice-height);max-height:var(--lr-notice-height);
  margin:0;padding:var(--lr-notice-inset);overflow:hidden;
  border:2px solid var(--lr-edge)!important;border-radius:0!important;outline:0!important;
  box-shadow:0 0 0 2px var(--lr-outer),0 0 0 4px #090706,0 0 17px 4px var(--lr-glow),inset 0 0 25px #0008!important;
  background:radial-gradient(ellipse at 12% 16%,#33271b,#17110e 55%,#0b0908);color:#e7c58f;text-align:left;
}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup),#pveSetLootModal .dungeon-chest-box,#dungeonChestModal .dungeon-chest-box,#multiplayerLootRollStack .dungeon-chest-box,#lorheimQuestCancelConfirm .lorheim-quest-cancel-frame,.rune-unlock-box,.rune-upgrade-success-box,.rune-gamble-box)::before{content:none;display:none;border:0;box-shadow:none}
/* Item drops and newly discovered secret zones dim the world with the
   identical backdrop intensity. Other system notices remain undimmed. */
html:has(#achievementUnlockStack .achievement-unlock-toast.show:is(.lorheim-pve-drop-notice,.lorheim-world-epic-notice,.lorheim-rune-loot-notice,.world-npc-discovery-notice))::before,
html:has(#multiplayerLootRollStack .multiplayer-loot-roll-card:is(.pve-set-loot,.boss-loot-roll))::before{
  content:"";position:fixed;inset:0;z-index:100004;pointer-events:none;
  background:rgba(0,0,0,.66);
}
/* All category panels share the same two solid borders and interior inset. */
/* CATEGORY COLOUR - geometry never varies with category. */
:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup){--lr-edge:#c76d69;--lr-outer:#743b39;--lr-glow:rgba(216,84,76,.33)}
#pveSetLootModal .dungeon-chest-box,#multiplayerLootRollStack .pve-set-loot .dungeon-chest-box{--lr-edge:#59b968;--lr-outer:#285b34;--lr-glow:rgba(35,255,91,.48)}
#companionUnlockStack .companion-unlock-panel{--lr-edge:#69b5c9;--lr-outer:#305d6e;--lr-glow:rgba(74,172,201,.42)}
#achievementUnlockStack .lorheim-world-epic-notice{--lr-edge:#b783df;--lr-outer:#633a83;--lr-glow:rgba(181,73,255,.55)}
#achievementUnlockStack .lorheim-rune-loot-notice{--lr-edge:#b783df;--lr-outer:#633a83;--lr-glow:rgba(181,73,255,.55)}
:is(.rune-gamble-box,.rune-upgrade-success-box){--lr-edge:#b783df;--lr-outer:#633a83;--lr-glow:rgba(181,73,255,.55)}
/* Rune failure inherits the canonical success frame; only category colour differs. */
.rune-upgrade-success-box.rune-upgrade-failure{--lr-edge:#dc6860;--lr-outer:#81332d;--lr-glow:rgba(224,65,49,.50)}

/* Rune failure: same canonical rune popup, different category colour only. */
.rune-upgrade-success-box.rune-upgrade-failure{--lr-edge:#dc6860;--lr-outer:#81332d;--lr-glow:rgba(224,65,49,.50)}
/* Library books use the canonical standard gold item frame, not the purple World-Epic category. */
#achievementUnlockStack .lorheim-library-book-drop-notice{--lr-edge:#c7a464;--lr-outer:#70562a;--lr-glow:rgba(218,167,70,.33)}
#achievementUnlockStack .lorheim-pve-drop-notice:not(.lorheim-world-epic-notice):not(.lorheim-rune-loot-notice):not(.lorheim-library-book-drop-notice){--lr-edge:#59b968;--lr-outer:#285b34;--lr-glow:rgba(35,255,91,.48)}
/* Achievement / item / companion / inventory: exact icon and title alignment. */
#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel{pointer-events:auto;opacity:0;transition:opacity .24s ease}
#achievementUnlockStack .achievement-unlock-toast.show,#companionUnlockStack .companion-unlock-panel.show{opacity:1}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup))>.achievement-unlock-kicker{display:none}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup))>.achievement-unlock-main{
  position:absolute;box-sizing:border-box;display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);column-gap:var(--lr-notice-gap);
  top:50%;left:var(--lr-notice-inset);right:var(--lr-notice-inset);width:auto;
  height:var(--lr-notice-icon);min-height:var(--lr-notice-icon);max-height:var(--lr-notice-icon);margin:0;padding:0;transform:translateY(-50%);align-items:start
}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-symbol{
  box-sizing:border-box;display:grid;place-items:center;align-self:start;width:var(--lr-notice-icon);height:var(--lr-notice-icon);min-width:var(--lr-notice-icon);
  min-height:var(--lr-notice-icon);max-width:var(--lr-notice-icon);max-height:var(--lr-notice-icon);margin:0;padding:0;
  border:1px solid var(--lr-edge);border-radius:0;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);box-shadow:inset 0 0 0 3px #100c09,0 0 9px var(--lr-glow);overflow:hidden
}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-symbol img{display:block;width:100%;height:100%;object-fit:contain}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-main>:last-child:not(.achievement-unlock-symbol){
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;align-self:start;
  min-width:0;width:auto;height:var(--lr-notice-icon);max-height:var(--lr-notice-icon);margin:0;padding:0;gap:5px;text-align:left;overflow:hidden
}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-main b{display:block;margin:0;padding:0;font:700 16px/1.18 Georgia,'Times New Roman',serif;color:#ffbd4e;text-align:left;text-transform:uppercase;overflow-wrap:anywhere}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-main small,
#achievementUnlockStack .lorheim-pve-drop-notice :is(.lorheim-loot-stats,.lorheim-loot-set,.lorheim-loot-effect){display:block;margin:0;padding:0;font:12px/1.35 'Courier New',Courier,monospace;color:#c6b394;text-align:left;overflow-wrap:anywhere}
#companionUnlockStack .companion-unlock-flavor{font-style:italic}
/* Firefly uses the canonical popup geometry; compact internal spacing keeps lore above the icon baseline. */
#companionUnlockStack .companion-unlock-firefly .companion-unlock-copy{gap:2px}
#companionUnlockStack .companion-unlock-firefly .lorheim-loot-divider{flex:none;margin:0}
#companionUnlockStack .companion-unlock-firefly .companion-unlock-flavor{font-style:italic;font-size:10px;line-height:1.2}
/* Item text hierarchy: uppercase stats, visible separator, small italic lore. */
#achievementUnlockStack .lorheim-loot-stats,
#multiplayerLootRollStack .boss-loot-stats,
#pveSetLootModal .boss-loot-stats{
  font-weight:700;text-transform:uppercase;
}
:is(#achievementUnlockStack,#multiplayerLootRollStack,#pveSetLootModal) .lorheim-loot-divider{
  display:block;box-sizing:border-box;width:100%;height:1px;min-height:1px;
  margin:3px 0 4px;border:0;background:linear-gradient(90deg,rgba(213,172,108,.8),rgba(213,172,108,.12));
}
:is(#achievementUnlockStack,#multiplayerLootRollStack,#pveSetLootModal) .lorheim-loot-flavor{
  display:block;font:italic 10px/1.2 'Courier New',Courier,monospace;
  color:#bfa889;white-space:normal;overflow-wrap:break-word;
}
:is(#achievementUnlockStack,#multiplayerLootRollStack,#pveSetLootModal) :is(.lorheim-loot-flavor,.lorheim-loot-divider)[hidden]{display:none}
#achievementUnlockStack .lorheim-pve-drop-notice .lorheim-loot-stats{font-weight:700}
:is(#achievementUnlockStack,#multiplayerLootRollStack,#pveSetLootModal,#dungeonChestModal,.rune-unlock-box) .lorheim-popup-tier{display:inline-block;margin:0 0 0 4px;padding:1px 4px;vertical-align:middle;border:1px solid #d06b53;background:#5c211b;color:#ffd1ae;font:700 10px/1 'Courier New',monospace}

:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) :is(.lorheim-notice-close,.companion-unlock-close){position:absolute;top:7px;right:7px;left:auto;z-index:10;pointer-events:auto;}
/* Quest abandon: two buttons within the SAME frame; title starts at icon top. */
#lorheimQuestCancelConfirm{position:fixed;inset:0;z-index:200500;display:grid;place-items:start center;padding:max(16px,calc(42vh - 73px)) 12px 12px;background:transparent;pointer-events:none}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-frame{pointer-events:auto;display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);grid-template-rows:var(--lr-notice-icon) auto;gap:0 var(--lr-notice-gap);align-content:center;align-items:start}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-icon{box-sizing:border-box;display:grid;place-items:center;grid-column:1;grid-row:1;width:var(--lr-notice-icon);height:var(--lr-notice-icon);border:1px solid var(--lr-edge);background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);box-shadow:inset 0 0 0 3px #100c09,0 0 9px var(--lr-glow);color:#d36a5c;font:700 44px/1 Georgia,serif}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-icon img{display:block;width:100%;height:100%;object-fit:contain}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-copy{box-sizing:border-box;grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;width:auto;min-width:0;height:var(--lr-notice-icon);max-height:var(--lr-notice-icon);margin:0;padding:0;overflow:hidden;text-align:left}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-kicker{display:none}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-copy strong{display:block;margin:0;padding:0;font:700 16px/1.18 Georgia,'Times New Roman',serif;color:#ffbd4e;text-align:left;text-transform:uppercase}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-copy p{max-height:calc(var(--lr-notice-icon) - 52px);overflow:auto;margin:0;padding:0;font:12px/1.35 'Courier New',Courier,monospace;color:#c6b394;text-align:left;overflow-wrap:anywhere}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-actions{position:absolute;right:var(--lr-notice-inset);bottom:calc((var(--lr-notice-height) - var(--lr-notice-icon))/2 - 2px);left:calc(var(--lr-notice-inset) + var(--lr-notice-icon) + var(--lr-notice-gap));display:flex;gap:7px;margin:0;padding:0;height:25px;align-items:stretch}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-actions>.button{box-sizing:border-box;flex:1 1 0;min-width:0;width:0;height:25px;min-height:25px;max-height:25px;padding:2px 4px;margin:0;font:700 12px/1 Georgia,'Times New Roman',serif;white-space:nowrap;color:#1b0c02;background:linear-gradient(180deg,#e6b65e,#b4732b 55%,#784016);border:1px solid #b78742;border-radius:0;cursor:pointer}

#lorheimQuestCancelConfirm .lorheim-quest-cancel-close{position:absolute;top:5px;right:5px;left:auto;z-index:3;}
/* Chest ready: icon left, title/copy at upper edge, gold button to right of icon. */
#dungeonChestModal{position:fixed;inset:0;z-index:100005;display:none;place-items:center;background:rgba(0,0,0,.68)}
#dungeonChestModal.open{display:grid}
#dungeonChestModal.lorheim-chest-ready{pointer-events:auto}
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-box{display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);grid-template-rows:var(--lr-notice-icon);column-gap:var(--lr-notice-gap);align-content:center;align-items:start}
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-kicker{display:none}
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-icon-large{grid-column:1;grid-row:1;align-self:start;width:var(--lr-notice-icon);height:var(--lr-notice-icon)}
#dungeonChestModal.lorheim-chest-ready :is(h2,.dungeon-chest-flavor){grid-column:2;margin:0;padding:0;min-width:0;text-align:left}
#dungeonChestModal.lorheim-chest-ready h2{grid-row:1;font:700 16px/1.18 Georgia,serif;color:#ffbd4e;text-transform:uppercase}
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-flavor{grid-row:1;align-self:start;margin-top:24px;max-height:37px;overflow:hidden;font:12px/1.35 'Courier New',monospace;color:#c6b394}
#dungeonChestModal.lorheim-chest-ready :is(.dungeon-chest-state,.dungeon-chest-result-label){display:none}
#dungeonChestModal.lorheim-chest-ready #dungeonChestOpenBtn{position:absolute;left:calc(var(--lr-notice-inset) + var(--lr-notice-icon) + var(--lr-notice-gap));right:var(--lr-notice-inset);bottom:calc((var(--lr-notice-height) - var(--lr-notice-icon))/2 - 2px);width:auto;max-width:none;height:29px;margin:0;border-radius:0;font:700 13px/1 Georgia,serif;color:#180d05;background:linear-gradient(#e6b65e,#b4732b 55%,#784016);border:1px solid #b78742}

#dungeonChestModal .dungeon-chest-close,#pveSetLootModal .dungeon-chest-close{position:absolute;top:6px;right:6px;z-index:5;}
#dungeonChestModal :is(.dungeon-chest-icon-large,.dungeon-chest-icon-large img),#pveSetLootModal :is(.dungeon-chest-icon-large,.dungeon-chest-icon-large img),#multiplayerLootRollStack :is(.dungeon-chest-icon-large,.dungeon-chest-icon-large img){box-sizing:border-box;object-fit:contain;max-width:var(--lr-notice-icon);max-height:var(--lr-notice-icon)}
/* Opened/pending chest: fixed solo frame. Additional item rows scroll INSIDE
   the text column, whose lower edge is the icon's lower edge. */
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-box{
  width:min(var(--lr-notice-width),calc(100vw - 16px));height:var(--lr-notice-height);
  min-height:var(--lr-notice-height);max-height:var(--lr-notice-height);overflow:hidden;
  display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);
  grid-template-rows:auto auto auto;align-content:center;align-items:start;
  gap:4px var(--lr-notice-gap)
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-kicker{display:none}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-icon-large{
  grid-column:1;grid-row:1/span 3;align-self:start;width:var(--lr-notice-icon);height:var(--lr-notice-icon);
  box-sizing:border-box;border:1px solid var(--lr-edge);
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 3px #100c09
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-icon-large img{width:100%;height:100%;object-fit:contain}
#dungeonChestModal:not(.lorheim-chest-ready) h2{
  grid-column:2;grid-row:1;min-width:0;margin:0;color:#ffbd4e;
  font:700 16px/1.18 Georgia,'Times New Roman',serif;text-transform:uppercase
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-flavor{display:none}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-result-label{
  grid-column:2;grid-row:2;margin:0;color:#c6b394;
  font:11px/1.25 'Courier New',Courier,monospace
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-state{
  grid-column:2;grid-row:3;min-width:0;min-height:0;max-height:100%;
  margin:0;white-space:normal;align-self:end;overflow-y:auto;
  color:#e7c58f;font:11px/1.3 'Courier New',Courier,monospace;overflow-wrap:anywhere
}
/* With no result label the copy starts immediately below the title. */
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-box:has(.dungeon-chest-result-label[hidden]){row-gap:0}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-result-label[hidden]+.dungeon-chest-state{
  grid-row:2/span 2;align-self:start
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-open-btn{
  position:absolute;left:calc(var(--lr-notice-inset) + var(--lr-notice-icon) + var(--lr-notice-gap));
  right:var(--lr-notice-inset);bottom:calc((var(--lr-notice-height) - var(--lr-notice-icon))/2 - 2px);
  width:auto;margin:0;height:27px;min-height:27px;border-radius:0;
  color:#180d05;background:linear-gradient(#e6b65e,#b4732b 55%,#784016);border:1px solid #b78742
}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-open-btn[hidden]{display:none!important}
#dungeonChestModal:not(.lorheim-chest-ready):has(.dungeon-chest-open-btn:not([hidden])) .dungeon-chest-state{padding-bottom:28px}
#dungeonChestModal.pending-inventory-access{pointer-events:none}
#dungeonChestModal.pending-inventory-access .dungeon-chest-box{pointer-events:auto}
/* PvE loot: same item-top geometry as achievement notice, optional result stays below. */
#pveSetLootModal{position:fixed;inset:0;z-index:100005;display:none;place-items:center;background:rgba(0,0,0,.68)}
#pveSetLootModal.open{display:grid}
#pveSetLootModal .dungeon-chest-box{display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--lr-notice-gap);align-content:center;align-items:start}
#pveSetLootModal .dungeon-chest-icon-large{grid-column:1;grid-row:1/span 2;width:var(--lr-notice-icon);height:var(--lr-notice-icon)}
#pveSetLootModal h2{grid-column:2;grid-row:1;margin:0;padding:0;font:700 16px/1.18 Georgia,serif;color:#ffbd4e;text-transform:uppercase}
#pveSetLootModal .dungeon-chest-flavor{grid-column:2;grid-row:2;margin:4px 0 0;min-width:0;font:12px/1.35 'Courier New',monospace;color:#c6b394}
#pveSetLootModal :is(.dungeon-chest-kicker,.dungeon-chest-state,.dungeon-chest-result-label){display:none}
/* Multiplayer loot voting: canonical layout. Identical item content before/after choice. */
#multiplayerLootRollStack>.multiplayer-loot-roll-card,#achievementUnlockStack #multiplayerLootRollStack>.multiplayer-loot-roll-card{box-sizing:border-box;position:relative;width:100%;max-width:100%;margin:0;pointer-events:auto}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-box{
  display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);
  grid-template-rows:var(--lr-notice-icon);gap:0 var(--lr-notice-gap);
  align-content:center;align-items:start;
  height:var(--lr-notice-height);min-height:var(--lr-notice-height);max-height:var(--lr-notice-height)
}
/* Voting alone requires the taller container; already awarded solo items remain standard. */
#multiplayerLootRollStack .multiplayer-loot-roll-card.boss-item-loot:not(.lorheim-compact-item-popup):not(.lorheim-resolved-item-popup) .dungeon-chest-box{
  grid-template-rows:var(--lr-notice-icon) auto 7px;row-gap:10px;align-content:start;
  height:auto;min-height:0;max-height:none
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-icon-large{grid-column:1;grid-row:1;align-self:start;width:var(--lr-notice-icon);height:var(--lr-notice-icon)}
#multiplayerLootRollStack .multiplayer-loot-roll-card h2{
  grid-column:2;grid-row:1;align-self:start;margin:0;padding:0;
  font:700 16px/1.18 Georgia,'Times New Roman',serif;color:#ffbd4e;text-align:left;text-transform:uppercase
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-flavor{
  grid-column:2;grid-row:1;align-self:start;min-width:0;
  margin:23px 0 0;padding:0 26px 0 0;
  height:calc(var(--lr-notice-icon) - 23px);max-height:calc(var(--lr-notice-icon) - 23px);
  overflow:hidden;color:#c6b394;font:12px/1.35 'Courier New',Courier,monospace
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-kicker{display:none}
#multiplayerLootRollStack .multiplayer-loot-roll-card :is(.boss-loot-stats,.boss-loot-set,.boss-loot-effect){margin:0 0 3px;overflow-wrap:anywhere;font:12px/1.35 'Courier New',Courier,monospace}
#multiplayerLootRollStack .multiplayer-loot-roll-card .boss-loot-stats{font-weight:700;text-transform:uppercase}
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-divider{display:block;margin:3px 0 4px;height:1px;background:linear-gradient(90deg,rgba(213,172,108,.8),rgba(213,172,108,.12))}
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-flavor{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
  overflow:hidden;white-space:normal;overflow-wrap:normal;word-break:normal;
  margin:0;font:italic 10px/1.2 'Courier New',Courier,monospace;color:#bfa889
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-flavor[hidden],
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-divider[hidden]{display:none}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-state{display:none}
#multiplayerLootRollStack .multiplayer-loot-roll-card .multiplayer-boss-roll-controls{
  grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:26px auto;column-gap:6px;row-gap:5px;margin:0;padding:0;border:0;width:100%
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .multiplayer-boss-roll-controls .button{
  grid-row:1;min-width:0;width:100%;height:26px;min-height:26px;margin:0;
  padding:2px 4px;color:#1b0c02;background:linear-gradient(180deg,#e6b65e,#b4732b 55%,#784016);
  border:1px solid #b78742;border-radius:0;font:700 11px/1.1 Georgia,serif
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .multiplayer-boss-roll-controls [data-roll-progress]{
  grid-column:1/-1;grid-row:2;text-align:center;margin:0;font:11px/1.25 'Courier New',Courier,monospace;color:#c6b394
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .multiplayer-loot-timebar{
  grid-column:1/-1;grid-row:3;display:block;margin:0;width:100%;height:7px;min-height:7px;
  border:1px solid #8f764c;background:#080706;overflow:hidden
}
#multiplayerLootRollStack .multiplayer-loot-timebar i{display:block;height:100%;background:linear-gradient(90deg,#785225,#dfb86c)}
/* Bag indicator occupies reserved space by the item, above the Pass control; no reflow on vote. */
#multiplayerLootRollStack .multiplayer-loot-roll-card .mp-roll-choice-bag{
  position:absolute;top:calc(var(--lr-notice-inset) + var(--lr-notice-icon) - 24px);
  right:calc(var(--lr-notice-inset) + 2px);display:none;align-items:center;justify-content:center;
  width:22px;height:22px;padding:0;border:0;background:transparent;box-shadow:none;pointer-events:none
}
#multiplayerLootRollStack .multiplayer-loot-roll-card .mp-roll-choice-bag img{
  display:block;width:20px;height:20px;object-fit:contain;
  filter:brightness(0) saturate(100%) invert(79%) sepia(37%) saturate(588%) hue-rotate(356deg)
}
#multiplayerLootRollStack .multiplayer-loot-roll-card.mp-choice-recorded .mp-roll-choice-bag{display:flex}
#multiplayerLootRollStack .multiplayer-loot-roll-card:is(.lorheim-compact-item-popup,.lorheim-resolved-item-popup) :is(.multiplayer-boss-roll-controls,.multiplayer-loot-timebar,.dungeon-chest-state){display:none}

/* All popup close controls are small transparent crosses (no inherited game button block). */
#multiplayerLootRollStack .multiplayer-loot-pass-x,
:is(.rune-unlock-box,.rune-upgrade-success-box) :is(.rune-unlock-close,.rune-upgrade-success-close){position:absolute;top:6px;right:6px;left:auto;z-index:6;}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-icon-large,
#pveSetLootModal .dungeon-chest-icon-large,
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-icon-large{display:grid;place-items:center;overflow:hidden;box-sizing:border-box;border:1px solid var(--lr-edge);background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);box-shadow:inset 0 0 0 3px #100c09,0 0 9px var(--lr-glow)}
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-icon-large img,
#pveSetLootModal .dungeon-chest-icon-large img,
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-icon-large img{display:block;width:100%;height:100%;object-fit:contain}
/* Rune overlays preserve lifecycle and use the same dimensions, type hierarchy. */
:is(.rune-unlock-overlay,.rune-upgrade-success-overlay){position:fixed;inset:0;z-index:100003;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.72)}
:is(.rune-unlock-overlay.open,.rune-upgrade-success-overlay){display:flex}
:is(.rune-unlock-box,.rune-upgrade-success-box){display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);column-gap:var(--lr-notice-gap);align-content:center;align-items:start}
:is(.rune-unlock-icon-wrap,.rune-upgrade-success-icon-wrap){box-sizing:border-box;display:grid;place-items:center;width:var(--lr-notice-icon);height:var(--lr-notice-icon);border:1px solid var(--lr-edge)}

/* Rune dialog is a canonical Lorheim panel. Only the controls require additional height.
   The rune PNG itself is half the size of the common icon frame, in every rune popup. */
:is(.rune-unlock-icon-wrap,.rune-upgrade-success-icon-wrap,.rune-gamble-icon-wrap){overflow:hidden;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%)}
:is(.rune-unlock-icon-wrap,.rune-upgrade-success-icon-wrap,.rune-gamble-icon-wrap)>.rune-popup-stone{display:block;width:50%;height:50%;max-width:50%;max-height:50%;object-fit:contain;flex:none}
.rune-gamble-box{display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--lr-notice-gap);row-gap:10px;align-content:start;height:auto!important;min-height:var(--lr-notice-height)!important;max-height:min(90dvh,430px)!important;overflow-y:auto!important}
.rune-gamble-icon-wrap{grid-column:1;grid-row:1;box-sizing:border-box;display:grid;place-items:center;width:var(--lr-notice-icon);height:var(--lr-notice-icon);border:1px solid var(--lr-edge)}
.rune-gamble-copy{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;overflow-wrap:break-word}
.rune-gamble-title{font:700 16px/1.18 Georgia,serif;color:#ffbd4e;margin:0;text-transform:uppercase;overflow-wrap:normal}
.rune-gamble-item{font:700 14px/1.25 Georgia,serif;color:#e7c58f;overflow-wrap:break-word}
.rune-gamble-chance,.rune-gamble-warning{font:12px/1.4 'Courier New',Courier,monospace;color:#c6b394;margin:0}
.rune-gamble-warning{border-top:1px solid #70562a;padding-top:7px}
.rune-gamble-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;border-top:1px solid #70562a;padding-top:8px;min-width:0}
.rune-gamble-actions>.button{box-sizing:border-box;display:block;width:100%;min-width:0;height:30px;min-height:30px;max-height:30px;margin:0;padding:3px 5px;border-radius:0;font:700 12px/1.2 Georgia,serif}
@media(max-width:430px){.rune-gamble-box{row-gap:8px}.rune-gamble-copy{gap:4px}.rune-gamble-title{font-size:13px}.rune-gamble-item{font-size:12px}.rune-gamble-chance,.rune-gamble-warning{font-size:10.5px;line-height:1.25}.rune-gamble-warning{padding-top:5px}.rune-gamble-actions{padding-top:6px}.rune-gamble-actions>.button{height:26px;min-height:26px;max-height:26px;font-size:11px}}

.rune-popup-content{box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;min-width:0;height:var(--lr-notice-icon);max-height:var(--lr-notice-icon);overflow:hidden;text-align:left}
:is(.rune-unlock-title,.rune-upgrade-success-title){font:700 16px/1.18 Georgia,serif;color:#ffbd4e;text-transform:uppercase;text-align:left;margin:0}
.rune-popup-content p{font:12px/1.35 'Courier New',monospace;color:#c6b394;margin:0}
/* Runestone result acknowledgement aligns to the lower edge of the icon frame. */
.rune-upgrade-failure .rune-popup-content{gap:4px}
.rune-upgrade-failure .rune-upgrade-success-title{color:#ef8a77}
.rune-upgrade-failure .rune-upgrade-result-ok{box-sizing:border-box;display:block;width:100%;height:24px;min-height:24px;max-height:24px;margin:auto 0 0;padding:2px 6px;border-radius:0;font:700 12px/1.2 Georgia,serif;cursor:pointer}
@media(max-width:430px){.rune-upgrade-failure .rune-upgrade-result-ok{height:21px;min-height:21px;max-height:21px;padding:1px 4px;font-size:11px}}
/* Persistent result acknowledgement; button bottom aligns with the runestone icon. */
.rune-upgrade-failure .rune-popup-content{gap:4px}
.rune-upgrade-failure .rune-upgrade-success-title{color:#ef8a77}
.rune-upgrade-failure .rune-upgrade-result-ok{box-sizing:border-box;display:block;width:100%;height:24px;min-height:24px;max-height:24px;margin:auto 0 0;padding:2px 6px;border-radius:0;font:700 12px/1.2 Georgia,serif;cursor:pointer}
@media(max-width:430px){.rune-upgrade-failure .rune-upgrade-result-ok{height:21px;min-height:21px;max-height:21px;padding:1px 4px;font-size:11px}}
@media(max-width:430px){
#achievementUnlockStack{top:20px}
body>#multiplayerLootRollStack{top:20px}
#lorheimQuestCancelConfirm{padding-top:84px}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup),#pveSetLootModal .dungeon-chest-box,#dungeonChestModal .dungeon-chest-box,#multiplayerLootRollStack .dungeon-chest-box,#lorheimQuestCancelConfirm .lorheim-quest-cancel-frame,.rune-unlock-box,.rune-upgrade-success-box,.rune-gamble-box){width:min(366px,calc(100vw - 16px));height:125px;min-height:125px;max-height:125px}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-main b,
#lorheimQuestCancelConfirm .lorheim-quest-cancel-copy strong,#pveSetLootModal h2,#dungeonChestModal.lorheim-chest-ready h2,#multiplayerLootRollStack .multiplayer-loot-roll-card h2,:is(.rune-unlock-title,.rune-upgrade-success-title){font-size:13px}
:is(#achievementUnlockStack .achievement-unlock-toast,#companionUnlockStack .companion-unlock-panel,:is(#lorheimInventoryFullPopup,#lorheimHotkeyConflictPopup,#lorheimDungeonConnectionPopup)) .achievement-unlock-main small,#lorheimQuestCancelConfirm .lorheim-quest-cancel-copy p,#pveSetLootModal .dungeon-chest-flavor,#dungeonChestModal.lorheim-chest-ready .dungeon-chest-flavor,#multiplayerLootRollStack .multiplayer-loot-roll-card :is(.dungeon-chest-flavor,.boss-loot-stats,.boss-loot-set,.boss-loot-effect),.rune-popup-content p{font-size:10.5px;line-height:1.25}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-actions{height:21px}
#lorheimQuestCancelConfirm .lorheim-quest-cancel-actions>.button{height:21px;min-height:21px;max-height:21px;font-size:10px;padding:1px 2px}
#dungeonChestModal.lorheim-chest-ready #dungeonChestOpenBtn{height:24px;font-size:11px}
#dungeonChestModal.lorheim-chest-ready .dungeon-chest-flavor{margin-top:19px;max-height:27px;font-size:10.5px;line-height:1.25}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-box{row-gap:3px}
#dungeonChestModal:not(.lorheim-chest-ready) h2{font-size:13px;line-height:1.18}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-result-label{font-size:10px;line-height:1.2}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-state{font-size:10px;line-height:1.2}
#dungeonChestModal:not(.lorheim-chest-ready) .dungeon-chest-open-btn{height:24px;min-height:24px;font-size:11px}

/* Mobile uses the same item structure with scaled text; never extends below its icon. */
#multiplayerLootRollStack .multiplayer-loot-roll-card .dungeon-chest-flavor{margin-top:19px;height:calc(var(--lr-notice-icon) - 19px);max-height:calc(var(--lr-notice-icon) - 19px)}
#multiplayerLootRollStack .multiplayer-loot-roll-card :is(.boss-loot-stats,.boss-loot-set,.boss-loot-effect){font-size:9px;line-height:1.08;margin-bottom:2px}
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-divider{margin:2px 0}
#multiplayerLootRollStack .multiplayer-loot-roll-card .lorheim-loot-flavor{font-size:9px;line-height:1.1}


}

/* Settings controls: two language choices occupy a single row at all supported widths. */
.lorheim-language-choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
.lorheim-options-content .lorheim-language-choice-row .mini-choice{min-width:0;width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:5px}

/* Settings carousel: changes only the controls inside existing option groups. */
.lorheim-choice-carousel{
  position:relative;display:flex;align-items:center;width:100%;min-width:0;
}
.lorheim-choice-carousel .lorheim-carousel-value{
  width:100%;min-width:0;box-sizing:border-box;padding-inline:35px;
  text-align:center;cursor:default;
}
.lorheim-choice-carousel .lorheim-choice-arrow{
  position:absolute;z-index:1;top:0;bottom:0;width:30px;min-width:30px;
  display:flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:var(--gold-bright,#ffb13b);
  font:bold 23px/1 Georgia,serif;cursor:pointer;
}
.lorheim-choice-carousel .lorheim-choice-arrow[data-carousel-step="-1"]{left:0}
.lorheim-choice-carousel .lorheim-choice-arrow[data-carousel-step="1"]{right:0}
.lorheim-choice-carousel .lorheim-choice-arrow[hidden]{display:none !important}
.lorheim-choice-carousel .lorheim-choice-arrow:focus-visible{outline:1px solid var(--gold-bright,#ffb13b);outline-offset:-2px}
.lorheim-choice-carousel[data-carousel-kind="font"] .lorheim-carousel-value[data-font-choice="classic"]{font-family:Georgia,"Times New Roman",serif!important}
.lorheim-choice-carousel[data-carousel-kind="font"] .lorheim-carousel-value[data-font-choice="scroll"]{font-family:"Palatino Linotype",Palatino,serif!important}
.lorheim-choice-carousel[data-carousel-kind="font"] .lorheim-carousel-value[data-font-choice="clean"]{font-family:Verdana,Geneva,sans-serif!important}
.lorheim-choice-carousel[data-carousel-kind="font"] .lorheim-carousel-value[data-font-choice="rune"]{font-family:"Courier New",monospace!important}

/* Lorheim close controls: one visual contract for all existing X buttons. */
.tier-close,
.overlay-close-x,
.compendium-close-x,
.lorheim-options-close,
.offline-report-close,
.shrine-modal-close,
.ii-close-v3,
.ii-context-close-v3,
.rune-lore-close,
.rune-overwrite-close,
.rune-unlock-close,
.rune-upgrade-success-close,
.dev-close,
.festival-result-close,
.elf-spec-close,
.lorheim-map-close,
.race-info-close,
.lorheim-character-close,
.dungeon-chest-close,
.xp-throttle-close,
.lorheim-money-close,
.order-modal-close,
.order-shared-close,
.lorheim-well-fairy-close,
.mail-compose-close-v10,
.lorheim-shop-close,
.lorheim-legal-close,
.lorheim-building-welcome-close,
.cartographer-survey-close,
.lorheim-notice-close,
.companion-unlock-close,
.lorheim-quest-cancel-close,
.quest-hud-close,
.multiplayer-loot-pass-x,
.server-chat-close-x,
#serverChatClose{
  appearance:none!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;
  width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;max-width:21px!important;max-height:21px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;color:#d8b781!important;font:700 18px/1 Arial,sans-serif!important;text-align:center!important;
  text-shadow:none!important;opacity:1!important;filter:none!important;transform:none!important;cursor:pointer!important;pointer-events:auto!important;
}
.tier-close,
.overlay-close-x,
.compendium-close-x,
.lorheim-options-close,
.offline-report-close,
.shrine-modal-close,
.ii-close-v3,
.ii-context-close-v3,
.rune-lore-close,
.rune-overwrite-close,
.rune-unlock-close,
.rune-upgrade-success-close,
.dev-close,
.festival-result-close,
.elf-spec-close,
.lorheim-map-close,
.race-info-close,
.lorheim-character-close,
.dungeon-chest-close,
.xp-throttle-close,
.lorheim-money-close,
.order-modal-close,
.order-shared-close,
.lorheim-well-fairy-close,
.mail-compose-close-v10,
.lorheim-shop-close,
.lorheim-legal-close,
.lorheim-building-welcome-close,
.cartographer-survey-close,
.lorheim-notice-close,
.companion-unlock-close,
.lorheim-quest-cancel-close,
.quest-hud-close,
.multiplayer-loot-pass-x{position:absolute!important;top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:90!important;}
/* Chat X is a normal flex item alongside the settings and minimize controls. */
#serverChatClose,.server-chat-close-x{position:static!important;flex:0 0 21px!important;}
.tier-close:hover,
.overlay-close-x:hover,
.compendium-close-x:hover,
.lorheim-options-close:hover,
.offline-report-close:hover,
.shrine-modal-close:hover,
.ii-close-v3:hover,
.ii-context-close-v3:hover,
.rune-lore-close:hover,
.rune-overwrite-close:hover,
.rune-unlock-close:hover,
.rune-upgrade-success-close:hover,
.dev-close:hover,
.festival-result-close:hover,
.elf-spec-close:hover,
.lorheim-map-close:hover,
.race-info-close:hover,
.lorheim-character-close:hover,
.dungeon-chest-close:hover,
.xp-throttle-close:hover,
.lorheim-money-close:hover,
.order-modal-close:hover,
.order-shared-close:hover,
.lorheim-well-fairy-close:hover,
.mail-compose-close-v10:hover,
.lorheim-shop-close:hover,
.lorheim-legal-close:hover,
.lorheim-building-welcome-close:hover,
.cartographer-survey-close:hover,
.lorheim-notice-close:hover,
.companion-unlock-close:hover,
.lorheim-quest-cancel-close:hover,
.quest-hud-close:hover,
.multiplayer-loot-pass-x:hover,
.server-chat-close-x:hover,
#serverChatClose:hover{color:#f3dba8!important;}
.tier-close:focus-visible,
.overlay-close-x:focus-visible,
.compendium-close-x:focus-visible,
.lorheim-options-close:focus-visible,
.offline-report-close:focus-visible,
.shrine-modal-close:focus-visible,
.ii-close-v3:focus-visible,
.ii-context-close-v3:focus-visible,
.rune-lore-close:focus-visible,
.rune-overwrite-close:focus-visible,
.rune-unlock-close:focus-visible,
.rune-upgrade-success-close:focus-visible,
.dev-close:focus-visible,
.festival-result-close:focus-visible,
.elf-spec-close:focus-visible,
.lorheim-map-close:focus-visible,
.race-info-close:focus-visible,
.lorheim-character-close:focus-visible,
.dungeon-chest-close:focus-visible,
.xp-throttle-close:focus-visible,
.lorheim-money-close:focus-visible,
.order-modal-close:focus-visible,
.order-shared-close:focus-visible,
.lorheim-well-fairy-close:focus-visible,
.mail-compose-close-v10:focus-visible,
.lorheim-shop-close:focus-visible,
.lorheim-legal-close:focus-visible,
.lorheim-building-welcome-close:focus-visible,
.cartographer-survey-close:focus-visible,
.lorheim-notice-close:focus-visible,
.companion-unlock-close:focus-visible,
.lorheim-quest-cancel-close:focus-visible,
.quest-hud-close:focus-visible,
.multiplayer-loot-pass-x:focus-visible,
.server-chat-close-x:focus-visible,
#serverChatClose:focus-visible{color:#f3dba8!important;text-decoration:underline!important;}
.tier-close::before,
.overlay-close-x::before,
.compendium-close-x::before,
.lorheim-options-close::before,
.offline-report-close::before,
.shrine-modal-close::before,
.ii-close-v3::before,
.ii-context-close-v3::before,
.rune-lore-close::before,
.rune-overwrite-close::before,
.rune-unlock-close::before,
.rune-upgrade-success-close::before,
.dev-close::before,
.festival-result-close::before,
.elf-spec-close::before,
.lorheim-map-close::before,
.race-info-close::before,
.lorheim-character-close::before,
.dungeon-chest-close::before,
.xp-throttle-close::before,
.lorheim-money-close::before,
.order-modal-close::before,
.order-shared-close::before,
.lorheim-well-fairy-close::before,
.mail-compose-close-v10::before,
.lorheim-shop-close::before,
.lorheim-legal-close::before,
.lorheim-building-welcome-close::before,
.cartographer-survey-close::before,
.lorheim-notice-close::before,
.companion-unlock-close::before,
.lorheim-quest-cancel-close::before,
.quest-hud-close::before,
.multiplayer-loot-pass-x::before,
.server-chat-close-x::before,
#serverChatClose::before,
.tier-close::after,
.overlay-close-x::after,
.compendium-close-x::after,
.lorheim-options-close::after,
.offline-report-close::after,
.shrine-modal-close::after,
.ii-close-v3::after,
.ii-context-close-v3::after,
.rune-lore-close::after,
.rune-overwrite-close::after,
.rune-unlock-close::after,
.rune-upgrade-success-close::after,
.dev-close::after,
.festival-result-close::after,
.elf-spec-close::after,
.lorheim-map-close::after,
.race-info-close::after,
.lorheim-character-close::after,
.dungeon-chest-close::after,
.xp-throttle-close::after,
.lorheim-money-close::after,
.order-modal-close::after,
.order-shared-close::after,
.lorheim-well-fairy-close::after,
.mail-compose-close-v10::after,
.lorheim-shop-close::after,
.lorheim-legal-close::after,
.lorheim-building-welcome-close::after,
.cartographer-survey-close::after,
.lorheim-notice-close::after,
.companion-unlock-close::after,
.lorheim-quest-cancel-close::after,
.quest-hud-close::after,
.multiplayer-loot-pass-x::after,
.server-chat-close-x::after,
#serverChatClose::after{content:none!important;display:none!important;pointer-events:none!important;}
.tier-close[hidden],
.overlay-close-x[hidden],
.compendium-close-x[hidden],
.lorheim-options-close[hidden],
.offline-report-close[hidden],
.shrine-modal-close[hidden],
.ii-close-v3[hidden],
.ii-context-close-v3[hidden],
.rune-lore-close[hidden],
.rune-overwrite-close[hidden],
.rune-unlock-close[hidden],
.rune-upgrade-success-close[hidden],
.dev-close[hidden],
.festival-result-close[hidden],
.elf-spec-close[hidden],
.lorheim-map-close[hidden],
.race-info-close[hidden],
.lorheim-character-close[hidden],
.dungeon-chest-close[hidden],
.xp-throttle-close[hidden],
.lorheim-money-close[hidden],
.order-modal-close[hidden],
.order-shared-close[hidden],
.lorheim-well-fairy-close[hidden],
.mail-compose-close-v10[hidden],
.lorheim-shop-close[hidden],
.lorheim-legal-close[hidden],
.lorheim-building-welcome-close[hidden],
.cartographer-survey-close[hidden],
.lorheim-notice-close[hidden],
.companion-unlock-close[hidden],
.lorheim-quest-cancel-close[hidden],
.quest-hud-close[hidden],
.multiplayer-loot-pass-x[hidden],
.server-chat-close-x[hidden],
#serverChatClose[hidden]{display:none!important;}

/* Festival notices use the canonical achievement popup layout without extra wrappers. */
#achievementUnlockStack .lorheim-festival-notice .festival-kessel-unlock-img,
#achievementUnlockStack .lorheim-festival-notice .festival-popup-icon-img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}

/* Secret discoveries: same canonical frame / icon geometry, no panel resizing.
   Heading starts at the icon's top, copy is clipped at the icon's bottom. */
#achievementUnlockStack .world-npc-discovery-notice .lorheim-notice-copy{
  gap:0;align-items:stretch;justify-content:flex-start;height:var(--lr-notice-icon);max-height:var(--lr-notice-icon);overflow:hidden;
}
#achievementUnlockStack .world-npc-discovery-notice .secret-discovery-heading{
  flex:0 0 auto;display:block;margin:0 23px 5px 0;padding:0;
  color:#ffbd4e;font:700 10px/1.15 'Courier New',Courier,monospace;
  text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-main b.secret-discovery-name{
  flex:0 0 auto;margin:0;padding:0;color:#e8c995;
  font:700 12pt/1.12 'Courier New',Courier,monospace;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#achievementUnlockStack .world-npc-discovery-notice .lorheim-loot-divider{
  flex:0 0 1px;width:100%;margin:5px 0 5px;
}
#achievementUnlockStack .world-npc-discovery-notice small.secret-discovery-flavor{
  flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:0;overflow:hidden;
  font:italic 10px/1.2 'Courier New',Courier,monospace;color:#bfa889;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  line-clamp:3;text-overflow:ellipsis;overflow-wrap:break-word;
}
@media(max-width:430px){
  #achievementUnlockStack .world-npc-discovery-notice .secret-discovery-heading{font-size:8px;margin-bottom:3px}
  #achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-main b.secret-discovery-name{font-size:12pt}
  #achievementUnlockStack .world-npc-discovery-notice .lorheim-loot-divider{margin:3px 0}
  #achievementUnlockStack .world-npc-discovery-notice small.secret-discovery-flavor{-webkit-line-clamp:2;line-clamp:2}
}

/* 2026-11-03: Hinterzimmer-Karten / untere Schankraum-Karten – gleiche Aktionslinie.
   Erhält die kanonische .button-Geometrie; nur die Karteninhalte werden flexibel verteilt. */
#gambleTab .craft-grid > .craft:is([data-world-map],[data-cartographer]),
#drinksTab .tavern-menu-grid > .craft:is(.tavern-rumor-card,.tavern-brawl-card){
  display:flex;
  flex-direction:column;
  min-width:0;
}
#gambleTab .craft-grid > .craft:is([data-world-map],[data-cartographer]) > .buff-note,
#drinksTab .tavern-menu-grid > .craft:is(.tavern-rumor-card,.tavern-brawl-card) > .buff-note{
  flex:1 1 auto;
}
#gambleTab .craft-grid > .craft:is([data-world-map],[data-cartographer]) > .button,
#drinksTab .tavern-menu-grid > .craft:is(.tavern-rumor-card,.tavern-brawl-card) > .button{
  flex:0 0 auto;
  margin-top:auto;
}

/* T5: Aldric's existing NPC speech-cursor hotspot is available only after a
   confirmed victory/epilogue, and never depends on opening the chest. */
.dungeon-banner-wrap .dungeon-aldric-dialogue-hotspot{left:39%;top:20%;width:22%;height:65%;}

/* 2026-11-03: Canonical dungeon header actions, compact start + original exit width. */
#dungeonView .dungeon-header-actions:has(>.dungeon-start-btn){display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:stretch!important;gap:10px!important;min-width:0!important}
#dungeonView .dungeon-header-actions>.dungeon-start-btn,
#dungeonView .dungeon-header-actions>.dungeon-exit-btn{width:190px!important;min-width:0!important;flex:0 1 190px!important;max-width:190px!important;margin:0!important;box-sizing:border-box!important;white-space:nowrap!important}
#dungeonView .dungeon-header-actions>.dungeon-exit-btn{border-color:#843d36!important;background:linear-gradient(180deg,#56251f,#27100e)!important;color:#e7c4b8!important}
#dungeonView .dungeon-header-actions>.dungeon-exit-btn:disabled{opacity:.55!important}
@media(max-width:600px){
  #dungeonView .dungeon-header-actions:has(>.dungeon-start-btn){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  #dungeonView .dungeon-header-actions>.dungeon-start-btn,
  #dungeonView .dungeon-header-actions>.dungeon-exit-btn{width:100%!important;min-width:0!important;max-width:none!important;flex:none!important}
}
/* Combat report section headers: normal-weight Courier at 12px. */
#dungeonView .dungeon-report > .dungeon-combat-report > summary,
#graveyardView .dungeon-report > .dungeon-combat-report > summary{font:400 12px/1.3 "Courier New",Courier,monospace!important;letter-spacing:normal!important;text-transform:none!important}

/* Tavern report must remain visible on mobile even when generic .log is hidden. */
#tavernView #tavernLog { display:block; white-space:pre-wrap; overflow-wrap:anywhere; }

/* 2026-11-04 · Independent book reader: same visual contract as quest HUD, no quest selectors or state. */
body > #lorheimBookPanel{z-index:24021!important;pointer-events:auto!important}

body > #lorheimBookPanel .quest-hud-close{position:absolute!important;right:9px!important;top:7px!important;z-index:3!important;}

body > #lorheimBookPanel #lorheimBookPage{max-height:calc(100vh - var(--quest-hud-anchor-top,96px) - 30px)!important;overflow-y:auto!important;padding:0 4px 0 0!important;scrollbar-width:thin;scrollbar-color:#765938 #120c08}
body > #lorheimBookPanel .quest-canonical-detail{display:grid!important;gap:9px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
body > #lorheimBookPanel .quest-canonical-head{display:grid!important;gap:4px!important;min-width:0!important;padding:1px 0 2px!important}
body > #lorheimBookPanel .quest-canonical-title{margin:0!important;padding-right:24px!important;color:#f0d19a!important;font:700 19px/1.08 Georgia,"Times New Roman",serif!important;text-transform:uppercase!important;letter-spacing:.025em!important;white-space:normal!important;overflow-wrap:anywhere!important}
body > #lorheimBookPanel .quest-canonical-npc{margin:0!important;color:#a99b88!important;font:10px/1.25 "Courier New",Courier,monospace!important;text-transform:uppercase!important;letter-spacing:.055em!important}
body > #lorheimBookPanel .quest-canonical-box{display:grid!important;gap:4px!important;width:100%!important;min-width:0!important;padding:8px 9px!important;box-sizing:border-box!important;border:1px solid #5d462b!important;background:rgba(24,15,9,.72)!important;text-align:left!important}
body > #lorheimBookPanel .quest-canonical-box .lorheim-book-text{display:block!important;margin:5px 0 2px!important;color:#eee2ce!important;font:12px/1.45 "Courier New",Courier,monospace!important;white-space:pre-line!important;overflow-wrap:anywhere!important}
body > #lorheimBookPanel .quest-canonical-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;margin-top:1px!important}
body > #lorheimBookPanel .lorheim-book-button{min-height:31px!important;margin:0!important;width:100%!important;border:1px solid #b47b2e!important;background:linear-gradient(180deg,#d08b2e,#6b3915)!important;color:#1b1006!important;font:700 12px/1.2 Georgia,"Times New Roman",serif!important;cursor:pointer!important}
body > #lorheimBookPanel .lorheim-book-button:disabled{opacity:.35!important;cursor:default!important}
#achievementUnlockStack .lorheim-world-epic-book-notice .lorheim-loot-divider{margin-top:auto;flex-shrink:0}
#achievementUnlockStack .lorheim-world-epic-book-notice .lorheim-loot-flavor{flex-shrink:0}
@media(max-width:560px){body > #lorheimBookPanel .quest-canonical-title{font-size:17px!important}}

/* The Aschenkloster book collection is an independent panel inside the existing NPC action host. */
.lorheim-monastery-library-card{margin-top:10px;min-width:0}
.lorheim-monastery-library-card [data-library-toggle]{display:block;margin:8px auto 0!important;min-width:180px;max-width:100%}
.lorheim-monastery-library-card [data-library-content]{margin-top:10px;display:grid;gap:8px}
.lorheim-monastery-library-card [data-library-content][hidden]{display:none!important}
.lorheim-library-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 7px;border:1px solid #5d462b;background:rgba(24,15,9,.72);min-width:0}
.lorheim-library-row img{width:35px;height:35px;object-fit:contain}
.lorheim-library-row strong{display:block;color:#e8d2a5;font:700 12px/1.2 Georgia,serif;overflow-wrap:anywhere}
.lorheim-library-row small{display:block;color:#a99b88;font:10px/1.25 "Courier New",monospace}
.lorheim-library-row .button{margin:0!important;min-width:82px;font-size:11px!important}
.lorheim-library-result{color:#c2d9aa;font:11px/1.35 "Courier New",monospace;text-align:center;min-height:15px}
.lorheim-monastery-library-card .lorheim-library-footer-divider{width:100%;height:1px;margin:10px 0 0;background:rgba(120,88,45,.9)}
.lorheim-monastery-library-card .lorheim-library-footer{margin:10px auto 0;text-align:center;max-width:720px;color:#cdb892;font:11px/1.45 "Courier New",Courier,monospace}
@media(max-width:410px){.lorheim-library-row{grid-template-columns:29px minmax(0,1fr) auto;gap:5px;padding:4px}.lorheim-library-row img{width:27px;height:27px}.lorheim-library-row .button{min-width:67px;font-size:10px!important}}

.lorheim-monastery-library-card .lorheim-library-shelf{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:0;width:100%;min-width:0;box-sizing:border-box}
.lorheim-monastery-library-card .lorheim-library-slot{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;padding:4px 2px;box-sizing:border-box;border:0;background:transparent;min-height:108px}
.lorheim-monastery-library-card .lorheim-library-icon-frame{width:100%;max-width:none;aspect-ratio:1/1;display:grid;place-items:center;position:relative;min-width:0;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.32);outline-offset:-5px;background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);box-shadow:inset 0 0 0 2px rgba(0,0,0,.42),inset 0 0 18px rgba(255,177,59,.10),0 0 0 1px rgba(255,218,139,.08);box-sizing:border-box;overflow:hidden}
.lorheim-monastery-library-card .lorheim-library-icon-frame img{display:block;width:82%;height:82%;max-width:82%;max-height:82%;object-fit:contain}
.lorheim-monastery-library-card .lorheim-library-icon-frame img.lorheim-library-placeholder{opacity:.42;filter:grayscale(1) brightness(.42) contrast(.9) saturate(0)}
.lorheim-monastery-library-card .lorheim-library-icon-frame span{font:700 18px Georgia,serif;color:#74634d}
.lorheim-monastery-library-card .lorheim-library-read-inside{display:none!important}
.lorheim-monastery-library-card .lorheim-library-slot .button{width:100%;min-width:0!important;padding:4px 1px!important;margin:0!important;font:700 9px/1.1 Georgia,serif!important}
@media(max-width:700px){.lorheim-monastery-library-card .lorheim-library-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.lorheim-monastery-library-card .lorheim-library-slot{min-height:128px;padding:5px 4px}.lorheim-monastery-library-card .lorheim-library-slot .button{font-size:10px!important;padding:5px 2px!important}.lorheim-monastery-library-card .lorheim-library-read-outside{display:none!important}.lorheim-monastery-library-card .lorheim-library-read-inside{display:block!important;position:absolute;left:6px;right:6px;bottom:5px;width:calc(100% - 12px)!important;min-height:22px;padding:3px 2px!important;z-index:1}.lorheim-monastery-library-card .lorheim-library-icon-frame:has(.lorheim-library-read-inside) img{width:65.6%;height:65.6%;max-width:65.6%;max-height:65.6%;position:absolute;top:3px;left:50%;transform:translateX(-50%)}.lorheim-monastery-library-card [data-library-toggle]{min-width:160px}.lorheim-monastery-library-card .lorheim-library-footer{font-size:10px;line-height:1.4}}
@media(max-width:420px){.lorheim-monastery-library-card .lorheim-library-slot{min-height:118px;padding:4px 3px}.lorheim-monastery-library-card .lorheim-library-slot .button{font-size:9px!important;padding:4px 1px!important}}

.lorheim-monastery-library-card .craft-head{display:flex;justify-content:center!important}
.lorheim-monastery-library-card .craft-head .name{display:block;margin:0 auto;text-align:center!important;width:100%}

/* Lorheim Hotkey Settings – original Options frame/ink/gold styling, larger only in hotkey section. */
.options-view.active-view.lorheim-hotkeys-expanded .lorheim-options-menu-panel{
  width:min(1110px,calc(100vw - 24px))!important;max-width:1110px!important;
}
.options-view.active-view.lorheim-hotkeys-expanded .lorheim-options-stage{
  height:min(740px,calc(100dvh - 125px))!important;
  min-height:0!important;max-height:min(740px,calc(100dvh - 125px))!important;
}
.lorheim-hotkeys-content{font-family:Georgia,serif!important;gap:10px!important;padding:0 2px 12px!important}
.lorheim-hotkeys-intro,.lorheim-hotkeys-help p,.lorheim-hotkeys-help small,.lorheim-hotkeys-row-unavailable{opacity:.48;filter:grayscale(1)}
.lorheim-options-content .lorheim-hotkeys-row-unavailable .lorheim-hotkeys-key:disabled{cursor:not-allowed;pointer-events:none}
.lorheim-hotkeys-status{
  margin:0;color:#c9b393;font:12px/1.55 "Courier New",Courier,monospace!important;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
.lorheim-hotkeys-help,.lorheim-hotkeys-category{
  border:1px solid #6f5535;outline:1px solid rgba(215,172,91,.13);outline-offset:-4px;
  background:linear-gradient(155deg,#271c12,#120d09 80%);padding:12px;box-sizing:border-box;min-width:0;
}
.lorheim-hotkeys-help>strong,.lorheim-hotkeys-category h4{
  display:block;margin:0 0 9px;color:#e9bf72;font:700 14px/1.35 Georgia,serif!important;letter-spacing:.03em;
}
.lorheim-hotkeys-grid-figure{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-width:370px;margin:10px auto}
.lorheim-hotkeys-grid-figure span{
  min-height:42px;display:flex;align-items:center;gap:10px;padding:5px 10px;box-sizing:border-box;border:1px solid #8e6f43;
  background:linear-gradient(#42301d,#191109);color:#e9ca92;font:700 13px/1.25 Georgia,serif;
}
.lorheim-hotkeys-grid-figure span b{min-width:19px;color:#f4c978;font:700 15px Georgia,serif;text-align:center}
.lorheim-hotkeys-grid-figure span small{display:block;min-width:0;color:#e2c99d;font:11px/1.25 "Courier New",Courier,monospace;text-align:left;overflow-wrap:normal;word-break:normal;hyphens:none}
.lorheim-hotkeys-help .lorheim-hotkeys-grid-note{display:block;text-align:center}
.lorheim-hotkeys-rows{display:flex;flex-direction:column;gap:10px;min-width:0}
.lorheim-hotkeys-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;column-gap:14px;min-height:38px;padding:4px 6px;border-top:1px solid rgba(135,102,60,.36);box-sizing:border-box}
.lorheim-hotkeys-row label{color:#dfc49e;font:12px/1.35 "Courier New",Courier,monospace!important;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}
.lorheim-options-content .lorheim-hotkeys-row .lorheim-hotkeys-key{width:100%!important;min-width:0!important;max-width:150px!important;height:30px!important;min-height:30px!important;margin:0!important;font:700 12px Georgia,serif!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.lorheim-hotkeys-status{min-height:18px;text-align:center;color:#e1c17d!important}
.lorheim-hotkeys-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lorheim-options-content .lorheim-hotkeys-footer .mini-choice{min-width:0!important;width:100%!important;height:34px!important;min-height:34px!important;margin:0!important;font:700 12px Georgia,serif!important}
@media(max-width:520px){
  .options-view.active-view.lorheim-hotkeys-expanded .lorheim-options-menu-panel{width:calc(100vw - 16px)!important;max-width:100%!important}
  .options-view.active-view.lorheim-hotkeys-expanded .lorheim-options-stage{height:calc(100dvh - 105px)!important;max-height:calc(100dvh - 105px)!important}
  .lorheim-hotkeys-row{grid-template-columns:minmax(0,1fr) 110px;gap:8px}
  .lorheim-options-content .lorheim-hotkeys-row .lorheim-hotkeys-key{max-width:110px!important;font-size:11px!important}
  .lorheim-hotkeys-footer{gap:5px}
  .lorheim-options-content .lorheim-hotkeys-footer .mini-choice{font-size:10px!important;padding:4px!important}
}

/* Hotkeys use the one canonical Options back button, aligned left like every other subsection. */
.lorheim-options-subpanel > .lorheim-options-back{width:auto!important;max-width:max-content!important;align-self:flex-start!important;margin:0 0 10px!important;padding:7px 10px!important}

/* HOTKEY GUIDE V5 – use the actual craft-card frame and original Tier-1 item paths. */
.lorheim-hotkeys-compare{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);align-items:start;gap:16px;min-width:0}
.lorheim-hotkeys-compare-side{min-width:0}
.lorheim-hotkeys-compare-side h4{margin:0 0 9px;color:#f0c982;font:700 13px/1.3 Georgia,serif;text-align:center;letter-spacing:.03em}
.lorheim-hotkeys-compare-divider{height:100%;background:linear-gradient(to bottom,transparent,#a07942 14%,#a07942 86%,transparent)}
.lorheim-hotkeys-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-right:12px;min-width:0}
.lorheim-hotkeys-demo-card{min-width:0;min-height:65px!important;display:flex;align-items:center;gap:9px;padding:7px 9px!important;position:relative;overflow:visible!important}
.lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon{position:relative;flex:0 0 50px;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;aspect-ratio:1!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
border:2px solid #6f5535!important;outline:1px solid rgba(213,151,73,.38)!important;outline-offset:-5px!important;background:radial-gradient(circle at 35% 24%,#261d15,#090807 72%)!important;
box-shadow:inset 0 0 0 1px rgba(255,220,150,.10),inset 0 0 0 4px rgba(0,0,0,.26),inset 0 0 16px rgba(255,177,59,.055),0 1px 0 rgba(255,220,160,.08)!important}
.lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon::before,.lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon::after{content:none!important;display:none!important}
.lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;filter:none!important;transform:none!important;image-rendering:auto!important}
.lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-name{flex:1 1 auto;min-width:0;padding-right:6px;color:#f2d4a0;font:700 12px/1.25 Georgia,serif;overflow-wrap:normal;word-break:normal;hyphens:none}
.lorheim-hotkeys-demo-card .lorheim-hotkeys-keycap{position:absolute;top:50%;right:0;transform:translate(50%,-50%);z-index:2;width:22px;height:20px;display:flex;align-items:center;justify-content:center;border:1px solid #8f7447;border-radius:3px;background:linear-gradient(#f8efdb 0%,#e7d7ae 44%,#bba073 100%);box-shadow:inset 0 1px 0 #fff9e7,0 3px 0 #5b4730,1px 5px 4px #0009;color:#2b1d11;font:700 11px/1 Georgia,serif}
.lorheim-hotkeys-grid-explanation{margin:12px 0 0!important;border-top:1px solid rgba(135,102,60,.55);padding-top:10px!important;text-align:center;color:#c9b393;font:11px/1.5 'Courier New',Courier,monospace!important;overflow-wrap:normal;word-break:normal;hyphens:none}
.lorheim-hotkeys-help{padding:12px 14px 14px!important}
/* The normal parent menu does NOT inherit hotkey dimensions after back. */
.options-view.active-view:not(.lorheim-hotkeys-expanded) .lorheim-options-menu-panel{width:min(410px,calc(100vw - 24px))!important;max-width:410px!important}
/* Canonical red system notice; no backdrop dimming. */
#lorheimHotkeyConflictPopup{position:fixed!important;top:42vh!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:100120!important;--lr-edge:#c76d69;--lr-outer:#743b39;--lr-glow:rgba(216,84,76,.33)}
#lorheimHotkeyConflictPopup .achievement-unlock-symbol{color:#f26b64!important;font:900 46px/1 Georgia,serif;text-shadow:0 0 14px rgba(255,75,70,.5)}
#lorheimHotkeyConflictPopup .achievement-unlock-main b{color:#ffb5a5!important}
@keyframes lorheimHotkeyRejectPulse{0%,100%{box-shadow:0 2px 0 #3b210d}30%,65%{box-shadow:0 0 0 2px #ff514b,0 0 18px #ff3939;background:linear-gradient(#a74434,#4b1311)}}
.lorheim-options-content .lorheim-hotkeys-key.lorheim-hotkeys-rejected{animation:lorheimHotkeyRejectPulse .65s ease-in-out 1!important}
@media(max-width:700px){.lorheim-hotkeys-compare{grid-template-columns:minmax(0,1fr);gap:12px}.lorheim-hotkeys-compare-divider{display:none}.lorheim-hotkeys-demo-grid{grid-template-columns:1fr;gap:8px}.lorheim-hotkeys-demo-card{min-height:65px!important}.lorheim-hotkeys-help{padding:10px!important}}

/* The game injects canonical craft-icon CSS after style.css. The illustration
   must remain a scaled 50px copy of that one frame, not inherit 104px sizes. */
#optionsView .lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 50px!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;overflow:hidden!important;box-sizing:border-box!important;padding:0!important;margin:0!important;border:2px solid #6f5535!important;outline:1px solid rgba(213,151,73,.38)!important;outline-offset:-5px!important;background:radial-gradient(circle at 35% 24%,#261d15,#090807 72%)!important;box-shadow:inset 0 0 0 1px rgba(255,220,150,.10),inset 0 0 0 4px rgba(0,0,0,.26),inset 0 0 16px rgba(255,177,59,.055),0 1px 0 rgba(255,220,160,.08)!important}
#optionsView .lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon .item-icon-img{position:static!important;flex:none!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;transform:none!important;filter:none!important}
#optionsView .lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon::before,#optionsView .lorheim-hotkeys-demo-card .lorheim-hotkeys-demo-icon::after{content:none!important;display:none!important}

/* Real shop artwork: fit the supplied transparent PNG within the existing Lorheim icon area. */
.lorheim-shop-icon{width:100%;min-width:0;overflow:hidden;}
.lorheim-shop-icon .lorheim-shop-icon-img{display:block;width:68px;height:68px;max-width:100%;max-height:100%;object-fit:contain;object-position:center;margin:0 auto;border:0;outline:0;box-shadow:none;}
/* Grom & Shukk use the existing world-action icon frame, never a second nested frame. */
.grom-shukk-service-item .grom-shukk-service-icon{display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden;vertical-align:middle;}
.grom-shukk-service-item .grom-shukk-service-icon .item-icon-img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border:0;outline:0;box-shadow:none;}
@media(max-width:620px){.lorheim-shop-icon .lorheim-shop-icon-img{width:52px;height:52px;}}

/* LORHEIM ITEM-LOOT CONTRACT / 2026-11-04
   Shared category tokens on the existing canonical double frame.
   Multiplayer vote / claim UI and server delivery are intentionally unchanged. */
#multiplayerLootRollStack [data-solo-boss-loot-card] .dungeon-chest-box,
#dungeonChestModal.boss-item-loot .dungeon-chest-box{
  --lr-edge:#d88a35;--lr-outer:#7d461b;--lr-glow:rgba(232,123,39,.50);
}
#multiplayerLootRollStack [data-solo-boss-loot-card].pve-set-loot .dungeon-chest-box{
  --lr-edge:#59b968;--lr-outer:#285b34;--lr-glow:rgba(35,255,91,.48);
}
#multiplayerLootRollStack [data-solo-boss-loot-card].lorheim-rune-loot-card .dungeon-chest-box,
#dungeonChestModal.boss-item-loot.lorheim-rune-loot-modal .dungeon-chest-box,
#achievementUnlockStack .lorheim-rune-loot-notice{
  --lr-edge:#b783df;--lr-outer:#633a83;--lr-glow:rgba(181,73,255,.55);
}
/* One non-interactive dimming layer for rune loot and solo boss drops. */
html:has(#multiplayerLootRollStack [data-solo-boss-loot-card])::before,
html:has(#dungeonChestModal.open.boss-item-loot)::before{
  content:"";position:fixed;inset:0;z-index:100004;pointer-events:none;background:rgba(0,0,0,.66);
}
/* Canonical red Tier badge, never duplicate the tier in a heading. */
#achievementUnlockStack .achievement-unlock-toast .lorheim-popup-tier,
#multiplayerLootRollStack [data-solo-boss-loot-card] .lorheim-popup-tier{
  display:inline-block;margin-left:4px;padding:1px 4px;vertical-align:middle;
  border:1px solid #d06b53;background:#5c211b;color:#ffd1ae;
  font:700 10px/1 'Courier New',Courier,monospace;
}
/* Item stories: exactly one divider, italic Courier, clipped with ellipsis. */
#achievementUnlockStack :is(.quest-item-achievement-notice,.rare-loot-achievement-notice,.lorheim-rune-loot-notice) .lorheim-loot-divider,
#dungeonChestModal.boss-item-loot .lorheim-loot-divider{display:block;margin:3px 0 4px;height:1px;background:linear-gradient(90deg,rgba(213,172,108,.8),rgba(213,172,108,.12))}
#achievementUnlockStack :is(.quest-item-achievement-notice,.rare-loot-achievement-notice,.lorheim-rune-loot-notice) .lorheim-loot-flavor,
#dungeonChestModal.boss-item-loot .lorheim-loot-flavor{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
  overflow:hidden;font:italic 10px/1.2 'Courier New',Courier,monospace;color:#bfa889;
}
/* Explicit italic wins over legacy generic small-text shorthand in popup notices. */
#achievementUnlockStack :is(.quest-item-achievement-notice,.rare-loot-achievement-notice,.lorheim-rune-loot-notice) .lorheim-loot-flavor,
#dungeonChestModal.boss-item-loot .lorheim-loot-flavor{font-style:italic!important}

/* Naga / rare-loot receipt: attached to the existing canonical item frame,
   no extra container, no overlay, and no change to loot/claim semantics. */
#achievementUnlockStack .rare-loot-achievement-notice .lorheim-loot-inventory-receipt{
  position:absolute;right:12px;bottom:8px;z-index:2;display:inline-flex;
  align-items:center;gap:2px;color:#00593c;pointer-events:none;
  filter:drop-shadow(0 0 3px rgba(0,89,60,.45));
}
#achievementUnlockStack .rare-loot-achievement-notice .lorheim-notice-copy{
  padding-bottom:16px;box-sizing:border-box;
}
#achievementUnlockStack .rare-loot-achievement-notice .lorheim-loot-divider{
  display:block;width:100%;height:1px;min-height:1px;
  margin:3px 0 4px;background:linear-gradient(90deg,rgba(213,172,108,.8),rgba(213,172,108,.12));
}
#achievementUnlockStack .rare-loot-achievement-notice .lorheim-loot-flavor{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
  overflow:hidden;font:italic 10px/1.2 'Courier New',Courier,monospace!important;
  color:#bfa889;
}
/* Rare items are world discoveries, not routine system information. */
html:has(#achievementUnlockStack .rare-loot-achievement-notice.show)::before{
  content:"";position:fixed;inset:0;z-index:100004;
  background:rgba(0,0,0,.66);pointer-events:none;
}

/* CANONICAL ITEM FIND RECEIPT / 2026-11-06: confirmed inventory only.
   Popup layout remains Lorheim's original fixed frame, never a nested card. */
#achievementUnlockStack .achievement-unlock-toast:has(.lorheim-loot-inventory-receipt){position:relative}
#achievementUnlockStack .achievement-unlock-toast .lorheim-loot-inventory-receipt,
.quest-item-reward-popup .lorheim-loot-inventory-receipt,
#dungeonChestModal.boss-item-loot .lorheim-loot-inventory-receipt{
  position:absolute;right:12px;bottom:8px;z-index:3;display:inline-flex;
  align-items:center;gap:2px;color:#00593c;pointer-events:none;
  filter:drop-shadow(0 0 3px rgba(0,89,60,.45));
}
#achievementUnlockStack .achievement-unlock-toast .lorheim-loot-inventory-receipt img,
.quest-item-reward-popup .lorheim-loot-inventory-receipt img,
#dungeonChestModal.boss-item-loot .lorheim-loot-inventory-receipt img{
  display:block;width:20px;height:20px;object-fit:contain;
  filter:brightness(0) saturate(100%) invert(25%) sepia(37%) saturate(1237%) hue-rotate(113deg) brightness(86%) contrast(104%);
}
#achievementUnlockStack .achievement-unlock-toast:has(.lorheim-loot-inventory-receipt) .lorheim-notice-copy{padding-bottom:14px;box-sizing:border-box}
/* Do not clip through glyphs: the shared JS fitter inserts a true ellipsis. */
#achievementUnlockStack .achievement-unlock-toast .lorheim-loot-flavor{
  display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
  max-height:none!important;overflow:visible!important;font-style:italic!important;
}
#achievementUnlockStack .achievement-unlock-toast .lorheim-loot-flavor[hidden]{display:none!important}

/* Rune confirmation is the only rune popup expanded for its two decision buttons. */
@media(max-width:430px){.rune-gamble-box{height:auto!important;min-height:125px!important;max-height:min(90dvh,430px)!important}}

/* 2026-11-07 · Quest dungeon chambers T3/T8/T12/T15. Exclusive view, not
   an appended panel below the dungeon, using canonical zone/dungeon styling. */
#dungeonView.story-extra-chamber-active > :not(.story-extra-room){display:none!important}
#dungeonView.story-extra-chamber-active > .story-extra-room{
  border:0;outline:0;box-shadow:none;background:none;padding:0;
  display:flex;flex-direction:column;gap:14px;width:100%;max-width:none;
  margin:0!important;box-sizing:border-box;text-align:center;align-items:stretch
}
#dungeonView .story-chamber-header{width:100%;margin:0;box-sizing:border-box}
#dungeonView .story-chamber-header .zone-banner-wrap{width:100%;margin:0}
#dungeonView .story-chamber-header .zone-flavor{margin:12px auto 0;max-width:100%;}
#dungeonView .story-chamber-action{display:flex;justify-content:center;align-items:center;min-width:0}
#dungeonView .story-chamber-footer{width:100%;margin-top:0;padding-top:20px;
  border-top:1px solid #6f5535;display:flex;justify-content:center;align-items:center}
#dungeonView .story-chamber-footer .story-chamber-exit{width:auto!important;min-width:190px!important;max-width:240px!important;margin:0!important}
#dungeonView .deep-crystal-research-center{width:100%;max-width:none;margin:0}
#dungeonView .deep-crystal-research-center .skill{width:100%;max-width:none;box-sizing:border-box}
#dungeonView .deep-crystal-research-center .skill>.button{width:100%}
/* The three ordinary dungeon actions share a row only on desktop. */
@media(max-width:600px){
  #dungeonView .dungeon-header-actions:has(>.story-extra-header-continue){
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;align-items:stretch!important;justify-content:stretch!important
  }
  #dungeonView .dungeon-header-actions:has(>.story-extra-header-continue)>.dungeon-start-btn,
  #dungeonView .dungeon-header-actions:has(>.story-extra-header-continue)>.dungeon-exit-btn{
    width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;
    white-space:normal!important;box-sizing:border-box!important
  }
  #dungeonView .dungeon-header-actions>.story-extra-header-continue{
    grid-column:1/-1!important;order:3!important;width:100%!important;
    min-width:0!important;max-width:none!important;box-sizing:border-box!important
  }
}

/* 2026-11-07 — shared dungeon/graveyard banner, portrait-mobile only.
   The combat sentence belongs inside the banner's lower edge, not between actors.
   Reuse the canonical arena markup; leave landscape and desktop unchanged. */
@media (max-width:760px) and (orientation:portrait) {
  .dungeon-arena .dungeon-arena-headline {
    top:3%!important;max-width:94%!important;font-size:12px!important;
    line-height:1.15!important;text-align:center!important;
  }
  .dungeon-arena .dungeon-arena-roomname {
    top:16%!important;max-width:90%!important;font-size:9px!important;
    line-height:1.2!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  .dungeon-arena .dungeon-arena-combat-copy {
    left:3%!important;right:3%!important;bottom:3%!important;top:auto!important;
    transform:none!important;width:94%!important;max-width:94%!important;
    min-height:0!important;max-height:38%!important;height:auto!important;
    margin:0!important;padding:3px 5px!important;box-sizing:border-box!important;
    justify-content:flex-end!important;align-items:center!important;overflow:hidden!important;
    background:linear-gradient(0deg,rgba(0,0,0,.58),rgba(0,0,0,.2))!important;
  }
  .dungeon-arena .dungeon-arena-mainline,
  .dungeon-arena .dungeon-arena-mainline.is-room-clear {
    display:-webkit-box!important;-webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;line-clamp:2!important;
    width:100%!important;max-width:100%!important;max-height:2.55em!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
    text-wrap:wrap!important;font:400 11px/1.24 "Courier New",Courier,monospace!important;
    letter-spacing:normal!important;text-align:center!important;
  }
  .dungeon-arena .dungeon-arena-sublines {display:none!important;}
}

/* 2026-11-07 · Hedra: same apothecary recipe frame, matched card baselines.
   Only the asset scales: the canonical icon frame stays 104/92/74px. */
.world-npc-dual-grid.hedra-poison-grid{align-items:stretch}
.world-npc-dual-grid>.hedra-poison-card .craft-visual-row{flex:1 1 auto;min-height:0}
.world-npc-dual-grid>.hedra-poison-card .craft-large-icon img{width:65%!important;height:65%!important;max-width:65%!important;max-height:65%!important;margin:auto!important;object-fit:contain!important}
.world-npc-dual-grid>.hedra-poison-card>.craft-progress-block{flex:0 0 auto!important;align-self:stretch}
.world-npc-dual-grid>.hedra-poison-card>.button:disabled,
.world-npc-dual-grid>.hedra-poison-card>.button[aria-disabled="true"]{filter:grayscale(1)!important;opacity:.42!important;cursor:not-allowed!important;pointer-events:none!important}

/* Secret discoveries: category shares the canonical popup geometry and icon cell.
   The red question mark exactly matches the inventory-full exclamation. */
#achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-symbol{color:#f26b64!important;font:900 46px/1 Georgia,serif;text-shadow:0 0 14px rgba(255,75,70,.5)}
#achievementUnlockStack .world-npc-discovery-notice .lorheim-secret-question-mark{display:block;font:inherit;color:inherit;text-shadow:inherit}
#achievementUnlockStack .world-npc-discovery-notice .secret-discovery-heading{font:700 13px/1.15 Georgia,serif;color:#ffbd4e;white-space:normal;overflow-wrap:normal;letter-spacing:0}
#achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-main b.secret-discovery-name{font:700 14px/1.14 Georgia,serif;white-space:normal;overflow-wrap:break-word}
#achievementUnlockStack .world-npc-discovery-notice .lorheim-notice-copy{height:var(--lr-notice-icon);max-height:var(--lr-notice-icon)}
#achievementUnlockStack .world-npc-discovery-notice small.secret-discovery-flavor{font:italic 10px/1.2 'Courier New',Courier,monospace}
@media(max-width:430px){
 #achievementUnlockStack .world-npc-discovery-notice .secret-discovery-heading{font-size:10px;line-height:1.1}
 #achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-main b.secret-discovery-name{font-size:12px}
 #achievementUnlockStack .world-npc-discovery-notice .achievement-unlock-symbol{font-size:40px}
}
/* Graveyard completion uses the same popup frame, with a deliberate line break. */
#achievementUnlockStack .lorheim-graveyard-finish-notice .lorheim-notice-copy small{white-space:pre-line;font-family:'Courier New',Courier,monospace;line-height:1.55}
/* Discovery copy must have real width: otherwise the canonical word-fit
   helper sees a zero-width flex item and hides the flavor entirely. */
#achievementUnlockStack .world-npc-discovery-notice .lorheim-notice-copy{gap:0!important}
#achievementUnlockStack .world-npc-discovery-notice small.secret-discovery-flavor{box-sizing:border-box;width:100%!important;max-width:100%!important;flex:0 0 auto!important;align-self:stretch!important;display:block!important;height:auto!important;min-height:0!important;overflow:visible!important}

/* Skilltree: fixed TREE height, not a tall outer shell. The description
   follows immediately below the tree card for either specialization. */
.skilltree-modal.elf-spec-modal{align-items:safe center;}
.skilltree-modal .elf-spec-panel{
  height:auto;
  min-height:0;
  max-height:none;
}
.skilltree-modal .elf-spec-tree-wrap{
  flex:0 0 auto;
  min-height:0;
  height:auto;
  overflow:visible;
}
.skilltree-modal .elf-tree-card{
  --skilltree-fixed-height:565px;
  height:var(--skilltree-fixed-height);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
}
.skilltree-modal .elf-tree-card.is-before-specialization{
  height:calc(var(--skilltree-fixed-height) + var(--skilltree-preview-extra,60px));
}
.skilltree-modal .elf-tree-frame{
  flex:1 1 auto;
  min-height:0;
  align-content:space-evenly;
}
.skilltree-modal .elf-tree-footer{flex:0 0 auto}
.skilltree-modal .skilltree-reset-spec{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 17px;
  width:17px;
  height:17px;
  margin:0;
  padding:0;
  line-height:1;
  vertical-align:middle;
}
.skilltree-modal .skilltree-reset-spec img{
  display:block;
  width:16px;
  height:16px;
  object-fit:contain;
}
@media(max-width:520px){
  .skilltree-modal.elf-spec-modal{place-items:start center}
  .skilltree-modal .elf-tree-card{--skilltree-fixed-height:550px;--skilltree-preview-extra:110px}
}

/* Multiplayer interrupted playback: uses the canonical Lorheim popup geometry above. */
#lorheimDungeonConnectionOverlay{position:fixed;inset:0;z-index:200600;display:grid;place-items:center;pointer-events:none;background:transparent}
#lorheimDungeonConnectionPopup{--lr-edge:#c76d69;--lr-outer:#743b39;--lr-glow:rgba(216,84,76,.33);pointer-events:auto}
#lorheimDungeonConnectionPopup .achievement-unlock-symbol{color:#e16458;font:700 52px/1 Georgia,serif}
#lorheimDungeonConnectionPopup .lorheim-notice-copy{justify-content:space-between!important;gap:4px!important}
#lorheimDungeonConnectionPopup .lorheim-notice-copy small{margin-top:auto!important}
@media(max-width:430px){#lorheimDungeonConnectionPopup .achievement-unlock-symbol{font-size:42px}}

/* ELIXIR CSS CONTRACT: all six elixirs, T15–T20. Keep the potion grid and native buttons.
   Icon and progress share a bottom edge; neither materials nor effects may be ellipsized. */
.craft-card-layout.apothecary-elixir-card{
  min-height:174px!important;
  height:auto!important;
  overflow:visible!important;
  box-sizing:border-box;
}
.craft-card-layout.apothecary-elixir-card .craft-visual-row{
  grid-template-columns:104px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start;
}
.craft-card-layout.apothecary-elixir-card .craft-large-icon{
  width:104px!important;height:104px!important;
  min-width:104px!important;min-height:104px!important;
}
.craft-card-layout.apothecary-elixir-card .craft-info-column,
.craft-card-layout.apothecary-elixir-card.craft-quantity-panel .craft-info-column{
  height:104px!important;min-height:104px!important;
  overflow:visible!important;
  display:flex!important;flex-direction:column!important;
}
.craft-card-layout.apothecary-elixir-card .craft-title-row{gap:4px!important;margin-bottom:0!important}
.craft-card-layout.apothecary-elixir-card .craft-title-text{
  flex-wrap:nowrap!important;
  white-space:normal!important;
  overflow:visible!important;
  min-width:0;
  text-overflow:clip!important;
  font:700 12px/1.1 Georgia,serif!important;
}
.craft-card-layout.apothecary-elixir-card .craft-item-name{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.craft-card-layout.apothecary-elixir-card .recipe-xp{
  flex-shrink:0;white-space:nowrap;
  font:9px/1.1 'Courier New',Courier,monospace!important;
}
.craft-card-layout.apothecary-elixir-card .elixir-material-list{
  display:flex!important;flex-direction:column!important;align-items:flex-start;
  gap:0!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;
  overflow:visible!important;
  white-space:normal!important;
  font:9px/1.0 'Courier New',Courier,monospace!important;
  text-overflow:clip!important;
}
.craft-card-layout.apothecary-elixir-card .elixir-material-item{
  display:block;max-width:100%;white-space:nowrap;
  overflow:visible;text-overflow:clip;
  word-break:normal;overflow-wrap:normal;hyphens:none;
}
.craft-card-layout.apothecary-elixir-card .elixir-effect-separator{
  border-top:1px solid #6f5030;
  margin:5px 0 2px!important;width:100%;flex:0 0 auto;
}
.craft-card-layout.apothecary-elixir-card .elixir-effect{
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;white-space:normal!important;
  text-overflow:clip!important;overflow-wrap:normal!important;
  font:9px/1.075 'Courier New',Courier,monospace!important;
}
.craft-card-layout.apothecary-elixir-card .craft-progress-block{
  margin-top:auto!important;
  flex:0 0 auto!important;
  width:100%;padding:0;
}
.craft-card-layout.apothecary-elixir-card .craft-timer-row{
  height:11px!important;
  margin:0 0 2px!important;
  font:9px/1 'Courier New',Courier,monospace!important;
}
.craft-card-layout.apothecary-elixir-card .progress-shell{height:12px!important}
/* Elixir quantity prompt: allow the inventory requirements to expand the card.
   No material may be hidden by the generic single-line/ellipsis layout. */
.craft-card-layout.apothecary-elixir-card.craft-quantity-panel .craft-info-column{
  height:auto!important;min-height:104px!important;
}
.craft-card-layout.apothecary-elixir-card.craft-quantity-panel .craft-visual-row{
  height:auto!important;min-height:104px!important;overflow:visible!important;
}
.craft-card-layout.apothecary-elixir-card.craft-quantity-panel .craft-quantity-info{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:4px!important;height:auto!important;min-height:0!important;overflow:visible!important;
}
.craft-card-layout.apothecary-elixir-card .elixir-quantity-materials{
  display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;
  font:10px/1.25 'Courier New',Courier,monospace;color:#c6a06f;
}
.craft-card-layout.apothecary-elixir-card .elixir-quantity-material{
  display:block;min-width:0;max-width:100%;white-space:normal!important;
  overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word;
}
.apothecary-elixir-zone-notice{
  grid-column:1/-1;
  background:#211810;
  border:1px solid #806039;
  color:#e4d0ac;
  font:12px/1.3 'Courier New',Courier,monospace;
  text-align:center;
  padding:7px 8px;
}
@media(max-width:860px){
  /* On narrow viewports retain one full-width native potion card: no cropped text. */
  .craft-card-layout.apothecary-elixir-card .craft-visual-row{
    grid-template-columns:104px minmax(0,1fr)!important;
  }
}

/* Admin dashboard: compact centered Lorheim double-frame panel. */
#lorheimAdminDialog.lorheim-admin-dialog-overlay{position:fixed;inset:0;z-index:20040;display:none;align-items:center;justify-content:center;padding:12px;background:rgba(0,0,0,.72);box-sizing:border-box;}
#lorheimAdminDialog.lorheim-admin-dialog-overlay.open{display:flex;}
#lorheimAdminDialog .lorheim-admin-dialog{position:relative;box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:18px 18px 15px;border:2px solid #806039;outline:1px solid rgba(213,174,108,.34);outline-offset:-6px;background:linear-gradient(145deg,#1b1611,#0a0807 77%);box-shadow:0 12px 36px #000c,inset 0 0 0 1px #d8ad6233;border-radius:0;color:#e4d0ac;font-family:"Courier New",Courier,monospace;}
#lorheimAdminDialog h2{margin:0 32px 16px 0;color:#ede1cb;font:bold 18px/1.25 Georgia,serif;letter-spacing:.06em;}
#lorheimAdminDialog .lorheim-admin-dialog-close{position:absolute;top:9px;right:9px;z-index:2;}
#lorheimAdminDialog .lorheim-admin-monitor-body{display:grid;gap:8px;min-height:36px;font:12px/1.45 "Courier New",Courier,monospace;}
#lorheimAdminDialog .admin-monitor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;}
#lorheimAdminDialog .admin-monitor-row{padding:5px 7px;gap:10px;font:12px/1.45 "Courier New",Courier,monospace;min-width:0;}
#lorheimAdminDialog .admin-monitor-row strong{font-weight:700;text-align:right;white-space:nowrap;}
#lorheimAdminDialog .lorheim-admin-note{color:#b7a58d;font:10px/1.5 "Courier New",Courier,monospace;}
#lorheimAdminDialog .lorheim-admin-dialog-refresh{display:block;margin:12px 0 0 auto!important;font:700 11px "Courier New",Courier,monospace!important;}
@media(max-width:380px){#lorheimAdminDialog .lorheim-admin-dialog{padding:16px 10px 12px}#lorheimAdminDialog .admin-monitor-row{font-size:11px}}

/* Church coin donation: original quest card, balanced icon and amount, no redundant labels. */
.quest-coin-donation .quest-list-icon {align-self:center;justify-self:center;transform:none!important;margin:0!important;}
.quest-coin-donation .quest-list-main {align-self:center;min-width:0;}
.quest-coin-donation .quest-list-main small {white-space:normal;overflow:visible;text-overflow:clip;display:block;line-height:1.55;}
.quest-coin-donation .quest-currency-required {display:inline-flex;gap:9px;flex-wrap:wrap;max-width:100%;vertical-align:middle;}
.quest-coin-donation .quest-detail-head .quest-list-icon {align-self:center;justify-self:center;transform:none!important;}
.quest-coin-donation .quest-detail-grid .quest-detail-box > span:empty {display:none;}
.quest-coin-donation .quest-turnin-row {grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);}
.quest-coin-donation .quest-turnin-inline {grid-template-columns:minmax(0,1fr) 57px 57px;gap:6px;}
.quest-coin-donation .quest-turnin-possible {white-space:normal;line-height:1.45;}
.quest-coin-donation .quest-turnin-possible strong {display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;vertical-align:middle;font:700 11px/1.5 "Courier New",monospace;}
@media(max-width:620px){.quest-coin-donation .quest-turnin-row{grid-template-columns:minmax(0,1fr)}.quest-coin-donation .quest-turnin-inline{grid-template-columns:minmax(0,1fr) 58px 58px}}
/* Market: inventory-sized item squares; keep all currency columns bounded on mobile. */
#marketView .market-item-tile-v4 {flex:0 0 42px;width:42px;height:42px;min-width:42px;max-width:42px;box-sizing:border-box;}
#marketView .market-item-tile-v4 img {max-width:32px;max-height:32px;object-fit:contain;}
#marketView .market-item-tile-v4 .ii-tier-v3 {font-family:"Courier New",monospace;}
#marketView .market-row-v1 > div:not(:first-child) {min-width:0;}
#marketView .market-row-v1 .lorheim-currency {max-width:100%;flex-wrap:wrap!important;white-space:normal!important;gap:4px!important;}
#marketView .market-row-v1 .lorheim-currency .system-inline-icon {margin-right:1px!important;}
#marketView .market-money-input-v2 label {padding:0!important;text-align:center;}
@media(max-width:760px){#marketView .market-row-v1{gap:8px!important;padding:9px 5px!important}#marketView .market-row-v1>div:first-child{display:flex;align-items:center;min-height:44px}}
/* Order-shrine coin contribution: prevent the two denominations, steppers and MAX from overlapping. */
#shrineModalRoot .shrine-modal-box{box-sizing:border-box;width:min(96vw,560px)!important;max-width:min(96vw,560px)!important;}
#shrineModalRoot #shrineModalContent{box-sizing:border-box;min-width:0;max-width:100%;overflow-x:hidden;}
#shrineModalRoot .order-field{display:block;min-width:0;max-width:100%;}
#shrineModalRoot .shrine-amount-line{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:10px;min-width:0;align-items:end;}
#shrineModalRoot .shrine-amount-line>[data-money-input="shrine"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;width:100%;max-width:100%;}
#shrineModalRoot .shrine-amount-line .lorheim-money-denom{display:grid!important;grid-template-columns:19px 23px minmax(0,1fr) 23px!important;gap:4px!important;min-width:0;align-items:center;}
#shrineModalRoot .shrine-amount-line .lorheim-money-denom>b{display:none!important;}
#shrineModalRoot .shrine-amount-line .lorheim-money-denom input{box-sizing:border-box;min-width:0!important;width:100%!important;max-width:100%;height:35px!important;padding:4px!important;text-align:center;}
#shrineModalRoot .shrine-amount-line .lorheim-money-label{width:19px!important;min-width:19px;}
#shrineModalRoot .shrine-amount-line .lorheim-money-step{width:23px;height:30px;min-width:0;padding:0;}
#shrineModalRoot #shrineMaxBtn{min-width:0;width:78px;max-width:100%;height:35px;align-self:end;}
@media(max-width:560px){
 #shrineModalRoot .shrine-modal-box{width:min(96vw,480px)!important;max-width:min(96vw,480px)!important;}
 #shrineModalRoot .shrine-amount-line{grid-template-columns:minmax(0,1fr);gap:9px;}
 #shrineModalRoot .shrine-amount-line>[data-money-input="shrine"]{grid-template-columns:minmax(0,1fr);gap:8px;}
 #shrineModalRoot #shrineMaxBtn{width:100%;}
}

@media(max-width:760px){
 #marketView .market-row-v1{grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:3px 9px!important;overflow:hidden;}
 #marketView .market-row-v1>div:first-child{grid-column:1!important;grid-row:1/4!important;align-self:start;min-height:42px}
 #marketView .market-row-v1>.market-list-total-v4{grid-column:2!important;grid-row:1!important;}
 #marketView .market-row-v1>.market-list-unitprice-v4{grid-column:2!important;grid-row:2!important;}
 #marketView .market-row-v1>.market-list-quantity-v4{grid-column:3!important;grid-row:1!important;}
 #marketView .market-row-v1>.market-list-seller-v4{grid-column:2!important;grid-row:3!important;}
 #marketView .market-row-v1>.market-list-action-v4{grid-column:3!important;grid-row:2/4!important;}
}

/* Church coin request: keep gold and silver denominations close, without changing global currency widgets. */
.quest-coin-donation .quest-currency-required{gap:3px!important;column-gap:3px!important;align-items:center;}
.quest-coin-donation .quest-currency-required .lorheim-currency{display:inline-flex!important;align-items:center;gap:3px!important;column-gap:3px!important;white-space:nowrap!important;}
.quest-coin-donation .quest-currency-required .currency-gap{width:2px!important;margin:0!important;}
.quest-coin-donation .quest-currency-required img{margin:0 2px 0 0!important;}

/* Gem artwork only: distinct visual scales by exact quality filename.
   Standard gems +30%; flawed gems -15%; all other qualities remain untouched.
   Item frames, embedded/socket gems, and other item art are unaffected. */
.ii-bag-workspace-v4 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img:is([src$="/rubin.png"],[src$="/saphir.png"],[src$="/smaragd.png"],[src$="/diamant.png"],[src$="/amethyst.png"],[src$="/topaz.png"]),
.bank-grid-v1 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img:is([src$="/rubin.png"],[src$="/saphir.png"],[src$="/smaragd.png"],[src$="/diamant.png"],[src$="/amethyst.png"],[src$="/topaz.png"]),
.bank-deposit-grid-v1 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img:is([src$="/rubin.png"],[src$="/saphir.png"],[src$="/smaragd.png"],[src$="/diamant.png"],[src$="/amethyst.png"],[src$="/topaz.png"]),
#marketView .market-item-tile-v4 > img.item-icon-img:is([src$="/rubin.png"],[src$="/saphir.png"],[src$="/smaragd.png"],[src$="/diamant.png"],[src$="/amethyst.png"],[src$="/topaz.png"]) {
  transform:scale(1.30);
  transform-origin:center center;
}
.ii-bag-workspace-v4 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img[src$="_fehlerhaft.png"],
.bank-grid-v1 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img[src$="_fehlerhaft.png"],
.bank-deposit-grid-v1 .ii-bag-item-v3 .ii-item-icon-v3 > img.item-icon-img[src$="_fehlerhaft.png"],
#marketView .market-item-tile-v4 > img.item-icon-img[src$="_fehlerhaft.png"] {
  transform:scale(0.85);
  transform-origin:center center;
}

/* Compact market listing, scoped exclusively to market. */
/* Markt-Inserat: original inventory slot, four by four and one physical bag page. */
#marketView .market-sell-layout-v1{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:stretch;gap:10px}
#marketView .market-sell-card-v1,#marketView .market-items-panel-v3{min-width:0;box-sizing:border-box}
#marketView .market-bag-header-v5{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
#marketView .market-bag-header-v5 h3{margin:0}
#marketView .market-bag-tabs-v5{display:flex;gap:5px;flex-shrink:0}
#marketView .market-shell-v1 #marketView .market-bag-tabs-v5 #marketView .market-bag-tab-v5{position:relative;display:grid;place-items:center;width:37px;height:37px;min-width:37px;padding:1px!important;border:2px solid #5d4932;background:linear-gradient(#211a13,#090807)}
#marketView .market-bag-tab-v5 .ii-page-icon-v5{display:block;width:27px;height:27px;object-fit:contain}
#marketView .market-bag-tab-v5 .ii-page-badge-v5{position:absolute;right:1px;top:0;color:#fff;font:bold 10px/1 'Courier New',monospace;text-shadow:1px 1px #000}
#marketView .market-shell-v1 #marketView .market-bag-tab-v5.active{border-color:#d9a75d!important}
#marketView .market-shell-v1 #marketView .market-bag-tab-v5.locked{opacity:.4;cursor:not-allowed}
#marketView .market-bag-grid-v1{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;gap:5px;--ii-item-slot-w:auto;--ii-item-slot-h:auto}
#marketView .market-shell-v1 #marketView .market-bag-grid-v1 .ii-bag-item-v3#marketView .market-bag-item-v1,#marketView .market-shell-v1 #marketView .market-bag-grid-v1 #marketView .market-bag-empty-v5{display:flex;align-items:center;justify-content:center;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;aspect-ratio:1/1!important;box-sizing:border-box!important;border:2px solid #5d5a54;background:radial-gradient(circle at 50% 12%,rgba(230,230,220,.07),transparent 34%),linear-gradient(145deg,#1c1d1f,#090909 72%);outline:1px solid rgba(220,220,210,.18);outline-offset:-5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset 0 -12px 22px rgba(0,0,0,.42);padding:3px!important}
#marketView .market-shell-v1 #marketView .market-bag-grid-v1 #marketView .market-bag-item-v1 .ii-item-icon-v3 .item-icon-img{width:75%;height:75%;max-width:100%;max-height:100%;object-fit:contain}
#marketView .market-shell-v1 #marketView .market-sell-card-v1{display:flex;flex-direction:column}
#marketView .market-shell-v1 #marketView .market-sell-card-v1 #marketView .market-quantity-v3{grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:center}
#marketView .market-shell-v1 #marketView .market-quantity-v3 input{margin:0;height:38px}
#marketView .market-shell-v1 #marketView .market-quantity-v3 [data-market-max]{width:38px;height:38px;min-width:38px;padding:0!important;font:700 11px 'Courier New',monospace}
#marketView .market-shell-v1 #marketView .market-money-input-v2{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
#marketView .market-shell-v1 #marketView .market-price-row-v5{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:center}
#marketView .market-shell-v1 #marketView .market-price-row-v5 input{margin:0!important;min-width:0;height:38px}
#marketView .market-shell-v1 #marketView .market-price-icon-v5{width:38px;height:38px;display:grid;place-items:center;border:1px solid #765333;background:#100b07;box-sizing:border-box}
#marketView .market-shell-v1 #marketView .market-price-icon-v5 img{width:21px;height:21px;object-fit:contain}
#marketView .market-shell-v1 #marketView .market-sell-summary-v5{display:grid;gap:7px;margin-top:12px;padding:9px 0;border-top:1px solid #5d4932;font:11px/1.4 'Courier New',monospace}
#marketView .market-shell-v1 #marketView .market-sell-summary-v5>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#marketView .market-shell-v1 #marketView .market-sell-summary-v5 strong{color:#f2d182;font-weight:700;white-space:nowrap}
#marketView .market-shell-v1 #marketView .market-sell-actions-v5{margin-top:auto;padding-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#marketView .market-shell-v1 #marketView .market-sell-actions-v5 button{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){#marketView .market-sell-layout-v1{grid-template-columns:minmax(0,1fr)}#marketView .market-shell-v1 #marketView .market-sell-card-v1{min-height:0}}
@media(max-width:420px){#marketView .market-bag-grid-v1{gap:4px}#marketView .market-shell-v1 #marketView .market-price-row-v5{grid-template-columns:minmax(0,1fr) 38px}#marketView .market-shell-v1 #marketView .market-bag-grid-v1 .ii-bag-item-v3#marketView .market-bag-item-v1{padding:2px!important}}

#marketView .market-sell-layout-v1{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;}
#marketView .market-bag-grid-v1{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:auto!important;width:100%!important;height:auto!important;gap:5px!important;}
#marketView .market-bag-grid-v1 > .ii-bag-item-v3.market-bag-item-v1,
#marketView .market-bag-grid-v1 > .ii-bag-empty-v3.market-bag-empty-v5{width:100%!important;height:auto!important;aspect-ratio:1/1!important;background:radial-gradient(circle at 50% 12%,rgba(230,230,220,.07),transparent 34%),linear-gradient(145deg,#1c1d1f,#090909 72%)!important;border:2px solid #5d5a54!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset 0 -12px 22px rgba(0,0,0,.42)!important;min-width:0!important;min-height:0!important;padding:3px!important;}
#marketView .market-bag-grid-v1 .ii-bag-item-v3 .ii-count-v3{right:3px!important;top:2px!important;max-width:70%;overflow:hidden;text-overflow:ellipsis;font-size:9px!important;}
#marketView .market-bag-grid-v1 .ii-bag-item-v3 .ii-tier-v3{font-size:8px!important;}
#marketView .market-sell-card-v1 .market-price-row-v5{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;gap:7px!important;}
#marketView .market-sell-card-v1 .market-price-row-v5 input{width:100%!important;min-width:0!important;margin:0!important;height:38px!important;}
#marketView .market-sell-card-v1 .market-price-row-v5 .market-price-icon-v5{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;}
#marketView .market-sell-card-v1 .market-price-row-v5 .market-price-icon-v5 img{width:21px!important;height:21px!important;display:block!important;}
#marketView .market-sell-summary-v5{display:grid!important;margin-top:12px!important;gap:8px!important;}
#marketView .market-sell-summary-v5 > div{display:flex!important;gap:10px!important;justify-content:space-between!important;}
#marketView .market-sell-summary-v5 strong{display:inline-flex!important;gap:4px!important;align-items:center!important;}
@media(max-width:900px){#marketView .market-sell-layout-v1{grid-template-columns:minmax(0,1fr)!important;}}
/* Listing form denominations are two rows; the currency frames occupy MAX-button width. */
#marketView .market-sell-card-v1 .market-money-input-v2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:38px!important;gap:7px!important;min-width:0!important;margin:4px 0 0!important;}
#marketView .market-sell-card-v1 .market-money-input-v2 > .market-price-row-v5{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;grid-auto-rows:38px!important;align-items:center!important;gap:7px!important;min-width:0!important;}
#marketView .market-sell-card-v1 .market-money-input-v2 input{width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;line-height:20px!important;padding:7px!important;box-sizing:border-box!important;}
#marketView .market-sell-card-v1 .market-sell-summary-v5{font:11px/1.25 "Courier New",Courier,monospace!important;}
#marketView .market-sell-card-v1 .market-sell-summary-v5>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;}
#marketView .market-sell-card-v1 .market-sell-summary-v5 strong{white-space:normal!important;text-align:right!important;}
#marketView .market-sell-card-v1 .market-sell-actions-v5{margin-top:auto!important;padding-top:10px!important;}
#marketView .market-bag-tabs-v5 .market-bag-tab-v5{background:linear-gradient(#1b1511,#090807)!important;border:2px solid #4f3d28!important;position:relative!important;width:37px!important;min-width:37px!important;height:37px!important;padding:1px!important;}
#marketView .market-bag-tabs-v5 .market-bag-tab-v5.active{border-color:#b37a2a!important;background:linear-gradient(#43301b,#17100a)!important;}
#marketView .market-bag-tabs-v5 .market-bag-tab-v5 img{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;}

/* Approved T1-T9 original potion artwork: scale art only, never the slot/grid. */
.ii-item-icon-v3 > img.lorheim-standard-potion-t1-t9,
.ii-item-icon-v3 > img.lorheim-standard-potion-t1-t9.item-icon-img {
  transform:scale(1.25);
  transform-origin:center center;
}

/* Deep Crystal room: same icon footprint as neighboring skill panels. */
#deepCrystalsSchmelztiefenRoom .deep-crystal-resource-icon{display:block;width:100%;height:100%;object-fit:contain;object-position:center;}

/* System confirmations: same canonical Lorheim notice frame, icon and typography.
   Native browser dialogs have no gameplay UI. Buttons/input may expand height. */
#lorheimSystemDialog{
  --lr-notice-width:480px;--lr-notice-height:146px;--lr-notice-icon:96px;
  --lr-notice-gap:14px;--lr-notice-inset:13px;
  --lr-edge:#c7a464;--lr-outer:#70562a;--lr-glow:rgba(218,167,70,.33);
  position:fixed;inset:0;z-index:250000;display:grid;place-items:center;
  padding:12px;box-sizing:border-box;background:rgba(0,0,0,.55);
  pointer-events:auto;
}
#lorheimSystemDialog .lorheim-system-dialog-frame{
  box-sizing:border-box;width:min(var(--lr-notice-width),100%);
  min-height:var(--lr-notice-height);max-height:calc(100dvh - 24px);
  padding:var(--lr-notice-inset);overflow:auto;
  border:2px solid var(--lr-edge);border-radius:0;
  box-shadow:0 0 0 2px var(--lr-outer),0 0 0 4px #090706,0 0 17px 4px var(--lr-glow),inset 0 0 25px #0008;
  background:radial-gradient(ellipse at 12% 16%,#33271b,#17110e 55%,#0b0908);color:#e7c58f;
}
#lorheimSystemDialog .lorheim-system-dialog-main{
  display:grid;grid-template-columns:var(--lr-notice-icon) minmax(0,1fr);
  gap:var(--lr-notice-gap);align-items:start;min-height:var(--lr-notice-icon);
}
#lorheimSystemDialog .lorheim-system-dialog-icon{
  display:grid;place-items:center;box-sizing:border-box;width:var(--lr-notice-icon);
  height:var(--lr-notice-icon);border:1px solid var(--lr-edge);border-radius:0;
  background:radial-gradient(circle at 35% 24%,#2a2118,#0a0908 72%);
  box-shadow:inset 0 0 0 3px #100c09,0 0 9px var(--lr-glow);
  font:700 48px/1 Georgia,serif;color:#ffbd4e;overflow:hidden;
}
#lorheimSystemDialog .lorheim-system-dialog-icon img{display:block;width:100%;height:100%;object-fit:contain}
#lorheimSystemDialog .lorheim-system-dialog-copy{display:flex;flex-direction:column;gap:5px;min-width:0;min-height:var(--lr-notice-icon);max-height:none}
#lorheimSystemDialog .lorheim-system-dialog-copy strong{
  margin:0;font:700 16px/1.18 Georgia,'Times New Roman',serif;
  color:#ffbd4e;text-transform:uppercase;overflow-wrap:anywhere;
}
#lorheimSystemDialog .lorheim-system-dialog-divider{display:block;width:100%;height:1px;flex:none;background:linear-gradient(90deg,rgba(213,172,108,.8),rgba(213,172,108,.12))}
#lorheimSystemDialog .lorheim-system-dialog-copy p{margin:0;font:12px/1.35 'Courier New',Courier,monospace;color:#c6b394;overflow-wrap:anywhere;white-space:pre-line}
#lorheimSystemDialog .lorheim-system-dialog-input-row{margin-top:10px}
#lorheimSystemDialog .lorheim-system-dialog-input-row input{
  display:block;box-sizing:border-box;width:100%;height:36px;padding:7px 9px;
  border:1px solid #60462b;border-radius:0;background:#17110e;color:#e7c58f;
  font:13px/1.3 'Courier New',Courier,monospace;
  box-shadow:inset 0 0 0 1px #100c09,inset 0 2px 8px #0008;
}
#lorheimSystemDialog .lorheim-system-dialog-input-row input:focus{outline:1px solid var(--lr-edge);outline-offset:1px}
#lorheimSystemDialog .lorheim-system-dialog-actions{display:flex;align-items:stretch;gap:7px;margin-top:12px}
#lorheimSystemDialog .lorheim-system-dialog-actions>.button{
  box-sizing:border-box;display:block;flex:1 1 0;width:0;min-width:0;
  min-height:32px;height:auto;padding:6px 5px;margin:0;border-radius:0;
  font:700 12px/1.15 Georgia,'Times New Roman',serif;
  white-space:normal;cursor:pointer;
}
@media(max-width:430px){
 #lorheimSystemDialog{--lr-notice-width:calc(100vw - 24px);--lr-notice-height:125px;--lr-notice-icon:76px;--lr-notice-gap:10px;--lr-notice-inset:10px;padding:12px}
 #lorheimSystemDialog .lorheim-system-dialog-copy strong{font-size:13px}
 #lorheimSystemDialog .lorheim-system-dialog-copy p{font-size:10.5px}
 #lorheimSystemDialog .lorheim-system-dialog-icon{font-size:38px}
 #lorheimSystemDialog .lorheim-system-dialog-actions>.button{font-size:11px}
}

/* Story rooms reuse the full-width completion chest tile below the artwork. */
#dungeonView .story-chest-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  margin:0;
}
#dungeonView .story-chest {
  grid-template-columns:minmax(0,1fr);
  margin:0;
}
#dungeonView .story-chest-feedback {
  grid-column:1/-1;
  margin:0;
}
#dungeonView .story-chest-feedback[hidden] {display:none;}
#dungeonView .story-chest .dungeon-chest-reward-btn:focus-visible {
  outline:2px solid #dcb779;
}

/* Story room actions share one centered, touch-sized column below the banner. */
#dungeonView .story-chamber-action {
  flex-direction:column;
  gap:8px;
}
#dungeonView .story-chamber-footer .story-chamber-exit,
#dungeonView .story-chamber-action > .button,
#dungeonView .deep-crystal-research-center .skill > .button {
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%, 240px)!important;
  min-width:0!important;
  max-width:240px!important;
  min-height:44px;
  margin:0 auto!important;
}
#dungeonView .story-chamber-feedback[hidden] {display:none;}

/* Patch 97: readable provider age notice, no official seal. */
.lorheim-youth-notice{margin:8px auto 12px;padding:7px 10px;max-width:100%;box-sizing:border-box;text-align:center;border:1px solid #99713f;background:#201810;color:#f0d39f;font:12px/1.45 "Courier New",Courier,monospace;overflow-wrap:anywhere}
.lorheim-youth-notice strong,.lorheim-youth-notice span{display:block}
.lorheim-youth-notice strong{font-size:14px;margin-bottom:3px}
.lorheim-youth-registration{font:12px/1.4 "Courier New",Courier,monospace;color:#f0d39f;margin:4px 0;overflow-wrap:anywhere}

/* Legal notice must be accessible before registration, above the auth gate. */
.lorheim-legal-overlay.open{z-index:300010}

.lorheim-auth-terms{font:12px/1.4 "Courier New",Courier,monospace;color:#f0d39f;display:grid;gap:6px}.lorheim-auth-terms label{display:flex;align-items:flex-start;gap:8px}.lorheim-auth-terms input{flex:none;margin-top:2px}.lorheim-auth-terms button{font-family:inherit}

/* Public beta: keep the menu layout, but make the shop unmistakably disabled. */
#openShopOptionsBtn:disabled { opacity: .45; cursor: not-allowed; }

/* Desktop-only effect inspection; shared battlefield-toast surface above. */
.lorheim-effect-hover{position:fixed;z-index:35000;box-sizing:border-box;width:max-content;min-width:120px;max-width:min(420px,calc(100vw - 16px));padding:5px 7px;opacity:1;visibility:visible;transform:none;transition:none;pointer-events:none;color:#fff;text-align:left;font:8px/1.35 "Courier New",Courier,monospace;white-space:normal;overflow-wrap:anywhere;}
.lorheim-effect-hover[hidden]{display:none!important;}
.lorheim-effect-hover strong{display:block;color:#fff;font:700 8px/1.35 "Courier New",Courier,monospace;text-transform:uppercase;}
.lorheim-effect-hover .effect-hover-kind{color:#82b46c;font-weight:400;}
.lorheim-effect-hover[data-kind="debuff"] .effect-hover-kind{color:#d65a51;}
.lorheim-effect-hover .effect-hover-art{float:right;width:21px;height:21px;margin:0 0 3px 8px;display:grid;place-items:center;overflow:hidden;border:1px solid #8e6e39;box-sizing:border-box;}
.lorheim-effect-hover .effect-hover-art img{width:100%;height:100%;object-fit:contain;display:block;}
.lorheim-effect-hover .effect-hover-copy{margin:3px 0 0;color:#fff;font-weight:400;}
.lorheim-effect-hover .effect-hover-duration{color:#fff;font-weight:400;}
@media (min-width:861px) and (hover:hover) and (pointer:fine){.dungeon-arena img[data-effect-hover]{pointer-events:auto;} .dungeon-arena-player-buff>b{pointer-events:none;}}
@media (max-width:860px), (pointer:coarse), (hover:none){.lorheim-effect-hover{display:none!important;}}

/* Location music: native option group and sidebar rail. */
#lorheimSoundWrap{position:relative;}
#lorheimSoundButton img{width:24px;height:24px;object-fit:contain;pointer-events:none;}
#lorheimSoundButton.music-muted img{filter:grayscale(1);opacity:.55;}
#lorheimSoundPanel{position:absolute;left:48px;top:0;width:210px;max-width:calc(100vw - 64px);z-index:25;padding:12px;border:2px solid #6f5535;outline:1px solid rgba(213,151,73,.35);outline-offset:-5px;background:linear-gradient(145deg,#1b1511,#0b0908);box-shadow:0 6px 14px #0009;box-sizing:border-box;}
#lorheimSoundPanel[hidden]{display:none!important;}
.lorheim-sound-volume{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;color:#c6a06f;font:12px "Courier New",monospace;width:100%;}
.lorheim-sound-volume input{grid-column:1/-1;width:100%;min-width:0;accent-color:#bd8a45;cursor:pointer;}
@media(max-width:860px){#lorheimSoundPanel{left:40px;}#lorheimSoundButton img{width:20px;height:20px;}}
