/* ===== BASE RESET & FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Barlow:wght@400;500;600&display=swap');

/* ===== THEME VARIABLES (dark = default) ===== */
:root {
    --bg: #0a0a0a;
    --bg-header: #000;
    --text: #fff;
    --text-secondary: #ddd;
    --text-muted: #888;
    --text-dim: #555;
    --text-faint: #777;
    --accent: #FF6600;
    --accent-light: #FF8533;
    --accent-dark: #e55c00;
    --accent-disabled-bg: #553300;
    --card-bg: #111;
    --surface: #1a1a1a;
    --surface-2: #2a2a2a;
    --surface-3: #0d0d0d;
    --border: #2a2a2a;
    --border-input: #333;
    --border-dashed: #444;
    --error: #ff4444;
    --success: #66cc66;
    --hint-bg: #1c1c00;
    --hint-border: #555200;
    --hint-text: #ffcc66;
    --bonus-bg: #0d1a0d;
    --bonus-border: #2a4a2a;
    --bonus-text: #66cc66;
    --share-bg: #1a1a2e;
    --share-bg-hover: #2a2a4e;
    --shadow-accent: rgba(255, 102, 0, 0.35);
    --shadow-accent-strong: rgba(255, 102, 0, 0.5);
}

[data-theme="light"] {
    --bg: #FFFDF7;
    --bg-header: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #3a3a3a;
    --text-muted: #6b6558;
    --text-dim: #999;
    --text-faint: #aaa;
    --accent: #E65C00;
    --accent-light: #FF7A1F;
    --accent-dark: #b34700;
    --accent-disabled-bg: #f0d9b8;
    --card-bg: #ffffff;
    --surface: #f4f1ea;
    --surface-2: #ece7db;
    --surface-3: #f9f7f2;
    --border: #ddd6c8;
    --border-input: #ccc4b0;
    --border-dashed: #c9c0a8;
    --error: #cc2222;
    --success: #2e8b3d;
    --hint-bg: #fff6d8;
    --hint-border: #ecd07a;
    --hint-text: #7a5c00;
    --bonus-bg: #eaf6ea;
    --bonus-border: #b7dcb7;
    --bonus-text: #2e8b3d;
    --share-bg: #e6e6f5;
    --share-bg-hover: #d5d5ec;
    --shadow-accent: rgba(230, 92, 0, 0.2);
    --shadow-accent-strong: rgba(230, 92, 0, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* prevent iOS auto font scaling */
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ===== HEADER ===== */
header {
    background: var(--bg-header);
    padding: 16px 0 12px;
    text-align: center;
    border-bottom: 2px solid var(--accent);
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50px;
    box-shadow: none;
    display: block;
}

.theme-toggle-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: none;
    transform: none;
}

.logo {
    width: clamp(200px, 50vw, 380px);   /* scales with the window, small phone to desktop */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px 16px;
    background: var(--card-bg);
    border-radius: 12px;
    transition: background-color 0.25s ease;
}

@media (max-width: 640px) {
    .container {
        margin: 10px 8px;
        border-radius: 8px;
        padding: 16px 14px;
        /* stretch to near full width on phones */
        width: calc(100% - 16px);
    }
}

/* ===== TYPOGRAPHY ===== */
h2 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    font-weight: 900;
    color: var(--accent);
    margin: 0 0 16px;
    line-height: 1.1;
}

h3 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    font-weight: 700;
    color: var(--accent-light);
    margin: 0 0 10px;
}

h4 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px;
}

p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== START SCREEN ===== */
#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(15px, 4vw, 18px);
    font-family: 'Barlow', Arial, sans-serif;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-input);
    border-radius: 8px;
    -webkit-appearance: none;  /* remove iOS default styling */
    appearance: none;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: var(--accent);
}

/* File input - styled for mobile */
input[type="file"] {
    width: 100%;
    padding: 12px;
    font-size: clamp(14px, 3.5vw, 16px);
    color: var(--text-secondary);
    background: var(--surface);
    border: 2px dashed var(--border-dashed);
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: none;
}

/* Custom file picker button (replaces native "Choose File" text) */
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: clamp(14px, 3.5vw, 16px);
    font-family: 'Barlow', Arial, sans-serif;
    color: var(--text-secondary);
    background: var(--surface);
    border: 2px dashed var(--border-dashed);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.15s, background 0.15s;
}

.file-btn:hover,
.file-btn:active {
    border-color: var(--accent);
    background: var(--surface-2);
}

.file-name {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -8px;
    word-break: break-word;
    min-height: 16px;
}

/* ===== BUTTONS ===== */
button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px 24px;
    font-size: clamp(16px, 4.5vw, 19px);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    width: 100%;
    max-width: 360px;
    min-height: 52px;         /* large tap target for mobile */
    text-align: center;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* eliminates 300ms tap delay on mobile */
    user-select: none;
}

button:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 16px var(--shadow-accent);
}

button:active {
    transform: scale(0.97);
    background: var(--accent-dark);
}

#hint-btn {
    display: block;
    margin: 0 auto;
}

button:disabled {
    background: var(--accent-disabled-bg);
    color: var(--text-faint);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== BUTTON GROUP ===== */
.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    width: 100%;
}

.or-divider {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== STATUS MESSAGES ===== */
#start-status {
    color: var(--error);
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

#start-status:empty {
    display: none;
}

#status-message:empty {
    display: none;
}

#status-message {
    color: var(--accent-light);
    font-size: clamp(14px, 4vw, 17px);
    font-weight: 600;
    margin: 14px 0;
    text-align: center;
    min-height: 52px;
    background: var(--surface);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    line-height: 1.5;
    word-break: break-word; /* stops long messages overflowing on small screens */
}

/* ===== CLUE IMAGE ===== */
#clue-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

/* ===== HINT ===== */
#hint {
    background: var(--hint-bg);
    border: 1px solid var(--hint-border);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--hint-text);
    font-size: clamp(14px, 3.8vw, 16px);
    margin: 10px 0;
    line-height: 1.5;
}




/* ===== CLUE UNLOCK ANIMATION ===== */
#unlock-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#unlock-overlay.unlock-show {
    opacity: 1;
}

#unlock-overlay.unlock-hide {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#unlock-inner {
    text-align: center;
    padding: 20px;
    max-width: 340px;
    width: 90%;
    position: relative;
}

/* Pin drop */
#unlock-pin {
    width: 70px;
    height: 90px;
    margin: 0 auto 0;
    transform: translateY(-120px) scale(0.5);
    opacity: 0;
    transition: none;
}

#unlock-pin.pin-dropped {
    animation: pinDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#unlock-pin svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px rgba(255, 102, 0, 0.6));
}

@keyframes pinDrop {
    0%   { transform: translateY(-120px) scale(0.6); opacity: 0; }
    60%  { transform: translateY(12px) scale(1.1); opacity: 1; }
    80%  { transform: translateY(-6px) scale(0.95); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pulse ring */
#unlock-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FF6600;
    margin: -20px auto 12px;
    opacity: 0;
    transform: scale(0.3);
}

#unlock-pulse.pulse-go {
    animation: pulseRing 0.6s ease-out forwards;
}

@keyframes pulseRing {
    0%   { transform: scale(0.3); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* CHECK POINT label */
#unlock-label {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #FF6600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-bottom: 4px;
}

#unlock-label.label-show {
    opacity: 1;
    transform: translateY(0);
}

/* Number stamp */
#unlock-num {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(80px, 22vw, 120px);
    font-weight: 900;
    color: #fff;
    line-height: 0.85;
    margin-bottom: 20px;
    transform: scale(2.5);
    opacity: 0;
}

#unlock-num.num-stamp {
    animation: numStamp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes numStamp {
    0%   { transform: scale(2.5); opacity: 0; }
    60%  { transform: scale(0.92); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Tap to continue */
#unlock-tap {
    font-size: 13px;
    color: #555;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: tapPulse 1.5s ease-in-out infinite;
}

#unlock-tap.tap-show {
    opacity: 1;
}

@keyframes tapPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}



/* ===== PAYMENT SECTION ===== */
#payment-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
    text-align: center;
}

#payment-text {
    font-size: clamp(14px, 4vw, 17px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

#venmo-qr-wrap {
    display: inline-block;
}

#venmo-qr {
    width: min(200px, 55vw);
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 8px;
    background: #fff;
    padding: 8px;
}

#venmo-handle {
    display: block;
    color: #3D95CE;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 4px;
}

#venmo-handle:hover {
    text-decoration: underline;
    color: #5ab0e8;
}

/* ===== CONFETTI ===== */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ===== PROGRESS BAR ===== */
#progress-bar-wrap {
    margin: 0 0 16px;
}

#progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

#progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
    box-shadow: 0 0 8px var(--shadow-accent-strong);
}

#progress-bar-label {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.5px;
}

#progress-current {
    color: var(--accent-light);
    font-size: 14px;
}

/* ===== BACK BUTTON ===== */
#back-btn {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0 16px 0;
    box-shadow: none !important;
}

#back-btn:hover {
    background: var(--accent) !important;
    color: #000 !important;
}

/* ===== HUNT SELECTION ===== */
#hunt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.hunt-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hunt-card:hover, .hunt-card:active {
    border-color: var(--accent);
    background: var(--surface-2);
}

.hunt-card-title {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 4px;
    padding-right: 24px;
}

.hunt-card-desc {
    font-size: clamp(13px, 3.5vw, 15px);
    color: var(--text-muted);
    line-height: 1.5;
}

.hunt-card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
}

.community-hunt-rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    margin-top: 6px;
}

.community-hunt-rating.community-hunt-new {
    color: var(--text-muted);
    font-weight: 600;
}

#create-hunt-cta {
    margin-top: 28px;
    padding: 20px 18px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 10px;
    text-align: center;
}

#create-hunt-cta h4 {
    color: var(--accent-light);
    margin: 0 0 8px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.15rem;
}

#create-hunt-cta p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.5;
}

#private-hunt-screen {
    text-align: center;
}

#private-hunt-password {
    width: 100%;
}

/* ===== DISCLAIMER SCREEN ===== */
#disclaimer-box {
    background: var(--surface-3);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    padding: 20px 18px;
}

#disclaimer-box h3 {
    color: var(--accent);
    margin: 0 0 14px;
}

#disclaimer-text {
    color: var(--text-secondary);
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 20px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 4px;
}

#disclaimer-agree-row {
    margin: 16px 0 10px;
}

#agree-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.4;
}

#agree-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}

#disclaimer-status {
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 8px;
}

/* ===== BONUS SECTION ===== */
#bonus-challenge {
    background: var(--bonus-bg);
    border: 1px solid var(--bonus-border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

#bonus-challenge h4 {
    color: var(--bonus-text);
}



/* ===== MY PHOTOS GRID ===== */
#my-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.my-photo-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.my-photo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.my-photo-info {
    padding: 6px 8px 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.my-photo-btn-row {
    display: flex;
    gap: 1px;
}

.my-photo-download {
    display: block;
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 0 0 0 8px;
}

.my-photo-download:hover {
    background: var(--accent-light);
}

.my-photo-share {
    display: block;
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    background: var(--share-bg);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    border: none;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 0 8px 0;
}

.my-photo-share:hover {
    background: var(--share-bg-hover);
}

/* ===== RATING / FINISH SCREEN ===== */
#rating-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

#rating-section h3 {
    margin-bottom: 4px;
}

#star-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 4px;
}

.star-option {
    flex: 1;
    max-width: 64px;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 10px 4px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.star-option.selected {
    background: var(--accent);
}

.star-num {
    font-size: clamp(20px, 6vw, 26px);
    font-weight: 900;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.star-word {
    font-size: clamp(9px, 2.5vw, 11px);
    color: var(--text-muted);
    line-height: 1;
    font-weight: 600;
}

.star-option.selected .star-num,
.star-option.selected .star-word {
    color: #000;
}

#rating-comments {
    width: 100%;
    margin-bottom: 14px;
}

#rating-status {
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
    margin-top: 8px;
    text-align: center;
}

/* ===== FINISH SCREEN ===== */
#finish-screen {
    text-align: center;
    padding: 24px 0;
}

#finish-screen h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--success);
}

#score {
    color: var(--accent);
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 900;
    display: block;
    margin-top: 8px;
}

/* ===== UTILITY ===== */
.hidden {
    display: none;
}

.success {
    color: var(--success);
}


/* ===== ADMIN STYLES ===== */
.admin-form label,
.section label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    color: #bbb;
    font-size: clamp(13px, 3.5vw, 15px);
}

.section {
    border: 1px solid #2a2a2a;
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
    background: #0d0d0d;
}

/* Admin table - scrollable on mobile */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px; /* forces scroll rather than squish */
}

th, td {
    padding: 10px 8px;
    border: 1px solid #222;
    text-align: left;
    font-size: clamp(12px, 3.2vw, 14px);
    vertical-align: top;
}

th {
    background: #1a1a1a;
    color: #FF8533;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.actions a {
    display: inline-block;
    margin: 2px 6px 2px 0;
    color: #FF8533;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    background: #1a1a1a;
}

.actions a.delete {
    color: #ff4444;
}

/* Admin buttons should not be full-width */
.admin-btn {
    width: auto !important;
    min-width: 140px;
    max-width: none !important;
    display: inline-block;
}

/* Lets an <a> be styled like a button (e.g. the "Create Your Own Hunt" CTA) -
   the base look normally only applies to <button> elements. */
a.admin-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px 24px;
    font-size: clamp(16px, 4.5vw, 19px);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

a.admin-btn:hover {
    background: var(--accent-light);
}

/* ===== TEXT ANSWER VERIFICATION (v17) ===== */
#text-answer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

#text-answer-input {
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(15px, 4vw, 18px);
    font-family: 'Barlow', Arial, sans-serif;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-input);
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color 0.2s;
}

#text-answer-input:focus {
    border-color: var(--accent);
}

#text-answer-status {
    color: var(--error);
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 600;
    text-align: center;
    min-height: 18px;
    margin: 0;
    width: 100%;
}

#text-answer-status:empty {
    display: none;
}