/* ============================================================================
   OTTi website - look: bright sky, white cards, blue glossy buttons, serif
   headings with an ornament line. Bootstrap 5 grid/utilities underneath.
   ========================================================================= */
:root {
  --sky: #eef6ff;
  --sky-2: #dcecff;
  --blue: #1f7fe0;
  --blue-2: #0b5fcf;
  --blue-3: #0a4aa6;
  --navy: #163a63;
  --ink: #26405e;
  --muted: #6c7f96;
  --line: #d6e4f3;
  --card: #ffffff;
  --gold: #e8a623;
  --ok: #19a463;
  --bad: #d9434e;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 60, 110, .12);
  --shadow-sm: 0 3px 12px rgba(20, 60, 110, .10);
  --nav-h: 88px;
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--sky);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}
body.has-hero { padding-top: 0; }
main { flex: 1 0 auto; }
a { color: var(--blue-2); }
a:hover { color: var(--blue-3); }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
img { max-width: 100%; }
::selection { background: #bfe0ff; }

/* ── loader ─────────────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at center, #fff 0%, var(--sky) 70%);
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.loader img { width: min(300px, 60vw); animation: loader-float 2.4s ease-in-out infinite; }
.loader-text { font-family: var(--serif); font-weight: 700; letter-spacing: .2em; color: var(--navy); }
.loader-text span { animation: loader-dot 1.2s infinite; opacity: 0; }
.loader-text span:nth-child(2) { animation-delay: .2s; }
.loader-text span:nth-child(3) { animation-delay: .4s; }
.loader-bar { width: min(320px, 70vw); height: 10px; border-radius: 99px; background: #d7e6f6; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
.loader-bar i {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, #4aa3ff 10px 20px);
  animation: loader-run 1.1s ease-in-out infinite;
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loader-run { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes loader-dot { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes loader-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(20, 60, 110, .10);
  backdrop-filter: blur(6px);
}
.site-nav__inner {
  max-width: 1720px; margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 44px);
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px);
}
.site-nav__logo { flex: 0 0 auto; line-height: 0; }
.site-nav__logo img { height: clamp(46px, 4vw, 62px); width: auto; filter: drop-shadow(0 2px 4px rgba(10, 40, 80, .25)); }
.site-nav__menu {
  flex: 1 1 auto; display: flex; justify-content: center; align-items: center;
  gap: clamp(14px, 2.6vw, 48px); margin: 0; padding: 0; list-style: none;
}
.site-nav__link {
  position: relative; display: block; padding: 10px 2px;
  font-weight: 500; font-size: clamp(14px, 1vw, 16px); letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; opacity: .8;
  transition: opacity .18s ease, transform .18s ease; white-space: nowrap;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .22s ease;
}
.site-nav__link:hover, .site-nav__link:focus-visible { opacity: 1; color: var(--navy); transform: translateY(-1px); outline: none; }
.site-nav__link:hover::after, .site-nav__link:focus-visible::after { transform: scaleX(.6); }
.site-nav__link.is-active { opacity: 1; }
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__drop { position: relative; }
.site-nav__sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 230px; padding: 8px; margin: 0; list-style: none;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.site-nav__drop:hover .site-nav__sub, .site-nav__drop:focus-within .site-nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.site-nav__sub a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; }
.site-nav__sub a small { display: block; color: var(--muted); font-weight: 300; font-size: 12.5px; }
.site-nav__sub a:hover { background: var(--sky); }
.site-nav__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.site-nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid rgba(28, 119, 195, .3); border-radius: 10px; background: #fff;
}
.site-nav__toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  :root { --nav-h: 68px; }
  .site-nav__inner { flex-wrap: wrap; gap: 0; }
  .site-nav__logo { min-height: var(--nav-h); display: flex; align-items: center; }
  .site-nav__logo img { height: 46px; }
  .site-nav__toggle { display: flex; }
  .site-nav__menu, .site-nav__actions {
    flex: 0 0 100%; width: 100%; flex-direction: column;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; padding: 0;
    transition: max-height .34s cubic-bezier(.4, 0, .2, 1), padding .34s, opacity .22s ease, visibility 0s linear .34s;
  }
  .site-nav__menu { gap: 4px; }
  .site-nav__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 12px; }
  .site-nav.is-open .site-nav__menu { max-height: 80vh; overflow-y: auto; padding: 10px 0; opacity: 1; visibility: visible; border-top: 1px solid var(--line); transition-delay: 0s; }
  .site-nav.is-open .site-nav__actions { max-height: 200px; padding: 12px 0 18px; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav__sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: var(--sky); margin: 4px auto 8px; text-align: center; }
  .site-nav__drop:hover .site-nav__sub, .site-nav__drop:focus-within .site-nav__sub { transform: none; }
  .site-nav__link { text-align: center; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn-rune {
  --b1: #ffffff; --b2: #e5eef8; --fg: var(--navy); --edge: #b9d3ee;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .7em 1.5em; border-radius: 12px;
  font-family: var(--sans); font-weight: 600; letter-spacing: .03em; line-height: 1.1;
  color: var(--fg); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 100%);
  border: 2px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 0 rgba(0, 40, 90, .08), 0 4px 14px rgba(20, 70, 130, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-rune:hover, .btn-rune:focus-visible { color: var(--fg); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(0,40,90,.08), 0 8px 22px rgba(20, 70, 130, .28); outline: none; }
.btn-rune:active { transform: translateY(0) scale(.98); }
.btn-rune svg { width: 1.35em; height: 1.35em; flex: 0 0 auto; }
.btn-rune.is-blue {
  --b1: #3aa1ff; --b2: #0b62d8; --fg: #fff; --edge: #7cc0ff;
  text-shadow: 0 1px 2px rgba(0, 30, 80, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 30, 90, .25), 0 4px 16px rgba(11, 98, 216, .35);
}
.btn-rune.is-blue:hover { color: #fff; filter: brightness(1.06); }
.btn-rune.is-lg { font-size: clamp(18px, 1.6vw, 26px); padding: .75em 1.8em; border-radius: 16px; min-width: min(300px, 80vw); }
.btn-rune.is-sm { font-size: 14px; padding: .5em 1em; border-radius: 999px; }
.btn-rune.is-pill { border-radius: 999px; }
.btn-rune.is-block { display: flex; width: 100%; }
.btn-rune.is-danger { --b1: #ff6b74; --b2: #c9303b; --fg: #fff; --edge: #ffa3a9; }
.btn-rune[disabled], .btn-rune.is-disabled { opacity: .55; pointer-events: none; }

/* ── headings ───────────────────────────────────────────────────────────── */
.sec-title { text-align: center; margin: 0 auto 34px; }
.sec-title h2 {
  margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05; color: var(--navy);
}
.sec-title.is-light h2 { color: #fff; text-shadow: 0 3px 12px rgba(10, 40, 80, .45); }
.sec-title p { margin: 8px 0 0; color: var(--muted); }
.sec-title.is-light p { color: rgba(255, 255, 255, .9); }
.ornament { display: block; width: 190px; height: 16px; margin: 10px auto 0; color: var(--blue); }
.sec-title.is-light .ornament { color: #fff; }

/* ── hero (home) ────────────────────────────────────────────────────────── */
/* White hero: the left side is washed-out white with the logo, text and
   buttons; the picture sits on the right behind a diagonal cut and fades
   into white at the bottom. */
.hero {
  position: relative; min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #fff;
  padding: calc(var(--nav-h) + 30px) clamp(16px, 5vw, 90px) 170px;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .28; filter: saturate(.6) blur(1px); }
.hero__art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -2;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; animation: hero-zoom 24s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .75) 34%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(0deg, var(--sky) 0%, rgba(255, 255, 255, .95) 12%, rgba(255, 255, 255, 0) 42%);
}
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 36%; width: 3px; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 127, 224, 0), rgba(31, 127, 224, .55) 30%, rgba(31, 127, 224, 0) 85%);
  transform: skewX(-12.5deg); transform-origin: top;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero__inner { width: min(620px, 100%); text-align: center; }
.hero__emblem { width: min(520px, 86vw); filter: drop-shadow(0 12px 26px rgba(10, 40, 90, .35)); }
.hero__tag {
  margin: 4px auto 0; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; line-height: 1.15;
  font-size: clamp(26px, 3vw, 44px); color: var(--blue-2);
  background: linear-gradient(180deg, #2b8cf0, #0a4aa6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { margin: 6px auto 0; max-width: 560px; color: #4a5a6c; font-weight: 400; font-size: clamp(16px, 1.35vw, 21px); }
.hero__kicker { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 0; color: var(--blue-2); font-weight: 500; font-size: clamp(14px, 1.1vw, 17px); }
.hero__kicker::before, .hero__kicker::after { content: ""; width: 44px; height: 2px; background: currentColor; opacity: .7; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
@media (max-width: 991.98px) {
  .hero { justify-content: center; padding-bottom: 150px; }
  .hero__art { width: 100%; clip-path: none; opacity: .35; }
  .hero::before { background: linear-gradient(0deg, var(--sky) 0%, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .7) 100%); }
  .hero::after { display: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 500; font-size: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(217, 67, 78, .2); }
.dot.is-up { background: var(--ok); box-shadow: 0 0 0 3px rgba(25, 164, 99, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(25, 164, 99, .05); } }

/* ── feature strip ──────────────────────────────────────────────────────── */
.feature-strip { position: relative; z-index: 2; margin-top: -110px; padding: 0 16px; }
.feature-strip__card {
  max-width: 1400px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.feature { padding: 22px 12px; text-align: center; position: relative; }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.feature svg { width: 40px; height: 40px; color: var(--navy); }
.feature b { display: block; margin-top: 8px; font-weight: 500; font-size: 17px; color: var(--navy); letter-spacing: .02em; }
.feature small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 991.98px) {
  .feature-strip__card { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4)::before { display: none; }
  .feature:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .feature-strip { margin-top: -80px; }
  .feature-strip__card { grid-template-columns: repeat(2, 1fr); }
  .feature::before { display: none; }
  .feature:nth-child(odd)::before { display: none; }
  .feature:nth-child(even)::before { display: block; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature b { font-size: 15px; }
}

/* ── generic blocks ─────────────────────────────────────────────────────── */
.block { padding: clamp(48px, 7vw, 96px) 0; }
.block.is-tight { padding: 40px 0; }
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.card-rune {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 30px); border: 1px solid rgba(255, 255, 255, .8);
}
.card-rune h3, .card-rune .card-title {
  font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 22px; margin-bottom: 14px;
}
.card-rune + .card-rune { margin-top: 24px; }
.card-rune.is-form { max-width: 720px; margin: 0 auto; }
.card-rune.is-narrow { max-width: 480px; margin: 0 auto; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* ── sub-page head ──────────────────────────────────────────────────────── */
.page-head {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(46px, 7vw, 90px) 16px clamp(70px, 9vw, 120px);
}
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 60, 130, .55) 0%, rgba(20, 90, 170, .35) 55%, var(--sky) 100%);
}
.page-head .sec-title { margin-bottom: 0; }
.page-body { margin-top: clamp(-70px, -6vw, -40px); position: relative; z-index: 1; padding-bottom: 70px; }

/* ── flash ──────────────────────────────────────────────────────────────── */
.flash-wrap { max-width: 900px; margin: 0 auto 18px; padding: 0 16px; position: relative; z-index: 3; }
.flash { padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); border-left: 5px solid var(--blue); margin-bottom: 10px; font-weight: 400; }
.flash.is-ok { border-color: var(--ok); }
.flash.is-error { border-color: var(--bad); }
body.has-hero .flash-wrap { position: absolute; top: calc(var(--nav-h) + 14px); left: 0; right: 0; }

/* ── home: news + side ──────────────────────────────────────────────────── */
.home-body__grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 991.98px) { .home-body__grid { grid-template-columns: 1fr; } }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  padding: 7px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.pill:hover { border-color: var(--blue); color: var(--blue-2); }
.pill.is-active { background: linear-gradient(180deg, #3aa1ff, #0b62d8); border-color: transparent; color: #fff; }
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 6px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none;
  transition: background .15s, padding .15s;
}
.news-row:hover { background: var(--sky); padding-left: 12px; color: var(--navy); }
.news-row[hidden] { display: none; }
.news-row__title { font-weight: 400; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row__date { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 575.98px) {
  .news-row { grid-template-columns: auto 1fr; row-gap: 6px; }
  .news-row__date { grid-column: 2; grid-row: 1; text-align: right; }
  .news-row__title { white-space: normal; grid-column: 1 / -1; grid-row: 2; }
}
.tag {
  display: inline-block; text-align: center; padding: 3px 10px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--blue);
}
.tag-update { background: linear-gradient(180deg, #3aa1ff, #0b62d8); }
.tag-event { background: linear-gradient(180deg, #ffb347, #e8871e); }
.tag-promotion { background: linear-gradient(180deg, #ff7eb3, #d83f87); }
.tag-system { background: linear-gradient(180deg, #7b8da3, #4b5d74); }
.pin { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .06em; }

.side-tiles { display: grid; gap: 16px; }
@media (max-width: 991.98px) { .side-tiles { grid-template-columns: repeat(2, 1fr); } }
.side-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy);
  border: 2px solid #fff; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.side-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3fa; color: var(--navy); }
.side-tile__icon {
  flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #3aa1ff, #0b62d8); box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.side-tile__icon svg { width: 28px; height: 28px; }
.side-tile b { display: block; font-weight: 500; font-size: 17px; }
.side-tile small { color: var(--muted); }
.side-tile.is-discord .side-tile__icon { background: linear-gradient(180deg, #7b86ff, #4f5bd5); }
.side-tile.is-facebook .side-tile__icon { background: linear-gradient(180deg, #4f9bff, #1760d0); }
.side-tile.is-donate .side-tile__icon { background: linear-gradient(180deg, #ffc857, #e8961e); }

/* ── top list ───────────────────────────────────────────────────────────── */
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.top-list li:last-child { border-bottom: 0; }
.rank {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 14px; background: var(--sky-2); color: var(--navy);
}
.rank.r1 { background: linear-gradient(180deg, #ffe07a, #e8a623); color: #5a3a00; }
.rank.r2 { background: linear-gradient(180deg, #eef2f7, #aab6c4); color: #2b3947; }
.rank.r3 { background: linear-gradient(180deg, #ffc79a, #c9773a); color: #4a2400; }
.top-list .who { flex: 1; font-weight: 500; color: var(--navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top-list .who small { display: block; font-weight: 300; color: var(--muted); }
.top-list .lv { font-weight: 500; color: var(--blue-2); white-space: nowrap; }

/* ── systems showcase (home) ────────────────────────────────────────────── */
.showcase { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #fff 60%, var(--sky) 100%); }
.showcase__stage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; min-height: 420px; }
@media (max-width: 991.98px) { .showcase__stage { grid-template-columns: 1fr; text-align: center; } }
.showcase__ribbon {
  display: inline-block; padding: 8px 48px; margin-bottom: 10px;
  font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, rgba(31, 127, 224, 0) 0%, #1f7fe0 18%, #0b5fcf 82%, rgba(11, 95, 207, 0) 100%);
  text-shadow: 0 1px 3px rgba(0, 30, 80, .4);
}
.showcase__text p { font-size: 16.5px; line-height: 1.75; color: var(--ink); max-width: 560px; }
@media (max-width: 991.98px) { .showcase__text p { margin-left: auto; margin-right: auto; } }
.showcase__text ul { padding-left: 1.1em; color: var(--ink); max-width: 560px; }
@media (max-width: 991.98px) { .showcase__text ul { text-align: left; margin: 0 auto; } }
.showcase__art { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #0d2440; }
.showcase__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; }
.showcase__art .showcase__icon {
  position: absolute; left: 50%; top: 50%; width: 38%; height: auto; transform: translate(-50%, -50%);
  object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
}
.showcase__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 40, 90, .05), rgba(10, 40, 90, .45)); pointer-events: none; }
.showcase__art .showcase__glyph { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; color: #fff; }
.showcase__art .showcase__glyph svg { width: 34%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 20, 60, .6)); }
.showcase__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.showcase__tab {
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; padding: 0;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(180deg, #fff, #dfeafa); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, color .18s, background .18s;
}
.showcase__tab svg { width: 38px; height: 38px; }
.showcase__tab:hover { transform: translateY(-3px); }
.showcase__tab.is-active { color: #fff; background: linear-gradient(180deg, #3aa1ff, #0b62d8); box-shadow: 0 0 0 4px rgba(31, 127, 224, .25), var(--shadow); }
.showcase__tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.showcase__pane[hidden] { display: none; }
.fade-in { animation: fade-in .45s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── server info + features (home) ──────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.info-cell { background: #fff; padding: 18px 14px; text-align: center; }
.info-cell span { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-cell b { display: block; margin-top: 4px; font-size: 22px; font-weight: 500; color: var(--blue-2); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  border: 2px solid #fff; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3fa; color: var(--ink); }
.feat-card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; color: #fff;
  background: linear-gradient(180deg, #3aa1ff, #0b62d8); box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.feat-card__icon svg { width: 27px; height: 27px; }
.feat-card b { font-weight: 500; font-size: 18px; color: var(--navy); }
.feat-card small { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ── roadmap ────────────────────────────────────────────────────────────── */
.roadmap { position: relative; overflow: hidden; isolation: isolate; padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 120px); }
.roadmap__bg { position: absolute; inset: 0; z-index: -2; }
.roadmap__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.roadmap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky) 0%, rgba(20, 80, 160, .55) 30%, rgba(10, 50, 110, .7) 100%); }
.road { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.road__card {
  position: relative; margin: 0 auto 36px; max-width: 520px; background: #fff; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 20, 60, .35); text-align: left;
}
.road__card::after { content: ""; position: absolute; bottom: -12px; left: var(--arrow, 50%); width: 24px; height: 24px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.road__when { display: inline-block; font-size: 13px; font-weight: 500; color: #fff; background: var(--blue); padding: 2px 10px; border-radius: 99px; }
.road__card h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 8px 0 6px; font-size: 24px; }
.road__card p { margin: 0; color: var(--ink); }
.road__line { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); }
.road__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #7cc0ff, #fff); transition: width .45s ease; }
.road__nodes { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 4%; }
.road__node {
  width: 30px; height: 30px; border-radius: 50%; border: 4px solid #fff; padding: 0;
  background: #b9cde3; box-shadow: 0 2px 8px rgba(0, 20, 60, .35); transition: transform .18s, background .18s;
}
.road__node:hover { transform: scale(1.12); }
.road__node.is-done { background: #6fb6ff; }
.road__node.is-active { background: var(--gold); transform: scale(1.25); }
.road__labels { display: flex; justify-content: space-between; padding: 12px 4% 0; }
.road__labels span { width: 30px; text-align: center; white-space: nowrap; display: flex; justify-content: center; color: #fff; font-weight: 500; font-size: 14px; text-shadow: 0 1px 4px rgba(0, 20, 60, .6); }
@media (max-width: 575.98px) { .road__labels span { font-size: 11px; } }

/* ── castles ────────────────────────────────────────────────────────────── */
.castle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.castle-card {
  background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px; border: 2px solid transparent;
}
.castle-card.is-owned { border-color: #cfe3fa; }
.castle-card .emblem { width: 36px; height: 36px; image-rendering: pixelated; border-radius: 6px; background: var(--sky); flex: 0 0 auto; }
.castle-card .emblem svg { width: 22px; height: 22px; }
.min-w-0 { min-width: 0; }
.castle-card__name { font-weight: 500; color: var(--navy); }
.castle-card__guild { color: var(--muted); font-size: 14px; }
.castle-card__guild b { color: var(--blue-2); font-weight: 500; }
.realm { margin-bottom: 28px; }
.realm h3 { font-family: var(--serif); color: var(--navy); font-weight: 700; font-size: 22px; margin-bottom: 12px; }

/* ── tables ─────────────────────────────────────────────────────────────── */
.table-rune { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-rune th {
  background: linear-gradient(180deg, #f3f8ff, #e2eefc); color: var(--navy); font-weight: 500; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table-rune th:first-child { border-top-left-radius: 12px; }
.table-rune th:last-child { border-top-right-radius: 12px; }
.table-rune td { padding: 11px 14px; border-bottom: 1px solid #edf3fa; vertical-align: middle; }
.table-rune tr:hover td { background: #f7fbff; }
.table-rune .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-rune a { color: var(--navy); font-weight: 500; text-decoration: none; }
.table-rune a:hover { color: var(--blue-2); text-decoration: underline; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ico { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
.mob-thumb { width: 44px; height: 44px; object-fit: contain; vertical-align: middle; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ── forms ──────────────────────────────────────────────────────────────── */
.form-label { font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 12px; border: 1px solid #c9dbef; padding: .65rem .9rem; font-weight: 400; color: var(--ink); background-color: #fbfdff;
}
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .22rem rgba(31, 127, 224, .18); background-color: #fff; }
.form-text { color: var(--muted); font-size: 13.5px; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: block; text-align: center; padding: .6rem; border-radius: 12px; border: 1px solid #c9dbef; background: #fbfdff; cursor: pointer; font-weight: 500; color: var(--navy); }
.seg input:checked + label { background: linear-gradient(180deg, #3aa1ff, #0b62d8); color: #fff; border-color: transparent; }
.seg input:focus-visible + label { box-shadow: 0 0 0 .22rem rgba(31, 127, 224, .25); }
.alert-rune { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; background: #fff1f2; color: #9b1c27; border: 1px solid #ffd0d4; }
.alert-rune.is-ok { background: #ecfbf3; color: #0c6b3e; border-color: #c2eed7; }
.alert-rune.is-info { background: #eef6ff; color: var(--navy); border-color: #cfe3fa; }

/* ── search bar ─────────────────────────────────────────────────────────── */
.searchbar { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin-bottom: 20px; }
@media (max-width: 767.98px) { .searchbar { grid-template-columns: 1fr; } }

/* ── pagination ─────────────────────────────────────────────────────────── */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.pager a, .pager span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 500;
}
.pager a:hover { border-color: var(--blue); color: var(--blue-2); }
.pager .is-active span { background: linear-gradient(180deg, #3aa1ff, #0b62d8); color: #fff; border-color: transparent; }
.pager .is-disabled span { opacity: .45; }

/* ── stats (item / monster / account) ───────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--sky); border-radius: 12px; padding: 10px 14px; }
.stat span { display: block; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 18px; font-weight: 500; color: var(--navy); word-break: break-word; }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.detail-head__img { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 16px; background: var(--sky); display: grid; place-items: center; }
.detail-head__img img { max-width: 80px; max-height: 80px; image-rendering: pixelated; }
.detail-head__img.is-mob img { image-rendering: auto; }
.detail-head h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 0; font-size: clamp(24px, 3vw, 34px); }
.detail-head p { margin: 2px 0 0; color: var(--muted); }
.badge-rune { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: var(--sky-2); color: var(--navy); margin: 2px 2px 2px 0; }
.badge-rune.is-mvp { background: linear-gradient(180deg, #ffe07a, #e8a623); color: #5a3a00; }
.badge-rune.is-boss { background: #ffe1e4; color: #9b1c27; }
.script { background: #0f2238; color: #cfe6ff; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ── download / donate ──────────────────────────────────────────────────── */
.dl-card { display: flex; flex-direction: column; height: 100%; text-align: center; align-items: center; }
.dl-card__icon { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3aa1ff, #0b62d8); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.dl-card__icon svg { width: 44px; height: 44px; }
.dl-card p { flex: 1; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 54px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(180deg, #3aa1ff, #0b62d8);
}
.steps li b { color: var(--navy); }
.code-box {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 16px; border-radius: 14px; background: var(--sky); border: 2px dashed #9cc8f5;
}
.code-box code { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: .08em; color: #d24b1a; background: none; }
.qr { width: 220px; border-radius: 14px; box-shadow: var(--shadow-sm); background: #fff; padding: 8px; }
.req-table td:first-child { color: var(--muted); width: 40%; }

/* ── news article ───────────────────────────────────────────────────────── */
.article h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article .body { font-size: 16.5px; line-height: 1.8; font-weight: 300; }
.article .body p { margin-bottom: 1em; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { flex-shrink: 0; background: #151a21; color: #c9d3de; text-align: center; padding: 34px 16px 30px; font-size: 13.5px; }
.site-foot img { height: 64px; width: auto; margin-bottom: 12px; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 12px; }
.site-foot nav a { color: #fff; text-decoration: none; font-weight: 400; letter-spacing: .04em; }
.site-foot nav a:hover { color: #8fc8ff; }
.site-foot p { margin: 2px 0; color: #8b98a8; }

/* ── snap nav (home) ────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1020; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #fff; background: linear-gradient(180deg, #3aa1ff, #0b62d8); color: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { width: 22px; height: 22px; }

/* icons inside text */
.card-rune h3 svg, .chip svg, .pill svg, h1 svg, h2 svg { width: 1.1em; height: 1.1em; vertical-align: -.16em; }
.chip svg { color: var(--blue-2); }

/* ── motion ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
