/* ═══════════════════════════════════════════════════════════
   LORD OF THE FLIES — Dark literary arena
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #06060b;
    --bg-card: #0a0a12;
    --bg-card-hover: #0f0f1a;
    --border: #151520;
    --text: #ccc;
    --text-dim: #555;
    --text-muted: #333;
    --accent: #ff3366;
    --green: #44ff88;
    --red: #ff3366;
    --gold: #ffd700;
    --blue: #33ccff;
    --purple: #aa66ff;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════════════════════════════════ */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */

#landing {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overflow-y: auto;
}

/* Sky */
.landing-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #020208 0%,
        #080818 25%,
        #0a0a20 40%,
        #0c1225 55%,
        #101830 70%
    );
}

/* Ocean */
.landing-ocean {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(
        180deg,
        #0a1520 0%,
        #081018 40%,
        #060c12 100%
    );
}

.wave {
    position: absolute;
    width: 200%;
    height: 30px;
    left: -50%;
    background: transparent;
}

.wave-1 {
    top: -5px;
    background: linear-gradient(90deg,
        transparent 0%, #0d1a2510 15%, #0f2030 30%, #0d1a2510 45%, transparent 60%,
        #0d1a2510 75%, #0f2030 85%, transparent 100%);
    animation: waveMove 12s ease-in-out infinite;
}

.wave-2 {
    top: 8px;
    background: linear-gradient(90deg,
        transparent 10%, #0a141d15 25%, #0c1825 40%, transparent 55%,
        #0a141d15 70%, #0c1825 80%, transparent 95%);
    animation: waveMove 16s ease-in-out infinite reverse;
    opacity: 0.7;
}

.wave-3 {
    top: 20px;
    background: linear-gradient(90deg,
        #08101510 0%, transparent 20%, #08101510 40%, transparent 60%,
        #08101510 80%, transparent 100%);
    animation: waveMove 20s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5%); }
}

/* Sand */
.landing-sand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15%;
    background: linear-gradient(
        180deg,
        #0c0c0a 0%,
        #0a0a08 30%,
        #080806 100%
    );
}

/* Content */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
}

.conch {
    font-size: 48px;
    margin-bottom: 24px;
    filter: grayscale(0.3);
    animation: conchFloat 4s ease-in-out infinite;
}

@keyframes conchFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(48px, 12vw, 96px);
    line-height: 0.95;
    letter-spacing: 4px;
    color: #fff;
    text-shadow:
        0 0 60px rgba(255, 51, 102, 0.15),
        0 0 120px rgba(255, 51, 102, 0.05);
    margin-bottom: 24px;
}

.landing-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(14px, 2.5vw, 18px);
    color: #aaaaaa;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.landing-subtitle {
    font-size: clamp(11px, 1.8vw, 14px);
    color: #999999;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 48px;
}

.landing-subtitle em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* Enter button */
#enter-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 6px;
    padding: 16px 48px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

#enter-btn:hover {
    background: rgba(255, 51, 102, 0.08);
    box-shadow: 0 0 40px rgba(255, 51, 102, 0.15);
}

.enter-glow {
    position: absolute;
    inset: -1px;
    border: 1px solid var(--accent);
    animation: enterPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes enterPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.05); }
}

/* How it works */
.landing-how {
    margin-top: 48px;
    margin-bottom: 80px;
}

.how-btn {
    background: none;
    border: none;
    color: #333;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 16px;
}

.how-btn:hover { color: #555; }

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 24px auto 0;
    text-align: left;
}

.how-step {
    padding: 20px;
    border: 1px solid #151520;
    background: rgba(6, 6, 11, 0.8);
}

.how-num {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
}

.how-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: #666;
    margin-bottom: 8px;
}

.how-desc {
    font-size: 11px;
    color: #444;
    line-height: 1.6;
}

.landing-footer {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    color: #222;
    letter-spacing: 1px;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   ARENA HEADER
   ═══════════════════════════════════════════════════════════ */

#arena {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, #0c0c18 0%, var(--bg) 60%);
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.arena-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 40px rgba(255, 51, 102, 0.1);
}

.arena-subtitle {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 1px;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-box {
    text-align: right;
}

.stat-label {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.stat-dim {
    font-size: 11px;
    color: var(--text-muted);
}

.timer .stat-value {
    color: var(--green);
    transition: color 0.5s;
}

.timer.urgent .stat-value {
    color: var(--accent);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════ */

#main {
    display: flex;
    min-height: calc(100vh - 56px - 32px);
}

#sidebar-left {
    width: 280px;
    border-right: 1px solid var(--border);
    padding: 12px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

#center {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

#sidebar-right {
    width: 220px;
    border-left: 1px solid var(--border);
    padding: 14px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD — Character cards
   ═══════════════════════════════════════════════════════════ */

#sidebar-left h2, #sidebar-right h2 {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding: 0 14px;
}

.section-title { margin-top: 16px; }
.section-title.danger { color: var(--accent) !important; }

.lb-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 14px;
    border-left: 2px solid transparent;
    transition: all 0.3s;
    cursor: default;
}

.lb-entry:hover { background: var(--bg-card-hover); }

.lb-entry.leader {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.lb-entry.eliminated {
    opacity: 0.2;
}

.lb-entry.eliminated .lb-name {
    text-decoration: line-through;
}

.lb-rank {
    font-size: 9px;
    color: var(--text-muted);
    width: 18px;
    text-align: right;
    padding-top: 2px;
    flex-shrink: 0;
}

.lb-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.lb-info {
    flex: 1;
    min-width: 0;
}

.lb-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.lb-name {
    font-size: 11px;
    font-weight: 700;
}

.lb-pnl {
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.lb-pnl.positive { color: var(--green); }
.lb-pnl.negative { color: var(--accent); }

.lb-bottom-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.lb-strategy {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-desc {
    font-size: 8px;
    color: #2a2a3a;
    margin-top: 3px;
    line-height: 1.4;
    font-style: italic;
}

/* P&L micro bar */
.lb-pnl-bar {
    height: 2px;
    background: #111;
    border-radius: 1px;
    margin-top: 5px;
    position: relative;
}

.lb-pnl-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 1px;
    transition: width 0.5s;
}

.lb-pnl-bar-center {
    position: absolute;
    width: 1px;
    height: 6px;
    top: -2px;
    left: 50%;
    background: #222;
}

/* ═══════════════════════════════════════════════════════════
   DANGER ZONE — pulse animation
   ═══════════════════════════════════════════════════════════ */

.danger-entry {
    position: relative;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.danger-entry::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 51, 102, 0.03);
    animation: dangerPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.danger-emoji { font-size: 12px; }
.danger-name { font-size: 10px; font-weight: 600; }
.danger-pnl {
    font-size: 10px;
    color: var(--accent);
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════
   CHART
   ═══════════════════════════════════════════════════════════ */

#chart-container {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.chart-left { display: flex; align-items: baseline; gap: 8px; }

.chart-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.chart-fullname {
    font-size: 11px;
    color: var(--text-muted);
}

.chart-right {
    display: flex;
    gap: 16px;
}

.chart-stat { text-align: right; }

.chart-stat-label {
    display: block;
    font-size: 8px;
    color: var(--text-dim);
}

.chart-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

#price-chart {
    width: 100%;
    height: 200px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   TABS + FEEDS
   ═══════════════════════════════════════════════════════════ */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.tab.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.tab-content { display: none; flex: 1; overflow: hidden; }
.tab-content.active { display: flex; flex-direction: column; }

#trade-feed, #comms-feed {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.feed-empty {
    font-size: 11px;
    color: #1a1a2a;
    text-align: center;
    padding: 40px 0;
}

.trade-entry {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: var(--bg-card);
    border-left: 2px solid transparent;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.trade-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.trade-emoji { font-size: 14px; }

.trade-name {
    font-size: 10px;
    font-weight: 700;
}

.trade-action {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 2px;
}

.trade-action.buy { background: rgba(68, 255, 136, 0.1); color: var(--green); }
.trade-action.sell { background: rgba(255, 51, 102, 0.1); color: var(--accent); }

.trade-amount {
    font-size: 10px;
    color: #555;
    margin-left: auto;
}

.trade-tx {
    font-size: 9px;
    color: var(--blue);
    text-decoration: none;
    margin-left: 6px;
}

.trade-tx:hover { text-decoration: underline; }

.trade-reasoning {
    font-size: 11px;
    color: #666;
    font-style: italic;
    padding-left: 22px;
}

/* Comms */
.comm-entry {
    padding: 8px 12px;
    margin-bottom: 6px;
    animation: slideIn 0.3s ease;
}

.comm-header {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 9px;
    margin-bottom: 4px;
}

.comm-arrow { color: var(--text-muted); }

.comm-type {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 4px;
}

.comm-type.alliance_offer { background: rgba(51, 204, 255, 0.1); color: var(--blue); }
.comm-type.betrayal { background: rgba(255, 51, 102, 0.1); color: var(--accent); }
.comm-type.threat { background: rgba(255, 136, 0, 0.1); color: #ff8800; }
.comm-type.chat { background: rgba(80, 80, 100, 0.1); color: var(--text-dim); }

.comm-content {
    font-size: 11px;
    color: #888;
    background: #0d0d16;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 2px solid transparent;
    margin-left: 16px;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.token-stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

.ts-label {
    font-size: 9px;
    color: var(--text-dim);
}

.ts-value {
    font-size: 11px;
    font-weight: 600;
}

.trade-button {
    display: block;
    text-align: center;
    background: rgba(68, 255, 136, 0.06);
    border: 1px solid rgba(68, 255, 136, 0.3);
    color: var(--green);
    text-decoration: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px;
    border-radius: 4px;
    margin: 14px 0;
    transition: all 0.2s;
}

.trade-button:hover {
    background: rgba(68, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(68, 255, 136, 0.1);
}

/* Countdown */
.countdown-timer {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin: 8px 0;
    transition: color 0.5s;
}

.countdown-timer.urgent {
    color: var(--accent);
    animation: timerPulse 1s ease-in-out infinite;
}

.countdown-bar-container {
    background: var(--border);
    border-radius: 2px;
    height: 3px;
    overflow: hidden;
    margin: 6px 0;
}

.countdown-bar {
    height: 100%;
    background: var(--green);
    transition: width 1s linear, background 0.5s;
    width: 100%;
    border-radius: 2px;
}

.countdown-bar.urgent {
    background: var(--accent);
}

#countdown-text {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
}

/* Wallets */
#wallet-list { font-size: 10px; }

.wallet-entry {
    display: flex;
    gap: 5px;
    padding: 3px 0;
    border-bottom: 1px solid #0e0e18;
    align-items: center;
}

.wallet-name {
    font-weight: 600;
    min-width: 38px;
    font-size: 9px;
}

.wallet-addr {
    font-size: 9px;
    color: var(--blue);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wallet-addr:hover { opacity: 1; text-decoration: underline; }

.disclaimer {
    margin-top: 16px;
    padding: 10px;
    border: 1px solid #151520;
    font-size: 9px;
    color: #222;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ALLIANCES
   ═══════════════════════════════════════════════════════════ */

.alliance-entry {
    display: flex;
    gap: 4px;
    padding: 3px 14px;
    font-size: 10px;
    align-items: center;
}

.alliance-arrow { color: var(--text-muted); font-size: 9px; }

/* ═══════════════════════════════════════════════════════════
   BOTTOM TICKER
   ═══════════════════════════════════════════════════════════ */

#ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    border-top: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg);
    z-index: 100;
}

#ticker-content {
    display: flex;
    gap: 24px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
}

.ticker-item.eliminated { opacity: 0.2; text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════════════════ */

#elimination-overlay, #winner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.elim-content, .winner-content { text-align: center; }

.elim-label {
    font-size: 11px;
    letter-spacing: 8px;
    color: var(--accent);
    margin-bottom: 24px;
}

.elim-skull {
    font-size: 72px;
    margin-bottom: 16px;
}

.elim-agent, .winner-agent {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.elim-subtext {
    font-size: 13px;
    color: #444;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.elim-pnl {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
}

.elim-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 51, 102, 0.2);
    margin: 0 auto 12px;
    position: relative;
    overflow: hidden;
}

.elim-bar-inner {
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: shrinkBar 8s linear forwards;
}

@keyframes shrinkBar {
    from { width: 100%; }
    to { width: 0%; }
}

.elim-round {
    font-size: 10px;
    color: var(--text-muted);
}

.winner-trophy {
    font-size: 72px;
    margin-bottom: 16px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.winner-text {
    font-size: 18px;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 16px;
}

.winner-pnl {
    font-size: 16px;
    color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE TOGGLE
   ═══════════════════════════════════════════════════════════ */

.mobile-toggle {
    display: none;
    width: 100%;
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 10px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a1a2e; border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Header stacks */
    #header {
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px;
    }

    .header-left { text-align: center; }
    .arena-title { font-size: 18px; }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    /* Main stacks vertically */
    #main {
        flex-direction: column;
    }

    #sidebar-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 50vh;
    }

    #center {
        width: 100%;
    }

    #sidebar-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        display: none;
    }

    #sidebar-right.mobile-open {
        display: block;
    }

    .mobile-toggle {
        display: block;
    }

    /* Ticker scrolls horizontally */
    #ticker-content {
        animation-duration: 20s;
    }

    /* Chart height */
    #price-chart { height: 160px; }

    /* Feed height */
    #trade-feed, #comms-feed {
        max-height: 300px;
    }

    /* How it works stacks */
    .how-steps {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .landing-title { letter-spacing: 2px; }

    .chart-header { flex-direction: column; gap: 6px; }
    .chart-right { justify-content: flex-start; }

    .header-right { gap: 12px; }
    .stat-label { font-size: 7px; }
    .stat-value { font-size: 12px; }
}
