/* ============================================
   HAPPY HUNTING — Full Product Styles
   Envelope, Clue Cards (3 skins), Landing Page
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    font-family: 'Inter', system-ui, sans-serif;
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

/* ---- Screen Management ---- */
.screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    overflow-y: auto;
    z-index: 0;
}
.screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* ---- Card Base ---- */
.card {
    width: min(92vw, 480px);
    padding: 32px 28px;
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}


/* ============================================
   ENVELOPE SCREEN
   ============================================ */

#envelope-screen {
    background: #0a0a0a;
}

.envelope-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: min(92vw, 400px);
}

.envelope-sender {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    font-style: italic;
    color: #e8dfd0;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}

/* The envelope */
.envelope {
    width: 280px;
    height: 190px;
    background: linear-gradient(170deg, #f5efe6 0%, #e8dfd0 100%);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
}

/* V-fold lines */
.envelope-fold {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.envelope-fold::before,
.envelope-fold::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 70%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.envelope-fold::before {
    left: 0;
    transform-origin: top left;
    transform: skewY(35deg);
}
.envelope-fold::after {
    right: 0;
    transform-origin: top right;
    transform: skewY(-35deg);
}

/* Wax seal */
.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e74c3c 0%, #c0392b 40%, #8b1a1a 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35),
                inset 0 1px 3px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}
.wax-seal span {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Opening animation */
.envelope.opening .wax-seal {
    transform: translate(-50%, -50%) scale(0) rotate(30deg);
    opacity: 0;
}
.envelope.opening {
    transform: translateY(-60px);
    opacity: 0;
}

/* Unlock input */
.envelope-unlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.7s forwards;
}

.unlock-prompt {
    font-size: 0.85em;
    color: #8a8070;
    text-align: center;
    letter-spacing: 0.02em;
}

.code-input-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5em;
    font-family: 'Inter', monospace;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #f5f0e8;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.code-digit:focus {
    border-color: #c9a84c;
}
.code-digit.correct {
    border-color: #22c55e;
}
.code-digit.wrong {
    border-color: #ef4444;
}

.unlock-feedback {
    font-size: 0.8em;
    color: #a08070;
    min-height: 1.2em;
    text-align: center;
}


/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */

.intro-label {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.intro-theme {
    font-size: 1.4em;
    line-height: 1.3;
    margin-bottom: 20px;
}
.intro-meta {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 28px;
}
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.step-indicator {
    font-size: 0.7em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
/* Difficulty control */
.difficulty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}
.diff-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 50%;
    font-size: 1em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    line-height: 1;
    color: inherit;
    font-family: inherit;
}
.diff-btn:hover { opacity: 1; border-color: rgba(201, 168, 76, 0.5); }
.diff-label {
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-right: 2px;
}
.diff-level {
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    min-width: 1.2em;
    text-align: center;
}
.diff-of {
    font-size: 0.65em;
    opacity: 0.5;
    min-width: 1.5em;
}

/* Stuck + Preview Answer */
.stuck-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 12px 28px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.stuck-btn:hover {
    opacity: 1;
    border-color: rgba(201, 168, 76, 0.6);
    background: rgba(201, 168, 76, 0.1);
}
.stuck-btn:disabled { opacity: 0.4; cursor: default; }
.stuck-phone { flex-shrink: 0; }

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(12deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(-4deg); }
    50%, 100% { transform: rotate(0deg); }
}
.stuck-btn:not(:disabled) .stuck-phone {
    animation: phone-ring 1.5s ease infinite;
    animation-delay: 0.5s;
}


/* Preview arrows */
.preview-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #f5f0e8;
    font-size: 1.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.preview-arrow:hover { background: rgba(0, 0, 0, 0.7); }

/* ---- Intro Wrapper ---- */
.intro-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.preview-intro-next {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
}

/* ---- Preview Start Button ---- */
.preview-start-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.06em;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-bottom: 0;
}
.preview-start-btn:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* ---- Preview Carousel ---- */
.preview-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

/* ---- Peek Cards ---- */
.peek-card {
    width: 80px;
    min-height: 160px;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 12px 8px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    overflow: hidden;
}
.peek-card:hover {
    opacity: 0.75;
    border-color: rgba(201, 168, 76, 0.3);
}
.peek-step {
    font-size: 0.5em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.peek-text {
    font-size: 0.55em;
    line-height: 1.5;
    color: #999;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
.peek-add {
    font-size: 1.2em;
    text-align: center;
    color: #c9a84c;
    opacity: 0.7;
    margin-top: 20px;
}

/* ---- Arrows: positioned relative in carousel, not at screen edge ---- */
.preview-carousel .preview-prev,
.preview-carousel .preview-next {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
}

/* ---- Difficulty Label ---- */
.diff-label-text {
    font-size: 0.6em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-right: 4px;
    flex-shrink: 0;
}

.clue-text {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 20px;
}


/* ---- Answer Input ---- */
.answer-section {
    transition: opacity 0.3s ease;
}
.answer-section.solved {
    opacity: 0.4;
    pointer-events: none;
}
.answer-row {
    display: flex;
    gap: 8px;
}
.photo-done-btn {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 600;
    border: 2px dashed rgba(128,128,128,0.3);
    background: rgba(128,128,128,0.05);
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
}
.photo-done-btn:hover {
    border-color: rgba(128,128,128,0.5);
    background: rgba(128,128,128,0.1);
}
.answer-row input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid transparent;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.answer-row input:focus {
    border-color: currentColor;
}
.submit-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.submit-btn:active {
    transform: scale(0.95);
}
.answer-feedback {
    font-size: 0.85em;
    min-height: 1.5em;
    margin-top: 8px;
}

/* ---- Fact Reveal ---- */
.fact-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease 0.1s;
}
.fact-reveal.visible {
    max-height: 400px;
    opacity: 1;
}
.fact-divider {
    height: 1px;
    margin: 24px 0;
    opacity: 0.3;
}
.fact-text {
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

/* ---- Buttons ---- */
.action-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, background 0.2s ease;
}
.action-btn:active {
    transform: scale(0.98);
}

/* ---- Skin Selector ---- */
.skin-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.skin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.7em;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.skin-btn.active { opacity: 1; }
.skin-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.ransom-swatch { background: #c4a070; }
.script-swatch { background: #c9a84c; }
.napkin-swatch { background: #f8f4ee; border: 1px solid #ccc; }

/* ---- Arrival ---- */
.arrival-label {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.arrival-bar {
    font-size: 2em;
    line-height: 1.2;
    margin-bottom: 8px;
}
.arrival-address {
    font-size: 0.9em;
    margin-bottom: 24px;
    opacity: 0.7;
}
.arrival-details {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 6px;
}
.arrival-hh {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 8px;
}
.arrival-vibe {
    font-size: 0.85em;
    line-height: 1.6;
    opacity: 0.8;
}
.arrival-arc {
    font-size: 0.9em;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
    opacity: 0.8;
}
.browse-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.browse-link:hover { opacity: 1; }

/* ---- Error ---- */
.error-card { text-align: center; }
.error-card h2 { font-size: 1.4em; margin-bottom: 12px; }
.error-card p { margin-bottom: 20px; opacity: 0.7; }


/* ---- Send Screen (preview flow) ---- */
.send-card {
    text-align: center;
}
/* Accounting */
.send-accounting {
    text-align: left;
    margin-bottom: 20px;
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 6px;
    padding: 12px 14px;
}
.send-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85em;
    gap: 8px;
}
.send-line-item + .send-line-item {
    border-top: 1px solid rgba(128,128,128,0.1);
}
.send-item-name {
    flex: 1;
}
.send-item-price {
    font-weight: 600;
    white-space: nowrap;
}
.send-remove-clue {
    background: none;
    border: 1px solid rgba(224, 112, 112, 0.4);
    color: #e07070;
    font-size: 0.85em;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.2s;
    margin-left: 4px;
}
.send-remove-clue:hover {
    background: rgba(224, 112, 112, 0.15);
    border-color: #e07070;
}
.skin-ransom .send-remove-clue { color: #8b0000; border-color: rgba(139, 0, 0, 0.4); }
.skin-napkin .send-remove-clue { color: #a04040; border-color: rgba(160, 64, 64, 0.4); }
.send-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    margin-top: 6px;
    border-top: 2px solid rgba(128,128,128,0.3);
    font-weight: 700;
    font-size: 0.95em;
}
/* Stripe Embedded Checkout */
#checkout-container {
    min-height: 300px;
    margin: 16px 0;
}
/* Back to editor */
.send-back-editor {
    margin-top: 16px;
    width: 100%;
    opacity: 0.7;
    font-size: 0.8em;
}
.send-back-editor:hover { opacity: 1; }
.send-card .send-label {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.7;
}
.send-card .send-hunt-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 24px;
}
.send-card .send-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.send-card .send-form input[type="text"],
.send-card .send-form input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    color: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.send-card .send-form input:focus { border-color: #c9a84c; }
.send-card .send-form input::placeholder { color: rgba(180,170,150,0.7); }
.skin-ransom .send-card .send-form input { background: rgba(255,255,255,0.25); color: #1a1a1a; }
.skin-ransom .send-card .send-form input::placeholder { color: #6a5a48; }
.skin-script .send-card .send-form input { background: rgba(255,255,255,0.08); color: #f5f0e8; }
.skin-script .send-card .send-form input::placeholder { color: #8a7a68; }
.skin-napkin .send-card .send-form input { background: rgba(255,255,255,0.6); color: #2c2c2c; }
.skin-napkin .send-card .send-form input::placeholder { color: #8a7a68; }
.send-promo-row {
    display: flex;
    gap: 8px;
}
.send-promo-row input { flex: 1; }
.send-promo-btn {
    padding: 10px 16px;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(128,128,128,0.25);
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.send-promo-btn:hover { border-color: #c9a84c; color: #c9a84c; }
.send-promo-feedback {
    font-size: 0.8em;
    min-height: 1.2em;
}
.send-promo-feedback.valid { color: #6abf69; }
.send-promo-feedback.invalid { color: #e07070; }
.send-card .send-result {
    text-align: left;
}
.send-card .send-result p {
    font-size: 0.85em;
    margin-bottom: 12px;
    opacity: 0.7;
}
.send-card .send-result input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 4px;
    color: #c9a84c;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease; }

@keyframes pulse-correct {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pulse-correct { animation: pulse-correct 0.6s ease; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   SKIN: RANSOM — Kraft paper, cut-out letters
   ============================================ */

body.skin-ransom { background: #2c2420; }

.skin-ransom .card {
    background: linear-gradient(155deg, #c9a96e 0%, #b8926a 40%, #c4a070 100%);
    border-radius: 2px;
    box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.35);
    color: #1a1a1a;
}
.skin-ransom .card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 150px;
    pointer-events: none;
    z-index: 0;
}
.skin-ransom .card > * { position: relative; z-index: 1; }

.skin-ransom .intro-label,
.skin-ransom .step-indicator { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.skin-ransom .intro-theme { font-family: 'Playfair Display', serif; font-weight: 700; }
.skin-ransom .intro-meta,
.skin-ransom .fact-text { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.skin-ransom .fact-divider { background: #3d2b1a; }

.ransom-word {
    display: inline-block;
    padding: 2px 7px;
    margin: 3px 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    line-height: 1.4;
    vertical-align: middle;
}

.skin-ransom .answer-row input {
    background: #f5f0e8; color: #1a1a1a; border-color: #b89870;
}
.skin-ransom .answer-row input:focus { border-color: #5a3e28; }
.skin-ransom .answer-row input::placeholder { color: #8a7560; }
.skin-ransom .submit-btn { background: #3d2b1a; color: #f5f0e8; }
.skin-ransom .submit-btn:hover { background: #2a1c0f; }
.skin-ransom .answer-feedback.wrong { color: #8b0000; }
.skin-ransom .answer-feedback.correct { color: #2d5a1e; }
.skin-ransom .action-btn { background: #3d2b1a; color: #f5f0e8; }
.skin-ransom .action-btn:hover { background: #2a1c0f; }
.skin-ransom .skin-btn { color: #3d2b1a; border-color: #5a3e28; }
.skin-ransom .arrival-details { background: rgba(0, 0, 0, 0.08); }
.skin-ransom .arrival-bar { font-family: 'Playfair Display', serif; font-weight: 700; }
.skin-ransom .browse-link { color: #3d2b1a; }


/* ============================================
   SKIN: SCRIPT — Dark ground, gold calligraphy
   ============================================ */

body.skin-script { background: #080f18; }

.skin-script .card {
    background: #0d1b2a;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 0;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
    color: #f5f0e8;
}
.skin-script .intro-label { font-family: 'Inter', sans-serif; color: #c9a84c; }
.skin-script .intro-theme {
    font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 1.8em; color: #c9a84c;
}
.skin-script .intro-meta {
    font-family: 'Cormorant Garamond', serif; font-style: italic; color: #a0917a; font-size: 1.05em;
}
.skin-script .step-indicator { color: #c9a84c; }
.skin-script .clue-text {
    font-family: 'Cormorant Garamond', serif; font-size: 1.15em; line-height: 1.85;
    color: #e8dfd0; text-align: center;
}
.skin-script .fact-divider { background: #c9a84c; opacity: 0.2; }
.skin-script .fact-text {
    font-family: 'Cormorant Garamond', serif; color: #a0917a; text-align: center;
}
.skin-script .answer-row input {
    background: rgba(255, 255, 255, 0.06); color: #f5f0e8;
    border-color: rgba(201, 168, 76, 0.25); border-radius: 0;
}
.skin-script .answer-row input:focus { border-color: #c9a84c; }
.skin-script .answer-row input::placeholder { color: #6a5f50; }
.skin-script .submit-btn { background: #c9a84c; color: #0d1b2a; border-radius: 0; }
.skin-script .submit-btn:hover { background: #d4b85c; }
.skin-script .answer-feedback.wrong { color: #c45050; }
.skin-script .answer-feedback.correct { color: #c9a84c; }
.skin-script .action-btn { background: #c9a84c; color: #0d1b2a; border-radius: 0; }
.skin-script .action-btn:hover { background: #d4b85c; }

.skin-script .skin-btn { color: #a0917a; border-color: rgba(201, 168, 76, 0.2); }
.skin-script .skin-btn.active { color: #c9a84c; border-color: #c9a84c; }
.skin-script .arrival-details {
    background: rgba(201, 168, 76, 0.06); border: 1px solid rgba(201, 168, 76, 0.12);
}
.skin-script .arrival-bar {
    font-family: 'Great Vibes', cursive; font-weight: 400; color: #c9a84c; font-size: 2.4em;
}
.skin-script .arrival-label { color: #c9a84c; }
.skin-script .arrival-arc { font-family: 'Cormorant Garamond', serif; color: #a0917a; }
.skin-script .browse-link { color: #a0917a; }
.skin-script .error-card { color: #f5f0e8; }
.skin-script .error-card .browse-link { color: #c9a84c; }


/* ============================================
   SKIN: NAPKIN — Bar napkin, handwritten
   ============================================ */

body.skin-napkin { background: #d8d0c4; }

.skin-napkin .card {
    background:
        repeating-linear-gradient(transparent, transparent 31px, #d4cfc7 31px, #d4cfc7 32px),
        #f8f4ee;
    border-radius: 4px;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.1);
    color: #2c2c2c;
    padding-top: 40px;
}
/* Coffee ring */
.skin-napkin .clue-card::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(139, 90, 43, 0.08);
    background: radial-gradient(circle, transparent 38%, rgba(139, 90, 43, 0.04) 42%, rgba(139, 90, 43, 0.06) 50%, rgba(139, 90, 43, 0.03) 58%, transparent 62%);
    top: 16px; right: 16px;
    pointer-events: none; z-index: 0;
}
.skin-napkin .card > * { position: relative; z-index: 1; }

.skin-napkin .intro-label {
    font-family: 'Caveat', cursive; font-size: 0.95em; letter-spacing: 0.05em; text-transform: none; color: #5a5040;
}
.skin-napkin .intro-theme { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.6em; }
.skin-napkin .intro-meta { font-family: 'Caveat', cursive; font-size: 1.1em; color: #6a6050; }
.skin-napkin .step-indicator {
    font-family: 'Caveat', cursive; font-size: 0.85em; letter-spacing: 0.05em; text-transform: none; color: #8a7a68;
}
.skin-napkin .clue-text { font-family: 'Caveat', cursive; font-size: 1.3em; line-height: 1.95; }
.skin-napkin .fact-divider { background: #8a7a68; }
.skin-napkin .fact-text { font-family: 'Caveat', cursive; font-size: 1.05em; color: #6a6050; }
.skin-napkin .answer-row input {
    background: rgba(255, 255, 255, 0.7); color: #2c2c2c; border-color: #c4b8a8;
    font-family: 'Caveat', cursive; font-size: 1.1em;
}
.skin-napkin .answer-row input:focus { border-color: #8a7a68; }
.skin-napkin .answer-row input::placeholder { color: #a89880; }
.skin-napkin .submit-btn { background: #6a6050; color: #f8f4ee; }
.skin-napkin .submit-btn:hover { background: #5a5040; }
.skin-napkin .answer-feedback.wrong { color: #a04040; }
.skin-napkin .answer-feedback.correct { color: #4a7a3a; }
.skin-napkin .action-btn {
    background: #5a5040; color: #f8f4ee; font-family: 'Caveat', cursive; font-size: 1.1em;
}
.skin-napkin .action-btn:hover { background: #4a4030; }
.skin-napkin .skin-btn { color: #6a6050; border-color: #b8a898; }
.skin-napkin .skin-btn.active { color: #2c2c2c; border-color: #6a6050; }
.skin-napkin .arrival-details { background: rgba(0, 0, 0, 0.04); }
.skin-napkin .arrival-bar { font-family: 'Caveat', cursive; font-weight: 700; font-size: 2.4em; }
.skin-napkin .arrival-label {
    font-family: 'Caveat', cursive; font-size: 0.9em; text-transform: none; letter-spacing: 0.05em;
}
.skin-napkin .arrival-arc { font-family: 'Caveat', cursive; font-size: 1.05em; }
.skin-napkin .browse-link {
    color: #6a6050; font-family: 'Caveat', cursive; font-size: 1em; text-transform: none; letter-spacing: 0;
}


/* ============================================
   HAPPY HUNTING LANDING PAGE
   ============================================ */

body.hh-landing {
    background: #0a0a0a;
    color: #f5f0e8;
    min-height: 100dvh;
    display: block;
    overflow-y: auto;
}

.hh-header {
    text-align: center;
    padding: 48px 24px 32px;
    max-width: 600px;
    margin: 0 auto;
}
.hh-back {
    display: inline-block;
    font-size: 0.75em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8070;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.hh-back:hover { color: #c9a84c; }

/* Hunt page back button (preview mode) */
.hunt-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
    font-size: 0.75em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8070;
    text-decoration: none;
    transition: color 0.2s;
}
.hunt-back:hover { color: #c9a84c; }

/* Divider between Basic and premium style buttons */
.style-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(201, 168, 76, 0.2);
    margin: 2px 2px;
}
.style-btn-premium {
    font-size: 0.65em;
}

.hh-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4em;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}
.hh-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    font-style: italic;
    color: #a0917a;
    line-height: 1.6;
}
.hh-create-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85em;
    font-weight: 500;
    color: #c9a84c;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.hh-create-link:hover { color: #e0c06a; }

/* Hunt cards grid */
.hh-hunts {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hunt-card {
    position: relative;
    background: #111827;
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 28px 24px;
    cursor: default;
    transition: border-color 0.2s;
}
.hunt-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
}
.hunt-card-bar {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 4px;
}
.hunt-card-hood {
    font-size: 0.75em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 12px;
}
.hunt-card-theme {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1em;
    color: #a0917a;
    line-height: 1.5;
    margin-bottom: 16px;
}
.hunt-card-meta {
    font-size: 0.75em;
    color: #6a6058;
    margin-bottom: 16px;
}
/* Style selector row */
.hunt-card-styles {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.style-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.7em;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.12);
    color: #6a6058;
    cursor: pointer;
    transition: all 0.2s;
}
.style-btn.active {
    border-color: #c9a84c;
    color: #c9a84c;
}
.style-btn:hover:not(.active) {
    border-color: rgba(201, 168, 76, 0.3);
    color: #a0917a;
}

/* Inline preview */
.hunt-card-preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease;
    margin: 0;
}
.hunt-card-preview.visible {
    max-height: 220px;
    margin-bottom: 16px;
}

.hunt-card-preview.preview-ransom {
    background: linear-gradient(155deg, #c9a96e 0%, #b8926a 40%, #c4a070 100%);
    border-radius: 2px;
    padding: 16px;
    position: relative;
}
.hunt-card-preview.preview-script {
    background: #0d1b2a;
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 16px;
    position: relative;
}
.hunt-card-preview.preview-napkin {
    background:
        repeating-linear-gradient(transparent, transparent 27px, #d4cfc7 27px, #d4cfc7 28px),
        #f8f4ee;
    border-radius: 4px;
    padding: 16px;
    position: relative;
}

.preview-step {
    font-size: 0.6em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.6;
}
.preview-ransom .preview-step { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.preview-script .preview-step { color: #c9a84c; }
.preview-napkin .preview-step { font-family: 'Caveat', cursive; color: #8a7a68; }

.preview-clue {
    font-size: 0.85em;
    line-height: 1.6;
    max-height: 140px;
    overflow: hidden;
}
.preview-ransom .preview-clue { line-height: 2; }
.preview-ransom .preview-clue .ransom-word {
    font-size: 0.85em;
    padding: 1px 5px;
    margin: 2px 1px;
}
.preview-script .preview-clue {
    font-family: 'Cormorant Garamond', serif;
    color: #e8dfd0;
    text-align: center;
    font-style: italic;
}
.preview-napkin .preview-clue {
    font-family: 'Caveat', cursive;
    color: #2c2c2c;
    font-size: 1em;
    line-height: 1.8;
}

/* Fade at bottom of preview */
.preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
}
.preview-ransom .preview-fade {
    background: linear-gradient(transparent, #b8926a);
}
.preview-script .preview-fade {
    background: linear-gradient(transparent, #0d1b2a);
}
.preview-napkin .preview-fade {
    background: linear-gradient(transparent, #f8f4ee);
}

/* Bottom actions */
.hunt-card-preview-btn {
    flex: 1;
    display: block;
    padding: 12px 8px;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #a0917a;
    transition: all 0.2s;
}
.hunt-card-preview-btn:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* Skin badge in send modal */
.send-skin-badge {
    font-size: 0.8em;
    color: #8a8070;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}
.send-skin-badge strong {
    color: #c9a84c;
}

.hunt-card-bottom {
    display: flex;
    gap: 8px;
}
.hunt-card-copy,
.hunt-card-send {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.hunt-card-copy {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #a0917a;
}
.hunt-card-copy:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}
.hunt-card-send {
    background: #c9a84c;
    color: #0d1b2a;
}
.hunt-card-send:hover { background: #d4b85c; }

/* Send overlay */
.send-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.send-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.send-modal {
    background: #111827;
    border: 1px solid rgba(201, 168, 76, 0.2);
    width: min(92vw, 420px);
    padding: 32px 28px;
    position: relative;
}
.send-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    color: #8a8070;
    font-size: 1.4em;
    cursor: pointer;
    transition: color 0.2s;
}
.send-close:hover { color: #f5f0e8; }

.send-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    color: #f5f0e8;
    margin-bottom: 4px;
}
.send-bar {
    font-size: 0.8em;
    color: #c9a84c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.send-form label {
    display: block;
    margin-bottom: 16px;
}
.send-form label span {
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8070;
    margin-bottom: 6px;
}
.send-form input[type="text"],
.send-form input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #f5f0e8;
    outline: none;
    transition: border-color 0.2s;
}
.send-form input:focus {
    border-color: #c9a84c;
}
.send-form input::placeholder { color: #5a5550; }

/* Promo code */
.promo-row { margin-top: 4px; }
.promo-label { display: block; }
.promo-label span {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a8070;
    margin-bottom: 6px;
}
.promo-label input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95em;
    font-family: inherit;
    background: #1a2a3a;
    border: 1px solid #2a3a4a;
    color: #f5f0e8;
    box-sizing: border-box;
}
.promo-feedback {
    font-size: 0.8em;
    margin: 6px 0 0;
    min-height: 1.2em;
}
.promo-feedback.valid { color: #6abf69; }
.promo-feedback.invalid { color: #e07070; }

.send-generate {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 600;
    background: #c9a84c;
    color: #0d1b2a;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}
.send-generate:hover { background: #d4b85c; }

/* Send result */
.send-result {
    margin-top: 4px;
}
.send-instructions {
    font-size: 0.85em;
    color: #a0917a;
    line-height: 1.6;
    margin-bottom: 16px;
}
.send-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.send-link-row input {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8em;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    color: #c9a84c;
    outline: none;
}
.send-link-row button {
    padding: 10px 16px;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 600;
    background: #c9a84c;
    color: #0d1b2a;
    border: none;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.send-link-row button:hover { background: #d4b85c; }

.send-preview {
    font-size: 0.8em;
    color: #6a6058;
    font-style: italic;
    margin-bottom: 20px;
}
.send-preview span {
    color: #a0917a;
}

.send-another {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 0.8em;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #8a8070;
    cursor: pointer;
    transition: all 0.2s;
}
.send-another:hover { color: #c9a84c; border-color: #c9a84c; }


/* ============================================
   HAPPY LIST BANNER
   ============================================ */

.hh-banner {
    display: block;
    text-align: center;
    padding: 28px 20px 24px;
    background: #0d1b2a;
    color: #f5f0e8;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    border-bottom: 2px solid #c9a84c;
}
.hh-banner:hover {
    background: #111d2e;
}
.hh-banner-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.35em;
    font-weight: 400;
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-top: 8px;
}

/* Hunt promo card — inline between filters and grid */
.hunt-promo {
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 0 20px;
}
.hunt-promo-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: #0d1b2a;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}
.hunt-promo-card:hover {
    border-color: #c9a84c;
}
.hunt-promo-icon {
    font-size: 2em;
    flex-shrink: 0;
}
.hunt-promo-body {
    flex: 1;
}
.hunt-promo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 4px;
}
.hunt-promo-desc {
    font-size: 0.8em;
    color: #a0917a;
    line-height: 1.5;
}
.hunt-promo-arrow {
    font-size: 1.4em;
    color: #c9a84c;
    flex-shrink: 0;
}
.hunt-promo-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.hunt-promo-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.8em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.hunt-promo-btn--primary {
    background: #c9a84c;
    color: #0d1b2a;
}
.hunt-promo-btn--primary:hover { background: #d4b85c; }
.hunt-promo-btn--secondary {
    background: transparent;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.3);
}
.hunt-promo-btn--secondary:hover { border-color: #c9a84c; }

@media (max-width: 600px) {
    .hh-banner { font-size: 1.5em; padding: 22px 16px 18px; }
    .hunt-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    .hunt-promo-actions { flex-direction: column; width: 100%; }
    .hunt-promo-btn { text-align: center; }
    .hunt-promo-arrow { display: none; }
}


/* ============================================
   CREATE HUNT PAGE
   ============================================ */

/* Force hidden attribute to work even when CSS sets display */
[hidden] { display: none !important; }

.create-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.create-section {
    margin-bottom: 36px;
}
.create-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #f5f0e8;
    margin-bottom: 12px;
}
.create-hint {
    font-size: 0.8em;
    color: #6a6058;
    margin-bottom: 12px;
}

/* Bar search */
.bar-search-wrap {
    position: relative;
}
.bar-search {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #f5f0e8;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.bar-search:focus { border-color: #c9a84c; }
.bar-search::placeholder { color: #5a5550; }

.bar-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a2332;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-top: none;
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}
.bar-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
    transition: background 0.15s;
}
.bar-result-item:hover { background: rgba(201, 168, 76, 0.08); }
.bar-result-item strong {
    display: block;
    color: #f5f0e8;
    font-size: 0.95em;
    margin-bottom: 2px;
}
.bar-result-item span {
    font-size: 0.75em;
    color: #8a8070;
}

/* Bar pending (Phase 2: confirm or change) */
.bar-pending {
    padding: 16px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
}
.bar-pending-info { margin-bottom: 12px; }
.bar-pending-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #f5f0e8;
    margin-bottom: 4px;
}
.bar-pending-detail {
    font-size: 0.8em;
    color: #a0917a;
}
.bar-pending-actions {
    display: flex;
    gap: 10px;
}
.bar-confirm-btn {
    padding: 8px 20px;
    font-size: 0.85em;
    font-family: inherit;
    letter-spacing: 0.04em;
    background: #c9a84c;
    color: #0d1117;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.bar-confirm-btn:hover { background: #d4b85c; }
.bar-change-btn {
    font-size: 0.75em;
    color: #c9a84c;
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    transition: border-color 0.2s;
}
.bar-change-btn:hover { border-color: #c9a84c; }

/* Bar confirmed (Phase 3: locked in) */
.bar-confirmed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.2);
}
.bar-confirmed-check {
    font-size: 1.4em;
    color: #4caf50;
    flex-shrink: 0;
}
.bar-confirmed-info { flex: 1; }
.bar-confirmed-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #f5f0e8;
    margin-bottom: 2px;
}
.bar-confirmed-detail {
    font-size: 0.8em;
    color: #a0917a;
}

/* Legacy alias */
.bar-change {
    font-size: 0.75em;
    color: #c9a84c;
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
}

/* ---- Dynamic Clue List ---- */
.clue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.clue-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.08);
    padding: 16px;
    transition: border-color 0.2s;
}
.clue-item--active {
    border-color: rgba(201, 168, 76, 0.3);
}
.clue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.clue-item-label {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
}
.clue-remove-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: #a05050;
    font-size: 1em;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}
.clue-remove-btn:hover {
    border-color: #ff6464;
    color: #ff6464;
    background: rgba(255, 100, 100, 0.08);
}
.clue-item-text {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    font-size: 0.95em;
    font-family: inherit;
    line-height: 1.6;
    color: #f5f0e8;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.1);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}
.clue-item-text:focus { border-color: rgba(201, 168, 76, 0.3); }
.clue-item-text::placeholder { color: #4a4540; }
.clue-item-answer {
    width: 100%;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 0.9em;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.1);
    color: #f5f0e8;
    outline: none;
    transition: border-color 0.2s;
}
.clue-item-answer:focus { border-color: rgba(201, 168, 76, 0.3); }
.clue-item-answer::placeholder { color: #4a4540; }

/* Add Stop button */
.add-stop-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 0.85em;
    font-family: inherit;
    letter-spacing: 0.04em;
    background: transparent;
    border: 1px dashed rgba(201, 168, 76, 0.2);
    color: #8a8070;
    cursor: pointer;
    transition: all 0.2s;
}
.add-stop-btn:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.04);
}

/* Suggestions */
.suggestions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.suggestion-card {
    text-align: left;
    padding: 12px;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.1);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.suggestion-card:hover {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.08);
}
.suggestion-street {
    font-family: 'Playfair Display', serif;
    font-size: 0.9em;
    color: #c9a84c;
    margin-bottom: 4px;
}
.suggestion-who {
    font-size: 0.7em;
    color: #a0917a;
    margin-bottom: 4px;
}
.suggestion-fact {
    font-size: 0.7em;
    color: #6a6058;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.no-suggestions {
    font-size: 0.85em;
    color: #6a6058;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Controls */
.create-controls {
    margin-bottom: 20px;
}
.create-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.control-label {
    font-size: 0.7em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8070;
}
.control-btns {
    display: flex;
    gap: 6px;
}
.ctrl-btn {
    padding: 6px 14px;
    font-size: 0.7em;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.12);
    color: #6a6058;
    cursor: pointer;
    transition: all 0.2s;
}
.ctrl-btn.active {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* Carousel */
.carousel {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
}
.carousel-viewport {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-card {
    min-width: 100%;
    padding: 24px 20px;
    min-height: 200px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Carousel card skins */
.skin-card-ransom {
    background: linear-gradient(155deg, #c9a96e 0%, #b8926a 40%, #c4a070 100%);
}
.skin-card-script {
    background: #0d1b2a;
    border: 1px solid rgba(201, 168, 76, 0.15);
}
.skin-card-napkin {
    background:
        repeating-linear-gradient(transparent, transparent 27px, #d4cfc7 27px, #d4cfc7 28px),
        #f8f4ee;
    border-radius: 4px;
}

.card-preview-step {
    font-size: 0.6em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.skin-card-ransom .card-preview-step { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.skin-card-script .card-preview-step { color: #c9a84c; }
.skin-card-napkin .card-preview-step { font-family: 'Caveat', cursive; color: #8a7a68; }

.card-preview-text {
    font-size: 0.9em;
    line-height: 1.65;
}
.skin-card-ransom .card-preview-text { line-height: 2; }
.skin-card-ransom .card-preview-text .ransom-word { font-size: 0.85em; padding: 1px 5px; margin: 2px 1px; }
.skin-card-script .card-preview-text {
    font-family: 'Cormorant Garamond', serif; color: #e8dfd0; text-align: center; font-style: italic;
}
.skin-card-napkin .card-preview-text {
    font-family: 'Caveat', cursive; color: #2c2c2c; font-size: 1.1em; line-height: 1.8;
}
.card-empty {
    opacity: 0.35;
    font-style: italic;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #f5f0e8;
    font-size: 1.4em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.carousel-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: #c9a84c; }

/* Clue editor */
.clue-editor {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.1);
    padding: 20px;
}
.editor-label {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 10px;
}
.editor-field {
    min-height: 100px;
    padding: 12px;
    font-size: 1em;
    font-family: inherit;
    line-height: 1.7;
    color: #f5f0e8;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.1);
    outline: none;
    cursor: text;
    transition: border-color 0.2s;
    -webkit-user-modify: read-write-plaintext-only;
}
.editor-field:focus { border-color: rgba(201, 168, 76, 0.3); }
.editor-field:empty::before {
    content: attr(data-placeholder);
    color: #4a4540;
    pointer-events: none;
}
.editor-answer-row {
    margin-top: 12px;
}
.editor-answer-label span {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8070;
    margin-bottom: 6px;
}
.editor-answer-label input {
    width: 100%;
    padding: 10px 14px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.1);
    color: #f5f0e8;
    outline: none;
    transition: border-color 0.2s;
}
.editor-answer-label input:focus { border-color: rgba(201, 168, 76, 0.3); }
.editor-answer-label input::placeholder { color: #4a4540; }
.editor-hint {
    margin-top: 8px;
    font-size: 0.75em;
    color: #5a5550;
    font-style: italic;
}

/* Theme input */
.create-theme-label {
    display: block;
    margin-bottom: 16px;
}
.create-theme-label span {
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8070;
    margin-bottom: 6px;
}
.create-theme-label input {
    width: 100%;
    padding: 10px 14px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #f5f0e8;
    outline: none;
}
.create-theme-label input:focus { border-color: #c9a84c; }
.create-theme-label input::placeholder { color: #5a5550; }

/* ---- Build Card (card-by-card flow) ---- */
.build-cards-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.build-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.2);
}
.build-summary-check {
    color: #4caf50;
    font-size: 1.2em;
    flex-shrink: 0;
}
.build-summary-body {
    flex: 1;
    min-width: 0;
}
.build-summary-label {
    font-size: 0.7em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 2px;
}
.build-summary-text {
    font-size: 0.85em;
    color: #a0917a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.build-summary-answer {
    font-size: 0.75em;
    font-weight: 600;
    color: #c9a84c;
    flex-shrink: 0;
}
.build-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.2);
    margin-bottom: 16px;
}
.build-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.build-card-label {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
}
.build-card-answer {
    font-size: 0.8em;
    font-weight: 600;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}
.build-card-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: #e8e4dc;
    margin-bottom: 16px;
}
.build-card-edit {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    font-size: 0.95em;
    font-family: inherit;
    line-height: 1.7;
    color: #f5f0e8;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.3);
    outline: none;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.build-card-edit:focus { border-color: #c9a84c; }
.build-card-actions {
    display: flex;
    gap: 8px;
}
.build-btn {
    padding: 10px 20px;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.build-btn-confirm {
    flex: 1;
    background: #c9a84c;
    color: #0d1b2a;
}
.build-btn-confirm:hover { background: #d4b85c; }
.build-btn-edit {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #a0917a;
}
.build-btn-edit:hover { border-color: #c9a84c; color: #c9a84c; }
.build-btn-regen {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.25);
    color: #8a8070;
}
.build-btn-regen:hover { border-color: rgba(201, 168, 76, 0.4); color: #a0917a; }

.create-result { margin-top: 16px; }


/* ============================================
   PREVIEW TOOLS — Edit, Dice, Add Clue,
   Visual Interventions
   ============================================ */

.clue-card .visual-intervention {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    color: currentColor;
}
.clue-card .visual-intervention svg {
    width: 100%;
    height: 100%;
}

.clue-edit-field {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 1.05em;
    font-family: inherit;
    line-height: 1.75;
    color: inherit;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    outline: none;
    resize: vertical;
    margin-bottom: 24px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.clue-edit-field:focus { border-color: #c9a84c; }
.clue-edit-field::placeholder { color: rgba(128, 128, 128, 0.4); }

.clue-body.clue-locked {
    border: 2px solid #c9a84c;
    border-radius: 4px;
    padding: 12px;
}

.dice-roll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px dashed rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dice-roll-btn:hover { border-color: #c9a84c; border-style: solid; }
.dice-icon-svg { flex-shrink: 0; opacity: 0.8; }
.dice-label {
    font-family: 'Great Vibes', cursive;
    font-size: 1.2em;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

@keyframes dice-tumble {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}
.dice-rolling .dice-icon-svg { animation: dice-tumble 0.6s ease; }

.add-clue-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 0.75em;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 1px dashed rgba(128, 128, 128, 0.25);
    border-radius: 4px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}
.add-clue-btn:hover { opacity: 0.8; border-color: rgba(201, 168, 76, 0.4); }

/* ---- Intro Brand Graphic ---- */
.intro-brand-graphic {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    opacity: 0.15;
    color: currentColor;
}
.intro-brand-graphic svg {
    width: 100%;
    height: 100%;
}
/* preview-intro-next is now positioned by .intro-wrapper flex layout */

/* ---- Amor Fati Row (above clue) ---- */
.amor-fati-row {
    text-align: center;
    margin-bottom: 12px;
}

/* ---- Difficulty Selector (1-10 pip bar) ---- */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 12px 0 8px;
}
.diff-step-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(128,128,128,0.25);
    border-radius: 50%;
    font-size: 1em;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    color: inherit;
    font-family: inherit;
    flex-shrink: 0;
}
.diff-step-btn:hover { opacity: 1; border-color: rgba(201, 168, 76, 0.5); }
.diff-pips {
    display: flex;
    gap: 6px;
    align-items: center;
}
.diff-pip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(128,128,128,0.2);
    background: transparent;
    color: inherit;
    font-size: 0.6em;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.4;
    padding: 0;
}
.diff-pip:hover { opacity: 0.7; border-color: rgba(201, 168, 76, 0.4); }
.diff-pip.active {
    opacity: 1;
    background: #c9a84c;
    border-color: #c9a84c;
    color: #111;
}
.skin-ransom .diff-pip.active { background: #3d2b1a; border-color: #3d2b1a; color: #f5f0e8; }
.skin-napkin .diff-pip.active { background: #5a5040; border-color: #5a5040; color: #f8f4ee; }

/* ---- Preview Actions ---- */
.preview-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 0 4px;
    flex-wrap: nowrap;
}
.pa-btn {
    padding: 6px 10px;
    font-size: 0.7em;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pa-btn:hover { background: rgba(201, 168, 76, 0.12); border-color: rgba(201, 168, 76, 0.5); }
/* ← Previous */
.pa-btn.pa-prev {
    opacity: 0.6;
    font-size: 0.7em;
}
.pa-btn.pa-prev:hover { opacity: 1; }
/* Primary action (Next Clue / Save / Send Hunt) */
.pa-btn.pa-primary {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    font-weight: 600;
    margin-left: auto;
}
.pa-btn.pa-primary:hover { background: rgba(201, 168, 76, 0.25); }
/* Send Hunt (applied via JS class swap) */
.pa-btn.pa-send {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #111;
    font-weight: 600;
    padding: 6px 14px;
    margin-left: auto;
}
/* Delete Clue */
.pa-btn.pa-delete {
    border-color: rgba(224, 112, 112, 0.5);
    color: #e07070;
    font-weight: 600;
}
.pa-btn.pa-delete:hover { background: rgba(224, 112, 112, 0.15); border-color: #e07070; }
.skin-ransom .pa-btn.pa-delete { color: #8b0000; border-color: rgba(139, 0, 0, 0.4); }
.skin-napkin .pa-btn.pa-delete { color: #a04040; border-color: rgba(160, 64, 64, 0.4); }
.pa-btn.pa-send:hover { background: #d4b85c; }
.skin-ransom .pa-btn.pa-send { background: #3d2b1a; color: #f5f0e8; border-color: #3d2b1a; }
.skin-ransom .pa-btn.pa-send:hover { background: #2a1c0f; }
.skin-napkin .pa-btn.pa-send { background: #5a5040; color: #f8f4ee; border-color: #5a5040; }
.skin-napkin .pa-btn.pa-send:hover { background: #4a4030; }
/* Save state of cycling button */
.pa-btn.pa-save {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    font-weight: 600;
}
.pa-btn.pa-save:hover { background: rgba(201, 168, 76, 0.25); }
/* Add Clue — prominent accent */
.pa-btn.pa-add {
    background: rgba(106, 191, 105, 0.15);
    border-color: #6abf69;
    color: #6abf69;
    font-weight: 600;
    margin-left: auto;
}
.pa-btn.pa-add:hover { background: rgba(106, 191, 105, 0.25); }
.skin-ransom .pa-btn.pa-add { background: rgba(106, 191, 105, 0.2); border-color: #4a9a49; color: #2d5a1e; }
.skin-napkin .pa-btn.pa-add { background: rgba(106, 191, 105, 0.15); border-color: #4a9a49; color: #3a6a2a; }
/* Send screen back button */
.send-back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ---- Answer Selector (pill bar) ---- */
.answer-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 0 8px;
}
.answer-selector:empty { display: none; }
.answer-pill {
    padding: 6px 14px;
    font-size: 0.75em;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid rgba(128,128,128,0.25);
    border-radius: 20px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    white-space: nowrap;
}
.answer-pill:hover { opacity: 0.9; border-color: rgba(201, 168, 76, 0.4); }
.answer-pill.active {
    opacity: 1;
    background: #c9a84c;
    border-color: #c9a84c;
    color: #111;
}
.skin-ransom .answer-pill.active { background: #3d2b1a; border-color: #3d2b1a; color: #f5f0e8; }
.skin-napkin .answer-pill.active { background: #5a5040; border-color: #5a5040; color: #f8f4ee; }

/* ---- Clue Lock Button ---- */
.clue-lock-btn {
    padding: 10px 28px;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: #c9a84c;
    border: none;
    border-radius: 6px;
    color: #111;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.clue-lock-btn:hover { background: #d4b85c; }
.clue-lock-btn:active { transform: scale(0.97); }
.clue-lock-btn.locked {
    background: transparent;
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
    cursor: default;
    pointer-events: none;
}
.skin-ransom .clue-lock-btn { background: #3d2b1a; color: #f5f0e8; }
.skin-ransom .clue-lock-btn:hover { background: #2a1c0f; }
.skin-napkin .clue-lock-btn { background: #5a5040; color: #f8f4ee; }
.skin-napkin .clue-lock-btn:hover { background: #4a4030; }

/* Locked clue state — selectors disabled */
.difficulty-selector.locked,
.answer-selector.locked {
    opacity: 0.3;
    pointer-events: none;
}

/* ---- Cost Bar (sticky bottom) ---- */
.cost-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #111827;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cost-bar-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}
.cost-bar-count {
    font-size: 0.8em;
    color: #a0917a;
}
.cost-bar-total {
    font-size: 1em;
    font-weight: 600;
    color: #c9a84c;
}
.cost-bar-total.free {
    color: #4caf50;
}
.cost-bar-promo {
    display: flex;
    gap: 6px;
}
.cost-bar-promo input {
    width: 120px;
    padding: 6px 10px;
    font-size: 0.8em;
    font-family: inherit;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    color: #f5f0e8;
    outline: none;
}
.cost-bar-promo input:focus { border-color: #c9a84c; }
.cost-bar-promo input::placeholder { color: #5a5550; }
.cost-bar-promo button {
    padding: 6px 12px;
    font-size: 0.75em;
    font-family: inherit;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.25);
    color: #a0917a;
    cursor: pointer;
    transition: all 0.2s;
}
.cost-bar-promo button:hover { color: #c9a84c; border-color: #c9a84c; }
.cost-bar-checkout {
    padding: 8px 16px;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 600;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.2);
    color: #8a8070;
    cursor: not-allowed;
    transition: all 0.2s;
}

.premium-pip { font-size: 0.8em; color: #c9a84c; }

.hunt-card-price {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7em;
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 0.04em;
    opacity: 0.6;
}


/* ============================================
   ROUTE MAP (hand-drawn sketch)
   ============================================ */

.route-map { margin: -8px -4px 16px; }
.route-map-svg { width: 100%; height: auto; display: block; }
.rm-street {
    stroke: currentColor;
    stroke-width: 0.7;
    fill: none;
    opacity: 0.15;
}
.rm-label {
    font-size: 5.5px;
    fill: currentColor;
    opacity: 0.35;
    text-anchor: middle;
    font-family: 'Caveat', cursive;
    font-weight: 400;
}
.rm-route {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-dasharray: 5 3;
    fill: none;
    opacity: 0.45;
    stroke-linecap: round;
}
.rm-stop {
    fill: currentColor;
    opacity: 0.2;
}
.rm-stop.active {
    opacity: 0.8;
}
.rm-stop-num {
    font-size: 6px;
    fill: white;
    text-anchor: middle;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.rm-bar {
    fill: currentColor;
    opacity: 0.5;
}

/* Skin overrides for route map */
.skin-ransom .rm-label { font-family: 'Special Elite', cursive; font-size: 5px; }
.skin-ransom .rm-stop-num { fill: #f5f0e8; }
.skin-script .rm-route { stroke: #c9a84c; opacity: 0.35; }
.skin-script .rm-stop.active { fill: #c9a84c; }
.skin-script .rm-label { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.skin-napkin .rm-label { font-size: 6px; }
.skin-napkin .rm-stop-num { fill: #f8f4ee; }


/* ============================================
   BLANK CLUE HINT (new clue card)
   ============================================ */

.blank-clue-hint {
    font-size: 0.9em;
    opacity: 0.35;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 32px 0;
}


/* ============================================
   START LOCATION SCREEN (geo-gated)
   ============================================ */

.start-card {
    text-align: center;
}
.start-label {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.start-location {
    font-size: 1.4em;
    line-height: 1.3;
    margin-bottom: 16px;
}
.start-transit {
    font-size: 0.85em;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 24px;
}
.start-distance {
    font-size: 0.9em;
    min-height: 1.5em;
    margin-bottom: 16px;
}

/* Skin overrides for start screen */
.skin-preview .start-label { color: #888; }
.skin-preview .start-location { font-family: 'Playfair Display', serif; font-weight: 700; color: #f5f0e8; }
.skin-preview .start-transit { color: #999; }
.skin-preview .start-distance { color: #c9a84c; }
.skin-ransom .start-label { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.skin-ransom .start-location { font-family: 'Playfair Display', serif; font-weight: 700; }
.skin-ransom .start-distance { color: #5a3e28; }
.skin-script .start-label { color: #c9a84c; }
.skin-script .start-location { font-family: 'Great Vibes', cursive; font-size: 1.8em; color: #c9a84c; }
.skin-script .start-transit { font-family: 'Cormorant Garamond', serif; font-style: italic; color: #a0917a; }
.skin-script .start-distance { color: #e8dfd0; }
.skin-napkin .start-label { font-family: 'Caveat', cursive; font-size: 0.95em; text-transform: none; }
.skin-napkin .start-location { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.6em; }
.skin-napkin .start-transit { font-family: 'Caveat', cursive; }
.skin-napkin .start-distance { font-family: 'Caveat', cursive; color: #5a5040; }


/* ============================================
   START SCREEN PHOTO + ARRIVAL GALLERY
   ============================================ */

.start-phase { /* geo and photo phases toggle via hidden attr */ }
.start-photo-prompt {
    font-size: 0.9em;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 20px;
}
.start-photo-action {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 600;
    border: 2px dashed rgba(128,128,128,0.3);
    background: rgba(128,128,128,0.05);
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.start-photo-action:hover {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(128,128,128,0.1);
}
.start-photo-action svg { flex-shrink: 0; }
.start-photo-preview {
    margin-bottom: 16px;
}
.start-photo-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.start-skip-hint {
    font-size: 0.75em;
    opacity: 0.4;
    margin-top: 8px;
}
.memento-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    margin-top: 12px;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.memento-btn:hover { border-color: #c9a84c; color: #c9a84c; }

/* Arrival photo gallery */
.arrival-gallery {
    margin-bottom: 24px;
}
.arrival-gallery-label {
    font-size: 0.75em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.6;
}
.arrival-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}
.arrival-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Skin overrides for gallery */
.skin-preview .arrival-gallery-label { color: #888; }
.skin-ransom .arrival-gallery-label { font-family: 'Special Elite', cursive; color: #3d2b1a; }
.skin-script .arrival-gallery-label { color: #c9a84c; }
.skin-napkin .arrival-gallery-label { font-family: 'Caveat', cursive; text-transform: none; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 520px) {
    .card { padding: 24px 20px; }
    .intro-theme { font-size: 1.2em; }
    .skin-script .intro-theme { font-size: 1.5em; }
    .clue-text { font-size: 0.95em; }
    .skin-napkin .clue-text { font-size: 1.15em; }
    .skin-script .clue-text { font-size: 1.05em; }
    .arrival-bar { font-size: 1.6em; }
    .skin-script .arrival-bar,
    .skin-napkin .arrival-bar { font-size: 2em; }
    .hh-header h1 { font-size: 1.8em; }
    .envelope { width: 260px; height: 175px; }

    /* Mobile: next button prominent, fact below */
    .fact-reveal .action-btn {
        font-size: 1.1em;
        padding: 16px 24px;
    }
    .fact-text {
        font-size: 0.8em;
    }

    /* Preview arrows + peek cards tighter on mobile */
    .preview-arrow { width: 36px; height: 36px; font-size: 1.4em; }
    .peek-card { width: 56px; min-height: 120px; padding: 8px 6px; }
    .preview-carousel { gap: 4px; }

    /* Clue items in create-hunt */
    .suggestions-grid { grid-template-columns: 1fr; }
}
