/* Haunt-O-Meter: voting page (mobile-first) */
.hr-hom-container {
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}
.hr-hom-kicker {
    color: rgba(255, 180, 120, 0.95);
    letter-spacing: 0.08em;
}
.hr-hom-section {
    padding-bottom: 2.5rem;
}
.hr-hom-stage {
    position: relative;
}
.hr-hom-skel--photo {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.02) 37%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 400% 100%;
    animation: hr-hom-shimmer 1.4s ease-in-out infinite;
}
@keyframes hr-hom-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
.hr-hom-figure {
    margin: 0 auto 1rem;
    max-width: 100%;
}
.hr-hom-aspect {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--hr-orange-rgb), 0.15);
    background: #0a0608;
}
.hr-hom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hr-hom-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.hr-hom-meter-wrap {
    margin-top: 0.5rem;
}
.hr-hom-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}
.hr-hom-meter {
    position: relative;
    padding: 0.35rem 0 0.5rem;
}
.hr-hom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #8ec5ff 0%, #f4831b 45%, #ff3b3b 100%);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hr-hom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: radial-gradient(circle at 35% 30%, #fff 0%, #f4831b 35%, #3a1510 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 14px rgba(var(--hr-orange-rgb), 0.55);
    cursor: grab;
}
.hr-hom-range::-moz-range-thumb {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: radial-gradient(circle at 35% 30%, #fff 0%, #f4831b 35%, #3a1510 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    cursor: grab;
}
.hr-hom-range:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.05);
}
.hr-hom-hint {
    margin-top: 0.35rem;
}
.hr-hom-actions {
    text-align: center;
    margin-top: 0.75rem;
}
.hr-hom-empty {
    text-align: center;
    padding: 2rem 1rem;
}
.hr-hom-empty-ghost {
    font-size: 3rem;
    display: inline-block;
    animation: hr-hom-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(var(--hr-orange-rgb), 0.35));
}
@keyframes hr-hom-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hr-hom--pulse .hr-hom-aspect {
    animation: hr-hom-glow 0.45s ease-out 1;
}
@keyframes hr-hom-glow {
    0% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--hr-orange-rgb), 0.15); }
    50% { box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(var(--hr-orange-rgb), 0.55); }
    100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--hr-orange-rgb), 0.15); }
}

/* Showcase page */
.hr-hom-show-hero {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}
.hr-hom-show-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .hr-hom-show-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.hr-hom-show-card {
    border-radius: 16px;
    border: 1px solid var(--hr-border-light);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.1rem;
}
.hr-hom-show-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Haunted Crypt: Haunt-O-Meter upload (dropzone, crop modal, preview) */
.hr-hm-crypt-upload {
    position: relative;
}
.hr-hm-dropzone {
    position: relative;
    border: 2px dashed rgba(255, 140, 66, 0.45);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(165deg, rgba(20, 12, 18, 0.9), rgba(12, 8, 14, 0.95));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hr-hm-dropzone:hover,
.hr-hm-dropzone:focus {
    border-color: rgba(255, 140, 66, 0.75);
    box-shadow: 0 0 0 1px rgba(var(--hr-orange-rgb), 0.2), 0 8px 28px rgba(0, 0, 0, 0.35);
    outline: none;
}
.hr-hm-dropzone:focus-visible {
    outline: 2px solid var(--hr-orange);
    outline-offset: 3px;
}
.hr-hm-dropzone--active {
    border-color: rgba(255, 180, 120, 0.95);
    background: linear-gradient(165deg, rgba(40, 22, 28, 0.95), rgba(18, 10, 16, 0.98));
    box-shadow: 0 0 0 2px rgba(var(--hr-orange-rgb), 0.25);
}
.hr-hm-dropzone__icon {
    font-size: 2.25rem;
    color: rgba(255, 160, 110, 0.9);
    margin-bottom: 0.35rem;
}
.hr-hm-dropzone__title {
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 248, 240, 0.95);
}
.hr-hm-crop-modal {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.hr-hm-crop-wrap {
    max-height: 58vh;
    background: #0d0a0c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hr-hm-crop-img {
    display: block;
    max-width: 100%;
    max-height: 58vh;
}
.hr-hm-final-frame {
    aspect-ratio: 9 / 16;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    background: #0a0608;
}
.hr-hm-final-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hr-hm-progress .hr-hm-progress__bar {
    background: linear-gradient(90deg, #c44a12, var(--hr-orange));
    transition: width 0.15s ease-out;
}

/* Haunt-O-Meter public photo detail (share page) */
.hr-hm-photo-detail {
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}
.hr-hm-photo-detail__figure {
    max-width: 360px;
}
.hr-hm-photo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 380px) {
    .hr-hm-photo-stats {
        grid-template-columns: 1fr;
    }
}
.hr-hm-photo-stat {
    border: 1px solid var(--hr-border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.75rem 0.5rem;
    text-align: center;
}
.hr-hm-photo-stat__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.3rem;
}
.hr-hm-photo-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: rgba(255, 250, 245, 0.98);
}
.hr-hm-photo-stat__sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.1rem;
}
.hr-hm-photo-meta {
    border: 1px solid var(--hr-border-light);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 1rem 0.5rem;
    margin-bottom: 1.25rem;
}
.hr-hm-photo-meta__row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hr-hm-photo-meta__row:last-child {
    border-bottom: 0;
    padding-bottom: 0.35rem;
}
.hr-hm-photo-meta__icon {
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
    padding-top: 0.1rem;
    color: rgba(255, 160, 110, 0.9);
    font-size: 1rem;
}
.hr-hm-photo-meta__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 200, 170, 0.85);
    margin: 0 0 0.25rem;
}
.hr-hm-photo-meta__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}
.hr-hm-photo-meta__text a {
    font-weight: 600;
}
.hr-hm-photo-share {
    border-radius: 14px;
    border: 1px solid rgba(var(--hr-orange-rgb), 0.22);
    background: linear-gradient(160deg, rgba(36, 20, 16, 0.55), rgba(14, 10, 12, 0.72));
    padding: 1.15rem 1.2rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hr-hm-photo-share__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 235, 220, 0.95);
    margin: 0 0 0.5rem;
}
.hr-hm-photo-share__lead {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 auto 1rem;
    max-width: 22rem;
}
.hr-hm-photo-share__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.hr-hm-photo-share__ok {
    font-weight: 600;
}

/* Haunted Crypt: My uploads list */
.hr-hm-crypt-photos {
    margin-top: 0.25rem;
}
.hr-hm-crypt-photos__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}
.hr-hm-crypt-photos__subtitle {
    margin-bottom: 1rem;
    line-height: 1.45;
}
.hr-hm-crypt-photos__empty {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.12);
}
.hr-hm-crypt-photos__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hr-hm-crypt-photo-card {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 0.85rem 0.85rem 0.75rem;
    border: 1px solid var(--hr-border-light);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
}
.hr-hm-crypt-photo-card__media {
    flex-shrink: 0;
}
.hr-hm-crypt-photo-card__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.hr-hm-crypt-photo-card__thumb img {
    display: block;
    width: 72px;
    height: 128px;
    object-fit: cover;
}
.hr-hm-crypt-photo-card__thumb--muted {
    opacity: 0.72;
}
.hr-hm-crypt-photo-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.1rem;
}
.hr-hm-crypt-photo-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}
.hr-hm-crypt-photo-card__public {
    font-weight: 600;
    text-decoration: none;
}
.hr-hm-crypt-photo-card__public:hover {
    text-decoration: underline;
}
.hr-hm-crypt-photo-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}
.hr-hm-crypt-photo-card__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.8rem;
}
.hr-hm-crypt-photo-card__stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}
.hr-hm-crypt-photo-card__stat-val {
    font-weight: 700;
    color: rgba(255, 248, 240, 0.95);
}
.hr-hm-crypt-photo-card__note,
.hr-hm-crypt-photo-card__meta {
    line-height: 1.4;
}
.hr-hm-crypt-photo-card__actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.15rem;
}
.hr-hm-crypt-photo-card__remove {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.hr-hm-crypt-photo-card__remove:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--hr-orange-rgb), 0.45);
}
