/* Stone, ink, and sea blue. Keep the list legible before adding decoration. */
:root {
  color-scheme: light;
  --bg: #f3f5f4;
  --panel: #ffffff;
  --panel2: #edf2f4;
  --line: #d6e0e3;
  --text: #1b2d38;
  --muted: #52626b;
  --orange: #245c70;
  --orange2: #245c70;
  --mint: #206b51;
  --red: #a63e39;
  --blue: #245c70;
}
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--text); }
button, input, select, textarea { color: var(--text); }
:focus-visible { outline: 2px solid #245c70; outline-offset: 2px; }

.site-header { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { min-width: 205px; }
.brand-mark {
  background: #204a5a;
  border-radius: 10px;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.05em;
  padding: 0;
}
.brand-mark span { display: none; }
.brand strong { letter-spacing: .06em; font-size: 15px; }
.brand small { color: #5a6a73; font-size: 10px; letter-spacing: .09em; }
.main-nav { align-self: center; gap: 5px; flex-wrap: wrap; }
.guide-nav { flex-wrap: wrap; }
#post-trade-link:not([hidden]) { display: inline-block; margin-left: 9px; padding: 7px 10px; border: 1px solid #a5bac2; border-radius: 7px; text-decoration: none; font-weight: 650; }
.nav-button {
  height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #4e5f69;
  font-weight: 700;
}
.nav-button:hover { background: #e9eff0; color: var(--text); }
.nav-button.active { background: #e2ecef; border: 0; color: #204a5a; }
.nav-link { display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; }




.eyebrow, .side-kicker { color: #3e6474; font-weight: 800; letter-spacing: .12em; }
.live-dot { display: none; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
.intro { color: #52626b; }
.source-stamp { background: #fff; border-color: var(--line); }
.source-stamp span { color: #566772; }
.notice {
  border: 1px solid #d4e1e5;
  border-radius: 9px;
  background: #eaf1f3;
  color: #38505b;
  line-height: 1.55;
}
.notice strong { color: #233d49; }

.search-wrap, .select-wrap { background: #fff; border-color: #cad7dc; }
.search-wrap:focus-within { border-color: #245c70; }
.search-wrap svg { stroke: #687b85; }
.search-wrap input { color: var(--text); }
.search-wrap input::placeholder { color: #62717a; }
.select-wrap { color: #52626b; }
.select-wrap select { background: #fff; color: var(--text); }
.filter-chip {
  background: #fff;
  border-color: #d5e0e3;
  color: #40535e;
}
.filter-chip:hover { background: #eef3f4; border-color: #aac0c8; }
.filter-chip.selected { background: #245c70; border-color: #245c70; color: #fff; }
.chip-count { background: #edf2f4; color: #40535e; }
.filter-chip.selected .chip-count { background: #ffffff30; color: #fff; }
.results-bar { color: #54656f; }
.legend i { display: none; }

.value-list { list-style: none; margin: 0; padding: 0; }
.value-card {
  background: #fff;
  border-color: #d9e2e5;
  border-radius: 10px;
  box-shadow: none;
  transition: background-color .12s ease, border-color .12s ease;
}
.value-card:hover { background: #f9fbfb; border-color: #9eb6c0; transform: none; }
.item-icon {
  position: relative;
  background: #edf2f3;
  border: 1px solid #d8e2e5;
  color: #3b6576;
  border-radius: 8px;
  overflow: hidden;
}
.item-icon img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-icon.no-photo { background: #edf2f3; }
.item-icon svg { width: 21px; height: 21px; stroke: #466c7b; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header .brand-mark { background: #123d40 url('/favicon.svg') center/96% no-repeat; color: transparent; }
.source-stamp a { display: block; margin-top: 5px; color: #245c70; font-size: .72rem; font-weight: 700; }
.release-notice:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 13px; align-items: center; margin-bottom: 13px; padding: 12px 14px; border: 1px solid #aacdc8; border-radius: 12px; background: #eaf6f2; color: #123e3b; }
.release-notice p { margin: 4px 0 0; font-size: .84rem; line-height: 1.4; }
.release-notice a { color: #165d56; font-weight: 700; text-underline-offset: 3px; }
.release-spark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #155b54; color: #fff0bd; }
.release-details { font-size: .82rem; white-space: nowrap; }
.release-notice button { border: 0; border-radius: 7px; background: transparent; color: #285650; font-size: 1.45rem; min-width: 40px; min-height: 40px; }
.release-notice button:hover { background: #d6ebe6; }
#values-view .eyebrow { color: #216658; }
#values-view .search-wrap:focus-within { border-color: #20766b; }
#values-view .filter-chip.selected { background: #b6f1d4; border-color: #86cbb2; color: #123d33; }
#values-view .filter-chip.selected .chip-count { background: #123d331a; color: inherit; }
#values-view .featured-unit {
  background: radial-gradient(ellipse at 16% 0%, #2e5761, #102b35 75%);
  border-color: #37616a;
  color: #effcf9;
}
#values-view .featured-unit:hover { border-color: #76b7a8; }
#values-view .featured-unit :is(.item-name, .item-detail-link) { color: #effcf9; }
#values-view .featured-unit :is(.item-meta, .demand-cell small) { color: #cae3e2; }
#values-view .featured-unit .value-cell strong { color: #b6f1d4; }
#values-view .featured-unit .item-icon { background: #203e48; border-color: #679e95; }
#values-view .featured-unit .item-icon svg { stroke: #a4ead0; }
#values-view .featured-unit .item-add { background: #b6f1d4; border-color: #b6f1d4; color: #12352d; }
#values-view .featured-unit .item-add:hover { background: #d6fbea; }
#values-view .shiny-unit { border-color: #ba8c32; }
#values-view .shiny-unit:hover { background: #fffcf3; border-color: #8a601c; }
#values-view .shiny-unit .item-icon { border-color: #ba8c32; background: #fff5da; }
@media(min-width: 760px) {
  .catalog-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-lead > .value-card { grid-column: 1 / -1; }
  .catalog-lead > .featured-unit { grid-column: auto; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 5px 12px; padding: 12px; }
  .featured-unit .item-icon { width: 72px; height: 72px; grid-row: span 2; }
  .featured-unit .item-note { display: none; }
  .featured-unit .demand-cell { display: none; }
  .featured-unit .trend-pill { justify-self: start; padding-inline: 8px; }
  .featured-unit .item-add { justify-self: end; padding-inline: 8px; }
}
@media(max-width: 680px) {
  .release-notice:not([hidden]) { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 9px; }
  .release-notice .release-details { display: none; }
  .catalog-lead > .featured-unit { grid-template-columns: 52px minmax(0,1fr) auto; }
  .catalog-lead > .featured-unit .item-icon { width: 52px; height: 52px; }
}
.category-gamepass, .category-skin, .category-relic, .category-stat, .category-unit { background: #edf2f3; border-color: #d8e2e5; color: #3b6576; }
.item-name { color: #1b2d38; font-weight: 750; }
.item-meta { color: #52626b; }
.item-meta span + span:before { color: #8999a2; }
.value-cell strong { color: #203b4a; }
.value-cell small { color: #64737d; }
.demand-cell small { color: #5b6b74; }
.trend-pill { background: #e6f2ec; color: #1b664b; }
.trend-pill.overpriced, .trend-pill.unstable, .trend-pill.falling { background: #fae9e6; color: #9b3d37; }
.trend-pill.rising { background: #e5edf6; color: #275d84; }
.trend-pill.hyped { background: #e0f5f7; color: #125a69; }
.trend-pill.n-a { background: #edf0f1; color: #52616a; }
.item-add { border-color: #9db8c2; background: #fff; color: #285b6d; }
.item-add:hover { background: #eaf2f4; }
.loading-state, .empty-state { border-color: #cddadd; }

.trade-side { background: #fff; border: 1px solid #d7e1e4; border-radius: 11px; }
.you-side, .them-side { border-top: 1px solid #d7e1e4; }
.trade-side-head { border-bottom-color: #dce5e7; }
.trade-divider { color: #607682; }
.trade-empty { border-color: #cad8dc; }
.trade-line { border-bottom-color: #e1e8ea; }
.quantity button:hover { background: #edf3f4; }
.remove-line, .icon-button { color: #536670; }
.add-button { background: #f7faf9; border-color: #a8bec6; color: #2d505e; }
.add-button:hover { background: #eaf2f4; }
.add-button span { color: #245c70; }
.trade-result { background: #fff; border-color: #d7e1e4; border-radius: 11px; }
.trade-result.gain { border-color: #c8dcd1; background: #eef6f1; }
.trade-result.gain strong { color: #195f46; }
.trade-result.loss { border-color: #e9d4cd; background: #fbf1ee; }
.trade-result.loss strong { color: #963d36; }
.text-button { color: #475d68; }

.site-footer { border-top-color: #d3dfe2; }
.footer-bottom { border-top-color: #d9e3e5; }
.footer-bottom a { color: #285b6d; }
.footer-bottom a:hover { color: #163e4e; }
.item-picker { background: #fff; border-color: #bacdd3; box-shadow: 0 18px 55px #20344026; }
.item-picker::backdrop { background: #1b2d3866; backdrop-filter: none; }
.picker-item { background: #fff; border-color: #dae4e6; }
.picker-choice:hover .picker-item, .picker-choice:focus-visible .picker-item { background: #f2f7f7; border-color: #9eb8c1; }
.legal-main p, .legal-main li { color: #40545e; }
.legal-main a, .back-link { color: #245c70; }

/* The owner editor uses the same neutral surfaces and contrast. */
.owner-view-link { color: #245c70; }
.login-panel, .owner-list-panel, .owner-form-panel, .bulk-panel, .owner-stats > div { background: #fff; border-color: #d7e1e4; }
.login-panel label, .owner-form-panel label { color: #40545e; }
.login-panel input, .owner-form-panel input, .owner-form-panel select, .owner-form-panel textarea, .bulk-panel textarea {
  background: #fff;
  border-color: #bfcfd4;
  color: #1b2d38;
}
.login-panel input:focus, .owner-form-panel input:focus, .owner-form-panel select:focus, .owner-form-panel textarea:focus, .bulk-panel textarea:focus { border-color: #245c70; }
.primary-button { border-color: #245c70; background: #245c70; color: #fff; }
.primary-button:hover { filter: none; background: #1b4a5b; }
.secondary-button { border-color: #a5bac2; background: #fff; color: #285463; }
.secondary-button:hover { background: #edf3f4; }
.admin-entry { border-bottom-color: #e1e8ea; }
.admin-entry:hover, .admin-entry.selected { background: #eff5f6; }
.admin-entry > span:last-child { color: #245c70; }

@media (max-width: 680px) {
  .site-header { min-height: 104px; }
  .main-nav { align-self: stretch; }
  .nav-button { height: 37px; padding: 0 8px; flex: 0 0 auto; }
  .brand-mark { font-size: 12px; }
  .value-card { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Crawlable item names and the short introduction below the app. */
.nav-button[data-view]{display:flex;align-items:center;text-decoration:none}
.item-detail-link{color:inherit;text-decoration:none}.item-detail-link:hover{text-decoration:underline;text-underline-offset:3px}
.home-context{max-width:820px;border-top:1px solid var(--line);padding:24px 0 35px}.home-context h2{font-size:22px}.home-context p{font-size:14px;line-height:1.7;color:var(--muted)}
.item-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px}.item-facts dt{font-size:12px;color:var(--muted)}.item-facts dd{margin:8px 0 0;font-size:23px;font-weight:750}.item-detail-portrait .item-icon{width:84px;height:84px}.item-detail-portrait img{width:100%;height:100%;object-fit:cover}
#values-title,#calculator-title{font-size:clamp(28px,3vw,43px);max-width:850px}
@media(max-width:680px){.item-facts{grid-template-columns:1fr 1fr}.section-heading{gap:10px}.source-stamp{min-width:95px}#values-title,#calculator-title{font-size:30px}.home-context{padding-top:15px}}

.trade-side{min-width:0}.quantity,.remove-line{flex-shrink:0}@media(max-width:680px){.trade-grid{grid-template-columns:minmax(0,1fr)}}

.community-proof {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 2px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.community-proof strong { font-variant-numeric: tabular-nums; color: var(--text); }
.community-proof a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: .3em;
  color: #245c70;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.community-proof a strong { color: inherit; }
#top-browser-stat:not([hidden]) + a { padding-left: 14px; border-left: 1px solid var(--line); }

@media (max-width: 680px) {
  .community-proof { gap: 0 9px; }
  #top-browser-stat:not([hidden]) + a { padding-left: 9px; }
  #values-view { padding-top: 18px; }
  #values-view .section-heading { display: block; margin-bottom: 12px; }
  #values-view .source-stamp {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  #values-view .source-stamp :is(span,a) { margin: 0; font-size: 11px; }
  #values-view .release-notice:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 2px 7px 2px 10px;
    margin-bottom: 10px;
  }
  #values-view .release-notice :is(.release-spark,p) { display: none; }
  #values-view .release-notice .release-details { display: inline; }
  #values-view .notice { padding: 8px 10px; margin-bottom: 12px; }
  .toolbar .search-wrap { flex: 0 0 44px; }
  .search-wrap input { font-size: 16px; }
}

/* Brief, readable answers below the tools. */
.home-context details{border-top:1px solid var(--line);padding:13px 0}.home-context summary{cursor:pointer;font-size:14px;font-weight:700;line-height:1.5}.home-context details p{margin:10px 0 0}.home-context a,.variant-table a{color:var(--blue);text-underline-offset:3px}
.variant-table-wrap{overflow-x:auto}.variant-table{width:100%;border-collapse:collapse;font-size:14px}.variant-table th,.variant-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}.variant-table thead th{font-size:12px;color:var(--muted)}.variant-table tbody th{font-weight:600}.variant-table td:last-child{white-space:nowrap}
.item-facts{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}

.value-guide-links ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.value-guide-links a { display: inline-block; padding: 5px 10px; border: 1px solid #c9dadd; border-radius: 8px; background: #fff; }
