/* ============================================================
   ChatBase — 📊 My Wrapped (wrapped.js) + ⌨️ shortcuts list (shortcuts.js)
   ============================================================ */
.wr-open {
    margin-top: 10px;
    padding: 9px 16px; border-radius: 999px; border: 0;
    background: linear-gradient(120deg, #ff5fa2, #a06bff, #22d3ee); color: #fff;
    font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
    box-shadow: 0 8px 24px rgba(160,107,255,.35);
}
.wr-open:hover { transform: translateY(-1px); }
.wr-modal { position: fixed; inset: 0; z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.75); }
.wr-modal[hidden] { display: none; }
.wr-story {
    position: relative; overflow: hidden;
    width: min(400px, 100%); height: min(700px, calc(100vh - 32px));
    border-radius: 28px; color: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
    transition: background .6s;
}
.wr-story.g1 { background: radial-gradient(circle at 20% 10%, #ff5fa2, transparent 55%), radial-gradient(circle at 90% 90%, #22d3ee, transparent 50%), #2a1250; }
.wr-story.g2 { background: linear-gradient(160deg, #0ea5e9, #6366f1 60%, #312e81); }
.wr-story.g3 { background: linear-gradient(160deg, #f59e0b, #ef4444 65%, #7f1d1d); }
.wr-story.g4 { background: linear-gradient(160deg, #f97316, #db2777 60%, #4c0519); }
.wr-story.g5 { background: linear-gradient(160deg, #10b981, #0d9488 55%, #134e4a); }
.wr-story.g6 { background: linear-gradient(160deg, #8b5cf6, #4f46e5 60%, #1e1b4b); }
.wr-story.g7 { background: radial-gradient(circle at 50% 30%, #facc15, transparent 50%), linear-gradient(160deg, #ec4899, #7c3aed); }
.wr-bars { position: absolute; top: 12px; left: 14px; right: 54px; z-index: 3; display: flex; gap: 4px; }
.wr-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.wr-bars i.done { background: #fff; }
.wr-bars i.now::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: wrFill linear forwards; animation-duration: inherit; }
@keyframes wrFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wr-x { position: absolute; top: 6px; right: 10px; z-index: 4; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 15px; cursor: pointer; }
.wr-tap { position: absolute; top: 40px; bottom: 120px; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.wr-tap.prev { left: 0; width: 30%; }
.wr-tap.next { right: 0; width: 70%; }
.wr-slide { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; }
.wr-slide button { pointer-events: auto; }
.wr-center { margin: auto; padding: 50px 28px; text-align: center; animation: wrIn .5s ease-out; }
@keyframes wrIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.wr-center h1 { margin: 6px 0 12px; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.wr-center p { margin: 8px 0; font-size: 16px; line-height: 1.45; opacity: .95; }
.wr-kicker { font-size: 13px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85 !important; }
.wr-num { font-size: 88px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.wr-num small { font-size: 26px; letter-spacing: 0; }
.wr-big { font-size: 34px !important; font-weight: 900; }
.wr-big small { font-size: 15px; font-weight: 500; opacity: .8; }
.wr-emoji { font-size: 64px; line-height: 1.1; }
.wr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wr-grid div { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 16px; background: rgba(0,0,0,.18); }
.wr-grid span { font-size: 22px; }
.wr-grid b { font-size: 26px; font-weight: 900; }
.wr-grid small { font-size: 11.5px; opacity: .85; }
.wr-summary { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.22); font-size: 14px !important; }
.wr-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.wr-btn { padding: 11px 18px; border-radius: 999px; border: 0; background: #fff; color: #2a1250; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.wr-btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.wr-spin { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; animation: wrSpin 0.8s linear infinite; }
@keyframes wrSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wr-center { animation: none; } .wr-bars i.now::after { animation: none; transform: none; } }

/* Shortcuts list */
.kb-box { width: min(480px, 100%); }
.kb-list { display: flex; flex-direction: column; gap: 2px; }
.kb-list div { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
.kb-list div:nth-child(odd) { background: rgba(255,255,255,.03); }
.kb-list span { width: 110px; flex: 0 0 auto; }
.kb-list kbd, .kb-settings kbd {
    display: inline-block; min-width: 20px; padding: 2px 7px;
    border-radius: 6px; border: 1px solid rgba(255,255,255,.2); border-bottom-width: 2px;
    background: rgba(255,255,255,.08); color: #fff;
    font: 600 12.5px/1.4 ui-monospace, Menlo, Consolas, monospace; text-align: center;
}
.kb-muted { margin: 12px 0 0; font-size: 12.5px; color: var(--neo-dim, rgba(235,235,245,.6)); }
.kb-settings { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
