/*
 * Naxtia v2 — approved mockup (docs/mockups/site). Loaded last: new components (nx-*) and the
 * adjustments that bring the older ones (naxtia-*) to the same look: dark surfaces, sharp corners,
 * condensed capitals, chamfered buttons.
 */

body.naxtia-body {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  background-image: repeating-linear-gradient(0deg, rgba(140, 224, 165, 0.025) 0 1px, transparent 1px 4px);
  background-attachment: scroll;
  background-size: auto;
  background-repeat: repeat;
}

.naxtia-site__backdrop { display: none; }
.naxtia-site * { border-radius: 0 !important; }

.nx-caps { font-family: var(--naxtia-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.nx-wrap { width: min(var(--naxtia-width), 100% - 48px); margin: 0 auto; }
h1, h2, h3, h4 { letter-spacing: 0.05em; font-weight: 700; }

/* Chamfered shapes: the element is the border colour, ::before is the fill. */
.nx-cut, .nx-btn {
  position: relative;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - var(--naxtia-cut)) 0, 100% var(--naxtia-cut), 100% 100%, var(--naxtia-cut) 100%, 0 calc(100% - var(--naxtia-cut)));
  background: var(--naxtia-border);
}
.nx-cut::before, .nx-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  clip-path: inherit;
  background: var(--nx-fill, #0B1512);
}

.nx-btn {
  --naxtia-cut: 10px;
  --nx-fill: rgba(8, 17, 14, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  font-size: 18px;
  color: var(--naxtia-text);
  cursor: pointer;
  border: 0;
  transition: filter 0.12s;
}
.nx-btn:hover { filter: brightness(1.2); }
.nx-btn--primary { background: var(--naxtia-accent-bright); --nx-fill: linear-gradient(180deg, #4FA569, #2F7646); color: #F4FBF2; }
.nx-btn--small { height: 38px; padding: 0 18px; font-size: 14px; }

/* Header */
.nx-header { position: sticky; top: 0; z-index: 20; background: rgba(3, 7, 6, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--naxtia-border); }
.nx-header__row { height: 68px; display: flex; align-items: center; gap: 34px; }
.nx-header__brand img { height: 36px; display: block; }
.nx-nav { display: flex; gap: 28px; font-size: 15px; color: var(--naxtia-text-muted); }
.nx-nav a:hover, .nx-nav a.is-active { color: var(--naxtia-accent-bright); }
.nx-header__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nx-status { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--naxtia-accent-bright); border: 1px solid var(--naxtia-border); padding: 5px 12px; white-space: nowrap; }
.nx-status i { width: 8px; height: 8px; border-radius: 50% !important; background: var(--naxtia-accent-bright); box-shadow: 0 0 10px var(--naxtia-accent-bright); }
.nx-status span { color: var(--naxtia-text-muted); }
.nx-status.is-offline { color: var(--naxtia-text-muted); }
.nx-status.is-offline i { background: var(--naxtia-danger); box-shadow: none; }
.nx-header .naxtia-account { position: relative; }
.nx-header .naxtia-account__summary { font-size: 15px; color: var(--naxtia-text-muted); background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.nx-header .naxtia-account__summary:hover { color: var(--naxtia-accent-bright); }
.nx-header .naxtia-account__panel { position: absolute; right: 0; top: calc(100% + 14px); width: 320px; background: #08110E; border: 1px solid var(--naxtia-border-strong); box-shadow: var(--naxtia-shadow); padding: 20px; z-index: 30; }

/* Hero */
.nx-hero { position: relative; min-height: 720px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.nx-hero__art { position: absolute; inset: 0; background: var(--naxtia-bg-image) center 30% / cover no-repeat; }
.nx-hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(5, 11, 9, 0.15) 0, rgba(5, 11, 9, 0.8) 70%, var(--naxtia-bg) 100%), linear-gradient(0deg, var(--naxtia-bg) 0, transparent 30%); }
.nx-hero__in { position: relative; padding: 60px 0; }
.nx-hero__logo { width: min(460px, 70vw); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.8)); }
.nx-hero__tag { position: relative; font-size: 16px; color: var(--naxtia-accent-bright); margin: 34px 0 8px; }
.nx-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; max-width: 780px; margin: 0 auto; text-shadow: 0 2px 20px #000; }
.nx-hero h1 em { font-style: normal; color: var(--naxtia-accent-bright); }
.nx-hero p { max-width: 620px; margin: 18px auto 30px; color: #C3D2C5; font-size: 19px; }
.nx-hero__note { margin-top: 16px; font-size: 14px; color: var(--naxtia-text-muted); }
.nx-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nx-corner { position: absolute; width: 34px; height: 34px; border: 1px solid rgba(140, 224, 165, 0.45); }
.nx-corner--tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.nx-corner--tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; }
.nx-corner--bl { bottom: 26px; left: 26px; border-right: 0; border-top: 0; }
.nx-corner--br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }

/* Strip of numbers */
.nx-strip { border-top: 1px solid var(--naxtia-border); border-bottom: 1px solid var(--naxtia-border); background: rgba(8, 17, 14, 0.6); }
.nx-strip__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.nx-strip__row > div { padding: 22px 26px; border-left: 1px solid var(--naxtia-border); }
.nx-strip__row > div:first-child { border-left: 0; }
.nx-strip b { display: block; font: 700 30px var(--naxtia-font-display); letter-spacing: 0.04em; }
.nx-strip span { font-size: 13px; color: var(--naxtia-text-muted); }

/* Sections */
.nx-section { padding: 88px 0; }
.nx-section--tight { padding-top: 0; }
.nx-label { font-size: 14px; color: var(--naxtia-accent-bright); display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nx-label::before { content: ""; width: 26px; height: 2px; background: var(--naxtia-accent-bright); }
.nx-label i { font-style: normal; color: var(--naxtia-text-muted); }
.nx-label--centre { justify-content: center; }
.nx-section h2, .nx-pagehead h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; margin: 0; }
.nx-lead { max-width: 640px; color: var(--naxtia-text-muted); margin-top: 10px; }
.nx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.nx-feat { --naxtia-cut: 16px; padding: 26px 24px 28px; }
.nx-feat__n { font-size: 13px; color: var(--naxtia-text-muted); }
.nx-feat h3, .nx-class h3 { font-size: 26px; margin: 8px 0; color: var(--naxtia-accent-bright); }
.nx-feat p, .nx-class p, .nx-post p { font-size: 15.5px; color: #B5C4B8; line-height: 1.5; margin: 0; }
.nx-class { --naxtia-cut: 16px; padding: 26px 24px 28px; }
.nx-class h3 { color: var(--naxtia-text); margin-top: 0; }
.nx-class__role { font-size: 13px; color: var(--naxtia-accent-bright); margin-bottom: 10px; }

.nx-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.nx-post { --naxtia-cut: 16px; display: block; margin-bottom: 16px; }
.nx-post:hover { --nx-fill: #101E19; }
.nx-post__body { padding: 20px 24px; }
.nx-post h3 { font-size: 24px; letter-spacing: 0.03em; margin: 8px 0 4px; text-transform: none; }
.nx-post time, .nx-ver time { font-size: 13px; color: var(--naxtia-text-muted); margin-left: 10px; }
.nx-chip { display: inline-block; font-size: 12px; padding: 2px 10px; border: 1px solid currentColor; color: var(--naxtia-accent-bright); }
.nx-chip--fix { color: var(--naxtia-gold); }
.nx-chip--note { color: var(--naxtia-blue); }
.nx-chip--rem { color: #C9837A; }
.nx-more { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--naxtia-accent-bright); }
.nx-more::after { content: " →"; }
.nx-log { --naxtia-cut: 16px; padding: 26px 28px; }
.nx-ver { padding: 16px 0; border-top: 1px solid var(--naxtia-border); }
.nx-ver:first-of-type { border-top: 0; padding-top: 0; }
.nx-ver h3 { display: inline; font-size: 24px; letter-spacing: 0.06em; }
.nx-ver ul { list-style: none; margin: 10px 0 0; padding: 0; }
.nx-ver li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; color: #C3D2C5; padding: 4px 0; }
.nx-ver li .nx-chip { text-align: center; padding: 1px 0; }
.nx-where { font-size: 11px; color: var(--naxtia-text-muted); margin-left: 8px; }

.nx-join { text-align: center; border-top: 1px solid var(--naxtia-border); border-bottom: 1px solid var(--naxtia-border); background: radial-gradient(ellipse at 50% 0, rgba(62, 139, 85, 0.18), transparent 70%); }
.nx-join .nx-cta { margin-top: 28px; }

/* Changelog page */
.nx-timeline { display: grid; grid-template-columns: 200px 1fr; gap: 0 40px; }
.nx-timeline__when { text-align: right; padding-top: 22px; }
.nx-timeline__when b { display: block; font: 700 34px var(--naxtia-font-display); letter-spacing: 0.05em; color: var(--naxtia-accent-bright); }
.nx-timeline__when span { font-size: 14px; color: var(--naxtia-text-muted); }
.nx-timeline .nx-log { margin-bottom: 22px; }
.nx-timeline .nx-lead { grid-column: 1 / -1; }

/* Inner pages */
.nx-pagehead { padding: 60px 0 28px; border-bottom: 1px solid var(--naxtia-border); background: radial-gradient(ellipse at 20% 0, rgba(62, 139, 85, 0.16), transparent 60%); }
.nx-page.naxtia-main { width: min(var(--naxtia-width), 100% - 48px); padding: 36px 0 80px; }
.nx-page .naxtia-shell { background: none; border: 0; box-shadow: none; padding: 0; }
.nx-page .naxtia-shell__body { padding: 0; }
.naxtia-card, .naxtia-form, .naxtia-data, .naxtia-table-shell, .naxtia-news__item { border: 1px solid var(--naxtia-border); box-shadow: none; }
.naxtia-news__header { background: linear-gradient(90deg, rgba(62, 139, 85, 0.22), transparent 70%); }
.naxtia-news__body { color: var(--naxtia-text); }
.naxtia-btn { text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--naxtia-font-display); }
.naxtia-btn--primary { background: linear-gradient(180deg, #4FA569, #2F7646); border-color: var(--naxtia-accent-bright); color: #F4FBF2; }
.naxtia-btn--secondary, .naxtia-btn--ghost { background: rgba(8, 17, 14, 0.9); border: 1px solid var(--naxtia-border-strong); color: var(--naxtia-text); }
.naxtia-site input[type="text"], .naxtia-site input[type="password"], .naxtia-site input[type="email"], .naxtia-site select, .naxtia-site textarea {
  background: rgba(3, 7, 6, 0.75);
  border: 1px solid var(--naxtia-border-strong);
  color: var(--naxtia-text);
}
.naxtia-site input:focus, .naxtia-site select:focus, .naxtia-site textarea:focus { outline: 0; border-color: var(--naxtia-accent-bright); box-shadow: 0 0 0 1px var(--naxtia-accent-bright); }
.naxtia-table th { color: var(--naxtia-text-muted); }
.naxtia-table td { color: var(--naxtia-text); border-color: var(--naxtia-border); }

/* Footer */
.nx-footer { padding: 48px 0 30px; font-size: 15px; color: var(--naxtia-text-muted); border-top: 1px solid var(--naxtia-border); }
.nx-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.nx-footer__logo { height: 54px; }
.nx-footer__cols p { margin-top: 12px; max-width: 320px; }
.nx-footer h4 { font-size: 14px; color: var(--naxtia-text); margin-bottom: 12px; }
.nx-footer__cols a { display: block; padding: 3px 0; }
.nx-footer a:hover, .nx-footer__locale a.is-active { color: var(--naxtia-accent-bright); }
.nx-footer__base { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--naxtia-border); font-size: 13px; }
.nx-footer__base img { height: 22px; }
.nx-footer__legal { margin-left: auto; }
.nx-footer__locale { display: flex; gap: 10px; }
.nx-footer__custom { margin-top: 14px; font-size: 13px; }

@media (max-width: 980px) {
  .nx-nav { display: none; }
  .nx-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-two, .nx-footer__cols { grid-template-columns: 1fr; }
  .nx-strip__row { grid-template-columns: repeat(2, 1fr); }
  .nx-timeline { grid-template-columns: 1fr; }
  .nx-timeline__when { text-align: left; }
  .nx-hero { min-height: 560px; }
  .nx-status span { display: none; }
}

/* Header login card: the game's entry card on the site (same label, fields, main button, quiet links). */
.nx-btn--block { display: flex; width: 100%; }
.nx-header .naxtia-account__panel {
  width: 340px;
  padding: 24px;
  border: 0;
  box-shadow: none;
  background: var(--naxtia-border-strong);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  isolation: isolate;
}
.nx-header .naxtia-account__panel::before { content: ""; position: absolute; z-index: -1; inset: 1px; clip-path: inherit; background: #08110E; }
.nx-header .naxtia-account__panel .nx-label { margin-bottom: 16px; }
.nx-header .naxtia-field { display: grid; gap: 7px; margin: 0; }
.nx-header .naxtia-field span, .nx-header .naxtia-account__identity span { font-size: 13px; letter-spacing: 0.14em; color: var(--naxtia-text-muted); }
.nx-header .naxtia-field input { height: 46px; padding: 0 14px; font-size: 16px; width: 100%; }
.nx-header .naxtia-check { display: flex; align-items: center; gap: 10px; }
.nx-header .naxtia-check span { font-family: var(--naxtia-font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--naxtia-text-muted); }
.nx-header .naxtia-check input { accent-color: var(--naxtia-accent-bright); width: 16px; height: 16px; }
.nx-header .naxtia-account__identity strong { font-size: 16px; font-weight: 500; word-break: break-all; }
.nx-account__links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 15px; color: var(--naxtia-text-muted); }
.nx-account__links a:hover { color: var(--naxtia-accent-bright); }

/* Account area: the current item of the side menu was a light box with unreadable text. */
.naxtia-account-nav a, .naxtia-account-nav__action {
  background: var(--naxtia-card);
  border: 1px solid var(--naxtia-border);
  color: var(--naxtia-text-muted);
  font-family: var(--naxtia-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.naxtia-account-nav a:hover, .naxtia-account-nav__action:hover { color: var(--naxtia-text); border-color: var(--naxtia-border-strong); background: var(--naxtia-card-soft); }
.naxtia-account-nav a.is-active {
  background: linear-gradient(90deg, rgba(140, 224, 165, 0.16), transparent);
  border-color: var(--naxtia-border-strong);
  border-left: 3px solid var(--naxtia-accent-bright);
  color: var(--naxtia-accent-bright);
}

/* Text fields without a type attribute (character name, FAQ, search) stayed white: every text-like field is dark. */
.naxtia-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]):not([type="image"]) {
  background: rgba(3, 7, 6, 0.75);
  border: 1px solid var(--naxtia-border-strong);
  color: var(--naxtia-text);
}
.naxtia-site input[type="checkbox"], .naxtia-site input[type="radio"] { accent-color: var(--naxtia-accent-bright); }
