@font-face { font-family: 'Lilita One'; src: url('../fonts/LilitaOne.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root { --ink: #2c2016; --cream: #f7eed9; --cream2: #efe2c3; --yellow: #f6c544; --green: #5caf43; --kraft: #b98f5e; --bar: #2a1e16; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-weight: 700; color: var(--ink); background: var(--bar); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font: 800 15px 'Nunito', sans-serif; cursor: pointer; text-decoration: none; color: var(--ink); background: #fffaf0; transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 50px; font-size: 17px; width: 100%; }
.btn-yellow { background: linear-gradient(#ffd964, #f2b929); }
.btn-green { background: linear-gradient(#78c95c, #4c9c34); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; background: linear-gradient(rgba(42,30,22,.95), rgba(42,30,22,.75)); border-bottom: 3px solid #1a120c; backdrop-filter: blur(4px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--yellow); font: 26px 'Lilita One', sans-serif; text-shadow: 0 2px 0 #000; }
.brand img { width: 36px; animation: wobble 3s ease-in-out infinite; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a:not(.btn) { color: #f3e6cc; text-decoration: none; font-weight: 800; }
.nav nav a:not(.btn):hover { color: var(--yellow); }
@keyframes wobble { 50% { transform: rotate(-12deg) translateY(-2px); } }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 90px 24px 60px; }
.hero-bg { position: absolute; inset: -30px; background: center/cover no-repeat; transform: scale(1.08); transition: transform .3s ease-out; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { to { background-position: 60% 40%; } }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(20,12,6,.25), rgba(20,12,6,.8)), linear-gradient(transparent 70%, var(--bar)); }
.hero-rays { position: absolute; left: 30%; top: -30%; width: 140vmax; height: 140vmax; translate: -50% 0; background: repeating-conic-gradient(from 0deg, rgba(255,220,140,.07) 0 8deg, transparent 8deg 20deg); animation: spin 90s linear infinite; mask: radial-gradient(circle, #000 10%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.floaters { position: absolute; inset: 0; pointer-events: none; transition: transform .3s ease-out; }
.floaters img { position: absolute; width: 64px; left: calc(4% + var(--i) * 9.5%); top: calc(12% + (var(--i) * 37 % 70) * 1%); filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); animation: float calc(5s + var(--i) * .6s) ease-in-out infinite alternate; opacity: .9; }
@keyframes float { from { transform: translateY(-14px) rotate(-10deg); } to { transform: translateY(18px) rotate(12deg); } }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c0; box-shadow: 0 0 10px 3px rgba(255,210,100,.8); animation: spark 2.6s ease-out forwards; pointer-events: none; }
@keyframes spark { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-90px) scale(.3); } }

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.event-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 20px; background: linear-gradient(#8d62dc, #6a40b8); border: 3px solid #2f1a56; color: #fff; font-weight: 800; animation: pulse 2s infinite; }
.event-pill img { width: 26px; height: 26px; border-radius: 50%; background: var(--cream); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(141,98,220,.35); } }
.logo { margin: 14px 0 10px; font: clamp(64px, 10vw, 128px)/.9 'Lilita One', sans-serif; color: var(--yellow); letter-spacing: 2px; text-shadow: 0 6px 0 #6b3b06, 4px 4px 0 #6b3b06, -4px -4px 0 #6b3b06, 4px -4px 0 #6b3b06, -4px 4px 0 #6b3b06, 0 14px 30px rgba(0,0,0,.6); }
.logo em { font-style: normal; color: #fff; text-shadow: 0 6px 0 #2c2016, 4px 4px 0 #2c2016, -4px -4px 0 #2c2016, 4px -4px 0 #2c2016, -4px 4px 0 #2c2016, 0 14px 30px rgba(0,0,0,.6); }
.logo span { display: inline-block; animation: drop .8s cubic-bezier(.2,1.6,.4,1) both, bounce 3s ease-in-out infinite; animation-delay: calc(var(--d) * .07s), calc(1s + var(--d) * .12s); }
@keyframes drop { from { opacity: 0; transform: translateY(-120px) rotate(-20deg); } }
@keyframes bounce { 0%,80%,100% { transform: none; } 88% { transform: translateY(-10px) rotate(-3deg); } }
.claim { max-width: 560px; color: #fff; font: 800 19px/1.5 'Nunito', sans-serif; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0,0,0,.7); }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.hero-stats div { min-width: 104px; padding: 8px 14px; border-radius: 12px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.4); text-align: center; }
.hero-stats b { display: block; font: 28px 'Lilita One', sans-serif; }
.hero-stats span { font-size: 12px; color: #6b5843; text-transform: uppercase; letter-spacing: 1px; }
.chars { position: relative; height: 230px; margin-top: 10px; }
.chars img { position: absolute; bottom: 0; height: 220px; filter: drop-shadow(0 10px 8px rgba(0,0,0,.6)); animation: idle 3s ease-in-out infinite; transform-origin: bottom; }
.chars .c1 { left: 0; } .chars .c2 { left: 110px; animation-delay: .5s; } .chars .c3 { left: 215px; animation-delay: 1s; } .chars .c4 { left: 330px; height: 190px; animation-delay: 1.4s; }
@keyframes idle { 50% { transform: translateY(-6px) scaleY(1.02); } }

.auth { background: var(--cream); border: 4px solid var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 30px 60px rgba(0,0,0,.5); animation: pop .7s .3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.auth-tabs button { height: 42px; border-radius: 10px; border: 3px solid var(--ink); background: var(--cream2); font: 18px 'Lilita One', sans-serif; cursor: pointer; color: var(--ink); }
.auth-tabs button.on { background: var(--yellow); box-shadow: 0 3px 0 var(--ink); }
.pane { display: none; flex-direction: column; gap: 10px; }
.pane.on { display: flex; animation: pop .35s ease; }
.pane label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5b4a3a; }
.pane input:not([type=checkbox]) { height: 44px; padding: 0 12px; border-radius: 10px; border: 3px solid var(--ink); background: #fffaf0; font: 700 15px 'Nunito', sans-serif; width: 100%; }
.pane input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.pane .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pane .check { flex-direction: row; align-items: center; gap: 8px; }
.pane .check input { width: 20px; height: 20px; accent-color: var(--green); }
.alert { padding: 8px 12px; margin-bottom: 10px; border-radius: 10px; border: 3px solid var(--ink); background: #ffd9d3; font-size: 14px; animation: shake .4s; }
.alert.ok { background: #e3f6d6; animation: none; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.small { margin: 12px 0 0; text-align: center; font-size: 12px; color: #6b5843; }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; z-index: 3; width: 30px; height: 48px; border: 3px solid #fff; border-radius: 16px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; border-radius: 3px; background: #fff; translate: -50% 0; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { to { transform: translateY(16px); opacity: 0; } }

.section { padding: 70px 24px; }
.section.kraft { background-color: var(--kraft); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 5px), radial-gradient(ellipse at 20% 0, rgba(255,235,200,.3), transparent 60%); border-top: 4px solid #1a120c; border-bottom: 4px solid #1a120c; }
.section.dark { background: #2a1e16; }
.stitle { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 34px; font: 44px 'Lilita One', sans-serif; text-align: center; }
.stitle img { width: 54px; animation: wobble 3s ease-in-out infinite; }
.stitle.light { color: var(--yellow); text-shadow: 0 3px 0 #000; }
.features { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 18px; box-shadow: 0 5px 0 rgba(0,0,0,.35); transition: transform .2s; }
.feature:hover { transform: translateY(-6px) rotate(-.5deg); }
.feature img { width: 64px; height: 64px; object-fit: contain; transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.feature:hover img { transform: scale(1.2) rotate(-8deg); }
.feature h3 { margin: 6px 0 4px; font: 22px 'Lilita One', sans-serif; }
.feature p { margin: 0; font-size: 15px; line-height: 1.45; color: #4a3a2b; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s cubic-bezier(.2,1.2,.4,1); transition-delay: calc(var(--i, 0) * .06s); }
.reveal.in { opacity: 1; transform: none; }
.gallery { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 4px solid #120b07; box-shadow: 0 6px 0 #000; aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.1); }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; color: var(--yellow); font: 22px 'Lilita One', sans-serif; text-shadow: 0 2px 0 #000, 2px 2px 0 #000, -2px -2px 0 #000; }
.steps { max-width: 1000px; margin: 46px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--cream); border: 3px solid #000; border-radius: 14px; padding: 18px; text-align: center; }
.step b { position: absolute; left: -12px; top: -12px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); font: 22px/34px 'Lilita One', sans-serif; }
.step img { width: 60px; }
.step h3 { margin: 4px 0; font: 22px 'Lilita One', sans-serif; }
.step p { margin: 0; color: #4a3a2b; }
.toplist { list-style: none; max-width: 560px; margin: 0 auto 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toplist li { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.toplist img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--cream2); }
.toplist b { flex: 1; font-size: 17px; }
.toplist em { font-style: normal; color: #6b5843; }
.pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream2); border: 3px solid var(--ink); font: 18px 'Lilita One', sans-serif; }
.pos.p1 { background: #ffd54a; } .pos.p2 { background: #d9d9d9; } .pos.p3 { background: #e0a46b; }
.center { text-align: center; max-width: 420px; margin: 0 auto; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 24px; background: #1a120c; color: #cdbba3; font-size: 14px; }
.footer img { width: 20px; vertical-align: middle; }
.footer a { color: var(--yellow); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .chars { display: none; }
  .features, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .features, .gallery { grid-template-columns: 1fr; }
  .stitle { font-size: 32px; }
  .floaters img { width: 40px; }
  .pane .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.forgot-link { margin: 10px 0 0; text-align: center; }
.forgot-link a { color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.auth-tabs button:not(.on) + button:not(.on) { }
