/* ============================================================================
   KRAGOR: RELIC DUEL — PC / DESKTOP WEB OPTIMIERUNG (desktop.css)
   ----------------------------------------------------------------------------
   STRIKTE DOPPELTE ISOLATION (0 Pixel Effekt auf Android-APK & Handy-Web):
   1. Alle Regeln liegen in @media (min-width: 960px) and (hover: hover) and (pointer: fine)
   2. Jede Regel ist zusätzlich an body.kragor-desktop-web:not(.is-native-app) gebunden.
   3. Kein contain: layout / content-visibility: auto auf 3D-Flip-Containern (preserve-3d),
      keine gestapelten Vollbild-backdrop-filter, kein permanentes will-change,
      volle body.perf-mode-Kompatibilität.
   ============================================================================ */

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  /* ==========================================================================
     1. APP-RAHMEN, AMBIENT-BÜHNE, SCROLLBARS & MAUS-UX
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) {
    --dk-stage-max: 1280px;
    --dk-wide-max: 1360px;
    --dk-narrow-max: 1120px;
    --dk-gutter: clamp(16px, 2.4vw, 32px);
    background:
      radial-gradient(ellipse 75% 55% at 50% 0%, rgba(30, 58, 138, 0.28) 0%, transparent 65%),
      radial-gradient(ellipse 65% 45% at 85% 95%, rgba(88, 28, 135, 0.22) 0%, transparent 60%),
      radial-gradient(circle at 50% 35%, #0f172a 0%, #050811 100%);
    overflow: hidden;
    height: 100dvh;
    width: 100vw;
  }

  body.kragor-desktop-web:not(.is-native-app) #square-shell {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  body.kragor-desktop-web:not(.is-native-app) #app-root {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  /* Dezente, zum Dark-Glassmorphism passende Desktop-Scrollbalken */
  body.kragor-desktop-web:not(.is-native-app) *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) *::-webkit-scrollbar-track {
    background: rgba(9, 13, 24, 0.45);
    border-radius: 999px;
  }

  body.kragor-desktop-web:not(.is-native-app) *::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  body.kragor-desktop-web:not(.is-native-app) *::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.48);
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  /* Klare Maus-UX & dezente Hover-Zustände */
  body.kragor-desktop-web:not(.is-native-app) button:not(:disabled),
  body.kragor-desktop-web:not(.is-native-app) [role="button"]:not([aria-disabled="true"]),
  body.kragor-desktop-web:not(.is-native-app) .mc-card:not(.is-disabled),
  body.kragor-desktop-web:not(.is-native-app) .play-mode-tile:not(.is-citadel-locked),
  body.kragor-desktop-web:not(.is-native-app) .iap-product-card,
  body.kragor-desktop-web:not(.is-native-app) .pack-aaa-card,
  body.kragor-desktop-web:not(.is-native-app) .item-trader-card:not(.is-sold-out),
  body.kragor-desktop-web:not(.is-native-app) .altar-gear-tile,
  body.kragor-desktop-web:not(.is-native-app) .is-clickable-profile {
    cursor: pointer;
  }

  body.kragor-desktop-web:not(.is-native-app) .mc-btn:not(:disabled):hover {
    filter: brightness(1.08);
  }

  body.kragor-desktop-web:not(.is-native-app) .play-mode-tile:not(.is-citadel-locked):hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-product-card:hover,
  body.kragor-desktop-web:not(.is-native-app) .pack-aaa-card:hover,
  body.kragor-desktop-web:not(.is-native-app) .item-trader-card:not(.is-sold-out):hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.58);
  }

  body.kragor-desktop-web.perf-mode:not(.is-native-app) .play-mode-tile:hover,
  body.kragor-desktop-web.perf-mode:not(.is-native-app) .iap-product-card:hover,
  body.kragor-desktop-web.perf-mode:not(.is-native-app) .pack-aaa-card:hover,
  body.kragor-desktop-web.perf-mode:not(.is-native-app) .item-trader-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* ==========================================================================
     2. TOP-STATUSLEISTE, SUBVIEW-HEADER, SUB-TABS & HAUPT-NAVIGATION
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .hub-topbar,
  body.kragor-desktop-web:not(.is-native-app) .subview-header {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-stage-max));
    max-width: var(--dk-stage-max);
    margin: 10px auto 0;
    padding: 9px 18px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 24px rgba(2, 6, 16, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
    gap: 12px;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .subview-header .subview-title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Sub-Tabs (Shop, Sammlung, Schmiede): bündig zur zentrierten Bühne statt 1920px-Vollbreite */
  body.kragor-desktop-web:not(.is-native-app) .subview-tabs {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-stage-max));
    max-width: var(--dk-stage-max);
    margin: 8px auto 0;
    padding: 6px 8px;
    gap: 8px;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(11, 17, 32, 0.88);
    box-shadow: 0 6px 18px rgba(2, 6, 16, 0.36);
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .subview-tabs .tab-btn {
    flex: 1 1 140px;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  /* Zentrierte Arbeitsfläche aller Subviews */
  body.kragor-desktop-web:not(.is-native-app) .subview-body {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-stage-max));
    max-width: var(--dk-stage-max);
    margin: 0 auto;
    padding: 12px 6px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Haupt-Navigation unten: elegante, kompakte Desktop-Dock-Leiste */
  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav {
    width: min(740px, calc(100vw - 48px));
    max-width: 740px;
    margin: 6px auto 10px;
    padding: 6px 12px;
    gap: 8px;
    border-radius: 17px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 28px rgba(2, 6, 16, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav .bnav-item {
    padding: 6px 10px;
    gap: 4px;
    border-radius: 12px;
    transition: background 0.16s ease, transform 0.14s ease, color 0.16s ease;
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav .bnav-item:hover {
    background: rgba(51, 65, 85, 0.42);
    transform: translateY(-1px);
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav .bnav-item.is-active {
    background: rgba(56, 189, 248, 0.16);
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav .bnav-icon svg {
    width: 21px;
    height: 21px;
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav .bnav-label {
    font-size: 11.5px;
    letter-spacing: 0.01em;
  }

  /* ==========================================================================
     3. HOME / HUB-ANSICHT (Sauber für 1280×720 bis 1920×1080 ohne Abschneiden)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .hub-main {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-stage-max));
    max-width: var(--dk-stage-max);
    margin: 0 auto;
    padding: 8px 0 8px;
    min-height: 0;
    overflow: hidden;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-floating-badges {
    width: 100%;
    max-width: var(--dk-stage-max);
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-open-hero {
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 4px;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-hero-pedestal-wrap {
    width: clamp(220px, 28dvh, 304px);
    height: clamp(74px, 9.5dvh, 102px);
    bottom: -2px;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-hero-figure {
    margin-bottom: clamp(14px, 3dvh, 30px);
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-open-hero .steve-svg {
    width: clamp(148px, 25dvh, 232px);
    height: clamp(148px, 25dvh, 232px);
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-lower-stack,
  body.kragor-desktop-web:not(.is-native-app) .hub-play-zone {
    width: min(640px, 100%);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .hub-glass-dock {
    padding: 10px 14px;
    gap: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) .play-cta-btn {
    padding: clamp(11px, 1.8dvh, 16px) 26px;
    font-size: clamp(15px, 2dvh, 18px);
  }

  /* ==========================================================================
     4. SPIELEN-HUB, KAMPAGNEN-KARTE & ONLINE-ARENA
     ========================================================================== */
  /* Bug-Fix: Verhindert, dass das alte 2-Spalten-Grid auf .play-hub-body das .play-modes-grid halbiert! */
  body.kragor-desktop-web:not(.is-native-app) .subview-body.play-hub-body,
  body.kragor-desktop-web:not(.is-native-app) .subview-body.play-hub-body.play-hub-mobile-grid-wrap {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-narrow-max));
    max-width: var(--dk-narrow-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 6px 20px !important;
  }

  body.kragor-desktop-web:not(.is-native-app) .play-modes-grid {
    width: 100%;
    max-width: 1040px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.kragor-desktop-web:not(.is-native-app) .play-mode-tile {
    min-height: clamp(220px, 29dvh, 276px);
    padding: 16px 18px 15px;
    gap: 10px;
    border-radius: 18px;
  }

  body.kragor-desktop-web:not(.is-native-app) .camp-dim-bar {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), var(--dk-stage-max));
    max-width: var(--dk-stage-max);
    margin: 8px auto 0;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  body.kragor-desktop-web:not(.is-native-app) .camp-map-scroll {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), 1120px);
    max-width: 1120px;
    margin: 10px auto 12px;
    border-radius: 18px;
  }

  /* Online-Arena: zentrierte, lesbare Breite statt 1440px-Vollstreckung */
  body.kragor-desktop-web:not(.is-native-app) .subview-body.oa-body {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), 1040px);
    max-width: 1040px;
    gap: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .oa-hero-card,
  body.kragor-desktop-web:not(.is-native-app) .oa-card,
  body.kragor-desktop-web:not(.is-native-app) .oa-pm-vs-card {
    padding: 14px 18px;
    border-radius: 16px;
  }

  /* ==========================================================================
     5. SAMMLUNG & DECK-BUILDER (4–6 Karten/Reihe, kompakte Deck-Leiste)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .col-mode-switcher,
  body.kragor-desktop-web:not(.is-native-app) .col-deck-slots-bar,
  body.kragor-desktop-web:not(.is-native-app) .collection-toolbar {
    max-width: var(--dk-stage-max);
    margin-left: auto;
    margin-right: auto;
  }

  body.kragor-desktop-web:not(.is-native-app) .collection-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  body.kragor-desktop-web:not(.is-native-app) .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  body.kragor-desktop-web:not(.is-native-app) .deck-selected-section {
    padding: 12px 14px;
    border-radius: 16px;
  }

  body.kragor-desktop-web:not(.is-native-app) .deck-selected-section .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
  }

  /* ==========================================================================
     6. SHOP & SCHATZKAMMER (Booster, Spezial-Pakete, Diamanten, Bücher, Händler)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .pack-store-hero.is-compact-hero,
  body.kragor-desktop-web:not(.is-native-app) .trader-hero-banner,
  body.kragor-desktop-web:not(.is-native-app) .iap-hero-banner,
  body.kragor-desktop-web:not(.is-native-app) .iap-preview-banner,
  body.kragor-desktop-web:not(.is-native-app) .iap-section-block {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .pack-store-hero.is-compact-hero {
    padding: 11px 16px !important;
    margin-bottom: 14px !important;
  }

  body.kragor-desktop-web:not(.is-native-app) .pack-store-grid {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .pack-it-stage {
    min-height: 132px;
    padding: 24px 10px 10px;
  }

  /* Schatzkammer: Spezial-Pakete 2-spaltig, Diamanten-Pakete 3-spaltig (statt 1fr/2fr-Riesenblöcke) */
  body.kragor-desktop-web:not(.is-native-app) .iap-hero-banner {
    padding: 16px 20px;
    margin-bottom: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-hero-footer {
    gap: 12px;
    flex-wrap: wrap;
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-restore-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-store-grid.is-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-store-grid.is-diamonds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .iap-product-card {
    padding: 15px 16px;
    height: 100%;
    justify-content: space-between;
  }

  /* Zauberbücher & Item-Händler */
  body.kragor-desktop-web:not(.is-native-app) .trader-filter-bar {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) .trader-book-grid,
  body.kragor-desktop-web:not(.is-native-app) .item-trader-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  /* ==========================================================================
     7. SCHMIEDE (Werkbank, Fusion, Arkaner Altar, Schmiedetisch & Reparieren)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .ws-segmented-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    gap: 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .ws-seg-bar {
    width: min(580px, 100%);
    max-width: 580px;
    margin: 0 auto 2px;
  }

  body.kragor-desktop-web:not(.is-native-app) .ws-sub-panes,
  body.kragor-desktop-web:not(.is-native-app) .ws-sub-pane {
    width: 100%;
    max-width: none;
  }

  body.kragor-desktop-web:not(.is-native-app) .fuse-shell,
  body.kragor-desktop-web:not(.is-native-app) .forge-shell,
  body.kragor-desktop-web:not(.is-native-app) .altar-stage-card {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .aaa-lock-card {
    max-width: 480px;
    padding: 24px 26px;
  }

  body.kragor-desktop-web:not(.is-native-app) .fuse-filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) .fuse-cards-list,
  body.kragor-desktop-web:not(.is-native-app) .forge-cards-list,
  body.kragor-desktop-web:not(.is-native-app) .repair-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  body.kragor-desktop-web:not(.is-native-app) .wb-cards-grid,
  body.kragor-desktop-web:not(.is-native-app) .alchemy-cards-grid,
  body.kragor-desktop-web:not(.is-native-app) .altar-books-grid,
  body.kragor-desktop-web:not(.is-native-app) .ws-relic-dex-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  /* ==========================================================================
     8. 5×5 KAMPF-ARENA & 3×4 ZITADELLE-KAMPF (Zero-Scroll-Fit 1280×720 – 1920×1080)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .battle-layout {
    width: min(96vw, 1440px);
    max-width: 1440px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: clamp(210px, 18vw, 270px) minmax(0, 1fr) clamp(120px, 14vw, 270px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "hud-top  hud-top  hud-top"
      "hero-hud hero-hud hero-hud"
      "log      board    ."
      "dock     dock     dock";
    align-items: center;
    justify-items: center;
    gap: clamp(4px, 0.7dvh, 8px) clamp(12px, 1.5vw, 22px);
    padding: clamp(6px, 1.1dvh, 12px) clamp(12px, 1.4vw, 20px);
    overflow: hidden;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud,
  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-hero-hud-strip,
  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .boss-hud-bar {
    width: min(880px, 100%);
    max-width: 880px;
    min-width: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud {
    padding: 5px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud .xp-badge,
  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud .oa-turn-timer-pill,
  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud .cit-timer-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-hero-hud-strip {
    padding: 6px 14px;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-log-strip {
    width: 100%;
    max-width: 270px;
    min-height: 96px;
    max-height: min(260px, 34dvh);
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Spielfeld sauber an die verbleibende Zeilenhöhe (1fr) koppeln -> kein Überlappen mit Handkarten! */
  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-board-wrap {
    height: 100%;
    width: auto;
    max-height: min(54dvh, 48vw, 620px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    padding: clamp(4px, 0.8dvh, 8px) clamp(14px, 1.8vw, 24px) clamp(8px, 1.4dvh, 14px);
    overflow: visible;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout.is-citadel-3x4 > .battle-board-wrap {
    height: 100%;
    max-height: min(56dvh, 42vw, 600px);
    max-width: min(540px, 48vw);
    aspect-ratio: 3 / 4;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom {
    width: min(920px, 94vw);
    max-width: 920px;
    padding: clamp(7px, 1.1dvh, 11px) 14px clamp(8px, 1.2dvh, 12px);
    gap: clamp(5px, 0.8dvh, 8px) 14px;
    border-radius: 16px;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .battle-actions-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .mc-xp-label {
    gap: 8px;
    align-items: center;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .mc-xp-level-num {
    white-space: nowrap;
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .battle-hand.battle-hand-fan {
    gap: 10px;
    padding: 2px 2px 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .battle-hand .mc-card-compact .mc-card-art {
    height: clamp(46px, 7.2dvh, 72px);
  }

  /* ==========================================================================
     9. VERFLUCHTE ZITADELLE (12×12 SOLO-DUNGEON-KARTE)
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .citadel-topbar {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), 1520px);
    max-width: 1520px;
    margin: 10px auto 0;
    padding: 8px 18px;
    border-radius: 15px;
    flex-shrink: 0;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-layout {
    width: min(calc(100vw - (var(--dk-gutter) * 2)), 1520px);
    max-width: 1520px;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    margin: 0 auto;
    padding: 10px 0 12px;
    display: grid;
    grid-template-columns: clamp(300px, 24vw, 370px) auto clamp(290px, 23vw, 355px);
    gap: clamp(16px, 2vw, 28px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-panel {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding: 18px 18px;
    gap: 15px;
    border-radius: 18px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-hp-track {
    height: 11px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-gear-row,
  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-belt-row {
    gap: 8px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-gear-chip {
    min-height: 44px;
    padding: 6px 5px;
    border-radius: 11px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-gear-chip svg {
    width: 22px;
    height: 22px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-belt-slot {
    min-height: 60px;
    border-radius: 12px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-left-panel .cit-belt-slot svg {
    width: 32px;
    height: 32px;
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-board-frame {
    width: min(68dvh, 44vw, 640px);
    height: min(68dvh, 44vw, 640px);
  }

  body.kragor-desktop-web:not(.is-native-app) .citadel-log-bar {
    max-width: min(68dvh, 44vw, 640px);
  }

  /* ==========================================================================
     10. QUESTS, DAILY, GLÜCKSRAD & ALLE MODALS / OVERLAYS / KARTEN-ZOOM
     ========================================================================== */
  body.kragor-desktop-web:not(.is-native-app) .modal-backdrop {
    padding: 20px;
  }

  body.kragor-desktop-web:not(.is-native-app) .modal-card {
    width: min(760px, 90vw);
    max-width: min(820px, 90vw);
    max-height: min(88dvh, 840px);
    border-radius: 18px;
  }

  body.kragor-desktop-web:not(.is-native-app) .settings-modal-card {
    width: min(580px, 90vw);
    max-width: 580px;
    height: min(86dvh, 720px);
    max-height: 88dvh;
  }

  /* Quests-Modal auf PC: großzügiges 2-Spalten-Grid statt gestreckter 1-Spalten-Balken */
  body.kragor-desktop-web:not(.is-native-app) .quests-modal-card {
    width: min(820px, 90vw);
    max-width: 820px;
    height: min(88dvh, 780px);
    max-height: 88dvh;
  }

  body.kragor-desktop-web:not(.is-native-app) .quests-modal-card .quest-section-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  body.kragor-desktop-web:not(.is-native-app) .quests-modal-card .quest-row {
    margin: 0;
    height: 100%;
  }

  body.kragor-desktop-web:not(.is-native-app) .quests-modal-card .daily-reward-pinned {
    max-width: 100%;
  }

  /* Profil- & Freundes-Overlay */
  body.kragor-desktop-web:not(.is-native-app) .prof-modal {
    width: min(640px, 90vw);
    max-width: 640px;
    height: min(88dvh, 780px);
    max-height: 88dvh;
  }

  /* Glücksrad-Modal */
  body.kragor-desktop-web:not(.is-native-app) .lw-modal-wrap {
    max-width: 560px;
    margin: 0 auto;
  }

  /* Karten- & Relikt-Zoom */
  body.kragor-desktop-web:not(.is-native-app) .card-zoom-card {
    width: min(460px, 88vw);
    max-width: 460px;
    max-height: min(88dvh, 780px);
  }

  /* ==========================================================================
     11. KOMPAKTE LAPTOP-HÖHEN (z. B. 1280×720, 1366×768)
     ========================================================================== */
  @media (max-height: 800px) {
    body.kragor-desktop-web:not(.is-native-app) .hub-topbar,
    body.kragor-desktop-web:not(.is-native-app) .subview-header {
      margin-top: 6px;
      padding: 7px 14px;
    }

    body.kragor-desktop-web:not(.is-native-app) .aaa-bottom-nav {
      margin: 4px auto 6px;
      padding: 5px 10px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout {
      gap: 4px 14px;
      padding: 6px 12px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-top-hud {
      padding: 4px 10px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-hero-hud-strip {
      padding: 5px 12px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-board-wrap {
      max-height: min(50dvh, 46vw, 420px);
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout.is-citadel-3x4 > .battle-board-wrap {
      max-height: min(52dvh, 40vw, 430px);
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom {
      padding: 6px 12px 7px;
      gap: 5px 12px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom .battle-hand .mc-card-compact .mc-card-art {
      height: 44px;
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout > .battle-bottom #btn-resolve-round {
      padding: 7px 14px !important;
      font-size: 12.5px !important;
    }

    body.kragor-desktop-web:not(.is-native-app) .citadel-board-frame {
      width: min(64dvh, 42vw, 480px);
      height: min(64dvh, 42vw, 480px);
    }
  }

  /* ==========================================================================
     12. SCHMALERE DESKTOP-FENSTER (960px – 1220px)
     ========================================================================== */
  @media (max-width: 1220px) {
    body.kragor-desktop-web:not(.is-native-app) .pack-store-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.kragor-desktop-web:not(.is-native-app) .iap-store-grid.is-diamonds-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.kragor-desktop-web:not(.is-native-app) .trader-book-grid,
    body.kragor-desktop-web:not(.is-native-app) .item-trader-grid,
    body.kragor-desktop-web:not(.is-native-app) .wb-cards-grid,
    body.kragor-desktop-web:not(.is-native-app) .alchemy-cards-grid,
    body.kragor-desktop-web:not(.is-native-app) .altar-books-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.kragor-desktop-web:not(.is-native-app) .battle-layout {
      grid-template-columns: 205px minmax(0, 1fr) 48px;
      gap: 6px 12px;
    }
  }

  /* ==========================================================================
     13. ULTRA-WIDE / FULL-HD+ (>= 1600px) — ELEGANTES SPALTEN-PLUS OHNE STRECKEN
     ========================================================================== */
  @media (min-width: 1600px) {
    body.kragor-desktop-web:not(.is-native-app) .cards-grid {
      grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    }

    body.kragor-desktop-web:not(.is-native-app) .iap-store-grid.is-diamonds-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
