* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #d7dfe9;
  background:
    radial-gradient(circle at top, rgba(91, 158, 181, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1017 0, #111821 180px, #151d27 100%),
    #151d27;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 4px);
  opacity: 0.22;
}

a {
  color: #e06b59;
  text-decoration: none;
}

a:hover {
  color: #ff8e76;
  text-decoration: underline;
}

img { max-width: 100%; display: block; }
.site-wrap { min-height: 100vh; position: relative; z-index: 1; }
.container { width: min(1170px, calc(100% - 30px)); margin: 0 auto; }

.header-top {
  background: linear-gradient(180deg, #313844, #252b34);
  border-bottom: 1px solid #0c1016;
  box-shadow: inset 0 -1px 0 rgba(97, 186, 220, 0.18);
}

.small-topline {
  padding: 8px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bcc8d6;
}

.banner-shell { margin-top: 14px; }

.banner-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #667281;
  background: #0e141c;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(150, 196, 218, 0.13),
    0 1px 4px rgba(0,0,0,0.4);
}

.banner-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(88, 179, 212, 0.28);
  pointer-events: none;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-left: 1px solid rgba(224, 107, 89, 0.16);
  border-top: 1px solid rgba(224, 107, 89, 0.16);
  pointer-events: none;
}

.banner-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.banner-grid {
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(rgba(117, 202, 221, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 202, 221, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.banner-overlay {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  padding: 16px 18px 14px;
  color: #f1f6fb;
  background: linear-gradient(180deg, rgba(23, 30, 39, 0.82), rgba(18, 24, 31, 0.88));
  border: 1px solid rgba(104, 191, 220, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.banner-kicker {
  margin: 0 0 6px;
  color: #7ed7e4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.banner-overlay h1 {
  margin: 0 0 4px;
  font-size: 34px;
  color: #ffffff;
}

.banner-overlay p { margin: 0; }

.main-nav {
  margin-top: 12px;
  background: linear-gradient(180deg, #2a313d, #202630);
  border-top: 1px solid #708091;
  border-bottom: 1px solid #10151b;
  box-shadow:
    inset 0 1px 0 rgba(138, 197, 223, 0.18),
    inset 0 -1px 0 rgba(0,0,0,0.45);
}

.nav-inner { display: flex; flex-wrap: wrap; }

.main-nav a {
  display: inline-block;
  padding: 11px 16px;
  color: #edf3f8;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.main-nav a:hover {
  background: linear-gradient(180deg, #31404d, #27323f);
  color: #fff;
  text-decoration: none;
}

.sub-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 0;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(111, 133, 153, 0.66);
  background: linear-gradient(180deg, #242d38, #1a212a);
  color: #bcd3df;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-content {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  padding: 20px 0 36px;
}


.content-area,
.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.content-box {
  position: relative;
  background: linear-gradient(180deg, #202a35, #1a222c);
  border: 1px solid #6f7c8b;
  box-shadow:
    inset 0 0 0 1px rgba(165, 210, 229, 0.12),
    0 1px 3px rgba(0,0,0,0.35);
}

.content-box::before,
.content-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.content-box::before {
  top: 3px;
  left: 3px;
  border-top: 1px solid rgba(120, 209, 220, 0.42);
  border-left: 1px solid rgba(120, 209, 220, 0.42);
}

.content-box::after {
  right: 3px;
  bottom: 3px;
  border-right: 1px solid rgba(224, 107, 89, 0.32);
  border-bottom: 1px solid rgba(224, 107, 89, 0.32);
}

.post-box,
.side-box { padding: 0; }

.module-head,
.side-head,
.mode-head {
  position: relative;
  padding: 11px 14px 10px;
  background: linear-gradient(180deg, #364150, #29323e);
  border-bottom: 1px solid #11161d;
  box-shadow: inset 0 1px 0 rgba(169, 208, 227, 0.18);
}

.module-head::after,
.side-head::after,
.mode-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(105, 209, 221, 0.22);
}

.module-head::before,
.side-head::before,
.mode-head::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 26px;
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(126, 215, 228, 0.9), rgba(126, 215, 228, 0.2));
  opacity: 0.8;
}

.module-tag {
  display: inline-block;
  margin-bottom: 4px;
  color: #74d4e2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.module-head h2,
.side-head,
.mode-head h3 {
  margin: 0;
  color: #f2f7fb;
}

.module-head h2 { font-size: 26px; }
.side-head { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.mode-head h3 { font-size: 22px; }

.module-body,
.side-box > p,
.side-box > ul,
.side-box > ol,
.mode-body {
  padding: 18px 20px;
}

.tech-panel {
  background:
    linear-gradient(180deg, rgba(85, 146, 170, 0.03), transparent 36%),
    linear-gradient(90deg, rgba(126, 215, 228, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(126, 215, 228, 0.03) 1px, transparent 1px);
  background-size: auto, 12px 12px, 12px 12px;
}

.mode-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mode-card {
  position: relative;
  border: 1px solid #5d6874;
  background: linear-gradient(180deg, #18212b, #121921);
  box-shadow: inset 0 0 0 1px rgba(135, 191, 216, 0.08);
}

.mode-body p:first-child,
.module-body p:first-child,
.side-box p:first-child,
.side-box ul:first-child,
.side-box ol:first-child { margin-top: 0; }
.mode-body p:last-child,
.module-body p:last-child,
.side-box p:last-child,
.side-box ul:last-child,
.side-box ol:last-child { margin-bottom: 0; }

.mag-panel-body {
  position: relative;
}

.mag-panel-body::after {
  content: "PB / IQ / SYNCHRO";
  display: inline-block;
  margin-top: 8px;
  color: rgba(126, 215, 228, 0.7);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.feature-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding: 0 0 0 24px;
}
.feature-list li + li { margin-top: 8px; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid #76d5e1;
  background: linear-gradient(135deg, rgba(118, 213, 225, 0.32), rgba(224, 107, 89, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.compact-list li + li { margin-top: 7px; }

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.class-card {
  position: relative;
  border: 1px solid #5f6a77;
  background: linear-gradient(180deg, #17202a, #121a22);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(135, 191, 216, 0.08);
}

.class-card::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  opacity: 0.45;
}

.class-card.hunter { border-top: 3px solid #dd7750; color: #f2aa8d; }
.class-card.ranger { border-top: 3px solid #70c9d8; color: #90e5ef; }
.class-card.force  { border-top: 3px solid #c589e8; color: #dfb9f5; }

.class-title {
  margin-bottom: 10px;
  color: #f5f9fd;
  font-size: 21px;
  font-weight: 700;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-top: 1px solid rgba(130, 153, 176, 0.18);
}

.stat-row:first-of-type { border-top: 0; }
.stat-row span { color: #8dcfda; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-row strong { color: #f2f7fb; }
.class-weapons { margin: 12px 0 0; color: #bfcad6; font-size: 13px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure,
.sidebar-gallery-stack figure {
  position: relative;
  margin: 0;
  border: 1px solid #56616d;
  background: #131a22;
  box-shadow: inset 0 0 0 1px rgba(129, 188, 217, 0.08);
}


.gallery-grid img,
.sidebar-gallery-stack img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #43515e;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sidebar-gallery-stack figure {
  overflow: visible;
}

.sidebar-gallery-stack img {
  aspect-ratio: unset;
  object-fit: unset;
  background: #0f151c;
}

.gallery-grid figcaption,
.sidebar-gallery-stack figcaption {
  padding: 9px 11px;
  font-size: 12px;
  color: #b7c4d1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-gallery-stack {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-box {
  border: 1px solid #56616d;
  background: linear-gradient(180deg, #151d26, #10161d);
  padding: 10px 12px;
}

.mini-box span {
  display: block;
  margin-bottom: 4px;
  color: #86d7df;
  font-size: 11px;
  text-transform: uppercase;
}

.mini-box strong {
  color: #f4f8fb;
  font-size: 18px;
}

.data-list,
.side-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.data-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(128, 151, 175, 0.18);
}

.data-list li:first-child { border-top: 0; }
.data-list span { color: #88d0db; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.data-list strong { color: #eef4f8; text-align: right; font-size: 12px; }

.side-steps { counter-reset: steps; }
.side-steps li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid rgba(128, 151, 175, 0.18);
}
.side-steps li:first-child { border-top: 0; }
.side-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 8px;
  width: 17px;
  height: 17px;
  border: 1px solid #62bfcd;
  color: #9eeaf2;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  background: #172028;
}

code {
  background: #11181f;
  border: 1px solid #42515f;
  color: #d9edf7;
  padding: 1px 5px;
  font-family: Consolas, monospace;
  font-size: 0.95em;
}

.site-footer {
  padding: 0 0 28px;
}

.site-footer p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(104, 120, 138, 0.5);
  background: linear-gradient(180deg, rgba(31, 41, 52, 0.88), rgba(24, 31, 39, 0.88));
  color: #aebccb;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .page-content { grid-template-columns: 1fr; }
  .mode-split,
  .class-grid,
  .gallery-grid,
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(1170px, calc(100% - 20px)); }
  .banner-image { height: 190px; }
  .banner-overlay {
    position: static;
    margin-top: 8px;
  }
  .banner-overlay h1 { font-size: 28px; }
  .mode-split,
  .class-grid,
  .gallery-grid,
  .mini-grid { grid-template-columns: 1fr; }
}
