/* Bramble Market: parchment, bottle green and copper; scoped to this minigame. */
body.ph-open {
    overflow: hidden;
}
#btn-prop-hunt[hidden],
#prop-hunt-panel[hidden],
#ph-return[hidden],
#prop-hunt-panel [hidden] {
    display: none !important;
}
#prop-hunt-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: radial-gradient(ellipse at 77% 4%, #314b44 0, transparent 52%), #142823;
    color: #f3e9c9;
    overflow: auto;
    overscroll-behavior: contain;
    font:
        14px/1.45 system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color-scheme: dark;
    isolation: isolate;
}
#prop-hunt-panel * {
    box-sizing: border-box;
}
.ph-shell {
    max-width: 1450px;
    margin: auto;
    padding: clamp(12px, 2vh, 28px) clamp(14px, 3vw, 46px) 24px;
}
.ph-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: none !important;
    padding: 0 0 13px !important;
    margin: 0 0 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #8694824d !important;
    background: none !important;
    min-height: 0 !important;
}
.ph-brand {
    display: flex;
    gap: 13px;
    align-items: center;
}
.ph-brand small,
.ph-maphead small,
.ph-kicker,
#ph-blind small {
    font-weight: 750;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 2px;
    display: block;
    color: #adc29f;
}
.ph-brand h2,
.ph-maphead h3,
.ph-dossier h3,
#ph-blind h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.8px;
    color: inherit;
}
.ph-brand h2 {
    font-size: clamp(23px, 3.7vh, 36px);
    margin: 0;
    line-height: 1.12;
}
.ph-crest {
    color: #e8cda1;
    border: 1px solid #c5ad7b88;
    border-radius: 9px 9px 17px 17px;
    background: #344e43;
    box-shadow: inset 0 0 0 3px #284139;
    width: 39px;
    height: 42px;
    display: grid;
    place-items: center;
    font:
        29px Georgia,
        serif;
}
.ph-head nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ph-head button,
.ph-actions button,
#ph-return {
    font:
        650 12px/1.25 system-ui,
        sans-serif;
    cursor: pointer;
    border-radius: 6px;
    padding: 9px 12px;
    border: 1px solid #83978288;
    color: #efe9ce;
    background: #314a40;
}
.ph-head button:hover,
.ph-actions button:hover,
#ph-return:hover {
    filter: brightness(1.1);
}
.ph-head button:focus-visible,
.ph-actions button:focus-visible,
#ph-stick:focus-visible,
#ph-canvas:focus-visible,
#ph-return:focus-visible {
    outline: 2px solid #f9c77a;
    outline-offset: 2px;
}
.ph-head button:disabled,
.ph-actions button:disabled {
    opacity: 0.5;
    cursor: default;
}
.ph-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(210px, 20vw, 282px);
    align-items: start;
    gap: clamp(13px, 2vw, 26px);
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ph-game,
.ph-dossier {
    border-radius: 10px;
    overflow: hidden;
}
.ph-game {
    background: #223b32;
    border: 1px solid #82927a80;
    box-shadow: 0 14px 44px #0c1f2080;
}
.ph-maphead,
.ph-fieldfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ph-maphead {
    padding: 12px 17px;
    background: linear-gradient(105deg, #304d40, #223a32);
    border-bottom: 2px solid #aa946a;
}
.ph-maphead small {
    color: #c5cba4;
    font-size: 8px;
    letter-spacing: 1.6px;
}
.ph-maphead h3 {
    margin: 0;
    font-size: clamp(18px, 2.8vh, 26px);
    line-height: 1.1;
}
.ph-live {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ede2be;
}
.ph-live b {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #b3a87780;
    border-radius: 3px;
    padding: 5px 8px;
}
.ph-live strong {
    font-size: 21px;
    color: #ffdc95;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    text-align: right;
}
#ph-stage {
    position: relative;
    aspect-ratio: 1000/660;
    max-height: calc(100dvh - 183px);
    min-height: 180px;
    background: #34473c;
    overflow: hidden;
}
#ph-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
    outline-offset: -3px;
}
#ph-clue {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 58px);
    padding: 7px 10px;
    border: 1px solid #d1b478;
    border-radius: 6px;
    background: #233b35f5;
    color: #fff6da;
    font: 600 11px/1.25 system-ui, sans-serif;
    pointer-events: none;
}
#ph-clue[hidden] { display: none; }
#ph-clue-bearing { color: #ffda86; font-size: 19px; line-height: 1; }
#ph-clue small { display: block; color: #edd196; font-size: 9px; }
.ph-north {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #5e645149;
    border-radius: 50%;
    color: #4a635f;
    background: #f5ebcbde;
    font: 600 7px/0.9 system-ui;
    pointer-events: none;
}
.ph-north b {
    font-size: 14px;
    font-family: Georgia, serif;
}
.ph-dark .ph-north {
    display: none;
}
.ph-fieldfoot {
    padding: 9px 14px;
    color: #c8d1b8;
    font-size: 11px;
}
.ph-fieldfoot span:first-child {
    font-size: 9px;
    letter-spacing: 1.4px;
    font-weight: 700;
}
#ph-blind {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(95deg, #192824ed, #26342cde),
        url('/art/market-watch.webp') center/cover,
        #24382f;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff0ce;
}
#ph-blind > div {
    max-width: 360px;
    padding: 22px;
}
.ph-seal {
    display: grid;
    place-items: center;
    margin: 0 auto 19px;
    width: 67px;
    height: 67px;
    border: 1px solid #caaf72;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px #24382f,
        0 0 0 6px #b1996780;
    font:
        39px Georgia,
        serif;
    color: #f3d799;
}
#ph-blind small {
    color: #d8b77c;
    font-size: 8px;
}
#ph-blind h3 {
    margin: 8px 0;
    font-size: clamp(25px, 4.5vw, 44px);
}
#ph-blind p {
    font-size: 13px;
    margin: 4px 0;
    line-height: 1.6;
    color: #d1d4bf;
}
.ph-dossier {
    padding: 21px 18px;
    background: #f2ebd7;
    color: #233e34;
    box-shadow: 0 9px 24px #0d171b35;
    border-top: 3px solid #c49f5e;
}
.ph-kicker {
    color: #687c63;
    font-size: 8px;
    letter-spacing: 1.65px;
}
.ph-dossier h3 {
    font-size: 25px;
    line-height: 1.11;
    margin: 7px 0 10px;
}
.ph-dossier p {
    color: #4c6054;
    font-size: 12px;
    line-height: 1.55;
    margin: 8px 0;
}
.ph-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ph-tools:has(.ph-actions:empty) {
    display: none;
}
.ph-actions {
    width: 100%;
}
.ph-actions button {
    width: 100%;
    border-color: #4a7163;
    background: #2e5d50;
    color: #fff2d5;
    min-height: 37px;
    margin-top: 5px;
    text-align: left;
}
.ph-actions button[aria-pressed='true'] {
    background: #956341;
    border-color: #865431;
}
#ph-keys {
    color: #6b7568;
    font-size: 10px;
    line-height: 1.55;
}
.ph-results {
    border-top: 1px solid #c6cbb4;
    margin-top: 17px;
    padding-top: 14px;
}
#ph-scores {
    list-style: none;
    padding: 0;
    margin: 7px 0 0;
}
#ph-scores li {
    border-bottom: 1px solid #c9cebb66;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}
#ph-scores li:last-child {
    border-bottom: 0;
}
#ph-scores span {
    overflow-wrap: anywhere;
}
#ph-scores b {
    background: #dce4ce;
    border: 1px solid #becbae;
    text-align: center;
    border-radius: 12px;
    min-width: 24px;
    padding: 2px 5px;
    font: 700 11px system-ui;
    color: #305a46;
}
#ph-stick {
    position: relative;
    flex-shrink: 0;
    display: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid #a4b5a2;
    touch-action: none;
    background: radial-gradient(circle, #a9b9a555, #dce3c9 68%, #b0bea6 69%, #dbe2cc 75%);
    user-select: none;
}
#ph-stick i {
    position: absolute;
    left: calc(50% - 12px);
    top: calc(50% - 12px);
    background: #638b75;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    transform: translate(var(--stick-x, 0), var(--stick-y, 0));
    box-shadow: 0 2px 4px #304b3a4f;
}
#ph-stick span {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font: 750 7px system-ui;
    letter-spacing: 1px;
    color: #435d4c;
}
#ph-return {
    position: fixed;
    z-index: 210;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 4px 16px #0004;
}
@media (pointer: coarse) {
    #ph-stick {
        display: block;
    }
    .ph-head button,
    .ph-actions button {
        min-height: 40px;
    }
    .ph-actions button {
        font-size: 12px;
    }
    .ph-tools {
        margin-top: 8px;
    }
}
@media (max-width: 760px) {
    .ph-shell {
        padding: 10px 10px 20px;
    }
    .ph-head {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    .ph-head button {
        font-size: 11px;
        padding: 7px 9px;
    }
    .ph-brand {
        gap: 7px;
    }
    .ph-brand small {
        font-size: 7px;
        letter-spacing: 1.1px;
    }
    .ph-crest {
        width: 29px;
        height: 31px;
        font-size: 21px;
    }
    .ph-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ph-maphead {
        padding: 9px 11px;
    }
    .ph-fieldfoot {
        padding: 6px 10px;
    }
    .ph-dossier {
        padding: 15px;
    }
    .ph-dossier h3 {
        font-size: 21px;
    }
    .ph-tools {
        align-items: center;
        max-width: 400px;
    }
    .ph-results {
        margin-top: 12px;
    }
    .ph-actions {
        display: flex;
        gap: 6px;
    }
    .ph-actions > div {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .ph-actions button {
        margin: 0;
        text-align: center;
    }
    .ph-head nav {
        gap: 4px;
    }
    .ph-north {
        top: 7px;
        right: 7px;
    }
    .ph-head h2 {
        font-size: 22px;
    }
}
@media (orientation: landscape) and (max-height: 550px) {
    .ph-shell {
        padding: 6px 10px;
    }
    .ph-head {
        margin: 0 0 5px !important;
        padding: 0 0 5px !important;
    }
    .ph-head h2 {
        font-size: 17px;
    }
    .ph-head button {
        padding: 4px 7px;
        min-height: 26px;
    }
    .ph-brand small,
    .ph-crest,
    .ph-maphead small {
        display: none;
    }
    .ph-main {
        grid-template-columns: minmax(0, 1fr) 195px;
        gap: 8px;
    }
    .ph-maphead {
        padding: 4px 9px;
    }
    .ph-maphead h3 {
        font-size: 17px;
    }
    .ph-live strong {
        font-size: 17px;
    }
    .ph-live b {
        font-size: 8px;
        padding: 2px 5px;
    }
    #ph-stage {
        max-height: calc(100dvh - 99px);
        min-height: 130px;
    }
    .ph-fieldfoot {
        padding: 3px 8px;
    }
    .ph-dossier {
        padding: 10px;
    }
    .ph-dossier h3 {
        font-size: 19px;
    }
    .ph-dossier p {
        font-size: 10px;
        margin: 5px 0;
    }
    .ph-actions > div {
        display: block;
    }
    .ph-actions button {
        font-size: 10px;
        min-height: 30px;
        padding: 5px 6px;
        margin-top: 2px;
    }
    #ph-stick {
        width: 58px;
        height: 58px;
    }
    .ph-results {
        margin-top: 8px;
        padding-top: 5px;
    }
    #ph-scores li {
        padding: 2px 0;
        font-size: 10px;
    }
}
#ph-volume {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}
#ph-stage.ph-first-person {
    background: var(--ph-stage-color, #253c37);
}
.ph-reticle { display: none; }
.ph-first-person .ph-north { display: none; }
.ph-first-person .ph-reticle {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fffcf1;
    box-shadow: 0 0 0 1px #112024a6, 0 0 5px #00151980;
    pointer-events: none;
}
@media (max-width: 620px) and (orientation: portrait) {
    #ph-stage.ph-first-person { aspect-ratio: 1.2; }
}

.ph-camera-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ph-camera-tools button {
    font:
        650 11px/1.2 system-ui,
        sans-serif;
    color: #eee7ce;
    border: 1px solid #83978277;
    border-radius: 4px;
    background: #304b40;
    padding: 5px 9px;
    cursor: pointer;
}
.ph-camera-tools button:disabled {
    opacity: 0.55;
    cursor: default;
}
.ph-camera-tools button:focus-visible,
#ph-volume:focus-visible {
    outline: 2px solid #f9c77a;
    outline-offset: -2px;
}
@media (max-width: 440px) {
    .ph-fieldfoot {
        gap: 4px;
        flex-wrap: wrap;
    }
    .ph-camera-tools button {
        padding: 5px 7px;
    }
}
