/* Oathfall: the pages around the database - home, classes, ranking, account (site.css holds the colours, buttons
   and the database). Winter night sections with torn edges, frost-paper sections, poster-size display type. */
:root {
  --paper: #dfe3e8;
  --paper-2: #cfd5dd;
  --ink: #18202e;
  --ink-2: #3c475c;
  --ink-3: #6b7689;
  --night-2: #0f1524;
  --blackletter: "UnifrakturMaguntia", "Old English Text MT", serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --header-h: 64px;
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .13 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --night-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .87 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.site { background: var(--night); min-height: 100vh; display: flex; flex-direction: column; }
body.site > main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 11, 19, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(132, 196, 255, .12);
}
.sh-in { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 28px); display: flex; align-items: center; gap: 22px; }
.sh-brand { display: flex; flex-direction: column; line-height: 1; color: #eef3fb !important; text-decoration: none !important; flex: none; }
.sh-mark { font-family: var(--blackletter); font-size: 30px; letter-spacing: .01em; text-shadow: 0 0 18px rgba(132, 196, 255, .35); }
.sh-sub { font-family: var(--display); font-size: 11px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.sh-nav { display: flex; align-items: center; gap: 2px; }
.sh-nav a {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: #c3cde0;
  padding: 8px 12px; border-radius: 6px; text-decoration: none; position: relative; white-space: nowrap;
}
.sh-nav a:hover { color: #fff; text-decoration: none; }
.sh-nav a.on { color: #fff; }
.sh-nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.sh-nav .sh-dl { color: var(--gold); }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sh-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sh-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.sh-status.up i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.sh-status.down i { background: var(--blood); }
.sh-status.wait i { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sh-account {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--text) !important; text-decoration: none !important; font-weight: 600; font-size: 14px;
  max-width: 190px;
}
.sh-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-account:hover, .sh-account.on { border-color: var(--ice); background: rgba(132, 196, 255, .08); }
.sh-burger { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.sh-burger span, .sh-burger span::before, .sh-burger span::after {
  position: absolute; left: 11px; width: 18px; height: 2px; background: var(--text); content: ""; border-radius: 2px;
}
.sh-burger span { top: 19px; }
.sh-burger span::before { left: 0; top: -6px; }
.sh-burger span::after { left: 0; top: 6px; }
@media (max-width: 1180px) {
  .sh-status { display: none; }
}
@media (max-width: 1100px) {
  .sh-burger { display: block; }
  .sh-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(8, 11, 19, .97); border-bottom: 1px solid var(--line); padding: 8px 12px 14px;
  }
  .site-header.open .sh-nav { display: flex; }
  .sh-nav a { padding: 12px; }
  .sh-nav a.on::after { left: 12px; right: auto; width: 28px; }
  .sh-sub { display: none; }
  .sh-account { padding: 0 10px; }
}
@media (max-width: 480px) {
  .sh-account span { display: none; }
  .sh-in { gap: 10px; }
  .sh-right { gap: 8px; }
}

/* ---------- footer ---------- */
.site-footer { background: #05070c; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.sf-in { max-width: 1200px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 32px) 40px; text-align: center; }
.sf-mark { font-family: var(--blackletter); font-size: 34px; color: #c9d4e6; }
.sf-in nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 12px 0; }
.sf-in nav a { color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.sf-in p { max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ---------- section surfaces and torn edges ---------- */
.sec { position: relative; }
.sec-night { background: var(--night-tex), radial-gradient(120% 90% at 50% 0, #121a2c 0, var(--night) 70%); color: var(--text); }
.sec-paper {
  background: var(--paper-tex), radial-gradient(130% 100% at 50% 40%, var(--paper) 0, var(--paper-2) 100%);
  color: var(--ink);
}
.sec-paper a:not(.btn) { color: #1f4f9a; }
.tear-top::before, .tear-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34px; z-index: 2; pointer-events: none;
  background: inherit; -webkit-mask: url("/assets/tear.svg") center / 100% 100% no-repeat; mask: url("/assets/tear.svg") center / 100% 100% no-repeat;
}
.tear-top::before { top: -33px; }
.tear-bottom::after { bottom: -33px; transform: scaleY(-1); }
.sec-pad { padding: clamp(64px, 9vw, 110px) 0; }

.sec-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-align: center;
  font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 8px; line-height: 1.1;
}
.sec-title::before, .sec-title::after { content: "✦"; font-size: .45em; vertical-align: middle; margin: 0 .8em; opacity: .55; letter-spacing: 0; }
.sec-paper .sec-title { color: var(--ink); }
.sec-lead { text-align: center; max-width: 680px; margin: 0 auto 34px; font-size: 17px; line-height: 1.6; }
.sec-paper .sec-lead { color: var(--ink-2); }
.sec-night .sec-lead { color: #b7c2d6; }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--ice); }

/* ---------- brush buttons ---------- */
.btn-brush {
  border-radius: 0; border: 0; min-height: 54px; padding: 0 38px; font-family: var(--display); font-size: 21px; letter-spacing: .08em;
  text-transform: uppercase; clip-path: polygon(2% 12%, 18% 4%, 40% 9%, 63% 2%, 86% 8%, 99% 3%, 97% 48%, 100% 92%, 79% 97%, 55% 91%, 31% 98%, 9% 93%, 0 97%, 3% 52%);
}
.btn-brush.btn-gold { box-shadow: none; }
.btn-ribbon {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 26px;
  font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px;
  color: var(--ink) !important; text-decoration: none !important; background: linear-gradient(#fffaf0, #efe6cf);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); transition: filter .15s, transform .15s;
}
.btn-ribbon:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sec-paper .btn-ribbon { background: linear-gradient(#232c3d, #121926); color: #f2f5fa !important; }

/* ---------- home: hero ---------- */
.hero { position: relative; background: #05070c; overflow: hidden; }
.hero-art { position: relative; width: 100%; aspect-ratio: 1672 / 941; max-height: calc(100svh - var(--header-h) + 40px); min-height: 520px; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 7, 12, .95) 0, rgba(5, 7, 12, .25) 28%, rgba(5, 7, 12, 0) 45%),
              linear-gradient(90deg, rgba(5, 7, 12, .55) 0, rgba(5, 7, 12, 0) 45%);
}
.hero-mobile-title { display: none; }
/* under the art (its logo stays clear), pulled up into the dark bottom of the picture */
.hero-cta {
  position: relative; z-index: 3; margin: clamp(-120px, -8vw, -60px) auto 0; max-width: 1200px; padding: 0 clamp(16px, 4vw, 32px) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end;
}
.hero-cta p { color: #d3dbea; font-size: 17px; line-height: 1.55; margin: 12px 0 0; max-width: 600px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.hero-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--ice); }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(5, 7, 12, .66); border: 1px solid rgba(132, 196, 255, .25); font-size: 13px; color: #d3dbea; backdrop-filter: blur(6px);
}
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.live-pill.up i { background: var(--green); box-shadow: 0 0 12px var(--green); }
.live-pill.down i { background: var(--blood); }
@media (max-width: 900px) {
  .hero-art { aspect-ratio: auto; height: 62svh; min-height: 380px; max-height: none; }
  .hero-art img { object-position: 92% 30%; }   /* the knight, not the logo baked into the art */
  .hero-art::after { background: linear-gradient(0deg, #05070c 0, rgba(5, 7, 12, .2) 40%, rgba(5, 7, 12, 0) 60%); }
  .hero-mobile-title { display: block; position: absolute; z-index: 3; left: 16px; bottom: 18px; }
  .hero-mobile-title b { display: block; font-family: var(--blackletter); font-weight: 400; font-size: clamp(54px, 15vw, 84px); line-height: .9; color: #eef3fb; text-shadow: 0 2px 0 #2a3550, 0 0 30px rgba(132, 196, 255, .4); }
  .hero-mobile-title span { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--frost); font-size: 14px; }
  .hero-cta { margin-top: 0; padding-top: 16px; grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- home: start + news ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 18px 18px 16px; border: 1px solid var(--line); background: rgba(19, 26, 43, .6); border-radius: 4px;
}
.steps li::before {
  counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--gold);
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(246, 196, 83, .4);
  transform: rotate(45deg) scale(.78);
}
.steps li > div { padding-top: 4px; }
.steps li > div > b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: .03em; }
.steps p b { color: #dfe7f5; font-weight: 600; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.h-col { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.news { display: grid; gap: 12px; }
.news article { border-left: 2px solid var(--ice-deep); padding: 4px 0 4px 16px; }
.news time { color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.news h4 { margin: 2px 0 6px; font-size: 17px; color: #eef3fb; }
.news p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card { display: block; color: inherit !important; text-decoration: none !important; transition: background .15s; }
.news-card:hover { background: rgba(132, 196, 255, .05); }
.news-card:hover h4 { color: var(--ice); }
.news-more { display: inline-block; margin-top: 6px; color: var(--ice); font-size: 13px; font-weight: 600; }
.news-all { justify-self: start; color: var(--gold) !important; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 860px) { .start-grid { grid-template-columns: 1fr; } }

/* ---------- updates page (/news/) and the about page (/about/) ---------- */
.note { scroll-margin-top: calc(var(--header-h) + 16px); border-left: 2px solid var(--ice-deep); padding: 6px 0 6px 22px; margin: 0 0 44px; }
.note:target { border-left-color: var(--gold); }
.note time { color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.note h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: .04em; margin: 4px 0 16px; color: #eef3fb; }
.note ul, .prose ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.note li, .prose li { color: #c3cde0; font-size: 16px; line-height: 1.65; }
.note li::marker, .prose li::marker { color: var(--ice); }
.prose { max-width: 860px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .06em; text-transform: uppercase; color: #eef3fb; margin: 40px 0 14px; }
.prose p { color: #c3cde0; font-size: 16px; line-height: 1.7; margin: 0 0 12px; }
.prose b { color: #eef3fb; }
.alpha-badge { display: inline-block; padding: 4px 12px; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-radius: 3px; }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.rates div { background: rgba(19, 26, 43, .7); border: 1px solid var(--line-2); border-radius: 4px; padding: 14px 16px; }
.rates b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.rates span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- home: class line cards ---------- */
.lines { display: flex; gap: 6px; height: 430px; }
.line-card {
  --c: #888; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 3px; text-decoration: none !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #0b0f18) 0, color-mix(in srgb, var(--c) 35%, #0b0f18) 70%, #0b0f18 100%);
  box-shadow: 0 14px 30px rgba(10, 14, 24, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: flex-grow .45s cubic-bezier(.2, .7, .2, 1), transform .25s;
  color: #fff !important;
}
.line-card:hover, .line-card:focus-visible { flex-grow: 2.3; }
.lc-art { position: absolute; inset: -10%; background-size: cover; background-position: center; opacity: .3; mix-blend-mode: luminosity; filter: blur(1px) saturate(.6); transition: opacity .3s; }
.line-card:hover .lc-art { opacity: .5; }
.lc-sprite { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); max-width: none; }
.lc-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 14px; text-align: center;
  background: linear-gradient(0deg, rgba(6, 9, 15, .95) 0, rgba(6, 9, 15, .75) 70%, rgba(6, 9, 15, 0));
}
.lc-name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.25vw, 18px); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; line-height: 1.1; }
.lc-res { display: block; color: color-mix(in srgb, var(--c) 55%, #fff); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; line-height: 1.25; }
.lc-tag {
  position: absolute; left: 16px; right: 16px; top: 18px; font-size: 14px; line-height: 1.45; color: #e9eef7;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s .1s, transform .3s .1s; text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.line-card:hover .lc-tag, .line-card:focus-visible .lc-tag { opacity: 1; transform: none; }
.lc-emblem { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: opacity .2s; }
.line-card:hover .lc-emblem { opacity: 0; }
@media (max-width: 980px) {
  .lines { overflow-x: auto; scroll-snap-type: x mandatory; height: 380px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .line-card { flex: 0 0 170px; scroll-snap-align: start; }
  .line-card:hover { flex-grow: 0; }
  .lc-tag { opacity: 1; transform: none; font-size: 13px; top: 70px; }
}
.lines-more { text-align: center; margin-top: 30px; }

/* ---------- home: oath band ---------- */
.oath { text-align: center; overflow: hidden; }
.oath-ghost {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-family: var(--blackletter);
  font-size: clamp(120px, 24vw, 340px); line-height: 1; color: rgba(132, 196, 255, .05); white-space: nowrap; pointer-events: none; user-select: none;
}
.oath h2 { position: relative; font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(28px, 4.6vw, 52px); margin: 0 0 14px; color: #f1f4fa; }
.oath h2 em { font-style: normal; color: var(--blood); }
.oath p { position: relative; max-width: 700px; margin: 0 auto; color: #b7c2d6; font-size: 18px; line-height: 1.65; font-family: var(--serif); }
.stats-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin-top: 34px; }
.stats-row div { text-align: center; }
.stats-row b { display: block; font-family: var(--display); font-size: 46px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.stats-row span { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- home: world features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 90px); }
.feature.flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); }
.feature.flip .feature-text { order: 2; }
.feature-text { text-align: center; }
.feature-emblem { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 6px; box-shadow: 0 10px 24px rgba(10, 14, 24, .35); }
.feature-text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink); }
.feature-text p { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 0 auto 20px; max-width: 420px; }
.feature-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  clip-path: polygon(0 2%, 7% 0, 21% 1.5%, 38% 0, 55% 2%, 72% .5%, 88% 2%, 100% 0, 99% 18%, 100% 37%, 98.8% 61%, 100% 82%, 99% 100%, 80% 98.5%, 61% 100%, 43% 98%, 24% 100%, 9% 98.4%, 0 100%, 1.2% 79%, 0 56%, 1% 33%);
  background: #0b1020; box-shadow: 0 20px 40px rgba(10, 14, 24, .3);
}
.feature-art > img.fill { width: 100%; height: 100%; object-fit: cover; }
.art-depths { background: radial-gradient(80% 70% at 50% 100%, #3b1d2e 0, #160f1f 55%, #07070d 100%); display: flex; align-items: flex-end; justify-content: center; gap: 2%; padding: 0 3% 7%; }
.art-depths::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, rgba(200, 74, 66, .25), transparent); }
.art-depths figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.art-depths img { height: clamp(70px, 11vw, 150px); width: auto; max-width: 140%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .7)); image-rendering: pixelated; }
.art-depths figure:nth-child(even) img { margin-bottom: 18px; }
.art-depths .depth-word { position: absolute; top: 8%; left: 0; right: 0; text-align: center; font-family: var(--blackletter); font-size: clamp(48px, 7vw, 96px); color: rgba(229, 185, 181, .12); line-height: 1; }
.art-depths figcaption { font-size: 11px; color: #e5b9b5; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.2; }
.art-map { background: #e9edf2; display: flex; align-items: center; justify-content: center; }
.art-map img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: saturate(.85) contrast(1.05); }
.art-map .pin { position: absolute; left: 8%; bottom: 10%; background: rgba(12, 17, 28, .82); color: #eef3fb; padding: 10px 14px; border-left: 3px solid var(--ice); font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.feature-art.art-icons { aspect-ratio: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 5px; background: #0b1020; }
.art-icons a { position: relative; display: block; aspect-ratio: 1; background: #eee8da; overflow: hidden; text-decoration: none !important; }
.art-icons img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; transition: transform .25s; }
.art-icons span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 4px 4px; font-size: 11px; line-height: 1.15; text-align: center;
  color: #f4ead2; background: linear-gradient(transparent, rgba(11, 16, 32, .88)); }
.art-icons a:hover img { transform: scale(1.1); }
.art-icons a.more { grid-column: span 2; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; background: #1b2338; }
.art-icons a.more span { position: static; background: none; padding: 8px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 560px) { .feature-art.art-icons { grid-template-columns: repeat(4, 1fr); } .art-icons a.more { grid-column: span 4; } }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}

/* ---------- top players (home + ranking) ---------- */
.podium { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; align-items: flex-end; }
.podium .pod { flex: 0 1 320px; min-width: 0; }
.pod {
  position: relative; text-align: center; padding: 20px 14px 18px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, rgba(30, 41, 67, .55), rgba(13, 18, 32, .9));
}
.pod.p1 { border-color: rgba(246, 196, 83, .55); background: linear-gradient(180deg, rgba(246, 196, 83, .14), rgba(13, 18, 32, .9)); padding-top: 30px; }
.pod .rank { position: absolute; top: 10px; left: 12px; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--muted); }
.pod.p1 .rank { color: var(--gold); }
.pod .look { height: 160px; display: flex; align-items: flex-end; justify-content: center; }
.pod .look img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.pod b { display: block; font-size: 18px; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .job { color: var(--muted); font-size: 13px; }
.pod .lv { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ice); margin-top: 4px; }
@media (max-width: 640px) { .podium .pod { flex-basis: 100%; } .pod.p1 { order: -1; } }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line-2);
  background: rgba(19, 26, 43, .7); color: #c3cde0; font-size: 14px; line-height: 1.5;
}
.notice::before { content: "❄"; color: var(--ice); font-size: 16px; line-height: 1.3; }
.notice.warn::before { content: "!"; color: var(--gold); font-weight: 700; }
.center { text-align: center; }

/* ---------- page heads (classes, ranking, account) ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(52px, 7vw, 84px); }
.page-ghost {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--blackletter); line-height: .8;
  font-size: clamp(110px, 20vw, 290px); color: rgba(132, 196, 255, .045); white-space: nowrap; pointer-events: none; user-select: none;
}
.page-head h1 {
  position: relative; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 10px;
  font-size: clamp(40px, 7vw, 82px); line-height: .95; color: #f1f4fa;
}
.page-head p { position: relative; max-width: 640px; color: #b7c2d6; font-size: 17px; line-height: 1.6; margin: 0; }
.page-head.compact { padding: clamp(28px, 4vw, 44px) 0 6px; }
.page-head.compact h1 { font-size: clamp(36px, 5vw, 60px); }
.job-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.lineup a { display: block; text-decoration: none; transition: transform .2s; }
.lineup a:hover { transform: translateY(-4px); }

/* ---------- classes page ---------- */
.line-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; position: relative; }
.line-tab {
  --c: #888; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 4px; border: 1px solid var(--line-2);
  background: rgba(19, 26, 43, .7); color: #c3cde0 !important; text-decoration: none !important; font-family: var(--display); font-weight: 700;
  font-size: 16px; letter-spacing: .03em; transition: border-color .15s, background .15s;
}
.line-tab img { width: 28px; height: 28px; border-radius: 3px; }
.line-tab:hover { border-color: var(--c); color: #fff !important; }
.line-tab.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, #0d1220); color: #fff !important; box-shadow: inset 0 -2px 0 var(--c); }
.line-hero { --c: #888; position: relative; overflow: hidden; }
.line-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 75% 60%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none; }
.line-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding-top: 34px; padding-bottom: 60px; }
.line-ghost {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-family: var(--blackletter); font-size: clamp(110px, 19vw, 260px);
  color: color-mix(in srgb, var(--c) 16%, transparent); white-space: nowrap; pointer-events: none; user-select: none; line-height: 1;
}
.line-hero h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(44px, 7vw, 88px); line-height: .92; margin: 8px 0 14px; color: #fff; }
.line-hero .res { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, #fff); }
.line-hero .res img { width: 40px; height: 40px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.line-hero p { color: #c9d2e2; font-size: 17px; line-height: 1.65; margin: 0; font-family: var(--serif); font-size: 19px; }
.lineup { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.4vw, 18px); min-height: 260px; }
.lineup::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.lineup figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; min-width: 0; flex: 0 1 auto; }
.lineup img { max-width: 100%; height: auto; }
.lineup figcaption { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lineup img { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) { .line-hero-in { grid-template-columns: minmax(0, 1fr); } .lineup { min-height: 180px; } .lineup figcaption { display: none; } }

.tree { display: grid; gap: 10px; margin-top: 8px; }
.tree-root { display: flex; justify-content: center; }
.tree-cols { display: grid; gap: 14px; }
.tree-col h4 { margin: 0 0 8px; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--ink-3); }
.tree-col .nodes { display: grid; gap: 8px; }
.node {
  --c: #888; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; width: 100%;
  padding: 8px 12px 8px 8px; border-radius: 4px; border: 1px solid rgba(24, 32, 46, .18); background: rgba(255, 255, 255, .55); color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s; font: inherit;
}
.node:hover { background: rgba(255, 255, 255, .85); transform: translateY(-1px); }
.node.on { background: #fff; border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 22px rgba(10, 14, 24, .12); }
.node .pic { height: 64px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.node .pic img { max-height: 64px; }
.node b { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.node small { display: block; color: var(--ink-3); font-size: 12px; letter-spacing: .04em; margin-top: 2px; }
.tree-root .node { max-width: 330px; }
.tree-cols.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tree-cols.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tree-cols.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .tree-cols.n2, .tree-cols.n3 { grid-template-columns: 1fr; } }

.job-panel { margin-top: 34px; }
.job-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid rgba(24, 32, 46, .15); }
.job-head .pic { width: 120px; min-height: 130px; display: flex; align-items: flex-end; justify-content: center; }
.job-head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 52px); line-height: 1; margin: 2px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.job-head .tier { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.job-head p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 780px; }
.removed { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.removed s { color: var(--ink-2); text-decoration-color: rgba(200, 74, 66, .7); }
.skill-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.skill-filter button {
  border: 1px solid rgba(24, 32, 46, .2); background: rgba(255, 255, 255, .5); color: var(--ink-2); border-radius: 999px; padding: 5px 14px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.skill-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr; } }
.skill {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 14px; border-radius: 4px;
  background: #121a2b; color: var(--text); border: 1px solid #222d46; box-shadow: 0 8px 18px rgba(10, 14, 24, .14);
}
.skill .ic { width: 56px; height: 56px; border-radius: 4px; background: #0a0f1a; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.skill .ic img { width: 56px; height: 56px; }
.skill .ic img.px { width: 48px; height: 48px; }
.skill h5 { margin: 0; font-size: 17px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.skill .badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.badge.new { color: #0b1a10; background: var(--green); }
.badge.reworked { color: #2b1d00; background: var(--gold); }
.badge.kept { color: var(--muted); border: 1px solid var(--line-2); }
.skill .meta { color: var(--muted); font-size: 12.5px; margin: 3px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.skill .desc { margin: 0; color: #c9d2e2; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.skill .lv { margin-top: 8px; font-size: 13px; color: #9fd0ff; font-variant-numeric: tabular-nums; }
.skill .lv b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.skill .req { margin-top: 6px; font-size: 12.5px; color: #e39fc3; }

/* ---------- ranking ---------- */
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.tabs button { background: transparent; border: 0; padding: 9px 18px; cursor: pointer; color: var(--muted); font-weight: 700; font-family: var(--display); font-size: 17px; letter-spacing: .05em; }
.tabs button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
.rank-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.line-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.line-chips button {
  --c: #888; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(19, 26, 43, .7); color: #c3cde0; cursor: pointer; font-size: 13px; font-weight: 600;
}
.line-chips button img { width: 22px; height: 22px; border-radius: 50%; }
.line-chips button.all { padding-left: 12px; }
.line-chips button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 24%, #0d1220); color: #fff; }
.rank-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.rank-table th { text-align: left; color: var(--faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rank-table td { padding: 8px 10px; border-bottom: 1px solid rgba(39, 50, 76, .55); vertical-align: middle; }
.rank-table tr:hover td { background: rgba(255, 255, 255, .025); }
.rank-table .n { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted); width: 48px; }
.rank-table .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-table .who .look { width: 44px; height: 58px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex: none; }
.rank-table .who .look img { max-height: 58px; }
.rank-table .who b { display: block; }
.rank-table .who small { color: var(--muted); }
.jdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); margin-right: 6px; vertical-align: middle; }
.on-dot { color: var(--green); font-size: 12px; font-weight: 700; }
.rnum { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .rank-table .hide-s { display: none; } }

/* ---------- account ---------- */
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 820px) { .auth-grid { grid-template-columns: 1fr; } }
.panel { background: linear-gradient(180deg, rgba(30, 41, 67, .55), rgba(13, 18, 32, .92)); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 30px); }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.panel > p { color: var(--muted); margin: 0 0 18px; font-size: 14px; line-height: 1.55; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: #c3cde0; margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; border-radius: 6px; border: 1px solid var(--line-2); background: #0a0f1a; padding: 0 14px; color: var(--text); outline: none;
}
.field input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(132, 196, 255, .15); }
.field input[aria-invalid="true"] { border-color: var(--blood); }
.field small { display: block; color: var(--faint); font-size: 12px; margin-top: 5px; line-height: 1.45; }
.form-error { min-height: 20px; color: #ff8a80; font-size: 14px; margin: 0 0 10px; }
.form-ok { color: var(--green); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.profile-head { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: flex-end; justify-content: space-between; }
.profile-head h1 { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-weight: 600; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 26px; }
.char {
  --c: #6b7a99; position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #111827), #0d1220 55%);
}
.char-top { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 16px 16px 12px; align-items: end; }
.char .look { min-height: 140px; display: flex; align-items: flex-end; justify-content: center; }
.char .look img { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); }
.char h3 { margin: 0; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.char .job { color: color-mix(in srgb, var(--c) 55%, #fff); font-weight: 600; font-size: 14px; }
.char .lvls { display: flex; gap: 14px; margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.char .lvls span small { font-family: var(--font); font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.badge-on { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b1a10; background: var(--green); padding: 2px 8px; border-radius: 999px; }
.char dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.char dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 16px; border-bottom: 1px solid rgba(39, 50, 76, .55); font-size: 13.5px; min-width: 0; }
.char dl > div:nth-child(odd) { border-right: 1px solid rgba(39, 50, 76, .55); }
.char dt { color: var(--muted); flex: none; }
.char dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.char .wide { grid-column: 1 / -1; border-right: 0 !important; }
.statline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.statline div { text-align: center; padding: 8px 2px; border-right: 1px solid rgba(39, 50, 76, .55); }
.statline div:last-child { border-right: 0; }
.statline small { display: block; color: var(--faint); font-size: 10px; letter-spacing: .12em; }
.statline b { font-size: 16px; font-variant-numeric: tabular-nums; }
.bars { padding: 10px 16px 4px; display: grid; gap: 6px; }
.bar { height: 8px; border-radius: 4px; background: #0a0f1a; overflow: hidden; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.bar.hp i { background: linear-gradient(90deg, #3fae5d, #7fe08f); }
.bar.sp i { background: linear-gradient(90deg, #2c64c8, #84c4ff); }
.bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gear { padding: 10px 12px 14px; display: grid; gap: 2px; }
.gear h4 { margin: 4px 4px 6px; font-size: 11px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }
.gear a { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 4px; color: var(--text) !important; text-decoration: none !important; font-size: 13.5px; min-width: 0; }
.gear a:hover { background: rgba(255, 255, 255, .05); }
.gear img { width: 24px; height: 24px; flex: none; }
.gear .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear .slot { margin-left: auto; color: var(--faint); font-size: 11px; white-space: nowrap; }
.gear .cards { color: #e39fc3; font-size: 11.5px; }
.empty-chars { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: 4px; color: var(--muted); }
.empty-chars b { display: block; font-family: var(--display); font-size: 26px; color: var(--text); margin-bottom: 6px; }
dialog.pw { background: #0f1524; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 24px; width: min(420px, calc(100vw - 32px)); }
dialog.pw::backdrop { background: rgba(0, 0, 0, .6); }

/* the database header keeps its own nav; these are the links back to the rest of the site */
.nav-global { display: flex; gap: 4px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-global a { color: var(--muted); padding: 8px 10px; border-radius: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-global a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 1100px) { .nav-global { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- depths page ---------- */
.warden { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 8px 16px 8px 8px; border: 1px solid rgba(200, 74, 66, .45); background: rgba(200, 74, 66, .08); border-radius: 4px; color: #e5c9c6; font-size: 15px; }
.warden img { width: 44px; height: 44px; border-radius: 4px; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-4 li { grid-template-columns: 1fr; gap: 6px; padding-top: 14px; }
.steps-4 li::before { width: 44px; height: 44px; font-size: 24px; }
@media (max-width: 980px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
.depth-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .depth-levels { grid-template-columns: 1fr; } }
.depth-card { position: relative; background: #121a2b; color: var(--text); border-radius: 4px; padding: 22px 20px 16px; overflow: hidden; box-shadow: 0 10px 22px rgba(10, 14, 24, .18); }
.depth-card.d2 { background: linear-gradient(180deg, #2a1830, #121a2b 70%); }
.depth-card.d3 { background: linear-gradient(180deg, #3b1820, #121a2b 70%); }
.depth-n { position: absolute; right: 14px; top: -10px; font-family: var(--blackletter); font-size: 110px; line-height: 1; color: rgba(229, 185, 181, .1); }
.depth-card h3 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
.depth-card dl { margin: 0; display: grid; gap: 6px; }
.depth-card dl > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(39, 50, 76, .7); padding-bottom: 6px; font-size: 14px; }
.depth-card dt { color: var(--muted); }
.depth-card dd { margin: 0; font-weight: 700; color: #f1c9c4; text-align: right; }
.depth-card small { display: block; margin-top: 10px; color: var(--faint); font-size: 12px; }
.signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .signs { grid-template-columns: 1fr; } }
.sign { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 4px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(24, 32, 46, .14); }
.sign img { width: 56px; height: 56px; border-radius: 4px; }
.sign b { font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.sign p { margin: 2px 0 6px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.sign .plus { font-size: 12px; font-weight: 700; color: #1f6b3a; background: rgba(111, 210, 138, .25); padding: 2px 8px; border-radius: 999px; }
.hoard-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.hoard-pick .line-chips button img { border-radius: 4px; }
.dungeons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .dungeons { grid-template-columns: 1fr; } }
.dungeon { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: linear-gradient(180deg, rgba(59, 29, 46, .55), rgba(13, 18, 32, .95) 45%); }
.dg-top { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px 18px 14px; align-items: end; }
.dg-boss { height: 130px; display: flex; align-items: flex-end; justify-content: center; }
.dg-boss img { max-width: 130px; max-height: 130px; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.dg-lv { display: inline-block; font-size: 12px; font-weight: 700; color: #2b1d00; background: var(--gold); border-radius: 999px; padding: 1px 10px; }
.dungeon h3 { margin: 6px 0 4px; font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: .03em; }
.dg-src, .dg-master, .dg-seals { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dg-master b, .dg-seals b { color: #f1c9c4; }
.dg-master small { color: var(--faint); }
.dg-block { border-top: 1px solid var(--line); padding: 12px 18px 14px; }
.dg-block h4 { margin: 0 0 8px; font-size: 11px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }
.dg-mobs { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.dg-mobs a { display: flex; align-items: flex-end; justify-content: center; width: 54px; height: 54px; border-radius: 4px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.dg-mobs a:hover { background: rgba(255, 255, 255, .08); }
.dg-mobs img { max-width: 52px; max-height: 52px; }
.dg-mobs span { font-size: 10px; color: var(--muted); text-align: center; padding: 2px; }
.dg-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
@media (max-width: 520px) { .dg-items { grid-template-columns: 1fr; } }
.dg-items a { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 4px; color: var(--text) !important; text-decoration: none !important; font-size: 13.5px; min-width: 0; }
.dg-items a:hover { background: rgba(255, 255, 255, .05); }
.dg-items img { width: 24px; height: 24px; flex: none; }
.dg-items span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-set { list-style: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 4px; background: rgba(246, 196, 83, .06); border: 1px solid rgba(246, 196, 83, .2); font-size: 13px; line-height: 1.5; }
.reward-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .reward-grid { grid-template-columns: 1fr; } }
.sec-paper .h-col { color: var(--ink); }
.reward-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.reward-list li { padding: 12px 14px; border-left: 3px solid #b0413a; background: rgba(255, 255, 255, .55); border-radius: 0 4px 4px 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.reward-list b { color: var(--ink); }
.shop-note { color: var(--ink-3); margin: -8px 0 12px; font-size: 14px; }
.shop { display: grid; gap: 6px; }
.shop-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 4px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(24, 32, 46, .12); color: var(--ink); }
.shop-row img { width: 24px; height: 24px; justify-self: center; }
.shop-row img.big { width: 32px; height: 32px; border-radius: 4px; }
.shop-row b { color: #1f4f9a; white-space: nowrap; }

/* ---------- guides (classes page) ---------- */
.guide { margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.guide-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.guide-head .kicker { color: #8a5a10; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-tabs button { border: 1px solid rgba(24, 32, 46, .2); background: rgba(255, 255, 255, .5); color: var(--ink-2); border-radius: 4px; padding: 8px 14px; font-family: var(--display); font-weight: 700; font-size: 16px; cursor: pointer; }
.guide-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-card { background: #fff; border-radius: 4px; box-shadow: 0 14px 30px rgba(10, 14, 24, .12); border: 1px solid rgba(24, 32, 46, .1); overflow: hidden; color: var(--ink); }
.guide-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid rgba(24, 32, 46, .1); }
@media (max-width: 860px) { .guide-top { grid-template-columns: 1fr; } }
.guide-top > div { padding: 20px 22px; }
.guide-top > div + div { border-left: 1px solid rgba(24, 32, 46, .1); }
@media (max-width: 860px) { .guide-top > div + div { border-left: 0; border-top: 1px solid rgba(24, 32, 46, .1); } }
.guide-role { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 0 0 10px; }
.guide-meta { margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.guide-meta b { color: var(--ink); }
.guide h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th { text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; padding: 0 0 6px; }
.stat-table td { padding: 5px 0; border-top: 1px solid rgba(24, 32, 46, .08); vertical-align: middle; }
.stat-table td:first-child { width: 48px; font-weight: 700; }
.stat-table td.lvl { text-align: center; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 64px; }
.stat-table th.lvl { text-align: center; }
.stat-bar { display: flex; align-items: center; gap: 8px; }
.stat-bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c, #c8463c), color-mix(in srgb, var(--c, #c8463c) 55%, #fff)); min-width: 4px; }
.stat-foot { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.guide-steps { padding: 18px 22px 8px; display: grid; gap: 16px; }
.g-step { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 700px) { .g-step { grid-template-columns: 1fr; gap: 8px; } }
.g-job { display: flex; align-items: center; gap: 10px; }
.g-job .pic { width: 48px; height: 56px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex: none; }
.g-job .pic img { max-height: 56px; }
.g-job b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.1; }
.g-job small { color: var(--ink-3); font-size: 12px; }
.g-skills { display: flex; flex-wrap: wrap; gap: 6px; counter-reset: gs; }
.g-skill { counter-increment: gs; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #f1f3f7; border: 1px solid rgba(24, 32, 46, .1); font-size: 13px; color: var(--ink); }
.g-skill img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.g-skill img.px { border-radius: 4px; width: 24px; height: 24px; }
.g-skill::before { content: counter(gs); order: -1; font-size: 10px; font-weight: 700; color: var(--ink-3); margin-left: 5px; }
.g-skill em { font-style: normal; font-weight: 700; color: #8a5a10; }
.guide-tips { padding: 14px 22px 20px; border-top: 1px solid rgba(24, 32, 46, .1); background: #fbfaf6; }
.guide-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.basics { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .basics { grid-template-columns: 1fr; } }
.basics > div { background: rgba(255, 255, 255, .55); border: 1px solid rgba(24, 32, 46, .12); border-radius: 4px; padding: 16px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.basics dl { margin: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; }
.basics dt { font-weight: 700; color: var(--ink); }
.basics dd { margin: 0; }
.basics ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.guide-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff !important; font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 8px 14px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--c, #888) 70%, #fff); background: color-mix(in srgb, var(--c, #888) 28%, transparent); text-decoration: none !important; }
.guide-link:hover { background: color-mix(in srgb, var(--c, #888) 45%, transparent); }

/* ---------- download page (/download/) ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 860px; }
.dl-card { position: relative; background: rgba(19, 26, 43, .75); border: 1px solid var(--line-2); border-radius: 6px; padding: 24px 22px 22px; }
.dl-card h3 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 8px; color: #eef3fb; }
.dl-card p { color: #b7c2d6; font-size: 15px; line-height: 1.55; margin: 0 0 18px; min-height: 3.1em; }
.dl-card.off { opacity: .6; }
.dl-card .btn[aria-disabled] { cursor: default; pointer-events: none; }
.dl-icon { font-size: 30px; color: var(--gold); line-height: 1; }
.dl-meta { color: var(--muted); font-size: 14px; margin: 14px 0 0; min-height: 1.4em; }

/* ---------- account: sign-up helpers, recovery code ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; color: var(--faint); cursor: pointer; border-radius: 4px; }
.pw-eye:hover, .pw-eye.on { color: var(--ice); }
.meter { display: block; height: 4px; margin-top: 7px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.meter.s0 i { width: 12%; background: #ff8a80; }
.meter.s1 i { width: 38%; background: #ffb74d; }
.meter.s2 i { width: 70%; background: #d8c25a; }
.meter.s3 i { width: 100%; background: #7fd6a1; }
.meter.empty i { width: 0; }
.field small.ok { color: #7fd6a1; }
.field small.bad { color: #ff8a80; }
.link-back { color: var(--ice) !important; font-size: 14px; margin-left: 6px; }
.auth-grid.one { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .auth-grid.one { grid-template-columns: 1fr; } }
.panel.side h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 8px; color: #eef3fb; }
.panel.side p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.code-input { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.code-panel { max-width: 620px; }
.code-box { margin: 6px 0 14px; padding: 18px; text-align: center; background: #0a0f1b; border: 1px dashed var(--gold); border-radius: 6px; }
.code-box code { font-family: ui-monospace, Consolas, monospace; font-size: clamp(20px, 4vw, 28px); letter-spacing: .12em; color: var(--gold); user-select: all; word-break: break-all; }
.ack { display: flex; gap: 8px; align-items: center; margin: 14px 0 16px; color: #c3cde0; font-size: 14px; cursor: pointer; }
.ack input { width: 18px; height: 18px; accent-color: var(--gold); }
.dlg-lead { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
dialog.code-dialog { width: min(520px, calc(100vw - 32px)); }
