/* Native XenForo colours and button classes remain authoritative. */
#edd-app .edd-community-deck{display:none!important}
#edd-app .edd-browser{min-height:0;overflow:visible}
#edd-app .edd-browser .edd-panel-content{overflow:visible;overscroll-behavior:auto;max-height:none;min-height:0}
#edd-app .edd-polish-hero,#edd-app .edd-polish-card,#edd-app .edd-polish-record,#edd-app .edd-polish-encounter{border:1px solid color-mix(in srgb,currentColor 17%,transparent);border-radius:12px;background:color-mix(in srgb,currentColor 3%,transparent)}
#edd-app .edd-polish-hero{padding:18px;margin:0 0 15px}
#edd-app .edd-polish-hero>small{font-size:10px;letter-spacing:.12em;opacity:.7;font-weight:750}
#edd-app .edd-polish-hero h3{font-size:21px;margin:4px 0 7px}
#edd-app .edd-polish-hero p{max-width:62ch;font-size:13px;margin:0 0 12px}
#edd-app .edd-polish-pills{display:flex;gap:8px;flex-wrap:wrap}
#edd-app .edd-polish-pills span{border:1px solid color-mix(in srgb,currentColor 19%,transparent);border-radius:7px;padding:6px 10px;font-size:12px}
#edd-app .edd-polish-card{padding:16px;min-width:0;margin:0 0 14px}
#edd-app .edd-polish-card>h3:first-child{font-size:17px;margin:0 0 8px}
#edd-app .edd-polish-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start}
#edd-app .edd-polish-empty{padding:22px 12px;border:1px dashed color-mix(in srgb,currentColor 22%,transparent);border-radius:10px;text-align:center;margin:12px 0}
#edd-app .edd-polish-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 15px}
#edd-app .edd-polish-record{padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
#edd-app .edd-polish-record small{opacity:.75}
#edd-app .edd-polish-record strong{font-size:20px;overflow-wrap:anywhere}
#edd-app .edd-polish-shortcuts{margin:10px 0}
#edd-app .edd-polish-previewline{padding:9px 0;border-bottom:1px solid color-mix(in srgb,currentColor 13%,transparent)}
#edd-app .edd-polish-previewline:last-of-type{border:0}
#edd-app .edd-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 16px}
#edd-app .edd-filters label{font-size:12px}
#edd-app .edd-board-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:12px 5px;border-bottom:1px solid color-mix(in srgb,currentColor 14%,transparent);font-size:13px}
#edd-app .edd-board-row strong{margin-left:0;font-size:13px}
#edd-app .edd-place{width:28px;height:28px;border-radius:50%;border:1px solid color-mix(in srgb,currentColor 22%,transparent);display:grid;place-items:center}
#edd-app .edd-event{padding:14px;margin:10px 0;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:10px;background:transparent}
#edd-app .edd-event>strong{font-size:15px}
#edd-app .edd-event-bar{height:10px;margin:11px 0;border-radius:8px}
#edd-app .edd-event button{margin-top:10px}
#edd-app .edd-feed-row{padding:13px 3px;gap:6px;font-size:12px}
#edd-app .edd-comment{margin:10px 0;border:1px solid color-mix(in srgb,currentColor 15%,transparent);padding:13px;border-radius:9px}
#edd-app .edd-comment>div{align-items:center}
#edd-app .edd-comment-form{border:1px solid color-mix(in srgb,currentColor 15%,transparent);padding:15px;border-radius:10px}
#edd-app .edd-comment-form textarea{min-height:95px}
#edd-app .edd-polish-section{margin:20px 0}
#edd-app .edd-polish-section>h3{font-size:17px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid color-mix(in srgb,currentColor 13%,transparent)}
#edd-app .edd-polish-encounters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#edd-app .edd-polish-encounter{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:13px;padding:15px;align-items:start}
#edd-app .edd-polish-encounter h4{font-size:15px;margin:0 0 7px}
#edd-app .edd-polish-encounter p{font-size:12px;margin:0 0 11px}
#edd-app .edd-polish-encounter dl{display:grid;gap:6px;margin:0;font-size:12px}
#edd-app .edd-polish-encounter dl>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid color-mix(in srgb,currentColor 10%,transparent)}
#edd-app .edd-polish-encounter dd{font-weight:700;margin:0;text-align:right}
/* Encounter material illustration is game artwork, not a site-theme override. */
#edd-app .edd-polish-encart{position:relative;width:68px;height:73px;--ore:#b07b4f;border-radius:12px;background:radial-gradient(circle at 28% 15%,color-mix(in srgb,var(--ore) 70%,white),var(--ore) 60%,color-mix(in srgb,var(--ore) 40%,black));box-shadow:inset 0 2px 4px #fff6,inset 0 -10px 16px #0006,0 4px 12px #0005}
#edd-app .edd-polish-encart i{position:absolute;left:15px;top:19px;width:38px;height:38px;border-radius:32% 38% 27% 27%;background:linear-gradient(130deg,#b5cbd6,var(--ore) 55%,#273b4b);box-shadow:0 4px 6px #0007}
#edd-app .edd-polish-encart b{position:absolute;left:25px;top:34px;width:7px;height:7px;border-radius:3px;background:#d4f6ff;box-shadow:15px 0 #d4f6ff,0 0 9px #c6f7ff}
#edd-app .edd-polish-hazard i{clip-path:polygon(50% 0,76% 30%,58% 50%,84% 100%,18% 100%,45% 50%,21% 29%);height:48px;top:12px}
#edd-app .edd-polish-hazard b{display:none}
#edd-app .edd-polish-boss i{width:49px;height:49px;left:9px;top:14px;clip-path:polygon(0 20%,20% 20%,20% 0,80% 0,80% 20%,100% 20%,100% 100%,0 100%)}
@media(max-width:860px){#edd-app .edd-polish-columns,#edd-app .edd-polish-encounters{grid-template-columns:1fr}#edd-app .edd-polish-records{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}}
@media(max-width:600px){#edd-app .edd-filters{grid-template-columns:1fr}#edd-app .edd-polish-card,#edd-app .edd-polish-hero{padding:11px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){#edd-app .edd-browser{overflow:hidden}#edd-app .edd-browser .edd-panel-content{overflow:auto;min-height:0;overscroll-behavior:auto}#edd-app .edd-polish-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* EGGY_DEEPDIG_HALL_PREGAME_100 */
/* Layout only: no site-specific colours or button palette. */

/* Hall of Fame: compact record presentation. */
#edd-app .edd-hall-summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px 16px;
    margin:0 0 12px;
    font-size:12px;
    opacity:.82;
}

#edd-app .edd-polish-records {
    gap:9px;
    margin-bottom:12px;
}

#edd-app .edd-polish-record {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:11px 13px;
    min-width:0;
    margin:0;
}

#edd-app .edd-polish-record strong {
    font-size:clamp(16px,2vw,19px);
    line-height:1.25;
    margin:0;
}

#edd-app .edd-polish-record small {
    font-size:11px;
}

#edd-app .edd-member {
    display:inline-flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    min-width:0;
    max-width:100%;
}

#edd-app a.edd-person {
    display:inline;
    min-width:0;
    max-width:100%;
    padding:0;
    border:0;
    box-shadow:none;
    background:none;
    font-size:inherit;
    font-weight:600;
    line-height:1.4;
    overflow-wrap:anywhere;
    text-decoration:none;
}

#edd-app a.edd-person:hover {
    text-decoration:underline;
}

#edd-app .edd-miner-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:0;
    padding:2px 5px;
    font-size:11px;
    line-height:1.2;
    flex:0 0 auto;
}

#edd-app .edd-hall-heading {
    font-size:15px;
    line-height:1.35;
    margin:0 0 8px;
}

#edd-app .edd-hall-list .edd-board-row {
    padding:8px 3px;
    gap:8px;
    min-height:0;
}

#edd-app .edd-hall-list .edd-place {
    width:25px;
    height:25px;
    min-width:25px;
    font-size:11px;
}

#edd-app .edd-board-row .edd-member {
    min-width:0;
}

#edd-app .edd-board-row > strong {
    white-space:nowrap;
}

#edd-app .edd-polish-card:has(.edd-hall-heading) {
    padding:12px 14px;
    margin-bottom:0;
}

/* Pre-game: completely cover the striped canvas behind it. */
#edd-app .edd-cave:not(.is-active) .edd-empty {
    box-sizing:border-box;
    background:inherit;
    isolation:isolate;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:auto;
    touch-action:pan-y;
    justify-content:safe center;
    align-items:center;
    gap:clamp(9px,1.5vw,15px);
    padding:clamp(16px,3vw,32px);
}

/* Subtle framed welcome area, inheriting current style. */
#edd-app .edd-cave:not(.is-active) .edd-empty::before {
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(560px,calc(100% - 30px));
    height:min(355px,calc(100% - 24px));
    border:1px solid color-mix(in srgb,currentColor 16%,transparent);
    border-radius:16px;
    background:color-mix(in srgb,currentColor 3%,transparent);
    pointer-events:none;
    z-index:0;
}

#edd-app .edd-cave:not(.is-active) .edd-empty > * {
    position:relative;
    z-index:1;
}

#edd-app .edd-cave:not(.is-active) .edd-empty h2 {
    width:min(100%,465px);
    max-width:100%;
    font-size:clamp(19px,2.8vw,27px);
    line-height:1.2;
    margin:0;
    overflow-wrap:normal;
    text-wrap:balance;
}

#edd-app .edd-cave:not(.is-active) .edd-empty p {
    width:min(100%,440px);
    max-width:100%;
    font-size:13px;
    line-height:1.55;
    margin:0;
    text-wrap:pretty;
}

#edd-app .edd-cave:not(.is-active) .edd-startbuttons {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    max-width:100%;
    margin-top:4px;
}

@media(max-width:560px) {
    #edd-app .edd-polish-records {
        grid-template-columns:1fr;
        gap:8px;
    }

    #edd-app .edd-polish-record {
        padding:10px 12px;
    }

    #edd-app .edd-cave:not(.is-active) .edd-empty {
        padding:14px;
        gap:10px;
    }

    #edd-app .edd-cave:not(.is-active) .edd-empty p {
        font-size:12px;
    }
}

@media (orientation:landscape) and (max-height:440px) {
    #edd-app .edd-cave:not(.is-active) .edd-empty {
        padding:10px 15px;
        gap:5px;
    }

    #edd-app .edd-cave:not(.is-active) .edd-empty h2 {
        font-size:19px;
    }

    #edd-app .edd-cave:not(.is-active) .edd-empty p {
        line-height:1.3;
        font-size:11px;
    }
}


/* EGGY_DEEPDIG_PREGAME_CROSSHAIR_FIX_100 */
/* Hide the pre-expedition guide rectangle/crosshair only while inactive. */
#edd-app .edd-cave:not(.is-active) .edd-crosshair{
    display:none!important;
}


/* EGGY_DD_SUPPLY_AVAILABILITY_100 */
#edd-app .edd-card-buy:disabled {
    opacity: .46 !important;
    filter: grayscale(.75) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

#edd-app .edd-card-info .edd-purchase-hint {
    display: block;
    margin-top: 5px;
    opacity: .85;
    font-weight: 600;
    line-height: 1.4;
}
