/* stakr & stakr — claim site. tokens only. no raw hex below this line's contract. */
:root {
  --paper: #FAF3E7;
  --surface: #FFFDF7;
  --ink: #1E1A16;
  --muted: #6B5F52;
  --line: #E3D5BE;
  --ketchup: #C8342A;
  --ketchup-deep: #A3261F;
  --mustard: #E8A020;
  --teal: #1F6E6B;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain — one ambient technique, kept quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0; }
.mono { font-family: "Space Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ketchup);
  margin: 0 0 0.75rem;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.05rem;
}
.wordmark em { font-style: normal; color: var(--ketchup); }

/* ---------- buttons ---------- */
.btn {
  font: 600 0.95rem "Inter", sans-serif;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-ketchup { background: var(--ketchup); color: var(--paper); border-color: var(--ink); }
.btn-ketchup:hover { background: var(--ketchup-deep); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.85rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-wide { width: 100%; margin-top: 1rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.textlink { color: var(--ink); font-weight: 600; text-underline-offset: 4px; padding: 0.8rem 0.2rem; min-height: 44px; display: inline-block; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 62ch; }
}
.hero h1 {
  font-size: clamp(3rem, 1.5rem + 6.5vw, 6.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.lede { font-size: 1.15rem; max-width: 38ch; color: var(--ink); }
.cta-row { display: flex; gap: 1rem; align-items: center; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-art {
  margin: 0;
  transform: rotate(1.5deg);
  transition: transform 400ms var(--ease);
}
.hero-art:hover { transform: rotate(0deg) scale(1.01); }

/* ---------- the grill (its own section) ---------- */
.grill {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.grill .hero-art { transform: none; }
.grill .hero-art:hover { transform: scale(1.005); }
.hero-art img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--mustard);
  background: var(--surface);
}
.hero-art figcaption {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}
.grill-wrap { position: relative; container-type: inline-size; }
.grill-wrap img { display: block; }
/* live speech bubble over the grill art — sits where the painted bubble is,
   shows the grill master's latest kick message (default matches the art) */
.grill-bubble {
  position: absolute;
  z-index: 2;
  left: 1.5%;
  top: 2.5%;
  width: 31%;
  min-height: 27%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf5;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 1.1em;
  padding: 0.45em 0.6em;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(0.7rem, 0.55rem + 2.2vw, 1.8rem);
  font-size: 3.4cqw;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  overflow-wrap: break-word;
}
.grill-bubble::after {
  content: '';
  position: absolute;
  bottom: -0.95em;
  right: 14%;
  border: 0.55em solid transparent;
  border-top-color: var(--ink);
}
#smokeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.grill-heat {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}
/* ---------- payout reservoir (live bnkr in the distributor) ---------- */
.reservoir {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem 0.8rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--teal);
  max-width: 100%;
}
.res-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.res-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: livepulse 2s var(--ease) infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.res-amount { line-height: 1.1; }
.res-amount strong {
  font-size: clamp(1.6rem, 1rem + 2.5vw, 2.4rem);
  font-weight: 700;
}
.res-unit {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  color: var(--ketchup);
  font-weight: 700;
}
.res-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}
.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  background: var(--surface);
  border: 2px dashed var(--ketchup);
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  font-family: "Space Mono", monospace;
  transition: transform 0.15s var(--ease);
}
.contract-pill:hover { transform: translateY(-1px); }
.contract-pill:active { transform: translateY(1px); }
.pill-ticker {
  font-weight: 700;
  color: var(--ketchup);
  white-space: nowrap;
}
.pill-addr {
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 36ch;
  user-select: all;
}
.pill-copy {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .pill-addr { max-width: 15ch; }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  animation: tick 28s linear infinite;
}
.ticker-inner b { color: var(--mustard); font-weight: 700; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); max-width: 72rem; margin: 0 auto; }
section h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); margin-bottom: 0.5rem; }

/* ---------- how / ledger ---------- */
.how { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .how { grid-template-columns: 4fr 7fr; } }
.how-sub { color: var(--muted); max-width: 32ch; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 2px dashed var(--line);
  align-items: start;
}
.ledger li:first-child { border-top: 2px dashed var(--line); }
.ledger .n {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
  background: var(--ketchup);
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ledger h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.ledger p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- claim / receipt ---------- */
.claim-head { margin-bottom: 2rem; }
.receipt {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 44rem;
  position: relative;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--line);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.wallet-line { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.wallet-line p { margin: 0; }
.wallet-addr { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.addr-pill {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.copy-btn {
  font: 600 0.8rem "Inter", sans-serif;
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 2px 2px 0 var(--ink);
}
.copy-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.epoch-rows { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.receipt-cut {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin: 0 0 0.75rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
}
.receipt-cut span { font-weight: 600; font-size: 0.95rem; }
.receipt-cut strong { font-size: 1.75rem; color: var(--ketchup, #d43a2f); }
.cut-fineprint { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.5rem; }
.epoch-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  border-bottom: 2px dashed var(--line);
  align-items: center;
}
.epoch-rows li:first-child { border-top: 2px dashed var(--line); }
.er-meta { font-size: 0.9rem; }
.er-meta strong { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 1.05rem; display: block; }
.er-meta .muted { font-size: 0.82rem; }
.er-amount { font-family: "Space Mono", monospace; font-weight: 700; font-size: 1.05rem; text-align: right; }
.er-amount small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.stamp {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  transform: rotate(-4deg);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.receipt-total strong { font-size: 1.5rem; }
.receipt-note { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.tear {
  height: 14px;
  margin: 1.5rem -2.25rem -2.25rem;
  background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 16px repeat-x,
              linear-gradient(45deg, transparent 8px, var(--paper) 0) 8px 0 / 16px 16px repeat-x;
}
.fineprint { max-width: 44rem; color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

/* ---------- epochs table ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
td.mono { font-size: 0.82rem; }
.root-cell { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- faq ---------- */
.faq details {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--ketchup); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r); }
.faq details p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--muted); max-width: 60ch; }
.skill-update-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
.prompt-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 1.25rem 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--ink);
}
.prompt-box code {
  flex: 1 1 16rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--ink);
}

/* ---------- cookout games ---------- */
.games { padding: 4rem clamp(1rem, 4vw, 2.5rem); max-width: 60rem; margin: 0 auto; }
.games .lede { margin-bottom: 1.75rem; }
.game-cards { display: grid; gap: 1rem; }
.game-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.25rem 1.35rem; text-decoration: none; color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 26, 22, 0.1); }
.game-emoji { font-size: 2rem; line-height: 1; }
.game-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.game-name { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.25rem; }
.game-sub { font-size: 0.9rem; }
.game-go { font-size: 1.4rem; color: var(--ketchup); font-weight: 700; }

/* ---------- footer ---------- */
footer {
  border-top: 2px solid var(--ink);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.foot-word { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.4rem; margin: 0 0 0.25rem; }
.foot-word em { font-style: normal; color: var(--ketchup); }
.foot-tag { font-family: "Space Mono", monospace; font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem; }
.foot-fine { font-size: 0.8rem; margin: 0; }

/* ---------- dialog ---------- */
dialog {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.75rem;
  max-width: 26rem;
  width: calc(100vw - 2rem);
  color: var(--ink);
}
dialog::backdrop { background: rgba(30, 26, 22, 0.55); }
dialog h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tx-fields { margin: 1.25rem 0; }
.tx-fields > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.tx-fields dt { color: var(--muted); }
.tx-fields dd { margin: 0; overflow-wrap: anywhere; }
dialog form { margin-top: 1.25rem; text-align: right; }

/* ---------- kick the grill ---------- */
.kick-bubble {
  position: relative;
  max-width: 44rem;
  margin: 1.5rem 0 0;
  background: #fffdf5;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  transition: opacity 400ms var(--ease);
}
.kick-bubble::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  margin-left: -9px;
  border: 9px solid transparent;
  border-top-color: var(--ink);
}
.recent-kicks {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.3rem;
  max-width: 44rem;
  font-size: 0.85rem;
}
.recent-kicks-title {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--ketchup);
}
.kick-bubble .kick-meta {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 0.25rem;
}
.kick {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.kick-head .kicker {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--ketchup);
  margin-bottom: 0.25rem;
}
.kick-head h2 { margin: 0 0 0.5rem; }
.kick-form {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.25rem;
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  max-width: 36rem;
}
.kick-form label { font-weight: 600; font-size: 0.9rem; }
.kick-form input {
  font: 1rem "Inter", sans-serif;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.kick-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.kick-status { font-family: "Space Mono", monospace; font-size: 0.85rem; min-height: 1.2em; margin: 0.2rem 0 0; }
.kick-fine code { font-size: 0.75rem; word-break: break-all; }

/* plate check (index) + card page address forms */
.plate-ask-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; max-width: 44rem; }
.plate-ask-form input {
  flex: 1 1 280px;
  padding: 12px 14px;
  font-family: "Space Mono", monospace;
  font-size: 15px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.plate-ask-form input:focus { outline: 2px solid var(--ketchup); outline-offset: 1px; }
.platecheck { margin-top: 1rem; }

/* ---------- chart ---------- */
.chart { margin-top: 1rem; }
.chart-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: #0d0d0f;
  margin: 1.5rem 0 1rem;
}
.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7f6a;
  font-size: 15px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
}
.chart-frame canvas.chart-canvas {
  display: block;
  width: 100%;
  height: min(70vh, 560px);
  min-height: 380px;
  touch-action: pan-y;
  cursor: crosshair;
}
.chart-head {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
  color: #FAF3E7;
}
.chart-sym {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7f6a;
}
.chart-tf {
  display: inline-block;
  border: 1px solid #4a4238;
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 10px;
}
.chart-stats { margin-top: 2px; }
.chart-price { font-size: 20px; color: #FAF3E7; }
.chart-chg { font-size: 13px; margin-left: 8px; }
.chart-ohlc { font-size: 11px; color: #8a7f6a; margin-top: 2px; min-height: 16px; }
.chart-loading a { color: #E8A020; }
@media (max-width: 640px) {
  .chart-frame canvas.chart-canvas {
    height: 78vh;
    min-height: 520px;
  }
  .chart-price { font-size: 17px; }
}
