@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Inter+Tight:wght@600;700;800;900&display=swap');
:root {
  --bg: #0f1115;
  --card: #171a21;
  --card2: #1e222b;
  --text: #f4f6f8;
  --muted: #aeb6c2;
  --accent: #ff7a1a;
  --line: #303642;
  --good: #44d17a;
  --warn: #ffd166;
  --bad: #ff6b6b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0px;
  color: var(--text);
  font: 15px / 1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
header {
  max-width: 1180px;
  margin: auto;
}
h1 {
  margin: 0px;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--accent);
}
header p {
  color: var(--muted);
  max-width: 850px;
  margin: 8px 0px 0px;
}
main {
  max-width: 1180px;
  margin: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  border: 1px solid var(--line);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 8px 30px;
}
.span12 {
  grid-column: span 12;
}
.span6 {
  grid-column: span 6;
}
@media (max-width: 820px) {
  .span6 {
    grid-column: span 12;
  }
}
h2 {
  margin: 0px 0px 12px;
  font-size: 20px;
}
h3 {
  margin: 16px 0px 8px;
  font-size: 16px;
  color: rgb(221, 227, 234);
}
.sub {
  color: var(--muted);
}
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
@media (max-width: 620px) {
  .controls {
    grid-template-columns: 1fr;
  }
}
label {
  display: block;
  margin-bottom: 4px;
}
select, input {
  width: 100%;
  font: inherit;
}
input[type="checkbox"] {
  width: auto;
  vertical-align: middle;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  border: 0px;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: rgb(17, 17, 17);
}
.btn.secondary {
  background: rgb(42, 48, 59);
  color: var(--text);
  border: 1px solid rgb(59, 67, 80);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid rgb(44, 50, 61);
  text-align: right;
}
th:first-child, td:first-child {
  text-align: left;
}
th {
  color: rgb(203, 210, 219);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rank1 {
  background: rgba(68, 209, 122, 0.1);
}
.good {
  color: var(--good);
}
.muted {
  color: var(--muted);
}
.note {
  border-left: 3px solid var(--accent);
  padding-left: 11px;
  color: rgb(203, 210, 219);
}
.kpi {
  background: rgb(17, 21, 27);
  border: 1px solid rgb(44, 51, 62);
  border-radius: 11px;
  padding: 12px;
}
.kpi strong {
  font-size: 19px;
  display: block;
}
.kpi span {
  font-size: 12px;
  color: var(--muted);
}
details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  color: rgb(233, 237, 242);
  font-weight: 600;
}
.footer {
  color: rgb(143, 152, 165);
  font-size: 12px;
  margin-top: 18px;
}
.tabpane {
  display: none;
}
.tabpane.active {
  display: block;
}
.resultgrid {
  display: grid;
  gap: 10px;
}
header {
  padding-top: 34px;
}
header h1 {
  letter-spacing: -0.035em;
  text-shadow: rgba(255, 122, 26, 0.12) 0px 0px 28px;
}
.card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  box-shadow: rgba(0, 0, 0, 0.22) 0px 12px 34px;
}
select, input {
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
select:hover, input:hover {
  border-color: rgb(75, 85, 100);
}
select:focus, input:focus {
  outline: none;
  background: rgb(14, 18, 24);
}
.btn {
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(1px);
}
.kpi {
  transition: border-color 0.18s, transform 0.18s;
}
.kpi:hover {
  border-color: rgb(65, 74, 88);
  transform: translateY(-1px);
}
#tabIndividual .card {
  padding: 20px;
}
.individual-form {
  display: grid;
  gap: 16px;
}
.field-section {
  border: 1px solid rgb(43, 50, 61);
}
.field-section h3 {
  margin: 0px 0px 10px;
}
.field-section .sub {
  margin-top: -4px;
  margin-bottom: 10px;
}
.resultbox {
  margin-top: 18px;
  padding: 0px;
  border: 1px solid rgb(58, 66, 79);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 16px 44px;
}
.resultbox::before {
  inset: 0px auto auto 0px;
  background: linear-gradient(90deg,var(--accent),#ffb15f 48%,transparent);
}
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.result-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.result-title {
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 850;
  letter-spacing: -0.025em;
}
.result-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(68, 209, 122, 0.11);
  border: 1px solid rgba(68, 209, 122, 0.28);
  color: var(--good);
  font-size: 12px;
  font-weight: 800;
}
.result-body {
  padding: 16px 18px 18px;
}
.resultgrid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}
.resultbox .kpi {
  background: rgba(10, 13, 18, 0.6);
  border-color: rgb(48, 56, 68);
  min-width: 0px;
}
.resultbox .kpi strong {
  font-size: clamp(18px, 2.6vw, 24px);
  overflow-wrap: anywhere;
}
.resultbox .kpi:last-child strong {
  color: var(--accent);
  font-size: clamp(25px, 4vw, 34px);
}
.result-detail {
  margin: 14px 0px 0px;
  padding: 12px 13px;
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.055);
  border: 1px solid rgba(255, 122, 26, 0.14);
  color: rgb(213, 219, 227);
}
.result-detail b {
  color: rgb(255, 255, 255);
}
@media (max-width: 760px) {
  .resultgrid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
  .result-head {
    align-items: center;
  }
}
@media (max-width: 460px) {
  .resultgrid {
    grid-template-columns: 1fr;
  }
  .result-head {
    flex-direction: column;
  }
  .result-badge {
    align-self: flex-start;
  }
}
.result-pa-hero {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(68, 209, 122, 0.3);
}
.result-pa-copy {
  min-width: 0px;
}
.result-pa-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(168, 220, 188);
  font-weight: 900;
  margin-bottom: 3px;
}
.result-pa-value {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}
.result-pa-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.result-pa-eff {
  flex: 0 0 auto;
  text-align: right;
  padding-left: 16px;
  border-left: 1px solid rgba(68, 209, 122, 0.22);
}
.result-pa-eff strong {
  display: block;
  font-size: clamp(18px, 3vw, 25px);
  color: rgb(243, 247, 244);
}
.result-pa-eff span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
@media (max-width: 560px) {
  .result-pa-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .result-pa-eff {
    text-align: left;
    padding-left: 0px;
    padding-top: 10px;
    border-left: 0px;
    border-top: 1px solid rgba(68, 209, 122, 0.18);
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
body {
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.9' stroke-width='3'%3E%3Cpath d='M42 70c18-24 52-22 65 0 8 14 29 15 40 3 22-24 57-16 67 10'/%3E%3Cpath d='M31 152c15-21 47-21 60-2 10 15 30 17 43 4 20-20 53-15 66 7'/%3E%3Cpath d='M90 39c12-9 31-9 43 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: screen;
}
header {
  position: relative;
}
header p {
  font-size: 15px;
}
.card {
  border-color: rgba(255, 255, 255, 0.08);
}
.card h2::before {
  content: "🍥";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 122, 26, 0.14);
  font-size: 15px;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 0px inset;
}
.kpi, .resultbox .kpi, .field-section {
  background: linear-gradient(rgba(15, 18, 24, 0.8), rgba(10, 13, 18, 0.72));
}
.resultbox {
  background: linear-gradient(145deg, rgba(26, 31, 40, 0.98), rgba(11, 15, 20, 0.98));
  border-color: rgba(255, 255, 255, 0.09);
}
.resultbox::after {
  content: "忍";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 46px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.result-pa-hero {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(68, 209, 122, 0.1));
  border-color: rgba(255, 179, 110, 0.28);
}
.result-pa-value {
  color: rgb(255, 207, 115);
  text-shadow: rgba(255, 185, 78, 0.13) 0px 0px 26px;
}
summary {
  padding: 8px 0px;
}
.card-themed {
  position: relative;
  overflow: hidden;
}
.card-themed::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 240px;
  height: 160px;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.06;
  filter: grayscale(0.05);
  pointer-events: none;
}
.resultbox {
  position: relative;
  overflow: hidden;
}
.resultbox::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -12px;
  width: 210px;
  height: 150px;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}
.result-head, .result-body, .result-pa-hero {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .card-themed::after, .resultbox::before {
    opacity: 0.04;
  }
}
.artifact-attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 12px;
}
.artifact-attr {
  position: relative;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(rgba(15, 19, 25, 0.78), rgba(10, 13, 18, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.artifact-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.11);
  border: 1px solid rgba(255, 122, 26, 0.22);
  color: rgb(255, 210, 173);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.artifact-attr select, .artifact-attr input {
  margin-bottom: 9px;
}
.artifact-next {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 800px) {
  .artifact-attrs {
    grid-template-columns: 1fr;
  }
}
.budget-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  margin-top: 14px;
}
.budget-config-card {
  border: 1px solid rgb(48, 56, 70);
  padding: 14px;
}
.budget-config-card h3 {
  margin: 0px 0px 4px;
}
.budget-config-card .sub {
  margin: 0px 0px 10px;
}
.budget-group-list {
  display: grid;
  gap: 8px;
}
.budget-group-row {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 110px 42px;
  gap: 8px;
  align-items: end;
}
.budget-group-row .remove-group {
  min-height: 44px;
  border: 1px solid rgb(59, 67, 80);
  border-radius: 9px;
  background: rgb(32, 38, 49);
  color: rgb(223, 229, 236);
  cursor: pointer;
  font-weight: 800;
}
.budget-group-row .remove-group:hover {
  border-color: rgb(89, 100, 118);
}
.budget-add {
  margin-top: 9px;
  border: 1px dashed rgb(70, 80, 94);
  border-radius: 9px;
  background: transparent;
  color: rgb(219, 226, 235);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
}
.budget-add:hover {
  border-color: var(--accent);
  color: rgb(255, 255, 255);
}
@media (max-width: 900px) {
  .budget-config {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .budget-group-row {
    grid-template-columns: 1fr 90px 42px;
  }
  .budget-group-row > div:first-child {
    grid-column: 1 / -1;
  }
}
.public-footer strong {
  color: rgb(203, 211, 220);
}
.budget-group-row.refine-group {
  grid-template-columns: minmax(0px, 1fr) 105px 120px 42px;
}
@media (max-width: 620px) {
  .budget-group-row.refine-group {
    grid-template-columns: 1fr 1fr 42px;
  }
  .budget-group-row.refine-group > div:first-child {
    grid-column: 1 / -1;
  }
}
header p:last-of-type {
  max-width: 680px;
}
.card {
  padding: 14px 15px !important;
  border-radius: 16px !important;
  background: linear-gradient(rgba(22, 26, 33, 0.98), rgba(17, 21, 28, 0.98)) !important;
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2 .headicon {
  display: grid;
  place-items: center;
  border: 1px solid rgb(44, 52, 64);
  font-size: 18px;
}
.sub {
  font-size: 12px;
  line-height: 1.35;
}
.controls {
  gap: 12px !important;
}
.controls > div {
  background: rgb(15, 20, 27);
  border: 1px solid rgb(43, 51, 64);
  border-radius: 12px;
  padding: 10px;
}
.controls > div .sub {
  margin-top: 6px;
}
label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(148, 160, 175);
  font-weight: 700;
}
select, input {
  border-color: rgb(56, 66, 80);
  min-height: 42px;
  padding: 9px 10px;
}
.inline {
  background: rgb(15, 20, 27);
  border: 1px solid rgb(43, 51, 64);
  border-radius: 12px;
  padding: 10px 12px;
}
#summary .kpi {
  background: rgb(15, 20, 27);
  border-color: rgb(43, 52, 65);
}
.resultbox {
  border-radius: 16px !important;
}
.field-section {
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgb(16, 21, 28) !important;
  border-color: rgb(43, 51, 64) !important;
}
.field-section h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.budget-config {
  gap: 12px !important;
}
.budget-config-card {
  border-radius: 14px !important;
  background: rgb(16, 21, 28) !important;
  border-color: rgb(43, 51, 64) !important;
}
.budget-group-row > div:first-child, .budget-group-row > div:nth-child(2), .budget-group-row > div:nth-child(3) {
  background: rgb(13, 18, 24);
  border: 1px solid rgb(43, 51, 64);
  border-radius: 11px;
  padding: 8px;
}
.budget-group-row > button {
  padding: 0px;
}
.resource-label {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0px;
  font-size: 12px;
  color: rgb(210, 219, 228);
  font-weight: 700;
}
.resource-label img {
  object-fit: contain;
  border: 0px;
  background: transparent;
  filter: drop-shadow(rgba(0, 0, 0, 0.28) 0px 4px 10px);
}
.icon-input-grid > div {
  background: rgb(15, 20, 27);
  border: 1px solid rgb(43, 51, 64);
  border-radius: 12px;
  padding: 10px;
}
.public-footer {
  max-width: 1180px;
  margin: 18px auto 0px;
  padding: 18px 20px 34px;
  color: rgb(143, 154, 168);
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}
.public-footer .credit {
  font-weight: 800;
}
.public-footer .discord-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: rgb(207, 216, 255);
  text-decoration: none;
  font-weight: 800;
}
.public-footer .discord-link:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}
.top-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  align-items: end;
  gap: 10px;
  margin: 12px 0px 18px;
  padding-top: 34px;
}
.top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0px;
}
.podium-info {
  position: relative;
  z-index: 1;
  margin-bottom: 0px;
  padding: 14px 14px 13px;
  border: 1px solid rgb(44, 53, 65);
  border-radius: 16px 16px 0px 0px;
  background: linear-gradient(rgb(17, 23, 32), rgb(13, 18, 24));
  box-shadow: rgba(0, 0, 0, 0.18) 0px 10px 24px;
}
.podium-rank-1 .podium-info {
  border-color: rgba(255, 193, 77, 0.45);
  background: linear-gradient(rgba(74, 55, 23, 0.66), rgb(14, 19, 25) 76%);
}
.podium-rank-2 .podium-info {
  border-color: rgba(196, 207, 222, 0.3);
}
.podium-rank-3 .podium-info {
  border-color: rgba(201, 133, 82, 0.3);
}
.top-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.top-medal {
  font-size: 24px;
  line-height: 1;
}
.top-eff {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(68, 209, 122, 0.1);
  border: 1px solid rgba(68, 209, 122, 0.18);
  color: rgb(128, 227, 166);
  font-size: 11px;
  font-weight: 900;
}
.top-name {
  min-height: 42px;
  font-size: 15px;
  font-weight: 850;
  color: rgb(243, 246, 250);
  line-height: 1.25;
}
.top-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.top-stat {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}
.top-stat strong {
  display: block;
  font-size: 18px;
  color: rgb(255, 207, 115);
  line-height: 1.1;
}
.top-stat span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: rgb(143, 155, 170);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.podium-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  overflow: hidden;
  border-width: 0px 1px 1px;
  border-style: none solid solid;
  border-color: currentcolor rgb(48, 58, 71) rgb(48, 58, 71);
  border-image: none;
  background: linear-gradient(135deg, rgb(27, 35, 46), rgb(9, 13, 19) 72%);
  box-shadow: rgba(255, 255, 255, 0.06) 0px 1px 0px inset, rgba(0, 0, 0, 0.2) 0px 12px 24px;
}
.podium-step::before {
  content: "";
  position: absolute;
  inset: 0px auto auto 0px;
  width: 100%;
  height: 5px;
  background: rgb(170, 180, 192);
  box-shadow: rgba(214, 220, 230, 0.15) 0px 2px 10px;
}
.podium-step::after {
  content: "";
  position: absolute;
  inset: 0px 48% 0px 0px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 65%);
  pointer-events: none;
}
.podium-rank-1 .podium-step {
  min-height: 142px;
  border-color: rgba(255, 193, 77, 0.46);
  background: linear-gradient(135deg, rgb(61, 50, 23), rgb(10, 13, 18) 72%);
}
.podium-rank-1 .podium-step::before {
  background: rgb(255, 209, 102);
  box-shadow: rgba(255, 209, 102, 0.3) 0px 2px 14px;
}
.podium-rank-2 .podium-step {
  min-height: 108px;
  border-color: rgba(196, 207, 222, 0.34);
}
.podium-rank-2 .podium-step::before {
  background: rgb(213, 220, 230);
}
.podium-rank-3 .podium-step {
  min-height: 82px;
  border-color: rgba(201, 133, 82, 0.34);
  background: linear-gradient(135deg, rgb(53, 36, 28), rgb(9, 13, 18) 72%);
}
.podium-rank-3 .podium-step::before {
  background: rgb(223, 155, 98);
}
.podium-number {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgb(214, 220, 230);
  text-shadow: rgba(0, 0, 0, 0.38) 0px 6px 18px;
}
.podium-rank-1 .podium-number {
  color: rgb(255, 209, 102);
}
.podium-rank-3 .podium-number {
  color: rgb(226, 162, 114);
}
.podium-place {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(174, 184, 196);
}
.podium-rank-1 .podium-place {
  color: rgb(255, 225, 154);
}
.podium-rank-3 .podium-place {
  color: rgb(239, 189, 151);
}
.top-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgb(52, 64, 77);
  border-radius: 14px;
  text-align: center;
  color: rgb(137, 149, 164);
  background: rgb(15, 20, 27);
}
.ranking-table-wrap {
  border: 1px solid rgb(41, 50, 62);
  border-radius: 13px;
  background: rgb(14, 19, 25);
  padding: 0px 8px;
}
@media (max-width: 680px) {
  .top-three {
    grid-template-columns: 1fr;
    padding-top: 0px;
  }
  .top-card.podium-rank-1 {
    order: 1;
  }
  .top-card.podium-rank-2 {
    order: 2;
  }
  .top-card.podium-rank-3 {
    order: 3;
  }
  .podium-rank-1 .podium-step, .podium-rank-2 .podium-step, .podium-rank-3 .podium-step {
    min-height: 82px;
  }
  .podium-number {
    font-size: 52px;
  }
}
.budget-fold {
  border: 1px solid rgb(45, 54, 66);
  border-radius: 14px;
  background: rgb(16, 21, 28);
  overflow: hidden;
}
.budget-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  font-weight: 850;
  color: rgb(238, 243, 248);
  user-select: none;
}
.budget-fold > summary::-webkit-details-marker {
  display: none;
}
.budget-fold > summary::after {
  content: "⌄";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgb(11, 16, 22);
  border: 1px solid rgb(47, 57, 70);
  color: rgb(174, 185, 198);
  font-size: 17px;
  transition: transform 0.18s;
}
.budget-fold[open] > summary::after {
  transform: rotate(180deg);
  color: rgb(255, 189, 128);
  border-color: rgba(255, 122, 26, 0.28);
}
.budget-fold > summary:hover {
  background: rgba(255, 255, 255, 0.024);
}
.budget-fold-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0px;
}
.budget-fold-copy {
  min-width: 0px;
}
.budget-fold-copy strong {
  display: block;
  font-size: 14px;
}
.budget-fold-copy span {
  display: block;
  margin-top: 2px;
  color: rgb(143, 155, 170);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
}
.budget-fold-body {
  padding: 0px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.budget-config {
  align-items: start;
}
.budget-config .budget-config-card {
  padding: 0px !important;
  background: transparent !important;
  border: 0px !important;
}
@media (max-width: 650px) {
  .budget-fold-copy span {
    max-width: 230px;
  }
  .budget-config {
    grid-template-columns: 1fr !important;
  }
}
.nav-brand {
  font-weight: 900;
  letter-spacing: 0.01em;
}
.nav-brand span b {
  color: rgb(255, 138, 50);
}
.nav-link {
  transition: 0.15s;
}
.nav-link:hover {
  border-color: rgb(39, 49, 62);
}
.nav-link.active .nav-ico {
  color: rgb(255, 155, 77);
}
body.app-page > header {
  display: none;
}
.app-page main {
  max-width: 1180px;
  margin: 0px auto;
  padding: 0px 20px 36px;
}
.home-hero::after {
  border: 1px solid rgba(255, 122, 26, 0.18);
  box-shadow: rgba(255, 122, 26, 0.024) 0px 0px 0px 38px, rgba(255, 122, 26, 0.02) 0px 0px 0px 78px;
}
.home-card .enter {
  display: inline-block;
}
@media (max-width: 900px) {
  .nav-link span.nav-text {
    display: none;
  }
  .nav-link {
    padding: 10px;
  }
  .nav-brand span {
    display: none;
  }
  .home-features {
    grid-template-columns: 1fr;
  }
  .home-hero {
    padding: 38px 28px;
  }
}
@media (max-width: 580px) {
  .site-nav {
    gap: 8px;
  }
  .nav-links {
    gap: 2px;
  }
  .home-main {
    padding-top: 26px;
  }
  .home-hero {
    padding: 30px 22px;
  }
  .home-title {
    font-size: 42px;
  }
}
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
  background-attachment: fixed !important;
}
body::before {
  z-index: 0;
}
.site-nav, main, .public-footer {
  position: relative;
  z-index: 1;
}
.public-footer {
  background: transparent !important;
}
.nav-brand {
  align-self: center;
}
@media (max-width: 900px) {
  .site-nav {
    height: 66px;
    min-height: 66px;
    padding: 0px 14px;
  }
  .nav-brand {
    transform: translateY(2px);
  }
}
body.home-page .site-nav {
  flex: 0 0 auto;
  width: 100%;
}
body.home-page .home-main {
  flex: 1 0 auto;
}
body.home-page .public-footer {
  margin-top: auto;
}
:root {
  --bg-1: #070b10;
  --bg-2: #0b1017;
  --panel: #0e141c;
  --panel-2: #121923;
  --panel-3: #0c1219;
  --stroke: rgba(255,255,255,.08);
  --stroke-2: rgba(255,122,26,.26);
  --text-soft: #b0bccb;
}
body {
  background: radial-gradient(circle at 20% -10%, rgba(255,122,26,.14), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(71,126,255,.10), transparent 22%),
    linear-gradient(180deg,var(--bg-1),var(--bg-2) 45%, #091018 100%) !important;
}
body::before {
  opacity: 0.045 !important;
}
.nav-brand span {
  font-size: 20px !important;
  font-weight: 900;
}
.nav-link.active {
  border-color: rgba(255, 122, 26, 0.34) !important;
}
header, main, .public-footer, .home-main {
  max-width: 1280px !important;
}
header {
  padding: 26px 20px 12px !important;
}
header > p {
  display: none !important;
}
main {
  padding: 0px 20px 48px !important;
}
.grid {
  gap: 18px !important;
}
.card, .budget-config-card, .field-section {
  background: linear-gradient(rgba(14, 20, 28, 0.97), rgba(10, 15, 22, 0.97)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: rgba(0, 0, 0, 0.22) 0px 16px 36px !important;
}
.card:hover {
  transform: none !important;
  border-color: rgba(255, 122, 26, 0.18) !important;
}
.card h2 {
  font-size: 24px !important;
  letter-spacing: -0.02em !important;
  color: rgb(242, 245, 249) !important;
  margin-bottom: 14px !important;
}
.card h2 .headicon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: rgb(16, 24, 38) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.controls > div, .inline, .budget-group-row > div:first-child, .budget-group-row > div:nth-child(2), .budget-group-row > div:nth-child(3) {
  background: linear-gradient(rgba(10, 15, 22, 0.88), rgba(13, 19, 28, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}
.resource-label img {
  width: 40px !important;
  height: 40px !important;
}
select, input {
  background: rgb(10, 15, 21) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: rgb(237, 242, 247) !important;
}
select:focus, input:focus {
  box-shadow: rgba(255, 122, 26, 0.15) 0px 0px 0px 3px !important;
  border-color: rgba(255, 122, 26, 0.46) !important;
}
.resultbox, .ranking-table-wrap {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(rgba(12, 17, 24, 0.98), rgba(8, 13, 19, 0.98)) !important;
  box-shadow: rgba(0, 0, 0, 0.22) 0px 18px 38px !important;
}
#topThree {
  gap: 12px !important;
}
.top-card, .kpi {
  background: linear-gradient(rgba(10, 15, 22, 0.88), rgba(12, 18, 26, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
}
.kpi strong, .resultbox strong {
  letter-spacing: -0.02em;
}
th {
  background: rgba(255, 255, 255, 0.02);
}
tr:hover td {
  background: rgba(255, 255, 255, 0.016);
}
.public-footer {
  margin-top: 8px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.public-footer .credit {
  color: rgb(255, 255, 255) !important;
}
body.home-page header {
  display: none !important;
}
body.home-page .home-main {
  position: relative;
  z-index: 1;
}
.home-hero {
  grid-template-columns: minmax(0px, 1.05fr) minmax(360px, 0.95fr) !important;
  align-items: center !important;
  gap: 20px !important;
}
.home-title {
  max-width: 540px !important;
  margin-top: 14px !important;
}
.home-card h2 {
  margin-bottom: 10px !important;
}
.home-card .enter {
  margin-top: 18px !important;
}
.home-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.1), transparent 70%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .site-nav {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0px 14px !important;
  }
  .nav-brand span {
    display: block !important;
    font-size: 18px !important;
  }
  .home-hero {
    grid-template-columns: 1fr !important;
    padding: 32px 24px !important;
    min-height: 0px !important;
  }
  .home-features {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .nav-link .nav-text {
    display: none !important;
  }
  .nav-link {
    padding: 10px !important;
  }
  .nav-brand span {
    display: none !important;
  }
  .home-title {
    font-size: clamp(38px, 11vw, 54px) !important;
  }
  .home-copy {
    font-size: 15px !important;
  }
}
.site-nav {
  justify-content: space-between !important;
}
.nav-brand {
  white-space: nowrap !important;
}
.nav-links {
  flex: 1 1 0% !important;
}
.nav-link {
  border-width: medium medium 3px !important;
  border-style: none none solid !important;
  border-color: currentcolor currentcolor transparent !important;
  border-image: none !important;
  min-height: 0px !important;
}
.nav-link.active {
  border-bottom-color: rgb(255, 122, 26) !important;
}
.nav-link .nav-ico {
  font-size: 17px !important;
  color: inherit !important;
}
.nav-square, .support-square {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgb(16, 23, 34) !important;
  color: rgb(233, 238, 246) !important;
  text-decoration: none !important;
  font-size: 18px !important;
  cursor: pointer !important;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 10px 22px !important;
  transition: 0.16s !important;
}
.nav-square:hover, .support-square:hover {
  color: rgb(255, 255, 255) !important;
  border-color: rgba(255, 122, 26, 0.38) !important;
  background: rgb(19, 28, 40) !important;
  transform: translateY(-1px) !important;
}
body.home-page .home-title {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
}
body.home-page .home-title {
  max-width: 700px !important;
  font-size: clamp(60px, 6.2vw, 80px) !important;
  line-height: 0.95 !important;
}
body.home-page .home-copy {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: rgb(173, 184, 196) !important;
}
body.home-page .hero-micro-features {
  margin-top: 26px !important;
}
body.home-page .home-main {
  max-width: 1380px !important;
  padding: 18px 24px 54px !important;
}
body.home-page .home-hero {
  border-radius: 22px !important;
}
@media (max-width: 1100px) {
  .nav-brand {
    min-width: 240px !important;
  }
  .brand-stack b {
    font-size: 24px !important;
  }
  .brand-stack small {
    font-size: 12px !important;
  }
  .nav-links {
    gap: 10px !important;
  }
  .nav-link {
    font-size: 14px !important;
  }
}
@media (max-width: 820px) {
  .site-nav {
    height: 74px !important;
    min-height: 74px !important;
    padding: 0px 14px !important;
  }
  .brand-stack small {
    display: none !important;
  }
  .brand-stack b {
    font-size: 23px !important;
  }
  .nav-link .nav-text {
    display: none !important;
  }
  .nav-link {
    padding: 14px 4px 12px !important;
  }
  .nav-brand {
    min-width: unset !important;
  }
  .nav-brand img {
    width: 42px !important;
    height: 42px !important;
  }
  body.home-page .home-title {
    font-size: clamp(40px, 11vw, 58px) !important;
  }
}
@media (max-width: 560px) {
  .site-nav {
    gap: 10px !important;
  }
  .support-square, .nav-square {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  .brand-stack b {
    font-size: 21px !important;
  }
  body.home-page .home-main {
    padding: 12px 14px 38px !important;
  }
  .home-copy br {
    display: none !important;
  }
}
.support-dialog::before {
  width: 100%;
}
:root {
  --h-bg: #070b10;
  --h-bg2: #0a1017;
  --h-panel: #0d141c;
  --h-panel2: #111923;
  --h-line: rgba(255,255,255,.09);
  --h-line-strong: rgba(255,255,255,.14);
  --h-orange: #ff7a1a;
  --h-orange2: #ff9a3c;
  --h-text: #f2f4f7;
  --h-muted: #9ca7b4;
}
html {
  background: var(--h-bg);
}
body {
  font-family: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
}
.site-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 2000 !important;
  width: 100% !important;
  height: 88px !important;
  min-height: 88px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: grid !important;
  grid-template-columns: minmax(230px,auto) minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  background: rgba(5,10,15,.97) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 9px 28px rgba(0,0,0,.24) !important;
  backdrop-filter: blur(14px) !important;
}
.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,transparent 4%,rgba(255,122,26,.36) 28%,rgba(255,122,26,.10) 55%,transparent 96%);
  pointer-events: none;
}
.nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  transform: none !important;
}
.nav-brand img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.30)) !important;
}
.brand-stack {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  line-height: 1 !important;
}
.brand-stack b {
  font-family: 'Inter Tight','Inter',sans-serif !important;
  font-size: 29px !important;
  line-height: .95 !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  color: #ff8a2c !important;
}
.brand-stack small {
  margin-top: 7px !important;
  color: #8d99a7 !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.nav-links {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 14px !important;
  height: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.nav-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  height: 100% !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #98a3b0 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.nav-link:hover {
  color: #e8edf4 !important;
  background: transparent !important;
  border: 0 !important;
}
.nav-link.active {
  color: #ff9130 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.nav-link.active::after {
  background: linear-gradient(90deg,#ff7a1a,#ff9c45);
  box-shadow: 0 0 12px rgba(255,122,26,.28);
}
.nav-ico {
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
  line-height: 1 !important;
  font-size: 0 !important;
}
.nav-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}
.nav-square,.support-square {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: #0e151e !important;
  color: #aab5c2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
  transition: .16s ease !important;
}
.nav-square svg,.support-square svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-square:hover,.support-square:hover {
  color: #fff !important;
  border-color: rgba(255,122,26,.34) !important;
  background: #121b26 !important;
  transform: translateY(-1px) !important;
}
.support-square {
  color: #ff9b48 !important;
  border-color: rgba(255,122,26,.24) !important;
}
body.home-page {
  min-height: 100vh !important;
  margin: 0 !important;
  background: linear-gradient(180deg,#060b10 0%,#091018 72%,#070c12 100%) !important;
  color: var(--h-text) !important;
  display: flex !important;
  flex-direction: column !important;
}
body.home-page::before {
  display: none !important;
}
.home-main {
  width: min(100%,1440px) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 17px 27px 46px !important;
  flex: 1 !important;
}
.home-hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: block !important;
  min-height: 310px !important;
  padding: 39px 45px 31px !important;
  border-radius: 19px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: 0 18px 52px rgba(0,0,0,.24) !important;
}
.home-hero::after {
  background: url('naruto-hero-clean.png') right center / auto 100% no-repeat;
}
.home-hero-content {
  min-width: 480px !important;
}
.home-title {
  font-family: 'Inter Tight','Inter',sans-serif !important;
  margin: 0 0 15px !important;
  font-size: clamp(55px,5.45vw,76px) !important;
  line-height: .93 !important;
  letter-spacing: -.055em !important;
  font-weight: 800 !important;
  color: #eef1f3 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.16) !important;
}
.home-title span {
  display: inline-block;
  color: #f77716 !important;
}
.home-copy {
  margin: 0 !important;
  max-width: 560px !important;
  color: #9da8b4 !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
  font-weight: 500 !important;
}
.hero-micro-features {
  display: flex !important;
  align-items: flex-start !important;
  gap: 33px !important;
  margin-top: 26px !important;
  flex-wrap: nowrap !important;
}
.hero-micro-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  color: #e3e8ee !important;
}
.hero-micro-icon {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,122,26,.28) !important;
  background: rgba(255,122,26,.045) !important;
  color: #ff851e !important;
  font-size: 15px !important;
}
.hero-micro-item strong {
  display: block !important;
  color: #dfe5eb !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.hero-micro-item small {
  display: block !important;
  margin-top: 4px !important;
  color: #7f8a97 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.home-features {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 14px !important;
  margin-top: 14px !important;
}
.home-card {
  position: relative !important;
  display: block !important;
  padding: 18px 19px 17px !important;
  min-height: 172px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg,#0d141c 0%,#0a1118 100%) !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.14) !important;
  transition: .15s ease !important;
}
.home-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255,122,26,.30) !important;
  background: linear-gradient(180deg,#101822,#0b1219) !important;
}
.home-card-icon {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 11px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,122,26,.17) !important;
  background: rgba(255,122,26,.045) !important;
  color: #ff8c2a !important;
  font-size: 18px !important;
}
.home-card h2 {
  margin: 0 0 6px !important;
  color: #e5eaf0 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
.home-card p {
  margin: 0 !important;
  color: #7f8b98 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.home-card .enter {
  position: absolute !important;
  left: 19px !important;
  color: #ff8f31 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
}
body.home-page .public-footer {
  max-width: 1180px !important;
  width: calc(100% - 40px) !important;
  margin: 18px auto 0 !important;
  padding: 18px 20px 34px !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  background: transparent !important;
  color: #8f9aa8 !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}
body.home-page .public-footer .credit {
  font-weight: 800 !important;
  color: #e8edf3 !important;
}
body.home-page .public-footer .discord-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 4px !important;
  color: #cfd8ff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}
body.home-page .public-footer .discord-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}
body.app-page {
  background: linear-gradient(180deg,#060b10,#0a1017 48%,#080e14) !important;
}
body.app-page>header {
  padding-top: 22px !important;
}
body.app-page>header>p {
  display: none !important;
}
.support-modal[hidden] {
  display: none !important;
}
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1,4,8,.80);
  backdrop-filter: blur(10px);
}
.support-dialog {
  position: relative;
  width: min(460px,100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: linear-gradient(180deg,#111923,#0b1118);
  box-shadow: 0 30px 90px rgba(0,0,0,.62);
}
.support-dialog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg,#ff7a1a,#ffac5a,transparent);
}
.support-close {
  position: absolute;
  right: 15px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1219;
  color: #96a1ad;
  font-size: 22px;
  cursor: pointer;
}
.support-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,.16);
}
.support-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 42px 14px 0 !important;
  color: #eef2f6 !important;
  font-family: 'Inter Tight','Inter',sans-serif !important;
  font-size: 22px !important;
  letter-spacing: -.025em !important;
}
.support-title-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255,122,26,.25);
  background: rgba(255,122,26,.06);
  color: #ff8a29;
  font-size: 20px;
}
.support-copy {
  margin: 0 0 18px;
  color: #a9b3bf;
  font-size: 13px;
  line-height: 1.65;
}
.support-options {
  display: grid;
  gap: 10px;
}
.support-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: #0d141c;
  color: #eef2f7;
  text-decoration: none;
  transition: .15s ease;
}
.support-option:hover {
  border-color: rgba(255,122,26,.38);
  background: #101923;
  transform: translateY(-1px);
}
.support-option-main {
  display: flex;
  align-items: center;
  gap: 11px;
}
.support-pay-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #111b27;
  border: 1px solid rgba(255,255,255,.07);
  font-weight: 900;
  font-size: 18px;
}
.support-option strong {
  display: block;
  font-size: 14px;
}
.support-option small {
  display: block;
  margin-top: 3px;
  color: #7f8b98;
  font-size: 10px;
}
.support-arrow {
  color: #ff8b2b;
  font-size: 18px;
}
.support-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #76818e;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width:1120px) {
  .site-nav {
    grid-template-columns: auto minmax(0,1fr) auto !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }
  .brand-stack small {
    display: none !important;
  }
  .nav-brand {
    min-width: 0 !important;
  }
  .nav-links {
    gap: 7px !important;
  }
  .nav-link {
    font-size: 12px !important;
    padding: 0 4px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .home-hero::after {
    width: 66%;
    background-position: 92% center !important;
  }
  .home-hero-content {
    width: 56% !important;
    min-width: 0 !important;
  }
  .hero-micro-features {
    gap: 17px !important;
  }
}
@media (max-width:930px) {
  .site-nav {
    grid-template-columns: auto minmax(0,1fr) auto !important;
    padding: 0 10px !important;
    gap: 10px !important;
  }
  .nav-link .nav-text {
    display: none !important;
  }
  .nav-links {
    gap: 14px !important;
  }
  .nav-link {
    padding: 0 3px !important;
  }
}
@media (max-width:780px) {
  .site-nav {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 12px !important;
  }
  .nav-brand img {
    width: 42px !important;
    height: 42px !important;
  }
  .brand-stack b {
    font-size: 22px !important;
  }
  .nav-link .nav-text {
    display: none !important;
  }
  .nav-links {
    gap: 10px !important;
  }
  .nav-link {
    padding: 0 3px !important;
  }
  .nav-link::after {
    bottom: 7px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .nav-square,.support-square {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  .home-main {
    padding: 12px 12px 36px !important;
  }
  .home-hero {
    min-height: 360px !important;
    padding: 28px 22px !important;
  }
  .home-hero::before {
    background: linear-gradient(180deg,rgba(5,10,15,.98) 0%,rgba(5,10,15,.90) 52%,rgba(5,10,15,.45) 100%) !important;
  }
  .home-hero::after {
    right: -15% !important;
    width: 100% !important;
    height: 100% !important;
    background-position: right center !important;
    opacity: .58 !important;
  }
  .home-hero-content {
    width: 100% !important;
    max-width: 540px !important;
  }
  .home-title {
    font-size: clamp(43px,12vw,60px) !important;
  }
  .hero-micro-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .home-features {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width:520px) {
  .brand-stack {
    display: none !important;
  }
  .nav-links {
    justify-content: center !important;
  }
  .home-hero {
    padding: 24px 18px !important;
  }
  .home-copy br {
    display: none !important;
  }
  .hero-micro-features {
    grid-template-columns: 1fr !important;
  }
  .home-card {
    min-height: 160px !important;
  }
}
*,*::before,*::after {
  box-sizing: border-box;
}
html,body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.site-nav {
  box-sizing: border-box !important;
  max-width: 100vw !important;
}
.nav-brand,.nav-links,.nav-actions {
  min-width: 0 !important;
}
.nav-actions {
  padding-right: 0 !important;
  margin-right: 0 !important;
}
@media (max-width:1180px) {
  .site-nav {
    grid-template-columns: minmax(190px,auto) minmax(0,1fr) auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav-links {
    gap: 6px !important;
  }
  .nav-link {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}
.home-card {
  padding-bottom: 44px !important;
}
.home-card p {
  max-width: 95% !important;
}
.home-card .enter {
  bottom: 16px !important;
}
[hidden] {
  display: none !important;
}
body.home-page #homeView {
  display: block;
}
body.app-page #appView {
  display: block;
}
body.app-page #homeView {
  display: none !important;
}
body.home-page #appView {
  display: none !important;
}
#homeView,#appView {
  animation: hiraishinViewIn .16s ease-out;
}
@keyframes hiraishinViewIn {
  from {
    opacity: .72;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  #homeView,#appView {
    animation: none;
  }
}
body[data-view="home"] #homeView {
  display: block !important;
}
body[data-view="home"] #appView {
  display: none !important;
}
body:not([data-view="home"]) #homeView {
  display: none !important;
}
body:not([data-view="home"]) #appView {
  display: block !important;
}
@media (min-width:821px) {
  .home-hero::after {
    right: -1% !important;
    width: 61% !important;
    background-position: right center !important;
  }
}
.home-hero::before,
.home-hero::after {
  display: none !important;
}
#appView > header {
  display: none !important;
}
@media (max-width:820px) {
  .home-hero {
    background: linear-gradient(180deg,
        rgba(5,10,15,.97) 0%,
        rgba(5,10,15,.88) 48%,
        rgba(5,10,15,.42) 100%
      ),
      url("naruto-hero-clean.png") 72% center / cover no-repeat !important;
  }
}
.view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.view-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(26px,4vw,36px);
  letter-spacing: -.035em;
  color: #f1f4f8;
}
.view-heading p {
  margin: 0;
  max-width: 740px;
  color: var(--muted);
  line-height: 1.6;
}
.save-status {
  flex: 0 0 220px;
  padding: 12px 14px;
  border: 1px solid rgba(68,209,122,.22);
  border-radius: 12px;
  background: rgba(68,209,122,.06);
  color: #b8d8c4;
  font-size: 12px;
}
.profile-systems {
  margin-bottom: 18px;
}
.profile-resources label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.profile-resources label img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.system-resource-icon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}
.system-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.system-with-icon>span {
  min-width: 0;
}
.resource-cost-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.resource-cost-item {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}
.resource-cost-item img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}
#ranking .system-with-icon {
  min-width: 190px;
}
#ranking .resource-cost-item {
  min-width: 130px;
}
#tabProfile .budget-fold-title {
  flex: 1;
}
#tabProfile .inline {
  margin: 18px 0 10px;
}
#tabProfile .inline label {
  margin: 0;
}
.profile-link {
  color: #ff9a45;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  align-self: center;
}
.profile-link:hover {
  text-decoration: underline;
}
.actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.simulation-actions {
  margin-bottom: 20px;
}
#tabProfile .budget-fold-copy {
  display: grid;
  gap: 4px;
}
.nav-link:focus-visible,.profile-link:focus-visible,.btn:focus-visible {
  outline: 2px solid #ff9a45;
  outline-offset: 4px;
}
@media (max-width:640px) {
  .view-heading {
    flex-direction: column;
    gap: 12px;
  }
  .save-status {
    flex: auto;
    width: 100%;
  }
  .profile-link {
    align-self: flex-start;
    white-space: normal;
  }
}
@media (max-width:780px) {
  .site-nav {
    grid-template-columns: auto minmax(0,1fr) auto !important;
  }
}
.home-hero {
  background: #081019 !important;
}
.home-hero::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(5,10,15,.995) 0%,
    rgba(5,10,15,.99) 34%,
    rgba(5,10,15,.92) 43%,
    rgba(5,10,15,.56) 53%,
    rgba(5,10,15,.10) 67%,
    rgba(5,10,15,0) 78%
  ) !important;
  pointer-events: none !important;
}
.home-hero::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: -2px !important;
  bottom: 0 !important;
  width: auto !important;
  height: 100% !important;
  background-image: url("naruto-hero-clean.png") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: auto 100% !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none !important;
}
.home-hero-content {
  position: relative !important;
  z-index: 2 !important;
  width: min(600px,49%) !important;
  max-width: 49% !important;
}
#appView > main {
  padding-top: 24px !important;
}
@media (max-width:1050px) and (min-width:821px) {
  .home-hero::after {
    width: auto !important;
    background-size: auto 100% !important;
    background-position: right center !important;
  }
  .home-hero-content {
    width: 52% !important;
    max-width: 52% !important;
  }
}
@media (max-width:820px) {
  .home-hero::before {
    background: linear-gradient(
      180deg,
      rgba(5,10,15,.98) 0%,
      rgba(5,10,15,.92) 55%,
      rgba(5,10,15,.58) 100%
    ) !important;
  }
  .home-hero::after {
    left: auto !important;
    width: 100% !important;
    right: -18% !important;
    background-size: auto 100% !important;
    background-position: right center !important;
    opacity: .62 !important;
  }
  .home-hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  #appView > main {
    padding-top: 18px !important;
  }
}
