:root{
  --bg:#070708;--panel:#101014;--panel2:#151519;--line:#26262e;
  --text:#f5f5f7;--muted:#9898a3;--red:#ff263e;--red2:#9d0014;
  --green:#41d97a;--shadow:0 24px 70px rgba(0,0,0,.45)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 15% 0%,rgba(185,0,25,.10),transparent 30%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden}
a{text-decoration:none;color:inherit}
button{font:inherit}
.grain{position:fixed;inset:0;z-index:99;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E")}
.topbar{position:fixed;top:0;left:0;right:0;height:76px;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:rgba(7,7,8,.78);border-bottom:1px solid rgba(255,255,255,.06);backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:12px;font-weight:950;letter-spacing:.08em}
.brand img{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(255,38,62,.22))}
.brand span span,footer strong span{color:var(--red)}
nav{display:flex;align-items:center;gap:23px}
nav>a{color:#c4c4ca;font-size:13px;font-weight:650}
nav>a:hover{color:#fff}
.join-link,.login-link{padding:11px 15px;border-radius:10px;border:1px solid #373741}
.join-link{background:linear-gradient(135deg,var(--red),var(--red2));border:0;color:#fff!important;box-shadow:0 10px 30px rgba(255,38,62,.18)}
.login-link{color:#fff!important}
.hamburger{display:none;background:none;border:0;color:#fff;font-size:28px}

.hero{position:relative;min-height:100vh;display:grid;align-items:center;padding:120px 5vw 80px;overflow:hidden}
.hero-image{position:absolute;inset:-5%;background:url("/assets/deadlysins_banner.webp") center/cover no-repeat;filter:saturate(.9) contrast(1.06)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,5,7,.98) 0%,rgba(5,5,7,.87) 45%,rgba(5,5,7,.60) 75%,rgba(5,5,7,.78) 100%),linear-gradient(0deg,var(--bg) 0%,transparent 35%)}
.hero-content{position:relative;z-index:2;width:100%;max-width:1180px}
.eyebrow,.section-title>span,.mini,.small-label{font-size:11px;color:#ff6172;font-weight:900;letter-spacing:.19em}
.hero h1{max-width:950px;margin:18px 0;font-size:clamp(60px,9vw,132px);line-height:.85;letter-spacing:-.07em;font-weight:1000}
.hero h1 span{display:block;color:transparent;-webkit-text-stroke:2px var(--red);text-shadow:0 0 48px rgba(255,38,62,.18)}
.hero-copy{max-width:680px;color:#c1c1c9;font-size:18px;line-height:1.75}
.hero-actions{display:flex;gap:13px;margin-top:30px;flex-wrap:wrap}
.btn{min-height:50px;padding:0 21px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-weight:850;font-size:14px;transition:.2s}
.btn:hover{transform:translateY(-2px)}
.primary{background:linear-gradient(135deg,var(--red),var(--red2));box-shadow:0 15px 40px rgba(255,38,62,.2)}
.ghost{background:rgba(13,13,16,.6);border:1px solid #363640}
.live-strip{margin-top:54px;display:grid;grid-template-columns:repeat(4,1fr);max-width:790px;background:rgba(10,10,13,.62);border:1px solid rgba(255,255,255,.08);border-radius:16px;backdrop-filter:blur(14px);overflow:hidden}
.live-strip div{padding:18px 20px;border-right:1px solid rgba(255,255,255,.07)}
.live-strip div:last-child{border:0}
.live-strip strong{display:block;font-size:25px}
.live-strip span{font-size:10px;color:#888893;letter-spacing:.13em;text-transform:uppercase}
.live-badge{margin-top:13px;display:flex;align-items:center;gap:8px;color:#90909a;font-size:11px}
.live-badge i{width:8px;height:8px;border-radius:50%;background:#777;box-shadow:0 0 0 4px rgba(255,255,255,.03)}
.live-badge.live{color:#aee9c2}.live-badge.live i{background:var(--green);box-shadow:0 0 16px rgba(65,217,122,.65)}

.section{max-width:1440px;margin:0 auto;padding:105px 5vw}
.section-title{max-width:750px;margin-bottom:42px}
.section-title h2,.rules h2,.final-card h2{font-size:clamp(38px,5vw,65px);line-height:1;margin:9px 0 12px;letter-spacing:-.045em}
.section-title p,.rules p,.final-card p{color:var(--muted);line-height:1.7}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.feature{position:relative;overflow:hidden;background:linear-gradient(180deg,#141419,#0e0e12);border:1px solid var(--line);border-radius:18px;padding:27px;min-height:205px;box-shadow:var(--shadow)}
.feature:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,38,62,.09),transparent 48%);opacity:0;transition:.2s}
.feature:hover:after{opacity:1}
.feature b{display:block;font-size:29px;margin-bottom:25px}
.feature h3{margin:0 0 9px}
.feature p{margin:0;color:#92929c;line-height:1.65;font-size:14px}

.games-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.game-card{border:1px solid var(--line);border-radius:16px;background:#101014;padding:20px;display:flex;align-items:center;gap:15px;min-height:92px;transition:.2s}
.game-card:hover{transform:translateY(-2px);border-color:#5b232d}
.game-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:linear-gradient(135deg,#281117,#120e11);font-size:24px}
.game-card strong{display:block;font-size:14px}
.game-card span{display:block;color:#7f7f89;font-size:11px;margin-top:4px}
.loading-card{padding:30px;color:#888;border:1px solid var(--line);border-radius:16px}

.leaderboard{border:1px solid var(--line);border-radius:18px;background:#0e0e12;overflow:hidden;box-shadow:var(--shadow)}
.leaderboard-controls{padding:14px;display:flex;gap:8px;border-bottom:1px solid #222229}
.tab{border:1px solid #2f2f37;background:#15151a;color:#a4a4ae;border-radius:9px;padding:9px 13px;cursor:pointer}
.tab.active{background:#361016;color:#fff;border-color:#742030}
.leaderboard-head,.leader-row{display:grid;grid-template-columns:60px minmax(160px,1fr) 100px 130px 140px;gap:12px;align-items:center;padding:14px 20px}
.leaderboard-head{color:#6f6f79;font-size:10px;text-transform:uppercase;letter-spacing:.13em;border-bottom:1px solid #202027}
.leader-row{border-bottom:1px solid #1c1c22}
.leader-row:last-child{border-bottom:0}
.rank{font-weight:900;color:#7f7f89}
.rank.top{color:#ffbe45}
.player{display:flex;align-items:center;gap:12px;min-width:0}
.player img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#1b1b20}
.player strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric{color:#cfcfd5}
.empty{padding:55px 20px;text-align:center;color:#797983}

.event-card{display:flex;align-items:center;gap:22px;border:1px solid #342229;border-radius:18px;background:linear-gradient(90deg,rgba(255,38,62,.075),transparent),#111115;padding:28px}
.event-icon{font-size:38px}
.event-card strong{font-size:21px}
.event-card p{color:#92929c;line-height:1.6;margin:7px 0 0}
.event-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px}
.event-meta span{background:#1b1518;border:1px solid #382128;padding:7px 10px;border-radius:8px;font-size:11px;color:#d0c2c5}

.profile-shell{border:1px solid var(--line);border-radius:20px;background:#0f0f13;overflow:hidden;box-shadow:var(--shadow)}
.profile-guest{text-align:center;padding:55px 20px}
.profile-guest img{width:90px;height:90px;object-fit:contain}
.profile-guest h3{font-size:26px;margin:12px 0 7px}
.profile-guest p{color:#888893;margin:0 auto 22px;max-width:520px;line-height:1.6}
.profile-card{padding:30px}
.hidden{display:none!important}
.profile-top{display:flex;align-items:center;gap:18px}
.profile-top>img{width:82px;height:82px;border-radius:50%;object-fit:cover;border:3px solid #531824}
.profile-top h3{font-size:28px;margin:3px 0}
.profile-top p{margin:0;color:#8e8e98}
.logout{margin-left:auto;border:1px solid #34343c;border-radius:10px;padding:9px 12px;color:#aaa;font-size:12px}
.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #25252c;border-radius:14px;margin-top:25px;overflow:hidden}
.profile-stats div{padding:18px;border-right:1px solid #25252c}
.profile-stats div:last-child{border:0}
.profile-stats strong{font-size:22px;display:block}
.profile-stats span{font-size:10px;color:#7d7d88;text-transform:uppercase;letter-spacing:.11em}
.xp-track{height:8px;background:#1d1d23;border-radius:100px;margin-top:20px;overflow:hidden}
.xp-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#a90018,#ff344b);transition:width .6s}
.profile-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}
.profile-meta div{padding:14px;border:1px solid #25252c;border-radius:12px}
.profile-meta span{display:block;font-size:10px;color:#74747f;text-transform:uppercase;letter-spacing:.11em}
.profile-meta strong{display:block;margin-top:6px;font-size:13px}

.terminal{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#09090c;box-shadow:var(--shadow)}
.terminal-top{height:48px;display:flex;align-items:center;gap:8px;padding:0 17px;background:#111116;border-bottom:1px solid #222229}
.terminal-top i{width:10px;height:10px;border-radius:50%;background:#444}
.terminal-top i:first-child{background:#fa4053}.terminal-top i:nth-child(2){background:#dca62f}.terminal-top i:nth-child(3){background:#3fc16b}
.terminal-top span{margin-left:7px;color:#72727c;font-size:11px}
.terminal-body{padding:22px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.command-row{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:7px 0;border-bottom:1px dashed #1c1c22}
.command-row:last-child{border:0}
.command-row b{color:#ff6071}.command-row span{color:#8d8d98}

.rules,.final-card{border:1px solid #3c2027;border-radius:20px;background:linear-gradient(90deg,rgba(255,38,62,.08),transparent),#111115;padding:37px;display:flex;align-items:center;justify-content:space-between;gap:35px}
.rules>div{max-width:760px}
.final-cta{max-width:1440px;margin:0 auto;padding:20px 5vw 100px}
.final-card img{width:105px;height:105px;object-fit:contain}
.final-card>div{flex:1}
.final-card>div>span{color:#ff6172;font-size:11px;font-weight:900;letter-spacing:.18em}
footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px 5vw;border-top:1px solid #1f1f25;color:#74747e;font-size:11px}
footer strong{color:#c7c7cd;letter-spacing:.08em}
.reveal{opacity:0;transform:translateY(20px);transition:.65s ease}
.reveal.visible{opacity:1;transform:none}

@media(max-width:980px){
  .hamburger{display:block}
  nav{display:none;position:absolute;left:0;right:0;top:76px;flex-direction:column;align-items:stretch;gap:0;background:rgba(8,8,10,.98);padding:12px 5vw 20px;border-bottom:1px solid #222}
  nav.open{display:flex}
  nav>a{padding:12px 0}
  .join-link,.login-link{text-align:center;margin-top:7px;padding:12px!important}
  .feature-grid{grid-template-columns:1fr 1fr}
  .games-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .topbar{height:68px;padding:0 18px}.brand img{width:38px;height:38px}.brand{font-size:16px}nav{top:68px;padding-left:18px;padding-right:18px}
  .hero{padding:105px 18px 70px;min-height:100svh}.hero h1{font-size:clamp(53px,19vw,84px)}.hero-copy{font-size:16px}
  .hero-actions .btn{width:100%}
  .live-strip{grid-template-columns:1fr 1fr}.live-strip div:nth-child(2){border-right:0}.live-strip div:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.07)}
  .section{padding:78px 18px}.feature-grid,.games-grid{grid-template-columns:1fr}
  .leaderboard-head,.leader-row{grid-template-columns:42px minmax(120px,1fr) 70px}.leaderboard-head span:nth-child(4),.leaderboard-head span:nth-child(5),.leader-row>.metric:nth-child(4),.leader-row>.metric:nth-child(5){display:none}
  .profile-card{padding:20px}.profile-top{align-items:flex-start;flex-wrap:wrap}.logout{margin-left:0}.profile-stats{grid-template-columns:1fr 1fr}.profile-stats div:nth-child(2){border-right:0}.profile-stats div:nth-child(-n+2){border-bottom:1px solid #25252c}
  .profile-meta{grid-template-columns:1fr}
  .command-row{grid-template-columns:1fr;gap:2px}
  .rules,.final-card{flex-direction:column;align-items:flex-start;padding:25px}.final-card img{width:82px;height:82px}
  footer{padding:25px 18px;flex-direction:column;align-items:flex-start}
}
