/* Concept architecture override */

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 162, 86, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(65, 89, 123, 0.16), transparent 24%),
    radial-gradient(circle at 14% 70%, rgba(31, 52, 82, 0.15), transparent 28%),
    linear-gradient(180deg, #07111e 0%, #07101b 32%, #050a13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.014), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(212, 168, 93, 0.05), transparent 10%, transparent 90%, rgba(212, 168, 93, 0.04));
  opacity: 0.8;
}

.app-shell {
  width: calc(100vw - 1rem);
  padding: 0.9rem 0.55rem 0.8rem;
  gap: 0.55rem;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0.25rem;
  border: 1px solid rgba(193, 147, 76, 0.18);
  border-radius: 18px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 0 28px rgba(204, 154, 74, 0.03);
}

.background-glow {
  opacity: 0.045;
}

.hero-panel,
.stats-grid,
.content-panel,
.status-bar {
  border-radius: 16px;
  box-shadow: none;
}

.hero-panel {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) auto;
  gap: 1.25rem;
  padding: 0.95rem 1.15rem;
  border-color: rgba(193, 147, 76, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 48%),
    linear-gradient(90deg, rgba(11, 18, 31, 0.95), rgba(8, 14, 24, 0.86) 42%, rgba(9, 16, 29, 0.95));
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(214, 168, 84, 0.1), transparent 26%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.015) 48%, transparent 100%);
  pointer-events: none;
}

.hero-brand,
.hero-controls,
.menu-tabs {
  position: relative;
  z-index: 1;
}

.hero-crest {
  width: 4.1rem;
  height: 5rem;
  border-radius: 0;
  clip-path: polygon(16% 0%, 84% 0%, 96% 16%, 96% 66%, 50% 100%, 4% 66%, 4% 16%);
  border: 1px solid rgba(210, 165, 85, 0.52);
  background:
    linear-gradient(180deg, rgba(214, 170, 88, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(15, 22, 35, 0.98), rgba(8, 12, 20, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}

.hero-identity {
  gap: 0.18rem;
}

.eyebrow {
  margin-bottom: 0.18rem;
  color: #d5ae67;
  letter-spacing: 0.22em;
}

h1 {
  font-size: clamp(2.2rem, 2.9vw, 3.6rem);
}

h2 {
  font-size: clamp(2.2rem, 2.8vw, 3.35rem);
  line-height: 0.96;
}

.hero-copy,
.panel-copy,
.prestige-copy,
.subpanel-heading p,
.item-summary,
.realm-row-copy p {
  color: #c6b18f;
}

.menu-tabs-primary {
  gap: 0;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  position: relative;
  isolation: isolate;
}

.menu-tabs-primary::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 149, 80, 0.42) 16%, rgba(192, 149, 80, 0.24) 84%, transparent);
}

.tab-button,
.subtab-button {
  min-width: auto;
  padding: 0.85rem 1.35rem 0.82rem;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(197, 152, 75, 0.08);
  background: transparent;
  color: #eadcbc;
  font-size: 0.98rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 120ms ease;
}

.tab-button:last-child,
.subtab-button:last-child {
  border-right: 0;
}

.tab-button::after,
.subtab-button::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.1rem;
  height: 2px;
  background: transparent;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.tab-button.is-active,
.subtab-button.is-active {
  color: #f7e8c4;
}

.tab-button.is-active::after,
.subtab-button.is-active::after {
  background: linear-gradient(90deg, transparent, #d7af66 18%, #f5d48d 50%, #d7af66 82%, transparent);
  box-shadow: 0 0 12px rgba(225, 183, 100, 0.34);
}

.tab-strip-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-right: 1px solid rgba(197, 152, 75, 0.08);
  background:
    linear-gradient(180deg, rgba(205, 160, 82, 0.15), rgba(205, 160, 82, 0.02) 84%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(215, 175, 102, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 160ms ease;
}

.tab-strip-indicator.is-visible {
  opacity: 1;
}

.tab-strip-indicator.is-animated {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.button {
  border-radius: 10px;
  padding: 0.82rem 1.3rem;
  border: 1px solid rgba(211, 165, 84, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.button-primary {
  background: linear-gradient(180deg, #f1cf86 0%, #cea153 100%);
  color: #241603;
}

.button-secondary {
  background: linear-gradient(180deg, #bbc689 0%, #8ea36a 100%);
  color: #1b210f;
}

.button-ghost,
.item-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border-color: rgba(197, 152, 75, 0.16);
}

.stats-grid {
  gap: 0;
  padding: 0.18rem 0.3rem;
  border-color: rgba(193, 147, 76, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
    linear-gradient(90deg, rgba(11, 17, 29, 0.96), rgba(9, 15, 25, 0.92));
}

.stat-card {
  position: relative;
  flex: 1 1 0;
  min-width: 8.4rem;
  min-height: 3.35rem;
  padding: 0.45rem 0.82rem 0.45rem 0.95rem;
  border-right-color: rgba(197, 152, 75, 0.14);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.3rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 174, 96, 0.8), rgba(216, 174, 96, 0));
  opacity: 0.7;
}

.stat-card-accent {
  background: linear-gradient(90deg, rgba(201, 152, 71, 0.06), transparent 72%);
}

.stat-label {
  color: #cfb483;
  font-size: 0.76rem;
}

.stat-value {
  font-size: clamp(1.05rem, 1.35vw, 1.6rem);
}

.stat-detail {
  font-size: 0.7rem;
}

.content-panel {
  position: relative;
  padding: 1rem;
  border-color: rgba(193, 147, 76, 0.18);
  background:
    radial-gradient(circle at 52% 0%, rgba(193, 147, 76, 0.085), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(6, 10, 16, 0.98));
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(193, 147, 76, 0.1);
  border-radius: 12px;
  pointer-events: none;
}

.menu-panel.is-active {
  padding-right: 0.35rem;
}

.panel-heading {
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.22rem 0.2rem 0.78rem;
  border-bottom-color: rgba(193, 147, 76, 0.12);
}

.panel-heading .panel-copy {
  max-width: 36rem;
  text-align: left;
}

.realm-board-layout,
.war-view-grid,
.concept-stage-layout,
.army-command-layout,
.frontier-layout {
  gap: 1rem;
}

.realm-board-layout,
.war-view-grid,
.concept-stage-layout {
  grid-template-columns: minmax(0, 1.68fr) minmax(19rem, 0.82fr);
}

.army-command-layout {
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.34fr) minmax(17rem, 0.8fr);
}

.subpanel,
.perk-card,
.dynasty-summary {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 22%),
    rgba(8, 12, 19, 0.48);
  border-color: rgba(193, 147, 76, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    inset 0 24px 60px rgba(255, 255, 255, 0.01);
}

.subpanel {
  padding: 0.95rem 1rem;
}

.subpanel-heading {
  align-items: center;
  margin-bottom: 0.65rem;
}

.subpanel-heading h3 {
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8d3a6;
}

.realm-main-column,
.concept-main-stage,
.war-main-column,
.army-detail-panel {
  gap: 0.95rem;
}

.realm-sidebar,
.concept-sidebar,
.war-sidebar,
.army-sidebar-stack {
  gap: 0.8rem;
}

.realm-sidebar-panel,
.war-sidebar-panel,
.concept-detail-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26%),
    linear-gradient(135deg, rgba(193, 147, 76, 0.045), transparent 52%),
    rgba(8, 11, 18, 0.7);
}

.realm-list,
.war-fronts-list,
.frontier-operations-list,
.army-roster-list,
.army-recruitment-list,
.ledger-list,
.war-summary-list,
.war-alerts-list {
  gap: 0;
}

.item-card,
.war-front-row,
.frontier-operation-row,
.army-status-card,
.army-recruitment-row {
  border-radius: 0;
  border-width: 1px 0 0;
  border-color: rgba(193, 147, 76, 0.11);
  background: transparent;
  box-shadow: none;
}

.item-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: auto;
  padding: 1rem 0.2rem 1rem 1.25rem;
}

.item-card::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 1.36rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, #f3d18b 0%, #c8923e 68%, transparent 72%);
  box-shadow: 0 0 10px rgba(233, 185, 93, 0.22);
}

.item-card:hover {
  transform: none;
  border-color: rgba(216, 171, 93, 0.26);
  background: linear-gradient(90deg, rgba(193, 147, 76, 0.08), transparent 62%);
}

.item-card.is-locked {
  opacity: 0.72;
}

.item-header {
  gap: 0.6rem;
}

.item-title {
  font-size: 1rem;
}

.item-summary {
  font-size: 0.9rem;
}

.item-button {
  min-width: 6.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
}

.item-popup {
  display: none;
}

.war-stat-strip,
.ledger-summary-strip {
  gap: 0;
  border: 1px solid rgba(193, 147, 76, 0.15);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 12, 19, 0.56);
}

.war-stat-card,
.concept-summary-card {
  border: 0;
  border-right: 1px solid rgba(193, 147, 76, 0.11);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.war-stat-card:last-child,
.concept-summary-card:last-child {
  border-right: 0;
}

.war-stage-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 26%),
    linear-gradient(135deg, rgba(193, 147, 76, 0.03), transparent 55%),
    rgba(7, 10, 17, 0.68);
}

.war-front-row,
.frontier-operation-row {
  padding: 0.9rem 0.2rem 0.9rem 0.4rem;
  grid-template-columns: minmax(0, 1.18fr) minmax(8rem, 1fr) minmax(6rem, 0.7fr) minmax(7rem, 0.92fr) auto;
}

.war-front-row:hover,
.frontier-operation-row:hover,
.army-status-card:hover {
  background: linear-gradient(90deg, rgba(193, 147, 76, 0.08), transparent 72%);
}

.war-army-status-grid {
  gap: 0.75rem;
}

.army-status-card {
  border-width: 1px;
  border-radius: 12px;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    rgba(8, 12, 19, 0.56);
}

.army-hero {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(193, 147, 76, 0.12);
}

.army-hero-copy h3 {
  font-size: 2.35rem;
}

.army-hero-metric,
.army-side-stat,
.frontier-detail-row,
.army-stance-card,
.army-queue-card,
.army-unit-group,
.army-unit-group-header {
  border-radius: 10px;
}

.army-unit-group {
  background: rgba(9, 13, 20, 0.56);
}

.region-map {
  min-height: 32rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(173, 141, 84, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(17, 25, 34, 0.92), rgba(8, 12, 18, 0.98));
}

.frontier-map-frame {
  position: relative;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(193, 147, 76, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    rgba(8, 12, 19, 0.45);
}

.region-node {
  border-radius: 12px;
  min-width: 8rem;
  padding: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(10, 16, 24, 0.9);
}

.academy-grid,
.vault-grid {
  gap: 0.9rem;
}

.academy-grid .item-card,
.vault-grid .item-card {
  border-width: 1px;
  border-radius: 12px;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30%),
    rgba(10, 14, 22, 0.7);
}

.academy-grid .item-card::before,
.vault-grid .item-card::before {
  left: 0.8rem;
  top: 0.82rem;
}

.academy-grid .item-copy,
.vault-grid .item-copy {
  padding-left: 0.8rem;
}

.ledger-list {
  display: grid;
}

.ledger-row {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(193, 147, 76, 0.1);
}

.ledger-row:first-child {
  border-top: 0;
}

.concept-lower-grid,
.concept-lower-grid-two,
.concept-lower-grid-three {
  gap: 0.9rem;
}

.dynasty-renown-badge {
  justify-items: start;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(193, 147, 76, 0.16);
  border-radius: 12px;
  background: rgba(8, 12, 19, 0.46);
}

.status-bar {
  padding: 0.7rem 1rem;
  border-color: rgba(193, 147, 76, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent),
    rgba(7, 11, 18, 0.92);
}

.status-bar-center {
  color: #cf9d4f;
  letter-spacing: 0.08em;
}

.status-pill,
.status-icon {
  border-radius: 10px;
  border-color: rgba(193, 147, 76, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 182, 105, 0.72), rgba(145, 101, 45, 0.82));
}

@media (max-width: 1400px) {
  .realm-board-layout,
  .war-view-grid,
  .concept-stage-layout,
  .frontier-layout {
    grid-template-columns: 1fr;
  }

  .army-command-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .menu-tabs-primary {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

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

  .stat-card {
    border-right: 0;
    border-top: 1px solid rgba(197, 152, 75, 0.12);
  }

  .stat-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .academy-grid,
  .vault-grid,
  .war-army-status-grid,
  .concept-lower-grid-two,
  .concept-lower-grid-three {
    grid-template-columns: 1fr;
  }
}

