/* ============================================================
   daddeln.fun — main.css
   Kompaktes, modernes Design | Oswald (Display) + Inter (Body)
   Dunkles Lila/Gold-Theme, schlicht und aufgeräumt
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg-tile:   #12121c;
  --bg-elev:   #181826;
  --border:    rgba(255,255,255,0.07);
  --border-hl: rgba(124,58,237,0.4);

  --purple:    #7c3aed;
  --purple2:   #9d5cff;
  --neon:      #b57bee;
  --blue:      #3b82f6;
  --gold:      #f59e0b;
  --green:     #22c55e;
  --red:       #ef4444;
  --discord:   #5865f2;
  --twitch:    #9147ff;

  --text:      #e8eaf0;
  --muted:     #6b7088;

  --radius:    10px;
  --radius-lg: 14px;
  --font-d:    'Oswald', sans-serif;
  --font-b:    'Inter', sans-serif;
  --tr:        0.18s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--font-d); font-weight: 600; letter-spacing: 0.02em; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem; transition: all var(--tr); white-space: nowrap; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 0 0 rgba(124,58,237,0); }
.btn-primary:hover { background: #6d28d9; transform: translateY(-1px); }
.btn-twitch { background: linear-gradient(135deg, #6d28d9, var(--twitch)); color: #fff; }
.btn-twitch:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hl); color: var(--neon); }
.btn-sm { padding: 6px 13px; font-size: 0.8rem; }
.btn-danger { background: rgba(239,68,68,0.15); color: #fc7171; border: 1px solid rgba(239,68,68,0.3); }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 100; height: 58px; background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.nav-logo { display: flex; align-items: center; gap: 7px; font-family: var(--font-d); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0; }
.nav-logo .dot { color: var(--purple2); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; margin-left: 8px; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { padding: 6px 11px; border-radius: 7px; font-size: 0.84rem; font-weight: 500; color: var(--muted);
  transition: all var(--tr); white-space: nowrap; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-live { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); font-size: 0.74rem; font-weight: 700;
  color: #fc7171; letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; }
.live-dot { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.nav-ff { display: flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 7px;
  background: rgba(124,58,237,0.13); border: 1px solid rgba(124,58,237,0.3); font-size: 0.8rem; font-weight: 600;
  color: var(--neon); flex-shrink: 0; }
.nav-ff:hover { background: rgba(124,58,237,0.22); }
.nav-login { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 7px;
  background: var(--purple); color: #fff; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }
.nav-login:hover { background: #6d28d9; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 6px; margin-left: auto; }
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.user-pill { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: 999px; flex-shrink: 0; }
.user-pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.user-pill-name { font-size: 0.8rem; font-weight: 600; }
.user-pill-kackis { font-size: 0.72rem; color: var(--gold); font-weight: 700; }

/* ── HERO (kompakt) ── */
.hero { position: relative; padding: 64px 20px 56px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 60%); }
.hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple2); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #fff 0%, #d4b4ff 45%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.hero h1 .dot { color: var(--purple2); -webkit-text-fill-color: var(--purple2); }
.hero-sub { color: var(--muted); font-size: 0.95rem; max-width: 440px; margin: 0 auto 22px; line-height: 1.6; }
.live-banner { display: inline-flex; align-items: center; gap: 10px; background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3); border-radius: 999px; padding: 8px 18px; margin-bottom: 20px; font-size: 0.85rem; font-weight: 600; }
.live-banner a { color: #fc7171; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── DIVIDER / SECTION ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-hl), transparent); opacity: 0.5; margin: 0 20px; }
.section { max-width: 1140px; margin: 0 auto; padding: 52px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple2); margin-bottom: 4px; }
.section-title { font-size: 1.5rem; letter-spacing: 0.01em; }
.section-sub { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

/* ── GRID CARDS (Stream/Social/Community Kacheln) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card-link { position: relative; background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; display: flex; align-items: center; gap: 14px; transition: all var(--tr); overflow: hidden; }
.card-link:hover { border-color: var(--accent, var(--purple)); transform: translateY(-2px); background: var(--bg-elev); }
.card-icon { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--purple)) 16%, transparent); font-size: 1.4rem; }
.card-body { flex: 1; min-width: 0; }
.card-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.card-desc { font-size: 0.78rem; color: var(--muted); }
.card-arr { color: var(--muted); transition: var(--tr); flex-shrink: 0; }
.card-link:hover .card-arr { color: var(--accent, var(--purple)); transform: translateX(2px); }
.card-live-tag { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 5px; letter-spacing: 0.05em; }

/* ── TILES (Feature-Kacheln mit Beschreibung) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 8px; transition: all var(--tr); position: relative; }
.tile:hover { border-color: var(--accent, var(--purple)); transform: translateY(-2px); }
.tile-icon { font-size: 1.8rem; }
.tile-title { font-size: 0.98rem; font-weight: 700; }
.tile-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; flex: 1; }
.tile-cta { font-size: 0.78rem; font-weight: 700; color: var(--accent, var(--purple)); }
.tile-badge { position: absolute; top: 14px; right: 14px; font-size: 0.6rem; font-weight: 800; padding: 2px 8px;
  border-radius: 6px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── STREAM EMBED ── */
.stream-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 16px; }
.stream-embed, .stream-chat { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #000; }
.stream-embed iframe { width: 100%; min-height: 400px; border: none; display: block; }
.stream-chat { height: 440px; }
.stream-chat iframe { width: 100%; height: 100%; border: none; }
.kackis-tracker { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius);
  padding: 12px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.86rem; }
.kackis-tracker strong { color: var(--gold); }
.login-cta { text-align: center; padding: 22px; background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 14px; }
.login-cta p { margin-bottom: 12px; color: var(--muted); font-size: 0.88rem; }

/* ── LEADERBOARD ── */
.lb-table { background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.02); }
.lb-rank { font-family: var(--font-d); font-size: 1.05rem; text-align: center; color: var(--muted); }
.lb-rank.g { color: var(--gold); } .lb-rank.s { color: #c0cad6; } .lb-rank.b { color: #cd7f32; }
.lb-user { display: flex; align-items: center; gap: 9px; }
.lb-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.lb-name { font-weight: 600; font-size: 0.88rem; }
.lb-role { font-size: 0.62rem; color: var(--neon); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.lb-kackis { font-family: var(--font-d); font-size: 1rem; color: var(--gold); }

/* ── GIVEAWAYS ── */
.gw-card { background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; }
.gw-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.gw-title { font-size: 1.05rem; font-weight: 700; }
.gw-timer { font-size: 0.76rem; color: var(--muted); }
.gw-desc { color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }
.prize-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: var(--bg-elev);
  border-radius: 8px; border-left: 3px solid var(--r, var(--purple)); margin-bottom: 6px; }
.prize-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r, var(--purple)); flex-shrink: 0; }
.prize-name { font-weight: 600; font-size: 0.83rem; }
.prize-chance { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.rarity-blue{--r:#3b82f6}.rarity-purple{--r:#7c3aed}.rarity-pink{--r:#ec4899}.rarity-red{--r:#ef4444}.rarity-gold{--r:#f59e0b}
.gw-participants { display: flex; margin: 12px 0; }
.gw-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg-tile); margin-left: -7px; object-fit: cover; }
.gw-avatar:first-child { margin-left: 0; }
.ticket-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ticket-input { width: 64px; padding: 7px 9px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: inherit; }

/* ── TOURNAMENTS ── */
.tour-card { background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
  border-top: 2px solid transparent; transition: var(--tr); }
.tour-card:hover { border-top-color: var(--purple); transform: translateY(-2px); }
.tour-status { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.st-upcoming { background: rgba(107,116,136,0.18); color: var(--muted); }
.st-registration { background: rgba(34,197,94,0.14); color: var(--green); }
.st-active { background: rgba(239,68,68,0.14); color: #fc7171; }
.st-finished { background: rgba(107,116,136,0.1); color: var(--muted); }
.tour-title { font-size: 0.98rem; font-weight: 700; margin-bottom: 3px; }
.tour-game { color: var(--neon); font-weight: 600; font-size: 0.78rem; }
.tour-meta { font-size: 0.76rem; color: var(--muted); line-height: 1.8; margin-top: 8px; }

/* ── NEWS ── */
.news-card { background: var(--bg-tile); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--tr); }
.news-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.news-card-img { width: 100%; height: 140px; object-fit: cover; background: var(--bg-elev); }
.news-card-body { padding: 16px; }
.news-card h3 { font-size: 0.94rem; margin-bottom: 5px; }
.news-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* ── MODALS (FF + Case-Opening) ── */
.overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(10,10,15,0.94);
  backdrop-filter: blur(14px); align-items: center; justify-content: center; padding: 16px; }
.overlay.open { display: flex; }
.modal { background: var(--bg-elev); border: 1px solid var(--border-hl); border-radius: var(--radius-lg);
  padding: 32px 26px; max-width: 420px; width: 100%; text-align: center; position: relative; }
.modal-wide { max-width: 640px; }
.modal-close { position: absolute; top: 12px; right: 12px; color: var(--muted); font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.modal-icon { font-size: 2.6rem; margin-bottom: 10px; }
.modal h3 { font-size: 1.2rem; margin-bottom: 6px; }
.modal p { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.55; }
.form-row { display: flex; gap: 8px; }
.input { flex: 1; padding: 9px 12px; background: var(--bg-tile); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 0.88rem; font-family: inherit; }
.input:focus { outline: none; border-color: var(--purple2); }
.error-msg { color: #f87171; font-size: 0.78rem; margin-top: 10px; font-weight: 600; }

.ff-unlocked { background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.18); border-radius: var(--radius-lg); padding: 22px; }
.ff-unlocked-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ff-badge-ok { background: rgba(34,197,94,0.14); color: var(--green); border: 1px solid rgba(34,197,94,0.3);
  padding: 3px 11px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; margin-left: auto; }

/* Case-Opening */
.case-title { font-size: 1.15rem; margin-bottom: 18px; color: var(--neon); }
.case-track-wrap { position: relative; overflow: hidden; border-radius: 9px; border: 2px solid var(--border-hl); background: var(--bg); }
.case-arrow { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--neon); }
.case-track { display: flex; gap: 4px; padding: 10px; width: max-content; transition: transform 6s cubic-bezier(.25,.05,.08,1); }
.case-item { width: 100px; height: 100px; border-radius: 9px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; text-align: center; padding: 6px; border: 2px solid transparent; }
.case-item.hl { border-color: var(--neon); }
.case-result { text-align: center; padding: 20px 0 0; }
.case-result img { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--gold); }
.prize-badge { display: inline-block; padding: 4px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; margin-top: 8px; border: 1px solid currentColor; }

/* ── FOOTER ── */
.footer { text-align: center; padding: 36px 20px; border-top: 1px solid var(--border); }
.footer-logo { font-family: var(--font-d); font-size: 1.1rem; color: var(--muted); margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-link { font-size: 0.78rem; color: var(--muted); transition: var(--tr); }
.footer-link:hover { color: var(--neon); }
.footer-copy { font-size: 0.72rem; color: rgba(107,112,136,0.6); }

/* ── MISC ── */
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--purple); border-radius: 50%; animation: spin .7s linear infinite; margin: 36px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-hint { text-align: center; padding: 36px 16px; color: var(--muted); font-size: 0.85rem; }
.toast { position: fixed; bottom: 18px; right: 18px; background: var(--bg-elev); border: 1px solid rgba(245,158,11,0.35);
  border-radius: 10px; padding: 10px 16px; font-weight: 700; color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 999; font-size: 0.88rem; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .stream-layout { grid-template-columns: 1fr; }
  .stream-chat { height: 360px; }
}
@media(max-width:700px) {
  .nav-links { display: none; position: fixed; top: 58px; left: 0; right: 0; background: rgba(10,10,15,0.97);
    flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); z-index: 99; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .nav-link, .nav-ff, .nav-login, .nav-live { width: 100%; justify-content: center; }
  .grid, .tiles { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .modal { padding: 24px 18px; }
  .gw-head { flex-direction: column; }
  .section { padding: 36px 20px; }
}
