/* tanso.market — Tsukiji-style carbon exchange */
/* Fonts: Permanent Marker (headings), Barlow (body), VT323 (data), Cabin Condensed (labels) */

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Barlow', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #2a2620;
    background: #e8e2d8;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(196,168,122,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(138,104,64,0.06) 0%, transparent 50%);
    overflow-x: hidden;
    padding-bottom: 64px; /* ticker height */
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.svg-defs { position: absolute; width: 0; height: 0; }

/* ============ OPENING OVERLAY ============ */
.opening-overlay {
    position: fixed; inset: 0;
    background: #0c1a0c;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 600ms ease 200ms;
}
.opening-overlay.done { opacity: 0; pointer-events: none; }
.opening-grid {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 88px;
    color: #00e676;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px #00e676, 0 0 24px rgba(0,230,118,0.6);
    white-space: nowrap;
}
.opening-grid .glyph {
    display: inline-block;
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 120ms ease, transform 200ms cubic-bezier(.5,1.6,.5,1);
}
.opening-grid .glyph.lit { opacity: 1; transform: scale(1); }

@media (max-width: 720px) {
    .opening-grid { font-size: 44px; }
}

/* ============ NAV (aisle signs) ============ */
.aisle-nav {
    position: relative;
    padding: 28px 32px 14px;
    background: #e8e2d8;
    border-bottom: 1px dashed rgba(42,38,32,0.25);
}
.aisle-rail {
    position: absolute;
    top: 22px; left: 32px; right: 32px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8a6840 8%, #8a6840 92%, transparent);
}
.aisle-rail::before, .aisle-rail::after {
    content: '';
    position: absolute; top: -3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #7a5830;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.aisle-rail::before { left: 0; }
.aisle-rail::after { right: 0; }

.aisle-signs {
    display: flex; flex-wrap: wrap; gap: 14px;
    padding-top: 12px;
    justify-content: center;
}
.aisle-sign {
    font-family: 'Cabin Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 18px 10px;
    background: #f8f8f0;
    border: 1.5px solid #2a2620;
    border-radius: 0 0 4px 4px;
    border-top: none;
    color: #2a2620;
    transform: rotate(var(--tilt, 0deg)) translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 220ms ease, box-shadow 220ms ease;
    position: relative;
}
.aisle-sign::before {
    content: '';
    position: absolute;
    top: -8px; left: 50%;
    width: 2px; height: 8px;
    background: #5a4020;
    transform: translateX(-50%);
}
.aisle-sign:hover {
    transform: rotate(0deg) translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.brand-shingle {
    position: absolute;
    top: 18px; right: 32px;
    display: flex; align-items: baseline; gap: 10px;
    background: #e87830;
    color: #f8f8f0;
    padding: 8px 16px 6px;
    border-radius: 2px;
    transform: rotate(-2deg);
    box-shadow: 0 4px 10px rgba(232,120,48,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1.5px solid #2a2620;
}
.brand-jp {
    font-family: 'Permanent Marker', 'Barlow', sans-serif;
    font-size: 22px;
    line-height: 1;
}
.brand-en {
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .aisle-nav { padding: 20px 16px 14px; }
    .aisle-rail { left: 16px; right: 16px; }
    .brand-shingle { position: static; transform: rotate(-1deg); margin: 0 auto 16px; width: max-content; }
    .aisle-signs { justify-content: flex-start; }
}

/* ============ CHALKBOARD HERO ============ */
.chalkboard {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #1a2a1a;
    color: #e8e4d8;
    padding: 28px 32px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 500ms cubic-bezier(.2,.7,.3,1);
    border-bottom: 6px solid #5a4020;
}
.chalkboard.slid-in { transform: translateY(0); }
.chalkboard::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 31px,
            rgba(232,228,216,0.04) 31px,
            rgba(232,228,216,0.04) 32px
        );
    pointer-events: none;
}
.chalk-noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.89  0 0 0 0 0.85  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
}
.chalk-rules {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(232,228,216,0.05) 31px 32px);
    pointer-events: none;
}

.chalk-header {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(232,228,216,0.25);
}
.chalk-title-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.chalk-title {
    margin: 0;
    font-family: 'Permanent Marker', cursive;
    font-size: 36px;
    line-height: 44px;
    color: #e8e4d8;
    letter-spacing: 0.02em;
    text-shadow: 0 0 1px rgba(232,228,216,0.4), 1px 1px 0 rgba(0,0,0,0.4);
}
.chalk-bell {
    display: flex; align-items: center; gap: 10px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #00e676;
    text-shadow: 0 0 6px rgba(0,230,118,0.5);
}
.bell-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 6px #00e676, 0 0 10px rgba(0,230,118,0.5);
}
.bell-dot.live { animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.bell-text { letter-spacing: 0.12em; }
.bell-time { color: #e8e4d8; opacity: 0.85; }

.chalk-sub {
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    color: #c4a87a;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.price-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

/* PRICE TAGS */
.price-tag {
    position: relative;
    background: #c4a87a;
    color: #2a2620;
    padding: 14px 16px 12px 30px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 200ms ease;
    min-height: 130px;
    opacity: 0;
    transform: scale(0.6) translateY(-30px);
}
.price-tag.popped {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: transform 420ms cubic-bezier(.4,1.6,.5,1), opacity 320ms ease;
}
.price-tag:hover { transform: scale(1.02) rotate(-0.4deg); }

.tag-hole {
    position: absolute;
    left: 8px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #1a2a1a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}

.tag-symbol {
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.04em;
}
.tag-name {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
    color: #5a4020;
}
.tag-price {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px;
    margin-top: 8px;
    color: #1a2a1a;
    transition: color 220ms ease, filter 220ms ease;
}
.tag-price .num { display: inline-block; min-width: 60px; }
.tag-price.flash-up { color: #00e676; text-shadow: 0 0 8px rgba(0,230,118,0.7); }
.tag-price.flash-down { color: #ff5252; text-shadow: 0 0 8px rgba(255,82,82,0.7); }
.tag-price.blurred { filter: blur(1.2px); opacity: 0.5; }

.tag-delta {
    font-family: 'VT323', monospace;
    font-size: 18px;
    margin-top: 4px;
}
.tag-delta.up { color: #006a32; }
.tag-delta.down { color: #b22020; }

.tag-vol {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-top: 6px;
    color: #5a4020;
    text-transform: uppercase;
}

.chalk-footer {
    margin-top: 18px;
    display: flex; gap: 12px; flex-wrap: wrap;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    color: #c4a87a;
    opacity: 0.8;
}
.hand-divider { opacity: 0.5; }

@media (max-width: 720px) {
    .chalkboard { padding: 18px 16px 16px; position: relative; top: auto; }
    .chalk-title { font-size: 26px; line-height: 32px; }
    .chalk-sub { font-size: 14px; }
    .price-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ============ CRATE DIVIDER ============ */
.crate-divider {
    position: relative;
    height: 38px;
    background:
        radial-gradient(circle at 18% 60%, #5a4020 1.5px, transparent 2px),
        radial-gradient(circle at 72% 40%, #5a4020 1.5px, transparent 2px),
        repeating-linear-gradient(
            to bottom,
            #8a6840 0,
            #8a6840 8px,
            #7a5830 8px,
            #7a5830 9px,
            #8a6840 9px,
            #8a6840 17px,
            #6a4818 17px,
            #6a4818 18px
        );
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.crate-label {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 0.32em;
    color: #1a1208;
    text-transform: uppercase;
    background: #c4a87a;
    padding: 4px 14px;
    border: 1px solid #5a4020;
    border-radius: 1px;
    transform: rotate(-1deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============ STALLS / MASONRY ============ */
.stalls {
    column-count: 3;
    column-gap: 22px;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}
.stall {
    break-inside: avoid;
    margin-bottom: 22px;
    padding: 20px 22px;
    position: relative;
    transition: transform 280ms ease, box-shadow 280ms ease;
    opacity: 0;
    transform: translateY(30px);
}
.stall.revealed { opacity: 1; transform: translateY(0); transition: opacity 320ms ease, transform 320ms cubic-bezier(.3,.9,.3,1); }
.stall:hover { transform: translateY(-3px); box-shadow: 6px 6px 16px rgba(0,0,0,0.12); }
.stall.tall { min-height: 380px; }

@media (max-width: 1100px) {
    .stalls { column-count: 2; padding: 24px; }
}
@media (max-width: 720px) {
    .stalls { column-count: 1; padding: 18px; }
}

.stall-title {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    margin: 6px 0 10px;
    color: #1a2a1a;
}

/* WHITEBOARD VARIANT */
.stall.whiteboard {
    background: #f8f8f0;
    background-image:
        repeating-linear-gradient(to right, transparent 0 23px, rgba(42,106,154,0.05) 23px 24px),
        repeating-linear-gradient(to bottom, transparent 0 23px, rgba(42,106,154,0.05) 23px 24px);
    border: 1px solid #d8d4c8;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
.stall.whiteboard:hover {
    background-position: 4px 4px, 4px 4px;
    box-shadow: 8px 8px 18px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,0.8);
}
.stall.whiteboard .clip {
    position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 16px;
    background: linear-gradient(to bottom, #b0b0b0, #707070 50%, #b0b0b0);
    border-radius: 3px 3px 6px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}
.stall.whiteboard .clip::after {
    content: ''; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px;
    background: #707070;
    border-radius: 0 0 2px 2px;
}

.stall.whiteboard.wide { /* allows wide aspect within column */ }

/* CLIPBOARD VARIANT */
.stall.clipboard {
    background: #f8f8f0;
    border: 1px solid #c8c0a8;
    border-radius: 2px 2px 6px 6px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
    padding-top: 30px;
}
.stall.clipboard .clip {
    position: absolute;
    top: -10px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px;
    background:
        linear-gradient(to bottom, #6a6a6a 0%, #303030 30%, #707070 50%, #303030 80%, #6a6a6a 100%);
    border-radius: 4px 4px 2px 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.stall.clipboard .clip::before {
    content: ''; position: absolute;
    top: 4px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px;
    background: radial-gradient(circle at 30% 30%, #c0c0c0, #404040);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
}

/* KRAFT VARIANT */
.stall.kraft {
    background: #c4a87a;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.18  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>"),
        linear-gradient(135deg, #c4a87a 0%, #b89868 100%);
    color: #2a1a08;
    border: 1px solid #8a6840;
    border-radius: 2px;
    box-shadow: 4px 4px 12px rgba(58,34,8,0.2);
}
.stall.kraft:hover {
    box-shadow: 6px 6px 16px rgba(58,34,8,0.25), inset 0 0 30px rgba(58,34,8,0.18);
}
.stall.kraft .kraft-fibers {
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(135deg, transparent 0 4px, rgba(58,34,8,0.04) 4px 5px),
        repeating-linear-gradient(45deg, transparent 0 7px, rgba(58,34,8,0.03) 7px 8px);
    border-radius: inherit;
}
.kraft-title { color: #2a1a08; }

/* MINI CHALKBOARD STALL */
.stall.mini-chalk {
    background: #1a2a1a;
    color: #e8e4d8;
    border: 1px solid #0a1a0a;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4), inset 0 0 0 4px rgba(232,228,216,0.04);
    padding: 24px 22px;
}
.stall.mini-chalk .chalk-noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.89  0 0 0 0 0.85  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: screen;
}
.stall.mini-chalk .stall-title { color: #e8e4d8; }
.chalk-handwritten { text-shadow: 1px 1px 0 rgba(0,0,0,0.3); }

/* STAMP MARKS */
.stamp {
    position: absolute;
    top: 12px; right: 14px;
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 10px 4px;
    transform: rotate(var(--stamp-tilt, -7deg));
    border: 2px dashed currentColor;
    border-radius: 2px;
    background: transparent;
    z-index: 2;
    clip-path: polygon(0 4%, 25% 0, 50% 3%, 75% 0, 100% 5%, 99% 50%, 100% 95%, 75% 100%, 50% 96%, 25% 100%, 0 95%, 1% 50%);
}
.stamp-blue { color: #2a6a9a; }
.stamp-orange { color: #e87830; }

/* ============ STALL CONTENT BITS ============ */
.stall-meta {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a5830;
    margin: -4px 0 10px;
}
.board-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(42,106,154,0.2);
    display: flex; gap: 10px;
}
.board-list li:last-child { border-bottom: none; }
.bullet { color: #2a6a9a; font-weight: 700; }
.dry-erase-signoff {
    margin-top: 14px;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    color: #2a6a9a;
    transform: rotate(-1.5deg);
}

/* LOT CARD */
.lot-spec {
    margin: 8px 0 14px;
    border-top: 1px dashed rgba(58,34,8,0.4);
    border-bottom: 1px dashed rgba(58,34,8,0.4);
    padding: 6px 0;
}
.lot-row {
    display: flex; justify-content: space-between;
    padding: 4px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    border-bottom: 1px dotted rgba(58,34,8,0.18);
}
.lot-row:last-child { border-bottom: none; }
.lot-row span:first-child {
    font-family: 'Cabin Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: #5a4020;
}
.lot-row span:last-child { font-weight: 500; }

.lot-bid {
    background: #1a2a1a;
    margin: 12px -22px -20px;
    padding: 16px 22px 18px;
    color: #e8e4d8;
    position: relative;
    border-top: 4px solid #5a4020;
}
.bid-label {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #c4a87a;
    text-transform: uppercase;
}
.bid-value {
    font-family: 'Permanent Marker', cursive;
    font-size: 36px;
    line-height: 44px;
    color: #00e676;
    text-shadow: 0 0 8px rgba(0,230,118,0.5);
    transition: color 200ms ease, text-shadow 200ms ease;
}
.bid-value.flash-up { color: #00e676; }
.bid-bar {
    height: 6px;
    background: rgba(232,228,216,0.15);
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0 12px;
}
.bid-bar-fill {
    height: 100%;
    width: 18%;
    background: linear-gradient(to right, #00e676, #e87830);
    transition: width 400ms cubic-bezier(.3,.9,.3,1);
    box-shadow: 0 0 6px rgba(0,230,118,0.5);
}
.bid-button {
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    background: #e87830;
    color: #f8f8f0;
    border: 2px solid #2a2620;
    padding: 8px 16px 6px;
    border-radius: 2px;
    box-shadow: 3px 3px 0 #2a2620;
    transform: rotate(-1deg);
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.bid-button:hover { transform: rotate(0deg) translate(1px,1px); box-shadow: 2px 2px 0 #2a2620; }
.bid-button:active { transform: rotate(0deg) translate(3px,3px); box-shadow: 0 0 0 #2a2620; }
.bid-foot {
    margin-top: 8px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #c4a87a;
}
.bid-foot span { color: #00e676; }

/* CLIPBOARD TABLE */
.clip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 6px;
}
.clip-table th {
    text-align: left;
    font-family: 'Cabin Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: #5a4020;
    padding: 6px 4px;
    border-bottom: 2px solid #2a2620;
}
.clip-table td {
    padding: 7px 4px;
    border-bottom: 1px dashed rgba(42,38,32,0.25);
    font-family: 'Barlow', sans-serif;
}
.clip-table td:last-child {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #1a2a1a;
    text-align: right;
}
.clip-table tbody tr:hover { background: rgba(232,120,48,0.08); }

/* MOVERS */
.mover-list {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 10px;
}
.mover {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(232,228,216,0.15);
}
.mover-sym {
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    color: #e8e4d8;
}
.mover-spark {
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.mover-spark[data-trend="up"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><polyline points='0,24 12,20 24,22 36,16 48,18 60,11 72,13 84,6 100,3' fill='none' stroke='%2300e676' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.mover-spark[data-trend="down"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><polyline points='0,6 12,9 24,7 36,14 48,11 60,18 72,16 84,23 100,26' fill='none' stroke='%23ff5252' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.mover-pct {
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-align: right;
}
.mover.up .mover-pct { color: #00e676; text-shadow: 0 0 4px rgba(0,230,118,0.5); }
.mover.down .mover-pct { color: #ff5252; text-shadow: 0 0 4px rgba(255,82,82,0.5); }

/* HOW STEPS */
.how-steps {
    counter-reset: step;
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 8px;
}
.how-steps li {
    display: flex; align-items: flex-start; gap: 14px;
}
.step-num {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border: 2px solid #2a6a9a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    color: #2a6a9a;
    transform: rotate(-3deg);
    background: #f8f8f0;
}
.how-steps strong { color: #1a2a1a; }

/* VENDORS */
.vendor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.vendor-card {
    background: rgba(248,248,240,0.4);
    border: 1px dashed #5a4020;
    padding: 10px 12px;
    border-radius: 2px;
    transform: rotate(-0.5deg);
}
.vendor-card:nth-child(2) { transform: rotate(0.7deg); }
.vendor-card:nth-child(3) { transform: rotate(0.3deg); }
.vendor-card:nth-child(4) { transform: rotate(-1deg); }
.vendor-tag {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #2a6a9a;
}
.vendor-name {
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    line-height: 20px;
    color: #2a1a08;
    margin-top: 2px;
}
.vendor-loc {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a4020;
    margin-top: 2px;
}

/* HOURS */
.hours-list { margin-top: 10px; }
.hours-list li {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(42,38,32,0.2);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
}
.hours-list .day {
    font-family: 'Cabin Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #5a4020;
}
.hours-list .time { font-family: 'VT323', monospace; font-size: 16px; }
.hours-list em { color: #e87830; font-style: normal; }
.hours-note {
    margin-top: 12px;
    font-size: 13px;
    color: #5a4020;
    border-top: 1px dashed rgba(42,38,32,0.2);
    padding-top: 10px;
}

/* BELL */
.bell-large {
    text-align: center;
    margin: 12px 0 14px;
    padding: 14px 0;
    border: 2px dashed rgba(232,228,216,0.3);
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}
.bell-count {
    font-family: 'VT323', monospace;
    font-size: 48px;
    line-height: 1;
    color: #00e676;
    text-shadow: 0 0 12px rgba(0,230,118,0.6);
    letter-spacing: 0.06em;
}
.bell-caption {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c4a87a;
    margin-top: 4px;
}
.bell-row {
    display: flex; justify-content: space-between;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(232,228,216,0.15);
    color: #e8e4d8;
}
.bell-row .bell-num { font-family: 'VT323', monospace; font-size: 18px; color: #c4a87a; }

/* ============ FOOTER (RECEIPT) ============ */
.receipt {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 24px 32px 28px;
    background: #f8f8f0;
    color: #2a2620;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    position: relative;
    transform: rotate(-0.4deg);
    background-image:
        repeating-linear-gradient(to bottom, transparent 0 23px, rgba(42,38,32,0.05) 23px 24px);
}
.receipt::before, .receipt::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 14px;
}
.receipt::before {
    top: -14px;
    background:
        radial-gradient(circle at 8px 14px, #f8f8f0 7px, transparent 8px) repeat-x;
    background-size: 16px 14px;
}
.receipt::after {
    bottom: -14px;
    background:
        radial-gradient(circle at 8px 0px, #f8f8f0 7px, transparent 8px) repeat-x;
    background-size: 16px 14px;
}
.receipt-head {
    display: flex; justify-content: space-between;
    font-family: 'Cabin Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    border-bottom: 2px dashed rgba(42,38,32,0.4);
    padding-bottom: 10px;
}
.receipt-title { font-family: 'Permanent Marker', cursive; font-size: 18px; letter-spacing: 0.06em; }
.receipt-body p { margin: 12px 0; font-size: 14px; }
.receipt-stamp {
    margin-top: 16px;
    font-family: 'Permanent Marker', cursive;
    color: #00e676;
    text-align: center;
    font-size: 18px;
    border: 2px solid #00e676;
    padding: 6px 12px;
    transform: rotate(-2deg);
    display: inline-block;
    background: rgba(0,230,118,0.08);
}

/* ============ LED TICKER ============ */
.led-ticker {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: #0c1a0c;
    border-top: 2px solid #5a4020;
    display: flex; align-items: center;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}
.ticker-label {
    flex: 0 0 auto;
    padding: 0 14px;
    height: 100%;
    display: flex; align-items: center;
    background: #ff5252;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 22px;
    letter-spacing: 0.15em;
    border-right: 2px solid #5a4020;
    box-shadow: 0 0 8px rgba(255,82,82,0.5);
    animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.ticker-track {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.ticker-row {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: 18px;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 60s linear infinite;
}
.led-ticker.paused .ticker-row { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translate(0, -50%); }
    100% { transform: translate(-50%, -50%); }
}
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 2px;
    transition: background 160ms ease;
}
.ticker-item:hover { background: rgba(0,230,118,0.1); }
.ticker-sym {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: #00e676;
    text-shadow: 0 0 4px #00e676;
    letter-spacing: 0.06em;
}
.ticker-pct.up { color: #00e676; text-shadow: 0 0 4px rgba(0,230,118,0.6); }
.ticker-pct.down { color: #ff5252; text-shadow: 0 0 4px rgba(255,82,82,0.6); }
.ticker-pct {
    font-family: 'VT323', monospace;
    font-size: 22px;
}
.ticker-pause {
    flex: 0 0 auto;
    padding: 0 14px;
    color: #c4a87a;
    font-family: 'VT323', monospace;
    font-size: 22px;
    cursor: pointer;
    height: 100%;
    display: flex; align-items: center;
    border-left: 2px solid #5a4020;
    user-select: none;
}

/* TICKER POPUP */
.ticker-popup {
    position: fixed;
    bottom: 70px; right: 30px;
    width: 280px;
    background: #f8f8f0;
    border: 1px solid #c8c0a8;
    border-radius: 4px;
    padding: 30px 18px 16px;
    z-index: 250;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    transform: rotate(-0.8deg);
    animation: popup-in 280ms cubic-bezier(.3,1.4,.4,1);
    background-image:
        repeating-linear-gradient(to right, transparent 0 23px, rgba(42,106,154,0.06) 23px 24px),
        repeating-linear-gradient(to bottom, transparent 0 23px, rgba(42,106,154,0.06) 23px 24px);
}
@keyframes popup-in {
    from { opacity: 0; transform: rotate(-0.8deg) translateY(20px); }
    to { opacity: 1; transform: rotate(-0.8deg) translateY(0); }
}
.ticker-popup-clip {
    position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%);
    width: 70px; height: 14px;
    background: linear-gradient(to bottom, #b0b0b0, #707070 50%, #b0b0b0);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ticker-popup h3 {
    margin: 0 0 8px;
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    color: #2a2620;
}
.ticker-popup p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
    color: #2a2620;
}
.ticker-popup button {
    background: transparent;
    border: 1px solid #2a2620;
    border-radius: 2px;
    padding: 4px 10px;
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ticker-popup button:hover { background: #2a2620; color: #f8f8f0; }

/* ============ MISC ============ */
::selection { background: #00e676; color: #1a2a1a; }
