/* Redacted: a paper document with black bars. Each word lands with a little press. */
.doc { width: min(100%, 520px); padding: 18px 20px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06); }
.doc-head { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a857c; padding-bottom: 10px; border-bottom: 1px dashed rgba(21,21,21,.2); }
.doc-head span:first-child { color: #b0402a; border: 1.5px solid #b0402a; padding: 1px 6px; border-radius: 4px; transform: rotate(-3deg); }
.saying { margin: 16px 0 14px; font-size: clamp(22px, 6.4vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px 10px; min-height: 3em; align-content: flex-start; }
.w { position: relative; display: inline-block; white-space: nowrap; }
.w.hid { color: transparent; background: #151515; border-radius: 4px; user-select: none; }
.w.hid::after { content: ""; position: absolute; inset: 22% 6%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, transparent 3px 7px); }
.w.new { animation: stamp .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes stamp { from { transform: scale(1.35); opacity: 0; } }
.w.solved { color: var(--ink); background: none; }
.doc-foot { height: 4px; border-radius: 4px; background: rgba(21,21,21,.1); overflow: hidden; }
.doc-foot i { display: block; height: 100%; width: 0; background: #151515; transition: width .4s; }
.doc.won { box-shadow: 0 0 0 3px rgba(159,214,168,.9), 0 0 50px rgba(159,214,168,.35); }
.doc.lost { box-shadow: 0 0 0 3px rgba(159,180,201,.9), 0 18px 50px rgba(0,0,0,.45); }
.say { display: flex; gap: 8px; }
.say input { flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--ink); padding: 0 16px; font-size: 17px; font-weight: 500; }
.say input:focus { outline: none; box-shadow: 0 0 0 4px rgba(175,202,238,.4); }
.say input:disabled { opacity: .55; }
.say input.shake { animation: shake .3s; box-shadow: 0 0 0 3px rgba(231,163,155,.7); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.say .btn { height: 50px; flex: none; }
.stage { align-items: center; }
