/* snap-hunter — design system
   Mobile-first, photo-forward, modern. Dark theme by default. */

:root {
    --bg-0: #0b0f17;
    --bg-1: #11161f;
    --bg-2: #161c27;
    --bg-3: #1d2532;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e9edf3;
    --text-dim: #98a2b3;
    --text-mute: #6b7382;
    --accent: #ff6a3d;
    --accent-soft: rgba(255, 106, 61, 0.16);
    --accent-glow: rgba(255, 106, 61, 0.45);
    --accent-2: #ffd166;
    --good: #4ade80;
    --good-bg: rgba(74, 222, 128, 0.12);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.12);
    --bad: #f87171;
    --bad-bg: rgba(248, 113, 113, 0.14);
    --pending: #93a5cf;
    --pending-bg: rgba(147, 165, 207, 0.14);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', 'Inter', serif;

    --gradient-warm: linear-gradient(135deg, #ff6a3d 0%, #ffd166 100%);
    --gradient-cool: linear-gradient(135deg, #6c8cff 0%, #9b5cff 100%);
    --gradient-bg: radial-gradient(1200px 700px at 8% -10%, rgba(255, 106, 61, 0.18), transparent 60%),
                   radial-gradient(900px 600px at 95% 5%, rgba(108, 140, 255, 0.16), transparent 60%),
                   linear-gradient(180deg, #0b0f17 0%, #0a0d14 100%);
}

* { box-sizing: border-box; }

html {
    /* Solid dark base so iOS rubber-band overscroll never reveals white behind the body. */
    background-color: #0a0d14;
    overscroll-behavior-y: none;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* svh = small viewport height: a stable value that does NOT grow as iOS
       toolbars collapse, which avoids phantom overscroll space below the page. */
    min-height: 100svh;
    line-height: 1.45;
}

body {
    background: var(--gradient-bg);
    background-attachment: fixed;
    overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select, button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-dim); }

/* ---------- App shell ---------- */
.psh-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}
.psh-topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(11,15,23,0.92) 0%, rgba(11,15,23,0.7) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.psh-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.psh-brand-dot {
    width: 14px; height: 14px; border-radius: 999px;
    background: var(--gradient-warm);
    box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12), 0 0 22px var(--accent-glow);
}
.psh-brand-name { background: var(--gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

.psh-topbar-right { display: flex; align-items: center; gap: 10px; }
.psh-chip {
    padding: 6px 12px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}
.psh-iconbtn {
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-size: 1rem;
}
.psh-iconbtn:hover { background: var(--surface-strong); }
.psh-iconbtn:active { transform: scale(0.96); }

.psh-main {
    flex: 1;
    padding: 22px 18px 80px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}
.psh-footer {
    padding: 18px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-mute);
    border-top: 1px solid var(--border);
}

/* ---------- Buttons ---------- */
.psh-btn {
    appearance: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 0.08s, background 0.15s, border-color 0.15s, box-shadow 0.2s;
    text-decoration: none;
    min-height: 48px;
}
.psh-btn:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.psh-btn:active { transform: scale(0.98); }
.psh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.psh-btn-primary {
    background: var(--gradient-warm);
    color: #1a1206;
    border-color: transparent;
    box-shadow: 0 10px 30px var(--accent-glow);
}
.psh-btn-primary:hover { background: var(--gradient-warm); box-shadow: 0 14px 40px var(--accent-glow); }

.psh-btn-ghost { background: transparent; border-color: var(--border); }
.psh-btn-danger { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
.psh-btn-success { background: rgba(74, 222, 128, 0.18); border-color: rgba(74, 222, 128, 0.45); color: #bbf7d0; }

.psh-btn-block { width: 100%; }
.psh-btn-sm { padding: 9px 14px; font-size: 0.85rem; min-height: 36px; border-radius: 10px; }

/* ---------- Forms ---------- */
.psh-field {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
}
.psh-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.psh-input, .psh-textarea, .psh-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--bg-2);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.psh-input:focus, .psh-textarea:focus, .psh-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.psh-textarea { min-height: 92px; resize: vertical; }
.psh-input-code {
    text-align: center; font-size: 1.6rem;
    letter-spacing: 0.4em; text-transform: uppercase;
    font-weight: 700; padding: 18px;
}
.psh-error {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

/* ---------- Cards & surfaces ---------- */
.psh-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.psh-card-hero {
    background: linear-gradient(135deg, rgba(255,106,61,0.12) 0%, rgba(108,140,255,0.08) 100%),
                rgba(255,255,255,0.02);
    border: 1px solid rgba(255,106,61,0.25);
    padding: 28px;
}

.psh-stack { display: flex; flex-direction: column; gap: 12px; }
.psh-stack-lg { display: flex; flex-direction: column; gap: 22px; }
.psh-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.psh-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psh-grid { display: grid; gap: 14px; }
.psh-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Status pills ---------- */
.psh-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.psh-pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor;
}
.psh-pill-none { color: var(--text-mute); background: var(--surface); border-color: var(--border); }
.psh-pill-pending { color: var(--pending); background: var(--pending-bg); border-color: rgba(147,165,207,0.3); }
.psh-pill-approved { color: var(--good); background: var(--good-bg); border-color: rgba(74,222,128,0.3); }
.psh-pill-rejected { color: var(--bad); background: var(--bad-bg); border-color: rgba(248,113,113,0.3); }
.psh-pill-draft { color: var(--text-dim); background: var(--surface); border-color: var(--border); }
.psh-pill-active { color: var(--good); background: var(--good-bg); border-color: rgba(74,222,128,0.3); }
.psh-pill-ended { color: var(--text-dim); background: var(--surface-strong); border-color: var(--border); }

/* ---------- Question / submission cards ---------- */
.psh-q-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--border);
    transition: border-color 0.15s, transform 0.1s;
    cursor: pointer;
}
.psh-q-card:hover { border-color: var(--border-strong); }
.psh-q-card:active { transform: scale(0.995); }
.psh-q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.psh-q-number {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px;
    border-radius: 10px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    font-weight: 700; font-size: 0.85rem; color: var(--text-dim);
}
.psh-q-points {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.4rem; color: var(--accent-2);
}
.psh-q-points small { font-size: 0.7rem; color: var(--text-mute); font-weight: 500; }
.psh-q-text { font-size: 1rem; font-weight: 500; }
.psh-q-thumb {
    width: 100%; aspect-ratio: 4/3;
    background: var(--bg-3);
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}

/* ---------- Page-specific layouts ---------- */
.psh-hero {
    text-align: center;
    padding: 40px 8px 28px;
}
.psh-hero h1 { margin-bottom: 14px; }
.psh-hero p { max-width: 460px; margin: 0 auto; color: var(--text-dim); font-size: 1.04rem; }
.psh-hero .psh-eyebrow {
    display: inline-block; padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.psh-cta-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px; margin-top: 32px;
}
.psh-cta {
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--border);
    text-align: left;
    text-decoration: none;
    color: var(--text);
    font-family: inherit;
    transition: transform 0.1s, border-color 0.15s, background 0.15s;
    cursor: pointer;
    outline: none;
}
.psh-cta:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.psh-cta:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.psh-cta * { text-decoration: none; }
.psh-cta-icon { font-size: 1.7rem; line-height: 1; }
.psh-cta-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.2;
    text-decoration: none;
}
.psh-cta-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.45; }

/* ---------- Modal / sheet ---------- */
.psh-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.18s ease-out;
}
.psh-sheet {
    width: 100%; max-width: 540px;
    background: var(--bg-1);
    border: 1px solid var(--border-strong);
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 22px 32px;
    max-height: 92dvh;
    overflow-y: auto;
    animation: slideUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.psh-sheet-handle { width: 44px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 18px; }

@media (min-width: 600px) {
    .psh-overlay { align-items: center; }
    .psh-sheet { border-radius: var(--radius-xl); border-bottom: 1px solid var(--border-strong); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Tabs ---------- */
.psh-tabs {
    display: flex; gap: 4px;
    padding: 4px;
    background: var(--bg-2);
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    overflow-x: auto;
}
.psh-tab {
    flex: 1; min-width: max-content;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600; font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.psh-tab.is-active { background: var(--surface-strong); color: var(--text); }

/* ---------- Empty / stats ---------- */
.psh-empty {
    text-align: center; padding: 60px 20px;
}
.psh-stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
.psh-stat {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.psh-stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.psh-stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Progress bar ---------- */
.psh-progress {
    height: 8px; border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}
.psh-progress-fill {
    height: 100%;
    background: var(--gradient-warm);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.psh-progress-bar-indeterminate {
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: var(--gradient-warm);
    animation: indeterminate 1.1s ease-in-out infinite;
}
@keyframes indeterminate {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* ---------- Boot spinner ---------- */
.psh-boot {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--bg-0);
}
.psh-boot-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: var(--accent);
    animation: bootPulse 1.2s ease-in-out infinite;
}
.psh-boot-dot:nth-child(2) { animation-delay: 0.15s; background: var(--accent-2); }
.psh-boot-dot:nth-child(3) { animation-delay: 0.3s; background: #6c8cff; }
@keyframes bootPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ---------- Toast ---------- */
.psh-toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
    padding: 12px 18px; border-radius: var(--radius);
    background: var(--bg-1); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    color: var(--text); font-size: 0.92rem; font-weight: 500;
    z-index: 200;
    animation: slideUp 0.2s ease-out;
}

/* ---------- Team accordion ---------- */
.psh-team-header {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.psh-team-header:hover { background: var(--surface); }
.psh-team-chev {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    font-size: 1.4rem; line-height: 1; color: var(--text-dim);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
}
.psh-team-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; flex: 1; }
.psh-team-meta { display: flex; align-items: center; gap: 10px; }

/* ---------- Countdown banner ---------- */
.psh-countdown {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(108,140,255,0.16), rgba(155,92,255,0.12));
    border: 1px solid rgba(108,140,255,0.35);
}
.psh-countdown-icon { font-size: 1.3rem; }
.psh-countdown-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; }
.psh-countdown-value {
    margin-left: auto;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.psh-countdown.is-urgent {
    background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(255,106,61,0.14));
    border-color: rgba(251,191,36,0.45);
}
.psh-countdown.is-urgent .psh-countdown-value { color: var(--accent-2); }
.psh-countdown.is-up {
    background: var(--bad-bg);
    border-color: rgba(248,113,113,0.4);
}
.psh-countdown.is-up .psh-countdown-value { color: var(--bad); }

/* ---------- Gallery ---------- */
.psh-sheet-wide { max-width: 920px; }
.psh-gallery-grid {
    display: grid;
    /* Fixed-ish tile size so thumbnails don't balloon when a question has only a few photos. */
    grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
    justify-content: center;
    gap: 10px;
}
.psh-gallery-tile {
    display: flex; flex-direction: column;
    padding: 0; border: 1px solid var(--border); background: var(--bg-2);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
    font-family: inherit; color: var(--text); text-align: left;
}
.psh-gallery-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.psh-gallery-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--bg-3); }
.psh-gallery-cap {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 8px 10px;
}
.psh-gallery-team { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-gallery-cap .psh-pill { font-size: 0.65rem; padding: 3px 7px; flex-shrink: 0; }

.psh-lightbox { z-index: 120; align-items: center; padding: 12px; }
.psh-lightbox-inner { width: 100%; max-width: 760px; max-height: 94svh; display: flex; flex-direction: column; }
/* Fill the available space (enlarge) while still fitting portrait shots on phones. */
.psh-lightbox-inner .psh-photo-frame {
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; overflow: hidden;
    min-height: 0; flex: 1;
}
.psh-lightbox-inner .psh-photo-frame img {
    width: auto;
    max-width: 100%;
    max-height: 84svh;
    object-fit: contain;
}

/* ---------- Leaderboard suspense ---------- */
.psh-suspense { text-align: center; padding: 20px 8px 36px; }
.psh-suspense-msg {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 22px;
}
.psh-suspense-marks { display: flex; justify-content: center; gap: 26px; }
.psh-suspense-marks span {
    font-family: var(--font-display);
    font-size: 5rem; font-weight: 700; line-height: 1;
    color: var(--accent);
    animation: suspensePulse 1.4s ease-in-out infinite;
}
.psh-suspense-marks span:nth-child(2) { animation-delay: 0.2s; color: var(--accent-2); }
.psh-suspense-marks span:nth-child(3) { animation-delay: 0.4s; color: #6c8cff; }
@keyframes suspensePulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.18); opacity: 1; }
}

/* ---------- Leaderboard ---------- */
.psh-lb-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--border);
}
.psh-lb-row.is-me {
    border-color: rgba(255, 209, 102, 0.5);
    background: rgba(255, 209, 102, 0.08);
}
.psh-lb-row.is-me .psh-lb-name,
.psh-lb-row.is-me .psh-lb-points { color: var(--accent-2); }
.psh-lb-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    font-weight: 700; font-size: 0.9rem; color: var(--text-dim);
}
.psh-lb-rank.is-gold { background: rgba(255, 209, 102, 0.18); border-color: rgba(255, 209, 102, 0.5); color: var(--accent-2); }
.psh-lb-rank.is-silver { background: rgba(203, 213, 225, 0.16); border-color: rgba(203, 213, 225, 0.4); color: #cbd5e1; }
.psh-lb-rank.is-bronze { background: rgba(217, 138, 84, 0.16); border-color: rgba(217, 138, 84, 0.4); color: #d98a54; }
.psh-lb-name { flex: 1; font-weight: 600; font-size: 1.02rem; }
.psh-lb-points { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.psh-lb-points small { font-family: var(--font-sans); font-size: 0.7rem; color: var(--text-mute); font-weight: 500; }

/* ---------- Photo display ---------- */
.psh-photo-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid var(--border);
}
.psh-photo-frame img { width: 100%; height: auto; display: block; }

/* ---------- Code display ---------- */
.psh-code-display {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--bg-3);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-2);
}

/* ---------- Hidden file input ---------- */
.psh-file {
    position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}

/* blazor error UI */
#blazor-error-ui {
    background: #1a0e09;
    color: #ffd1c5;
    bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid var(--bad);
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
