@font-face {
  font-family: Barlow Condensed;
  src: url("/assets/barlow-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Tea Sans;
  src: url("/assets/tea-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202922;
  --muted: #5f6a60;
  --page: #f6f7f1;
  --paper: #fffefa;
  --rule: #ced4c7;
  --green: #327044;
  --lime: #c4ed75;
  --red: #b64132;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans:
    "Tea Sans", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
a,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
}
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #6e9636;
  outline-offset: 4px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
button svg,
a svg {
  pointer-events: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 10px;
  padding: 8px 14px;
  background: var(--lime);
  z-index: 15;
}
.icon-bank {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.icon {
  width: 1.16rem;
  height: 1.16rem;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container {
  width: min(1160px, calc(100% - 6rem));
  margin: 0 auto;
}
.masthead {
  background: #fcfdf7;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  height: 4.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.wordmark img {
  width: 38px;
  height: 38px;
}
.nav-inner nav {
  display: flex;
  align-items: center;
  gap: 1.22rem;
}
.twitch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}
.twitch-link img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #c4c8bc;
  object-fit: cover;
}
.twitch-icon {
  width: 0.92rem;
  height: 0.92rem;
  color: #725395;
}
.twitch-link:hover span {
  text-decoration: underline;
}
.nav-line {
  height: 1.25rem;
  width: 1px;
  background: #d7dace;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 38px;
  padding: 0.42rem 1.03rem;
  background: var(--lime);
  border: 1.25px solid #273323;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: 0 2px 0 #273323;
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
.share-btn .icon {
  width: 1rem;
  height: 1rem;
}
.share-btn:hover {
  background: #d2f88e;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #273323;
}
.share-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 2rem 0 1.45rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.81rem;
  font-weight: 650;
  line-height: 1.4;
  color: #536252;
  letter-spacing: 0.02em;
}
.eyebrow b {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-size: 0.87rem;
}
.eyebrow .slash {
  color: #9aa393;
  margin: 0 0.07rem;
}
.signal {
  height: 12px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-right: 0.08rem;
}
.signal i {
  width: 3px;
  background: #57793e;
  display: block;
}
.signal i:nth-child(1) {
  height: 5px;
}
.signal i:nth-child(2) {
  height: 10px;
}
.signal i:nth-child(3) {
  height: 7px;
}
.signal i:last-child {
  height: 13px;
}
h1 {
  font-size: clamp(2.45rem, 3.8vw, 3.65rem);
  font-weight: 900;
  line-height: 1.23;
  letter-spacing: -0.075em;
  margin-top: 0.38rem;
}
.marker {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.marker::after {
  content: "";
  position: absolute;
  bottom: 0.03em;
  left: -0.02em;
  right: -0.025em;
  height: 0.17em;
  background: #bee980;
  transform: rotate(-1.8deg);
  z-index: -1;
  border-radius: 60% 20% 35% 12%;
}
.question {
  display: inline-block;
  transform: rotate(6deg);
  margin-left: 0.035em;
}
.market-info {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.32rem;
}
.quote-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
}
.market-state {
  font-size: 0.84rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  letter-spacing: 0.025em;
}
.market-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9d8d;
}
.market-state[data-state="live"] i {
  background: #589137;
  box-shadow: 0 0 0 3px #dceac9;
}
.market-state[data-state="late"] i {
  background: #ac6f20;
}
.market-state[data-state="closed"] i {
  background: #667763;
}
#quote-time {
  font:
    0.78rem/1.5 var(--mono),
    var(--sans);
  color: var(--muted);
  white-space: nowrap;
}
.icon-btn {
  height: 36px;
  width: 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover {
  background: #e9eedd;
}
.refresh {
  width: 38px;
  height: 38px;
}
.refresh.busy .icon {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  min-height: 285px;
  border: 1px solid #1c2a20;
  border-radius: 17px;
  background: #1c2b22;
  color: #f6f8ed;
  --pnl-ink: #c7f17b;
  --pnl-wash: #344730;
  --pnl-line: #506449;
}
.hero[data-tone="gain"] {
  --pnl-ink: #ffa689;
  --pnl-wash: #4b3931;
  --pnl-line: #725244;
}
.hero[data-tone="flat"] {
  --pnl-ink: #f6f8ed;
  --pnl-wash: #3c493f;
  --pnl-line: #5d6c60;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #1c2b22 0%,
      #1c2b22 38%,
      rgba(28, 43, 34, 0.75) 55%,
      transparent 78%
    ),
    repeating-linear-gradient(0deg, transparent 0 24px, #b9dcb810 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, #b9dcb810 24px 25px),
    radial-gradient(ellipse at 80% 52%, #3b5032 0%, #243b2d 36%, #1c2b22 69%);
}
.hero-text {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 1.75rem 0.3rem 1.75rem 2.6rem;
  min-width: 0;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.radio-icon {
  display: grid;
  place-items: center;
  color: #c5ec88;
}
.radio-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.65;
}
.hero-label h2 {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.07em;
}
.currency {
  border: 1px solid #647363;
  border-radius: 4px;
  padding: 0.07rem 0.28rem;
  font: 600 0.68rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  color: #d0d9cb;
}
.profit-number {
  font: 700 clamp(4.7rem, 7.3vw, 7rem) / 0.97 var(--display);
  color: var(--pnl-ink);
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  margin: 0.45rem 0 0.82rem;
  white-space: nowrap;
}
.return-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #d3dbcf;
  font-size: 0.86rem;
  font-weight: 500;
}
.return-badge {
  display: inline-flex;
  gap: 0.32rem;
  align-items: center;
  border: 1px solid var(--pnl-line);
  border-radius: 6px;
  background: var(--pnl-wash);
  color: var(--pnl-ink);
  padding: 0.13rem 0.5rem;
  font: 700 1.02rem/1.5 var(--mono);
}
.return-badge .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.hero-fee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  margin-top: 0.45rem;
  color: #d1dbcd;
  font-size: 0.86rem;
}
.hero-fee button {
  padding: 0.14rem 0.42rem;
  border: 1px solid #668060;
  border-radius: 5px;
  color: #ebf8d7;
  background: #304332;
  font-size: 0.86rem;
  line-height: 1.45;
}
.hero-fee button:hover {
  background: #40593c;
}
.sub-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.22rem;
  padding-top: 0.85rem;
  border-top: 1px solid #51614f87;
  width: max-content;
  max-width: 100%;
  color: #edf3df;
  font-size: 0.91rem;
  font-weight: 550;
}
.sub-line > .icon {
  width: 1.08rem;
  height: 1.08rem;
  color: #c9dfaa;
}
.sub-line b {
  font-family: var(--mono);
  font-size: 0.94em;
  font-weight: 750;
  color: #ecf8cf;
}
.sub-line small {
  color: #b7c2b3;
  font-size: 0.74rem;
  font-weight: 400;
  margin-left: 0.3rem;
}
.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.portrait-print {
  position: absolute;
  right: 7%;
  bottom: -1.8%;
  height: 91%;
  aspect-ratio: 0.94;
  transform: rotate(3deg);
  background: #f6f5e9;
  border: 6px solid #eeeedd;
  border-bottom-width: 13px;
  box-shadow: 3px 7px 14px #101c144d;
}
.portrait-print::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 36%;
  width: 28%;
  height: 17px;
  background: #d8e6abaa;
  transform: rotate(-5deg);
}
.portrait-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.burst-dots {
  position: absolute;
  inset: 6% -5% 4% -3%;
  z-index: -1;
  background: radial-gradient(#b7d6844c 1.05px, transparent 1.35px);
  background-size: 6px 6px;
  mask-image: radial-gradient(ellipse at center, #000 13%, transparent 70%);
}
.speech {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 16%;
  max-width: 47%;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 0.18rem;
  padding: 0.48rem 0.83rem 0.58rem;
  background: #f6f4db;
  color: #253223;
  border: 2px solid #202c22;
  border-radius: 11px 11px 3px 11px;
  box-shadow: 2px 3px 0 #14241bbb;
  transform: rotate(-4deg);
  font-size: clamp(0.89rem, 1.14vw, 1.07rem);
  font-weight: 850;
  line-height: 1.42;
  text-align: left;
  text-wrap: balance;
}
.speech::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 14px;
  height: 13px;
  background: #f6f4db;
  border-bottom: 2px solid #202c22;
  border-right: 2px solid #202c22;
  transform: skew(22deg) rotate(29deg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.speech-label {
  display: flex;
  gap: 0.34rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #596353;
  letter-spacing: 0.03em;
}
.speech .icon {
  width: 0.75rem;
  height: 0.75rem;
}
.speech:hover {
  background: #fffce8;
}
.corner {
  position: absolute;
  pointer-events: none;
  width: 9px;
  height: 9px;
  opacity: 0.56;
}
.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: #a5bb94;
}
.corner::before {
  top: 4px;
  width: 9px;
  height: 1px;
}
.corner::after {
  left: 4px;
  width: 1px;
  height: 9px;
}
.top-left {
  top: 11px;
  left: 12px;
}
.bottom-right {
  bottom: 12px;
  right: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.45rem;
}
.stat,
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.stat {
  min-width: 0;
  padding: 1.04rem 1.35rem 0.98rem;
  position: relative;
}
.stat h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}
.stat-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  background: #eef3e5;
  color: #45613b;
  border: 1px solid #dce5d2;
  border-radius: 6px;
}
.stat-icon .icon {
  width: 1.02rem;
  height: 1.02rem;
  stroke-width: 1.75;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  line-height: 1;
  font: 700 clamp(2.1rem, 3.1vw, 2.95rem) / 1.04 var(--display);
  letter-spacing: -0.01em;
  margin: 0.36rem 0 0.25rem;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font: 600 0.88rem/1.4 var(--sans);
  color: #5c695d;
}
.stat-note {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
.day-amount {
  font-family: var(--mono);
  font-size: 0.96em;
  font-weight: 670;
  letter-spacing: -0.025em;
}
.day-amount.loss {
  color: #27693f;
}
.day-amount.gain {
  color: #a8392e;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  gap: 1.14rem;
  align-items: stretch;
}
.panel {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.panel-head h2,
.dialog-header h2 {
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.45;
}
.panel-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.12rem;
}
.chart-panel {
  padding: 1.3rem 1.4rem 0.83rem;
}
.chart-head {
  align-items: flex-start;
}
.ranges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #eef1e8;
  border: 1px solid #dce1d3;
  border-radius: 7px;
  padding: 3px;
  flex-shrink: 0;
}
.ranges button {
  line-height: 1.35;
  background: transparent;
  font-size: 0.81rem;
  font-weight: 600;
  color: #626d60;
  padding: 0.29rem 0.54rem;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
}
.ranges button[aria-pressed="true"] {
  background: #fcfff5;
  color: #2a4029;
  border-color: #c5cfba;
  box-shadow: 0 1px 2px #30412713;
}
.ranges button:hover {
  color: #274422;
  background: #f8faef;
}
.plot {
  position: relative;
  min-height: 168px;
  height: clamp(185px, 16.5vw, 225px);
  margin: 0.7rem 0 0.4rem;
  flex: 1;
  outline-offset: 0 !important;
  touch-action: pan-y;
}
.plot-svg {
  width: 100%;
  height: 100%;
  min-height: 168px;
  overflow: visible;
  display: block;
}
.plot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem;
  background: var(--paper);
}
.plot-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 0.36rem 0.55rem;
  background: #233428;
  color: #f6f8eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px #15251935;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: nowrap;
}
.plot-tip b {
  display: block;
  font: 700 0.9rem var(--mono);
  color: var(--lime);
  margin-top: 1px;
}
.chart-foot,
.meme-foot {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.chart-foot {
  border-top: 1px solid #e4e7dc;
  padding-top: 0.58rem;
}
.chart-foot > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.legend-line {
  width: 16px;
  height: 3px;
  background: var(--chart-color, #496c37);
  border-radius: 2px;
}
.meme-panel {
  background: #fbfbf1;
}
.meme-head {
  padding: 1.12rem 1.05rem 0.73rem;
}
.meme-head h2 {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}
.meme-head h2 .icon {
  width: 1.33rem;
  height: 1.33rem;
  color: #49613a;
}
.shuffle {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  border-radius: 5px;
  background: transparent;
  color: #56664e;
  font-weight: 650;
  font-size: 0.78rem;
  padding: 0.25rem 0.32rem;
  white-space: nowrap;
}
.shuffle .icon {
  width: 1rem;
  height: 1rem;
}
.shuffle:hover {
  background: #e8efd8;
}
.meme {
  margin: 0 1.05rem;
  background: #f6f5e9;
  border: 1px solid #c4cbb6;
  border-radius: 7px;
  overflow: hidden;
}
.meme-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(135px, 13vw, 175px);
  overflow: hidden;
  border-bottom: 1px solid #c4cbb6;
}
#meme-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
}
#meme-portrait {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.meme-controls {
  display: flex;
  gap: 0.11rem;
  align-items: center;
}
.meme-controls button {
  min-width: 29px;
  min-height: 29px;
  justify-content: center;
}
.price-panel .plot {
  min-height: 180px;
  height: clamp(185px, 16vw, 220px);
}
.pnl-panel {
  --gain-line: #b14837;
  --loss-line: #317246;
  --flat-line: #526257;
  padding: 1.35rem 1.55rem 0.95rem;
  margin-bottom: 1.14rem;
  border-color: #adbda6;
  border-top: 3px solid #3c6145;
}
.pnl-panel .chart-head {
  align-items: center;
  flex-wrap: wrap;
}
.pnl-panel .panel-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.58rem);
}
.pnl-panel .ranges button {
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
}
.pnl-panel .ranges button[aria-pressed="true"] {
  color: #fffef3;
  background: #2d4835;
  border-color: #2d4835;
}
.closing-board {
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.86fr) minmax(0, 2.7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "latest plot" "extremes plot";
  gap: 1.05rem 1.45rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid #dfe6d9;
}
.closing-summary {
  grid-area: latest;
  align-self: start;
  padding-top: 0.35rem;
}
#closing-label,
.closing-extremes dt {
  color: #526052;
  font-size: 0.875rem;
  font-weight: 650;
}
.closing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.36rem;
  margin-top: 0.14rem;
}
.closing-amount strong {
  font: 700 clamp(2.55rem, 4vw, 3.7rem) / 1.05 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.closing-amount small {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
}
.closing-extremes {
  grid-area: extremes;
  display: grid;
  align-content: start;
  gap: 0.82rem;
}
.closing-extremes > div {
  padding-inline-start: 0.65rem;
  border-inline-start: 2px solid #c4cebd;
}
.closing-extremes dt,
.pnl-key,
.pnl-key > span,
.pnl-source,
.pnl-foot {
  display: flex;
  align-items: center;
  gap: 0.52rem;
}
.closing-extremes time {
  color: var(--muted);
  font: 400 0.8rem var(--mono);
}
.closing-extremes dd {
  font:
    650 1.05rem/1.5 var(--mono),
    var(--sans);
  font-variant-numeric: tabular-nums;
}
.closing-board [data-tone="loss"] {
  color: var(--loss-line);
}
.closing-board [data-tone="gain"] {
  color: var(--gain-line);
}
.closing-board [data-tone="flat"] {
  color: var(--flat-line);
}
.pnl-panel .plot {
  grid-area: plot;
  margin: 0;
  min-width: 0;
  height: clamp(225px, 20vw, 272px);
  align-self: center;
}
.pnl-panel .plot-tip {
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
}
.pnl-panel .plot-tip small {
  display: block;
  font: 400 0.75rem/1.4 var(--sans);
  color: #d3dcce;
  margin-top: 2px;
}
.pnl-panel .plot-tip[data-tone="gain"] b {
  color: #ffad94;
}
.pnl-panel .plot-tip[data-tone="loss"] b {
  color: #c4ed95;
}
.pnl-panel .plot-tip[data-tone="flat"] b {
  color: #fffefa;
}
.pnl-foot {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid #dfe6d9;
  color: var(--muted);
  font-size: 0.82rem;
}
.pnl-key {
  gap: 1rem;
}
.pnl-key > span {
  gap: 0.35rem;
}
.pnl-key i {
  width: 1rem;
  height: 3px;
  border-radius: 3px;
}
.key-gain {
  background: var(--gain-line);
}
.key-loss {
  background: var(--loss-line);
}
.pnl-source {
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
}
.pnl-source > span + span {
  padding-inline-start: 0.7rem;
  border-inline-start: 1px solid var(--rule);
}

.meme figcaption {
  padding: 0.52rem 0.7rem 0.55rem;
}
.meme figcaption strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.meme figcaption p {
  font-size: 0.81rem;
  color: #5b6455;
  line-height: 1.55;
  margin-top: 0.12rem;
  text-wrap: pretty;
}
.meme-foot {
  padding: 0.55rem 1.1rem 0.76rem;
  margin-top: auto;
}
.meme-foot span {
  padding-left: 0.55rem;
  border-left: 2px solid #91ab74;
}
.meme-foot a {
  text-decoration-color: #aab09e;
}
.meme-foot a:hover {
  color: #2a622e;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0 1.5rem;
  padding-top: 1.08rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: #646f62;
}
.footer-sign {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}
.footer-sign img {
  border-radius: 5px;
  filter: grayscale(0.45);
  opacity: 0.86;
}
.footer-sign strong {
  font-size: 0.85rem;
  color: #465143;
  font-weight: 720;
}
.footer-sign span {
  font-size: 0.76rem;
  margin-left: 0.15rem;
}
.method {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  padding: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.method .icon {
  width: 1rem;
  height: 1rem;
}
.method:hover {
  text-decoration: underline;
}
dialog {
  border: 1px solid #43513d;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  max-width: min(530px, calc(100vw - 2rem));
  width: 100%;
  max-height: min(85vh, 790px);
  padding: 0;
  box-shadow: 0 22px 90px #0d221941;
}
dialog::backdrop {
  background: #12201988;
  backdrop-filter: blur(2px);
}
.dialog-inner {
  padding: 1.45rem 1.55rem;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.dialog-header h2 {
  font-size: 1.36rem;
}
.dialog-inner p,
.dialog-inner label {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #4f594d;
}
.dialog-inner p + p {
  margin-top: 0.6rem;
}
.dialog-inner h3 {
  font-size: 1.03rem;
  margin: 1.1rem 0 0.35rem;
}
.dialog-inner a {
  color: #3c6631;
}
.formula {
  margin: 0.8rem 0;
  background: #eaf1da;
  border: 1px solid #cdd9ba;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  font-size: 0.91rem;
  font-weight: 730;
}
.bill {
  margin: 0.8rem 0;
}
.bill > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9rem;
}
.bill dd {
  font-weight: 750;
}
.fee-report {
  display: grid;
  gap: 0.12rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: #eaf1e3;
  border-inline-start: 3px solid #4f7545;
}
.fee-report strong {
  color: #2d6640;
  font: 700 2.7rem/1.05 var(--display);
  font-variant-numeric: tabular-nums;
}
.fee-report small,
.fee-report > span {
  font: 600 0.85rem/1.4 var(--sans);
}
.fee-dialog-inner .report-explanation {
  margin-top: 0.6rem;
}
.fee-form {
  margin-top: 0.5rem;
}
.fee-form > label:first-child {
  font-weight: 650;
}
.fee-input-row,
.discount-input,
.fee-check {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}
.fee-input-row {
  margin: 0.15rem 0 0.28rem;
}
.discount-input {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border: 1px solid #a1b199;
  border-radius: 6px;
  background: #fff;
}
.discount-input:focus-within {
  outline: 2px solid #59804c;
}
.discount-input input {
  width: 4rem;
  padding: 0.16rem;
  border: 0;
  font: 600 1rem var(--mono);
  outline: none;
}
.discount-input span {
  color: var(--muted);
  font-size: 0.875rem;
}
.fee-dialog-inner #discount-hint,
.fee-dialog-inner .fee-note {
  font-size: 0.83rem;
}
.scenario-price {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}
.scenario-price label {
  font-weight: 650;
}
.fee-scenario-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 650;
}
.fee-scenario-balance strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
}
.fee-scenario-balance [data-tone="loss"] {
  color: #2d6640;
}
.fee-scenario-balance [data-tone="gain"] {
  color: #a53d30;
}
.fee-check {
  margin-top: 0.6rem;
  cursor: pointer;
}
.fee-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #315b3b;
}
.fee-bill small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.fee-bill dd {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fee-bill > div:last-child {
  border-bottom-style: solid;
  font-weight: 750;
}
.source-links {
  font-size: 0.83rem !important;
}
#share-url {
  display: block;
  width: 100%;
  margin: 0.3rem 0 1rem;
  padding: 0.56rem 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background: white;
  color: var(--ink);
}
.toast {
  position: fixed;
  z-index: 5;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 0.95rem;
  border-radius: 7px;
  background: #243629;
  color: white;
  box-shadow: 0 3px 15px #12201938;
  max-width: calc(100vw - 2rem);
  font-size: 0.9rem;
  text-align: center;
}
@media (min-width: 1450px) {
  .page-intro {
    margin-top: 2.5rem;
  }
  .hero {
    min-height: 306px;
  }
}
@media (max-width: 980px) {
  .container {
    width: calc(100% - 4rem);
  }
  .hero {
    grid-template-columns: 1.22fr 1fr;
    min-height: 267px;
  }
  .hero-text {
    padding-left: 1.9rem;
  }
  .portrait-print {
    right: 4%;
    height: 83%;
  }
  .speech {
    left: -1%;
    top: 11%;
    max-width: 48%;
    font-size: 0.86rem;
    padding: 0.4rem 0.54rem;
  }
  .lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.63fr);
    gap: 0.85rem;
  }
  .chart-panel {
    padding: 1.1rem 1rem 0.8rem;
  }
  .meme-head {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .meme {
    margin: 0 0.8rem;
  }
  .ranges button {
    padding: 0.27rem 0.42rem;
  }
  .sub-line small {
    margin-left: 0;
  }
  .stat {
    padding: 1rem 1.05rem;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 2.25rem);
  }
  .nav-inner {
    height: 3.8rem;
  }
  .page-intro {
    margin: 1.45rem 0 1.1rem;
  }
  .hero {
    min-height: 250px;
  }
  .hero-text {
    padding: 1.45rem 0.2rem 1.45rem 1.4rem;
  }
  .profit-number {
    font-size: clamp(3.65rem, 8.9vw, 4.5rem);
  }
  .hero-label h2 {
    font-size: 0.97rem;
  }
  .sub-line {
    max-width: 20rem;
    font-size: 0.81rem;
    gap: 0.28rem 0.4rem;
  }
  .sub-line small {
    font-size: 0.7rem;
  }
  .stats {
    gap: 0.6rem;
    margin: 0.65rem 0 0.95rem;
  }
  .stat {
    padding: 0.83rem 0.8rem;
  }
  .stat h2 {
    font-size: 0.84rem;
  }
  .lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 0.65rem;
  }
  .chart-head {
    flex-wrap: wrap;
  }
  .closing-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "latest" "plot" "extremes";
    gap: 0.6rem;
    margin-top: 0.72rem;
    padding-top: 0.65rem;
  }
  .closing-summary {
    padding-top: 0;
  }
  .closing-extremes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pnl-panel .plot {
    height: 215px;
  }
  .plot {
    min-height: 160px;
  }
  .chart-foot {
    font-size: 0.72rem;
  }
  .meme-head h2,
  .panel-head h2 {
    font-size: 1.1rem;
  }
  .meme figcaption strong {
    font-size: 0.94rem;
  }
  .meme-visual {
    height: 125px;
  }
  .wordmark {
    font-size: 1.24rem;
  }
  .wordmark img {
    width: 33px;
    height: 33px;
  }
}
@media (max-width: 630px) {
  .container {
    width: calc(100% - 2rem);
  }
  .nav-inner nav {
    gap: 0.7rem;
  }
  .twitch-link {
    gap: 0.3rem;
  }
  .twitch-link span,
  .twitch-link .twitch-icon,
  .nav-line {
    display: none;
  }
  .twitch-link img {
    height: 31px;
    width: 31px;
  }
  .share-btn {
    min-height: 34px;
    font-size: 0.83rem;
    padding: 0.35rem 0.65rem;
  }
  .market-info {
    gap: 0.45rem;
    margin: 0;
  }
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.42rem 0 0.95rem;
  }
  .quote-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.54rem;
  }
  .market-state {
    font-size: 0.79rem;
  }
  #quote-time {
    font-size: 0.73rem;
  }
  .refresh {
    height: 26px;
    width: 26px;
  }
  .refresh .icon {
    width: 0.94rem;
    height: 0.94rem;
  }
  .eyebrow {
    font-size: 0.75rem;
  }
  h1 {
    font-size: clamp(2.12rem, 8.2vw, 2.9rem);
    margin-top: 0.46rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-text {
    padding: 1.25rem 1.15rem 0.5rem;
    width: 100%;
  }
  .profit-number {
    font-size: clamp(3.6rem, 12vw, 5.2rem);
    margin: 0.63rem 0 0.6rem;
  }
  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: 9.35rem;
  }
  .portrait-print {
    right: 6.5%;
    height: 9.35rem;
    bottom: -0.2rem;
    border-width: 4px;
    border-bottom-width: 7px;
  }
  .portrait-print::before {
    top: -9px;
    height: 12px;
  }
  .speech {
    left: 1.1rem;
    bottom: 1.65rem;
    top: auto;
    max-width: calc(100% - 11.6rem);
    font-size: 0.92rem;
    padding: 0.42rem 0.65rem;
  }
  .hero-grid {
    background:
      linear-gradient(
        100deg,
        #1c2b22 2%,
        #1c2b22 25%,
        rgba(28, 43, 34, 0.21) 79%
      ),
      repeating-linear-gradient(0deg, transparent 0 21px, #b9dcb811 21px 22px),
      repeating-linear-gradient(90deg, transparent 0 21px, #b9dcb811 21px 22px),
      #2f4432;
  }
  .return-row {
    font-size: 0.76rem;
    gap: 0.45rem;
  }
  .return-badge {
    font-size: 0.9rem;
  }
  .hero-label h2 {
    font-size: 0.94rem;
  }
  .sub-line {
    max-width: 100%;
    margin-top: 0.85rem;
    padding-top: 0.62rem;
    line-height: 1.6;
    display: block;
  }
  .sub-line > .icon {
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.25rem;
    vertical-align: -0.12rem;
  }
  .sub-line small {
    display: block;
  }
  .stats {
    gap: 0.43rem;
  }
  .stat {
    padding: 0.7rem 0.55rem;
  }
  .stat h2 {
    font-size: 0.77rem;
    gap: 0.24rem;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: clamp(1.72rem, 6.5vw, 2.2rem);
    gap: 0.16rem;
    margin: 0.35rem 0 0.25rem;
  }
  .stat-value small {
    font-size: 0.74rem;
  }
  .stat-note {
    font-size: 0.73rem;
    line-height: 1.5;
    text-wrap: pretty;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .chart-head {
    flex-wrap: wrap;
  }
  .chart-panel {
    padding: 1.05rem 0.85rem 0.7rem;
  }
  .plot {
    height: 180px;
    flex: none;
    min-height: 162px;
  }
  .meme-head {
    padding: 0.86rem 0.85rem 0.65rem;
  }
  .meme {
    margin: 0 0.85rem;
  }
  .meme-visual {
    height: auto;
    aspect-ratio: 2.45;
    object-fit: cover;
  }
  .meme figcaption {
    padding: 0.58rem 0.75rem;
  }
  .meme figcaption strong {
    font-size: 1.04rem;
  }
  .meme-foot {
    padding: 0.6rem 0.9rem 0.75rem;
  }
  .footer {
    margin: 1.25rem 0 0.9rem;
    gap: 0.3rem;
  }
  .footer-sign {
    gap: 0.28rem;
  }
  .footer-sign span,
  .method {
    font-size: 0.73rem;
  }
  .footer-sign img {
    height: 19px;
    width: 19px;
  }
  .toast {
    bottom: 1rem;
  }
  .dialog-inner {
    padding: 1.2rem;
  }
}
@media (max-width: 355px) {
  .container {
    width: calc(100% - 1.4rem);
  }
  .wordmark {
    gap: 0.4rem;
    font-size: 1.12rem;
  }
  .hero-art {
    height: 8.7rem;
  }
  .ranges button {
    font-size: 0.74rem;
    padding: 0.24rem 0.32rem;
  }
  .stat h2 {
    font-size: 0.72rem;
  }
  .footer-sign span {
    display: none;
  }
  .hero-text {
    padding-left: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
