/* KangaRO website theme: dark navy + purple, Inter. Designed at 1536 px wide (owner's mock-up). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/InterVariable.woff2") format("woff2"); }
:root {
  --bg: #0e1218; --nav: #0b121e; --card: #11141c; --card2: #161b25; --line: #1f2430; --line2: #2a3040;
  --ink: #f2f4f8; --muted: #9aa3b5; --dim: #7c8598;
  --purple: #7c46f7; --purple2: #512ab9; --purple-soft: #b69bff;
  --green: #38df69; --alert-bg: #3a1620; --alert-ink: #ffb9c4; --ok-bg: #123221; --ok-ink: #b8f0cb; --warn-bg: #3a2f12;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 "Inter", system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--purple-soft); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
svg.lucide { width: 20px; height: 20px; stroke-width: 1.8; flex: none; }
.wrap { max-width: 1536px; margin: 0 auto; padding: 0 54px; }

/* ---------- top navigation ---------- */
.nav { background: var(--nav); border-bottom: 1px solid #1a2132; position: relative; z-index: 5; }
.nav .in { max-width: 1536px; margin: 0 auto; height: 70px; padding: 0 36px; display: flex; align-items: center; gap: 24px; }
.nav .logo { display: block; height: 60px; flex: none; }
.nav .logo img { height: 100%; width: auto; display: block; }
.nav .links { display: flex; align-items: stretch; gap: 6px; margin-left: 28px; height: 100%; flex: 1; }
.nav .links a { display: flex; align-items: center; gap: 9px; padding: 0 14px; color: #c9d0de; text-decoration: none; font-weight: 500; font-size: 15px; position: relative; white-space: nowrap; }
.nav .links a:hover { color: #fff; }
.nav .links a.on { color: #fff; }
.nav .links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--purple2), var(--purple)); border-radius: 2px 2px 0 0; }
.nav .ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; }
.nav .links a.on .ic { width: 32px; height: 32px; background: #3a1d8f; color: #fff; }
.nav .cta { display: flex; gap: 12px; margin-left: auto; padding-left: 22px; border-left: 1px solid #1f283b; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 28px; border-radius: 6px; font: 600 15px/1 "Inter", sans-serif; text-decoration: none; border: 1px solid var(--line2); color: #fff; background: transparent; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: linear-gradient(180deg, #8a5cff, #6a3ae6); border-color: #8a63ff; }

/* ---------- hero ---------- */
.hero { background: var(--nav) url('img/hero-bg.jpg') center 42% / cover no-repeat; }
.hero-in { position: relative; max-width: 1536px; margin: 0 auto; aspect-ratio: 1536 / 378; min-height: 240px; }
.hero-logo { position: absolute; left: 46.5%; top: 6.6%; width: 34.5%; height: auto; filter: drop-shadow(0 3px 10px rgba(35, 12, 70, .75)) drop-shadow(0 0 2px rgba(35, 12, 70, .6)); }
@media (max-width: 760px) { .hero-in { aspect-ratio: auto; min-height: 250px; } .hero-logo { left: 50%; width: 82%; top: 10%; transform: translateX(-50%); } }

/* ---------- action row ---------- */
.actions { display: flex; align-items: stretch; gap: 27px; padding-top: 12px; }
.big { display: flex; align-items: center; gap: 20px; height: 77px; padding: 0 28px; border-radius: 8px; text-decoration: none; color: #fff; border: 1px solid var(--line2); background: var(--card); }
.big .ico { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.big .ico svg { width: 26px; height: 26px; }
.big b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.big span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.big.reg { width: 388px; background: linear-gradient(95deg, #7c46f7, #4825aa); border-color: #8a63ff; }
.big.reg span { color: #e1d6ff; }
.big.dl { width: 352px; }
.stats { display: flex; align-items: center; flex: 1; justify-content: space-between; padding-left: 8px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 0 22px; flex: 1; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .sico { width: 44px; height: 44px; border-radius: 8px; background: #1b2030; display: flex; align-items: center; justify-content: center; color: #cdd3e1; flex: none; }
.stat small { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; }
.stat strong.g { color: var(--green); }
.stat strong .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: -1px; box-shadow: 0 0 10px rgba(56,223,105,.6); }
.stat strong .dot.off { background: #e0556b; box-shadow: none; }
.stat strong .t { font-size: 14px; font-weight: 500; color: #e5e9f2; }

.ann li.pinned { background: rgba(124, 70, 247, .10); border-radius: 6px; }
.ann li.pinned .t a { color: #fff; font-weight: 600; text-decoration: none; }
.ann li.pinned .t a:hover { text-decoration: underline; }
.pin { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #cbb8ff; border: 1px solid #5a3fb0; border-radius: 3px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
.page h2.sub { font-size: 18px; margin: 22px 0 4px; }
.passline { margin: 14px 4px 0; color: var(--dim); font-size: 14px; }

/* ---------- panels ---------- */
.panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 18px; }
.panel { background: var(--card); border: 1px solid #181c28; border-radius: 10px; padding: 16px 18px 12px; min-height: 253px; }
.panel .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel .ph h2 { font-size: 18px; font-weight: 600; }
.panel .ph svg { color: var(--purple-soft); width: 24px; height: 24px; }
.panel .ph a.more { margin-left: auto; font-size: 13px; color: var(--purple-soft); text-decoration: none; }
.ann { list-style: none; margin: 0; padding: 0; }
.ann li { display: flex; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ann .tag { width: 62px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 0; border-radius: 4px; color: #fff; flex: none; }
.tag.event { background: #6e41b7; } .tag.update { background: #2c9252; } .tag.notice { background: #2f6fd0; } .tag.info { background: #c47318; }
.ann .t { flex: 1; }
.ann .d { color: var(--dim); font-size: 13.5px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card2); border: 1px solid #1c2230; border-radius: 8px; text-align: center; padding: 14px 6px 12px; font-size: 14px; color: #c9d0de; }
.tile svg { width: 26px; height: 26px; color: var(--purple-soft); margin-bottom: 4px; }
.tile b { display: block; font-weight: 600; color: #fff; margin-top: 2px; }

/* ---------- bottom cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.pcard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; height: 119px; padding: 0 22px; border-radius: 10px; border: 1px solid #1c2230; text-decoration: none; color: #fff; isolation: isolate; }
.pcard::before { content: ""; position: absolute; inset: -12px; background: var(--bgimg) center/cover; filter: blur(7px) saturate(1.1); z-index: -2; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,22,.88), rgba(10,13,22,.55)); z-index: -1; }
.pcard.tile1 { --bgimg: url('img/tile1.jpg'); } .pcard.tile2 { --bgimg: url('img/tile2.jpg'); }
.pcard.tile3 { --bgimg: url('img/tile3.jpg'); } .pcard.tile4 { --bgimg: url('img/tile4.jpg'); }
.pcard .pi { color: var(--purple-soft); }
.pcard .pi svg { width: 34px; height: 34px; }
.pcard b { display: block; font-size: 18px; font-weight: 600; }
.pcard span { display: block; font-size: 14px; color: #c3cad9; line-height: 1.35; margin-top: 2px; }
.pcard .go { margin-left: auto; color: #fff; opacity: .9; }
.pcard .go svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.foot { margin-top: 12px; background: var(--nav); border-top: 1px solid #161d2c; }
.foot .in { max-width: 1536px; margin: 0 auto; padding: 0 40px; min-height: 72px; display: flex; align-items: center; gap: 22px; }
.foot img { height: 44px; width: auto; display: block; }
.foot .slogan { color: #aab2c3; font-size: 14px; }
.foot nav { display: flex; gap: 36px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: #c9d0de; text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: #fff; }
.foot .social { display: flex; gap: 18px; }
.foot .social a { color: #c9d0de; }
.legal { text-align: center; color: var(--dim); font-size: 12.5px; padding: 10px 16px 18px; background: var(--nav); }
.legal a { color: var(--dim); }

/* ---------- inner pages (sign-up, rules, messages) ---------- */
.page { max-width: 600px; margin: 40px auto 24px; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.page.wide { max-width: 860px; }
@media (min-width: 600px) { .page { padding: 34px 38px; } }
.page h1 { font-size: 26px; margin-bottom: 4px; }
.lead { color: var(--muted); margin-top: 4px; }
label { display: block; margin: 16px 0 5px; font-weight: 500; }
input[type=text], input[type=password], input[type=email] { width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: #0b0f16; border: 1px solid var(--line2); border-radius: 7px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.page small { display: block; color: var(--dim); margin-top: 5px; font-size: 13px; }
fieldset { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 8px; }
legend { padding: 0 6px; font-weight: 500; }
.choice { display: inline-block; margin: 6px 16px 6px 0; font-weight: 400; }
.choice.check { display: block; margin: 14px 0 0; }
.choice input { margin-right: 8px; accent-color: var(--purple); }
.warn { background: var(--warn-bg); padding: 9px 11px; border-radius: 7px; margin: 8px 0 0; font-size: 14px; }
.err { color: var(--alert-ink); background: var(--alert-bg); padding: 6px 10px; border-radius: 7px; margin: 6px 0 0; font-size: 14px; }
.alert { background: var(--alert-bg); color: var(--alert-ink); padding: 10px 12px; border-radius: 7px; }
.ok { background: var(--ok-bg); color: var(--ok-ink); padding: 10px 12px; border-radius: 7px; }
.cf-turnstile { margin: 20px 0 0; min-height: 70px; }
button.submit { margin-top: 20px; width: 100%; height: 46px; font: 600 15px "Inter", sans-serif; color: #fff; background: linear-gradient(180deg, #8a5cff, #6a3ae6); border: 1px solid #8a63ff; border-radius: 7px; cursor: pointer; }
button.submit:hover { filter: brightness(1.1); }
.rules li { margin: 10px 0; }
.rate-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rate-table td { padding: 10px 4px; border-top: 1px solid var(--line); }
.rate-table td:last-child { text-align: right; font-weight: 600; }
pre { white-space: pre-wrap; word-break: break-word; background: #0b0f16; border: 1px solid var(--line); padding: 10px; border-radius: 8px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1200px) {
  .wrap { padding: 0 24px; }
  .actions { flex-wrap: wrap; }
  .big.reg, .big.dl { width: auto; flex: 1 1 280px; }
  .stats { flex: 1 1 100%; padding: 8px 0 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav .in { padding: 0 20px; gap: 14px; }
  .nav .links { margin-left: 8px; gap: 0; }
  .nav .links a { padding: 0 9px; }
}
@media (max-width: 860px) {
  .nav .in { height: auto; flex-wrap: wrap; padding: 8px 14px; }
  .nav .logo { height: 48px; }
  .nav .links { order: 3; flex: 1 1 100%; margin: 0; overflow-x: auto; height: 46px; }
  .nav .cta { padding-left: 0; border-left: 0; }
  .panels { grid-template-columns: 1fr; }
  .stats { flex-direction: column; align-items: stretch; gap: 10px; }
  .stat { border-left: 0; padding: 0; }
  .foot .in { flex-wrap: wrap; padding: 14px 16px; }
  .foot nav { gap: 18px; margin: 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .nav .cta .btn { padding: 0 16px; height: 38px; }
  .big { padding: 0 18px; }
}
