.youth-page {
    --ink:#513f3b;
    --paper:#fffdfa;
    --berry:#e86f93;
    --mint:#73bda9;
    color:var(--ink);
}
.youth-hero {
    position:relative;
    overflow:hidden;
    border:1px solid rgba(114,77,70,.09);
    background:
        radial-gradient(circle at 84% 18%,rgba(255,255,255,.92) 0 4px,transparent 5px),
        radial-gradient(circle at 77% 28%,rgba(255,255,255,.72) 0 2px,transparent 3px),
        linear-gradient(135deg,#fff4f6,#fff7e7 52%,#eaf9f2);
    box-shadow:0 18px 45px rgba(115,75,65,.09);
}
.youth-hero::after {
    content:"";
    position:absolute;
    right:-24px;
    bottom:-54px;
    width:170px;
    height:170px;
    border:24px solid rgba(232,111,147,.11);
    border-radius:50%;
}
.youth-eyebrow { color:var(--berry);font-size:.68rem;font-weight:950;letter-spacing:.18em; }
.youth-card {
    overflow:hidden;
    border:1px solid rgba(111,78,69,.09);
    background:var(--paper);
    box-shadow:0 16px 38px rgba(91,61,55,.1);
}
.youth-card::before {
    content:"";
    display:block;
    height:4px;
    background:linear-gradient(90deg,#ef8ca8,#f2c463,#76c2ad,#9b8adb);
}
.youth-stage { min-height:420px; }
.youth-progress { height:9px;overflow:hidden;border-radius:999px;background:#eee4df; }
.youth-progress span { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ec7f9f,#9b83d4);transition:width .24s ease; }
.choice-grid { display:grid;gap:11px;margin-top:22px; }
.choice-button {
    min-height:58px;
    padding:14px 16px;
    border:1px solid #eadbd5;
    border-radius:18px;
    background:#fff;
    color:var(--ink);
    font-size:.92rem;
    font-weight:800;
    text-align:left;
    box-shadow:0 5px 12px rgba(92,62,56,.05);
    transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.choice-button:hover,.choice-button:focus-visible { transform:translateY(-2px);border-color:#ed8fac;background:#fff6f8;outline:none; }
.mood-result {
    width:min(100%,500px);
    margin:auto;
    padding:32px 24px;
    border-radius:34px;
    color:#493b38;
    text-align:center;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.5),0 18px 35px rgba(92,63,57,.13);
}
.mood-result-icon { font-size:4.8rem;line-height:1; }
.tool-actions { display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:20px; }
.category-chips { display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:18px; }
.category-chip {
    padding:8px 13px;border:1px solid #e6d7d1;border-radius:999px;background:#fff;font-size:.75rem;font-weight:850;
}
.category-chip.is-active { color:#fff;border-color:var(--berry);background:var(--berry); }
.question-card {
    position:relative;
    width:min(100%,560px);
    min-height:270px;
    margin:auto;
    display:grid;
    place-items:center;
    padding:44px 32px;
    overflow:hidden;
    border-radius:36px;
    background:linear-gradient(145deg,#fff4f7,#fff9e9);
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.8),0 18px 34px rgba(100,67,59,.12);
    text-align:center;
}
.question-card::before,.question-card::after { content:"?";position:absolute;color:rgba(232,111,147,.13);font:900 9rem/1 serif; }
.question-card::before { left:-10px;top:-28px;transform:rotate(-14deg); }
.question-card::after { right:-8px;bottom:-48px;transform:rotate(16deg); }
.question-card p { position:relative;z-index:1;font-size:clamp(1.15rem,4vw,1.55rem);font-weight:900;line-height:1.55; }
.study-card {
    --card-a:#f18ba8;
    --card-b:#f2c66b;
    position:relative;
    width:min(100%,480px);
    aspect-ratio:1;
    margin:auto;
    display:grid;
    place-items:center;
    padding:42px;
    overflow:hidden;
    border-radius:42px;
    background:
        radial-gradient(circle at 82% 16%,rgba(255,255,255,.7) 0 5px,transparent 6px),
        radial-gradient(circle at 16% 80%,rgba(255,255,255,.38) 0 9px,transparent 10px),
        linear-gradient(145deg,var(--card-a),var(--card-b));
    color:#fff;
    text-align:center;
    box-shadow:0 22px 42px rgba(102,68,63,.18);
}
.study-card::before { content:"";position:absolute;inset:18px;border:2px solid rgba(255,255,255,.45);border-radius:30px; }
.study-card-content { position:relative;z-index:1; }
.study-card small { display:block;margin-bottom:18px;font-size:.66rem;font-weight:900;letter-spacing:.2em; }
.study-card blockquote { font-size:clamp(1.3rem,5vw,2rem);font-weight:950;line-height:1.45;word-break:keep-all; }
.study-card p { margin-top:20px;font-size:.74rem;font-weight:800;opacity:.78; }
.cipher-tabs { display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:16px;background:#f3eae6; }
.cipher-tab { min-height:42px;border-radius:12px;font-size:.8rem;font-weight:900; }
.cipher-tab.is-active { background:#fff;color:var(--berry);box-shadow:0 4px 10px rgba(92,62,56,.08); }
.cipher-area { width:100%;min-height:150px;padding:17px;border:1px solid #e6d8d2;border-radius:20px;background:#fff;font-size:.92rem;line-height:1.7;resize:vertical;outline:none; }
.cipher-area:focus { border-color:#e884a2;box-shadow:0 0 0 3px rgba(232,111,147,.12); }
.cipher-output {
    min-height:150px;padding:17px;overflow-wrap:anywhere;border:1px dashed #d9c6be;border-radius:20px;background:#fff8f5;font-size:1.05rem;line-height:1.75;
}
.privacy-chip { display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:#eaf8f2;color:#378570;font-size:.68rem;font-weight:850; }
.tool-toast {
    position:fixed;left:50%;bottom:24px;z-index:100;transform:translateX(-50%);padding:10px 16px;border-radius:999px;background:#493c39;color:#fff;font-size:.78rem;font-weight:850;box-shadow:0 12px 30px rgba(0,0,0,.2);
}
@media(max-width:480px){
    .youth-stage{min-height:380px}
    .question-card{min-height:235px;padding:34px 22px}
    .study-card{padding:30px;border-radius:30px}
    .mood-result{padding:28px 18px}
}
@media(prefers-reduced-motion:reduce){
    .choice-button,.youth-progress span{transition:none}
}
