/* =============================================
   🌾 DESIGN TOKENS — Stardew Valley palette
   ============================================= */
:root {
    /* Warm wood / barn-door browns */
    --color-primary: #8b5a3c;
    --color-primary-light: #b07a52;
    --color-primary-soft: #f5e6c4;
    --color-primary-deep: #5a3a1f;

    /* Forest / farm green accents */
    --color-accent: #5a7c3a;
    --color-accent-deep: #3d5a26;

    /* Parchment / cream surfaces */
    --color-bg: #fbeec4;                /* warm parchment */
    --color-surface: #fdf4dc;           /* card cream */
    --color-surface-deep: #f3e0b2;      /* shadowed parchment */

    /* Ink */
    --color-text: #3a2818;
    --color-text-light: #6d5340;
    --color-text-muted: #9a8160;

    /* Wood borders */
    --color-border: #c9a26b;
    --color-border-soft: #e2c799;
    --color-border-deep: #6d4023;

    /* Golden highlight (coins / lantern) */
    --color-gold: #e8b84b;

    /* Gradient */
    --gradient-accent: linear-gradient(135deg, #8b5a3c, #b07a52, #e8b84b);
    --gradient-forest: linear-gradient(135deg, #3d5a26, #5a7c3a, #7a9c4a);

    /* Shadows — warm brown */
    --shadow-xs: 0 1px 3px rgba(90, 58, 31, 0.10);
    --shadow-sm: 0 2px 10px rgba(90, 58, 31, 0.14);
    --shadow-md: 0 8px 28px rgba(90, 58, 31, 0.22);
    --shadow-lg: 0 16px 48px rgba(90, 58, 31, 0.28);

    /* Spacing rhythm */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 56px;
    --space-2xl: 88px;

    /* Border radius — squared off for a pixel feel */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-full: 999px;

    /* Fonts */
    --font-pixel: Georgia, 'Times New Roman', serif;
    --font-body: Georgia, 'Times New Roman', serif;
}


/* =============================================
   🎨 RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-primary);
    color: var(--color-surface);
}


/* ---------- LAYOUT CONTAINER ---------- */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}


/* =============================================
   🌾 FARM PEEK BUTTON & MODE
   ============================================= */
.farm-peek-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;

    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary-deep);
    background: var(--color-surface);
    padding: 12px 22px;
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-md);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.farm-peek-btn:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
}

/* =============================================
   ✏️ ADMIN BUTTON (floating)
   ============================================= */
.admin-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;

    font-family: var(--font-pixel);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--color-primary);
    padding: 10px 18px;
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-primary-light),
        var(--shadow-md);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.admin-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Smooth fade for the layers we toggle */
header,
main,
footer {
    transition: opacity 0.55s ease;
}

body::after {
    transition: opacity 0.55s ease;
}

/* Peek mode: hide blog chrome and clear the veil */
body.peek-farm header,
body.peek-farm main,
body.peek-farm footer {
    opacity: 0;
    pointer-events: none;
}

body.peek-farm::after {
    opacity: 0;
}


/* =============================================
   🌾 SITE BACKGROUND — Stardew screenshot
   ============================================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;

    background-image: url('DC8BB2A7-AEE4-494F-A3F6-CC10D3AA8451.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    /* Crisp pixel art — keep it sharp, just a touch warmer */
    image-rendering: pixelated;
    filter: saturate(1.05) brightness(1.02);
}

/* Warm veil — dims the farm scene so blog content stays the focus */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(20, 12, 6, 0.40) 0%, rgba(20, 12, 6, 0.62) 100%),
        linear-gradient(180deg, rgba(20, 12, 6, 0.45) 0%, rgba(20, 12, 6, 0.55) 100%);
}


/* =============================================
   ✨ HEADER
   ============================================= */
header {
    text-align: center;
    padding: 88px 0 64px;
    position: relative;
}

.profile-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-accent);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(253, 244, 220, 0.85);
    animation: fadeInUp 0.6s ease both;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--color-surface);
}

header h1 {
    font-family: var(--font-pixel);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--color-surface);
    text-shadow:
        3px 3px 0 var(--color-primary-deep),
        6px 6px 0 rgba(40, 25, 15, 0.45);
}

.tagline {
    font-family: var(--font-pixel);
    font-size: 1.25rem;
    color: var(--color-surface);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0 var(--color-primary-deep);
}

.header-bio {
    display: inline-block;
    margin-top: 22px;
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary-deep);
    background: var(--color-surface);
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    border: 3px solid var(--color-border-deep);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
}


/* =============================================
   ✨ NAV
   ============================================= */
nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

nav a {
    text-decoration: none;
    font-family: var(--font-pixel);
    color: var(--color-primary-deep);
    background: var(--color-surface);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

nav a:hover {
    background: var(--color-gold);
    color: var(--color-primary-deep);
    transform: translateY(-2px);
}


/* =============================================
   ✨ MAIN
   ============================================= */
main {
    padding: var(--space-xl) 0 var(--space-2xl);
}


/* =============================================
   🌾 PARCHMENT CARD — shared look (about/article)
   Like a Stardew dialog/letter: cream parchment,
   thick brown frame with an inner highlight.
   ============================================= */
.about,
article {
    background: var(--color-surface);
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-md);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        inset 0 0 0 4px var(--color-border),
        var(--shadow-md);
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
}


/* =============================================
   🌷 ABOUT SECTION
   ============================================= */
.about {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.5s ease both;
}

.about h2 {
    font-family: var(--font-pixel);
    font-size: 2.1rem;
    margin-bottom: 16px;
    color: var(--color-primary-deep);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.about p {
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.about p:last-child {
    margin-bottom: 0;
}


/* =============================================
   ✨ SECTION HEADINGS (eyebrows)
   ============================================= */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    text-shadow: 2px 2px 0 var(--color-primary-deep);
    margin-bottom: 10px;
}

.section-heading {
    margin-bottom: 28px;
    padding-left: 4px;
}

.section-heading h2 {
    font-family: var(--font-pixel);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-surface);
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow:
        2px 2px 0 var(--color-primary-deep),
        4px 4px 0 rgba(40, 25, 15, 0.4);
}


/* =============================================
   ✨ ARTICLE CARDS
   ============================================= */
article {
    margin-bottom: 24px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s ease;
}

article:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        inset 0 0 0 4px var(--color-gold),
        var(--shadow-lg);
}

article:last-child {
    margin-bottom: 0;
}


/* ---------- ARTICLE META (tag + date inline) ---------- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: var(--gradient-forest);
    color: var(--color-surface);
    font-family: var(--font-pixel);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-accent-deep);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-xs);
}

.date {
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    color: var(--color-primary-deep);
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ---------- ARTICLE TITLE ---------- */
article h2 {
    font-family: var(--font-pixel);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-primary-deep);
    line-height: 1.25;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

article:hover h2 {
    color: var(--color-accent-deep);
}

article p {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.8;
}

article p:last-of-type {
    margin-bottom: 0;
}


/* =============================================
   ✨ READ MORE LINK
   ============================================= */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-pixel);
    color: var(--color-surface);
    background: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border: 3px solid var(--color-primary-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-primary),
        var(--shadow-xs);
    transition: background 0.2s ease, transform 0.15s ease;
}

.read-more .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.read-more:hover {
    background: var(--color-gold);
    color: var(--color-primary-deep);
    transform: translateY(-2px);
}

.read-more:hover .arrow {
    transform: translateX(6px);
}


/* =============================================
   ✨ FOOTER
   ============================================= */
footer {
    text-align: center;
    padding: 56px 0 48px;
    margin-top: var(--space-lg);
}

.footer-title {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--color-surface);
    margin-bottom: 4px;
    font-weight: 700;
    text-shadow: 2px 2px 0 var(--color-primary-deep);
}

.footer-sub {
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    color: var(--color-surface);
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 var(--color-primary-deep);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--color-surface);
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 0 var(--color-primary-deep);
}

.footer-soon {
    margin: 6px 0 14px;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    opacity: 0.78;
    text-shadow: 1px 1px 0 var(--color-primary-deep);
}

.footer-soon a {
    color: var(--color-surface);
    text-decoration: none;
    border-bottom: 1px dashed rgba(253, 244, 220, 0.55);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.footer-soon a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.footer-hours {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary-deep);
    background: var(--color-surface);
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
}

footer a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--color-surface);
}


/* =============================================
   ✨ RESPONSIVE — Tablet & Mobile
   ============================================= */
@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    header {
        padding: calc(48px + env(safe-area-inset-top)) 0 40px;
    }

    header h1 {
        font-size: 2.4rem;
        letter-spacing: 0.5px;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 8px;
    }

    .profile-photo {
        width: 104px;
        height: 104px;
        margin-bottom: 16px;
    }

    .header-bio {
        font-size: 0.78rem;
        padding: 6px 14px;
        letter-spacing: 0.8px;
    }

    nav {
        gap: 8px;
        margin-top: 22px;
        flex-wrap: wrap;
        padding: 0 4px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 11px 16px;
        letter-spacing: 0.6px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    main {
        padding: var(--space-md) 0 var(--space-xl);
    }

    .about {
        padding: 26px 22px;
        margin-bottom: var(--space-lg);
    }

    .about h2 {
        font-size: 1.55rem;
        margin-bottom: 12px;
    }

    .about p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .section-heading {
        margin-bottom: 20px;
        padding-left: 2px;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    article {
        padding: 24px 22px;
        margin-bottom: 16px;
    }

    article h2 {
        font-size: 1.55rem;
        margin-bottom: 12px;
    }

    .article-meta {
        gap: 10px;
        margin-bottom: 14px;
    }

    .tag {
        font-size: 0.78rem;
        padding: 4px 12px;
    }

    .date {
        font-size: 0.88rem;
    }

    article p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .read-more {
        font-size: 0.95rem;
        padding: 9px 18px;
        min-height: 42px;
    }

    /* On touch devices, the hover transform sticks awkwardly after tap. */
    article:hover {
        transform: none;
    }

    /* iOS Safari mishandles background-attachment: fixed.
       Fall back to scroll so the screenshot still covers cleanly. */
    body::before {
        background-attachment: scroll;
    }

    /* Soften pixel-style drop shadows so they don't crowd small text */
    header h1 {
        text-shadow:
            2px 2px 0 var(--color-primary-deep),
            4px 4px 0 rgba(40, 25, 15, 0.4);
    }

    .tagline,
    .footer-title,
    .footer-sub,
    .footer-copy,
    .section-heading h2 {
        text-shadow: 1px 1px 0 var(--color-primary-deep);
    }

    /* Slightly lighter veil on small screens so the scene still reads */
    body::after {
        background:
            radial-gradient(ellipse at center, rgba(20, 12, 6, 0.34) 0%, rgba(20, 12, 6, 0.54) 100%),
            linear-gradient(180deg, rgba(20, 12, 6, 0.38) 0%, rgba(20, 12, 6, 0.50) 100%);
    }

    /* Farm peek button — full-width pill above home-indicator */
    .farm-peek-btn {
        bottom: calc(14px + env(safe-area-inset-bottom));
        right: 14px;
        left: 14px;
        font-size: 0.88rem;
        padding: 12px 14px;
        min-height: 46px;
        text-align: center;
        border-width: 2px;
        box-shadow:
            inset 0 0 0 2px var(--color-surface),
            var(--shadow-sm);
    }

    /* Admin button — top-right corner so it doesn't fight the full-width farm peek */
    .admin-btn {
        top: calc(10px + env(safe-area-inset-top));
        left: auto;
        right: 10px;
        bottom: auto;
        font-size: 0.76rem;
        padding: 7px 12px;
        border-width: 2px;
        box-shadow:
            inset 0 0 0 2px var(--color-primary-light),
            var(--shadow-sm);
    }

    /* Back link — comfortable tap target */
    .back-link {
        font-size: 0.9rem;
        padding: 10px 16px;
        min-height: 42px;
    }

    /* Make space at the bottom so the floating button doesn't cover the footer */
    footer {
        padding: 40px 0 calc(96px + env(safe-area-inset-bottom));
        margin-top: var(--space-md);
    }

    .footer-title {
        font-size: 1.45rem;
    }

    .footer-sub {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .footer-hours {
        font-size: 0.82rem;
        padding: 5px 12px;
    }

    .footer-copy {
        font-size: 0.78rem;
        padding: 0 12px;
    }
}

/* Very small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }

    header h1 {
        font-size: 2.05rem;
    }

    .tagline {
        font-size: 0.92rem;
    }

    .profile-photo {
        width: 92px;
        height: 92px;
    }

    nav {
        gap: 6px;
    }

    nav a {
        font-size: 0.74rem;
        padding: 8px 11px;
    }

    .about,
    article {
        padding: 22px 18px;
    }

    .about h2,
    article h2,
    .section-heading h2 {
        font-size: 1.4rem;
    }

    .post-page article h2 {
        font-size: 1.65rem;
    }
}


/* =============================================
   ✨ ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: fadeInUp 0.6s ease both;
}

article:nth-of-type(1) { animation-delay: 0.15s; }
article:nth-of-type(2) { animation-delay: 0.28s; }
article:nth-of-type(3) { animation-delay: 0.4s; }

.section-heading {
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.1s;
}


/* =============================================
   📄 INDIVIDUAL POST PAGE STYLES
   ============================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    color: var(--color-primary-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 3px solid var(--color-border-deep);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
    transition: gap 0.3s ease, transform 0.15s ease, background 0.2s ease;
}

.back-link:hover {
    gap: 12px;
    background: var(--color-gold);
    transform: translateX(-2px);
}

.post-page article {
    animation: fadeInUp 0.5s ease both;
    padding: 56px;
}

.post-page article:hover {
    transform: none;
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        inset 0 0 0 4px var(--color-border),
        var(--shadow-md);
}

.post-page article:hover h2 {
    color: var(--color-primary-deep);
}

.post-page article h2 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.post-page article p {
    margin-bottom: 18px;
    font-size: 1.08rem;
    line-height: 1.85;
}

@media (max-width: 600px) {
    .post-page article {
        padding: 28px 24px;
    }

    .post-page article h2 {
        font-size: 1.9rem;
    }
}


/* =============================================
   🌾 LANDING / TITLE SCREEN
   Stardew-style "press to start" splash
   ============================================= */
body.landing-page {
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #1a1208;
    cursor: pointer;
}

/* The landing page already shows the farm screenshot via body::before */
body.landing-page::after {
    /* Slightly stronger vignette so the dialogue/hint pop */
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(20, 12, 6, 0.35) 100%),
        linear-gradient(180deg, rgba(20, 12, 6, 0.20) 0%, rgba(20, 12, 6, 0.35) 100%);
}

.landing-scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: block;
    border: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.landing-scene:focus {
    outline: none;
}


/* ---------- TOP HINT ---------- */
.landing-hint {
    position: absolute;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 14px 28px;
    background: var(--color-surface);
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-md);
    animation: fadeInUp 0.6s ease both;
}

.landing-hint-title {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary-deep);
    margin-bottom: 4px;
}

.landing-hint-sub {
    display: block;
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    animation: blinkText 1.6s ease-in-out infinite;
}

.landing-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, -16px);
}


/* ---------- CHARACTER MARKER (pulsing "!") ---------- */
.character-marker {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.marker-bubble {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary-deep);
    background: var(--color-gold);
    padding: 6px 14px;
    border: 3px solid var(--color-primary-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-gold),
        0 4px 0 var(--color-primary-deep),
        var(--shadow-md);
    animation: markerBob 1.1s ease-in-out infinite;
}

.character-marker.is-hidden {
    opacity: 0;
}


/* ---------- SUBTLE "COMING SOON" TEASER ---------- */
.soon-link {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 14px);
    right: 18px;
    z-index: 30;
    font-family: var(--font-pixel);
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    color: var(--color-primary-soft);
    background: rgba(26, 18, 8, 0.55);
    padding: 6px 12px;
    border: 1px solid rgba(232, 184, 75, 0.45);
    border-radius: var(--radius-sm);
    text-decoration: none;
    opacity: 0.7;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.soon-link:hover,
.soon-link:focus-visible {
    opacity: 1;
    color: var(--color-gold);
    border-color: var(--color-gold);
    outline: none;
}


/* ---------- STARDEW DIALOGUE BOX ---------- */
.dialogue-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    padding-bottom: 6vh;
    background: rgba(15, 8, 4, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.dialogue-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.stardew-dialogue {
    width: min(720px, 100%);
    background: var(--color-surface);
    border: 4px solid var(--color-border-deep);
    border-radius: var(--radius-md);
    box-shadow:
        inset 0 0 0 3px var(--color-surface),
        inset 0 0 0 6px var(--color-border),
        var(--shadow-lg);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.45s ease;
}

.dialogue-overlay.is-visible .stardew-dialogue {
    transform: translateY(0);
    opacity: 1;
}


/* Portrait column — pixel-art frame around the photo */
.dialogue-portrait {
    text-align: center;
    width: 130px;
}

.portrait-frame {
    width: 130px;
    height: 130px;
    background: var(--color-primary-soft);
    border: 4px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 3px var(--color-surface),
        inset 0 0 0 6px var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.portrait-name {
    margin-top: 10px;
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary-deep);
    background: var(--color-gold);
    padding: 4px 10px;
    border: 2px solid var(--color-primary-deep);
    border-radius: var(--radius-sm);
}


/* Dialogue text + options */
.dialogue-body {
    padding-top: 4px;
}

.dialogue-text {
    font-family: var(--font-pixel);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}


/* ---------- HOURS-PLAYED COUNTER ---------- */
.hours-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: var(--color-primary-soft);
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hours-counter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hours-counter-label {
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--color-primary-deep);
}

.hours-counter-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary-deep);
    background: var(--color-gold);
    padding: 4px 12px;
    border: 2px solid var(--color-primary-deep);
    border-radius: var(--radius-sm);
    min-width: 92px;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hours-counter-unit {
    font-size: 0.85rem;
    font-weight: 600;
}

.hours-counter.is-complete .hours-counter-value {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.45);
    animation: hoursPulse 0.6s ease;
}

@keyframes hoursPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1.06); }
}


.dialogue-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialogue-option {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-primary-deep);
    background: var(--color-surface);
    padding: 12px 18px;
    border: 3px solid var(--color-border-deep);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-surface),
        var(--shadow-sm);
    transition: background 0.18s ease,
                color 0.18s ease,
                transform 0.15s ease;
}

.dialogue-option .option-glyph {
    font-size: 1.25rem;
}

.dialogue-option:hover,
.dialogue-option:focus-visible {
    background: var(--color-gold);
    transform: translateX(4px);
    outline: none;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .landing-hint {
        top: calc(env(safe-area-inset-top) + 18px);
        padding: 12px 20px;
        max-width: calc(100vw - 32px);
    }

    .landing-hint-title {
        font-size: 1.2rem;
    }

    .landing-hint-sub {
        font-size: 0.82rem;
    }

    .character-marker {
        top: 50%;
    }

    .marker-bubble {
        font-size: 1.15rem;
        padding: 6px 12px;
    }

    .dialogue-overlay {
        padding: 16px;
        padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
        align-items: flex-end;
    }

    .stardew-dialogue {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
        border-width: 3px;
        box-shadow:
            inset 0 0 0 2px var(--color-surface),
            inset 0 0 0 4px var(--color-border),
            var(--shadow-lg);
    }

    .dialogue-portrait {
        width: auto;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .portrait-frame {
        width: 72px;
        height: 72px;
        border-width: 3px;
        box-shadow:
            inset 0 0 0 2px var(--color-surface),
            inset 0 0 0 4px var(--color-border);
        flex-shrink: 0;
    }

    .portrait-name {
        margin-top: 0;
        font-size: 0.95rem;
    }

    .dialogue-text {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .hours-counter {
        padding: 9px 12px;
        gap: 10px;
        margin-bottom: 14px;
    }

    .hours-counter-label {
        font-size: 0.82rem;
        flex: 1;
        line-height: 1.3;
    }

    .hours-counter-value {
        font-size: 1.25rem;
        min-width: 80px;
        padding: 3px 10px;
    }

    .dialogue-option {
        font-size: 0.98rem;
        padding: 13px 16px;
        min-height: 48px;
    }

    .dialogue-option:hover,
    .dialogue-option:focus-visible {
        transform: none;
    }
}

/* Very small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
    .landing-hint {
        padding: 10px 16px;
    }

    .landing-hint-title {
        font-size: 1.05rem;
    }

    .landing-hint-sub {
        font-size: 0.76rem;
    }

    .stardew-dialogue {
        padding: 14px;
        gap: 12px;
    }

    .portrait-frame {
        width: 62px;
        height: 62px;
    }

    .dialogue-text {
        font-size: 0.95rem;
    }

    .dialogue-option {
        font-size: 0.92rem;
        padding: 11px 14px;
    }
}


/* ---------- ANIMATIONS ---------- */
@keyframes markerBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
