/* expand button on each card (was a GitHub link) */
button.proj-open {
    padding: 0;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}
button.proj-open:hover {
    transform: scale(1.08);
}
.proj-all-row {
    display: flex;
    justify-content: center;
    margin: 8px 0 6px;
}
.proj-all-btn,
.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(115, 108, 157, 0.16);
    border: 1px solid rgba(150, 142, 205, 0.4);
    color: #e4e1fa;
    font: 500 13.5px/1 inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.proj-all-btn:hover,
.pm-btn:hover {
    background: rgba(150, 142, 205, 0.3);
    border-color: rgba(190, 183, 240, 0.7);
    color: #fff;
}
a.pm-btn:visited {
    color: #e4e1fa;
}

/* modal shell */
.pm {
    border: 0;
    padding: 0;
    margin: auto;
    width: min(880px, calc(100vw - 32px));
    max-height: min(88vh, 900px);
    background: transparent;
    color: #fff;
    overflow: visible;
}
.pm::backdrop {
    background: rgba(5, 4, 14, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pm[open] {
    animation: pm-in 0.28s ease;
}
.pm[open]::backdrop {
    animation: pm-fade 0.28s ease;
}
@keyframes pm-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes pm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pm-panel {
    position: relative;
    max-height: min(88vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    background: #0d0c1d;
    border: 1px solid rgba(115, 108, 157, 0.55);
    border-radius: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 142, 205, 0.4) transparent;
}
.pm-x,
.pm-back {
    position: absolute;
    top: 18px;
    z-index: 3;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(150, 142, 205, 0.45);
    background: rgba(13, 12, 29, 0.7);
    backdrop-filter: blur(6px);
    color: #e4e1fa;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.pm-x {
    right: 18px;
    width: 36px;
    display: grid;
    place-items: center;
    padding: 0;
}
.pm-x svg {
    width: 14px;
    height: 14px;
}
.pm-back {
    left: 18px;
    padding: 0 14px;
    font-size: 13px;
}
.pm-x:hover,
.pm-back:hover {
    background: rgba(150, 142, 205, 0.35);
    color: #fff;
}

/* detail view */
.pm-hero {
    position: relative;
    height: clamp(170px, 30vw, 260px);
    overflow: hidden;
}
.pm-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 12, 29, 0.1) 0%, #0d0c1d 100%);
}
.pm-body {
    position: relative;
    margin-top: -48px;
    padding: 0 clamp(20px, 5vw, 44px) clamp(24px, 4vw, 38px);
    z-index: 1;
}
.pm-eyebrow {
    color: #8f8da6;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pm-title {
    margin: 6px 0 0;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.pm-tagline {
    margin: 10px 0 0;
    color: #dcdce6;
    font-size: 16px;
    line-height: 1.4;
}
.pm-sec {
    margin-top: 28px;
}
.pm-sec h3 {
    margin: 0 0 10px;
    color: #8f8da6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pm-sec p {
    margin: 0;
    color: #d3d2e0;
    font-size: 15px;
    line-height: 1.6;
}
.pm-sec ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}
.pm-sec li {
    position: relative;
    padding-left: 20px;
    color: #d3d2e0;
    font-size: 15px;
    line-height: 1.5;
}
.pm-sec li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: rgba(150, 142, 205, 0.75);
}
.pm .proj-langs,
.pm .proj-bar {
    max-width: 100%;
}
.pm .proj-bar {
    margin-top: 12px;
}
.pm .proj-tools {
    gap: 10px 12px;
}
.pm .proj-tools img {
    width: 28px;
    height: 28px;
}
.pm-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

/* all-projects view */
.pm-all {
    padding: 28px clamp(18px, 4vw, 36px) 32px;
}
.pm-all h2 {
    margin: 0;
    padding-right: 48px;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.pm-all > p {
    margin: 6px 0 22px;
    color: #8f8da6;
    font-size: 14px;
}
.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.pm-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(115, 108, 157, 0.45);
    background: #131228;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.pm-tile:hover,
.pm-tile:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(150, 142, 205, 0.75);
    box-shadow: 0 14px 28px -16px rgba(115, 108, 157, 0.7);
    outline: none;
}
.pm-tile-img {
    height: 110px;
    overflow: hidden;
}
.pm-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
.pm-tile:hover .pm-tile-img img {
    transform: scale(1.06);
}
.pm-tile-body {
    padding: 14px 16px 16px;
}
.pm-tile-year {
    color: #8f8da6;
    font-size: 11px;
    letter-spacing: 0.14em;
}
.pm-tile-name {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.pm-tile-desc {
    margin-top: 6px;
    color: #c4c3d4;
    font-size: 13px;
    line-height: 1.4;
}
.pm-tile .proj-langs {
    margin-top: 10px;
}

@media (max-width: 450px) {
    .pm {
        width: calc(100vw - 20px);
    }
    .pm-panel {
        border-radius: 24px;
    }
    .pm-grid {
        grid-template-columns: 1fr;
    }
}
body.pm-lock {
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .pm[open],
    .pm[open]::backdrop {
        animation: none;
    }
}

/* detail view: everything fits the viewport, no scrolling in either direction */
.pm-panel.is-detail {
    overflow: hidden;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
}
.pm {
    max-height: 92vh;
    max-height: 92dvh;
}
.is-detail .pm-hero {
    flex: 0 1 auto;
    height: clamp(70px, 20vh, 200px);
    min-height: 0;
}
.is-detail .pm-body {
    margin-top: -36px;
    padding-bottom: clamp(16px, 3vh, 32px);
    overflow: hidden;
    min-width: 0;
}
.is-detail .pm-title {
    font-size: clamp(22px, 4.2vh, 34px);
}
.is-detail .pm-tagline {
    margin-top: 6px;
    font-size: clamp(14px, 2vh, 16px);
}
.is-detail .pm-sec {
    margin-top: clamp(12px, 2.4vh, 24px);
    min-width: 0;
}
.is-detail .pm-sec h3 {
    margin-bottom: 6px;
}
.is-detail .pm-sec p,
.is-detail .pm-sec li {
    font-size: clamp(13px, 1.9vh, 15px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.is-detail .pm-sec ul {
    gap: clamp(4px, 1vh, 9px);
}
.pm-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0 28px;
}
.is-detail .proj-langs {
    margin-top: 0;
    font-size: 13px;
}
.is-detail .proj-bar {
    width: 100%;
    margin-top: 10px;
}
.is-detail .pm-foot {
    margin-top: clamp(14px, 2.6vh, 26px);
}
.is-detail .pm-x,
.is-detail .pm-back {
    top: 14px;
}

@media (max-width: 600px) {
    .pm-row { grid-template-columns: 1fr; }
    .pm-row .pm-sec + .pm-sec { margin-top: clamp(10px, 2vh, 16px); }
    .is-detail .proj-tools img { width: 24px; height: 24px; }
}

/* consistent frame: every project preview is the same size, footer pinned to the bottom */
.pm-panel {
    overflow-x: hidden;
}
.pm-panel.is-detail {
    height: min(660px, 92vh);
    height: min(660px, 92dvh);
}
.is-detail .pm-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.is-detail .pm-foot {
    margin-top: auto;
    padding-top: clamp(12px, 2vh, 22px);
}
.is-detail .pm-row {
    margin-top: clamp(12px, 2.4vh, 24px);
}
.is-detail .pm-row .pm-sec {
    margin-top: 0;
}
.is-detail .pm-hero {
    flex: 0 0 auto;
}
.is-detail .proj-tools,
.is-detail .proj-langs {
    max-width: 100%;
}

/* fit levels, applied identically to every project preview */
.fit-1 .pm-hero { height: 80px; }
.fit-2 .pm-hero { height: 80px; }
.fit-2 .pm-sec li:nth-child(n+4) { display: none; }
.fit-3 .pm-hero { display: none; }
.fit-3 .pm-body { margin-top: 0; padding-top: 56px; }
.fit-3 .pm-sec li:nth-child(n+4) { display: none; }
.fit-4 .pm-hero { display: none; }
.fit-4 .pm-body { margin-top: 0; padding-top: 56px; }
.fit-4 .pm-sec li:nth-child(n+3) { display: none; }
.fit-5 .pm-hero { display: none; }
.fit-5 .pm-body { margin-top: 0; padding-top: 56px; }
.fit-5 .pm-sec li:nth-child(n+3) { display: none; }
.fit-5 .pm-sec p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- MMA fight night: the whole section is the octagon ---- */
.fc-arena {
    --ch: 140px;
    --cage: 22px;
    --ch-in: calc(var(--ch) - var(--cage) * 0.42);
    position: relative;
    margin-top: 14px;
    padding: calc(var(--cage) + 18px) calc(var(--cage) + 6px) calc(var(--cage) + 44px);
    color: #fff;
    /* black chain-link cage */
    background:
        repeating-linear-gradient(45deg, rgba(190, 188, 225, 0.4) 0 1.3px, transparent 1.3px 7px),
        repeating-linear-gradient(-45deg, rgba(190, 188, 225, 0.4) 0 1.3px, transparent 1.3px 7px),
        #0b0b14;
    clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch));
}
/* the canvas floor, in the site's night purple */
.fc-arena::before {
    content: "";
    position: absolute;
    inset: var(--cage);
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(255, 255, 255, 0.07) 46.5% 47.3%, transparent 47.8%),
        radial-gradient(ellipse at 50% 45%, #2c2a4d, #15142a 80%);
    box-shadow: inset 0 0 0 2px rgba(190, 188, 225, 0.3), inset 0 0 50px rgba(0, 0, 0, 0.5);
    clip-path: polygon(var(--ch-in) 0, calc(100% - var(--ch-in)) 0, 100% var(--ch-in), 100% calc(100% - var(--ch-in)), calc(100% - var(--ch-in)) 100%, var(--ch-in) 100%, 0 calc(100% - var(--ch-in)), 0 var(--ch-in));
}
.fc-arena > * { position: relative; z-index: 1; }
/* corner pads on the cage: red corner top-left, blue corner top-right */
.fc-post {
    position: absolute !important;
    top: calc(var(--ch) / 2 - 23px);
    width: 20px;
    height: 46px;
    border-radius: 7px;
    z-index: 3 !important;
}
.fc-post.red  { left: calc(var(--ch) / 2 - 10px); transform: rotate(-45deg); background: #d3202f; box-shadow: 0 0 0 2px #7d0f19; }
.fc-post.blue { right: calc(var(--ch) / 2 - 10px); transform: rotate(45deg); background: #2f6fdb; box-shadow: 0 0 0 2px #163d80; }

.fc-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    padding: 0 40px;
    margin-bottom: 6px;
}
.fc-title { display: flex; align-items: center; gap: 10px; }
.fc-ufc {
    padding: 2px 12px 3px;
    background: #d3202f;
    color: #fff;
    font: italic 800 30px/1 "Barlow Condensed", "Geist", sans-serif;
    letter-spacing: 0.06em;
    transform: skewX(-8deg);
}
.fc-night {
    color: #fff;
    font: italic 800 26px/1 "Barlow Condensed", "Geist", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.fc-vs {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.fc-vs b:first-child { color: #ff6b76; }
.fc-vs b:last-child { color: #7fb0ff; }
.fc-vs em { color: #fff; font-style: normal; font-weight: 800; font-size: 11px; }
.fc-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 14px;
    color: #b9b8d0;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.fc-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #d3202f;
    color: #fff;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.16em;
}
.fc-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: fc-pulse 1.4s ease-in-out infinite;
}
@keyframes fc-pulse { 50% { opacity: 0.25; } }
.fc-arena .proj-wrap { margin-top: 6px; }

/* a handful of sponsor ads printed around the canvas, one per side */
.ad-panel {
    position: absolute !important;
    z-index: 0 !important;
    pointer-events: none;
}
.ad-panel span {
    display: block;
    padding: 3px 10px;
    border-radius: 2px;
    font: italic 800 12px/1.1 "Barlow Condensed", "Geist", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.9;
}
.ad-panel .g { background: #1f8f4e; color: #fff; }
.ad-panel .k { background: #0b0b14; color: #ffd54a; }
.ad-panel .b { background: #2f6fdb; color: #fff; }
.ad-panel .r { background: #d3202f; color: #fff; }
.ad-panel .y { background: #ffd54a; color: #101016; }
.ad-panel .w { background: #e8e8f2; color: #101016; }
.ad-panel.bm { bottom: calc(var(--cage) + 8px); left: 50%; transform: translateX(-50%); }
.ad-panel.l { left: 74px; top: 47%; transform: translate(-50%, -50%) rotate(-90deg); }
.ad-panel.r { right: 74px; top: 38%; transform: translate(50%, -50%) rotate(90deg); }
.ad-panel.tl, .ad-panel.bl { left: calc(var(--ch) / 2 + 46px); }
.ad-panel.tr, .ad-panel.br { right: calc(var(--ch) / 2 + 46px); }
.ad-panel.tl, .ad-panel.tr { top: calc(var(--ch) / 2 + 46px); }
.ad-panel.bl, .ad-panel.br { bottom: calc(var(--ch) / 2 + 46px); }
.ad-panel.tl { transform: translate(-50%, -50%) rotate(-45deg); }
.ad-panel.tr { transform: translate(50%, -50%) rotate(45deg); }
.ad-panel.bl { transform: translate(-50%, 50%) rotate(45deg); }
.ad-panel.br { transform: translate(50%, 50%) rotate(-45deg); }

/* broadcast chyron under the carousel, after the reference screenshot: weight-class tab, flat grey bar, number badge + surname | MMA clock | surname, round ticks */
.fc-chyron {
    width: min(366px, calc(100% - 72px));
    margin: 2px auto 10px;
    color: #fff;
    text-transform: uppercase;
}
.fcy-tab {
    width: max-content;
    max-width: 90%;
    margin: 0 auto;
    padding: 4px 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(32, 33, 36, 0.92);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
}
.fcy-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    min-height: 32px;
    margin-top: 5px;
    background: rgba(66, 68, 72, 0.92);
}
.fcy-side {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    min-width: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
}
.fcy-side b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcy-side.r { justify-content: flex-end; }
.fcy-side i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 11px;
    height: 11px;
    border-radius: 1px;
    background: #c9ccce;
    color: #34363a;
    font: 700 7.5px/1 "Geist", sans-serif;
}
.fcy-side i { min-width: 11px; padding: 0 2px; box-sizing: border-box; width: auto; }
.fcy-side i.champ { background: #ffd54a; color: #1b1500; box-shadow: 0 0 6px rgba(255, 213, 74, 0.6); }
.fcy-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: rgba(30, 31, 34, 0.96);
}
.fcy-mid em {
    font: italic 800 20px/1 "Barlow Condensed", "Geist", sans-serif;
    letter-spacing: 0.03em;
    transform: skewX(-6deg);
}
.fcy-mid span {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}
.fcy-rounds {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
}
.fcy-rounds i {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.22);
}
.fcy-rounds i.on { background: #e9eaec; }

/* cards sit on the canvas as bout cards, edged in the fighter's corner colour */
.projects { counter-reset: bout; }
.projects .project {
    --corner: #d3202f;
    counter-increment: bout;
    border: 1px solid color-mix(in srgb, var(--corner) 60%, transparent);
    border-radius: 24px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--corner) 16%, var(--card)) 0%, var(--card) 45%);
}
.projects .project:nth-child(even) { --corner: #3a7be0; }
.projects .project:first-child { --corner: #ffd54a; border-color: #ffd54a; }
.projects .project.is-active:hover {
    border-color: var(--corner);
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--corner) 60%, transparent);
}

/* fight header: tier tag, bout number, year */
.fc-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 12px;
}
.fc-head::before {
    content: "BOUT " counter(bout, decimal-leading-zero);
    order: 1;
    color: #8f8da6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.fc-head .proj-eyebrow { order: 2; margin: 0; }
.fc-head .proj-eyebrow::before { content: "\00b7"; margin-right: 10px; }
.fc-tier {
    order: 0;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #e4e1fa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: none;
}
.fc-tier.main-event { background: #ffd54a; color: #1b1500; }
.fc-tier.main-event::before { content: "\2605  "; }
.fc-tier.main-card { background: #d3202f; color: #fff; }
.fc-tier.prelims { background: rgba(255, 255, 255, 0.16); }
.fc-tier.early { background: rgba(255, 255, 255, 0.07); color: #a9a7c2; }

@media (max-width: 600px) {
    .fc-arena { --ch: 58px; --cage: 10px; padding-left: calc(var(--cage) + 2px); padding-right: calc(var(--cage) + 2px); }
    .fc-banner { padding: 0 24px; }
    .ad-panel { display: none; }
    .fc-chyron { width: calc(100% - 30px); }
    .fcy-side { padding: 0 6px; gap: 5px; font-size: 9px; letter-spacing: 0.03em; }
    .fcy-mid { padding: 0 8px; gap: 6px; }
    .fcy-mid em { font-size: 17px; }
    .fcy-mid span { font-size: 14px; }
    .fcy-tab { font-size: 9px; padding: 3px 12px; }
    .fcy-rounds i { width: 16px; }
    .fc-ufc { font-size: 24px; }
    .fc-night { font-size: 20px; }
    .fc-vs { font-size: 11.5px; }
    .fc-post { width: 14px; height: 32px; }
    .fc-head { padding-right: 40px; }
    .fc-head .proj-eyebrow::before { display: none; }
    .fc-tier { font-size: 10px; letter-spacing: 0.1em; }
    .fc-head::before { font-size: 11px; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-live i { animation: none; }
}

/* the "view all" button stays noticeable on the floor: championship gold */
.fc-arena .proj-all-btn {
    padding: 12px 24px;
    background: #ffd54a;
    border-color: #fff1a8;
    color: #1b1500;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.6), 0 6px 18px -6px rgba(255, 213, 74, 0.55);
    animation: fc-call 2.4s ease-out infinite;
}
.fc-arena .proj-all-btn:hover { background: #ffe27a; border-color: #fff; color: #000; }
@keyframes fc-call {
    0%   { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.6), 0 6px 18px -6px rgba(255, 213, 74, 0.55); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(255, 213, 74, 0), 0 6px 18px -6px rgba(255, 213, 74, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .fc-arena .proj-all-btn { animation: none; }
}

/* phones: let the detail view grow to its content (up to the screen) so the GitHub button is never clipped */
@media (max-width: 600px) {
    .pm-panel.is-detail {
        height: auto;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
    }
    .is-detail .pm-body { flex: 0 1 auto; }
}
