/* ===== Don Bosco SDW Minecraft: styles (red / school poster look) ===== */
:root {
  --bg: #0d0909;
  --bg-2: #150d0d;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f3ece6;
  --muted: #a99d98;
  --red: #d1182f;
  --red-2: #ee3c4f;
  --red-dark: #8f0f20;
  --cream: #f3e9df;
  --green: #4cc38a;
  --warn: #f0b429;
  --radius: 6px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; font-weight: 700; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.01em; }

/* ----- background (kept: particles + soft blobs, now red) ----- */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.32;
  z-index: 0; pointer-events: none; animation: float 20s ease-in-out infinite;
}
.orb.o1 { width: 520px; height: 520px; background: var(--red); top: -170px; left: -140px; }
.orb.o2 { width: 440px; height: 440px; background: var(--red-dark); bottom: -170px; right: -110px; opacity: 0.5; animation-delay: -7s; }
.orb.o3 { width: 280px; height: 280px; background: #ff5a3c; top: 48%; left: 58%; opacity: 0.12; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.07); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
main, header, footer { position: relative; z-index: 1; }

/* ----- layout ----- */



  .discord-wrap { margin: 18px 0 10px; }
  .discord-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 56px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(88, 101, 242, 0.6);
  }
  .discord-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
  }
  .discord-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    letter-spacing: .5px;
  }
  .discord-stats .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #b9bbbe;
    display: inline-block;
  }
  .discord-stats .dot.online { background: #43b581; }
  .discord-stats .sep { opacity: .6; }

  @media (max-width: 480px) {
    .discord-btn { width: 100%; padding: 12px 20px; box-sizing: border-box; }
    .discord-title { font-size: 1.5rem; }
  }
  
  
  
  
.container { width: min(1120px, 92%); margin: 0 auto; }
section { padding: 84px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2);
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--red); }
.section-head { max-width: 640px; margin: 0 0 42px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.grad { color: var(--red-2); }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 9, 9, 0.9); border-bottom: 3px solid var(--red);
}
.nav.scrolled { background: rgba(13, 9, 9, 0.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 4px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-toggle button { background: none; border: 0; padding: 6px 11px; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.lang-toggle button.on { background: var(--cream); color: #1b0f0f; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; width: 42px; height: 42px; font-size: 1.2rem; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 4px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-gold { background: var(--cream); color: #1b0f0f; }
.btn-gold:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 7px 16px; font-size: 1rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ----- hero (left aligned) ----- */
.hero { padding: 96px 0 84px; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.4rem); line-height: 0.92; margin: 20px 0 22px; letter-spacing: 0; }
.hero p.lead { max-width: 580px; margin: 0 0 18px; color: var(--muted); font-size: 1.15rem; }
.hero p.lead .typed { color: var(--text); font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.ip-box {
  display: inline-flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px;
  border: 2px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.35);
  cursor: pointer; transition: border-color 0.2s; text-align: left;
}
.ip-box:hover { border-color: var(--red); }
.ip-box .ip-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.ip-box .ip-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.1; }
.ip-box .ip-copy { background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border-radius: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); position: relative; }
.dot.on { background: var(--green); }
.dot.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); animation: pulse 1.8s ease-out infinite; }
.dot.off { background: var(--red-2); }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.typed::after { content: "_"; margin-left: 2px; color: var(--red-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ----- marquee (solid red band) ----- */
.marquee { overflow: hidden; background: var(--red); padding: 11px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 34s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.marquee-track span b { opacity: 0.55; margin-right: 40px; font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- cards (flat) ----- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 28px; transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.card:hover { border-left-color: var(--red); background: var(--panel-2); transform: translateY(-3px); }
.card .num-tag { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red-2); margin-bottom: 10px; }
.card h3 { font-size: 1.55rem; margin-bottom: 6px; letter-spacing: 0.01em; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ----- stats ----- */
.stats { padding: 0; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 10px 40px 0; }
.stat b { font-family: var(--font-head); font-size: 4.2rem; line-height: 1; display: block; color: var(--red-2); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ----- steps ----- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 30px 26px 26px; border-top: 4px solid var(--red); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red-2); margin-bottom: 10px; }
.step h3 { margin-bottom: 6px; font-size: 1.55rem; }
.step p { color: var(--muted); font-size: 0.98rem; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(0,0,0,.4); border: 1px solid var(--line); padding: 2px 8px; border-radius: 3px; font-size: 0.9em; color: var(--cream); }

/* ----- CTA (solid red block) ----- */
.cta-box { padding: 56px 40px; border-radius: var(--radius); background: var(--red); color: #fff; }
.cta-box h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 8px; }
.cta-box p { opacity: 0.9; margin-bottom: 24px; max-width: 520px; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-box .btn-ghost:hover { background: rgba(0,0,0,.2); border-color: #fff; }

/* ----- page header (left aligned) ----- */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 14px 0 12px; }
.page-head p { color: var(--muted); max-width: 600px; }

/* ----- perks table ----- */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--red); color: #fff; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--panel-2); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }
.badge-student { display: inline-block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; padding: 1px 8px; border-radius: 3px; background: var(--cream); color: #1b0f0f; vertical-align: middle; }

/* ----- accordion ----- */
.acc { max-width: 820px; display: grid; gap: 8px; }
.acc-item { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s; }
.acc-item.open { border-left-color: var(--red); }
.acc-q { width: 100%; background: none; border: 0; text-align: left; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.acc-q .num { color: var(--red-2); margin-right: 14px; }
.acc-q .chev { transition: transform 0.3s; color: var(--muted); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-a p { padding: 0 22px 20px 58px; color: var(--muted); }

/* ----- auth ----- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 64px 0 90px; }
.auth-side h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin: 14px 0 16px; }
.auth-side p { color: var(--muted); margin-bottom: 20px; max-width: 460px; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 800; }
.auth-card { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 30px; background: rgba(0,0,0,.4); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.tabs button { border: 0; background: none; padding: 10px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: all 0.2s; }
.tabs button.on { background: var(--cream); color: #1b0f0f; }
.pane { display: none; animation: fadeUp 0.4s ease both; }
.pane.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding: 13px 44px 13px 15px; border-radius: 4px; border: 2px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); font: inherit; outline: none; transition: border-color 0.2s; }
.input-wrap input:focus { border-color: var(--cream); }
.input-wrap.ok input { border-color: var(--green); }
.input-wrap.bad input { border-color: var(--red-2); animation: shake 0.35s; }
.input-wrap .mark { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; opacity: 0; transition: opacity 0.2s; }
.input-wrap.ok .mark { opacity: 1; color: var(--green); }
.input-wrap.bad .mark { opacity: 1; color: var(--red-2); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.hint.err { color: var(--red-2); }
.notice { border-radius: 4px; padding: 13px 16px; font-size: 0.92rem; margin-bottom: 18px; border: 1px solid var(--line); border-left-width: 4px; background: var(--panel); }
.notice.warn { border-color: var(--warn); background: rgba(240,180,41,.08); color: #f6cf72; }
.notice.good { border-color: var(--green); background: rgba(76,195,138,.08); color: var(--green); }
.notice.info { border-color: var(--cream); color: var(--cream); }
.hidden { display: none !important; }
.code-input { display: flex; gap: 8px; margin: 14px 0 20px; }
.code-input input { width: 48px; height: 58px; text-align: center; font-size: 1.8rem; font-family: var(--font-head); font-weight: 700; border-radius: 4px; border: 2px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); outline: none; }
.code-input input:focus { border-color: var(--cream); }
.fine { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ----- account ----- */
.profile { display: grid; grid-template-columns: 330px 1fr; gap: 22px; padding: 48px 0 90px; }
.avatar { width: 88px; height: 88px; border-radius: 4px; margin-bottom: 16px; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: #fff; background: var(--red); }
.kv { display: grid; gap: 12px; margin-top: 18px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.kv span:first-child { color: var(--muted); }
.perk-list { display: grid; gap: 10px; margin-top: 16px; }
.perk-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; background: rgba(0,0,0,.25); }
.perk-row.locked { opacity: 0.5; border-left-color: var(--line); }
.perk-row .pi { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--red-2); width: 28px; }

/* ----- footer ----- */
.footer { border-top: 3px solid var(--red); padding: 48px 0 30px; background: rgba(0,0,0,.4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer p, .footer a { color: var(--muted); font-size: 0.95rem; }
.footer a:hover { color: var(--text); }
.footer h4 { margin-bottom: 12px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ----- toast ----- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); opacity: 0; background: var(--cream); color: #1b0f0f; padding: 11px 22px; border-radius: 4px; z-index: 100; transition: all 0.3s; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----- reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ----- responsive ----- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .auth-wrap, .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(13,9,9,.98); padding: 12px 4%; border-bottom: 3px solid var(--red);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .grid-3, .grid-2, .steps, .stats-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .brand small { display: none; }
  .cta-box { padding: 40px 24px; }
  .compare th, .compare td { padding: 11px 8px; font-size: 0.88rem; }
  .acc-a p { padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ----- creator / story (home page) ----- */
.creator-card { display: grid; grid-template-columns: 270px 1fr; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.creator-id { padding: 34px 26px; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.creator-avatar { width: 72px; height: 72px; border-radius: var(--radius); background: var(--cream); color: #1b0f0f; font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; display: grid; place-items: center; margin-bottom: 14px; }
.creator-name { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1.05; }
.creator-tag { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; opacity: 0.9; }
.creator-role { margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(0, 0, 0, 0.25); padding: 2px 10px; border-radius: 3px; }
.creator-story { padding: 34px 36px; display: grid; gap: 14px; align-content: center; }
.creator-story p { color: var(--muted); }
.creator-story p:first-child { color: var(--text); font-family: var(--font-head); font-size: 1.75rem; line-height: 1.15; font-weight: 600; }
@media (max-width: 760px) {
  .creator-card { grid-template-columns: 1fr; }
  .creator-story { padding: 26px 22px; }
}


/* =====================================================================
   MOBILE LAYER (phones first-class): no sideways scroll, big tap targets
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, .ip-box { -webkit-tap-highlight-color: rgba(209, 24, 47, 0.25); touch-action: manipulation; }
body { min-height: 100vh; min-height: 100dvh; }
.nav-cta { display: none; }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.creator-sec { padding: 10px 0 64px; }
.compare td, .compare th { overflow-wrap: anywhere; }
.kv div span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.toast { max-width: 90vw; text-align: center; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.discord-stats { flex-wrap: wrap; justify-content: center; }

@media (hover: none) {
  .card:hover { transform: none; background: var(--panel); border-left-color: var(--line); }
  .btn:hover, .discord-btn:hover { transform: none; }
}

@media (max-width: 760px) {
  /* ----- header: logo + EN/NL + burger. The login button moves into the menu ----- */
  .nav-inner { height: 60px; gap: 10px; }
  .nav-links { top: 60px; padding: 8px 4% 14px; max-height: calc(100dvh - 60px); overflow-y: auto; }
  .nav-links a { display: block; padding: 15px 8px; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active { border-bottom-color: var(--red); }
  .nav-links .nav-cta { display: block; margin-top: 14px; }
  .nav-links .nav-cta a.btn { display: flex; border-bottom: 2px solid transparent; padding: 14px; color: #1b0f0f; }
  .nav-right { gap: 8px; }
  .nav-right > .btn { display: none; }
  .lang-toggle button { padding: 0 12px; min-height: 40px; }
  .burger { width: 44px; height: 40px; }

  /* ----- hero ----- */
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); margin: 14px 0 16px; }
  .hero p.lead { font-size: 1.02rem; }
  .hero p.lead .typed { font-size: 1.3rem; }
  .hero-cta { flex-direction: column; margin: 22px 0 24px; }
  .hero-cta .btn { width: 100%; padding: 15px 20px; }
  .ip-box { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; }
  .ip-box .ip-value { font-size: 1.45rem; }
  .ip-box .ip-copy { padding: 12px 16px; }
  .discord-wrap { margin: 14px 0 6px; }

  /* ----- sections ----- */
  section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 26px 6px 26px 0; }
  .stat b { font-size: 2.6rem; }
  .stat span { font-size: 0.72rem; letter-spacing: 0.04em; display: block; }
  .card { padding: 22px 20px 24px; }
  .step { padding: 24px 20px 22px; }
  .steps-2 { grid-template-columns: 1fr; }
  .cta-box .hero-cta { margin: 0; }
  .cta-box .btn { width: 100%; }
  .acc-q { font-size: 1.2rem; padding: 16px 16px; }
  .acc-q .chev { flex: none; }
  .acc-a p { padding: 0 16px 18px 16px; }
  .compare td:first-child { width: 54%; text-align: left; }
  .page-head { padding: 40px 0 16px; }

  /* ----- creator card ----- */
  .creator-sec { padding: 4px 0 44px; }
  .creator-id { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding: 20px 20px; }
  .creator-avatar { width: 60px; height: 60px; font-size: 1.9rem; margin: 0; grid-row: span 2; }
  .creator-name { font-size: 1.7rem; }
  .creator-role { margin-top: 6px; }
  .creator-story { padding: 22px 20px 26px; gap: 12px; }
  .creator-story p:first-child { font-size: 1.45rem; }

  /* ----- login / account ----- */
  .auth-wrap { padding: 30px 0 56px; gap: 26px; }
  .auth-card { padding: 22px 18px; }
  .profile { padding: 28px 0 56px; gap: 16px; }
  .perk-row { padding: 12px 12px; gap: 10px; }
  .footer { padding: 36px 0 24px; }

  /* ----- background: lighter for phone GPUs/batteries ----- */
  .orb { filter: blur(70px); animation: none; }
  .orb.o1 { width: 320px; height: 320px; top: -120px; left: -120px; }
  .orb.o2 { width: 300px; height: 300px; bottom: -120px; right: -100px; }
  .orb.o3 { display: none; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand-logo { width: 34px; height: 34px; font-size: 1rem; }
  .code-input { gap: 6px; }
  .code-input input { flex: 1; min-width: 0; width: auto; height: 54px; font-size: 1.5rem; }
  .stat b { font-size: 2.2rem; }
}
@media (max-width: 350px) {
  .brand > span:last-child { display: none; }
}

/* long unbreakable strings (e-mail addresses, IPs) must wrap instead of widening the page */
.grid > *, .steps > *, .auth-side > *, .profile > * { min-width: 0; }
.step p, .card p, .card h3, .hint, .notice, .auth-side p, .fine, .acc-a p, .checks li, .perk-row div { overflow-wrap: anywhere; }


/* ---- polish after device test ---- */
.creator-who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.creator-id { gap: 0; }
.brand > span:last-child { white-space: nowrap; }
@media (max-width: 760px) {
  .nav-links { background: #0d0909; }
  .discord-wrap { margin: 18px 0 10px; }
  .hero h1 { margin-top: 20px; }
  .creator-id { flex-direction: row; align-items: center; gap: 16px; padding: 20px; }
  .creator-avatar { margin: 0; flex: none; }
  .creator-name { font-size: 1.6rem; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.02rem; }
  .lang-toggle button { padding: 0 10px; }
}

/* ---- tablets: use the burger menu up to 900px so the header never overflows ---- */
@media (max-width: 900px) {
  .nav-inner { height: 60px; gap: 10px; }
  .burger { display: block; width: 44px; height: 40px; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0909; padding: 8px 4% 14px; border-bottom: 3px solid var(--red);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s;
    max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: 15px 8px; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active { border-bottom-color: var(--red); }
  .nav-links .nav-cta { display: block; margin-top: 14px; }
  .nav-links .nav-cta a.btn { display: flex; border-bottom: 2px solid transparent; padding: 14px; color: #1b0f0f; }
  .nav-right > .btn { display: none; }
  .nav-right { gap: 8px; }
  .lang-toggle button { padding: 0 12px; min-height: 40px; }
}

/* header never pushes the burger off-screen: the brand text shrinks with an ellipsis instead */
.brand { min-width: 0; flex: 0 1 auto; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.nav-right { flex: none; }

/* ===== Official student-project notice ===== */
.disclaimer-sec { padding: 40px 0 0; }
.disclaimer { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--panel); border-radius: var(--radius); padding: 20px 24px; font-size: 0.95rem; color: var(--muted); }
.disclaimer h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 8px; }
.disclaimer p + p { margin-top: 8px; }
.auth-side .disclaimer { margin-top: 28px; font-size: 0.88rem; padding: 16px 18px; }

/* ===== Rules page: tabs + tables ===== */
.rules-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rules-tab { padding: 10px 20px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius); cursor: pointer; }
.rules-tab:hover { color: var(--text); background: var(--panel-2); }
.rules-tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.rules-sub { color: var(--muted); margin-bottom: 14px; }
.rules-search { width: 100%; padding: 12px 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: inherit; }
.rules-search:focus { outline: none; border-color: var(--red-2); }
.rules-note, .rules-none { color: var(--muted); margin-top: 20px; }
.rtable { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid var(--line); background: var(--panel); }
.rtable th, .rtable td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.93rem; overflow-wrap: anywhere; }
.rtable thead th { background: var(--red); color: #fff; font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover { background: var(--panel-2); }
.rtable.offenses th:first-child, .rtable.offenses td:first-child { width: 30%; }
.rtable td.rname { font-weight: 600; color: var(--text); }
.rtable td.none { color: var(--muted); }
.rtable.mods th:first-child, .rtable.mods td:first-child { width: 60%; font-weight: 600; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; }
.pill.ok { background: rgba(76, 195, 138, 0.18); color: var(--green); }
.pill.part { background: rgba(240, 180, 41, 0.18); color: var(--warn); }
.pill.no { background: rgba(238, 60, 79, 0.18); color: var(--red-2); }
@media (max-width: 760px) {
  .rtable.offenses, .rtable.offenses tbody, .rtable.offenses tr, .rtable.offenses td { display: block; width: 100%; }
  .rtable.offenses { border: 0; background: none; }
  .rtable.offenses thead { display: none; }
  .rtable.offenses tr { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0; }
  .rtable.offenses td { border: 0; padding: 7px 14px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .rtable.offenses td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; }
  .rtable.offenses td.rname { display: block; text-align: left; font-size: 1.02rem; padding-top: 10px; }
  .rtable.offenses td.rname::before { content: none; }
  .rtable.offenses th:first-child, .rtable.offenses td:first-child { width: 100%; }
}


/* =====================================================================
   LOGO (image instead of the old "DB" letters)
   ===================================================================== */
.brand-logo { background: none; }
img.brand-logo { display: block; object-fit: contain; border-radius: 8px; }
.badge-logo { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; border-radius: 5px; margin-left: 4px; }

/* =====================================================================
   OFFICIAL badge in the hero
   ===================================================================== */
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.official-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px 5px 10px;
  border: 1.5px solid var(--cream); border-radius: 999px; background: rgba(243, 233, 223, 0.07); color: var(--cream);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.official-badge svg { width: 1.25em; height: 1.25em; color: var(--green); flex: none; }

/* =====================================================================
   STORE button (gold, shine) + store band on the home page
   ===================================================================== */
.btn-store {
  position: relative; overflow: hidden; gap: 10px;
  background: linear-gradient(135deg, #ffd75e 0%, #ffb21a 55%, #ff8a1f 100%);
  color: #2a1300; border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 22px rgba(255, 170, 30, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-store:hover {
  background: linear-gradient(135deg, #ffe07d 0%, #ffbf3a 55%, #ff9a36 100%);
  transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(255, 170, 30, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-store svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-store::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg); animation: storeShine 3.8s ease-in-out infinite;
}
@keyframes storeShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-lg { padding: 16px 36px; font-size: 1.5rem; }

section.store-band {
  position: relative; overflow: hidden; padding: 54px 0;
  background: linear-gradient(110deg, #ffd75e 0%, #ffb21a 55%, #ff8a1f 100%); color: #2a1300;
}
section.store-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0 14px, transparent 14px 28px);
}
.store-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.store-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #2a1300; }
.store-inner p { max-width: 520px; margin-top: 8px; font-size: 1.15rem; font-weight: 500; color: rgba(42, 19, 0, 0.82); }
.btn-dark { background: #1b0f0f; color: var(--cream); border-color: #1b0f0f; box-shadow: 0 10px 26px rgba(27, 15, 15, 0.35); }
.btn-dark:hover { background: #000; }
.btn-dark svg { width: 1.2em; height: 1.2em; flex: none; }
.nav-right .btn-store { white-space: nowrap; }
@media (max-width: 760px) {
  section.store-band { padding: 42px 0; }
  .store-inner .btn { width: 100%; }
}

/* =====================================================================
   CREATORS: second card (co-owner)
   ===================================================================== */
.creator-card + .creator-card { margin-top: 18px; }
.creator-card.co .creator-id { background: var(--cream); color: #1b0f0f; }
.creator-card.co .creator-avatar { background: var(--red); color: #fff; }
.creator-card.co .creator-role { background: rgba(27, 15, 15, 0.12); }

/* =====================================================================
   RULES: click a row for explanation, example and punishment ladder
   ===================================================================== */
.rtable tbody.rgroup > tr.rrow { cursor: pointer; }
.rtable tbody tr.rdetail:hover { background: transparent; }
.rtable tbody.rgroup:last-of-type > tr.rrow td { border-bottom: 0; }
.rtable tr.rdetail td { padding: 0; border-bottom: 0; }
.rtable td.rname { position: relative; padding-right: 38px; }
.rtable td.rname::after {
  content: ""; position: absolute; right: 16px; top: 19px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s;
}
.rtable tbody.rgroup:hover td.rname::after { border-color: var(--text); }
.rtable tbody.rgroup.open td.rname::after { transform: translateY(4px) rotate(-135deg); border-color: var(--red-2); }
.rtable.mods td:first-child { position: relative; padding-right: 38px; }
.rbtn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.rbtn:focus-visible { outline: 2px solid var(--red-2); outline-offset: 4px; border-radius: 3px; }

.rd-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.rgroup.open .rd-wrap { grid-template-rows: 1fr; }
.rd-in { overflow: hidden; min-height: 0; }
.rd-pad {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px 40px; padding: 20px 24px 24px;
  background: rgba(0, 0, 0, 0.28); border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--red);
}
.rd-pad.rd-one { grid-template-columns: 1fr; }
.rd-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.rd-h { margin-bottom: 6px; font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rd-p { color: var(--text); font-size: 1rem; line-height: 1.55; }
.rd-ex { padding: 10px 14px; border-left: 3px solid var(--red-2); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(255, 255, 255, 0.045); color: var(--cream); font-style: italic; }
.rd-sev { display: flex; align-items: center; gap: 10px; }
.rd-sev-l { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sev { display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; }
.sev.s1 { background: rgba(240, 180, 41, 0.18); color: var(--warn); }
.sev.s2 { background: rgba(255, 138, 60, 0.18); color: #ff8a3c; }
.sev.s3 { background: rgba(238, 60, 79, 0.2); color: var(--red-2); }

.ladder { position: relative; list-style: none; display: grid; }
.ladder::before { content: ""; position: absolute; left: 13px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.lad { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.lad-n {
  position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--muted); color: #1b0f0f; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
}
.lad.s1 .lad-n { background: var(--warn); }
.lad.s2 .lad-n { background: #ff8a3c; }
.lad.s3 .lad-n { background: var(--red-2); color: #fff; }
.lad.s4 .lad-n { background: var(--red-dark); color: #fff; box-shadow: 0 0 0 2px var(--red-2); }
.lad-t small { display: block; font-size: 0.72rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lad-t b { font-size: 1rem; font-weight: 600; }

@media (max-width: 760px) {
  .rtable.offenses tbody.rgroup { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
  .rtable.offenses tbody.rgroup > tr { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
  .rtable.offenses tbody.rgroup > tr.rrow { padding: 4px 0; }
  .rtable.offenses tbody.rgroup > tr.rrow:hover { background: none; }
  .rtable.offenses td.rname { padding-right: 44px; }
  .rtable.offenses td.rname::after { top: 20px; right: 18px; }
  .rtable.offenses tr.rdetail td { display: block; padding: 0; text-align: left; }
  .rtable.offenses tr.rdetail td::before { content: none; }
  .rd-pad { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 20px; }
}
