/* 03-12-2026 My DNA Wrapped: /Tools/DnaWrapped and the shared links /wrapped/{id} */
.dw-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1rem 1rem; color: #1e293b; }
.dw-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.dw-intro p { line-height: 1.7; margin: 0 0 1rem; color: #334155; }
.dw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.dw-list li { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: .6rem .85rem; font-size: .93rem; line-height: 1.45; }
.dw-list b { margin-right: .3rem; }
.dw-demo { display: flex; gap: .7rem; justify-content: center; position: relative; }
.dw-demo canvas { width: 31%; max-width: 150px; aspect-ratio: 9 / 16; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.dw-demo canvas:nth-child(2) { transform: translateY(-14px); }
.dw-demo-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 999px; z-index: 1; }

.dw-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem; margin-bottom: 2rem; position: relative; }
.dw-panel h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .35rem; }
.dw-lead { color: #475569; margin: 0 0 1.1rem; font-size: .95rem; }
.dw-drop { display: block; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 2rem 1rem; text-align: center; cursor: pointer; color: #64748b; transition: border-color .2s, background .2s; font-size: .92rem; line-height: 1.6; }
.dw-drop:hover, .dw-drop.drag { border-color: #8B5CF6; background: rgba(139, 92, 246, .04); }
.dw-drop strong { color: #1e293b; font-size: 1rem; }
.dw-fname { display: block; color: #7c3aed; font-weight: 600; margin-top: .4rem; word-break: break-all; }
.dw-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dw-privacy { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1rem; font-size: .86rem; color: #475569; line-height: 1.55; }
.dw-privacy svg { flex-shrink: 0; margin-top: .15rem; color: #059669; }
.dw-run { margin-top: 1.25rem; padding: .85rem 2rem; border: none; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, #15CEFE, #8B5CF6, #db2777); color: #fff; font-weight: 700; font-size: 1rem; }
.dw-run:disabled { opacity: .55; cursor: not-allowed; }
.dw-progress { display: none; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-size: .93rem; line-height: 1.55; }
.dw-progress .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #8B5CF6; margin-right: .5rem; animation: dwpulse 1s infinite; }
.dw-progress small { display: block; color: #64748b; margin-top: .3rem; }
@keyframes dwpulse { 50% { opacity: .3; } }
.dw-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 2rem; line-height: 1.55; }

.dw-results { text-align: center; margin-bottom: 2.5rem; }
.dw-results h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3rem; }
.dw-results > p { color: #64748b; margin: 0 0 1.2rem; }
.dw-lang { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; font-size: .92rem; font-weight: 600; color: #334155; }
.dw-lang select { padding: .45rem .7rem; border-radius: 10px; border: 1px solid #cbd5e1; font-size: .95rem; background: #fff; }
.dw-viewer { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.dw-stage { position: relative; width: min(380px, 78vw); aspect-ratio: 9 / 16; touch-action: pan-y; user-select: none; }
.dw-card { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .3); opacity: 0; transition: opacity .35s; pointer-events: none; }
.dw-card.on { opacity: 1; pointer-events: auto; }
.dw-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; font-size: 1.3rem; cursor: pointer; color: #334155; flex-shrink: 0; }
.dw-nav:disabled { opacity: .35; cursor: default; }
.dw-dots { display: flex; justify-content: center; gap: .4rem; margin: 1rem 0; }
.dw-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: #cbd5e1; padding: 0; cursor: pointer; }
.dw-dots button.on { background: #7c3aed; width: 22px; border-radius: 5px; }
.dw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.dw-btn { padding: .7rem 1.3rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; color: #1e293b; }
.dw-btn.primary { border: none; color: #fff; background: linear-gradient(135deg, #8B5CF6, #db2777); }
.dw-tip { min-height: 1.4rem; font-size: .86rem; color: #059669; margin-top: .6rem; }
.dw-text { max-width: 640px; margin: 1.5rem auto 0; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: .8rem 1.1rem; }
.dw-text summary { cursor: pointer; font-weight: 700; }
.dw-text ol { margin: .8rem 0 .2rem; padding-left: 1.2rem; line-height: 1.6; font-size: .93rem; color: #334155; }
.dw-text li { margin-bottom: .45rem; }

.dw-how h2 { font-size: 1.35rem; font-weight: 700; margin: 2.4rem 0 .8rem; }
.dw-how p, .dw-how li { line-height: 1.7; color: #334155; }
.dw-faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: .8rem 1.1rem; margin-bottom: .6rem; }
.dw-faq summary { cursor: pointer; font-weight: 700; }
.dw-faq p { margin: .6rem 0 .2rem; font-size: .94rem; }

@media (max-width: 760px) {
    .dw-intro { grid-template-columns: 1fr; }
    .dw-panel { padding: 1.25rem; }
    .dw-run { width: 100%; }
    .dw-nav { display: none; }
    .dw-stage { width: min(380px, 92vw); }
}

/* shared links (03-12-2026) */
.dw-linkbox { max-width: 640px; margin: 1rem auto 0; text-align: left; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 14px; padding: 1rem 1.1rem; }
.dw-linkbox strong { display: block; margin-bottom: .6rem; color: #4c1d95; }
.dw-linkrow { display: flex; gap: .5rem; }
.dw-linkrow input { flex: 1; min-width: 0; padding: .6rem .75rem; border: 1px solid #c4b5fd; border-radius: 10px; font-size: .95rem; background: #fff; color: #1e293b; }
.dw-linknets { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 .3rem; }
.dw-linknets .dw-btn { padding: .5rem 1rem; font-size: .9rem; text-decoration: none; }
.dw-linkbox p { margin: .5rem 0 0; font-size: .84rem; color: #475569; line-height: 1.55; }
a.dw-btn { display: inline-block; text-decoration: none; }
a.dw-btn.primary:hover { color: #fff; }
.dw-note { max-width: 560px; margin: 1rem auto 0; font-size: .84rem; color: #64748b; line-height: 1.55; }
.dw-owner { margin-top: 1rem; }
.dw-gone { text-align: center; padding: 2rem 1rem 3rem; color: #334155; }
.dw-gone .dw-run { display: inline-block; text-decoration: none; }
