/* Web first-run v2 (dark: web_first_run_v2). The reminder card and the
   4-stop tour; colours come in as --lnfr-* variables set per theme by
   first_run_v2.js. No italics anywhere (CEO 2026-10-07). */

.lnfr-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 6, 20, 0.55);
    animation: lnfr-fade .2s ease;
}

.lnfr-card {
    position: relative;
    width: 540px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 26px 44px 18px;
    border-radius: 18px;
    border: 1px solid var(--lnfr-line);
    background: var(--lnfr-paper);
    color: var(--lnfr-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "PingFang TC", "Hiragino Mincho ProN", serif;
    font-style: normal;
    text-align: left;
    animation: lnfr-rise .25s ease;
}

.lnfr-card *, .lnfr-pop * { font-style: normal; }

.lnfr-card.lnfr-card-ok { width: 400px; padding: 28px 28px 24px; text-align: center; }

.lnfr-glow {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 300px;
    pointer-events: none;
    background: radial-gradient(55% 50% at 50% 30%, rgba(255, 233, 176, 0.35), rgba(255, 233, 176, 0));
}
.lnfr-no-glow .lnfr-glow { display: none; }

.lnfr-x {
    position: absolute;
    right: 14px;
    top: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--lnfr-ink);
    font: 300 28px/30px -apple-system, system-ui, sans-serif;
    cursor: pointer;
}

.lnfr-trees {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 -10px 18px;
}
.lnfr-stage { flex: 1; min-width: 0; text-align: center; }
.lnfr-art { height: 116px; display: flex; align-items: flex-end; justify-content: center; }
.lnfr-art svg { width: 100%; display: block; }
.lnfr-cnt { margin-top: 6px; color: var(--lnfr-ink); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lnfr-elab { margin-top: 1px; color: var(--lnfr-brown); font: 500 9px "Avenir Next", system-ui, "PingFang TC", sans-serif; letter-spacing: 1px; }
.lnfr-hz { margin-top: 1px; color: var(--lnfr-brown); opacity: .85; font-size: 10.5px; line-height: 1.25; padding: 0 2px; }

.lnfr-title, .lnfr-ok-title {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "PingFang TC", "Hiragino Mincho ProN", serif;
}
.lnfr-title {
    position: relative;
    margin: 4px 0 12px;
    color: var(--lnfr-ink);
    font-size: 26px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: .2px;
    text-align: center;
    white-space: pre-line;
}
/* Korean wraps between words, never inside one. */
.lnfr-overlay:lang(ko) .lnfr-title, .lnfr-tour:lang(ko) .lnfr-pop-text { word-break: keep-all; }
.lnfr-line { margin: 0 0 18px; font-size: 17px; line-height: 24px; text-align: center; opacity: .9; }

.lnfr-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 18px;
    border-radius: 24px;
    border: 1px solid var(--lnfr-line);
    background: var(--lnfr-soft);
    cursor: pointer;
}
.lnfr-pill:focus-within { outline: 2px solid rgba(139, 92, 246, .55); outline-offset: 2px; }
.lnfr-at { color: var(--lnfr-muted); font: 600 11px "Avenir Next", system-ui, "PingFang TC", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.lnfr-time { color: var(--lnfr-ink); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lnfr-pill select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

.lnfr-error { margin: 8px 0 0; color: #c2410c; font-size: 14px; text-align: center; }

.lnfr-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.lnfr-prim, .lnfr-sec {
    height: 50px;
    border-radius: 10px;
    font: 500 17px Palatino, "Palatino Linotype", Georgia, "PingFang TC", serif;
    letter-spacing: .3px;
    cursor: pointer;
}
.lnfr-prim { border: 0; background: var(--lnfr-ink); color: var(--lnfr-on-ink); box-shadow: 0 6px 14px rgba(61, 27, 137, .22); }
.lnfr-prim:hover { filter: brightness(1.08); }
.lnfr-prim:disabled { opacity: .6; cursor: default; }
.lnfr-sec { border: 1px solid var(--lnfr-line); background: transparent; color: var(--lnfr-ink); }
.lnfr-card button:focus-visible { outline: 2px solid rgba(139, 92, 246, .55); outline-offset: 2px; }

.lnfr-qr { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lnfr-line); }
.lnfr-qr img { flex: none; width: 56px; height: 56px; padding: 4px; border-radius: 7px; background: #fff; }
.lnfr-qr span { color: var(--lnfr-muted); font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, "PingFang TC", sans-serif; }

.lnfr-ok-icon { display: block; margin: 0 auto 14px; }
.lnfr-ok-title { margin: 0 0 10px; color: var(--lnfr-text); font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: .3px; }
.lnfr-ok-msg { margin: 0 0 6px; font-size: 16px; line-height: 22px; }
.lnfr-ok-sub { margin: 0 0 20px; color: var(--lnfr-muted); font-size: 14px; line-height: 20px; }
.lnfr-ok .lnfr-prim { width: 100%; }

/* ---------- the tour ---------- */

.lnfr-tour { position: fixed; inset: 0; z-index: 10050; }
.lnfr-spot {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 1.5px rgba(255, 248, 230, .85), 0 0 0 4000px rgba(10, 6, 20, .55);
    transition: all .3s cubic-bezier(.3, .7, .3, 1);
    pointer-events: none;
}
.lnfr-pop {
    position: fixed;
    box-sizing: border-box;
    width: max-content;
    min-width: 280px;
    max-width: min(400px, calc(100vw - 16px));
    padding: 18px 20px 14px;
    border-radius: 14px;
    border: 1px solid var(--lnfr-pop-border);
    background: var(--lnfr-pop-bg);
    color: var(--lnfr-pop-text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "PingFang TC", "Hiragino Mincho ProN", serif;
    text-align: left;
    animation: lnfr-fade .25s ease;
}
.lnfr-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--lnfr-pop-bg);
    border: 1px solid var(--lnfr-pop-border);
    transform: rotate(45deg);
}
.lnfr-pop[data-side="right"] .lnfr-arrow { left: -7px; border-right: 0; border-top: 0; }
.lnfr-pop[data-side="left"] .lnfr-arrow { right: -7px; border-left: 0; border-bottom: 0; }
.lnfr-pop-text { margin: 0 0 14px; font-size: 17px; line-height: 1.45; }
.lnfr-pop-name { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; opacity: 0.75; }
.lnfr-pop-body { display: block; }
.lnfr-pop-foot { display: flex; align-items: center; gap: 8px; }
.lnfr-prog { margin-right: auto; opacity: .7; font-size: 13px; }
.lnfr-skip {
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: .7;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.lnfr-skip:hover { opacity: 1; }
.lnfr-next {
    min-width: 72px;
    padding: 6px 16px;
    border: 0;
    border-radius: 20px;
    background: var(--lnfr-pop-btn);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.lnfr-next:hover { background: var(--lnfr-pop-btn-hover); }
.lnfr-pop button:focus-visible { outline: 2px solid rgba(139, 92, 246, .55); outline-offset: 2px; }

/* The paywall's Not now: the same size as the main button (decisions.md 2026-10-07). */
.paywall-not-now {
    margin-top: 1rem;
    margin-right: 12px;
    margin-bottom: .5rem;
    padding: .5rem 2rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: 600 1.125rem/1.75rem Palatino, serif;
    letter-spacing: .2px;
    vertical-align: top;
    cursor: pointer;
    transition: background .2s ease;
}
.paywall-not-now:hover { background: rgba(255, 255, 255, .14); }

@keyframes lnfr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lnfr-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
    .lnfr-card { padding: 22px 20px 16px; }
    .lnfr-title { font-size: 22px; line-height: 28px; }
}
