/* "wpixel" is Worldopoly's own pixel font (source bitmaps + build script in
   tools/build_pixel_font.py), in the style of m6x11. One font pixel is one
   CSS pixel at 16px, so every font-size below is 16px or 32px; anything
   in between gets resampled and turns blurry. Bold is a real drawn weight,
   and font-synthesis is off so the browser never fakes one. */
@font-face {
    font-family: "wpixel";
    src: url("/static/fonts/wpixel.woff2") format("woff2"),
         url("/static/fonts/wpixel.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "wpixel";
    src: url("/static/fonts/wpixel-bold.woff2") format("woff2"),
         url("/static/fonts/wpixel-bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }
body, button, input, select, textarea {
    font-family: "wpixel", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 16px;
    font-synthesis: none;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}
h1 { font-size: 32px; line-height: 32px; font-weight: normal; }
h2, h3, h4 { font-size: 16px; line-height: 16px; }
body {
    margin: 0;
    background: #0f1115;
    color: #e8e8e8;
}
a { color: #6bb8ff; }

/* Leaflet's own stylesheet hard-codes a font-family on the map container,
   popups, tooltips, and zoom controls (at 12-22px); override those so the
   pixel font, at a crisp size, covers everything the player sees, not just
   our own UI chrome. */
.leaflet-container,
.leaflet-popup-content,
.leaflet-tooltip,
.leaflet-control-attribution,
.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out,
.leaflet-container .leaflet-control-zoom-in,
.leaflet-container .leaflet-control-zoom-out {
    font-family: "wpixel", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: normal;
}
.leaflet-container,
.leaflet-popup-content,
.leaflet-tooltip,
.leaflet-control-attribution {
    line-height: 16px;
}

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #1a1d24;
    border: 1px solid #2a2e37;
    border-radius: 10px;
    padding: 28px;
    width: 340px;
}
.card h1 { margin-top: 0; }
.card input {
    width: 100%;
    padding: 10px;
    margin: 6px 0 14px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f1115;
    color: #eee;
}
.card button, .btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #3d7cff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.card button:hover, .btn:hover { background: #2d63d6; }
.error { color: #ff6b6b; min-height: 16px; }
.muted { color: #999; }

/* City select */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    padding: 24px;
}
.city-card {
    background: #1a1d24;
    border: 1px solid #2a2e37;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.city-card.playable { cursor: pointer; border-color: #3d7cff; }
.city-card.playable:hover { background: #23273099; }
.city-card.disabled { opacity: 0.4; }
.badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #333;
}
.badge.play { background: #1f6f43; }

/* Voting for the next map on the landing page. */
.vote-intro { padding: 0 24px; }
.vote-intro h2 { margin: 8px 0 4px; }
.vote-card { width: 100%; color: inherit; font: inherit; cursor: pointer; }
.vote-card:hover { background: #232730; border-color: #3d7cff; }
.vote-card.my-vote { border-color: #2ecc71; }
.vote-count { margin-top: 8px; }
.vote-bar { height: 8px; margin-top: 6px; background: #23262f; border-radius: 4px; overflow: hidden; }
.vote-bar div { height: 100%; background: #3d7cff; }
.vote-card.my-vote .vote-bar div { background: #2ecc71; }

/* Game layout */
.game-wrap { display: flex; height: 100vh; }
#map { position: absolute; inset: 0; background: #0a0c10; }
.sidebar {
    width: 320px;
    background: #14161c;
    border-left: 1px solid #2a2e37;
    padding: 16px;
    overflow-y: auto;
}
.topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: #14161cee;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.topbar .stat b { display: block; }
.topbar-stats, .topbar-actions { display: flex; gap: 16px; align-items: center; }
.sheet-handle { display: none; }
.topbar button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #3d7cff;
    color: white;
    cursor: pointer;
}
.topbar button:disabled { background: #444; cursor: not-allowed; }

.panel-section { margin-bottom: 20px; }
.panel-section h3 { margin: 0 0 8px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.prop-row { padding: 8px 0; border-bottom: 1px solid #23262f; }
.prop-row b { display: block; }

.overlay {
    position: absolute;
    inset: 0;
    background: #000a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.overlay .card { width: 380px; max-width: calc(100vw - 24px); max-height: 90vh; overflow-y: auto; }

.direction-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin: 6px 0;
    background: #22262f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #eee;
    cursor: pointer;
}
.direction-btn:hover { background: #2c313c; }

.hidden { display: none !important; }

/* Mystery spaces */
.mystery-marker {
    background: #8e44ad;
    border: 2px solid #f5d76e;
    color: #fff;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 0 0 2px #0f1115;
}
.mystery-tag {
    display: inline-block;
    width: 16px;
    margin-right: 8px;
    background: #8e44ad;
    color: #fff;
    text-align: center;
}

.spin-card { text-align: center; }
.wheel-wrap {
    position: relative;
    width: 256px;
    height: 256px;
    margin: 0 auto 16px;
}
#wheel {
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #2a2e37;
    transition: transform 4s cubic-bezier(0.15, 0.7, 0.1, 1);
}
/* Downward-pointing triangle at 12 o'clock marks the winning slice. */
.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -12px;
    z-index: 1;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #f5d76e;
}
.spin-result { min-height: 32px; margin-bottom: 16px; }
#spinDone, .auction-btn { margin-top: 8px; }
.auction-btn { background: #b7950b; }
.auction-btn:hover { background: #9a7d09; }

/* Auctions */
.auction-row .auction-addr { cursor: pointer; }
.auction-row .auction-addr:hover { color: #6bb8ff; }
.auction-row.winning .auction-status { color: #2ecc71; }
.bid-form { display: flex; gap: 8px; margin-top: 8px; }
.bid-input {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f1115;
    color: #eee;
}
.bid-form button {
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    background: #b7950b;
    color: #fff;
    cursor: pointer;
}
.bid-form button:disabled { background: #1f6f43; cursor: default; }

/* Toasts */
#toasts {
    position: fixed;
    left: 16px;
    top: 88px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}
.toast {
    background: #14161cee;
    border: 1px solid #2a2e37;
    border-left: 4px solid #f5d76e;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Traps */
.trap-marker {
    background: #c0392b;
    border: 2px solid #0f1115;
    color: #fff;
    text-align: center;
    line-height: 12px;
}
.trap-btn {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    background: #c0392b;
    color: #fff;
    cursor: pointer;
}
.trap-btn:hover { background: #a93226; }
.steal-btn {
    display: block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    background: #8e44ad;
    color: #fff;
    cursor: pointer;
}
.steal-btn:hover { background: #7d3c98; }
.trap-note { margin-top: 8px; color: #e74c3c; }
.toast-good { border-left-color: #2ecc71; }
.toast-bad { border-left-color: #e74c3c; }

/* Store */
.store-card { width: 480px; max-height: 90vh; overflow-y: auto; }
.store-card h3 { margin: 16px 0 8px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.store-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #23262f;
}
.store-info { flex: 1; }
.store-info b { display: block; margin-bottom: 4px; }
.store-card .store-item button {
    width: 112px;
    flex: none;
}
.store-card .store-item button:disabled { background: #444; cursor: not-allowed; }

/* Map controls (bottom-right) */
.find-me-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
}
.find-me-btn:hover { background: #c0392b; }

/* Direction picker: a panel docked bottom-left instead of a full-screen
   overlay, so the map stays visible and draggable while choosing. */
.overlay.dock {
    inset: auto;
    left: 16px;
    bottom: 16px;
    background: none;
    display: block;
}
.overlay.dock .card {
    width: 400px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 0 8px 24px #000a;
}
.overlay.dock h1 { font-size: 16px; line-height: 16px; margin: 0 0 8px; }
.direction-btn .heading-tag {
    display: inline-block;
    width: 24px;
    margin-right: 8px;
    color: #f5d76e;
}

/* Bouncing arrow over the building a hovered choice leads to. */
.dest-arrow div {
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #f5d76e;
    filter: drop-shadow(0 0 2px #0f1115);
    animation: dest-bounce 0.8s ease-in-out infinite;
}
@keyframes dest-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Owning a property: sell / auction from the property panel */
.asset-row { cursor: pointer; }
.asset-row:hover b { color: #6bb8ff; }
.owner-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.owner-actions button {
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    color: #fff;
    cursor: pointer;
}
.owner-actions .sell-btn { background: #444; }
.owner-actions .sell-btn:hover { background: #555; }
.auction-form { display: flex; flex-direction: column; gap: 8px; }
.auction-form label { display: flex; flex-direction: column; gap: 4px; color: #aaa; }
.floor-input {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f1115;
    color: #eee;
}
.auction-form button { background: #b7950b; }
.auction-form button:hover { background: #9a7d09; }
.owner-note { color: #f5d76e; }
#propDetail.flash { animation: panel-flash 1.2s ease-out; }
@keyframes panel-flash {
    0% { background: #3d7cff55; }
    100% { background: transparent; }
}

/* My Assets: items and properties */
.assets-heading { margin: 16px 0 0; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.item-row b { display: block; }
.trap-link { color: #e74c3c; }
.trap-link:hover { color: #ff7b6b; }

/* Leaderboard page */
.lb-page { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.lb-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-play { width: auto; padding: 8px 16px; text-decoration: none; }
.lb-tabs, .lb-boards, .lb-season-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-tabs { margin: 8px 0 16px; }
.lb-boards { margin-bottom: 16px; }
.lb-tabs button, .lb-boards button, .lb-season-switch button, .lb-mini select {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1d24;
    color: #ccc;
    cursor: pointer;
}
.lb-tabs button.active, .lb-boards button.active, .lb-season-switch button.active {
    background: #3d7cff;
    border-color: #3d7cff;
    color: #fff;
}
.lb-season { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.lb-card { width: auto; }
.lb-card h3 { margin: 0 0 8px; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; color: #aaa; font-weight: normal; padding: 4px 8px; border-bottom: 1px solid #2a2e37; }
.lb-table td { padding: 8px; border-bottom: 1px solid #23262f; }
.lb-table .num { text-align: right; }
.lb-table tr.me td { color: #2ecc71; }
.lb-mine { margin-top: 8px; color: #2ecc71; }

/* Leaderboard mini panel in the game sidebar */
.lb-mini select { width: 100%; margin-bottom: 8px; }
.lb-mini-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.lb-mini-row.me { color: #2ecc71; }
.lb-mini-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Terms of Service: long text reads better in a normal font than the pixel one */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: auto;
    line-height: 1.6;
    color: #ddd;
}
.legal h1 { font-family: "wpixel", sans-serif; }
.legal h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; color: #fff; }
.legal li { margin-bottom: 6px; }
.legal-meta { color: #999; }
.legal-toc { background: #1a1d24; border: 1px solid #2a2e37; border-radius: 8px; padding: 8px 16px; }
.legal .fill { background: #f5d76e; color: #111; padding: 0 4px; border-radius: 3px; }
.terms-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; line-height: 20px; }
.terms-check input { width: auto; margin: 2px 0 0; }

/* Rewarded-ad button, bottom-left of the map (the direction picker docks
   over it while you choose a move). */
.ad-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 800;
    width: auto;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: #d4ac0d;
    color: #14161c;
    cursor: pointer;
    box-shadow: 0 4px 12px #0008;
}
.ad-btn:hover:not(:disabled) { background: #b7950b; }
.ad-btn:disabled { background: #555; color: #aaa; cursor: not-allowed; }
.ad-overlay { z-index: 3000; }
.ad-card { width: 480px; max-width: calc(100vw - 32px); text-align: center; }
.ad-label { color: #888; text-align: left; margin-bottom: 8px; }
.ad-slot {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1115;
    border-radius: 6px;
    margin-bottom: 12px;
}
.house-ad { display: grid; gap: 8px; }
.house-ad-title { font-size: 32px; line-height: 32px; color: #f5d76e; }
.ad-progress { height: 8px; background: #23262f; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.ad-progress div { height: 100%; width: 0; background: #d4ac0d; transition: width 0.2s linear; }
#adClaim { margin-top: 12px; }

.maps-links { display: flex; gap: 12px; margin-top: 6px; }
.store-legal { margin-top: 12px; }

/* Help guide */
.help-card { width: 640px; max-width: calc(100vw - 32px); max-height: 85vh; display: flex; flex-direction: column; }
.help-toc { line-height: 22px; margin-bottom: 8px; }
.help-body { overflow-y: auto; padding-right: 8px; border-top: 1px solid #2a2e37; }
.help-body h3 { margin: 16px 0 6px; color: #f5d76e; }
.help-body p, .help-body li { line-height: 20px; }
.help-body ul { margin: 0; padding-left: 20px; }
.help-body li { margin-bottom: 4px; }

/* Direction choice on touch screens: the previewed choice, waiting for a second tap. */
.direction-btn.armed { outline: 3px solid #f5d76e; outline-offset: -3px; }
.direction-btn.armed::after { content: " - tap again to go"; color: #f5d76e; }
.move-hint { font-size: 16px; margin-top: 8px; }

/* ---- Phones and small tablets -------------------------------------------- */
@media (max-width: 768px) {
    .game-wrap { height: 100vh; height: 100dvh; }

    /* Top bar: a swipeable row of stats, then a row of buttons. */
    .topbar {
        top: 8px; left: 8px; right: 8px;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .topbar-stats {
        overflow-x: auto;
        white-space: nowrap;
        gap: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .topbar-stats::-webkit-scrollbar { display: none; }
    /* Fade at the right edge: there are more stats to swipe to. */
    .topbar-stats { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
                    mask-image: linear-gradient(to right, #000 85%, transparent); }
    .topbar-stats .stat { flex: none; }
    .topbar-actions { gap: 6px; }
    .topbar-actions button { flex: 1 1 0; padding: 10px 4px; min-width: 0; }
    .topbar-actions #rollBtn { flex: 1.6 1 0; }

    /* Sidebar: a bottom sheet. Collapsed, only its handle shows. */
    .sidebar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        width: auto;
        max-height: 60vh; max-height: 60dvh;
        z-index: 1500;
        padding: 0 16px 16px;
        border-left: none;
        border-top: 1px solid #2a2e37;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -8px 24px #0008;
        transform: translateY(calc(100% - 48px));
        transition: transform 0.2s ease;
    }
    .sidebar.sheet-open { transform: none; }
    .sheet-handle {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1;
        width: calc(100% + 32px);
        margin: 0 -16px 12px;
        height: 48px;
        padding: 0 16px;
        border: none;
        border-radius: 12px 12px 0 0;
        background: #14161c;
        color: #e8e8e8;
        text-align: center;
        cursor: pointer;
    }
    .sheet-grip {
        display: block;
        width: 40px; height: 4px;
        margin: 0 auto 8px;
        border-radius: 2px;
        background: #555;
    }

    /* Keep map controls, the ad button and the direction picker clear of
       the collapsed sheet's handle. */
    .leaflet-bottom { bottom: 48px; }
    .ad-btn { left: 8px; bottom: 56px; }
    .overlay.dock { left: 8px; right: 8px; bottom: 56px; }
    .overlay.dock .card { width: 100%; max-height: 45vh; }

    #toasts { left: 8px; right: 8px; top: 120px; max-width: none; }

    .card { max-width: calc(100vw - 24px); padding: 20px; }
    .center-page { padding: 12px; }
    .center-page .card { width: 100%; max-width: 380px; }
    .city-grid { padding: 16px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Store sections, icons, the featured starter pack and skins. */
.store-icon { font-size: 32px; line-height: 32px; width: 40px; text-align: center; flex: none; }
.store-featured { border: 1px solid #f5d76e; border-radius: 8px; padding: 12px; background: #2a2614; }
.store-pass-note { color: #2ecc71; margin-top: 8px; }
.skin-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.card .skin-choice {   /* .card scoped: plain .card buttons are full-width and blue */
    width: 44px; height: 44px; padding: 0;
    font-size: 24px; line-height: 24px;
    background: #22262f; border: 2px solid #333; border-radius: 8px; cursor: pointer;
}
.card .skin-choice.equipped { border-color: #2ecc71; }
.card .skin-choice:hover { background: #2c313c; }
.other-marker { font-size: 22px; line-height: 26px; text-align: center; }
.me-marker { font-size: 24px; line-height: 28px; text-align: center; filter: drop-shadow(0 0 4px #f5d76e); }

/* Daily check-in */
.daily-card { text-align: center; }
.daily-icon { margin: 8px 0 16px; font-size: 64px; line-height: 64px; }
#dailyText { line-height: 20px; margin-bottom: 16px; }
#dailyDone { background: #1f6f43; }

/* ---- Home page: vintage travel-poster cities ------------------------------- */
.home { max-width: 1200px; margin: 0 auto; padding: 0 16px 32px; }
.home-header { padding: 24px 0 8px; }
.home-header h1 { margin: 0 0 8px; }
.poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    border: 4px solid #efe7d4;
    background: linear-gradient(to bottom, var(--sky-top), var(--sky-mid) 55%, var(--sky-bottom));
    color: #f3ead6;
    text-decoration: none;
    box-shadow: 0 8px 24px #0008;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-align: center;
}
.poster:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #000a; }
.poster-title {
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 0 #0000002e;
}
/* The city name sits in front of the skyline. */
.poster-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.poster-banner { aspect-ratio: 1200 / 420; margin: 8px 0 32px; }
.poster-banner .poster-title { font-size: 160px; line-height: 160px; padding-top: 16px; }
.poster-cta {
    position: absolute; z-index: 3; left: 24px; bottom: 24px;
    background: #e74c3c; color: #fff; border: 2px solid #efe7d4; border-radius: 6px; padding: 10px 20px;
}
.poster-banner:hover .poster-cta { background: #c0392b; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.poster-square { aspect-ratio: 1; width: 100%; }
.poster-square .poster-title { font-size: 48px; line-height: 48px; padding: 16px 8px 0; }
.poster-footer {
    position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
    color: #e8e8e8;
}
.poster-footer .badge { background: #14161ccc; }
.poster-footer .badge.play { background: #1f6f43; }
.poster-footer .vote-result { padding: 4px 8px; border-radius: 12px; background: #14161ccc; }
.poster-footer .vote-bar { flex-basis: 100%; margin: 0; background: #14161ccc; }
.poster-square.my-vote { border-color: #2ecc71; }
.vote-section h2 { margin: 0 0 8px; }
.vote-section .muted { margin-bottom: 16px; }

/* Each city's sky. */
.poster[data-city="nyc"] { --sky-top: #86b7b3; --sky-mid: #b6d2c9; --sky-bottom: #e8ebdc; }
.poster[data-city="chicago"] { --sky-top: #7fa9c2; --sky-mid: #b5ccd6; --sky-bottom: #e6e9df; }
.poster[data-city="london"] { --sky-top: #93a5b5; --sky-mid: #c2cbd0; --sky-bottom: #ebe6d8; }
.poster[data-city="paris"] { --sky-top: #a7c3cc; --sky-mid: #e6d3b8; --sky-bottom: #f3e3c8; }
.poster[data-city="tokyo"] { --sky-top: #e3a58f; --sky-mid: #f0c7ae; --sky-bottom: #f6e5d0; }
.poster[data-city="los-angeles"] { --sky-top: #e07b5f; --sky-mid: #f2a964; --sky-bottom: #f7d9a6; }

@media (max-width: 768px) {
    .poster-banner { aspect-ratio: 4 / 3; }
    .poster-banner .poster-title { font-size: 80px; line-height: 80px; padding-top: 16px; }
    .poster-cta { left: 50%; transform: translateX(-50%); bottom: 16px; }
    .poster-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .poster-square .poster-title { font-size: 32px; line-height: 32px; padding-top: 12px; }
}
