:root {
  --bg: #110a17;
  --bg-2: #1b1024;
  --panel: #dab579;
  --panel-soft: #c9a168;
  --panel-dark: rgba(16, 9, 22, 0.88);
  --text: #ffffff;
  --ink: #0b0a0c;
  --muted: #c8c1cc;
  --muted-ink: #5c4229;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(0, 0, 0, 0.16);
  --green: #43f398;
  --button-primary: url("assets/narutibia_buttons/Green_Button_6px.png");
  --button-primary-hover: url("assets/narutibia_buttons/Green_Button_Hover_6px.png");
  --button-primary-pressed: url("assets/narutibia_buttons/Green_Button_Pressed_6px.png");
  --button-secondary: url("assets/narutibia_buttons/Dark_Button_6px.png");
  --button-secondary-hover: url("assets/narutibia_buttons/Dark_Button_Hover_6px.png");
  --button-secondary-pressed: url("assets/narutibia_buttons/Dark_Button_Pressed_6px.png");
  --client-panel-black: url("api/ui-asset.php?asset=panel-black");
  --client-panel-content: url("api/ui-asset.php?asset=panel-content");
  --client-panel-content-small: url("api/ui-asset.php?asset=panel-content-small");
  --client-panel-frame: url("api/ui-asset.php?asset=panel-frame");
  --home-claim-panel: url("assets/home/first_section_background_12px.png");
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 10, 23, 0.15), var(--bg) 46%),
    url("assets/figma/hero-sns.png") top center / min(1728px, 140vw) auto no-repeat;
  opacity: 0.18;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: #fff;
  background: var(--button-secondary) center / 100% 100%;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--panel-soft);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4.3vw, 75px);
  min-height: 72px;
  padding: 0 6.5vw;
  background:
    linear-gradient(180deg, rgba(23, 12, 31, 0.94), rgba(27, 16, 36, 0.84)),
    url("assets/figma/header-texture.png") center / cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.figma-header {
  position: absolute;
  right: 0;
  left: 0;
  min-height: clamp(84px, 7.64vw, 132px);
  background: url("assets/figma/header-texture.png") center top / 100% 100%;
  border-bottom: 0;
  box-shadow: none;
}

body[data-page="home"] .figma-header {
  position: absolute;
  top: 0;
  background-color: transparent;
}

body[data-page="home"] .home-main { position: relative; }

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(112px, 9.15vw, 158px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-mark,
.brand strong,
.brand small {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 5.72vw, 99px);
  min-width: 0;
  color: #fff;
  font-size: clamp(0.58rem, 0.75vw, 0.82rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.86);
}

.primary-nav a:hover,
.primary-nav a.active {
  color: #fff;
}

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: block; }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: 0.35rem;
  transform: translateX(-50%);
  background: rgba(17, 10, 23, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { opacity: 1; pointer-events: auto; }
.nav-submenu-item { position: relative; }
.nav-submenu a { display: block; padding: 0.7rem 0.8rem; color: #fff; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { background: var(--button-secondary-hover) center / 100% 100%; }
.nav-submenu-nested {
  position: absolute;
  top: -0.35rem;
  left: calc(100% - 1px);
  display: grid;
  min-width: 210px;
  padding: 0.35rem;
  background: rgba(17, 10, 23, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.nav-submenu-item:hover .nav-submenu-nested,
.nav-submenu-item:focus-within .nav-submenu-nested {
  opacity: 1;
  pointer-events: auto;
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  background-image: var(--button-secondary);
  text-transform: uppercase;
}

.texture-button,
.button,
.tab {
  --control-rest: url("assets/narutibia_buttons/Beige_Button_6px.png");
  --control-hover: url("assets/narutibia_buttons/Beige_Button_Hover_6px.png");
  --control-pressed: url("assets/narutibia_buttons/Beige_Button_Pressed_6px.png");
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 43px;
  padding: 0.55rem 0.9rem;
  color: #120d08;
  background: transparent;
  border: 6px solid transparent;
  border-image: var(--control-rest) 6 fill / 6px / 0 stretch;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.texture-button-primary,
.button.primary,
.button-login {
  --control-rest: var(--button-primary);
  --control-hover: var(--button-primary-hover);
  --control-pressed: var(--button-primary-pressed);
  color: #fff;
}

.button.secondary,
.texture-button-secondary,
.tab.active {
  --control-rest: var(--button-secondary);
  --control-hover: var(--button-secondary-hover);
  --control-pressed: var(--button-secondary-pressed);
  color: #fff;
}

.button.danger {
  --control-rest: url("assets/narutibia_buttons/Red_Button_6px.png");
  --control-hover: url("assets/narutibia_buttons/Red_Button_Hover_6px.png");
  --control-pressed: url("assets/narutibia_buttons/Red_Button_Pressed_6px.png");
  color: #fff;
}

:is(.texture-button, .button, .tab):is(:hover, :focus-visible) {
  border-image-source: var(--control-hover);
}

:is(.texture-button, .button, .tab):active {
  border-image-source: var(--control-pressed);
}

:is(.texture-button, .button, .tab):focus-visible {
  outline: 2px solid #d8b46a;
  outline-offset: 3px;
}

.button-login {
  width: clamp(150px, 12.44vw, 215px);
  height: 56px;
  flex: 0 0 auto;
}

.home-hero {
  position: relative;
  min-height: clamp(568px, 43.75vw, 756px);
  overflow: hidden;
  isolation: isolate;
  background: #d56d61;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: layout paint;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.hero-scene.is-ready {
  opacity: 1;
}

.hero-layer,
.hero-birds,
.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero-layer {
  display: block;
  height: auto;
  image-rendering: pixelated;
}

.hero-layer-sky {
  z-index: 0;
}

.hero-layer-z5 {
  z-index: 1;
}

.hero-clouds {
  z-index: 2;
  right: 0;
  background-image: url("api/parallax-asset.php?layer=clouds");
  background-repeat: repeat-x;
  image-rendering: pixelated;
}

.hero-layer-z4 {
  z-index: 3;
}

.hero-layer-z3 {
  z-index: 4;
}

.hero-birds {
  z-index: 5;
  display: block;
  image-rendering: pixelated;
}

.hero-layer-z2 {
  z-index: 6;
}

.hero-layer-z1 {
  z-index: 7;
  filter: saturate(1.04) contrast(1.02);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(180deg, transparent 0 73%, rgba(17, 10, 23, 0.7) 93%, var(--bg) 100%);
  pointer-events: none;
}

.hero-action-pair {
  position: absolute;
  left: 50%;
  top: clamp(335px, 24.8vw, 429px);
  z-index: 20;
  display: flex;
  gap: clamp(1.1rem, 1.55vw, 27px);
  transform: translateX(-50%);
}

.server-status-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: clamp(96px, 8.1vw, 140px);
  align-items: end;
  padding: 0 6.1vw clamp(21px, 2.2vw, 39px);
  background: url("assets/figma/status-band.png") center / 100% 100%;
  color: #fff;
  font-size: clamp(0.62rem, 0.92vw, 1rem);
  text-align: center;
  text-transform: uppercase;
}

.server-status-bar p {
  margin: 0;
}

.server-status-bar strong {
  color: var(--green);
}

.server-status-bar .is-offline {
  color: #ff7468;
}

.content-band {
  width: min(1528px, calc(100% - 10vw));
  margin: 0 auto;
  padding: clamp(45px, 4.3vw, 74px) 0;
}

.home-frame {
  width: 100%;
  margin: 0;
  padding: clamp(45px, 4.3vw, 74px) 0;
  background: #090d0d;
}

.home-frame > .feature-row,
.home-frame > .path-row,
.home-frame > .home-lower {
  width: min(1528px, calc(100% - 10vw));
  margin-right: auto;
  margin-left: auto;
}

.home-frame > .feature-row,
.home-frame > .path-row {
  width: min(1920px, calc(100% - 3vw));
}

.home-frame > .feature-row {
  gap: clamp(0.5rem, 0.8vw, 16px);
}

.feature-row,
.news-grid,
.shop-grid,
.guild-grid,
.download-layout,
.feature-list,
.jutsu-grid {
  display: grid;
  gap: clamp(1rem, 2.9vw, 50px);
}

.feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-card {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.6rem);
  min-height: clamp(200px, 15.6vw, 306px);
  padding: clamp(30px, 3vw, 54px) clamp(18px, 1.6vw, 32px);
  color: #d8bd80;
  border: 12px solid transparent;
  border-image-source: var(--home-claim-panel);
  border-image-slice: 12 fill;
  border-image-width: 12px;
  border-image-repeat: stretch;
  background: #0e1110;
  image-rendering: pixelated;
}

.server-card-art,
.news-thumb {
  display: block;
  image-rendering: pixelated;
}

.news-thumb {
  width: 76px;
  min-height: 130px;
}

.server-card-art {
  width: min(150px, 100%);
  height: clamp(112px, 9vw, 168px);
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-self: center;
}

/* ── Path card sprite ──
   NOTE: intentionally NOT a flex item with align-items:stretch anywhere
   in its ancestry — a fixed-height/width:auto <img> inside a stretched
   flex column can get its width force-stretched in some engines,
   which is what caused the oversized/smeared kanji bug. Grid + block
   layout only, with explicit max-width/max-height belts-and-braces. */
.path-card-sprite {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(180px, 17vw, 250px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  align-self: center;
  justify-self: center;
}

.path-card-body {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 110px;
  margin-left: -20px;
}

.path-card-body > * + * {
  margin-top: 0.3rem;
}

/* Pixel-art kanji icon image */
.path-card-kanji-icon {
  display: block;
  height: clamp(36px, 6vw, 36px);
  width: auto;
  max-width: 70%;
  image-rendering: pixelated;
}

.compact-news h3 {
  margin: 0;
  color: #1a0d03;
  font-size: clamp(0.75rem, 0.92vw, 1.05rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.compact-news p {
  margin: 0;
  color: #2a1a0a;
  font-size: clamp(0.68rem, 0.86vw, 0.96rem);
  line-height: 1.3;
}

/* Class name takes the class's own colour (set inline as --card-color) */
.path-card h3 {
  margin: 0;
  color: var(--card-color, #1a0d03);
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.path-card p {
  margin: 0;
  color: #2a1a0a;
  font-size: clamp(0.82rem, 0.95vw, 1.05rem);
  line-height: 1.35;
}

.server-card h3 {
  margin-bottom: clamp(0.7rem, 1vw, 1.15rem);
  color: #d8bd80;
  font-size: clamp(0.86rem, 1.18vw, 1.45rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505;
}

.server-card p {
  margin: 0;
  color: #d8bd80;
  font-size: clamp(0.78rem, 1vw, 1.2rem);
  line-height: 1.35;
  text-shadow: 2px 2px 0 #050505;
}

/* ── Choose Your Path row: TWO separate boxes ──
   1) .path-intro-scroll — standalone scroll, detached
   2) .path-cards-group  — standalone bordered strip of 4 cards
   These are siblings with a visible gap between them, NOT one fused grid. */
.path-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(32px, 2.9vw, 50px);
}

/* ── Standalone scroll column ── */
.path-intro-scroll {
  position: relative;
  flex: 0 0 clamp(100px, 9.5vw, 150px);
  overflow: hidden;
  image-rendering: pixelated;
}

.path-intro-scroll-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
}

.path-intro-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  display: block;
  color: #0f1011;
  font-size: clamp(0.62rem, 0.8vw, 0.9rem);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* ── 4-card group: plain dark container, NO website-standard panel frame.
   Each card below carries the parchment asset; the gaps show this dark. ── */
.path-cards-group {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 0;
  background: #0f1011;
}

/* Each class card carries main_content_background.png as its own background.
   Native asset is 426x115; drawn at a clean 4x integer scale (1704x460),
   no-repeat, so there is no stretching and no tiling seam. */
.path-card {
  position: relative;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: clamp(0.6rem, 1vw, 1.2rem);
  min-height: clamp(240px, 22vw, 340px);
  /* Breathing room INSIDE the card — the parchment background still
     fills this padding, so the spacing shows the texture, not a gap. */
  padding: clamp(26px, 2.6vw, 44px) clamp(16px, 1.6vw, 28px);
  align-items: center;
  overflow: hidden;
  color: #2a1a0a;
  /* 4x integer scale (1704x460). Each card is offset by its index so the
     four cards together read as one continuous strip instead of four
     identical crops. */
  background:
    url("assets/images/skills/main_content_background.png")
      calc(var(--i, 0) * -426px) center / 1704px 460px no-repeat,
    #d4b27c;
  image-rendering: pixelated;
  border: 0;
}

/* Class background art — inset to the card's padding so the FULL artwork
   is visible inside the padded area, uniformly scaled, never cropped. */
.path-card::before {
  content: "";
  position: absolute;
  inset: clamp(26px, 2.6vw, 44px) clamp(16px, 1.6vw, 28px);
  background: var(--card-bg, none) center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.home-lower {
  display: grid;
  grid-template-columns: 504px minmax(0, 1fr);
  gap: 48px;
  margin-top: clamp(48px, 6vw, 90px);
}

.panel,
.news-card,
.shop-card,
.guild-card,
.download-card,
.feature-card,
.jutsu-card,
.profile-card,
.event-panel,
.dashboard-preview,
.form-panel,
.table-wrap,
.library-layout > article {
  color: var(--ink);
  background: var(--panel);
  border: 8px solid transparent;
  border-image: var(--client-panel-content-small) 8 fill / 8px / 0 stretch;
  border-radius: 0;
  box-shadow: none;
}

.panel {
  min-height: 589px;
  padding: 28px 29px;
}

.home-lower > .panel {
  color: #d8bd80;
  border: 16px solid transparent;
  border-image-source: var(--client-panel-frame);
  border-image-slice: 16 fill;
  border-image-width: 16px;
  border-image-repeat: stretch;
  background: #0c1215;
  image-rendering: pixelated;
}

.home-lower > .panel h2 {
  color: #d8bd80;
}

.compact-news-list {
  display: grid;
  gap: 14px;
}

.compact-news {
  display: grid;
  grid-template-columns: 119px minmax(0, 1fr);
  gap: 15px;
  min-height: 122px;
  padding: 11px 13px;
  border: 8px solid transparent;
  border-image-source: var(--client-panel-content-small);
  border-image-slice: 8 fill;
  border-image-width: 8px;
  border-image-repeat: stretch;
  background: #d4b27c;
  image-rendering: pixelated;
}

.news-thumb {
  width: 119px;
  height: 100px;
  min-height: 100px;
  grid-row: span 2;
  object-fit: cover;
  border: 2px solid #4e341d;
  background: #241c18;
}

.panel-action {
  display: flex;
  width: 215px;
  height: 56px;
  margin: 38px auto 0;
}

.map-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 490px;
  border: 6px solid transparent;
  border-image-source: var(--client-panel-black);
  border-image-slice: 6;
  border-image-width: 6px;
  border-image-repeat: stretch;
  background: #11181c;
  image-rendering: pixelated;
}

.map-toolbar,
.map-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #201710;
  background: #cfad75;
}

.map-toolbar {
  min-height: 42px;
  padding: 5px 7px 5px 12px;
  border-bottom: 3px solid #251a13;
}

.map-source-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-controls {
  display: flex;
  gap: 4px;
}

.map-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  color: #fff;
  background: var(--button-secondary) center / 100% 100%;
  border: 0;
  box-shadow: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.map-controls .map-reset {
  min-width: 76px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.map-controls button:hover,
.map-controls button:focus-visible {
  color: #fff;
  background: var(--button-primary-hover) center / 100% 100%;
  outline: 2px solid #d8bd80;
  outline-offset: 1px;
}

.map-viewport {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #376d9f;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.map-viewport:focus-visible {
  outline: 3px solid #e2c486;
  outline-offset: -3px;
}

.world-map-image {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  image-rendering: pixelated;
}

.map-readout {
  min-height: 30px;
  padding: 5px 10px;
  border-top: 3px solid #251a13;
  font-size: 0.63rem;
  font-weight: 700;
}

.map-readout span:last-child {
  opacity: 0.72;
}

.page-hero,
.shop-hero {
  min-height: 380px;
  display: flex;
  align-items: end;
  padding: 150px 5vw 54px;
  background:
    linear-gradient(180deg, rgba(17, 10, 23, 0.05), rgba(17, 10, 23, 0.92)),
    url("assets/figma/hero-sns.png") center top / cover;
}

.page-hero > div,
.shop-hero > div {
  width: min(1528px, 100%);
  margin: 0 auto;
}

.compact-hero {
  min-height: 320px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.muted,
.news-card p,
.shop-card p,
.guild-card p,
.download-card p,
.jutsu-card p,
.event-panel p {
  color: var(--muted-ink);
  line-height: 1.5;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.news-grid,
.shop-grid,
.download-layout,
.feature-list,
.jutsu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card,
.shop-card,
.guild-card,
.download-card,
.feature-card,
.jutsu-card,
.profile-card,
.dashboard-preview,
.form-panel,
.table-wrap,
.library-layout > article {
  padding: 1.4rem;
}

.news-card time,
.tag,
.guild-meta,
.download-card small {
  color: var(--muted-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-card-art {
  display: block;
  width: calc(100% + 2.8rem);
  height: 210px;
  margin: -1.4rem -1.4rem 1.2rem;
  object-fit: cover;
  border-bottom: 3px solid #5b3924;
  image-rendering: pixelated;
}

.split-band,
.account-layout,
.profile-layout,
.guild-layout,
.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.guild-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.library-layout {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

.library-layout-expanded {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.jutsu-library-panel {
  grid-column: 1 / -1;
}

.library-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.library-section-heading h2,
.library-section-heading p {
  margin-bottom: 0;
}

.library-count {
  flex: 0 0 auto;
  color: #d8b46a;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.library-toolbar label {
  margin: 0;
}

.equipment-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(207, 167, 101, 0.96), rgba(168, 124, 69, 0.96)),
    var(--panel);
}

.equipment-placeholder-icon {
  position: absolute;
  right: -0.2rem;
  bottom: -2.3rem;
  color: rgba(63, 35, 20, 0.14);
  font-family: serif;
  font-size: 11rem;
  line-height: 1;
}

.equipment-placeholder > *:not(.equipment-placeholder-icon) {
  position: relative;
  z-index: 1;
}

.wide-library-panel {
  grid-column: 1 / -1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.about-intro,
.about-facts,
.about-pillar,
.about-journey,
.about-rules {
  color: var(--ink);
  background: var(--panel);
}

.about-intro,
.about-facts,
.about-journey,
.about-rules {
  padding: clamp(1.5rem, 3vw, 3rem);
}

.about-kicker {
  margin: 0 0 0.65rem;
  color: #9c3325;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-intro h2,
.about-journey h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  line-height: 1.05;
}

.about-lead {
  max-width: 850px;
  margin: 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.75;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.about-facts h2,
.about-pillar h3 {
  margin-top: 0;
}

.about-facts dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.about-facts div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.about-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-facts dt {
  color: #8d3b2f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0.3rem 0 0;
  font-weight: 700;
}

.about-pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-pillar {
  min-height: 230px;
  padding: 2rem;
}

.about-pillar-number {
  display: block;
  margin-bottom: 2.5rem;
  color: #a84131;
  font-size: 0.78rem;
  font-weight: 800;
}

.about-pillar p,
.about-journey p {
  color: var(--muted-ink);
  line-height: 1.7;
}

.about-journey {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
}

.about-rules {
  grid-column: 1 / -1;
}

.about-rules h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.about-rules .rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
  margin-top: 1.5rem;
  padding-left: 1.4rem;
}

.about-rules .rule-list li {
  padding: 0.8rem 0 0.8rem 0.2rem;
  border-bottom: 1px solid rgba(65, 42, 28, 0.2);
}

.about-journey p {
  max-width: 900px;
  margin-bottom: 0;
}

.guild-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jutsu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tabs,
.tool-row,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tabs {
  grid-column: 1 / -1;
}

.form-panel {
  display: none;
}

.form-panel.active,
.form-panel.always-visible {
  display: block;
}

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: #e5d2ae;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border-radius: 0;
  outline: none;
}

input {
  color: #f0e4cc;
  background: #141619;
  border: 4px solid transparent;
  border-image: url("assets/client/images/narutibia-ui/inputs/textedit_dark_4px.png") 4 fill / 4px / 0 stretch;
}

input::placeholder { color: #c7b99f; opacity: 1; }

select {
  appearance: none;
  color: #120d08;
  border: 6px solid transparent;
  border-image: url("assets/narutibia_buttons/Beige_Button_6px.png") 6 fill / 6px / 0 stretch;
  padding-right: 2rem;
  background: url("assets/client/images/narutibia-ui/inputs/combo_arrow.png") right 10px center / 10px auto no-repeat;
}

select option { background: #141619; color: #f0e4cc; }
label:has(> select) { position: relative; }
label:has(> select)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 14px;
  height: 8px;
  background: url("assets/client/images/narutibia-ui/inputs/combo_arrow.png") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

input:focus,
select:focus {
  outline: 2px solid #d8b46a;
  outline-offset: 2px;
}

/* The guide retains the white login input variant. */
[data-form="login"] input {
  color: #120d08;
  background: #fffaf0;
  border: 1px solid #b6905d;
  border-image: none;
}

.form-note {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: #2f815d;
  font-weight: 700;
}

.form-note.error {
  color: #a52f2f;
}

[hidden] {
  display: none !important;
}

.form-help,
.account-email {
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.creation-rule,
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.creation-rule {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-dark);
}

.account-heading h2 {
  margin: 0;
}

.compact-button {
  min-width: auto;
  padding-inline: 1rem;
}

.account-message:empty {
  display: none;
}

.mini-stat,
.character-button,
.created-pill,
.empty-state,
.support-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-dark);
}

.character-button {
  color: #f0e4cc;
  background: transparent;
  border: 6px solid transparent;
  border-image: var(--button-secondary) 6 fill / 6px / 0 stretch;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-width: 1px 0 0;
}

.created-list,
.character-list,
.support-grid {
  display: grid;
  gap: 0.55rem;
}

.created-pill,
.empty-state,
.support-link {
  padding: 0.75rem 0.85rem;
}

.created-pill strong,
.created-pill span {
  display: block;
}

.created-pill span {
  margin-top: 0.2rem;
  color: var(--muted-ink);
  font-size: 0.82rem;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.search-box {
  min-width: min(100%, 460px);
  flex: 1;
  margin: 0;
}

.character-button {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
}

.character-button:is(:hover, :focus-visible),
.character-button.active {
  border-image-source: var(--button-secondary-hover);
  color: #f2cf78;
}
.character-button.active { box-shadow: 0 0 0 2px #b6905d; }
.character-button:focus-visible { outline: 2px solid #f2cf78; outline-offset: 3px; }
.character-button:active { border-image-source: var(--button-secondary-pressed); }

.avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-stack {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background: #141619;
  outline: 2px solid #b6905d;
}

.avatar-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.avatar-layer-base {
  z-index: 1;
}

.avatar-layer-hair {
  z-index: 3;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-stats div {
  padding: 0.75rem;
  color: #120d08;
  border: 8px solid transparent;
  border-image: var(--client-panel-content-small) 8 fill / 8px / 0 stretch;
}

.profile-stats small,
.profile-stats strong {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.shop-hero {
  position: relative;
  overflow: hidden;
}

.shop-hero img {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  width: 100%;
  height: 230px;
  object-fit: cover;
  opacity: 0.7;
}

.shop-card strong {
  display: block;
  margin: 1rem 0;
  color: #8d3b2f;
  font-size: 1.4rem;
}

.download-card {
  display: grid;
  gap: 0.75rem;
}

.download-card .button {
  justify-self: start;
}

.jutsu-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
}

.jutsu-card-heading {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.jutsu-card-heading h3 {
  margin: 0.35rem 0 0.15rem;
}

.jutsu-card-heading small {
  color: var(--muted-ink);
  font-weight: 700;
}

.jutsu-icon-frame {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid #55341e;
  background:
    radial-gradient(circle at 50% 45%, rgba(231, 192, 114, 0.33), transparent 60%),
    #171319;
  box-shadow: inset 0 0 0 2px rgba(218, 177, 101, 0.2), 3px 3px 0 rgba(62, 37, 23, 0.22);
}

.jutsu-icon-frame img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.jutsu-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.jutsu-facts div {
  padding: 0.55rem 0.65rem;
  background: rgba(72, 46, 29, 0.08);
}

.jutsu-facts dt {
  color: #913a2c;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.jutsu-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.clan-create-panel {
  position: sticky;
  top: 96px;
}

.login-required-panel p {
  line-height: 1.6;
}

.login-required-panel .texture-button {
  width: 100%;
  margin-top: 1rem;
}

.rule-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-ink);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #0c0711;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 1rem;
    padding-right: 3vw;
    padding-left: 3vw;
  }

  .primary-nav {
    gap: 1.4rem;
  }

  .feature-row,
  .home-lower,
  .news-grid,
  .shop-grid,
  .download-layout,
  .feature-list,
  .split-band,
  .account-layout,
  .profile-layout,
  .guild-layout,
  .library-layout {
    grid-template-columns: 1fr 1fr;
  }

  /* At tablet: cards group reflows to 2x2, scroll stays alongside */
  .path-cards-group {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-pillars,
  .about-journey,
  .about-rules {
    grid-column: 1;
  }

  .map-panel,
  .wide-library-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-flex;
    order: 3;
  }

  .button-login {
    display: none;
  }

  .primary-nav {
    position: absolute;
    right: 1rem;
    top: 72px;
    display: none;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.75rem;
    background: rgba(17, 10, 23, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
    gap: 0;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
  }

  .nav-submenu-nested {
    position: static;
    min-width: 0;
    padding: 0 0 0 0.75rem;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
  }

  .primary-nav a {
    padding: 0.8rem;
  }

  .figma-header {
    justify-content: space-between;
    min-height: 72px;
  }

  .home-hero {
    min-height: 520px;
  }

  .hero-action-pair {
    top: 330px;
  }

  .server-status-bar {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 620px) {
  .content-band {
    width: calc(100% - 2rem);
  }

  .home-frame > .feature-row,
  .home-frame > .path-row,
  .home-frame > .home-lower {
    width: calc(100% - 2rem);
  }

  .feature-row,
  .home-lower,
  .news-grid,
  .shop-grid,
  .guild-grid,
  .download-layout,
  .feature-list,
  .jutsu-grid,
  .split-band,
  .account-layout,
  .profile-layout,
  .guild-layout,
  .library-layout,
  .about-pillars,
  .about-rules .rule-list,
  .library-toolbar,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 500px;
  }

  .hero-action-pair {
    top: 300px;
    flex-direction: column;
  }

  .server-card,
  .compact-news {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .path-row {
    flex-direction: column;
    gap: 12px;
  }

  .path-intro-scroll {
    flex: 0 0 120px;
    width: 56px;
    align-self: center;
  }

  .path-cards-group {
    grid-template-columns: 1fr;
  }

  .path-card {
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 170px;
    padding: 12px 14px;
  }

  .path-card-sprite {
    height: clamp(80px, 16vw, 120px);
  }

  .panel {
    min-height: auto;
    padding: 1rem;
  }

  .map-viewer {
    min-height: 360px;
  }

  .map-viewport {
    min-height: 280px;
  }

  .map-source-badge {
    font-size: 0.58rem;
  }

  .map-readout span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scene {
    transition: none;
  }

  .hero-layer,
  .hero-birds,
  .hero-clouds {
    will-change: auto;
  }
}

/* Ninja Files account center */
.account-layout { padding-top: 2rem; }
.account-layout .tabs { margin-bottom: 0.5rem; }
.account-layout .dashboard-preview .mini-stat { padding: 0.9rem 1rem; gap: 1rem; }
.account-layout .dashboard-preview .account-email { margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.account-layout .dashboard-preview .account-message:not(:empty) { margin-bottom: 1rem; }
.ninja-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.25rem; padding: 1.1rem; }
.ninja-card > strong { flex-basis: 100%; }
.ninja-card .tool-row { margin-left: auto; }
.account-back { display: inline-block; margin-bottom: 1.5rem; color: var(--muted-ink); }
.ninja-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ninja-stats > div { padding: 1rem; background: rgba(255,255,255,.7); border: 1px solid var(--line-dark); }
.ninja-stats dt { color: var(--muted-ink); font-size: .85rem; }
.ninja-stats dd { margin: .35rem 0 0; font-weight: 800; }
.ninja-detail-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.delete-dialog { width: min(520px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 2rem; color: var(--ink); background: #e2dfdc; border: 1px solid #8d3b2f; }
.delete-dialog::backdrop { background: rgba(12, 8, 18, .8); }
.delete-dialog p { margin-bottom: 1.25rem; }
.delete-dialog .tool-row { justify-content: flex-end; }
@media (max-width: 600px) {
  .ninja-card .tool-row { margin-left: 0; }
  .ninja-stats { grid-template-columns: 1fr; }
  .account-layout .account-heading { flex-wrap: wrap; }
}

.closed-alpha-notice {position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:0;padding:18px clamp(20px,5vw,80px);background:#1c251b;border-bottom:1px solid #80703d;color:#e9eadf;font-size:.9rem;line-height:1.6}
.closed-alpha-notice[hidden] {display:none} .closed-alpha-notice strong {color:#f2cf78;text-transform:uppercase;letter-spacing:.09em;font-size:.8rem;white-space:nowrap}.closed-alpha-notice span {flex:1;min-width:240px}.closed-alpha-notice a {color:#f2cf78;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}

/* Shared website surfaces follow the dashboard's framed ink/parchment variants. */
.profile-card,
.dashboard-preview,
.form-panel,
.table-wrap,
.library-layout > .jutsu-library-panel {
  color: #f0e4cc;
  background: #141619;
  border: 16px solid transparent;
  border-image: var(--client-panel-frame) 16 fill / 16px / 0 stretch;
  padding: 1rem;
}
:is(.profile-card, .dashboard-preview, .form-panel, .jutsu-library-panel) :is(h2, .eyebrow) { color: #d8b46a; }
:is(.profile-card, .dashboard-preview, .form-panel, .jutsu-library-panel) .muted,
.account-email { color: #c7b99f; }
.form-panel label { color: #e5d2ae; }
.profile-stats small { color: #5c4229; }
.dashboard-preview .mini-stat,
.ninja-stats > div { color: #120d08; background: #dab579; border: 8px solid transparent; border-image: var(--client-panel-content-small) 8 fill / 8px / 0 stretch; }
.dashboard-preview .mini-stat + .mini-stat { margin-top: 0.5rem; }
.library-count { color: #d8b46a; }
.jutsu-card { padding: 1rem; }
.jutsu-card[data-discipline="Genjutsu"] { --discipline: #794baa; }
.jutsu-card[data-discipline="Ninjutsu"] { --discipline: #214b88; }
.jutsu-card[data-discipline="Taijutsu"] { --discipline: #8b4b0d; }
.jutsu-card[data-discipline="Bukijutsu"] { --discipline: #96382b; }
.discipline-tag { display: inline-block; margin-top: 0.4rem; padding: 0.25rem 0.5rem; background: var(--discipline, #251a12); color: #fff; border: 1px solid #251a12; font-size: 0.75rem; font-weight: 700; }
.jutsu-facts > div { background: #c9a168; border: 1px solid #b6905d; }
.table-wrap { padding: 0.75rem; }
.table-wrap th { color: #d8b46a; background: #141619; border-bottom: 2px solid #b6905d; }
.table-wrap td { color: #120d08; background: #dab579; border-bottom: 1px solid #b6905d; }
.table-wrap tbody tr:nth-child(even) td { background: #c9a168; }
@media (max-width: 600px) {
  .avatar-row, .ninja-detail-heading { flex-wrap: wrap; }
  .library-toolbar { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the invitation strip above navigation, including while scrolling. */
.site-shell { position: sticky; top: 0; z-index: 40; }
.site-shell .site-header,
body[data-page="home"] .site-shell .site-header.figma-header { position: relative; top: auto; width: 100%; min-height: 80px; padding-block: 4px; background-color: #111816; }
.closed-alpha-notice { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 24px; padding: 12px clamp(20px,5vw,80px); line-height: 1.4; }
.closed-alpha-notice span { min-width: 0; }
.closed-alpha-notice a { font-weight: 800; }
.page-hero { min-height: 220px; padding-block: 40px; }
.compact-hero { min-height: 180px; }
.page-hero > div { width: min(1280px,100%); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p:last-child { margin-bottom: 0; }
.content-band { padding-block: 32px 48px; }
.content-band > .tool-row,
.content-band > .filters { margin-bottom: 24px; gap: 16px; align-items: end; }
.content-band > :is(.tool-row,.filters) > label { margin-bottom: 0; }
.content-band > .filters > label { flex: 1 1 200px; }
.profile-layout { gap: 24px; align-items: start; }
.character-list { display: grid; gap: 12px; }
.account-layout { gap: 24px; align-items: start; }
.account-layout .tabs { gap: 12px; margin-bottom: 0; }
.jutsu-card { display: flex; flex-direction: column; gap: 12px; }
.jutsu-card .jutsu-facts { margin-top: auto; }
.jutsu-card p { margin-block: 0; }
.testing-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 24px; align-items: start; }
.testing-form-panel > .muted { margin-block: 12px 24px; }
.testing-form-panel form { display: grid; gap: 16px; }
.testing-form-panel form label { margin-bottom: 0; }
.testing-form-panel .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.testing-form-panel textarea { width: 100%; min-width: 0; resize: vertical; padding: 12px; color: #f0e4cc; font: inherit; font-weight: 400; background: #141619; border: 4px solid transparent; border-image: url('assets/client/images/narutibia-ui/inputs/textedit_dark_4px.png') 4 fill / 4px / 0 stretch; }
.testing-form-panel textarea:focus-visible { outline: 2px solid #d8b46a; outline-offset: 2px; }
.testing-form-panel .form-note { margin: 0; font-size: .85rem; line-height: 1.6; }
.testing-form-panel button { justify-self: start; }
.testing-form-panel [data-testing-message] { margin: 0; line-height: 1.6; }
.testing-form-panel [data-testing-message]:empty { display: none; }
.testing-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.testing-next { padding: 24px; }
.testing-next ol { margin: 20px 0; padding-left: 24px; }
.testing-next li { padding-left: 4px; margin-block: 12px; line-height: 1.6; }
.progression-intro { margin: 0 0 24px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.feature-grid .feature-card { padding: 24px; }
.feature-grid .feature-card :is(h2,h3) { font-size: 1.25rem; margin-bottom: 12px; }
.feature-grid .feature-card > :last-child { margin-bottom: 0; }
.feature-grid .feature-card li { margin-block: 8px; line-height: 1.6; }
.profile-tree { margin-top: 24px; padding-top: 20px; border-top: 1px solid #6c5834; }
.profile-tree h3 { margin: 0 0 16px; color: #d8b46a; font-size: 1rem; }
.profile-tree p { display: flex; gap: 12px; justify-content: space-between; margin: 0 0 12px; font-size: .85rem; }
.profile-tree strong { text-align: right; }
.profile-tree a { display: inline-block; margin-top: 4px; color: #d8b46a; }
@media (max-width: 700px) {
  .closed-alpha-notice { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 20px; font-size: .78rem; }
  .closed-alpha-notice span { grid-column: 1 / -1; grid-row: 2; }
  .closed-alpha-notice strong { font-size: .7rem; }
  .page-hero, .compact-hero { min-height: 160px; padding-block: 28px; }
  .content-band { padding-block: 24px 32px; }
  .testing-layout { grid-template-columns: minmax(0,1fr); }
  .feature-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .testing-form-panel .form-grid { grid-template-columns: minmax(0,1fr); }
  .profile-layout { gap: 20px; }
}
