/* ArcMarket-inspired dark UI (own implementation) */

:root{
  --bg: #16181d;
  --bg-subtle: #1a1b26;
  --surface: #1e2028;
  --surface-hover: #23252e;
  --border: rgba(255,255,255,.04);
  --border-strong: rgba(255,255,255,.08);
  --text: #e8eaed;
  --text-muted: rgba(255,255,255,.6);
  --text-subtle: rgba(255,255,255,.4);
  --accent: #4db8ff;
  --accent-glow: rgba(77,184,255,.2);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Rarity colors */
  --rarity-legendary: rgb(255, 198, 0);
  --rarity-epic: rgb(204, 48, 153);
  --rarity-rare: rgb(0, 168, 242);
  --rarity-uncommon: rgb(38, 191, 87);
  --rarity-common: rgb(108, 108, 108);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px -10px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -15px rgba(0,0,0,.8);
  --font: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --layout-max: 1200px;
  --layout-gutter: 1px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html,body{height:100%;min-height:100vh}
body{
  margin:0;
  padding: 0;
  font-family:"Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:15px;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  background-attachment:fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a{color:inherit;text-decoration:none}

/* Utilities */
.container{
  max-width: var(--layout-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.muted{color:var(--text-muted)}
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:1024px){
  .grid-2{grid-template-columns:1fr}
}
.page > .card,
.page > .grid{
  margin-bottom:20px;
}
.card{
  position:relative;
  background:rgba(22,24,29,.95);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:0;

  pointer-events:none;
  opacity:0;
  transition:opacity .3s ease;
}
.card:hover::before{opacity:1}

.card__body{padding:20px}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 12px;
  border-radius:6px;
  border:1px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  transition:all .2s ease;
}
.pill--soft{
  background:rgba(0,212,255,.08);
  border-color:rgba(0,212,255,.2);
  color:#7dd3ff;
}
.pill--success{
  background:rgba(34,197,94,.1);
  border-color:rgba(34,197,94,.25);
  color:#86efac;
}
.pill--legendary{
  background:rgba(255,198,0,.12);
  border-color:rgba(255,198,0,.4);
  color:var(--rarity-legendary);
  font-weight:600;
}
.pill--epic{
  background:rgba(204,48,153,.12);
  border-color:rgba(204,48,153,.4);
  color:var(--rarity-epic);
  font-weight:600;
}
.pill--rare{
  background:rgba(0,168,242,.12);
  border-color:rgba(0,168,242,.4);
  color:var(--rarity-rare);
  font-weight:600;
}
.pill--uncommon{
  background:rgba(38,191,87,.12);
  border-color:rgba(38,191,87,.4);
  color:var(--rarity-uncommon);
  font-weight:600;
}
.pill--common{
  background:rgba(108,108,108,.12);
  border-color:rgba(108,108,108,.3);
  color:var(--rarity-common);
}

/* Topbar / Tabs */
.topbar{
  position:sticky;
  top:0;
  left:0;
  right:0;
  z-index:100;
  background:rgba(22,24,29,.95);
  backdrop-filter:blur(12px) saturate(180%);
  border-bottom:1px solid var(--border);
}

.topbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(90deg,
    #00fdfd 0%,
    #07f76e 33%,
    #fae700 66%,
    #fe0000 100%);
}

.topbar__inner{
  display:flex;
  align-items:center;
  gap:20px;
  padding-top:16px;
  padding-bottom:16px;
  width:100%;
}

.brand{
  display:flex;
  align-items:center;
  /* gap:22px; */

  min-width:120px;
}
.brand__logo{
  height:46px;
  width:auto;
  max-width:140px;
  display:block;
}

.brand__mark{
  width:44px;
  height:44px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:13px;
  letter-spacing:.5px;
  color:#fff;
  box-shadow:none;
  overflow:visible;
  color:transparent;
  font-size:0;
}
.brand__mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  transform:scale(2.8);
  transform-origin:center;
  opacity:1;
}
.brand__name{
  font-weight:700;
  font-size:26px;
  letter-spacing:-0.7px;
  line-height:1.2;
}
.brand__tag{
  font-size:12.5px;
  color:var(--text-subtle);
  line-height:1.3;
}

.tabs{
  display:flex;
  align-items:center;
  gap:18px;
  padding:0;
  border:0;
  background:transparent;
  border-radius:0;
}
.tabs__link{
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  color:var(--text-muted);
  padding:8px 2px;
  border-radius:0;
  transition:color .2s ease;
  position:relative;
}
.tabs__link--dropdown{
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  font-family:inherit;
  line-height:inherit;
  color:var(--text-muted);
  padding:8px 2px;
  position:relative;
  transition:color .2s ease;
}
.tabs__link--dropdown:hover{
  color:var(--text);
}
.tabs__link--dropdown:focus{outline:none}
.tabs__link--dropdown:focus-visible{outline:2px solid rgba(255,255,255,.35);outline-offset:4px;border-radius:6px}
.tabs__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  background:#f4c44d;
  opacity:0;
  transform:scaleX(0.6);
  transition:opacity .2s ease, transform .2s ease;
}
.tabs__link:hover{
  color:var(--text);
}
.tabs__link:hover::after{
  opacity:1;
  transform:scaleX(1);
}
.tabs__link[aria-disabled="true"]{
  opacity:.4;
  cursor:not-allowed;
}
.tabs__link--active{
  color:#fff;
  font-weight:600;
}
.tabs__link--active::after{
  opacity:1;
  transform:scaleX(1);
}

.events-menu{position:relative;display:inline-flex;align-items:center}
.tabs__link--dropdown{display:inline-flex;align-items:center;gap:8px}
.events-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:rgba(34,197,94,.2);
  color:#9ef7c3;
  border:1px solid rgba(34,197,94,.45);
}
.events-panel{
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  width:400px;
  background:rgba(18,20,28,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:200;
}
.events-menu.is-open .events-panel{opacity:1;transform:translateY(0);pointer-events:auto}
.events-panel__content{padding:14px}
.events-section{border:1px solid rgba(255,255,255,.06);border-radius:12px;overflow:hidden;margin-bottom:12px;background:rgba(255,255,255,.02)}
.events-section:last-child{margin-bottom:0}
.events-section__header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:rgba(255,255,255,.04);font-weight:600;font-size:13px}
.events-list{padding:8px 10px}
.events-empty{color:var(--text-muted);font-size:12px;padding:8px 4px}
.event-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid rgba(255,255,255,.06)}
.event-row:last-child{border-bottom:0}
.event-row__thumb{width:38px;height:38px;border-radius:999px;border:2px solid rgba(255,255,255,.35);overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.05)}
.event-row__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.event-row__name{font-size:14px;font-weight:600}
.event-row__meta{font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px}
.event-row__time{font-size:12px;font-weight:600;color:#f5d35b;white-space:nowrap}
.event-row__time--upcoming{color:#b78bff}

.topbar__right{
  margin-left:auto;
  display:flex;
  gap:14px;
  align-items:center;
}
.lang-dropdown{
  position:relative;
}
.lang-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:2px;
  background:transparent;
}
.lang-dropdown__toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
}
.lang-dropdown__toggle:hover{background:rgba(255,255,255,.08)}
.lang-dropdown__chev{opacity:.7;font-size:12px}
.lang-dropdown__menu{
  position:absolute;
  top:calc(100% + 2px);
  right:0;
  min-width:140px;
  background:rgba(18,20,28,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  padding:6px;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:200;
}
.lang-dropdown:hover .lang-dropdown__menu,
.lang-dropdown:focus-within .lang-dropdown__menu{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.lang-dropdown__item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:8px;
  color:var(--text-muted);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}
.lang-dropdown__item:hover{background:rgba(255,255,255,.06);color:var(--text)}
.lang-dropdown__item.is-active{color:#fff;background:rgba(77,184,255,.18)}
.lang-dropdown__flag{display:inline-flex;align-items:center;justify-content:center}
.flag{width:18px;height:12px;border-radius:2px;display:inline-block;background-size:cover;background-position:center;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.flag--de{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'><rect width='18' height='4' y='0' fill='%23000'/><rect width='18' height='4' y='4' fill='%23dd0000'/><rect width='18' height='4' y='8' fill='%23ffce00'/></svg>")}
.flag--en{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'><rect width='18' height='12' fill='%23b22234'/><g fill='%23fff'><rect y='1' width='18' height='1'/><rect y='3' width='18' height='1'/><rect y='5' width='18' height='1'/><rect y='7' width='18' height='1'/><rect y='9' width='18' height='1'/><rect y='11' width='18' height='1'/></g><rect width='8' height='6.5' fill='%233c3b6e'/></svg>")}
.link{
  color:var(--text-muted);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:color .2s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid transparent;
}
.link:hover{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.15);
}
.link[aria-disabled="true"]{opacity:.4;cursor:not-allowed}

.link__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
}
.link__icon svg{display:block;fill:currentColor}

@media (max-width:1024px){
  .topbar__inner{flex-wrap:wrap;gap:12px}
  .brand{min-width:auto}
  .topbar__right{margin-left:0;width:100%}
}

/* Page */
.page{
  padding:20px var(--layout-gutter) 48px;
  max-width: var(--layout-max);
  margin: 0 auto;
  width: 100%;
}

.pagehead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 20px;
}
.pagehead__right{display:flex;gap:10px;flex-wrap:wrap}
.h1{
  margin:0 0 6px;
  font-size:26px;
  font-weight:700;
  letter-spacing:-.3px;
  line-height:1.2;
}
.h2{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:-.1px;
}

/* Buttons */
.btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border:1px solid var(--border-strong);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:14px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
  text-decoration:none;
  transition:all .2s ease;
}
.btn:hover{
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.btn:active{transform:translateY(0)}
.btn[aria-disabled="true"],
.btn:disabled{
  opacity:.4;
  cursor:not-allowed;
  pointer-events:none;
}

.btn--primary{
  color:#fff;
  background:rgba(77,184,255,.2);
  border-color:rgba(77,184,255,.4);
  box-shadow:0 2px 8px rgba(77,184,255,.15);
  font-weight:600;
}
.btn--primary:hover{
  background:rgba(77,184,255,.3);
  box-shadow:0 4px 12px rgba(77,184,255,.25);
  transform:translateY(-1px);
}
.btn--ghost{
  background:transparent;
  border-color:rgba(255,255,255,.08);
}
.btn--ghost:hover{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.15);
}

.actions{display:flex;gap:10px;flex-wrap:wrap}

/* Filter bar */
.filterbar{margin:0 0 20px}
.filterbar__inner{
  display:grid;
  grid-template-columns:2fr repeat(3,1fr) auto;
  gap:14px;
  padding:20px;
}
.field{min-width:0}
.field--actions{min-width:240px}
.label{
  display:block;
  font-size:12.5px;
  font-weight:500;
  color:var(--text-muted);
  margin:0 0 8px;
  letter-spacing:.2px;
}
.control{position:relative}
.control--search .icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--text-subtle);
  pointer-events:none;
}
.control--search svg{width:18px;height:18px}

.input,
.select{
  width:100%;
  padding:11px 13px;
  border-radius:8px;
  border:1px solid var(--border-strong);
  background:var(--surface-hover);
  color:var(--text);
  font-size:14px;
  font-family:inherit;
  outline:none;
  transition:all .2s ease;
}
.control--search .input{padding-left:40px}
.input::placeholder{color:var(--text-subtle)}
.input:focus,
.select:focus{
  border-color:rgba(0,212,255,.4);
  background:var(--surface);
  box-shadow:0 0 0 3px rgba(0,212,255,.1);
}

@media (max-width:1024px){
  .filterbar__inner{grid-template-columns:1fr 1fr}
  .field--actions{min-width:0;grid-column:1/-1}
}

/* Items list hero (search + filters) */
.list-hero{
  background:rgba(22,24,29,.95);
  border:1px solid rgba(255,255,255,.05);
  border-radius:14px;
  padding:16px;
  margin:0 0 18px;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
}
.list-hero__form{display:flex;flex-direction:column;gap:14px}
.list-hero__search{
  position:relative;
  display:flex;
  align-items:center;
}
.list-hero__icon{
  position:absolute;
  left:16px;
  width:18px;
  height:18px;
  color:rgba(255,255,255,.45);
  pointer-events:none;
}
.list-hero__icon svg{width:18px;height:18px}
.list-hero__input{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(12,10,20,.55);
  color:var(--text);
  padding:0 16px 0 46px;
  font-size:14px;
  outline:none;
  transition:all .2s ease;
}
.list-hero__input::placeholder{color:rgba(255,255,255,.4)}
.list-hero__input:focus{
  border-color:rgba(0,212,255,.35);
  box-shadow:0 0 0 3px rgba(0,212,255,.12);
  background:rgba(12,10,20,.75);
}

.list-hero__filters{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.list-hero__filters-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.55);
  font-size:13px;
}
.list-hero__filters-label svg{width:16px;height:16px}
.list-hero__filter{min-width:160px;display:flex;align-items:center;gap:10px}
.list-hero__filter-label{
  font-size:13px;
  letter-spacing:normal;
  text-transform:none;
  color:rgba(255,255,255,.55);
  white-space:nowrap;
}
.list-hero__select{min-width:160px}
.list-hero__select{
  width:100%;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(18,20,26,.9);
  color:var(--text);
  font-size:13.5px;
  padding:0 12px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 6px 16px rgba(0,0,0,.25);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  color-scheme:dark;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%),
    linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 16px,
    calc(100% - 11px) 16px;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
}
.list-hero__select:focus{
  border-color:rgba(77,184,255,.5);
  background:rgba(18,20,26,.98);
  box-shadow:0 0 0 3px rgba(77,184,255,.14), 0 10px 20px rgba(0,0,0,.35);
}
.list-hero__select:hover{
  border-color:rgba(255,255,255,.22);
}

/* Dropdown menu + rarity colors */
.list-hero__select option{
  background:#141723;
  color:var(--text);
}
.list-hero__select option:checked{
  background:#1a1f2b;
  color:var(--text);
}
.list-hero__select#rarity option[value="Common"]{ color:var(--rarity-common); }
.list-hero__select#rarity option[value="Uncommon"]{ color:var(--rarity-uncommon); }
.list-hero__select#rarity option[value="Rare"]{ color:var(--rarity-rare); }
.list-hero__select#rarity option[value="Epic"]{ color:var(--rarity-epic); }
.list-hero__select#rarity option[value="Legendary"]{ color:var(--rarity-legendary); }

.list-hero__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:rgba(255,255,255,.55);
  font-size:12.5px;
  padding:2px 2px 0;
}
.list-hero__count{color:rgba(255,255,255,.75)}

@media (max-width:900px){
  .list-hero__filters{gap:10px}
  .list-hero__filter{min-width:140px}
}
@media (max-width:700px){
  .list-hero__meta{flex-direction:column;align-items:flex-start;gap:6px}
  .list-hero__filter{min-width:100%;}
}

/* Table */
.tablewrap{overflow:auto;border-radius:0 0 var(--radius) var(--radius)}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:1024px;
}
.table thead th{
  text-align:left;
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--text-muted);
  padding:14px 16px;
  background:rgb(18, 19, 23);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:10;
}
.table tbody td{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  font-size:14px;
  vertical-align:middle;
}
.table tbody tr{
  background:transparent;
  transition:background .15s ease;
}
.table tbody tr:hover{background:rgba(0,212,255,.02)}
.t-right{text-align:right}

.mono{
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  font-weight: 600;
}

.coin{width:18px;height:18px;display:block}
.price{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}
.price__icon{display:inline-flex;align-items:center;justify-content:center;opacity:.92}
.price__icon img{width:18px;height:18px;display:block}
.table--market th.t-right,
.table--market td.t-right{
  text-align:left;
}
.table--market td.t-right .price,
.table--market th.t-right .price{
  width:100%;
  display:flex;
  justify-content:flex-start;
}

.col-img{width:70px}
.col-wiki{width:100px}

.thumb{
  width:56px;
  height:56px;
  border-radius:10px;
  border:1px solid var(--border-strong);
  object-fit:cover;
  background:var(--surface-hover);
  transition:all .2s ease;
  position:relative;
}
.table--market .thumb{
  box-sizing:border-box;
  padding:4px;
  object-fit:contain;
}
.thumb-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  --thumb-accent: var(--rarity-common);
}
.thumb-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:50%;
  height:50%;
  background:var(--thumb-accent);
  transform-origin:bottom left;
  transform:scale(1.1);
  z-index:2;
  pointer-events:none;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='black'%3E%3Cpath d='M0 64V0C0 0 4 21 23.5 40.5C43 60 64 64 64 64H0Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='black'%3E%3Cpath d='M0 64V0C0 0 4 21 23.5 40.5C43 60 64 64 64 64H0Z'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:left bottom;
  mask-position:left bottom;
}
.thumb-link--blueprint{
  background:transparent;
}
.thumb-link--blueprint::after{
  content:none;
}
.thumb-link--legendary{ --thumb-accent: var(--rarity-legendary); }
.thumb-link--epic{ --thumb-accent: var(--rarity-epic); }
.thumb-link--rare{ --thumb-accent: var(--rarity-rare); }
.thumb-link--uncommon{ --thumb-accent: var(--rarity-uncommon); }
.thumb-link--common{ --thumb-accent: var(--rarity-common); }
.thumb-link--blueprint::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("media/blueprint-bg.webp");
  background-size:cover;
  background-position:center;
  opacity:.75;
  z-index:0;
}
.thumb-link--blueprint .thumb{
  position:relative;
  z-index:1;
  background:transparent;
}
.thumb--lg{
  width:80px;
  height:80px;
  border-radius:14px;
}
.thumb--placeholder{
  background:linear-gradient(135deg, rgba(0,212,255,.04), rgba(100,80,255,.03));
}
.thumb--blueprint{
  background-image:url("media/blueprint-bg.webp");
  background-size:cover;
  background-position:center;
}

/* Rarity-based thumbnail styles */
.thumb--legendary{
  border-color:var(--rarity-legendary);
  border-width:1.5px;
  background:linear-gradient(135deg, rgba(255,198,0,.15) 0%, transparent 60%), var(--surface-hover);
  box-shadow:0 0 10px rgba(255,198,0,.2);
}
.thumb--epic{
  border-color:var(--rarity-epic);
  border-width:1.5px;
  background:linear-gradient(135deg, rgba(204,48,153,.15) 0%, transparent 60%), var(--surface-hover);
  box-shadow:0 0 10px rgba(204,48,153,.2);
}
.thumb--rare{
  border-color:var(--rarity-rare);
  border-width:1.5px;
  background:linear-gradient(135deg, rgba(0,168,242,.15) 0%, transparent 60%), var(--surface-hover);
  box-shadow:0 0 10px rgba(0,168,242,.2);
}
.thumb--uncommon{
  border-color:var(--rarity-uncommon);
  border-width:1.5px;
  background:linear-gradient(135deg, rgba(38,191,87,.15) 0%, transparent 60%), var(--surface-hover);
  box-shadow:0 0 10px rgba(38,191,87,.2);
}
.thumb--common{
  border-color:var(--rarity-common);
  background:linear-gradient(135deg, rgba(108,108,108,.1) 0%, transparent 60%), var(--surface-hover);
}

.namecell{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:260px;
}
.namecell__name{
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  color:var(--text);
  transition:color .2s ease;
}
.namecell__name:hover{
  filter:brightness(1.08);
}
.namecell__name--legendary{color:var(--rarity-legendary)}
.namecell__name--legendary:hover{filter:brightness(1.08)}
.namecell__name--epic{color:var(--rarity-epic)}
.namecell__name--epic:hover{filter:brightness(1.08)}
.namecell__name--rare{color:var(--rarity-rare)}
.namecell__name--rare:hover{filter:brightness(1.08)}
.namecell__name--uncommon{color:var(--rarity-uncommon)}
.namecell__name--uncommon:hover{filter:brightness(1.08)}
.namecell__name--common{color:var(--rarity-common)}
.namecell__name--common:hover{filter:brightness(1.08)}
.namecell__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tags{display:flex;gap:8px;flex-wrap:wrap}

/* Item detail */
.itemhead{overflow:hidden}
.itemhead__inner{display:flex;gap:18px;padding:20px;align-items:flex-start}
.itemhead__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.itemname{font-weight:700;font-size:20px;letter-spacing:-.2px}
.itembadges{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.itemhead__links{display:flex;gap:10px;flex-wrap:wrap}
.itemhead__tags{margin-top:4px}
@media (max-width:768px){
  .itemhead__inner{align-items:stretch;flex-direction:column}
}

.itempage-top{
  align-items:start;
}
.itemcard{
  overflow:hidden;
  background:rgba(22,24,29,.95);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.itemcard__body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.itemcard__badges{display:flex;gap:8px;flex-wrap:wrap}
.itemcard__name{
  font-size:17px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#111;
}
.itemcard__media{
  background:linear-gradient(135deg, #1e1f22 0%, #2c2d30 55%, #3a3b3f 100%);
  border-radius:8px;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;
}
.itemcard__media img{
  width:100%;
  height:140px;
  object-fit:contain;
}
.itemcard__desc{
  background:transparent;
  border:0;
  border-radius:0;
  padding:2px 2px 6px;
  font-size:13.5px;
  line-height:1.5;
  color:#2f2f2f;
}
.itemcard__stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  background:#d6c7b4;
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}
.itemstat{
  background:transparent;
  border-right:1px solid rgba(0,0,0,.15);
  padding:10px 12px;
  text-align:center;
}
.itemstat:last-child{border-right:0}
.itemstat__k{
  display:none;
}
.itemstat__v{
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#1b1b1b;
  font-size:13px;
}
.itemstat__icon{
  font-size:13px;
  opacity:.85;
}

/* Item page only: badge look */
.itemcard .pill{
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.4px;
  background:#e0cfa9;
  border-color:rgba(0,0,0,.12);
  color:#2b2b2b;
}
.itemcard .pill--legendary{background:rgba(255,198,0,.45);border-color:rgba(0,0,0,.15);color:#1f1a00}
.itemcard .pill--epic{background:rgba(204,48,153,.35);border-color:rgba(0,0,0,.15);color:#2b0f22}
.itemcard .pill--rare{background:rgba(0,168,242,.35);border-color:rgba(0,0,0,.15);color:#0f1f2b}
.itemcard .pill--uncommon{background:rgba(38,191,87,.35);border-color:rgba(0,0,0,.15);color:#102014}
.itemcard .pill--common{background:rgba(108,108,108,.35);border-color:rgba(0,0,0,.15);color:#1f1f1f}
.itemcard .pill--success{background:rgba(34,197,94,.35);border-color:rgba(0,0,0,.15);color:#102214}

/* Sources layout */
.item-sources{display:flex;flex-direction:column;gap:14px}
.item-sources__row{display:flex;gap:16px;align-items:flex-start}
.item-sources__label{min-width:80px;font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted)}
.item-sources__value{flex:1}

/* ARC item box (scoped) */
.arcItemBox{
  background:#f1e7d7;
  border:0;
  box-shadow:none;
  overflow:hidden;
  border-radius:12px;
  --arcRarityRgb: 255 198 0;
}

.arcItemBox .arcItemContent{
  padding:24px;
  padding-bottom:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  font-family:"Barlow","Barlow Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.arcBadges{
  display:flex;
  gap:4px;
  height:24px;
}

.arcBadge{
  display:block;
  box-sizing:border-box;
  height:24px;
  padding:4px 8px;
  border-radius:4px;
  background: rgb(var(--arcRarityRgb));
  color:rgb(19,9,24);
  font-family:"Barlow","Barlow Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:12px;
  font-weight:600;
  font-style:normal;
  line-height:16px;
  letter-spacing:normal;
  text-transform:uppercase;
  white-space:nowrap;
}

.arcTitle{
  margin:0;
  color:rgb(19,9,24);
  font-family:"Barlow","Barlow Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:20px;
  font-weight:700;
  font-style:normal;
  line-height:25px;
  letter-spacing:normal;
  text-transform:uppercase;
}

.arcItemBox .arcHero{
  position:relative;
  height:162px;
  padding:20px 12px;
  border-radius:6px;
  overflow:hidden;
  background: rgb(31,32,35);
  isolation:isolate;
}
.arcItemBox[data-type*="blueprint"] .arcHero{
  background-image:url("media/blueprint-bg.webp");
  background-size:cover;
  background-position:center;
}

.arcItemBox .arcHero::before{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:64px;
  height:64px;
  background:rgb(var(--arcRarityRgb));
  transform-origin:bottom left;
  transform:none;
  z-index:1;
  pointer-events:none;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='black'%3E%3Cpath d='M0 64V0C0 0 4 21 23.5 40.5C43 60 64 64 64 64H0Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='black'%3E%3Cpath d='M0 64V0C0 0 4 21 23.5 40.5C43 60 64 64 64 64H0Z'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:left bottom;
  mask-position:left bottom;
}
.arcItemBox[data-type*="blueprint"] .arcHero::before{
  content:none;
}

.arcItemBox .arcHero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;

  background:
    radial-gradient(
      circle at 0% 100%,
      rgb(var(--arcRarityRgb) / 0.35) 0%,
      rgb(var(--arcRarityRgb) / 0.18) 28%,
      rgb(var(--arcRarityRgb) / 0.06) 46%,
      rgb(var(--arcRarityRgb) / 0.00) 72%
    ),
    radial-gradient(
      circle at 100% 55%,
      rgb(var(--arcRarityRgb) / 0.12) 0%,
      rgb(var(--arcRarityRgb) / 0.06) 22%,
      rgb(var(--arcRarityRgb) / 0.00) 55%
    );

  mix-blend-mode: normal;
  opacity: 0.65;
}

.arcItemBox .arcItemImg{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-55%);
  width:150px;
  height:auto;
  user-select:none;
  pointer-events:none;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,0.35));
  z-index:2;
}

.arcItemImgPlaceholder{
  width:100%;
  height:100%;
}

.arcDesc{
  margin:0;
  color:rgb(19,9,24);
  font-family:"Barlow","Barlow Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  font-weight:500;
  font-style:normal;
  line-height:22.75px;
}

.arcDescMuted{
  opacity:0.75;
}

.arcItemBox .arcStatsBar{
  width:100%;
  display:flex;
  gap:2px;
  padding:12px 0 0 0;
  height:52px;
  box-sizing:border-box;
  background:transparent;
}

.arcStatCell{
  flex:1;
  height:40px;
  background:rgb(206,193,176);
  color:rgb(19,9,24);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-family:"Barlow","Barlow Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  font-weight:600;
  font-style:normal;
  line-height:24px;
  cursor:default;
}

.arcItemBox .arcStatCellLeft{ border-radius:0 0 0 12px; }
.arcItemBox .arcStatCellRight{ border-radius:0 0 12px 0; }

.arcStatIcon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
}

.arcStatIcon .coin{
  width:18px;
  height:18px;
  display:block;
}
.arcItemBox .arcStatIcon .coin{
  filter:brightness(0);
}

.arcCoins{
  font-weight:600;
}

/* Rarity mapping */
.arcItemBox[data-rarity="legendary"]{ --arcRarityRgb: 255 198 0; }
.arcItemBox[data-rarity="epic"]{ --arcRarityRgb: 218 93 183; }
.arcItemBox[data-rarity="rare"]{ --arcRarityRgb: 0 168 242; }
.arcItemBox[data-rarity="uncommon"]{ --arcRarityRgb: 38 191 87; }
.arcItemBox[data-rarity="common"]{ --arcRarityRgb: 108 108 108; }

/* Recycle value card */
.recycle-card{
  background:rgba(22,24,29,.95);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 14px 36px rgba(0,0,0,.35);
  color:#e6e2f1;
}
.recycle-header{
  padding:18px 20px 0;
}
.recycle-title .h2{
  margin:0;
  color:#ece9f6;
  font-size:18px;
  letter-spacing:.2px;
}
.recycle-body{
  padding:14px 20px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.recycle-value-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.recycle-value{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:16px;
  color:#f5f2ff;
}
.recycle-coin .coin{
  width:22px;
  height:22px;
  display:block;
}
.recycle-arrow{
  opacity:.55;
  font-size:16px;
}
.recycle-arrow-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:2px;
}
.recycle-arrow-icon svg{
  width:18px;
  height:18px;
}
.recycle-arrow-icon--arrow{color:#5c5c5c}
.recycle-arrow-icon--recycle{color:#3bd136}
.recycle-chip{
  background:rgba(255,92,92,.16);
  border:1px solid rgba(255,92,92,.22);
  padding:8px 12px;
  border-radius:8px;
  color:#ff5c5c;
}
.recycle-note{
  font-size:13px;
  color:#c7bed8;
}
.recycle-delta{
  font-weight:700;
}
.recycle-delta.is-negative{ color:#ff5c5c; }
.recycle-delta.is-positive{ color:#7ee787; }

.recycle-breakdown{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.recycle-breakdown__title{
  font-size:11px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#8f87a5;
}
.recycle-breakdown__rows{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.recycle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.recycle-row:last-child{ border-bottom:0; padding-bottom:0; }
.recycle-row__name{
  font-size:13.5px;
  color:#e9e4f7;
}
.recycle-row__calc{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:#a9a1bd;
}
.recycle-mul,
.recycle-eq{ opacity:.7; }
.recycle-total{
  margin-top:8px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
  font-size:14px;
  color:#f1edff;
}
.recycle-total .mono{
  color:#ff5c5c;
  font-size:16px;
}

@media (max-width:1024px){
  .itemcard__stats{grid-template-columns:1fr}
}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:1024px){
  .stats{grid-template-columns:1fr}
}
.stat{
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  border-radius:10px;
  padding:16px;
  transition:all .2s ease;
}
.stat:hover{
  background:rgba(255,255,255,.04);
  border-color:var(--border-strong);
}
.stat__k{
  color:var(--text-muted);
  font-size:12.5px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.5px;
  margin-bottom:8px;
}
.stat__v{font-size:15px;font-weight:600}

.text-success{color:var(--success)}
.text-danger{color:var(--danger)}

.prose{font-size:14.5px;line-height:1.7;color:var(--text-muted);max-width:860px}
.prose h3{font-size:16px;line-height:1.4;color:var(--text);margin:18px 0 8px;font-weight:600}
.prose h4{font-size:14px;line-height:1.4;color:var(--text);margin:14px 0 6px;font-weight:600}
.prose p{margin:0 0 12px}
.prose ul{margin:0 0 12px 18px;padding:0}
.prose li{margin:4px 0}
.prose a{color:var(--link, #7cc4ff);text-decoration:none}
.prose a:hover{text-decoration:underline}
.prose strong{color:var(--text)}
.legal-card{padding:22px 24px}
.legal-lead{font-size:15px;color:var(--text);margin-bottom:16px}
.legal-section{padding:16px 0;border-top:1px solid var(--border)}
.legal-section:first-of-type{border-top:0;padding-top:6px}
.legal-section--links{padding-bottom:8px}

/* Card internals */
.card__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
}
.card__title{display:flex;align-items:center;gap:12px}
.card__meta{font-size:13px}
.card__footer{
  padding:16px 20px;
  display:flex;
  justify-content:center;
  border-top:1px solid var(--border);
}

.footer{
  position: relative;
  border-top:1px solid var(--border);
  padding:18px var(--layout-gutter);
  background:rgba(22,24,29,.95);
  margin-top:auto;
}

.footer::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #00fdfd 0%, #07f76e 33%, #fae700 66%, #fe0000 100%);
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  font-size:13px;
  color:rgba(255,255,255,.65);
  max-width: var(--layout-max);
  margin: 0 auto;
  width: 100%;
}
.footer__left,.footer__center,.footer__right{white-space:nowrap}
.footer__version{color:rgba(255,255,255,.45)}
.footer__right{display:flex;gap:18px;align-items:center}
.footer__link{color:rgba(255,255,255,.6);text-decoration:none}
.footer__link:hover{color:#fff}
@media (max-width:1024px){
  .footer__inner{justify-content:center;text-align:center}
  .footer__left,.footer__center,.footer__right{white-space:normal}
}

/* Instant filter (JS progressive enhancement) */
.filter-clear-btn{
  display:none;
  padding:10px 16px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text-muted);
  font-size:13px;
  cursor:pointer;
  transition:all .2s ease;
}
.filter-clear-btn:hover{
  background:rgba(255,0,0,.05);
  border-color:rgba(239,68,68,.3);
  color:var(--danger);
}
.filter-clear-btn--visible{display:inline-flex}

.table tbody tr.hidden-by-filter{display:none}
.table-empty-row{text-align:center;font-size:14px;color:var(--text-muted);padding:32px!important}

/* Item hover preview */
.item-preview{
  position:fixed;
  z-index:200;
  width:360px;
  pointer-events:none;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .12s ease, transform .12s ease;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.item-preview--visible{
  opacity:1;
  transform:translateY(0);
}
.item-preview .arcItemBox{
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.06);
}
@media (max-width:900px){
  .item-preview{display:none}
}

/* Value curve card */
.value-card{margin-top:18px}
.value-card__header{flex-wrap:wrap;gap:12px}
.value-card__ranges{display:flex;gap:8px;flex-wrap:wrap}
.value-chip{
  border:1px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  color:var(--text-muted);
  padding:6px 10px;
  font-size:12.5px;
  border-radius:5px;
  cursor:pointer;
  transition:all .2s ease;
}
.value-chip:hover{color:var(--text);border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.value-chip.is-active{
  color:#fff;
  border-color:rgba(77,184,255,.5);
  background:rgba(77,184,255,.18);
  box-shadow:0 6px 14px rgba(77,184,255,.18);
}

.value-card__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:14px}
.value-stat{border:1px solid var(--border);background:rgba(255,255,255,.03);border-radius:10px;padding:12px 14px}
.value-stat__label{font-size:12px;color:var(--text-muted);margin-bottom:6px;text-transform:uppercase;letter-spacing:.3px}
.value-stat__value{font-size:15px;font-weight:600}
.value-stat__value.value-up{color:var(--success)}
.value-stat__value.value-down{color:var(--danger)}
.value-up{color:var(--success)}
.value-down{color:var(--danger)}

.value-chart{
  height:180px;
  border-radius:12px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(6,8,12,.95) 0%, rgba(4,6,10,.98) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  padding-top:12px;
  padding-bottom:22px;
}
.value-chart::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/14.28% 100%,
    linear-gradient(to top, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/100% 25%;
  opacity:.6;
  pointer-events:none;
}
.value-chart__empty{color:var(--text-muted);font-size:13px}
.value-chart__svg{width:100%;height:100%}
.value-chart__axis{fill:none;stroke:rgba(255,255,255,.08);stroke-width:0.5}
.value-chart__line{
  fill:none;
  stroke:rgba(190,240,90,1);
  stroke-width:0.5;
  filter:drop-shadow(0 0 2px rgba(190,240,90,.4));
}
.value-chart__points{
  position:absolute;
  left:0;
  right:0;
  top:12px;
  bottom:22px;
  pointer-events:none;
  z-index:4;
}
.value-chart__point{
  position:absolute;
  width:5px;
  height:5px;
  border-radius:999px;
  background:rgba(190,240,90,1);
  box-shadow:0 0 4px rgba(190,240,90,.45);
  transform:translate(-50%,-50%);
}

.value-chart__labels{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.value-chart__label--xmin{bottom:-2px;left:36px}
.value-chart__label--xmax{bottom:-2px;right:10px}

.value-chart__overlay{
  position:absolute;
  left:0;
  right:0;
  top:12px;
  bottom:22px;
  cursor:default;
  z-index:5;
}
.value-chart__marker-line{
  position:absolute;
  top:12px;
  bottom:22px;
  width:1px;
  background:rgba(255,255,255,.3);
  opacity:0;
  transform:translateX(-0.5px);
  transition:opacity .1s ease;
}
.value-chart__marker-line.is-visible{opacity:1}
.value-chart__marker-dot{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(190,240,90,1);
  box-shadow:0 0 0 3px rgba(190,240,90,.25), 0 0 8px rgba(190,240,90,.4);
  opacity:0;
  transform:translate(-50%,-50%);
  transition:opacity .1s ease;
}
.value-chart__marker-dot.is-visible{opacity:1}
.value-chart__tooltip{
  position:absolute;
  padding:8px 12px;
  border-radius:6px;
  background:rgba(12,16,24,.98);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  opacity:0;
  transition:opacity .12s ease;
  pointer-events:none;
  z-index:100;
}
.value-chart__tooltip.is-visible{opacity:1 !important}
.value-chart__tooltip-title{color:rgba(255,255,255,.6);margin-bottom:4px}
.value-chart__tooltip-value{font-weight:600}
.value-chart__tooltip-value{
  font-weight:600;
  text-shadow:0 1px 6px rgba(0,0,0,.6);
}
.value-chart__label{position:absolute;font-size:11px;color:rgba(255,255,255,.5)}
.value-chart__label--ymax{top:6px;right:8px}
.value-chart__label--ymin{bottom:24px;right:8px}
.value-chart__label--xmin{bottom:6px;left:36px}
.value-chart__label--xmax{bottom:6px;right:10px}

.value-card__note{font-size:12.5px}

@media (max-width:900px){
  .value-card__stats{grid-template-columns:1fr}
}
