body.page-heartbeat {
    background: #031a20;
}

html, body.bm-heartbeat-app { margin: 0; min-height: 100%; background: #031a20; }
body.bm-heartbeat-app.admin-bar { padding-top: 0; }

.bm-heartbeat-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: clamp(12px, 2.5vw, 36px);
    background:
        radial-gradient(circle at 50% 18%, rgba(22, 133, 137, 0.2), transparent 42%),
        #031a20;
    box-sizing: border-box;
}

.bm-heartbeat-hero { position:relative; width:min(100%,1060px); margin:0 auto 24px; }
.bm-heartbeat-hero .bm-heartbeat-poster { width:100%; }
.bm-heartbeat-nav { position:absolute; z-index:2; left:50%; top:34%; transform:translateX(-50%); display:flex; flex-direction:column; gap:18px; width:min(72%,430px); }
.bm-heartbeat-nav a, .bm-heartbeat-form button, .bm-heartbeat-login button { display:block; padding:18px 22px; border:2px solid rgba(244,160,28,.85); border-radius:14px; background:rgba(4,49,58,.92); color:#fff; font-size:clamp(20px,2.7vw,32px); font-weight:800; text-align:center; text-decoration:none; cursor:pointer; box-shadow:0 10px 28px rgba(0,0,0,.32); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.bm-heartbeat-nav a { opacity:0; animation:bmHeartbeatFadeUp .65s ease forwards; transition:background .2s ease, transform .2s ease; }
.bm-heartbeat-nav a:nth-child(1) { animation-delay:.15s; }
.bm-heartbeat-nav a:nth-child(2) { animation-delay:.35s; }
.bm-heartbeat-nav a:nth-child(3) { animation-delay:.55s; }
.bm-heartbeat-nav a:hover, .bm-heartbeat-nav a:focus-visible { background:#18b2b5; transform:scale(1.03); }
@keyframes bmHeartbeatFadeUp { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }
.bm-heartbeat-section { width:min(100%,1060px); margin:0 auto 24px; padding:clamp(20px,4vw,40px); border-radius:12px; background:#fff; color:#15252a; box-sizing:border-box; }
.bm-heartbeat-section h2 { margin-top:0; }
.bm-heartbeat-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.bm-heartbeat-fields label { display:grid; gap:6px; font-weight:700; }
.bm-heartbeat-fields input, .bm-heartbeat-fields select { width:100%; min-height:46px; padding:9px 11px; border:1px solid #9ba9ad; border-radius:6px; background:#fff; box-sizing:border-box; }
.bm-heartbeat-deadline { font-size:.92rem; }
.bm-heartbeat-message { padding:16px; border-radius:8px; }
.bm-heartbeat-success { background:#dff4e5; color:#145c2a; }
.bm-heartbeat-error { background:#fde5e2; color:#8f2118; }
.bm-heartbeat-teasers { display:grid; grid-template-columns:1fr 1fr; gap:24px; width:min(100%,1060px); }
.bm-heartbeat-teasers .bm-heartbeat-section { width:100%; }
.bm-heartbeat-coming-soon { opacity:.82; }
.bm-heartbeat-section details { padding:12px 0; border-top:1px solid #dfe5e7; }
.bm-heartbeat-section summary { font-weight:700; cursor:pointer; }
.bm-heartbeat-subpage { background-image:linear-gradient(rgba(3,26,32,.54),rgba(3,26,32,.88)),url("../images/heartbeat-2026-background.jpg"); background-size:cover; background-position:center top; background-attachment:fixed; }
.bm-heartbeat-subpage-shell { min-height:100vh; width:100%; padding:clamp(24px,6vw,80px) 20px; box-sizing:border-box; }
.bm-heartbeat-subpage-shell > * { margin-left:auto; margin-right:auto; }
.bm-heartbeat-back { display:block; width:min(100%,1060px); margin-bottom:18px; color:#fff; font-weight:800; text-decoration:none; }
.bm-heartbeat-placeholder { text-align:center; padding:clamp(30px,7vw,90px) 10px; }
.bm-heartbeat-login { max-width:600px; margin:auto; }
.bm-heartbeat-login form, .bm-heartbeat-login label { display:grid; gap:10px; }
.bm-heartbeat-login input { min-height:48px; padding:10px 12px; border:1px solid #9ba9ad; border-radius:7px; }
.bm-heartbeat-login button { margin-top:8px; }
.bm-heartbeat-scorecard-heading { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:28px; }
.bm-heartbeat-scorecard-heading h1 { margin:0 0 6px; }
.bm-heartbeat-scorecard-badges { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.bm-heartbeat-badge { display:inline-block; padding:6px 11px; border-radius:999px; background:#e8edef; color:#123b43; font-size:13px; font-weight:800; white-space:nowrap; }
.bm-heartbeat-final { background:#dff5e3; color:#22863a; }
.bm-heartbeat-boulder-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.bm-heartbeat-boulder { position:relative; display:grid; place-items:center; min-height:88px; border:2px solid #d8dfe1; border-radius:12px; background:#fff; color:#083b43; font-size:26px; font-weight:800; cursor:pointer; transition:.2s; }
.bm-heartbeat-boulder input { position:absolute; opacity:0; pointer-events:none; }
.bm-heartbeat-check { position:absolute; top:5px; right:9px; color:#fff; opacity:0; font-size:17px; }
.bm-heartbeat-boulder:has(input:checked) { border-color:#f4a01c; background:#0d4c56; color:#fff; }
.bm-heartbeat-boulder:has(input:checked) .bm-heartbeat-check { opacity:1; }
.bm-heartbeat-ranking-columns { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.bm-heartbeat-ranking-row { display:flex; justify-content:space-between; gap:12px; padding:12px 4px; border-bottom:1px solid #dfe5e7; }
.bm-heartbeat-ranking-row small { display:inline-block; margin-left:5px; padding:3px 7px; border-radius:999px; background:#dff5e3; color:#22863a; font-weight:800; }

.bm-heartbeat-poster {
    display: block;
    width: min(100%, 1060px);
    margin: 0 auto;
    line-height: 0;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.bm-heartbeat-poster img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .bm-heartbeat-page {
        padding: 0;
    }

    .bm-heartbeat-poster {
        width: 100%;
        box-shadow: none;
    }

    .bm-heartbeat-nav { top:38%; width:78%; gap:10px; }
    .bm-heartbeat-nav a { padding:11px 14px; border-radius:9px; font-size:17px; }
    .bm-heartbeat-fields, .bm-heartbeat-teasers { grid-template-columns:1fr; }
    .bm-heartbeat-scorecard-heading { display:block; }
    .bm-heartbeat-scorecard-badges { justify-content:flex-start; margin-top:14px; }
    .bm-heartbeat-boulder-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
    .bm-heartbeat-ranking-columns { grid-template-columns:1fr; }
    .bm-heartbeat-section { border-radius:0; }
}
