/* ============================================================
   PRIV-ANGEL Coming Soon – Landing Styles
   Niederrhein-Vibe: tiefblau, türkis, Hechtsilhouette, Wellen
   ============================================================ */

.hidden { display: none !important; }

:root {
  --c-deep: #06121d;
  --c-water-1: #0a1828;
  --c-water-2: #0e2942;
  --c-cyan: #2dd4bf;
  --c-cyan-dim: #0e7c70;
  --c-amber: #f59e0b;
  --c-text: #eaf3fb;
  --c-text-dim: #93a8c2;
  --c-text-faint: #5b6d87;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-surface-strong: rgba(255, 255, 255, 0.07);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(45, 212, 191, 0.3);

  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.15);
  --radius-md: 12px;
  --radius-lg: 18px;
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--c-deep);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}

/* ============================================================
   Hintergrund
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(14, 124, 112, 0.20) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-water-1) 50%, var(--c-water-2) 100%);
}

.bg-pike {
  position: absolute;
  top: 8%;
  right: -10%;
  width: 70%;
  max-width: 900px;
  color: rgba(45, 212, 191, 0.04);
  transform: rotate(-8deg);
}

.bg-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 280px;
  display: block;
}

.wave {
  fill: var(--c-cyan);
  animation: wave-slide 18s linear infinite;
}
.wave-1 { opacity: 0.08; animation-duration: 14s; }
.wave-2 { opacity: 0.12; animation-duration: 22s; animation-direction: reverse; }
.wave-3 { opacity: 0.20; animation-duration: 30s; }

@keyframes wave-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50px); }
}

/* ============================================================
   Page Layout
   ============================================================ */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(48px + var(--sa-top)) 24px calc(80px + var(--sa-bottom));
  position: relative;
  z-index: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding: 48px 0 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.title {
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.title-l1 {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 24px rgba(45, 212, 191, 0.25);
}
.title-l1 .amp {
  color: var(--c-amber);
  -webkit-text-fill-color: var(--c-amber);
  margin: 0 0.1em;
  font-weight: 400;
}
.title-l2 {
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.3em;
  color: var(--c-text-dim);
  font-weight: 400;
  margin-top: 4px;
}

.subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--c-text);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.dates {
  color: var(--c-text-dim);
  font-size: clamp(14px, 1.8vw, 16px);
  margin-bottom: 48px;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  max-width: 560px;
  margin: 0 auto;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vw, 24px) clamp(8px, 1.5vw, 12px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.cd-cell:hover {
  border-color: var(--c-border-strong);
  background: var(--c-surface-strong);
  transform: translateY(-2px);
}
.cd-num {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--c-text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cd-lbl {
  font-size: clamp(10px, 1.5vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-faint);
  font-weight: 600;
}
.countdown.done .cd-cell {
  border-color: var(--c-amber);
  color: var(--c-amber);
}
.countdown.done .cd-num { color: var(--c-amber); }

/* ============================================================
   Section
   ============================================================ */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  margin: 80px 0 32px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--c-cyan);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ============================================================
   Crew
   ============================================================ */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.crew-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.crew-card-link:hover .crew-card { transform: translateY(-4px); border-color: var(--c-border-strong); box-shadow: var(--shadow-glow); background: var(--c-surface-strong); }
.crew-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.crew-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-glow);
  background: var(--c-surface-strong);
}

.avatar {
  width: 120px; height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan-dim) 0%, var(--c-water-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--c-text);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--c-border);
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar-initial {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.03em;
}
.avatar-fallback .avatar-initial { display: flex; }

.crew-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.crew-role {
  color: var(--c-text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Hunt – Was uns erwartet
   ============================================================ */
.hunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.hunt-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hunt-icon {
  display: inline-block;
  font-size: 32px;
  margin-bottom: 12px;
}
.hunt-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hunt-card p {
  font-size: 14px;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-faint);
  font-size: 14px;
}
.footer-small {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 600px) {
  .page { padding-top: calc(24px + var(--sa-top)); }
  .hero { padding: 24px 0 48px; }
  .section-title { margin: 60px 0 24px; }
  .crew-grid { gap: 12px; }
  .crew-card { padding: 24px 16px 20px; }
  .avatar { width: 96px; height: 96px; font-size: 44px; }
  .bg-pike { top: 4%; width: 130%; right: -50%; }
}

@media (max-width: 400px) {
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cd-cell { padding: 12px 4px; }
}

/* Light Mode unterstützen wir hier bewusst nicht – Dunkel ist Teil der Stimmung. */

/* ============================================================
   Contest-Teaser (Spoiler über die Crew Predator Challenge)
   ============================================================ */
.contest-teaser {
  margin: 60px auto 24px;
  max-width: 720px;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(236,72,153,0.18), transparent 70%),
    linear-gradient(135deg, rgba(15,23,42,0.85), rgba(2,6,23,0.85));
  border: 1px solid rgba(236,72,153,0.35);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contest-teaser::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ec4899, transparent);
}
.ct-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(236,72,153,0.15);
  border: 1px solid rgba(236,72,153,0.5);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #f9a8d4;
  font-weight: 700;
  margin-bottom: 16px;
}
.ct-tagline {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.ct-sub {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.5;
}
.ct-species {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}
.ct-fish {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}
.ct-fish:hover {
  transform: translateY(-2px);
  border-color: rgba(236,72,153,0.4);
}
.ct-emoji {
  font-size: 28px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.ct-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}
.ct-meta {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}
.ct-foot {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .contest-teaser { padding: 24px 18px; margin: 40px 12px 20px; }
  .ct-tagline { font-size: 22px; }
  .ct-species { grid-template-columns: repeat(2, 1fr); }
  .ct-emoji { font-size: 24px; }
  .ct-foot { font-size: 11px; }
}

/* ============================================================
   Live-Tabelle (erscheint nach Contest-Start)
   ============================================================ */
.live-board {
  margin: 24px auto 0;
  max-width: 720px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45,212,191,0.15), transparent 70%),
    linear-gradient(135deg, rgba(2,44,34,0.85), rgba(2,6,23,0.85));
  border: 1px solid rgba(45,212,191,0.4);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 0 24px rgba(45,212,191,0.15) inset;
}
.lb-status-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.lb-live-pill {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.5);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  animation: lb-pulse 2s ease-in-out infinite;
}
@keyframes lb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
.lb-elapsed {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lb-refresh {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.lb-refresh:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.lb-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.lb-table th {
  background: rgba(255,255,255,0.05);
  padding: 8px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lb-table th:nth-child(2) { text-align: left; }
.lb-th-pts { color: #fde68a !important; }
.lb-table td {
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.lb-rank {
  font-size: 18px;
  font-weight: 800;
  width: 50px;
}
.lb-name-cell {
  display: flex; align-items: center; gap: 8px;
  text-align: left !important;
  font-weight: 700;
}
.lb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.15);
  object-fit: cover;
}
.lb-sp-emoji { display: block; font-size: 18px; }
.lb-sp-count {
  display: block;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.lb-points {
  font-weight: 800;
  font-size: 18px;
  color: #fde68a;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  padding-right: 12px !important;
}
.lb-total {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.lb-updated {
  margin: 8px 0 0;
  font-size: 10px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.lb-loading, .lb-error {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 32px 16px;
  margin: 0;
}
.lb-error { color: #fca5a5; }

@media (max-width: 600px) {
  .live-board { margin: 24px 12px 0; padding: 16px; }
  .lb-table { overflow-x: auto; }
  .lb-table table { font-size: 12px; min-width: 380px; }
  .lb-rank { width: 38px; font-size: 14px; }
  .lb-avatar { width: 24px; height: 24px; }
  .lb-sp-emoji { font-size: 14px; }
  .lb-points { font-size: 14px; }
}
