/* Word Chain — big letter tiles, a draining timer bar and the chain of words so far. */
body { background: radial-gradient(120% 70% at 50% 0%, #1d3157 0%, #101a2c 65%); }
.wc-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; width: min(100%, 440px); }
.wc-chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; border: 2px solid transparent; max-width: 48%; }
.wc-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wc-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-chip small { color: var(--muted); font-weight: 600; }
.wc-chip.turn { border-color: var(--gold); box-shadow: 0 0 12px #ffc53355; }
.wc-stage { width: min(100%, 420px); background: #ffffff0d; border-radius: 18px; padding: 14px 10px 10px; text-align: center; }
.wc-word { display: flex; justify-content: center; gap: 4px; min-height: 52px; flex-wrap: wrap; }
.wc-word b { width: 40px; height: 48px; border-radius: 10px; background: #f4f1fb; color: #1d2340; font-size: 26px; font-weight: 900; display: grid; place-items: center; text-transform: uppercase; box-shadow: 0 3px 0 #b8b2cf; animation: wc-flip .35s ease-out both; }
.wc-word b.last { background: var(--gold); box-shadow: 0 3px 0 #b8860b, 0 0 16px #ffc53388; transform: translateY(-4px); }
@keyframes wc-flip { from { transform: rotateX(90deg); opacity: 0; } }
.wc-need { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 20px; }
.wc-need strong { color: var(--gold); font-size: 16px; }
.wc-timer { height: 6px; border-radius: 3px; background: #ffffff1a; margin-top: 8px; overflow: hidden; }
.wc-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #3ddc84, #ffc533); transform-origin: left; transition: transform .25s linear, background .3s; }
.wc-timer i.low { background: #ff5c5c; }
.wc-form { display: flex; gap: 6px; width: min(100%, 420px); margin-top: 10px; align-items: stretch; }
.wc-first { width: 46px; flex: none; border-radius: 12px; background: var(--gold); color: #1d2340; font-size: 24px; font-weight: 900; display: grid; place-items: center; text-transform: uppercase; }
.wc-input { flex: 1; min-width: 0; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 22px; font-weight: 800; padding: 0 10px; text-transform: uppercase; letter-spacing: 2px; outline: none; }
.wc-input:focus { border-color: var(--gold); }
.wc-input.bad { border-color: var(--bad); animation: wc-shake .3s; }
@keyframes wc-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wc-form .tnz-btn { min-height: 46px; padding: 0 12px; }
.wc-form.off { opacity: .45; pointer-events: none; }
.wc-turn { font-weight: 700; min-height: 24px; margin: 8px 0 4px; text-align: center; }
.wc-chain { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; width: min(100%, 440px); }
.wc-chain li { background: var(--card); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 700; border-left: 4px solid var(--c, #888); text-transform: uppercase; }
.wc-chain li em { font-style: normal; color: var(--gold); margin-left: 3px; }
.wc-chain li.pass { opacity: .5; text-transform: none; }
.wc-pop { position: fixed; left: 50%; top: 34%; transform: translateX(-50%); font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 2px 0 #000a; pointer-events: none; animation: wc-pop 1s ease-out forwards; z-index: 20; white-space: nowrap; }
@keyframes wc-pop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.5); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1); } }
.tnz-tight .wc-word b { width: 34px; height: 42px; font-size: 22px; }
.tnz-tight .wc-stage { padding: 10px 8px 8px; }
