/* Lean flow — one stylesheet, phone-shaped, warm palette, big touch targets.
   Deliberately does NOT extend the site style.css — this is a self-contained
   trial experience for a 13-year-old rural student. */

:root {
    --ln-bg:        #FFFAF0;
    --ln-surface:   #FFFFFF;
    --ln-ink:       #1A1611;
    --ln-ink-soft:  #5A4E3E;
    --ln-brand:     #F58549;   /* sunrise orange */
    --ln-brand-2:   #6BAED6;   /* sky blue */
    --ln-good:      #4CAF50;   /* leaf green */
    --ln-warn:      #E88C7D;
    --ln-line:      #EDE3D2;
    --ln-shadow:    0 6px 22px rgba(58, 42, 27, 0.10);
    --ln-radius:    18px;
    --ln-tap:       56px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ln-bg);
    color: var(--ln-ink);
    font-family: "Iowan Old Style", Georgia, ui-serif, "Segoe UI", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

body.ln-body {
    display: flex;
    justify-content: center;
}

.ln-shell {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: var(--ln-bg);
    padding: 12px 16px 96px;
    position: relative;
}

/* ---------- header ---------- */

.ln-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0 12px;
    position: sticky;
    top: 0;
    background: var(--ln-bg);
    z-index: 20;
}

.ln-back {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ln-ink);
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 12px;
    min-width: 44px;
    min-height: 44px;
}
.ln-back:hover { background: rgba(0,0,0,0.05); }

.ln-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ln-ink);
    cursor: pointer;
    min-height: 40px;
}

/* ---------- progress dots ---------- */

.ln-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 4px 0 20px;
}
.ln-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--ln-line);
    transition: background 0.2s;
}
.ln-dot.on   { background: var(--ln-brand); }
.ln-dot.done { background: var(--ln-good); }

/* ---------- mascot ---------- */

.ln-mascot {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 4px 16px;
}
.ln-mascot img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}
.ln-bubble {
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ln-ink);
    position: relative;
    line-height: 1.45;
    box-shadow: var(--ln-shadow);
}
.ln-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: var(--ln-surface);
    border-left: 1.5px solid var(--ln-line);
    border-bottom: 1.5px solid var(--ln-line);
    transform: rotate(45deg);
}

/* ---------- headings ---------- */

.ln-h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ln-sub {
    color: var(--ln-ink-soft);
    font-size: 16px;
    margin: 0 0 22px;
}

/* ---------- forms / buttons ---------- */

.ln-label {
    display: block;
    font-weight: 600;
    margin: 18px 0 8px;
    font-size: 16px;
}
.ln-input, .ln-select, .ln-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    font-family: inherit;
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: 14px;
    color: var(--ln-ink);
    min-height: var(--ln-tap);
}
.ln-input:focus, .ln-select:focus, .ln-textarea:focus {
    outline: none;
    border-color: var(--ln-brand);
}

.ln-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    background: var(--ln-brand);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    min-height: var(--ln-tap);
    box-shadow: 0 4px 14px rgba(245, 133, 73, 0.35);
    transition: transform 0.1s;
}
.ln-btn:active { transform: scale(0.98); }
.ln-btn:disabled {
    background: var(--ln-line);
    color: var(--ln-ink-soft);
    box-shadow: none;
    cursor: not-allowed;
}
.ln-btn-secondary {
    background: var(--ln-surface);
    color: var(--ln-ink);
    border: 1.5px solid var(--ln-line);
    box-shadow: none;
}
.ln-btn-ghost {
    background: none;
    color: var(--ln-brand);
    border: none;
    box-shadow: none;
    text-decoration: underline;
    font-weight: 600;
}

.ln-cta-row {
    position: sticky;
    bottom: 0;
    padding: 16px 0 12px;
    background: linear-gradient(to top, var(--ln-bg) 70%, transparent);
    display: flex;
    gap: 10px;
}

/* ---------- explore (swipe cards) ---------- */

.ln-explore-stage {
    position: relative;
    height: 460px;
    margin-bottom: 20px;
}
.ln-card {
    position: absolute;
    inset: 0;
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: var(--ln-radius);
    box-shadow: var(--ln-shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.35s ease, opacity 0.3s;
}
.ln-card.gone-right { transform: translateX(500px) rotate(20deg); opacity: 0; }
.ln-card.gone-left  { transform: translateX(-500px) rotate(-20deg); opacity: 0; }
.ln-card.gone-up    { transform: translateY(-500px); opacity: 0; }
.ln-card-emoji { font-size: 96px; margin: 12px 0; }
.ln-card-title { font-size: 26px; font-weight: 700; margin: 0 0 2px; }
.ln-card-title-hi { font-size: 20px; color: var(--ln-ink-soft); margin: 0 0 12px; }
.ln-card-line { font-size: 16px; color: var(--ln-ink); }
.ln-card-tell-more {
    margin-top: auto;
    background: transparent;
    border: 1.5px dashed var(--ln-brand-2);
    color: var(--ln-brand-2);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.ln-swipe-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.ln-swipe-btn {
    padding: 18px;
    border: none;
    border-radius: 14px;
    font-size: 28px;
    cursor: pointer;
    min-height: 64px;
    box-shadow: var(--ln-shadow);
}
.ln-swipe-btn.pass { background: #FFE9E4; }
.ln-swipe-btn.save { background: #FFF3D3; }
.ln-swipe-btn.like { background: #DFF6E1; }

.ln-explore-counter {
    text-align: center;
    color: var(--ln-ink-soft);
    font-size: 14px;
    margin-bottom: 4px;
}

/* ---------- strengths sliders ---------- */

.ln-slider-row {
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.ln-slider-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.ln-slider-label .emoji { font-size: 26px; }
.ln-smiley-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.ln-smiley {
    flex: 1;
    aspect-ratio: 1;
    max-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ln-bg);
    border: 2px solid var(--ln-line);
    border-radius: 14px;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
}
.ln-smiley.on {
    background: var(--ln-brand);
    border-color: var(--ln-brand);
    transform: scale(1.08);
}
.ln-scale-caption {
    display: flex;
    justify-content: space-between;
    color: var(--ln-ink-soft);
    font-size: 12px;
    margin-top: 6px;
}

/* ---------- tile picker ---------- */

.ln-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.ln-tile {
    background: var(--ln-surface);
    border: 2px solid var(--ln-line);
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.15s, transform 0.1s;
}
.ln-tile:active { transform: scale(0.97); }
.ln-tile.on {
    border-color: var(--ln-brand);
    background: #FFF3E6;
}
.ln-tile-emoji { font-size: 40px; margin-bottom: 8px; }
.ln-tile-label { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ln-tile-label-hi { font-size: 13px; color: var(--ln-ink-soft); }

/* ---------- Ikigai output tiles ---------- */

.ln-iki-tile {
    background: var(--ln-surface);
    border: 2px solid var(--ln-line);
    border-left: 6px solid var(--ln-brand);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
}
.ln-iki-tile[data-axis="love"]  { border-left-color: #E88C7D; }
.ln-iki-tile[data-axis="good"]  { border-left-color: #F5B342; }
.ln-iki-tile[data-axis="world"] { border-left-color: #4CAF50; }
.ln-iki-tile[data-axis="paid"]  { border-left-color: #6BAED6; }

.ln-iki-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ln-iki-body { color: var(--ln-ink-soft); font-size: 15px; }
.ln-iki-body strong { color: var(--ln-ink); }

.ln-stitched {
    margin: 22px 0 12px;
    background: linear-gradient(135deg, #FFF3E6, #E8F4FB);
    border-radius: 16px;
    padding: 18px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ln-ink);
}

/* ---------- My Map cards ---------- */

.ln-map-card {
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--ln-shadow);
}
.ln-map-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ln-map-emoji {
    font-size: 48px;
    width: 68px;
    height: 68px;
    background: var(--ln-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ln-map-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}
.ln-map-line { color: var(--ln-ink-soft); font-size: 15px; margin: 0; }

.ln-map-section {
    padding: 10px 0;
    border-top: 1px dashed var(--ln-line);
    font-size: 15px;
}
.ln-map-section:first-of-type { border-top: none; }
.ln-map-section-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ln-brand);
    font-weight: 700;
    margin-bottom: 4px;
}

.ln-map-subjects {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.ln-map-subject {
    background: var(--ln-bg);
    border: 1.5px solid var(--ln-line);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- gate / more features / print ---------- */

.ln-gate {
    background: #FFF3E6;
    border: 2px solid var(--ln-brand);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
}
.ln-gate-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 16px;
}
.ln-gate-step .check { font-size: 22px; }
.ln-gate-step.done { color: var(--ln-good); }

.ln-more-tile {
    background: linear-gradient(135deg, #6BAED6, #4A90BF);
    color: white;
    border-radius: 18px;
    padding: 22px;
    margin: 22px 0 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--ln-shadow);
}
.ln-more-tile h3 { margin: 0 0 4px; font-size: 20px; }
.ln-more-tile p { margin: 0 0 12px; opacity: 0.9; font-size: 14px; }

.ln-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.ln-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ln-surface);
    border: 1.5px solid var(--ln-brand);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------- audio-hint speaker ---------- */

.ln-tts {
    background: none;
    border: none;
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--ln-brand-2);
    border-radius: 8px;
    min-width: 32px;
}
.ln-tts:hover { background: rgba(107, 174, 214, 0.15); }

/* ---------- print view ---------- */

@media print {
    body { background: white; }
    .ln-shell { max-width: 100%; padding: 0; }
    .ln-header, .ln-progress, .ln-cta-row, .ln-tts, .ln-mascot img { display: none !important; }
    .ln-map-card { break-inside: avoid; box-shadow: none; }
}

/* ---------- welcome specifics ---------- */

.ln-welcome-class-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ln-class-btn {
    padding: 14px;
    background: var(--ln-surface);
    border: 2px solid var(--ln-line);
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.ln-class-btn.on {
    border-color: var(--ln-brand);
    background: #FFF3E6;
}
