@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  /* SuiAQ logo palette: jade (Sui) + gold (AQ) on a deep jade-black */
  --bg: #06120d; --bg2: #0c1e16; --card: #10261c; --line: #1d4030;
  --text: #ecf5ee; --muted: #9dbba9; --teal: #34d27b; --teal-d: #1a9e55;
  --gold: #f6c544; --danger: #ff6b6b; --ok: #4ade80;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Nunito Sans', system-ui, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: 'Cinzel', Georgia, serif; letter-spacing: .02em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(6, 18, 13, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--text); }
.brand img { width: 36px; height: 36px; }
.brand img.wordmark { width: auto; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.brand span { color: var(--gold); }
nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav .links a { color: var(--muted); font-weight: 600; }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 10px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: 16px; font-family: inherit; transition: transform .1s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #ffe48a, #e3a522); color: #2a1b00; box-shadow: 0 6px 24px rgba(255, 199, 60, .25); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(255, 199, 60, .4); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(52, 210, 123, .25), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(255, 215, 90, .08), transparent 50%), var(--bg); }
.hero img.crest { width: 140px; height: 140px; filter: drop-shadow(0 10px 30px rgba(52, 210, 123, .45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin: 16px 0 8px; line-height: 1.05; }
.hero h1 span { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .hint { margin-top: 14px; color: var(--muted); font-size: 14px; min-height: 22px; }

/* status strip */
.status { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pill { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* sections */
section { padding: 64px 0; }
section h2 { font-size: 30px; margin: 0 0 24px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.feature .ico { font-size: 28px; }
.news { display: grid; gap: 14px; }
.news .card { display: grid; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bg); background: var(--teal); padding: 2px 10px; border-radius: 6px; }
.tag.Update { background: var(--gold); } .tag.Event { background: #c084fc; } .tag.Maintenance { background: var(--danger); }
.meta { color: var(--muted); font-size: 13px; }

/* forms */
.form-page { min-height: calc(100vh - 64px - 80px); display: grid; place-items: center; padding: 48px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(52, 210, 123, .18), transparent 60%); }
.form-card { width: 100%; max-width: 440px; }
.form-card h1 { margin: 0 0 4px; font-size: 30px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(52, 210, 123, .2); }
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender input { display: none; }
.gender label { text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg2); }
.gender input:checked + label { border-color: var(--gold); color: var(--gold); }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; display: none; }
.msg.err { display: block; background: rgba(255, 107, 107, .12); color: var(--danger); border: 1px solid rgba(255, 107, 107, .35); }
.msg.ok { display: block; background: rgba(74, 222, 128, .1); color: var(--ok); border: 1px solid rgba(74, 222, 128, .3); }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  nav .links a.hide-sm { display: none; }
  /* phones: the tabs scroll sideways inside the bar instead of pushing the page wider */
  nav .wrap { gap: 12px; }
  .brand img.wordmark { height: 30px; }
  nav .links { gap: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  nav .links::-webkit-scrollbar { display: none; }
  nav .links a { white-space: nowrap; font-size: 14px; flex: none; }
  .hero { padding: 64px 0 56px; }
}

/* nav active + layout v2 */
nav .links a.active { color: var(--gold); }
nav .links a.nav-link { padding: 6px 2px; border-bottom: 2px solid transparent; }
nav .links a.nav-link.active { border-bottom-color: var(--gold); }
.hero.compact { padding: 48px 0 40px; }
.hero.compact img.crest { width: 84px; height: 84px; }
.hero img.crest.wordmark { width: min(420px, 80vw); height: auto; }
.hero.compact img.crest.wordmark { width: min(340px, 75vw); height: auto; }
.hero.compact h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 6px; }
.hero.compact p.lead { font-size: 17px; margin-bottom: 22px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 40px 20px 64px; align-items: start; }
.layout h2 { font-size: 24px; margin: 0 0 16px; }
.side { display: grid; gap: 18px; position: sticky; top: 84px; }
.side .card h3 { margin: 0 0 12px; font-size: 18px; display: flex; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 4px; background: var(--bg2); border-radius: 8px; padding: 3px; font-family: 'Nunito Sans', sans-serif; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 13px 'Nunito Sans', sans-serif; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--gold); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.rank li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.rank .pos { font-family: 'Cinzel', serif; font-weight: 800; color: var(--muted); text-align: center; }
.rank li:nth-child(1) .pos { color: #ffd75a; } .rank li:nth-child(2) .pos { color: #cfd8e3; } .rank li:nth-child(3) .pos { color: #e0a36b; }
.rank .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank a.who { color: var(--text); } .rank a.who:hover { color: var(--teal); }
.rank .val { color: var(--muted); font-size: 14px; }
.srv { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.srv .n { flex: 1; font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .side { position: static; } }
nav .links a.btn-gold, nav .links a.btn-gold:hover { color: #2a1b00; }

/* jade accents */
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
nav { border-bottom-color: rgba(246, 197, 68, .18); }

/* footer links */
footer .foot-links { display: flex; gap: 22px; }
footer .foot-links a { color: var(--muted); font-weight: 600; }
footer .foot-links a:hover { color: var(--gold); text-decoration: none; }

/* Discord */
.dc-ico { width: 20px; height: 20px; flex: none; }
.dc-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(88, 101, 242, .15); color: #8c96ff; }
.btn-discord { width: 100%; background: #5865f2; color: #fff; box-shadow: 0 6px 24px rgba(88, 101, 242, .35); }
.btn-discord:hover { background: #4752c4; box-shadow: 0 8px 32px rgba(88, 101, 242, .5); }
