:root {
  color-scheme: light;
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-2: #edf7f7;
  --ink: #15252c;
  --muted: #5c6d72;
  --line: #cfe0df;
  --brand: #117a8b;
  --brand-2: #2250a8;
  --brand-3: #2ea8d8;
  --accent: #e7a928;
  --violet: #8e5bd8;
  --danger: #c94b55;
  --success: #2e9061;
  --shadow: 0 18px 45px rgba(17, 51, 66, 0.14);
  --radius: 8px;
  --page: min(1240px, calc(100vw - 32px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(247, 251, 251, 0.42), rgba(247, 251, 251, 0.78)),
    radial-gradient(circle at top left, rgba(31, 171, 181, 0.1), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(231, 169, 40, 0.08), transparent 28%),
    url("/assets/deploy/background-tiling-image.webp");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, 627px 627px;
  background-position: center top, top left, 85% 12%, top left;
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--ink);
}

body.dark-theme {
  color-scheme: dark;
  --bg: #10191d;
  --surface: #17262b;
  --surface-2: #203338;
  --ink: #eef8f7;
  --muted: #a9b9bb;
  --line: #315057;
  --brand: #42bfca;
  --brand-2: #7fa7ff;
  --brand-3: #5bd8ee;
  --accent: #f2bd45;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  background-image:
    linear-gradient(180deg, rgba(16, 25, 29, 0.8), rgba(16, 25, 29, 0.9)),
    radial-gradient(circle at top left, rgba(66, 191, 202, 0.12), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(242, 189, 69, 0.08), transparent 28%),
    url("/assets/deploy/background-tiling-image.webp");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

#app {
  min-width: 0;
  overflow-x: clip;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.boot-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(8, 40, 54, 0.22));
}

.boot-title {
  width: min(300px, 78vw);
  height: auto;
  object-fit: contain;
}

.boot-screen strong {
  font-size: 32px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 10px max(16px, calc((100vw - 1500px) / 2));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(8, 40, 54, 0.18));
}

.brand-title {
  width: clamp(138px, 15vw, 184px);
  height: auto;
  object-fit: contain;
}

body.dark-theme .brand-mark img,
body.dark-theme .brand-title,
body.dark-theme .boot-title {
  filter: drop-shadow(0 8px 16px rgba(91, 216, 238, 0.22)) brightness(1.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  justify-self: center;
  gap: 4px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  min-height: 48px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 12px 26px rgba(23, 74, 91, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
}

.nav-group {
  position: relative;
  display: flex;
  align-self: stretch;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 49;
}

.nav-top {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.nav-top span {
  color: color-mix(in srgb, var(--muted) 80%, var(--brand));
  font-size: 12px;
}

.nav-top:hover,
.nav-top:focus-visible,
.nav-group:focus-within > .nav-top,
.nav-group:hover > .nav-top,
.nav-group.active > .nav-top,
.nav-direct.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 84%, transparent);
}

.nav-dropdown,
.nav-flyout {
  position: absolute;
  z-index: 50;
  width: 286px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 38px rgba(23, 74, 91, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.14s ease, transform 0.14s ease;
  visibility: hidden;
}

.nav-dropdown::before,
.nav-flyout::before {
  content: "";
  position: absolute;
  display: block;
}

.nav-dropdown::before {
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.nav-dropdown {
  top: calc(100% + 6px);
  left: 0;
}

.nav-group.edge .nav-dropdown {
  right: 0;
  left: auto;
}

.nav-group:hover > .nav-dropdown,
.nav-group:focus-within > .nav-dropdown,
.nav-subgroup:hover > .nav-flyout,
.nav-subgroup:focus-within > .nav-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.nav-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.nav-row strong,
.nav-row small {
  display: block;
}

.nav-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.nav-row b {
  color: var(--brand);
  font-size: 20px;
}

.nav-row:hover,
.nav-row:focus-visible,
.nav-row.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.nav-row:hover small,
.nav-row:focus-visible small,
.nav-row.active small,
.nav-row:hover b,
.nav-row:focus-visible b,
.nav-row.active b {
  color: var(--brand-2);
}

.nav-row.compact {
  min-height: 40px;
}

.nav-subgroup {
  position: relative;
}

.nav-subgroup::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 10px;
  height: 100%;
  z-index: 49;
}

.nav-group.edge .nav-subgroup::after {
  right: 100%;
  left: auto;
}

.nav-flyout {
  top: -8px;
  left: calc(100% + 6px);
}

.nav-flyout::before {
  top: 0;
  right: 100%;
  width: 12px;
  height: 100%;
}

.nav-group.edge .nav-flyout {
  right: calc(100% + 6px);
  left: auto;
}

.nav-group.edge .nav-flyout::before {
  right: auto;
  left: 100%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 82%, var(--surface));
}

.version-pill {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.version-pill.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 7px 14px rgba(17, 122, 139, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.locale-switch {
  display: inline-flex;
}

.locale-select {
  min-height: 38px;
  max-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.icon-btn,
.pill-btn,
.primary,
.secondary,
.ghost,
.vote {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.icon-btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icon-symbol {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-trigger .icon-symbol {
  width: 23px;
  height: 23px;
  stroke-width: 3;
}

.theme-trigger .icon-symbol {
  width: 21px;
  height: 21px;
}

.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
}

.primary.small {
  min-height: 36px;
}

.secondary {
  background: var(--surface-2);
}

.ghost {
  background: transparent;
}

.vote.active {
  border-color: var(--accent);
  color: var(--accent);
}

.full {
  width: 100%;
}

.menu-trigger {
  display: none;
}

.mobile-menu {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 8px;
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a,
.mobile-nav-group summary {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.mobile-menu a.active,
.mobile-menu a:hover,
.mobile-nav-group[open] summary {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}

.mobile-nav-group summary {
  cursor: pointer;
  list-style: none;
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group summary::after {
  content: "+";
  float: right;
  margin-left: auto;
}

.mobile-nav-group[open] summary::after {
  content: "-";
}

.mobile-nav-items {
  display: grid;
  gap: 6px;
  padding: 6px 0 2px 12px;
}

.mobile-menu a span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.mobile-subnav {
  display: grid;
  gap: 5px;
  padding: 0 0 5px 14px;
}

.mobile-subnav a {
  min-height: 0;
  padding: 8px 10px;
  font-size: 13px;
}

.site-main {
  width: var(--page);
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
  transition: transform 0.14s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  min-height: 420px;
  margin-bottom: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background:
    linear-gradient(135deg, var(--surface), var(--surface-2)),
    repeating-linear-gradient(135deg, rgba(17, 122, 139, 0.05) 0 1px, transparent 1px 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 8px 0 14px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p,
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #10222a;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.hero-actions,
.card-actions,
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-grid,
.statement-grid,
.trend-grid,
.build-grid,
.guide-grid,
.list-grid,
.tool-grid,
.progress-grid,
.prism-summary,
.prism-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
}

.statement-grid,
.trend-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.build-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid,
.list-grid,
.tool-grid,
.progress-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prism-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0;
}

.launch-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -8px 0 20px;
}

.launch-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--brand) 7%, var(--surface-2))),
    var(--surface);
  box-shadow: 0 10px 28px rgba(17, 51, 66, 0.08);
}

.launch-card.primary-path {
  color: #06141a;
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, var(--brand-2)));
}

.launch-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.launch-card small {
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  font-weight: 800;
  line-height: 1.35;
}

.launch-card.primary-path .eyebrow,
.launch-card.primary-path small {
  color: color-mix(in srgb, #06141a 78%, transparent);
}

.version-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent),
    var(--surface);
}

.version-context strong,
.version-context p,
.version-context > span {
  display: block;
}

.version-context strong {
  font-size: 17px;
}

.version-context p {
  max-width: 900px;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.version-context > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.version-context.future {
  border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
}

.version-context.future > span {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface-2));
  color: color-mix(in srgb, var(--warning) 72%, var(--ink));
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-height: 148px;
  align-content: center;
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--brand) 32%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  max-width: 760px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.summary-strip article {
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent),
    var(--surface);
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip strong {
  font-size: 24px;
  line-height: 1;
}

.summary-strip span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gift-intro-grid,
.gift-code-grid,
.gift-visual-strip {
  display: grid;
  gap: 14px;
}

.gift-intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.gift-status-card,
.gift-code-card,
.gift-source-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent),
    var(--surface);
  box-shadow: 0 12px 30px rgba(17, 51, 66, 0.08);
}

.gift-status-card {
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
}

.gift-status-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.gift-status-card small {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.gift-visual-strip {
  grid-template-columns: 1.2fr 0.95fr 0.85fr;
  align-items: stretch;
  margin: 16px 0 24px;
}

.gift-visual-strip figure {
  position: relative;
  min-height: 160px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #13252c;
}

.gift-visual-strip img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.gift-visual-strip figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(8, 18, 22, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gift-section {
  margin-top: 24px;
}

.gift-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-code-grid.active-codes {
  grid-template-columns: 1fr;
}

.gift-code-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.gift-code-card.active {
  border-color: color-mix(in srgb, var(--success) 48%, var(--line));
}

.gift-code-value {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-3) 10%, transparent), transparent),
    var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.gift-code-value span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0;
}

.gift-code-value small {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.gift-code-value:hover,
.gift-code-value:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.gift-reward-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-reward-icons span {
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--brand-3) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 76%, var(--brand) 7%);
  color: var(--ink);
  font-weight: 900;
}

.gift-reward-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
  filter: drop-shadow(0 3px 5px rgba(7, 24, 31, 0.18));
}

.gift-reward-icons small {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.gift-code-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.gift-code-facts div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.gift-code-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gift-code-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.gift-empty {
  min-height: 180px;
}

.gift-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
  padding: 20px;
}

.gift-source-panel p {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.55;
}

.gift-source-list {
  display: grid;
  gap: 8px;
}

.gift-source-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.gift-source-list strong,
.gift-source-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gift-source-list strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.gift-source-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.prism-summary article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(17, 122, 139, 0.05) 0 1px, transparent 1px 14px),
    var(--surface);
}

.prism-summary strong,
.prism-summary span {
  display: block;
}

.prism-summary strong {
  font-size: 30px;
  line-height: 1;
}

.prism-summary span {
  color: var(--muted);
  margin-top: 8px;
  font-weight: 800;
}

.prism-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.load-more-band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.command-card,
.statement,
.trend-card,
.build-card,
.list-card,
.tool-card,
.progress-card,
.readiness-card,
.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(17, 51, 66, 0.07);
}

.prism-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 51, 66, 0.07);
}

@media (hover: hover) {
  .command-card,
  .statement,
  .trend-card,
  .build-card,
  .list-card,
  .tool-card,
  .progress-card,
  .readiness-card,
  .report-card,
  .gift-code-card,
  .gift-status-card,
  .entity-tile,
  .prism-card,
  .prism-row,
  .mode-card,
  .next-card {
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .command-card:hover,
  .statement:hover,
  .trend-card:hover,
  .build-card:hover,
  .list-card:hover,
  .tool-card:hover,
  .progress-card:hover,
  .readiness-card:hover,
  .report-card:hover,
  .gift-code-card:hover,
  .gift-status-card:hover,
  .entity-tile:hover,
  .prism-card:hover,
  .prism-row:hover,
  .mode-card:hover,
  .next-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    box-shadow: 0 14px 34px rgba(17, 51, 66, 0.11);
  }
}

.prism-card.done,
.prism-row.done {
  border-color: color-mix(in srgb, var(--brand-3) 58%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-3) 18%, transparent), 0 8px 24px rgba(17, 51, 66, 0.07);
}

.prism-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  background: var(--surface-2);
}

.prism-list {
  display: grid;
  gap: 10px;
}

.prism-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 51, 66, 0.06);
}

.prism-row img,
.prism-row-thumb {
  width: 168px;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-2);
}

.prism-row h2 {
  margin: 4px 0;
  font-size: 20px;
}

.prism-row p {
  margin: 0;
  color: var(--muted);
}

.prism-image-missing {
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 210px;
  padding: 24px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(60, 186, 202, 0.1), rgba(230, 177, 63, 0.12)),
    var(--surface-2);
  border-right: 1px solid var(--line);
}

.prism-image-missing strong {
  color: var(--ink);
  font-size: 18px;
}

.prism-image-missing span {
  max-width: 28ch;
}

.prism-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.prism-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.prism-card dl {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.prism-card dl div {
  display: grid;
  gap: 2px;
}

.prism-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prism-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.wide {
  grid-column: span 1;
}

.command-card p,
.statement p,
.build-card p,
.list-card p,
.tool-card span,
.progress-card p,
.report-card p,
.trend-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section-head,
.panel-head,
.builder-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.next-card,
.tool-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.content-band,
.split-band,
.table-shell,
.plain-page {
  max-width: 100%;
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.visual-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.visual-panel img,
.article-hero,
.map-panel img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.card-meta,
.build-line,
.metrics-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-meta span,
.status,
.tag,
.grade,
.severity,
.data-warning {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.grade-s,
.status.ready {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 55%, var(--line));
}

.grade-a,
.grade-b {
  color: var(--brand-2);
}

.grade-c {
  color: var(--accent);
}

.grade-d,
.warning,
.data-warning,
.severity.high,
.severity.critical {
  color: var(--danger);
}

.status.watch,
.status.legacy-watch,
.status.pre-1-0-watch,
.status.community {
  color: var(--accent);
}

.deck-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 12px 0;
}

.card-thumb {
  position: relative;
  aspect-ratio: 1;
  min-width: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #273c44, #131c20);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb.tiny {
  width: 42px;
  min-width: 42px;
}

.card-thumb.small {
  width: 64px;
  min-width: 64px;
}

.card-thumb.large {
  width: 150px;
  min-width: 150px;
}

.card-thumb.game-card {
  border-radius: 10px;
  border: 3px solid color-mix(in srgb, var(--brand-2) 72%, #10242c);
  box-shadow: 0 9px 18px rgba(4, 20, 28, 0.28);
}

.card-thumb.large.game-card {
  width: 170px;
  min-width: 170px;
}

.cost {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 0 0 8px 0;
  background: var(--brand-2);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select,
.builder-config input,
.builder-config select,
.builder-config textarea,
.pool-head input,
.pool-head select,
.report-form input,
.report-form select,
.report-form textarea,
.comment-form textarea,
.large-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  width: auto;
}

.result-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-left: auto;
}

.filter-field {
  display: grid;
  gap: 6px;
  flex: 1 1 190px;
  min-width: 170px;
}

.filter-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  min-width: 0;
}

.guide-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card > div {
  padding: 18px 18px 18px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}

.article-toc {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-toc a {
  color: var(--muted);
  font-weight: 800;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.article-body section {
  padding-top: 16px;
}

.news-article-layout .article-body {
  display: grid;
  gap: 14px;
}

.news-article-stats {
  margin: 4px 0 2px;
}

.news-tldr {
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface-2) 54%, var(--surface));
}

.article-bullet-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.article-panel-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.article-panel-card,
.feedback-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 44%, var(--surface));
}

.article-panel-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.article-panel-card p,
.feedback-card p,
.article-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.staff-position-card {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.feedback-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.source-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.question-ledger {
  display: grid;
  gap: 12px;
}

.question-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 42%, var(--surface));
}

.question-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
}

.question-card p {
  margin: 0;
  color: var(--muted);
}

.question-card summary {
  width: fit-content;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.question-posters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}

.question-posters span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.question-posters small {
  color: var(--muted);
  font-weight: 750;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.build-detail,
.codex-detail {
  display: grid;
  gap: 22px;
}

.detail-head,
.entity-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.entity-hero {
  grid-template-columns: auto 1fr;
}

.loadout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
}

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

.build-insights h2 {
  margin: 4px 0 10px;
  font-size: 20px;
}

.build-insights p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-grid,
.codex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.codex-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.codex-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.codex-grid.compact .entity-tile {
  min-height: 94px;
  align-items: center;
}

.codex-grid.compact .effect-mini {
  display: none;
}

.codex-grid.gallery {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.codex-grid.gallery .entity-tile {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 210px;
  text-align: center;
}

.codex-grid.gallery .entity-tile .card-meta {
  justify-content: center;
}

.codex-grid.gallery .effect-mini {
  display: none;
}

.slot-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.entity-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  min-height: 150px;
}

.codex-list-card {
  gap: 14px;
  min-height: 168px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 86%, transparent)),
    var(--surface);
}

.entity-tile-body {
  min-width: 0;
}

.effect-mini {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.effect-mini p {
  margin: 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.entity-tile.to-confirm,
.entity-hero.to-confirm,
.codex-game-panel.to-confirm {
  border-color: color-mix(in srgb, var(--danger) 70%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 28%, transparent);
}

.entity-tile strong {
  display: block;
  font-size: 16px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.entity-tile p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.stat-chips span,
.confirm-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 9px;
}

.confirm-note {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
  color: var(--danger);
}

.level-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.level-panel.source-effect-only {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.level-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.level-panel-head h2 {
  margin: 4px 0 0;
}

.level-panel-head > span,
.level-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  max-width: 520px;
}

.game-slider {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game-slider span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-slider input {
  width: 100%;
  accent-color: var(--brand-2);
}

.codex-game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 48% 0%, rgba(75, 216, 224, 0.25), transparent 38%),
    linear-gradient(135deg, #10242e, #172434 46%, #0d171f);
  box-shadow: 0 20px 50px rgba(3, 20, 30, 0.18);
}

.codex-identity-panel,
.codex-upgrade-board {
  min-width: 0;
  padding: 24px;
  color: #f3fbff;
  background:
    linear-gradient(180deg, rgba(16, 68, 79, 0.5), rgba(5, 19, 27, 0.78)),
    repeating-linear-gradient(135deg, rgba(139, 235, 243, 0.045) 0 2px, transparent 2px 18px);
}

.codex-upgrade-board {
  border-left: 1px solid rgba(139, 235, 243, 0.24);
  background:
    linear-gradient(180deg, rgba(113, 137, 151, 0.45), rgba(5, 19, 27, 0.76)),
    repeating-linear-gradient(135deg, rgba(139, 235, 243, 0.04) 0 2px, transparent 2px 18px);
}

.codex-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.codex-title-row h1 {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 58px);
  font-style: italic;
  letter-spacing: 0;
  line-height: 0.98;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.codex-title-row .card-meta span {
  color: #d9f7fb;
  background: rgba(209, 240, 244, 0.12);
  border-color: rgba(139, 235, 243, 0.26);
}

.codex-title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.codex-title-tags span {
  padding: 7px 11px;
  color: #06141a;
  background: #c5b5a1;
  border-radius: 2px;
  font-weight: 950;
}

.codex-effect-stack {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.codex-effect-line {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  color: #dce9ec;
  background: rgba(213, 235, 238, 0.16);
  border: 1px solid rgba(220, 249, 252, 0.13);
  border-radius: 5px;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.codex-effect-line::before {
  content: none;
}

.codex-effect-line.primary {
  background: rgba(231, 248, 251, 0.2);
}

.codex-effect-line.activated {
  color: #f3fff8;
  border-color: rgba(84, 229, 138, 0.56);
  background: linear-gradient(180deg, rgba(37, 116, 72, 0.4), rgba(12, 42, 28, 0.38));
}

.codex-effect-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}

.codex-effect-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 2px 7px;
  color: #062211;
  background: #62e58f;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.codex-effect-line.pvp-variant {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #dce9ec;
  background: rgba(54, 102, 170, 0.22);
  border-color: rgba(120, 172, 235, 0.34);
}

.codex-effect-line.pvp-variant strong {
  padding: 3px 7px;
  color: #eaf6ff;
  background: rgba(77, 119, 202, 0.78);
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
}

.codex-resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.codex-resource-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 10px;
  color: #d6f4f8;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(139, 235, 243, 0.22);
  border-radius: 8px;
  font-weight: 900;
}

.codex-resource-row img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.codex-resource-row b {
  color: #f4fdff;
}

.codex-resource-row small {
  color: rgba(216, 244, 248, 0.68);
  font-size: 12px;
}

.codex-level-strip {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(160px, 1fr);
  gap: 8px 14px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(139, 235, 243, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.codex-level-strip div {
  display: grid;
  gap: 2px;
}

.codex-level-strip strong {
  color: #ffffff;
  font-size: 20px;
}

.codex-level-strip span,
.codex-level-strip em {
  color: #a9c3c8;
  font-style: normal;
  font-weight: 800;
}

.codex-level-strip em {
  grid-column: 1 / -1;
  font-size: 12px;
}

.codex-level-strip.source-effect-only {
  border-color: rgba(230, 177, 63, 0.38);
}

.codex-level-strip input {
  width: 100%;
  accent-color: var(--brand-2);
}

.codex-actions {
  margin-top: 16px;
}

.codex-upgrade-board header {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 0 20px;
  border-bottom: 3px solid rgba(240, 250, 251, 0.82);
  margin-bottom: 22px;
}

.client-mini-badge,
.upgrade-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.client-mini-badge {
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 48%, transparent);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.upgrade-warning {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.codex-upgrade-board h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-style: italic;
  text-transform: uppercase;
}

.builder-item-overlay {
  align-items: start;
  overflow: auto;
}

.builder-item-detail {
  width: min(1180px, 100%);
  max-height: calc(100vh - 40px);
}

.builder-item-detail .codex-identity-panel,
.builder-item-detail .codex-upgrade-board {
  overflow: auto;
}

.builder-item-level-strip em {
  color: rgba(238, 250, 252, 0.76);
}

.builder-item-skill-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.builder-skill-toggle-list {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.builder-skill-toggle {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 142px;
  padding: 10px;
  border: 1px solid rgba(139, 235, 243, 0.18);
  border-radius: 8px;
  background: rgba(3, 13, 18, 0.62);
  color: #eaf8fa;
  text-align: left;
}

.builder-skill-toggle:hover,
.builder-skill-toggle.active {
  border-color: rgba(255, 211, 65, 0.58);
  background: rgba(12, 33, 40, 0.86);
}

.builder-skill-toggle.active {
  box-shadow: inset 0 0 0 2px rgba(255, 211, 65, 0.2);
}

.builder-skill-toggle > span:not(.upgrade-icon) {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.builder-skill-toggle strong,
.builder-skill-toggle small {
  display: block;
  min-width: 0;
}

.builder-skill-toggle strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.builder-skill-toggle small {
  color: rgba(226, 243, 246, 0.72);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

.builder-skill-toggle em {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 121, 0.4);
  background: rgba(51, 35, 5, 0.45);
  color: #ffe38b;
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
}

.builder-skill-toggle em.active {
  border-color: rgba(93, 232, 145, 0.72);
  background: rgba(18, 80, 43, 0.68);
  color: #eaffef;
}

.builder-skill-toggle em.active::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #073018;
  background: #62e58f;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.builder-skill-toggle em img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.upgrade-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.upgrade-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 260px;
  padding: 14px;
  color: #e7f8fb;
  border: 1px solid rgba(106, 225, 233, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(106, 225, 233, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(28, 101, 112, 0.74), rgba(4, 19, 26, 0.88));
  box-shadow: inset 0 0 0 2px rgba(12, 48, 57, 0.52), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.upgrade-card.featured {
  border-color: rgba(139, 235, 243, 0.52);
  transform: translateY(-4px);
}

.upgrade-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(162, 255, 247, 0.42), rgba(31, 92, 102, 0.18) 62%, transparent 64%);
}

.upgrade-icon img {
  max-width: 82px;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.32));
}

.upgrade-icon span {
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
}

.upgrade-card strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
}

.upgrade-card p {
  color: #d2e4e8;
  line-height: 1.35;
  text-align: center;
}

.upgrade-card footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 -14px -14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 20px;
  font-weight: 950;
}

.skill-price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 220, 121, 0.38);
  border-radius: 999px;
  color: #ffe38b;
  background: rgba(51, 35, 5, 0.5);
  font-style: normal;
  line-height: 1;
}

.skill-price img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.codex-reference-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.trust-card {
  grid-column: 1 / -1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trust-grid span {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.trust-grid span.dim {
  opacity: 0.58;
}

.trust-grid b {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.client-proof {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--success) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 9%, transparent);
}

.client-proof strong {
  color: var(--success);
  font-size: 12px;
  text-transform: uppercase;
}

.client-proof span {
  font-weight: 900;
}

.client-proof small,
.client-note {
  color: var(--muted);
  font-weight: 800;
}

.client-note {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-2) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-2) 8%, transparent);
}

.trust-grid em {
  justify-self: start;
  font-style: normal;
}

.compact-related {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.keyword-pill {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface-2));
  color: var(--ink);
  font-weight: 900;
}

.kw-tip {
  position: relative;
  display: inline-block;
  color: #78e4ec;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(120, 228, 236, 0.42);
  text-underline-offset: 3px;
  cursor: help;
}

.light-theme .effect-mini .kw-tip {
  color: var(--brand);
}

.kw-tip::before,
.kw-tip::after {
  display: none;
  position: absolute;
  left: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.kw-tip::before {
  content: attr(data-tip-title) "\A" attr(data-tip);
  bottom: calc(100% + 10px);
  width: min(310px, 78vw);
  white-space: pre-line;
  padding: 12px 14px;
  color: #e9fbff;
  background: rgba(6, 13, 17, 0.96);
  border-left: 4px solid #65dce7;
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.kw-tip::after {
  content: "";
  bottom: calc(100% + 4px);
  width: 12px;
  height: 12px;
  background: rgba(6, 13, 17, 0.96);
  transform: translate(16px, 6px) rotate(45deg);
}

.kw-tip:hover::before,
.kw-tip:hover::after,
.kw-tip:focus-visible::before,
.kw-tip:focus-visible::after {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.kw-tip:hover::after,
.kw-tip:focus-visible::after {
  transform: translate(16px, 0) rotate(45deg);
}

.passive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.passive-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.passive-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.builder-shell {
  display: grid;
  gap: 16px;
}

.builder-top {
  padding: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 84%, transparent), color-mix(in srgb, var(--surface-2) 90%, transparent)),
    url("assets/game-screenshots/derived/build-loadout-spell-selected.jpg") center / cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.builder-top h1 {
  max-width: 760px;
  margin-bottom: 8px;
}

.builder-top p {
  max-width: 760px;
  color: var(--muted);
}

.builder-hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.75fr) minmax(230px, 0.65fr);
  gap: 12px;
}

.builder-hero-card,
.curve-card,
.compact-readiness,
.build-insights article,
.profile-loop article,
.stats-method article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--brand) 6%, var(--surface-2))),
    var(--surface);
  box-shadow: 0 8px 24px rgba(17, 51, 66, 0.07);
}

.builder-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-preview-art.large {
  width: 78px;
  height: 78px;
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
}

.builder-hero-card h2,
.curve-card h2,
.compact-readiness h2 {
  margin: 4px 0 5px;
}

.builder-hero-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.compact-head h2 {
  font-size: 18px;
}

.compact-head strong {
  font-size: 28px;
}

.curve-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 96px;
}

.curve-bars span {
  min-height: 74px;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 5px;
}

.curve-bars span::before {
  content: "";
  align-self: end;
  width: 100%;
  min-height: 7px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}

.curve-bars b {
  color: var(--muted);
  font-size: 11px;
}

.curve-bars em {
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.build-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.build-chip-line span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.build-chip-line span.ok {
  color: color-mix(in srgb, var(--brand-3) 70%, var(--ink));
  border-color: color-mix(in srgb, var(--brand-3) 46%, var(--line));
}

.builder-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.builder-config,
.deck-builder,
.card-pool,
.report-form,
.report-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.builder-config label,
.report-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.transfer-box summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.hero-picker {
  display: grid;
  gap: 10px;
}

.hero-class-strip,
.subclass-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hero-class-strip button,
.subclass-strip button {
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.hero-class-strip button.active,
.subclass-strip button.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
}

.hero-class-strip img,
.subclass-strip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero-class-strip span {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subclass-strip img {
  width: 34px;
  height: 34px;
}

.hero-preview {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 48%),
    var(--surface-2);
}

.hero-preview-class,
.hero-preview-art {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.hero-preview-art {
  width: 54px;
  height: 54px;
}

.hero-preview img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.hero-preview strong,
.hero-preview span,
.hero-preview small {
  display: block;
  min-width: 0;
}

.hero-preview strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.hero-preview span,
.hero-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.deck-slots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.deck-slot,
.equipment-slot {
  min-width: 0;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
}

.deck-slot.filled,
.equipment-slot.filled {
  border-style: solid;
  background: var(--surface);
  color: var(--ink);
}

.deck-slot strong,
.equipment-slot strong {
  max-width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.deck-slot small,
.equipment-slot small {
  color: var(--muted);
  font-size: 11px;
}

.equipment-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pool-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-head input {
  flex: 1 1 100%;
}

.pool-head select {
  flex: 1 1 128px;
  min-width: 0;
}

.pool-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-context span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pool-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
}

.pool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.pool-card.selected,
.pool-card:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: color-mix(in srgb, var(--surface-2) 82%, var(--brand) 6%);
}

.pool-card.selected em {
  color: var(--brand-3);
}

.pool-card span {
  min-width: 0;
}

.pool-card strong,
.pool-card small {
  display: block;
}

.pool-card small {
  color: var(--muted);
}

.readiness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.readiness-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.game-builder-shell {
  gap: 12px;
}

.game-builder-command {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(86, 208, 225, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 26, 31, 0.95), rgba(16, 45, 55, 0.94)),
    url("assets/game-assets/waven-install/builder-rework/ui-deck-common/deckbuildingbg.png") center / cover;
  color: #effcff;
  box-shadow: 0 18px 42px rgba(6, 24, 31, 0.22);
}

.game-builder-command h1 {
  margin: 2px 0;
  color: #f7fcff;
  font-size: clamp(28px, 3.2vw, 44px);
}

.game-builder-command p {
  margin: 0;
  color: rgba(223, 246, 250, 0.78);
  font-weight: 850;
}

.game-builder-actions {
  justify-content: flex-end;
}

.game-builder-actions .secondary {
  color: #eaf9fb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(141, 221, 231, 0.25);
}

.builder-mobile-tabs {
  display: none;
}

.game-builder-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.game-loadout-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(97, 213, 230, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 52% 22%, rgba(87, 219, 226, 0.28), transparent 30%),
    radial-gradient(circle at 48% 64%, rgba(201, 103, 233, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(22, 44, 62, 0.94), rgba(9, 18, 24, 0.96)),
    url("assets/game-assets/waven-install/builder-rework/ui-deck-common/deckbuildingbg.png") center / cover;
  color: #eaf8fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 45px rgba(6, 24, 31, 0.18);
}

.game-stage {
  display: grid;
  gap: 12px;
}

.game-stage-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 230px);
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(161, 225, 233, 0.18);
}

.game-stage-toolbar select,
.game-level-chip input {
  min-height: 42px;
  border: 1px solid rgba(164, 223, 230, 0.22);
  border-radius: 6px;
  background: rgba(10, 14, 17, 0.72);
  color: #f5feff;
  font-weight: 900;
}

.game-level-chip {
  display: inline-grid;
  grid-template-columns: auto 54px;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #f6fbfb;
  color: #0c1519;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.game-level-chip span {
  padding: 0 8px 0 12px;
  color: #6e777b;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-level-chip input {
  width: 54px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: #0b1418;
  font-size: 27px;
  font-weight: 950;
}

.game-hero-title {
  min-width: 0;
}

.game-hero-title strong,
.game-hero-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-hero-title strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.game-hero-title span {
  color: rgba(225, 245, 249, 0.72);
  font-weight: 850;
}

.game-stage-body {
  display: grid;
  grid-template-columns: 122px minmax(260px, 1fr) minmax(272px, 360px);
  gap: 14px;
  min-height: 560px;
}

.game-equipment-rail,
.game-companion-stack,
.game-spell-grid {
  display: grid;
  align-content: center;
  gap: 8px;
}

.game-equipment-rail > span,
.game-companion-stack > span,
.game-spell-grid > span {
  color: rgba(239, 250, 253, 0.66);
  font-size: 13px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.game-character-stage {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: center;
  min-height: 560px;
  padding: 18px 18px 22px;
  overflow: hidden;
}

.game-character-bg {
  position: absolute;
  inset: 4% 7% 18%;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(100, 236, 235, 0.42), transparent 31%),
    radial-gradient(ellipse at 50% 72%, rgba(243, 154, 75, 0.22), transparent 29%),
    radial-gradient(ellipse at 50% 58%, rgba(74, 122, 190, 0.42), transparent 52%);
  filter: blur(1px);
}

.game-hero-art {
  position: relative;
  z-index: 1;
  width: min(260px, 72%);
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 36px rgba(83, 223, 234, 0.22));
}

.game-hero-art.animated-model {
  width: min(300px, 78%);
  max-height: 340px;
}

.game-quick-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: -8px;
}

.game-mode-button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(233, 250, 253, 0.18);
  border-radius: 4px;
  background: rgba(7, 10, 12, 0.74);
  color: #f0fbfe;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.game-mode-button.active {
  border-color: rgba(94, 225, 236, 0.62);
  box-shadow: 0 0 0 2px rgba(94, 225, 236, 0.17), 0 8px 22px rgba(0, 0, 0, 0.28);
}

.game-stat-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(18, 23, 26, 0.8), rgba(4, 8, 11, 0.92));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.game-stat-bar span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d9ffbb;
  font-size: 18px;
  font-weight: 950;
}

.game-stat-bar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.game-deck-rail {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
}

.game-companion-stack > span {
  max-width: 88px;
  font-size: 11px;
  line-height: 1.05;
}

.game-spell-grid > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(6, 15, 19, 0.22);
  box-shadow: inset 0 0 0 1px rgba(100, 231, 241, 0.08);
}

.game-slot {
  position: relative;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #eaf8fa;
  cursor: pointer;
}

.game-slot::after {
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: 15px;
  content: "";
  pointer-events: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.game-slot:hover::after,
.game-slot.active-slot::after {
  border-color: rgba(255, 211, 65, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.14), 0 0 22px rgba(255, 211, 65, 0.18);
}

.game-slot:active {
  transform: translateY(1px);
}

.game-slot-frame {
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(8, 18, 22, 0.94), rgba(13, 29, 35, 0.92)),
    url("assets/game-assets/waven-install/builder-rework/ui-deck-common/deckbuilding_bg_slot_generic.png") center / cover;
  border: 1px solid rgba(121, 172, 184, 0.28);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.game-slot-frame > img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.54;
}

.game-slot.filled .game-slot-frame {
  background: rgba(7, 14, 18, 0.5);
  border-color: rgba(111, 220, 232, 0.42);
}

.game-slot .card-thumb {
  width: 100%;
  min-width: 0;
  border-radius: 10px;
}

.game-gear-slot {
  display: grid;
  gap: 4px;
  align-items: center;
  justify-items: center;
}

.game-gear-slot strong {
  max-width: 100%;
  color: rgba(233, 248, 250, 0.76);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.game-companion-slot .game-slot-frame {
  width: 62px;
  border-radius: 16px;
}

.game-deck-slot {
  aspect-ratio: 1;
}

.game-deck-slot > img {
  width: 60%;
  height: 60%;
  margin: auto;
  object-fit: contain;
  opacity: 0.34;
}

.builder-stage-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  max-width: min(420px, 92%);
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(113, 226, 238, 0.22);
  border-radius: 7px;
  background: rgba(3, 10, 14, 0.48);
  color: rgba(237, 250, 252, 0.78);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.builder-stage-panel strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.builder-stage-panel span {
  font-size: 12px;
  font-weight: 850;
}

.builder-stage-panel.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.builder-stage-panel.stats > span > span {
  justify-content: center;
}

.builder-personnalisation-panel {
  min-width: min(360px, 92%);
}

.builder-persona-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.builder-persona-head > div {
  min-width: 0;
}

.builder-persona-head strong,
.builder-persona-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-class-trigger {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(112, 226, 238, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(103, 231, 241, 0.26), transparent 58%),
    rgba(5, 15, 19, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.builder-class-trigger:hover,
.builder-class-trigger:focus-visible {
  border-color: rgba(255, 214, 83, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 214, 83, 0.13), 0 10px 22px rgba(0, 0, 0, 0.3);
}

.builder-class-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.36));
}

.builder-gender-switch {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
}

.builder-gender-switch button {
  min-width: 34px;
  min-height: 30px;
  border: 1px solid rgba(222, 245, 249, 0.18);
  border-radius: 7px;
  background: rgba(9, 20, 25, 0.72);
  color: rgba(237, 250, 252, 0.72);
  font-weight: 950;
}

.builder-gender-switch button.active {
  border-color: rgba(93, 226, 238, 0.64);
  background: rgba(35, 102, 118, 0.62);
  color: #ffffff;
}

.builder-class-panel {
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(117, 225, 237, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 16%, rgba(100, 230, 239, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(11, 27, 34, 0.98), rgba(5, 13, 18, 0.98));
  color: #edfaff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.builder-class-panel .panel-head {
  align-items: center;
}

.builder-class-panel .panel-head strong {
  color: #ffffff;
  font-size: 24px;
}

.builder-class-panel .panel-head span {
  color: rgba(228, 247, 250, 0.7);
}

.builder-class-panel .icon-btn {
  color: #effcff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(141, 221, 231, 0.22);
}

.builder-class-warning {
  padding: 10px 12px;
  border: 1px solid rgba(255, 197, 74, 0.52);
  border-radius: 6px;
  background: rgba(255, 177, 47, 0.12);
  color: #ffe6a4;
  font-size: 14px;
  font-weight: 900;
}

.builder-class-groups {
  display: grid;
  gap: 12px;
}

.builder-class-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(143, 224, 235, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.builder-class-group.active {
  border-color: rgba(95, 226, 238, 0.48);
  background: rgba(67, 202, 218, 0.08);
}

.builder-class-group header {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.builder-class-group header img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}

.builder-class-group header strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.builder-subclass-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.builder-subclass-grid button {
  min-width: 0;
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 8px 6px;
  border: 1px solid rgba(219, 245, 249, 0.12);
  border-radius: 7px;
  background: rgba(5, 13, 18, 0.62);
  color: rgba(236, 250, 252, 0.78);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
}

.builder-subclass-grid button:hover,
.builder-subclass-grid button:focus-visible,
.builder-subclass-grid button.active {
  border-color: rgba(255, 211, 65, 0.78);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.11);
}

.builder-subclass-grid button.active {
  background: rgba(57, 142, 156, 0.34);
}

.builder-subclass-grid button span {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.builder-subclass-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.34));
}

.game-stage-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.game-mini-metric {
  padding: 10px;
  border: 1px solid rgba(152, 222, 232, 0.22);
  border-radius: 6px;
  background: rgba(4, 12, 16, 0.42);
  text-align: center;
}

.game-mini-metric strong,
.game-mini-metric span {
  display: block;
}

.game-mini-metric strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.game-mini-metric span {
  margin-top: 4px;
  color: rgba(222, 246, 250, 0.64);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-subclass-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(153, 221, 232, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 45%, rgba(216, 87, 241, 0.16), transparent 36%),
    rgba(4, 12, 16, 0.34);
}

.game-subclass-orbit {
  position: relative;
  min-height: 170px;
  background:
    radial-gradient(circle at center, rgba(219, 82, 235, 0.22), transparent 40%),
    url("assets/game-screenshots/builder-rework/extracted/subclass/subclass-bg-chevron-pattern.webp") center / cover;
  border-radius: 8px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  min-height: 74px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(14, 20, 28, 0.82);
  border: 2px solid rgba(226, 116, 241, 0.45);
  text-align: center;
}

.node strong,
.node span {
  display: block;
  color: #ffffff;
}

.node span {
  color: rgba(232, 246, 250, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.node-life {
  left: 6%;
  top: 16%;
  border-color: rgba(245, 89, 109, 0.62);
}

.node-attack {
  right: 6%;
  top: 16%;
  border-color: rgba(244, 199, 70, 0.62);
}

.node-core {
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-color: rgba(228, 109, 244, 0.78);
  overflow: hidden;
}

.node-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-points {
  left: 50%;
  bottom: 5%;
  min-height: 56px;
  transform: translateX(-50%);
  border-color: rgba(119, 235, 244, 0.5);
}

.game-subclass-unlocks {
  display: grid;
  align-content: center;
  gap: 9px;
}

.game-subclass-unlocks > span {
  color: rgba(231, 248, 251, 0.72);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-subclass-unlocks > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.game-drawer-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(116px, 0.3fr));
  gap: 8px;
}

.game-drawer-filters input,
.game-drawer-filters select {
  min-height: 38px;
  border: 1px solid rgba(164, 223, 230, 0.2);
  border-radius: 6px;
  background: rgba(5, 10, 13, 0.72);
  color: #f4fbfd;
  font-weight: 850;
}

.builder-slot-overlay {
  align-items: center;
  overflow: auto;
}

.builder-slot-picker {
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--brand) 4%), color-mix(in srgb, var(--surface-2) 94%, var(--bg) 6%)),
    url("assets/game-assets/waven-install/builder-rework/ui-deck-common/deckbuildingbg.png") center / cover;
  background-blend-mode: normal, soft-light;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.slot-picker-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}

.slot-picker-head h2,
.slot-picker-head p {
  margin: 0;
}

.slot-picker-head h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
}

.slot-picker-head p {
  color: var(--muted);
  font-weight: 850;
}

.slot-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.slot-selected-spells {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.slot-selected-spells header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.slot-selected-spells header strong {
  color: var(--brand-2);
}

.slot-selected-spell-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.slot-selected-spell {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 64px;
  min-height: 82px;
  padding: 6px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
  color: var(--ink);
  text-align: center;
}

.slot-selected-spell.filled {
  cursor: pointer;
}

.slot-selected-spell.filled:hover {
  border-color: rgba(255, 211, 65, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.13);
}

.slot-selected-spell.empty {
  opacity: 0.46;
}

.slot-selected-spell > img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.slot-selected-spell .card-thumb {
  width: 42px;
  min-width: 42px;
}

.slot-selected-spell strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.slot-picker-filters {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.35fr) repeat(2, minmax(116px, 0.3fr));
}

.spell-picker-filters {
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
}

.spell-element-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.spell-element-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.spell-element-filter button:hover,
.spell-element-filter button.active {
  border-color: rgba(255, 211, 65, 0.72);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.12);
}

.spell-element-filter img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.spell-element-filter span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-filter-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 950;
}

.builder-slot-picker .game-drawer-filters input,
.builder-slot-picker .game-drawer-filters select {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.slot-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.slot-option-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 112px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(12, 47, 57, 0.08);
}

.slot-option-card:hover:not(:disabled),
.slot-option-card.current {
  border-color: rgba(255, 211, 65, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.14);
}

.slot-option-card.spell-pool-card.selected {
  background: color-mix(in srgb, var(--surface) 86%, #ffd341 14%);
}

.slot-option-card:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.slot-option-card .card-thumb {
  width: 56px;
}

.slot-option-card span {
  min-width: 0;
}

.slot-option-card strong,
.slot-option-card small {
  display: block;
}

.slot-option-card strong {
  font-size: 16px;
  font-weight: 950;
}

.slot-option-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
}

.slot-option-card em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
  color: var(--brand-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.slot-option-card .kw-tip {
  color: var(--brand);
}

.slot-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.game-side-panel {
  position: sticky;
  top: 82px;
  border-color: rgba(49, 80, 87, 0.32);
  background:
    linear-gradient(180deg, rgba(15, 34, 40, 0.98), rgba(10, 25, 30, 0.98)),
    url("assets/game-assets/waven-install/builder-rework/ui-deck-common/deckbuildingbg.png") center / cover;
  color: #f0fbfc;
}

.game-side-panel label {
  color: rgba(226, 243, 246, 0.7);
}

.game-side-panel input,
.game-side-panel select,
.game-side-panel textarea {
  border-color: rgba(151, 221, 230, 0.26);
  background: rgba(3, 12, 16, 0.56);
  color: #f7feff;
}

.game-panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.game-panel-title strong {
  color: #ffffff;
  font-size: 28px;
}

.game-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.game-side-panel .hero-picker {
  padding: 10px;
  border: 1px solid rgba(151, 221, 230, 0.18);
  border-radius: 8px;
  background: rgba(4, 14, 18, 0.38);
}

.game-side-panel .hero-preview {
  border-color: rgba(151, 221, 230, 0.18);
  background: rgba(8, 23, 28, 0.78);
}

.game-side-panel .hero-preview strong {
  color: #ffffff;
}

.game-side-panel .hero-preview span,
.game-side-panel .hero-preview small {
  color: rgba(223, 242, 246, 0.68);
}

.game-side-panel .hero-class-strip button,
.game-side-panel .subclass-strip button {
  border-color: rgba(151, 221, 230, 0.18);
  background: rgba(6, 17, 21, 0.72);
  color: rgba(226, 243, 246, 0.72);
}

.game-side-panel .hero-class-strip button.active,
.game-side-panel .subclass-strip button.active {
  border-color: rgba(83, 219, 235, 0.76);
  background: rgba(32, 82, 93, 0.62);
  color: #ffffff;
}

.game-side-panel .subclass-strip img {
  width: 38px;
  height: 38px;
}

.builder-autosave-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(49, 80, 87, 0.2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, rgba(64, 198, 213, 0.12));
  color: var(--muted);
  font-weight: 850;
}

.builder-autosave-strip strong,
.builder-autosave-strip span:first-child {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 122, 139, 0.1);
  color: var(--brand-2);
  font-weight: 950;
}

.wl-tooltip {
  position: fixed;
  z-index: 5000;
  width: min(340px, calc(100vw - 32px));
  padding: 11px 12px;
  border: 1px solid rgba(102, 224, 235, 0.28);
  border-left: 4px solid #5ee1ec;
  border-radius: 7px;
  background: rgba(8, 14, 17, 0.96);
  color: rgba(238, 250, 252, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.wl-tooltip strong,
.wl-tooltip span {
  display: block;
}

.wl-tooltip strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.wl-tooltip span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.builder-analysis-stack {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 12px;
}

.builder-share-card,
.builder-level-panel,
.builder-side-block,
.builder-settings-drawer {
  padding: 12px;
  border: 1px solid rgba(151, 221, 230, 0.18);
  border-radius: 8px;
  background: rgba(4, 14, 18, 0.42);
}

.builder-share-card {
  display: grid;
  gap: 8px;
}

.builder-level-panel {
  display: grid;
  gap: 10px;
}

.builder-level-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.builder-level-head span,
.builder-side-block h2,
.builder-settings-drawer summary {
  color: rgba(236, 250, 252, 0.7);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.builder-level-head strong {
  color: #ffffff;
  font-size: 44px;
  line-height: 0.9;
}

.builder-level-range {
  width: 100%;
  accent-color: #ffd341;
  cursor: grab;
  touch-action: pan-y;
}

.builder-level-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.builder-level-controls button {
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 211, 65, 0.32);
  border-radius: 999px;
  background: rgba(255, 211, 65, 0.16);
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.builder-level-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd341, rgba(255, 211, 65, 0.32));
}

.builder-level-range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border: 2px solid rgba(12, 22, 26, 0.94);
  border-radius: 999px;
  background: #ffd341;
  box-shadow: 0 0 0 4px rgba(255, 211, 65, 0.16);
}

.builder-side-block {
  display: grid;
  gap: 10px;
}

.builder-side-block h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  text-transform: none;
}

.builder-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.builder-analysis-stat {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(2, 8, 11, 0.5);
  color: #ffffff;
  font-weight: 950;
}

.builder-analysis-stat img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.builder-analysis-stat strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-resource-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.builder-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-areas:
    "value icon"
    "label icon";
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(2, 8, 11, 0.5);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
}

.builder-resource:hover,
.builder-resource.active {
  border-color: rgba(255, 211, 65, 0.42);
  background: rgba(10, 25, 30, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.1);
}

.builder-resource strong {
  grid-area: value;
  min-width: 0;
  line-height: 1;
}

.builder-resource img {
  grid-area: icon;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.builder-resource small {
  grid-area: label;
  min-width: 0;
  color: rgba(231, 248, 250, 0.58);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.builder-resource-breakdown {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 211, 65, 0.28);
  border-radius: 8px;
  background: rgba(2, 8, 11, 0.44);
}

.builder-resource-breakdown header,
.builder-resource-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}

.builder-resource-breakdown header {
  color: #ffffff;
  font-weight: 950;
}

.builder-resource-line {
  padding: 8px;
  border-radius: 7px;
  background: rgba(224, 248, 250, 0.08);
}

.builder-resource-line em,
.builder-resource-line small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-resource-line em {
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
}

.builder-resource-line small {
  grid-column: 1;
  color: rgba(226, 243, 246, 0.58);
  font-size: 11px;
  font-weight: 820;
}

.builder-resource-line strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #ffd341;
  font-weight: 950;
}

.builder-bonus-list {
  display: grid;
  gap: 7px;
}

.builder-effect-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px 8px;
  align-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(224, 248, 250, 0.08);
  color: rgba(235, 250, 253, 0.9);
}

.builder-effect-row.inactive {
  opacity: 0.55;
}

.builder-effect-row img {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.builder-effect-row em,
.builder-effect-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-effect-row em {
  color: rgba(208, 235, 239, 0.65);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.builder-effect-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.builder-chart-stack {
  display: grid;
  gap: 8px;
}

.builder-mini-chart {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(151, 221, 230, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 11, 0.38);
}

.builder-mini-chart > strong {
  color: rgba(236, 250, 252, 0.86);
  font-size: 12px;
  text-transform: uppercase;
}

.builder-chart-row {
  display: grid;
  grid-template-columns: 22px minmax(58px, auto) minmax(60px, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}

.builder-chart-row:not(:has(img)) {
  grid-template-columns: minmax(58px, auto) minmax(60px, 1fr) auto;
}

.builder-chart-row img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.builder-chart-row em {
  color: rgba(235, 250, 253, 0.74);
  font-style: normal;
  font-weight: 850;
}

.builder-chart-row i {
  display: block;
  height: 8px;
  width: var(--bar);
  min-width: 5px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #54dbe8, #ffd341);
}

.builder-chart-row b {
  color: #ffffff;
}

.builder-settings-drawer {
  display: grid;
  gap: 10px;
}

.builder-settings-drawer summary {
  cursor: pointer;
  color: #ffffff;
}

.builder-settings-drawer[open] summary {
  margin-bottom: 10px;
}

.builder-edit-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(151, 221, 230, 0.2);
  border-radius: 8px;
  background: rgba(4, 12, 16, 0.35);
}

.builder-edit-cta .primary {
  min-width: 220px;
}

.builder-edit-cta span {
  color: rgba(226, 246, 250, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.game-competence-board {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  border-color: rgba(69, 142, 156, 0.45);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 211, 65, 0.12), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(224, 85, 238, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(25, 25, 25, 0.96), rgba(15, 17, 18, 0.98));
}

.competence-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.competence-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.competence-head span {
  color: #ffffff;
  font-size: 19px;
  font-weight: 950;
}

.competence-layout {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  gap: 16px;
  align-items: center;
}

.competence-stat-stack {
  display: grid;
  gap: 14px;
  align-content: center;
}

.competence-stat-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 8px;
  cursor: pointer;
  clip-path: polygon(50% 0, 91% 23%, 91% 77%, 50% 100%, 9% 77%, 9% 23%);
  background: rgba(40, 44, 48, 0.94);
  border: 2px solid rgba(205, 220, 224, 0.42);
  color: #ffffff;
  font: inherit;
  text-align: center;
}

.competence-stat-node:hover {
  filter: brightness(1.12);
}

.competence-stat-stack.life .competence-stat-node.active {
  background: linear-gradient(180deg, rgba(134, 21, 37, 0.92), rgba(59, 11, 17, 0.95));
  border-color: rgba(255, 103, 122, 0.8);
}

.competence-stat-stack.attack .competence-stat-node.active {
  background: linear-gradient(180deg, rgba(132, 111, 19, 0.92), rgba(49, 39, 9, 0.95));
  border-color: rgba(255, 218, 67, 0.78);
}

.competence-stat-node.locked {
  opacity: 0.58;
  filter: grayscale(0.7);
}

.competence-stat-node small,
.competence-stat-node strong,
.competence-stat-node em {
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}

.competence-stat-node small {
  font-size: 14px;
}

.competence-stat-node strong {
  font-size: 22px;
}

.competence-stat-node em {
  padding: 3px 7px;
  border-radius: 7px;
  background: #000;
  font-size: 13px;
}

.competence-center {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.competence-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.competence-card-slot {
  position: relative;
  width: 72px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(238, 241, 241, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.17);
  filter: grayscale(0.72);
}

.competence-card-slot.active {
  filter: none;
  box-shadow: 0 0 0 2px rgba(255, 211, 65, 0.8), 0 0 22px rgba(255, 211, 65, 0.35);
}

.competence-card-slot.locked {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(20, 22, 24, 0.88);
}

.competence-card-slot .card-thumb {
  width: 66px;
}

.competence-card-slot em,
.competence-passive em {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: #000;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.competence-passives {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.competence-passive {
  position: relative;
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 2px solid rgba(220, 229, 232, 0.45);
  border-radius: 18px;
  background: rgba(5, 8, 10, 0.84);
  color: #ffffff;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.68;
  transition: border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.competence-passive:hover,
.competence-passive:focus-visible {
  border-color: rgba(224, 94, 238, 0.82);
  box-shadow: 0 0 0 3px rgba(224, 94, 238, 0.14), 0 0 22px rgba(224, 94, 238, 0.2);
  filter: grayscale(0.35);
  opacity: 0.88;
}

.competence-passive.unlocked {
  border-color: rgba(255, 211, 65, 0.75);
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 211, 65, 0.14), 0 0 24px rgba(255, 211, 65, 0.28);
}

.competence-passive.locked,
.competence-passive.capped {
  border-color: rgba(166, 172, 177, 0.38);
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.44;
}

.competence-passive img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.competence-token-meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
}

.competence-token-meter span {
  min-width: 86px;
  padding: 4px 8px;
  border: 1px solid rgba(224, 94, 238, 0.34);
  border-radius: 8px;
  background: rgba(9, 10, 14, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.competence-description {
  margin: 2px 0 0;
  max-width: 740px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.game-readiness-list span {
  border-color: rgba(151, 221, 230, 0.18);
  background: rgba(4, 14, 18, 0.48);
  color: rgba(226, 243, 246, 0.72);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.skill-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.atlas-layout,
.reports-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  margin: 12px 0;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.report-list {
  align-content: start;
}

.report-target {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink) !important;
  font-weight: 850;
}

.profile-loop,
.source-dashboard,
.stats-method {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.profile-loop {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-method {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-loop strong,
.stats-method strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1;
}

.profile-loop small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.source-bars {
  display: grid;
  gap: 8px;
}

.source-bars span {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.source-bars em {
  display: block;
  height: 10px;
  width: var(--w);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.launch-mode-grid,
.today-grid,
.daily-grid,
.challenge-grid,
.dungeon-grid,
.upgrade-grid,
.external-build-grid,
.mode-grid,
.creator-grid,
.patch-grid,
.coop-board,
.mode-planner,
.crew-grid,
.objective-grid,
.onboarding-steps,
.import-grid,
.checklist-grid,
.feature-mini-list,
.tier-board,
.pantheon-grid,
.expedition-map,
.meta-layout,
.calculator-shell {
  display: grid;
  gap: 14px;
}

.launch-mode-grid,
.today-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.today-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
}

.launch-mode,
.today-card,
.daily-card,
.challenge-card,
.dungeon-card,
.upgrade-mini,
.external-build-card,
.mode-card,
.creator-card,
.patch-card,
.coop-board article,
.mode-planner article,
.crew-grid article,
.objective-grid article,
.onboarding-steps article,
.import-grid article,
.check-card,
.pantheon-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--brand) 6%, var(--surface-2))),
    var(--surface);
  box-shadow: 0 8px 24px rgba(17, 51, 66, 0.07);
}

.launch-mode.active,
.primary-today,
.daily-card.done,
.challenge-card.done,
.collection-tile.owned {
  border-color: color-mix(in srgb, var(--brand-3) 56%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-3) 22%, transparent), 0 8px 24px rgba(17, 51, 66, 0.07);
}

.feature-mini-list {
  gap: 7px;
}

.feature-mini-list a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 850;
}

.feature-mini-list span,
.expedition-map b,
.onboarding-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 13px;
  font-weight: 950;
}

.checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-card {
  display: grid;
  gap: 7px;
}

.check-card small,
.daily-card small,
.today-card p,
.launch-mode p,
.dungeon-card p,
.creator-card p,
.patch-card p,
.external-build-card p,
.mode-card p,
.objective-grid li,
.pantheon-card li span {
  color: var(--muted);
  line-height: 1.45;
}

.daily-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.daily-card,
.challenge-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.challenge-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.challenge-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.challenge-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10242e;
}

.challenge-icon img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.dungeon-grid,
.upgrade-grid,
.external-build-grid,
.creator-grid,
.patch-grid,
.coop-board,
.mode-planner,
.crew-grid,
.objective-grid,
.onboarding-steps,
.import-grid,
.pantheon-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mode-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.mode-card {
  overflow: hidden;
  padding: 0;
}

.mode-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #10242e;
}

.mode-card > div {
  padding: 16px;
}

.calculator-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  margin: 18px 0;
}

.calc-controls,
.calc-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.calc-controls {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, 0.7fr);
  gap: 12px;
}

.calc-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-controls select,
.calc-controls input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 9px 11px;
}

.calc-result h2 {
  margin: 10px 0;
  font-size: 38px;
}

.meta-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.tier-board {
  gap: 12px;
}

.tier-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.tier-row > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.tier-row a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tier,
.tier-row > strong {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 8px;
  color: #07131a;
  background: var(--accent);
  font-weight: 950;
}

.tier.s,
.tier-row > strong.s {
  background: #77e4cb;
}

.tier.a,
.tier-row > strong.a {
  background: #93c7ff;
}

.tier.b,
.tier-row > strong.b {
  background: #e6d071;
}

.tier.c,
.tier-row > strong.c {
  background: #d7dde0;
}

.pantheon-card ol,
.objective-grid ol {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.pantheon-card li {
  padding: 7px 0;
}

.expedition-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.expedition-map article,
.onboarding-steps article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.loading-section {
  min-height: 420px;
}

.skeleton-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 680px;
}

.skeleton-stack span {
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border: 1px solid var(--line);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.comments {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.comment-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.overlay,
.inline-login {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 18, 24, 0.56);
}

.inline-login {
  position: static;
  background: transparent;
  display: block;
  padding: 0;
  margin-top: 20px;
}

.search-panel,
.login-panel {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.search-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.search-item small,
.muted {
  color: var(--muted);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.provider {
  display: grid;
  gap: 5px;
  padding: 16px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 900;
}

.provider small {
  color: var(--muted);
  font-weight: 600;
}

.account-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-form label {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

.account-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.verify-code {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.account-summary-card,
.account-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.account-summary-card h2,
.account-state-card h2 {
  margin: 4px 0;
}

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

.account-stat-grid article,
.account-overview > article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.account-stat-grid strong {
  display: block;
  font-size: 24px;
}

.account-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
  color: var(--ink);
  font-weight: 850;
}

.account-state-card.connected {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.clean-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
}

body.launch-gated {
  overflow: hidden;
}

.launch-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  min-height: 100vh;
  background: color-mix(in srgb, var(--bg) 88%, rgba(6, 21, 28, 0.92));
  color: var(--ink);
}

.launch-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 31, 42, 0.42), color-mix(in srgb, var(--surface) 86%, transparent) 60%),
    radial-gradient(circle at 18% 22%, rgba(46, 168, 216, 0.24), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(231, 169, 40, 0.18), transparent 24%);
  pointer-events: none;
}

.launch-gate-media {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.launch-gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
}

.launch-gate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 23, 31, 0.12), rgba(5, 23, 31, 0.68));
}

.launch-gate-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 18px;
  justify-self: center;
  width: min(520px, calc(100% - 32px));
  margin: 24px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.launch-gate-panel h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

.launch-gate-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.launch-gate-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.launch-gate-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.launch-gate-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}

.launch-gate-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.launch-gate-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.launch-gate-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.launch-gate-status {
  padding: 11px 13px;
  border-radius: 8px;
  font-weight: 800;
}

.launch-gate-status.success {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

.launch-gate-status.error {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}

.launch-gate-account {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.launch-gate-account summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.launch-gate-account .verify-code {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .launch-gate {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
  }

  .launch-gate-media {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }

  .launch-gate-media::after {
    background: linear-gradient(180deg, rgba(5, 23, 31, 0.72), rgba(5, 23, 31, 0.82));
  }

  .launch-gate-panel {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .launch-gate-panel h1 {
    font-size: clamp(32px, 12vw, 46px);
  }
}

.site-footer {
  width: var(--page);
  margin: 24px auto 48px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 720px;
}

.footer-brand > div {
  display: grid;
  justify-items: center;
}

.footer-brand p {
  margin: 4px 0 0;
  max-width: 640px;
}

.footer-title {
  width: 178px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.footer-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  width: min(760px, 100%);
}

.footer-data span {
  display: grid;
  gap: 3px;
  min-height: 62px;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 12px 28px rgba(17, 51, 66, 0.08);
}

.footer-data strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.1;
}

.footer-data small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-links a,
.text-link {
  color: var(--brand-2);
  font-weight: 900;
}

.footer-credit {
  width: min(520px, 100%);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 1000;
}

.footer-credit span {
  display: inline-block;
  transform: translateY(0.04em);
}

.mobile-bar {
  display: none;
}

@media (max-width: 1320px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger {
    display: inline-flex;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .top-actions {
    justify-content: end;
  }

  .pill-btn,
  .version-pill,
  .primary,
  .secondary,
  .ghost,
  .vote,
  .primary.small {
    min-height: 44px;
  }

  .filter-bar input,
  .filter-bar select,
  .builder-config input,
  .builder-config select,
  .builder-config textarea,
  .pool-head input,
  .pool-head select,
  .report-form input,
  .report-form select,
  .report-form textarea,
  .comment-form textarea,
  .large-input,
  .game-stage-toolbar select,
  .game-level-chip input,
  .game-drawer-filters input,
  .game-drawer-filters select,
  .game-side-panel input,
  .game-side-panel select,
  .calc-controls select,
  .calc-controls input {
    min-height: 44px;
  }

  .game-slider input,
  .codex-level-strip input {
    min-height: 44px;
  }

  .game-mode-button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    width: 142px;
  }

  .desktop-nav {
    display: flex;
    gap: 2px;
    justify-self: center;
    min-height: 44px;
    padding: 4px;
  }

  .nav-top {
    min-height: 34px;
    gap: 4px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .nav-top span {
    font-size: 11px;
  }

  .top-actions {
    gap: 6px;
  }

  .locale-select {
    max-width: 112px;
    padding-inline: 10px 28px;
  }

  .top-actions .primary.small {
    display: none;
  }

  .menu-trigger {
    display: none;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger {
    display: inline-flex;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .top-actions {
    justify-content: end;
  }

  .game-builder-workbench {
    grid-template-columns: 1fr;
  }

  .game-side-panel {
    position: static;
  }

  .pill-btn,
  .primary,
  .secondary,
  .ghost,
  .vote,
  .primary.small {
    min-height: 44px;
  }

  .filter-bar input,
  .filter-bar select,
  .builder-config input,
  .builder-config select,
  .builder-config textarea,
  .pool-head input,
  .pool-head select,
  .report-form input,
  .report-form select,
  .report-form textarea,
  .comment-form textarea,
  .large-input,
  .game-stage-toolbar select,
  .game-level-chip input,
  .game-drawer-filters input,
  .game-drawer-filters select,
  .game-side-panel input,
  .game-side-panel select,
  .calc-controls select,
  .calc-controls input {
    min-height: 44px;
  }

  .game-mode-button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100vw - 24px, 760px);
  }

  .hero-band,
  .dashboard-grid,
  .statement-grid,
  .trend-grid,
  .build-grid,
  .guide-grid,
  .list-grid,
  .tool-grid,
  .progress-grid,
  .prism-summary,
  .prism-grid,
  .split-band,
  .article-layout,
  .detail-head,
  .loadout-layout,
  .builder-layout,
  .builder-hero-stage,
  .game-builder-workbench,
  .game-stage-body,
  .game-stage-toolbar,
  .game-subclass-board,
  .build-insights,
  .atlas-layout,
  .reports-layout,
  .launch-strip,
  .profile-loop,
  .source-dashboard,
  .stats-method,
  .gift-intro-grid,
  .gift-code-grid,
  .gift-visual-strip,
  .gift-source-panel,
  .summary-strip,
  .prism-row,
  .trust-grid,
  .launch-mode-grid,
  .today-grid,
  .checklist-grid,
  .challenge-card,
  .calculator-shell,
  .calc-controls,
  .meta-layout,
  .tier-row,
  .expedition-map {
    grid-template-columns: 1fr;
  }

  .prism-row img,
  .prism-row-thumb {
    width: 100%;
  }

  .codex-game-panel,
  .codex-reference-grid {
    grid-template-columns: 1fr;
  }

  .codex-upgrade-board {
    border-left: 0;
    border-top: 1px solid rgba(139, 235, 243, 0.24);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .next-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-toc {
    position: static;
  }

  .slot-grid,
  .codex-grid,
  .slot-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passive-list {
    grid-template-columns: 1fr;
  }

  .deck-slots {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-side-panel {
    position: static;
  }

  .builder-analysis-stack {
    max-height: none;
  }

  .game-stage-body {
    min-height: 0;
  }

  .game-equipment-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-deck-rail {
    grid-template-columns: 1fr;
  }

  .game-companion-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-companion-stack > span,
  .game-spell-grid > span,
  .game-equipment-rail > span {
    grid-column: 1 / -1;
  }

  .game-character-stage {
    min-height: 460px;
  }

  .competence-layout {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 10px;
  }

  .competence-card-slot {
    width: 62px;
    min-height: 62px;
  }

  .competence-card-slot .card-thumb {
    width: 58px;
  }

  .competence-stat-node {
    min-height: 70px;
  }

  .game-drawer-filters {
    grid-template-columns: 1fr 1fr;
  }

  .spell-picker-filters {
    grid-template-columns: 1fr;
  }

  .spell-element-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-picker-filters,
  .slot-picker-list {
    grid-template-columns: 1fr 1fr;
  }

  .slot-picker-filters.spell-picker-filters {
    grid-template-columns: 1fr;
  }

  .builder-class-group {
    grid-template-columns: 1fr;
  }

  .builder-class-group header {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .challenge-icon {
    width: 58px;
    height: 58px;
  }

  .mode-card img {
    height: 150px;
  }

  .site-footer {
    margin-bottom: 80px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100vw - 24px);
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    background-attachment: scroll, scroll, scroll, scroll;
    background-size: auto, auto, auto, 520px 520px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 10px;
    gap: 8px;
    overflow: visible;
  }

  .brand {
    gap: 8px;
    min-height: 44px;
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    display: none;
  }

  .top-actions {
    min-width: 0;
    gap: 4px;
    justify-content: end;
  }

  .version-switch {
    flex: 0 1 auto;
    gap: 2px;
    padding: 2px;
    max-width: 124px;
    overflow: hidden;
  }

  .version-pill {
    min-height: 38px;
    min-width: 0;
    padding: 0 7px;
    font-size: 11px;
  }

  .version-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .version-context strong {
    font-size: 16px;
  }

  .version-context p {
    font-size: 14px;
    line-height: 1.35;
  }

  .version-context > span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .icon-btn {
    width: 44px;
    min-height: 44px;
  }

  .brand small,
  .pill-btn,
  .locale-switch,
  .top-actions .primary {
    display: none;
  }

  .site-main {
    padding-top: 12px;
  }

  .mobile-menu {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    z-index: 45;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100dvh - 61px - 68px);
    padding: 10px 12px 12px;
    overflow-y: auto;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(12, 44, 54, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-menu a,
  .mobile-nav-group summary,
  .mobile-subnav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .primary,
  .secondary,
  .ghost,
  .vote {
    min-height: 44px;
  }

  .hero-actions,
  .card-actions {
    gap: 8px;
  }

  .hero-actions .primary,
  .hero-actions .secondary,
  .card-actions .primary,
  .card-actions .secondary {
    min-height: 44px;
  }

  .content-band,
  .split-band,
  .table-shell,
  .plain-page {
    padding: 14px;
    overflow-wrap: anywhere;
  }

  .hero-band {
    gap: 12px;
    margin-bottom: 18px;
    min-height: 0;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p,
  .lead {
    font-size: 16px;
    line-height: 1.48;
  }

  .hero-media {
    min-height: 180px;
  }

  body.route-codex .hero-band,
  body.route-prismes .hero-band,
  body.route-gift-codes .hero-band,
  body.route-bugs .hero-band,
  body.route-builds .hero-band,
  body.route-meta .hero-band,
  body.route-tiers .hero-band,
  body.route-leaderboards .hero-band {
    gap: 10px;
  }

  body.route-codex .hero-copy,
  body.route-prismes .hero-copy,
  body.route-gift-codes .hero-copy,
  body.route-bugs .hero-copy,
  body.route-builds .hero-copy,
  body.route-meta .hero-copy,
  body.route-tiers .hero-copy,
  body.route-leaderboards .hero-copy {
    padding: 16px;
  }

  body.route-codex .hero-copy h1,
  body.route-prismes .hero-copy h1,
  body.route-gift-codes .hero-copy h1,
  body.route-bugs .hero-copy h1,
  body.route-builds .hero-copy h1,
  body.route-meta .hero-copy h1,
  body.route-tiers .hero-copy h1,
  body.route-leaderboards .hero-copy h1 {
    font-size: 30px;
  }

  body.route-codex .hero-copy p,
  body.route-prismes .hero-copy p,
  body.route-gift-codes .hero-copy p,
  body.route-bugs .hero-copy p,
  body.route-builds .hero-copy p,
  body.route-meta .hero-copy p,
  body.route-tiers .hero-copy p,
  body.route-leaderboards .hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  body.route-codex .hero-media,
  body.route-prismes .hero-media,
  body.route-gift-codes .hero-media,
  body.route-bugs .hero-media,
  body.route-builds .hero-media,
  body.route-meta .hero-media,
  body.route-tiers .hero-media,
  body.route-leaderboards .hero-media {
    height: 142px;
    min-height: 0;
  }

  .gift-intro-grid {
    display: flex;
    gap: 10px;
    margin: 12px 0 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .gift-status-card {
    flex: 0 0 238px;
    min-height: 116px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .gift-status-card strong {
    font-size: 26px;
  }

  .gift-status-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .summary-strip,
  .prism-summary {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .summary-strip article,
  .prism-summary article {
    flex: 0 0 116px;
    min-height: 76px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .summary-strip strong,
  .prism-summary strong {
    font-size: 24px;
  }

  .next-grid,
  .launch-strip,
  .gift-source-list a,
  .provider-grid,
  .account-summary-card,
  .account-overview,
  .account-stat-grid,
  .verify-code,
  .equipment-slots {
    grid-template-columns: 1fr;
  }

  .gift-code-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .gift-code-value {
    grid-template-columns: 1fr;
  }

  .gift-code-value small {
    justify-self: start;
  }

  .gift-reward-icons span {
    flex: 1 1 128px;
  }

  .gift-source-list span {
    text-align: left;
  }

  .guide-card,
  .entity-hero,
  .prism-card {
    grid-template-columns: 1fr;
  }

  .prism-card img,
  .prism-image-missing {
    min-height: 168px;
  }

  .prism-card-body {
    padding: 14px;
  }

  .prism-card h2 {
    font-size: 20px;
  }

  .codex-title-row {
    grid-template-columns: 1fr;
  }

  .card-thumb.large.game-card {
    width: 132px;
    min-width: 0;
  }

  .codex-identity-panel,
  .codex-upgrade-board {
    min-width: 0;
    padding: 16px;
    overflow: hidden;
  }

  .codex-title-row h1 {
    font-size: 34px;
  }

  .codex-title-tags span,
  .codex-resource-row span,
  .keyword-pill {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .codex-effect-line {
    padding: 10px 12px 10px 17px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .codex-level-strip {
    grid-template-columns: 1fr;
  }

  .codex-actions {
    display: grid;
    gap: 8px;
  }

  .codex-actions .primary,
  .codex-actions .secondary {
    width: 100%;
  }

  .upgrade-carousel {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }

  .upgrade-card {
    min-width: min(230px, 82vw);
    scroll-snap-align: start;
  }

  .guide-card > div {
    padding: 16px;
  }

  .codex-grid {
    gap: 8px;
  }

  .entity-tile {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  .card-thumb.small.game-card {
    width: 54px;
    min-width: 54px;
  }

  .entity-tile strong {
    font-size: 15px;
  }

  .entity-tile p,
  .effect-mini p {
    font-size: 12px;
    line-height: 1.28;
  }

  .effect-mini {
    gap: 5px;
    margin-top: 6px;
  }

  .effect-mini p {
    padding: 6px 7px;
  }

  .deck-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-builder-command {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .game-builder-command h1 {
    font-size: 28px;
  }

  .game-builder-command p {
    font-size: 13px;
    line-height: 1.35;
  }

  .builder-autosave-strip {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
  }

  .builder-mobile-tabs {
    position: sticky;
    top: 61px;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 12px 24px rgba(18, 66, 78, 0.12);
    backdrop-filter: blur(14px);
  }

  .builder-mobile-tabs a {
    min-width: 0;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    text-align: center;
  }

  #builder-loadout,
  #builder-profile {
    scroll-margin-top: 122px;
  }

  .game-builder-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-builder-actions .primary {
    grid-column: 1 / -1;
  }

  .game-loadout-board {
    padding: 10px;
  }

  .builder-analysis-stack {
    max-height: none;
    padding: 10px;
  }

  .builder-stat-grid,
  .builder-resource-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-stage-toolbar,
  .game-drawer-filters,
  .slot-picker-filters,
  .slot-picker-head,
  .game-stage-footer,
  .game-two-fields {
    grid-template-columns: 1fr;
  }

  .slot-picker-head {
    display: grid;
  }

  .slot-picker-actions {
    justify-content: stretch;
  }

  .slot-picker-actions > * {
    flex: 1 1 130px;
  }

  .spell-element-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-picker-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .builder-stage-panel.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-level-chip {
    grid-template-columns: auto minmax(64px, 1fr);
  }

  .game-level-chip input {
    width: 100%;
    text-align: left;
  }

  .game-character-stage {
    min-height: 260px;
    padding-inline: 4px;
  }

  .game-hero-art {
    width: min(150px, 70%);
    max-height: 190px;
  }

  .game-hero-art.animated-model {
    width: min(170px, 76%);
    max-height: 205px;
  }

  .game-equipment-rail,
  .game-companion-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-slot {
    min-height: 62px;
  }

  .game-spell-grid > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
  }

  .game-slot-frame {
    width: 48px;
  }

  .builder-edit-cta {
    display: grid;
    text-align: center;
  }

  .builder-edit-cta .primary {
    width: 100%;
    min-width: 0;
  }

  .competence-layout {
    grid-template-columns: 1fr;
  }

  .competence-stat-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .competence-stat-node {
    min-height: 64px;
    clip-path: none;
    border-radius: 10px;
  }

  .competence-stat-node strong {
    font-size: 20px;
  }

  .competence-card-slot {
    width: 56px;
    min-height: 56px;
  }

  .competence-card-slot .card-thumb {
    width: 52px;
  }

  .competence-passive {
    width: 58px;
  }

  .competence-description {
    font-size: 15px;
  }

  .overlay {
    padding: 10px;
  }

  .builder-class-panel {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .builder-class-panel .panel-head {
    grid-template-columns: 1fr auto;
  }

  .builder-subclass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-subclass-grid button {
    min-height: 104px;
  }

  .upgrade-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
  }

  .codex-detail .text-link,
  .article-layout .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .deck-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .pool-head {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    position: sticky;
    top: 65px;
    z-index: 21;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 12px 24px rgba(18, 66, 78, 0.1);
    backdrop-filter: blur(14px);
  }

  .filter-bar input,
  .filter-bar select,
  .filter-field {
    width: 100%;
    min-width: 0;
  }

  .filter-bar input,
  .filter-bar select,
  .builder-config input,
  .builder-config select,
  .builder-config textarea,
  .pool-head input,
  .pool-head select,
  .report-form input,
  .report-form select,
  .report-form textarea,
  .comment-form textarea,
  .large-input,
  .game-stage-toolbar select,
  .game-level-chip input,
  .game-drawer-filters input,
  .game-drawer-filters select,
  .game-side-panel input,
  .game-side-panel select,
  .calc-controls select,
  .calc-controls input {
    min-height: 44px;
  }

  .kw-tip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding-inline: 3px;
    margin-inline: 1px;
    border-radius: 5px;
    text-decoration-thickness: 2px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-brand {
    gap: 8px;
  }

  .footer-data {
    grid-template-columns: 1fr;
  }

  .slot-grid,
  .codex-grid {
    grid-template-columns: 1fr;
  }

  .result-count {
    width: 100%;
    margin-left: 0;
  }

  .level-panel-head {
    flex-direction: column;
  }

  .game-slider {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -14px 32px rgba(12, 44, 54, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-bar a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    place-items: center;
    min-height: 56px;
    min-width: 0;
    padding: 5px 2px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
  }

  .mobile-bar a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bar .icon-symbol {
    width: 19px;
    height: 19px;
    stroke-width: 2.4;
  }

  .mobile-bar a.active {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
    box-shadow: inset 0 3px 0 var(--accent);
  }
}

.sync-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  color: var(--muted);
}

.sync-status small {
  flex-basis: 100%;
  color: var(--muted);
}

.sync-status.compact {
  margin: 8px 0 0;
}

@media (max-width: 360px) {
  .topbar {
    padding-inline: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    display: none;
  }

  .version-context {
    padding: 10px;
  }

  .version-context p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .hero-copy {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-copy p,
  .lead {
    font-size: 15px;
  }

  .hero-media {
    min-height: 150px;
  }
}
