/* ===================== ANONYM — YELLOW CARTOONY ===================== */
:root {
  --ink: #1f1a12;
  --paper: #fff8d6;
  --cream: #fff1a8;
  --yellow: #ffd93d;
  --yellow-d: #ffc400;
  --white: #ffffff;
  --pink: #ff8fa3;
  --blue: #7cc8ff;
  --green: #86e3a6;
  --orange: #ffa94d;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r: 20px;
  --font-h: 'Fredoka', 'Baloo 2', 'Poppins', system-ui, sans-serif;
  --font-b: 'Nunito', 'Poppins', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-b);
  font-size: 17px; line-height: 1.6; font-weight: 600; overflow-x: hidden;
  background-image: radial-gradient(rgba(31,26,18,.09) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
}
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink);
  background: var(--yellow); border: var(--line); border-radius: 999px; padding: 11px 24px;
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; min-height: 48px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.white { background: var(--white); }
.btn.dark { background: var(--ink); color: var(--yellow); box-shadow: 3px 3px 0 var(--yellow-d); }
.btn.discord { background: #8ea1ff; }
.btn.big { font-size: 1.25rem; padding: 14px 32px; min-height: 58px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--yellow); border-bottom: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1.6rem; text-decoration: none; }
.brand .logo { width: 44px; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-family: var(--font-h); font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 3px solid transparent; }
.nav-links a:hover { border-color: var(--ink); background: var(--white); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 8px 20px; min-height: 44px; background: var(--white); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--cream); }
.burger { display: none; width: 48px; height: 48px; border: var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; padding: 0; }
.burger span { display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px auto; border-radius: 3px; }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--font-h); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--white); border: var(--line); border-radius: 999px; padding: 4px 16px; box-shadow: var(--shadow-sm); transform: rotate(-2deg); margin-bottom: 18px;
}
.sec-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.sec-sub { margin-top: 14px; font-size: 1.15rem; max-width: 640px; }
.center { text-align: center; }
.center .sec-sub { margin-inline: auto; }
.mark { background: var(--yellow); padding: 0 .18em; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 110px; background: var(--yellow); border-bottom: var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(31,26,18,.12) 2px, transparent 2.2px); background-size: 30px 30px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: .98; }
.hero h1 .line { display: block; }
.rotator { display: inline-grid; vertical-align: bottom; background: var(--white); border: var(--line); border-radius: 22px; padding: 0 .28em .06em; box-shadow: var(--shadow); transform: rotate(-2deg); margin-top: 10px; overflow: hidden; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%) rotate(4deg); animation: rot 10s infinite; }
.rotator span:nth-child(1) { animation-delay: 0s; }
.rotator span:nth-child(2) { animation-delay: 2.5s; }
.rotator span:nth-child(3) { animation-delay: 5s; }
.rotator span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rot {
  0% { opacity: 0; transform: translateY(70%) rotate(4deg); }
  4%, 22% { opacity: 1; transform: translateY(0) rotate(0); }
  26%, 100% { opacity: 0; transform: translateY(-70%) rotate(-4deg); }
}
.hero p.lead { margin-top: 26px; font-size: 1.28rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: var(--line); border-radius: 999px; padding: 6px 16px; font-family: var(--font-h); font-weight: 500; box-shadow: var(--shadow-sm); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #2fd16b; border: 2px solid var(--ink); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art .mascot { width: min(440px, 100%); filter: drop-shadow(8px 8px 0 rgba(31,26,18,.9)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.bubble { position: absolute; font-family: var(--font-h); font-weight: 600; background: var(--white); border: var(--line); border-radius: 20px 20px 20px 4px; padding: 8px 16px; box-shadow: var(--shadow-sm); animation: floaty 5s ease-in-out infinite; }
.bubble.b1 { top: 6%; left: 0; transform: rotate(-6deg); }
.bubble.b2 { top: 30%; right: -2%; background: var(--pink); border-radius: 20px 20px 4px 20px; animation-delay: -1.5s; transform: rotate(5deg); }
.bubble.b3 { bottom: 8%; left: 4%; background: var(--blue); animation-delay: -3s; transform: rotate(3deg); }
@keyframes floaty { 50% { translate: 0 -12px; } }
.wave { position: absolute; left: 0; right: 0; bottom: -2px; height: 46px; background: var(--paper); border-top: var(--line); border-radius: 60% 60% 0 0 / 100% 100% 0 0; }

/* ---------- Why (6 cards) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 8px 9px 0 var(--ink); }
.card .ico { width: 68px; height: 68px; border: var(--line); border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 18px; box-shadow: var(--shadow-sm); transform: rotate(-4deg); }
.card:nth-child(1) .ico { background: var(--yellow); } .card:nth-child(2) .ico { background: var(--pink); } .card:nth-child(3) .ico { background: var(--blue); }
.card:nth-child(4) .ico { background: var(--green); } .card:nth-child(5) .ico { background: var(--orange); } .card:nth-child(6) .ico { background: var(--cream); }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { font-weight: 600; }

/* ---------- Founder ---------- */
.founder { background: var(--cream); border-block: var(--line); }
.founder .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.photo-frame { position: relative; width: min(400px, 100%); aspect-ratio: 1; margin-inline: auto; }
.photo-frame::before { content: ""; position: absolute; inset: 0; background: var(--yellow-d); border: var(--line); border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%; transform: translate(14px, 14px); }
.photo-frame .ph { position: relative; width: 100%; height: 100%; border: var(--line); border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%; overflow: hidden; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }
.photo-frame img, .photo-frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .star { position: absolute; top: -18px; right: -6px; font-size: 3rem; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.founder h2 { margin-top: 4px; }
.founder .role { display: inline-block; margin-top: 16px; background: var(--yellow); border: var(--line); border-radius: 999px; padding: 4px 18px; font-family: var(--font-h); font-weight: 600; box-shadow: var(--shadow-sm); }
.founder .bio { margin-top: 22px; font-size: 1.15rem; max-width: 560px; white-space: pre-line; }
.quote { margin-top: 26px; background: var(--white); border: var(--line); border-radius: var(--r); padding: 16px 22px; box-shadow: var(--shadow-sm); font-family: var(--font-h); font-weight: 500; max-width: 480px; transform: rotate(-1deg); }

/* ---------- Discord section ---------- */
.discord .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.discord .badge { display: inline-flex; align-items: center; gap: 10px; }
.checks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 42px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--green); border: 3px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: .9rem; }
.widget-box { background: var(--yellow); border: var(--line); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink); padding: 14px; transform: rotate(1.2deg); }
.widget-box .bar { display: flex; gap: 8px; padding: 2px 6px 12px; }
.widget-box .bar i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.widget-box iframe { display: block; width: 100%; height: 480px; border: var(--line); border-radius: 16px; background: #2b2d31; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); border-block: var(--line); }
.faq-list { max-width: 820px; margin: 48px auto 0; display: grid; gap: 18px; }
.faq details { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow); background: #fffdf0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-h); font-weight: 600; font-size: 1.2rem; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--pink); }
.faq .ans { padding: 0 22px 20px; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; }
.cta-box { position: relative; background: var(--yellow); border: var(--line); border-radius: 34px; box-shadow: 10px 10px 0 var(--ink); padding: 64px 28px; text-align: center; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(31,26,18,.12) 2px, transparent 2.2px); background-size: 28px 28px; }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.cta-box p { margin: 16px auto 30px; max-width: 560px; font-size: 1.2rem; }
.cta-box .deco { position: absolute; font-size: 3rem; animation: floaty 4s ease-in-out infinite; }
.cta-box .d1 { top: 18px; left: 5%; } .cta-box .d2 { bottom: 20px; right: 6%; animation-delay: -2s; } .cta-box .d3 { top: 30%; right: 12%; font-size: 2rem; animation-delay: -1s; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 56px 0 30px; border-top: var(--line); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--yellow); }
.footer p.about { margin-top: 14px; max-width: 360px; opacity: .85; }
.footer h4 { font-family: var(--font-h); color: var(--yellow); margin: 0 0 12px; font-size: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; opacity: .9; } .footer a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.footer .copy { margin-top: 40px; padding-top: 22px; border-top: 2px dashed rgba(255,248,214,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .95rem; opacity: .8; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.2); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Auth pages ---------- */
.auth-body { min-height: 100vh; background: var(--yellow); display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(460px, 100%); background: var(--white); border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 32px 28px; position: relative; }
.auth-card .back { display: flex; width: max-content; margin-bottom: 18px; min-height: 40px; padding: 6px 16px; }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-card h1 { text-align: center; font-size: 2rem; }
.auth-card .sub { text-align: center; margin: 6px 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--cream); border: var(--line); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.tabs button { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; background: transparent; border: 0; border-radius: 999px; padding: 9px; cursor: pointer; color: var(--ink); min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--yellow); box-shadow: 0 0 0 3px var(--ink) inset; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-h); font-weight: 600; }
.field input[type=email], .field input[type=password], .field input[type=text] { width: 100%; font: inherit; font-weight: 700; color: var(--ink); background: #fffdf0; border: var(--line); border-radius: 14px; padding: 12px 14px; min-height: 50px; }
.field input:focus { outline: 4px solid var(--blue); outline-offset: 2px; background: var(--white); }
.pw { position: relative; }
.pw input { padding-right: 70px !important; }
.pw button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-family: var(--font-h); font-weight: 600; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.remember { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; cursor: pointer; font-weight: 700; user-select: none; }
.remember input { appearance: none; width: 28px; height: 28px; flex: none; border: var(--line); border-radius: 9px; background: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.remember input:checked { background: var(--yellow); }
.remember input:checked::after { content: "✓"; font-weight: 900; font-size: 1.05rem; }
.remember input:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-family: var(--font-h); font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 0; border-top: 3px dashed var(--ink); opacity: .35; }
.msg { border: var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; font-weight: 700; }
.msg.err { background: #ffd1d8; } .msg.ok { background: #c9f5d9; }
.hint { font-size: .9rem; opacity: .75; margin-top: 4px; }
.auth-note { text-align: center; margin-top: 18px; font-size: .92rem; opacity: .8; }
[hidden] { display: none !important; }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--paper); min-height: 100vh; }
.dash { padding: 40px 0 90px; }
.dash-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--yellow); border: var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px; }
.avatar { width: 108px; height: 108px; border-radius: 50%; border: var(--line); background: var(--white); object-fit: cover; box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.dash-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.stat { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; }
.stat small { font-family: var(--font-h); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.stat b { display: block; font-family: var(--font-h); font-size: 2.4rem; line-height: 1.1; margin-top: 6px; }
.panel { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; margin-top: 30px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 16px; }
.bar-track { height: 30px; background: var(--cream); border: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: repeating-linear-gradient(45deg, var(--yellow-d) 0 14px, var(--yellow) 14px 28px); border-right: var(--line); width: 0; transition: width 1s cubic-bezier(.2,.9,.3,1.1); }
.bar-meta { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; flex-wrap: wrap; gap: 6px; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pair { display: flex; align-items: center; gap: 14px; background: var(--cream); border: var(--line); border-radius: 16px; padding: 14px 16px; }
.pair .fire { font-size: 2rem; } .pair.off .fire { filter: grayscale(1); opacity: .5; }
.pair b { font-family: var(--font-h); font-size: 1.3rem; display: block; line-height: 1.1; }
.empty { text-align: center; padding: 26px 10px; }
.empty .big { font-size: 3rem; }
.link-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--blue); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; margin-top: 30px; }
.skeleton { background: linear-gradient(90deg, var(--cream) 25%, #fff 50%, var(--cream) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 1.2em; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero .wrap, .founder .wrap, .discord .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; } .hero-art .mascot { width: min(320px, 80%); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .founder .wrap { gap: 44px; } .founder .txt { text-align: center; } .founder .bio, .quote { margin-inline: auto; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: var(--yellow); border-bottom: var(--line); flex-direction: column; padding: 12px 20px 20px; gap: 6px; display: none; }
  .nav-links.open { display: flex; } .nav-links a { display: block; width: 100%; text-align: center; font-size: 1.15rem; padding: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .dash-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .chips { justify-content: center; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .stat b { font-size: 1.9rem; }
  .bubble { font-size: .85rem; padding: 6px 12px; } .bubble.b2 { right: 0; }
  .widget-box { transform: none; } .widget-box iframe { height: 420px; }
  .footer .cols { grid-template-columns: 1fr; }
  .nav-cta .t { display: none; } .nav-cta { padding: 8px 14px; }
  .auth-card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .rotator span:first-child { opacity: 1; transform: none; }
}
