/* VEYDRIS Stufe 2 + Rassen (02.11.2026): nutzt die Unterklassen-Tafel (subclass.css), hier nur Rassen-Raster.
   Gleiche Ebene vhq und gleiche :not-Kette wie subclass.css, eine Klasse mehr gewinnt sauber. */
@layer vhq {
  html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-paths.race-paths { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .race-card .subclass-path__body > p { font-size: 12px !important; }
  @media (max-width: 1100px) {
    html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-paths.race-paths { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  }
  @media (max-width: 760px) {
    html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-paths.race-paths { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
    /* Handy: Volk-Text weglassen, damit sechs Karten nicht die halbe Seite füllen */
    html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .race-card .subclass-path__body > p { display: none !important; }
  }
}

/* Völker 2 (02.11.2026): Auswahlfenster + Volk im Profil. Eigene Klassen, darum ohne Ebene und ohne !important. */
.race-pick-layer { position: fixed; inset: 0; z-index: 9150; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 9, .78); backdrop-filter: blur(5px); overflow: auto; }
.race-pick-layer .race-pick { width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 22px 18px; border: 1px solid rgba(216, 178, 106, .55); border-radius: 14px; background: linear-gradient(180deg, #1b1712, #0e0c0a); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 230, 180, .12); color: #efe4cf; text-align: center; }
.race-pick-layer .race-pick .eyebrow { display: block; color: #d8b26a; letter-spacing: .2em; font-size: 11px; }
.race-pick-layer .race-pick h2 { margin: 6px 0 8px; font-family: Cinzel, Georgia, serif; font-size: clamp(20px, 3vw, 28px); color: #ffe7b0; }
.race-pick-layer .race-pick > p { margin: 0 auto 16px; max-width: 640px; font-size: 13px; line-height: 1.5; color: #cdbfa6; }
.race-pick-layer .race-pick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.race-pick-layer .race-pick__card { display: grid; justify-items: center; gap: 3px; padding: 14px 10px 12px; border: 1px solid color-mix(in srgb, var(--sc) 45%, #3a2f22); border-radius: 12px; background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--sc) 22%, transparent), transparent 65%), #15120e; color: #efe4cf; cursor: pointer; font: inherit; transition: transform .15s ease, border-color .15s ease; }
.race-pick-layer .race-pick__card:hover, .race-pick-layer .race-pick__card:focus-visible { transform: translateY(-2px); border-color: var(--sc); outline: none; }
.race-pick-layer .race-pick__figure { position: relative; display: block; width: 120px; height: 168px; }
.race-pick-layer .race-pick__hero { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .7)) drop-shadow(0 0 14px color-mix(in srgb, var(--sc) 30%, transparent)); }
.race-pick-layer .race-pick__crest { position: absolute; right: -14px; bottom: 4px; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .8)); }
.race-pick-layer .race-pick__card small { color: var(--sc); letter-spacing: .14em; font-size: 10px; text-transform: uppercase; }
.race-pick-layer .race-pick__card b { font-family: Cinzel, Georgia, serif; font-size: 18px; color: #fff1d0; }
.race-pick-layer .race-pick__card em { font-style: normal; font-size: 11px; color: #cdbfa6; text-transform: uppercase; letter-spacing: .08em; }
.race-pick-layer .race-pick__card span { margin-top: 4px; font-size: 12px; font-weight: 700; color: #ffd98a; }
.race-pick-layer .race-pick__actions { margin-top: 14px; }
@media (max-width: 760px) {
  .race-pick-layer { padding: 10px; }
  .race-pick-layer .race-pick { padding: 16px 12px 12px; }
  .race-pick-layer .race-pick > p { font-size: 12px; margin-bottom: 10px; }
  .race-pick-layer .race-pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .race-pick-layer .race-pick__card { padding: 10px 6px; }
  .race-pick-layer .race-pick__figure { width: 84px; height: 118px; }
  .race-pick-layer .race-pick__crest { width: 30px; height: 30px; right: -10px; }
  .race-pick-layer .race-pick__card b { font-size: 15px; }
}
/* Profil: in Ebene vp2, deren !important schlägt sonst alles Ungeschichtete; gleiche Kette wie profile-cinema.css */
@layer vp2 {
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 2px 8px !important; width: fit-content !important; max-width: 100% !important; margin: 4px 0 2px !important; padding: 4px 14px 4px 4px !important; border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent) !important; border-radius: 24px !important; background: rgba(10, 8, 6, .62) !important; font-size: 12px !important; line-height: 1.1 !important; }
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race .vp-race__crest { display: block !important; flex: none !important; width: 38px !important; height: 38px !important; background-position: center !important; background-size: contain !important; background-repeat: no-repeat !important; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .65)) !important; opacity: 1 !important; visibility: visible !important; }
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race .vp-race__text { display: grid !important; gap: 1px !important; text-align: left !important; }
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race .vp-race__text small { display: block !important; font-size: 9px !important; letter-spacing: .16em !important; color: #bfae8f !important; text-transform: uppercase !important; }
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race .vp-race__text b { display: block !important; font-family: Cinzel, Georgia, serif !important; font-size: 15px !important; font-weight: 700 !important; color: var(--sc) !important; text-transform: none !important; }
  #view .public-profile.pc-cinema:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5):not(#pc6):not(#pc7):not(#pc8):not(#pc9):not(#pc10):not(#pc11):not(#pc12):not(#pc13):not(#pc14):not(#pc15):not(#pc16) .public-profile-identity .vp-race .vp-race__kin { display: block !important; margin-top: 2px !important; font-style: normal !important; font-size: 10px !important; letter-spacing: .08em !important; color: #e9d9b6 !important; text-transform: uppercase !important; }
}

/* Völker 3 (02.11.2026): Heldenkopf im runden Rahmen der Völker-Karten, Wappen als Plakette. Gleiche Ebene + Kette wie subclass.css, eine Klasse mehr. */
@layer vhq {
  html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-path.race-card .subclass-path__sigil { overflow: visible !important; }
  html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-path.race-card .subclass-path__sigil .race-card__hero { position: absolute !important; inset: 3px !important; z-index: 1 !important; display: block !important; border-radius: 50% !important; background-repeat: no-repeat !important; background-size: 230% auto !important; background-position: 50% var(--face, 9%) !important; box-shadow: inset 0 0 12px rgba(0, 0, 0, .55) !important; }
  html body:not(#sc1):not(#sc2):not(#sc3):not(#sc4):not(#sc5) #view .subclass-path.race-card .subclass-path__sigil img.race-card__crest { position: absolute !important; z-index: 2 !important; right: -8px !important; bottom: -6px !important; width: 38% !important; height: 38% !important; object-fit: contain !important; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .85)) !important; }
}

/* Volk-Wappen auf der Heldenseite (3.11.2026) */
#view .vx-char .hero-race-tag{display:inline-flex !important;align-items:center;gap:7px;margin:4px 0 2px !important;padding:0 !important;line-height:1}
#view .vx-char .hero-race-tag img{width:24px !important;height:24px !important;max-width:24px !important;min-width:24px;object-fit:contain;flex:0 0 24px;filter:drop-shadow(0 0 4px rgba(255,210,120,.5))}
#view .vx-char .hero-race-tag b{font:600 11px/1 Cinzel,serif !important;letter-spacing:.16em;color:#e9d29a !important;text-transform:uppercase}
