/* ============================================================
   EAGLE VISION — PUTTING GAME
   Used only by game.html. Styles for the canvas game overlay,
   the on-screen controls (aim / putt), and the win/consolation
   result card.
   ============================================================ */

/* ── INTRO PAGE — the game's own landing section ── */
.game-intro {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 60px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 20%, rgba(192,136,96,0.10) 0%, transparent 60%),
        var(--bg);
    transition: opacity .3s ease, visibility .3s;
}
.game-intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; position: fixed; }
.game-intro-inner {
    max-width: 560px; text-align: center;
}
.game-intro-headline {
    margin-bottom: 26px;
}
.game-intro-headline em { font-style: italic; color: var(--accent); }
.game-intro-body {
    font-size: 17px; line-height: 1.8; color: var(--muted);
    margin-bottom: 40px;
}
.game-intro-body strong { color: var(--text); font-weight: 600; }
.game-intro-cta {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 24px; font-weight: 600;
    letter-spacing: .05em;
    color: #2a1606;
    background: linear-gradient(135deg, #b06a3a 0%, #cf9468 45%, #ecc596 100%);
    border: 1px solid rgba(255,225,160,.78); border-radius: 50px;
    padding: 20px 54px; cursor: pointer;
    box-shadow: 0 0 22px rgba(212,160,122,.45), 0 8px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
    animation: modalHalfGlow 2.2s ease-in-out infinite;
    transition: transform .2s cubic-bezier(.16,1,.3,1), filter .2s;
}
.game-intro-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ── GAME OVERLAY (full-screen canvas) ── */
.putt-overlay {
    position: fixed; inset: 0; z-index: 800;
    opacity: 0; pointer-events: none;
    transition: opacity .5s cubic-bezier(0.16,1,.3,1);
}
.putt-overlay.active { opacity: 1; pointer-events: all; }
#puttCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%; display: block; touch-action: none;
}
.putt-close-btn {
    position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: 20px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%; /* full-size tap target, clear of the notch */
    background: rgba(10,8,4,0.82);
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid rgba(255,220,150,0.15);
    color: var(--accent); font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s, color .3s, border-color .3s;
}
.putt-close-btn:hover { background: rgba(20,14,8,0.9); color: var(--accent-hi); border-color: rgba(255,220,150,0.30); }

@keyframes modalHalfGlow {
    0%,100% { box-shadow: 0 0 18px rgba(212,160,122,.45), 0 6px 20px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.35); }
    50%     { box-shadow: 0 0 40px rgba(232,192,120,.78), 0 8px 26px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.42); }
}

/* ── RESULT CARD — shown after the 2nd shot resolves (win or consolation) ── */
.free-won-overlay {
    display: flex; position: fixed; inset: 0; z-index: 900;
    background: rgba(6,4,2,.82);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .4s ease;
}
.free-won-overlay.open { opacity: 1; pointer-events: all; }
.celeb-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; display: block;
}
.free-won-card {
    position: relative; z-index: 1;
    background: rgba(10,8,4,0.82);
    backdrop-filter: blur(32px) saturate(1.8); -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid rgba(255,220,150,0.15);
    border-radius: 22px; padding: 44px 36px; max-width: 440px; width: 100%;
    margin: 0 20px; text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,220,150,0.10), 0 0 60px rgba(192,136,96,.08), 0 40px 80px rgba(0,0,0,.7);
    transform: translateY(30px) scale(.95); opacity: 0;
    transition: transform .65s cubic-bezier(.16,1,.3,1) .18s,
                opacity .65s ease .18s;
}
.free-won-overlay.open .free-won-card { transform: none; opacity: 1; }
.free-won-eyebrow {
    font-size: 9px; letter-spacing: .5em; text-transform: uppercase;
    color: rgba(192,136,96,.85); margin-bottom: 20px;
}
.free-won-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 10vw, 60px);
    font-weight: 600; line-height: 1.02; letter-spacing: .03em;
    color: var(--text); margin-bottom: 18px;
}
.free-won-headline em { font-style: italic; color: var(--accent); display: block; }
.free-won-sub {
    font-size: 14px; color: var(--muted); line-height: 1.8;
    margin-bottom: 28px; font-style: italic;
}
.free-won-rule {
    width: 32px; height: 1px; background: var(--accent);
    margin: 0 auto 28px; opacity: .45;
}
.free-won-code-wrap {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: rgba(192,136,96,.06); border: 1px solid rgba(192,136,96,.28);
    border-radius: 12px; padding: 18px 20px; margin-bottom: 24px;
    animation: codeGlow 2.8s ease-in-out infinite;
}
.free-won-code {
    font-family: 'Inter', monospace; font-size: 22px; font-weight: 600;
    letter-spacing: .2em; color: var(--accent); flex: 1; text-align: center;
}
.free-won-copy-btn {
    background: var(--accent); color: #fff;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .15em; text-transform: uppercase;
    border: none; border-radius: 8px; padding: 12px 22px; cursor: pointer;
    transition: background .2s, transform .15s; flex-shrink: 0;
}
.free-won-copy-btn:hover { background: var(--accent-hi); transform: translateY(-1px); }
@keyframes codeGlow {
    0%,100% { box-shadow: none; border-color: rgba(192,136,96,.28); }
    50%     { box-shadow: 0 0 18px rgba(192,136,96,.18), inset 0 0 10px rgba(192,136,96,.06); border-color: rgba(192,136,96,.52); }
}
.free-won-shop-btn {
    display: block; width: 100%; padding: 16px;
    background: var(--accent); color: #fff; text-align: center;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    text-decoration: none; border: none; border-radius: 10px; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 2px 16px rgba(192,136,96,0.35);
    transition: background .25s, transform .15s, box-shadow .25s;
}
.free-won-shop-btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 28px rgba(192,136,96,0.55); }
