/* story: CG overlay, tips, welcome, journal */
.st-cg { position: absolute; inset: 0; background: #1b0f20; overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.st-cg.on { opacity: 1; }
.st-cg .st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: st-kb 22s ease-out forwards; transform-origin: 50% 40%; }
@keyframes st-kb { from { transform: scale(1); } to { transform: scale(1.12); } }
.st-cg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(40,10,40,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(40,10,40,.5) 100%); }
.st-ribbon { position: absolute; z-index: 2; left: 0; top: 22px; max-width: calc(100% - 90px); padding: 8px 22px 8px 16px; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, rgba(255,134,179,.92), rgba(179,156,255,.92)); border: 2px solid var(--gold-l); border-left: 0; color: #fff; font-size: 18px; font-weight: 900; text-shadow: var(--outline); box-shadow: 0 3px 10px rgba(90,30,60,.35); animation: st-slide .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes st-slide { from { transform: translateX(-100%); } to { transform: none; } }
.st-box { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 22px; min-height: 160px; padding: 14px 16px 58px; border-radius: 22px; background: rgba(255,248,240,.92); border: 3px solid var(--gold); box-shadow: 0 0 0 2px var(--gold-l) inset, 0 6px 18px rgba(60,20,50,.4); backdrop-filter: blur(4px); cursor: pointer; animation: st-rise .4s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes st-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.st-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-height: 0; }
.st-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--gold); background: #fff; }
.st-who { font-size: 17px; font-weight: 900; color: #fff; text-shadow: var(--outline); padding: 2px 12px; border-radius: 999px; background: var(--pink); border: 2px solid var(--gold-l); }
.st-text { font-size: 17px; line-height: 1.55; color: var(--ink); font-weight: 700; min-height: 80px; white-space: pre-wrap; }
.st-text.nar { font-style: italic; color: var(--ink-2); }
.st-arrow { position: absolute; left: 50%; bottom: 14px; color: var(--pink-d); font-size: 18px; animation: pulse 1s infinite; }
.st-skip { position: absolute; right: 10px; bottom: 8px; min-width: 76px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--gold); background: linear-gradient(#fff, var(--cream-2)); color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 900; }

.st-tip { position: absolute; z-index: 45; left: 10px; right: 10px; top: calc(var(--hud-h) + 6px); bottom: auto; display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 8px; min-height: 100px; border-radius: 20px; background: rgba(255,248,240,.95); border: 3px solid var(--gold); box-shadow: 0 5px 16px rgba(60,20,50,.35); cursor: pointer; animation: pop-in .3s cubic-bezier(.3,1.5,.5,1) both; transition: opacity .25s, transform .25s; }
.st-tip.out { opacity: 0; transform: translateY(-20px); }
.st-tip img { width: 80px; height: 80px; object-fit: contain; flex: none; }
.st-tip .st-tt { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); padding-bottom: 4px; }

.st-wel { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.st-wel img.st-g { width: 120px; height: 120px; object-fit: contain; animation: float 3s ease-in-out infinite; }
.st-line { font-size: 15px; font-style: italic; color: var(--ink-2); line-height: 1.5; }
.st-away { font-size: 15px; font-weight: 800; color: var(--ink); }
.st-capn { font-size: 13px; color: var(--ink-2); }
.st-gain { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.st-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff; border: 2px solid var(--gold-l); font-size: 16px; font-weight: 900; color: var(--ink); }
.st-chip img { width: 30px; height: 30px; object-fit: contain; }

.st-q { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 14px; background: rgba(255,255,255,.85); border: 2px solid var(--gold-l); }
.st-q.todo { opacity: .6; filter: grayscale(.4); }
.st-q.done { border-color: var(--pink); background: #fff3f8; }
.st-q .st-qt { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.st-q .st-qp { font-size: 13px; color: var(--ink-2); }
.st-q .st-rw { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.st-q .st-chip { font-size: 13px; padding: 1px 8px 1px 3px; }
.st-q .st-chip img { width: 22px; height: 22px; }
.st-q .st-ok { font-size: 26px; color: var(--mint-d); width: 46px; text-align: center; flex: none; }
.st-q .btn { flex: none; }
