/* HorosCode — Unterstützte Geräte für degoogelte Handys (immersive HUD) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dg-lavender: #d1b3ff;
  --dg-purple: #a855f7;
  --dg-orange: #ff8c00;
  --dg-cyan: #00d4ff;
  --dg-green: #22c55e;
  --dg-amber: #f59e0b;
  --dg-red: #ef4444;
  --dg-bg: #0a050f;
  --dg-card: rgba(14, 8, 24, 0.86);
  --dg-border: rgba(209, 179, 255, 0.28);
  --dg-border-strong: rgba(255, 140, 0, 0.42);
  --dg-text: #f0e8fc;
  --dg-muted: #9a8fb8;
  --dg-gradient: linear-gradient(135deg, var(--dg-lavender), var(--dg-purple), var(--dg-orange));
  --dg-radius: 16px;
  --dg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body.dg-page {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dg-bg);
  color: var(--dg-text);
  line-height: 1.65;
  overflow-x: hidden;
}

.dg-skip {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--dg-purple);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.dg-skip:focus { top: 0; outline: 2px solid var(--dg-orange); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--dg-lavender); }

.dg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dg-layer--base {
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(138, 43, 226, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(255, 140, 0, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 35% at 12% 60%, rgba(209, 179, 255, 0.12), transparent 45%),
    var(--dg-bg);
}

.dg-layer--dashboard,
.dg-layer--deep-tech,
.dg-layer--darkweb,
.dg-layer--market {
  background-image: var(--dg-bg-img);
  opacity: 0;
  mix-blend-mode: screen;
  animation: dgLayerPulse 26s ease-in-out infinite;
}

.dg-layer--dashboard {
  opacity: 0.15;
  --dg-bg-img: url('../assets/brand/pixel-geraete/bg-dashboard.png');
  background-position: center 28%;
  background-size: 115% auto;
  animation-delay: 0s;
}
.dg-layer--deep-tech {
  opacity: 0.14;
  --dg-bg-img: url('../assets/brand/pixel-geraete/bg-deep-tech.png');
  background-position: center top;
  background-size: 100% auto;
  animation-delay: -8s;
}
.dg-layer--darkweb {
  opacity: 0.11;
  --dg-bg-img: url('../assets/brand/pixel-geraete/bg-darkweb.png');
  background-position: left center;
  background-size: 52% auto;
  animation-delay: -16s;
}
.dg-layer--market {
  opacity: 0.1;
  --dg-bg-img: url('../assets/brand/pixel-geraete/bg-market.png');
  background-position: right center;
  background-size: 48% auto;
  animation-delay: -22s;
}

@keyframes dgLayerPulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  33% { opacity: 0.17; transform: scale(1.02); }
  66% { opacity: 0.11; transform: scale(1.01); }
}

.dg-layer--grid {
  background-image:
    linear-gradient(rgba(209, 179, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 179, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 15%, transparent 78%);
}

.dg-layer--vignette {
  background: radial-gradient(ellipse 72% 68% at 50% 46%, transparent 30%, rgba(6, 3, 12, 0.94) 100%);
}

.dg-layer--scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.045) 3px,
    rgba(0, 0, 0, 0.045) 6px
  );
  opacity: 0.32;
}

.dg-hud {
  position: absolute;
  padding: 6px 12px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(209, 179, 255, 0.58);
  border: 1px solid rgba(209, 179, 255, 0.22);
  border-radius: 4px;
  background: rgba(10, 5, 18, 0.5);
}
.dg-hud--tl { top: 72px; left: 16px; }
.dg-hud--tr { top: 72px; right: 16px; color: rgba(255, 140, 0, 0.7); border-color: rgba(255, 140, 0, 0.28); }
.dg-hud--bl { bottom: 56px; left: 16px; }
.dg-hud--br { bottom: 56px; right: 16px; }

.dg-header {
  position: relative;
  z-index: 10;
  padding: 14px 0;
  border-bottom: 1px solid var(--dg-border);
  background: rgba(10, 5, 15, 0.78);
  backdrop-filter: blur(14px);
}
.dg-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dg-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}
.dg-logo strong {
  background: var(--dg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--dg-muted);
}
.dg-nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--dg-border-strong);
  color: var(--dg-orange) !important;
  font-weight: 600;
}
.dg-nav-cta:hover {
  background: rgba(255, 140, 0, 0.12);
  color: var(--dg-text) !important;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.dg-main {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 120px);
  padding: 40px 24px 64px;
}

.dg-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.dg-stage-glow {
  position: absolute;
  inset: -48px -24px;
  background: radial-gradient(ellipse 75% 55% at 50% 35%, rgba(168, 85, 247, 0.28), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.dg-hero-banner {
  display: block;
  max-width: 100%;
  margin: 0 auto 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dg-border);
  box-shadow:
    0 0 0 1px rgba(255, 140, 0, 0.1),
    0 0 32px rgba(138, 43, 226, 0.3),
    0 0 56px rgba(255, 140, 0, 0.12);
}
.dg-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(38vw, 280px);
  object-fit: cover;
  object-position: center;
}

.dg-card {
  position: relative;
  padding: clamp(28px, 5vw, 40px);
  border-radius: var(--dg-radius);
  border: 1px solid var(--dg-border-strong);
  background: var(--dg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 140, 0, 0.08),
    0 0 48px rgba(138, 43, 226, 0.24),
    0 24px 64px rgba(0, 0, 0, 0.55);
}
.dg-card::before,
.dg-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--dg-orange);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}
.dg-card::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.dg-card::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.dg-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.dg-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(209, 179, 255, 0.3);
  color: var(--dg-lavender);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dg-card h1 {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.dg-gradient {
  background: var(--dg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dg-lead {
  color: var(--dg-muted);
  font-size: 1rem;
  max-width: 58ch;
  margin: 0 auto;
}

.dg-rom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.dg-rom-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dg-border);
  background: rgba(12, 6, 22, 0.7);
  color: var(--dg-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dg-transition), color var(--dg-transition), box-shadow var(--dg-transition);
}
.dg-rom-filter:hover {
  border-color: var(--dg-border-strong);
  color: var(--dg-lavender);
}
.dg-rom-filter[aria-pressed="true"] {
  border-color: var(--dg-orange);
  color: var(--dg-text);
  background: rgba(255, 140, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.18);
}

.dg-checker {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--dg-border);
  background: rgba(10, 5, 18, 0.72);
}

.dg-checker-row {
  margin-bottom: 18px;
}
.dg-checker-row:last-child { margin-bottom: 0; }

.dg-checker-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.dg-checker-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(209, 179, 255, 0.28);
  background: rgba(16, 10, 28, 0.92);
  color: var(--dg-text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--dg-transition), box-shadow var(--dg-transition);
}
.dg-checker-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dg-checker-select:hover:not(:disabled),
.dg-checker-select:focus-visible {
  border-color: var(--dg-purple);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
  outline: none;
}

.dg-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}
.dg-result[hidden] { display: none; }
.dg-result--supported {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--dg-green);
}
.dg-result--limited {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--dg-amber);
}
.dg-result--unsupported {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--dg-red);
}
.dg-result--redirect {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(209, 179, 255, 0.35);
  color: var(--dg-lavender);
}

.dg-redirect-cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dg-purple), var(--dg-orange));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--dg-transition), box-shadow var(--dg-transition);
}
.dg-redirect-cta[hidden] { display: none; }
.dg-redirect-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 140, 0, 0.35);
  color: #fff;
}

.dg-rom-meta {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--dg-border);
  background: rgba(8, 4, 16, 0.55);
}
.dg-rom-meta[hidden] { display: none; }

.dg-rom-meta-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.dg-rom-meta-icon { font-size: 1.75rem; line-height: 1; }
.dg-rom-meta-name {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 8px;
}
.dg-rom-meta-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid var(--dg-border-strong);
  color: var(--dg-orange);
}
.dg-rom-meta-summary {
  margin-top: 6px;
  color: var(--dg-muted);
  font-size: 0.9rem;
}
.dg-rom-meta-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--dg-muted);
  margin-bottom: 12px;
}
.dg-rom-meta-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(209, 179, 255, 0.08);
}
.dg-rom-meta-list li:last-child { border-bottom: none; }
.dg-rom-meta-list strong { color: var(--dg-text); }
.dg-rom-official {
  font-size: 0.82rem;
  color: var(--dg-muted);
}
.dg-rom-official a {
  color: var(--dg-cyan);
  text-decoration: underline;
}
.dg-rom-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.85rem;
  color: var(--dg-amber);
}
.dg-rom-redirect {
  margin-top: 12px;
  font-size: 0.9rem;
}
.dg-rom-redirect a {
  color: var(--dg-orange);
  font-weight: 600;
  text-decoration: underline;
}

.dg-note {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--dg-border);
  font-size: 0.88rem;
  color: var(--dg-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.dg-note a { color: var(--dg-cyan); text-decoration: underline; }
.dg-note strong { color: var(--dg-text); }

.dg-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform var(--dg-transition), box-shadow var(--dg-transition);
}
.dg-btn--primary {
  background: var(--dg-gradient);
  color: #fff;
  border: none;
}
.dg-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 140, 0, 0.35);
  color: #fff;
}
.dg-btn--outline {
  border: 1.5px solid var(--dg-border);
  color: var(--dg-text);
  background: transparent;
}
.dg-btn--outline:hover {
  border-color: var(--dg-orange);
  color: var(--dg-lavender);
  box-shadow: 0 0 20px rgba(209, 179, 255, 0.15);
}

.dg-footer {
  position: relative;
  z-index: 10;
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--dg-muted);
  border-top: 1px solid var(--dg-border);
  background: rgba(6, 3, 12, 0.8);
}
.dg-footer a { color: var(--dg-cyan); }

@media (max-width: 768px) {
  .dg-hud { display: none; }
  .dg-nav { font-size: 0.82rem; }
  .dg-rom-filters { gap: 6px; }
  .dg-rom-filter { font-size: 0.76rem; padding: 7px 11px; }
  .dg-card-actions { flex-direction: column; }
  .dg-btn { width: 100%; }
  .dg-layer--darkweb,
  .dg-layer--market { display: none; }
  .dg-hero-banner img { max-height: min(44vw, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dg-layer--dashboard,
  .dg-layer--deep-tech,
  .dg-layer--darkweb,
  .dg-layer--market {
    animation: none;
    opacity: 0.12;
  }
}
