/* ==========================================================================
   opti — paper & ink arcade. cream-pink paper, hand-drawn borders, hot pink.
   ========================================================================== */

:root {
  --paper: #faeae1;
  --paper-deep: #f3d8cf;
  --cream: #fff6ec;
  --ink: #29141b;
  --ink-soft: #5c3a44;
  --pink: #e23a63;
  --pink-hot: #d91f5c;
  --pink-deep: #a81c45;
  --pink-wash: #f6c8d2;
  --green: #6e9a3f;
  --green-deep: #52772c;
  --red: #c92448;

  --font-display: "Shantell Sans", cursive;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 225px 15px 255px 15px;
  --shadow-ink: 5px 6px 0 rgba(41, 20, 27, 0.9);
  --shadow-ink-sm: 3px 4px 0 rgba(41, 20, 27, 0.9);
  --border-ink: 2.5px solid var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  /* paper grain + faint halftone */
  background-image:
    radial-gradient(rgba(41, 20, 27, 0.055) 1px, transparent 1.5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 26px 26px, 180px 180px;
}

.mono { font-family: var(--font-mono); }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.shell-narrow { max-width: 860px; }

::selection { background: var(--pink); color: var(--cream); }

/* ==========================================================================
   Buttons & chips
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: var(--border-ink);
  border-radius: 14px 18px 15px 19px / 19px 14px 18px 15px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-ink-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  user-select: none;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 rgba(41, 20, 27, 0.9); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(41, 20, 27, 0.9); }
.btn-small { font-size: 0.83rem; padding: 7px 14px; }
.btn-big { font-size: 1.05rem; padding: 13px 26px; }
.btn-block { width: 100%; }
.btn-pink { background: var(--pink); color: var(--cream); }
.btn-pink:hover { background: var(--pink-hot); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; box-shadow: none; border-style: dashed; }
.btn-ghost:hover { background: var(--cream); box-shadow: var(--shadow-ink-sm); }
.btn-outline { background: var(--cream); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.chip {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--border-ink);
  border-radius: 999px;
  background: var(--cream);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  box-shadow: var(--shadow-ink-sm);
}
.chip-ink { color: var(--pink); }
.chip-unit { font-size: 0.68rem; color: var(--ink-soft); }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 234, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--border-ink);
}
.topbar-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: var(--border-ink);
  box-shadow: 2px 3px 0 rgba(41, 20, 27, 0.85);
  transition: transform 0.25s ease;
}
.brand:hover .brand-icon { transform: rotate(-12deg) scale(1.06); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; }
.brand-dot { color: var(--pink); }

.mainnav { display: flex; gap: 20px; margin-left: 8px; flex: 1; }
.mainnav a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--pink-hot); border-bottom-color: var(--pink-hot); }
.nav-tg { color: var(--pink-hot) !important; }

.fine-link { color: var(--pink-hot); font-weight: 700; text-decoration: none; border-bottom: 1.5px dashed var(--pink-hot); }
.fine-link:hover { color: var(--pink-deep); }
.footer-tg {
  display: inline-block; margin-top: 6px; margin-right: 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--pink-wash);
  text-decoration: none; border-bottom: 1.5px dashed rgba(246, 200, 210, 0.5);
}
.footer-tg:hover { color: var(--cream); }

.topbar-user { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 58px;
  overflow: hidden;
}
.hero::before {
  /* big soft pink glow behind the art */
  content: "";
  position: absolute;
  right: -180px; top: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(226, 58, 99, 0.28), transparent 65%);
  pointer-events: none;
}
.hero::after {
  /* halftone dot cluster bottom-left */
  content: "";
  position: absolute;
  left: -60px; bottom: -40px;
  width: 300px; height: 220px;
  background-image: radial-gradient(var(--pink) 2.1px, transparent 2.6px);
  background-size: 17px 17px;
  opacity: 0.24;
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  position: relative;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream);
  background: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: rise 0.6s ease both;
}
.hero-kicker::first-letter { color: #7fe08a; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  animation: rise 0.6s 0.08s ease both;
}
.hl { position: relative; display: inline-block; padding: 0 6px; }
.hl-green { color: var(--cream); background: var(--green); border-radius: 12px 5px 14px 6px / 6px 14px 5px 12px; transform: rotate(-1.5deg); box-shadow: 3px 4px 0 rgba(41,20,27,.85); }
.hl-pink { color: var(--cream); background: var(--pink); border-radius: 5px 14px 6px 12px / 14px 6px 12px 5px; transform: rotate(1.2deg); box-shadow: 3px 4px 0 rgba(41,20,27,.85); }

.hero-sub {
  font-size: 1.12rem;
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  animation: rise 0.6s 0.16s ease both;
}
.hero-sub strong { color: var(--ink); }
.payout-tag {
  background: var(--ink); color: #ffd44d;
  padding: 1px 7px; border-radius: 7px;
  font-weight: 800; font-size: 0.95em;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: rise 0.6s 0.24s ease both; }
.hero-fine { margin-top: 18px; font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.05em; animation: rise 0.6s 0.32s ease both; }

/* banner as taped polaroid */
.hero-art { animation: rise 0.7s 0.2s ease both; }
.polaroid {
  position: relative;
  background: var(--cream);
  border: var(--border-ink);
  border-radius: 6px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-ink);
  transform: rotate(2.4deg);
  transition: transform 0.3s ease;
}
.polaroid:hover { transform: rotate(0.6deg) scale(1.015); }
.polaroid img { width: 100%; display: block; border: 2px solid var(--ink); border-radius: 4px; }
.polaroid-caption { text-align: center; font-size: 0.72rem; padding-top: 9px; color: var(--ink-soft); }
.tape {
  position: absolute; top: -14px; width: 92px; height: 30px;
  background: rgba(246, 200, 210, 0.85);
  border: 1.5px solid rgba(41, 20, 27, 0.35);
  z-index: 2;
}
.tape-l { left: 8%; transform: rotate(-8deg); }
.tape-r { right: 8%; transform: rotate(6deg); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker-wrap {
  border-top: var(--border-ink);
  border-bottom: var(--border-ink);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}
.ticker { display: inline-block; animation: marquee 45s linear infinite; will-change: transform; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker .tk { font-family: var(--font-mono); font-size: 0.8rem; margin-right: 34px; }
.ticker .tk .sym { font-weight: 800; color: var(--pink-wash); }
.ticker .up { color: #8be08a; }
.ticker .down { color: #ff7d9b; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 64px 0; position: relative; }
.section-alt { background: var(--paper-deep); border-top: var(--border-ink); border-bottom: var(--border-ink); }

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.section-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cream);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 2px 3px 0 rgba(41, 20, 27, 0.85);
  transform: rotate(-6deg);
}
.updated { margin-left: auto; font-size: 0.72rem; color: var(--ink-soft); }

/* tabs */
.tabs { display: flex; gap: 8px; }
.tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 18px;
  background: transparent;
  border: var(--border-ink);
  border-style: dashed;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.tab:hover { color: var(--ink); background: var(--cream); }
.tab.active {
  background: var(--ink);
  color: var(--cream);
  border-style: solid;
  box-shadow: var(--shadow-ink-sm);
  transform: rotate(-1deg);
}

/* ==========================================================================
   Market table
   ========================================================================== */
.table-card {
  background: var(--cream);
  border: var(--border-ink);
  border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px;
  box-shadow: var(--shadow-ink);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }

.mkt-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.mkt-table thead th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-align: left;
  padding: 13px 14px 11px;
  border-bottom: var(--border-ink);
  background: var(--pink-wash);
}
.mkt-table tbody td {
  padding: 12px 14px;
  border-bottom: 1.5px dashed rgba(41, 20, 27, 0.22);
  vertical-align: middle;
}
.mkt-table tbody tr { transition: background 0.12s ease; cursor: pointer; }
.mkt-table tbody tr:hover { background: rgba(226, 58, 99, 0.07); }
.mkt-table tbody tr:last-child td { border-bottom: none; }

.col-rank { width: 40px; }
.col-act { width: 172px; }
.rank { font-family: var(--font-mono); font-weight: 700; color: var(--ink-soft); font-size: 0.82rem; }

.mkt-name { display: flex; align-items: center; gap: 11px; }
.mkt-logo {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: var(--pink-wash);
  flex-shrink: 0;
}
.mkt-logo-fallback {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--pink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mkt-sym { font-family: var(--font-mono); font-weight: 800; font-size: 0.92rem; }
.mkt-fullname { font-size: 0.72rem; color: var(--ink-soft); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.price-cell { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
.price-cell sub { font-size: 0.62em; }
.ch { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; }
.up { color: var(--green-deep); }
.down { color: var(--red); }
.vol-cell { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.spark-canvas { display: block; }

.act-btns { display: flex; gap: 7px; justify-content: flex-end; }
.mini-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px 6px 11px 7px / 7px 11px 6px 10px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(41, 20, 27, 0.85);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.mini-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 rgba(41, 20, 27, 0.85); }
.mini-btn:active { transform: translate(1px, 2px); box-shadow: 0 1px 0 rgba(41, 20, 27, 0.85); }
.mini-call { background: var(--green); color: var(--cream); }
.mini-put { background: var(--pink); color: var(--cream); }

.loading-cell { text-align: center; padding: 40px !important; color: var(--ink-soft); font-size: 0.82rem; }

/* ==========================================================================
   Positions
   ========================================================================== */
.pos-stats { font-size: 0.74rem; color: var(--ink-soft); margin-left: auto; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }

.pos-card {
  background: var(--cream);
  border: var(--border-ink);
  border-radius: 14px 18px 13px 19px / 18px 13px 19px 14px;
  box-shadow: var(--shadow-ink-sm);
  padding: 14px 16px;
  transform: rotate(var(--rot, 0deg));
}
.pos-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pos-side {
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px; color: var(--cream);
}
.pos-side.CALL { background: var(--green); }
.pos-side.PUT { background: var(--pink); }
.pos-sym { font-family: var(--font-mono); font-weight: 800; }
.pos-countdown { margin-left: auto; font-family: var(--font-mono); font-weight: 800; font-size: 0.85rem; color: var(--pink-deep); }
.pos-detail { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); display: grid; gap: 3px; }
.pos-detail b { color: var(--ink); }
.pos-live { font-weight: 800; }
.pos-live.winning { color: var(--green-deep); }
.pos-live.losing { color: var(--red); }

.pos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px;
  border: 2.5px dashed rgba(41, 20, 27, 0.35);
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pos-history { margin-top: 22px; }
.pos-history summary {
  cursor: pointer; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
}
.pos-history summary:hover { color: var(--pink-hot); }
.pos-table-wrap { margin-top: 12px; overflow-x: auto; }
.pos-table-wrap table { width: 100%; border-collapse: collapse; background: var(--cream); border: var(--border-ink); border-radius: 12px; }
.pos-table-wrap th, .pos-table-wrap td { font-family: var(--font-mono); font-size: 0.74rem; text-align: left; padding: 8px 12px; border-bottom: 1px dashed rgba(41,20,27,.2); }
.pos-table-wrap th { background: var(--pink-wash); font-size: 0.64rem; text-transform: uppercase; letter-spacing: .12em; }
.st-won { color: var(--green-deep); font-weight: 800; }
.st-lost { color: var(--red); font-weight: 800; }
.st-push { color: var(--ink-soft); font-weight: 800; }

/* ==========================================================================
   Leaderboard
   ========================================================================== */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft);
  text-align: left; padding: 13px 16px 11px;
  border-bottom: var(--border-ink); background: var(--pink-wash);
}
.lb-table td { padding: 11px 16px; border-bottom: 1.5px dashed rgba(41, 20, 27, 0.22); font-size: 0.9rem; }
.lb-table tr:last-child td { border-bottom: none; }
.lb-table .mono-cell { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; }
.lb-medal { font-size: 1.05rem; }
.lb-me { background: rgba(226, 58, 99, 0.09); }

/* ==========================================================================
   How it works
   ========================================================================== */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card {
  background: var(--cream);
  border: var(--border-ink);
  border-radius: var(--wobble-2);
  box-shadow: var(--shadow-ink);
  padding: 26px 24px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s ease;
}
.how-card:hover { transform: rotate(0deg) translateY(-4px); }
.how-num {
  font-weight: 800; font-size: 0.78rem; color: var(--cream);
  background: var(--ink); border-radius: 50%;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.how-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 9px; }
.how-card p { font-size: 0.92rem; color: var(--ink-soft); }
.how-card .up { font-weight: 800; }
.how-card .down { font-weight: 800; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: var(--border-ink); background: var(--ink); color: var(--cream); padding: 38px 0; }
.footer-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid var(--cream); }
.footer .brand-word { color: var(--cream); }
.footer-tag { font-size: 0.7rem; color: var(--pink-wash); letter-spacing: 0.08em; }
.footer-note { margin-left: auto; font-size: 0.68rem; color: rgba(255, 246, 236, 0.55); text-align: right; line-height: 1.7; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(41, 20, 27, 0.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px 26px 18px 28px / 26px 18px 28px 20px;
  box-shadow: 8px 10px 0 rgba(41, 20, 27, 0.9);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 26px 24px;
  animation: popIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal-small { width: min(400px, 100%); text-align: center; }
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(14px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-weight: 800; font-size: 0.9rem;
  width: 32px; height: 32px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--cream); cursor: pointer;
  box-shadow: 2px 2px 0 rgba(41, 20, 27, 0.85);
}
.modal-close:hover { background: var(--pink); color: var(--cream); }

.trade-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-right: 40px; }
.trade-sym { font-weight: 800; font-size: 1.35rem; }
.trade-name { font-size: 0.82rem; color: var(--ink-soft); }
.trade-price { margin-left: auto; font-weight: 800; font-size: 1.15rem; color: var(--pink-deep); }

.chart-frame {
  position: relative;
  border: var(--border-ink);
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: 16px;
  overflow: hidden;
}
.chart-frame canvas { display: block; width: 100%; height: 220px; }
.chart-tfs { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; z-index: 2; }
.tf {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); cursor: pointer; color: var(--ink-soft);
}
.tf.active { background: var(--ink); color: var(--cream); }

.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.side {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  padding: 13px 10px;
  border: var(--border-ink);
  border-radius: 13px 17px 12px 18px / 17px 12px 18px 13px;
  background: var(--cream); color: var(--ink-soft);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all 0.12s ease;
  opacity: 0.65;
}
.side-hint { font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.06em; }
.side.active { opacity: 1; box-shadow: var(--shadow-ink-sm); transform: translateY(-2px); }
.side-call.active { background: var(--green); color: var(--cream); }
.side-put.active { background: var(--pink); color: var(--cream); }

.trade-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.trade-label {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-soft);
  padding-top: 12px; width: 52px; flex-shrink: 0;
}
.stake-box { flex: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stake-box input {
  font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem;
  width: 130px; padding: 9px 12px;
  border: var(--border-ink); border-radius: 10px;
  background: var(--cream); color: var(--ink);
}
.stake-box input:focus { outline: 3px solid rgba(226, 58, 99, 0.35); }
.stake-chips, .expiry-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.stake-chips button, .expiry-chips button {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  padding: 6px 12px;
  border: 2px dashed var(--ink); border-radius: 999px;
  background: transparent; cursor: pointer; color: var(--ink-soft);
}
.stake-chips button:hover, .expiry-chips button:hover { background: var(--cream); color: var(--ink); }
.expiry-chips button.active { background: var(--ink); color: var(--cream); border-style: solid; }
.expiry-chips { padding-top: 8px; }

.trade-summary {
  font-size: 0.78rem; text-align: center;
  background: var(--pink-wash);
  border: 2px dashed var(--pink-deep);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--pink-deep);
  font-weight: 700;
}

.join-logo { width: 84px; height: 84px; border-radius: 50%; border: var(--border-ink); box-shadow: var(--shadow-ink-sm); margin: 4px auto 14px; display: block; }
.join-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 8px; }
.join-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.name-input {
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  width: 100%; padding: 11px 14px; margin-bottom: 14px;
  border: var(--border-ink); border-radius: 12px;
  background: var(--cream); text-align: center;
}
.name-input:focus { outline: 3px solid rgba(226, 58, 99, 0.35); }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  background: var(--ink); color: var(--cream);
  border: 2.5px solid var(--cream);
  outline: 2.5px solid var(--ink);
  border-radius: 14px 10px 15px 9px / 10px 15px 9px 14px;
  box-shadow: 4px 5px 0 rgba(41, 20, 27, 0.55);
  padding: 12px 18px;
  max-width: 320px;
  animation: toastIn 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), toastOut 0.3s ease 3.7s both;
}
.toast.win { background: var(--green-deep); }
.toast.lose { background: var(--pink-deep); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Mode toggle (practice / real)
   ========================================================================== */
.mode-toggle {
  display: inline-flex;
  border: var(--border-ink);
  border-radius: 999px;
  background: var(--cream);
  padding: 3px;
  box-shadow: var(--shadow-ink-sm);
}
.mode {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.12s ease;
}
.mode.active { background: var(--ink); color: var(--cream); }
.mode-real.active { background: var(--pink); }
.mode-soon { opacity: 0.75; }
.soon-tag {
  font-family: var(--font-mono); font-size: 0.55rem;
  background: var(--pink); color: var(--cream);
  border-radius: 999px; padding: 1px 6px; margin-left: 3px;
  vertical-align: middle;
}

/* ==========================================================================
   CA bar
   ========================================================================== */
.ca-bar {
  background: var(--pink-wash);
  border-bottom: var(--border-ink);
  padding: 8px 0;
}
.ca-bar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.72rem; }
.ca-label {
  font-weight: 800; color: var(--cream); background: var(--pink-deep);
  border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px;
}
.ca-addr {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  background: var(--cream); border: 2px dashed var(--pink-deep); border-radius: 8px;
  color: var(--pink-deep); padding: 4px 10px; cursor: copy;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.ca-addr:hover { background: var(--paper); }
.ca-link { font-weight: 700; color: var(--ink-soft); text-decoration: none; border-bottom: 1.5px dashed var(--ink-soft); }
.ca-link:hover { color: var(--pink-hot); border-bottom-color: var(--pink-hot); }

/* ==========================================================================
   Round bar + pools (trade modal)
   ========================================================================== */
.round-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.7rem; color: var(--ink-soft);
  border: 2px dashed rgba(41, 20, 27, 0.3); border-radius: 10px;
  padding: 7px 12px; margin-bottom: 14px;
}
.round-phase {
  font-weight: 800; color: var(--cream); background: var(--green);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 0.62rem;
}
.round-then { margin-left: auto; opacity: 0.7; }

.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pool {
  font-family: var(--font-display);
  padding: 12px 10px;
  border: var(--border-ink);
  border-radius: 13px 17px 12px 18px / 17px 12px 18px 13px;
  background: var(--cream); color: var(--ink-soft);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all 0.12s ease;
  opacity: 0.65;
}
.pool-side { font-weight: 800; font-size: 1rem; }
.pool-amt { font-family: var(--font-mono); font-weight: 800; font-size: 0.85rem; }
.pool-mult {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem;
  background: var(--ink); color: #ffd44d; border-radius: 999px; padding: 1px 8px;
}
.pool.active { opacity: 1; box-shadow: var(--shadow-ink-sm); transform: translateY(-2px); }
.pool-call.active { background: var(--green); color: var(--cream); }
.pool-put.active { background: var(--pink); color: var(--cream); }

.pos-phase {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 7px;
  color: var(--ink-soft);
}
.pos-phase.phase-live { background: var(--green); color: var(--cream); }

/* ==========================================================================
   House stats bar (real mode)
   ========================================================================== */
.housebar {
  background: var(--pink-deep);
  color: var(--cream);
  border-bottom: var(--border-ink);
  padding: 8px 0;
  overflow: hidden;
}
.housebar-inner { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 0.72rem; }
.hb-item b { color: #ffd44d; font-weight: 800; }
.hb-feed { margin-left: auto; display: flex; gap: 14px; overflow: hidden; white-space: nowrap; }
.hb-feed .fd { opacity: 0.85; }
.hb-feed .fd.won { color: #a5e88a; }
.hb-feed .fd.lost { color: #ffb3c4; }

/* gated markets in real mode */
.row-gated { opacity: 0.55; }
.row-gated .mini-btn { pointer-events: none; filter: grayscale(0.8); }
.gated { color: var(--ink-soft); font-size: 0.7rem; }
.mkt-note { margin-top: 12px; font-size: 0.7rem; color: var(--ink-soft); }

/* trade modal mode badge */
.trade-mode {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 2px 9px; color: var(--ink-soft); align-self: center;
}
.trade-mode.tmode-real { background: var(--pink); color: var(--cream); border-color: var(--ink); }

/* ==========================================================================
   Bank modal (deposit / withdraw)
   ========================================================================== */
.bank-tabs { display: flex; gap: 8px; justify-content: center; margin: 6px 0 18px; }
.bank-tab {
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  padding: 7px 20px;
  border: var(--border-ink); border-style: dashed; border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.bank-tab.active { background: var(--ink); color: var(--cream); border-style: solid; box-shadow: var(--shadow-ink-sm); }
.dep-addr {
  font-size: 0.72rem; font-weight: 700;
  background: var(--cream);
  border: 2px dashed var(--pink-deep);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  word-break: break-all;
  cursor: copy;
  color: var(--pink-deep);
}
.dep-addr:hover { background: var(--pink-wash); }
.bank-row { display: flex; gap: 10px; margin-bottom: 12px; }
.bank-row input { flex: 1; margin-bottom: 0; text-align: left; }
.wallet-fine { font-size: 0.66rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; }
.how-real {
  margin-top: 22px; font-size: 0.72rem; color: var(--ink-soft);
  border: 2px dashed rgba(41, 20, 27, 0.35); border-radius: 14px;
  padding: 12px 16px; line-height: 1.7;
}
.linklike {
  font-family: inherit; font-size: inherit; font-weight: 700;
  background: none; border: none; color: var(--pink-hot);
  cursor: pointer; text-decoration: underline; padding: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 44px 0 40px; }
  .how-grid { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .footer-note { margin-left: 0; text-align: left; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .section-title { font-size: 1.5rem; }
  .tabs { width: 100%; }
  .updated { margin-left: 0; }
  .chip-balance { font-size: 0.74rem; }
}
