.wl-shell { max-width: 720px; margin: 0 auto; padding: 8px 8px 18px; color: var(--cg-ink); font-family: Inter, Arial, sans-serif; }
.wl-shell * { box-sizing: border-box; }
.wl-shell [hidden] { display: none !important; }
.wl-top, .wl-stats, .wl-actions, .wl-tools, .wl-modes, .wl-win-actions { display: flex; align-items: center; gap: 8px; }
.wl-top { justify-content: space-between; margin-bottom: 8px; }
.wl-stats span { min-width: 60px; display: flex; flex-direction: column; padding: 4px 10px; border: 1px solid var(--cg-line); border-radius: 10px; background: var(--cg-panel); color: var(--cg-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.15; }
.wl-stats strong { color: var(--cg-ink); font-size: 18px; letter-spacing: 0; }
.wl-shell button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--cg-line); border-radius: 12px; background: var(--cg-panel); color: var(--cg-ink); font: inherit; font-weight: 800; cursor: pointer; }
.wl-shell button:hover:not(:disabled), .wl-shell button:focus-visible { border-color: #3d6fd6; outline: 2px solid #9db8f2; outline-offset: 1px; }
.wl-shell button:disabled { opacity: .4; cursor: default; }
.wl-actions button { font-size: 15px; padding: 0 10px; }
.wl-stage { position: relative; padding: 12px 12px 12px; border-radius: 18px; color: #f3ecd8; background: radial-gradient(1.4px 1.4px at 12% 18%, #fff8 50%, transparent 52%), radial-gradient(1.2px 1.2px at 78% 10%, #fff7 50%, transparent 52%), radial-gradient(1.6px 1.6px at 42% 34%, #fff6 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 44%, #fff6 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 62%, #fff5 50%, transparent 52%), radial-gradient(1.4px 1.4px at 64% 78%, #fff5 50%, transparent 52%), linear-gradient(180deg, #151a44, #2a2464 55%, #4a2f6e); box-shadow: 0 16px 34px rgba(24, 20, 60, .35); overflow: hidden; min-height: 380px; }
.wl-fx { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 6; }
.wl-goal { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 10px; margin-bottom: 4px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 214, 102, .22), rgba(255, 214, 102, .06)); border: 1px solid rgba(255, 214, 102, .5); box-shadow: 0 0 22px rgba(255, 200, 80, .25); }
.wl-lab { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: #ffd666; }
.wl-word { display: flex; gap: 6px; }
.wl-t { display: grid; place-items: center; width: clamp(40px, 12vw, 58px); height: clamp(40px, 12vw, 58px); border-radius: 10px; font: 800 clamp(20px, 6vw, 30px)/1 Georgia, 'Times New Roman', serif; }
.wl-gt { background: linear-gradient(#ffe38a, #e7a92e); color: #4a2f00; box-shadow: 0 3px 0 #a56f10, 0 0 14px rgba(255, 210, 90, .5); }
.wl-ladder { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 6px 0; }
.wl-ladder::before, .wl-ladder::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12px; border-radius: 6px; background: linear-gradient(90deg, #7a4d27, #c99358 50%, #6d4222); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 2px 0 8px rgba(0, 0, 0, .4); }
.wl-ladder::before { left: max(2px, calc(50% - 208px)); }
.wl-ladder::after { right: max(2px, calc(50% - 208px)); }
.wl-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; width: min(100%, 400px); padding: 5px 8px; border-radius: 10px; background: linear-gradient(180deg, #a9743b, #7f5128); box-shadow: 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 220, 160, .5); }
.wl-row .wl-word { gap: 5px; }
.wl-n { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 20px; text-align: center; font-size: 11px; color: #d9c7a4; opacity: .85; }
.wl-hist .wl-t { width: clamp(30px, 9vw, 40px); height: clamp(30px, 9vw, 40px); font-size: clamp(16px, 4.6vw, 22px); }
.wl-ht { background: linear-gradient(#f7ecd0, #dcc796); color: #3b2a12; box-shadow: 0 2px 0 #8d6a34; }
.wl-ht.wl-chg { background: linear-gradient(#ffd98a, #f2a93a); color: #4a2600; }
.wl-active { background: linear-gradient(180deg, #4da3ff, #2a62c9); box-shadow: 0 0 0 2px #cfe4ff, 0 6px 18px rgba(80, 150, 255, .5); }
.wl-active .wl-t { width: clamp(46px, 13vw, 62px); height: clamp(46px, 13vw, 62px); font-size: clamp(24px, 7vw, 34px); }
.wl-shell .wl-tile { padding: 0; background: linear-gradient(#ffffff, #dfe8f7); color: #172a55; border: 0; box-shadow: 0 3px 0 #8ea6d6; transition: transform .1s; }
.wl-shell .wl-tile:hover:not(:disabled) { border: 0; outline: 2px solid #ffd666; outline-offset: 0; }
.wl-shell .wl-tile.wl-sel { outline: 3px solid #ffd666; outline-offset: 1px; transform: translateY(-3px); box-shadow: 0 6px 0 #8ea6d6, 0 0 14px rgba(255, 214, 102, .6); }
.wl-shell .wl-tile.wl-ok { background: linear-gradient(#b6f3c4, #55c777); color: #073d1a; box-shadow: 0 3px 0 #2f8a4c; }
.wl-shell .wl-tile.wl-hp { animation: wl-hp .7s ease-in-out infinite alternate; }
@keyframes wl-hp { from { box-shadow: 0 3px 0 #8ea6d6, 0 0 0 0 #ffd666; } to { box-shadow: 0 3px 0 #8ea6d6, 0 0 0 6px #ffd666; } }
.wl-shell .wl-tile.wl-bad { animation: wl-bad .4s; background: linear-gradient(#ffb6b0, #e0574d); color: #4a0a05; }
@keyframes wl-bad { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.wl-off { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #cfe4ff; white-space: nowrap; }
.wl-new { animation: wl-drop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes wl-drop { from { transform: translateY(24px) scale(.94); opacity: .2; } to { transform: none; opacity: 1; } }
.wl-done { background: linear-gradient(180deg, #ffe38a, #e7a92e); box-shadow: 0 0 0 2px #fff3c0, 0 0 26px rgba(255, 210, 90, .7); }
.wl-done .wl-t { background: linear-gradient(#fff, #ffeeb8); color: #4a2f00; }
.wl-lit { animation: wl-glow .6s both; animation-delay: calc(var(--i) * .09s); }
@keyframes wl-glow { 50% { filter: brightness(1.5); transform: scale(1.04); } }
.wl-bottom { margin-top: 10px; min-height: 176px; }
.wl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
.wl-shell .wl-key { padding: 0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #f3ecd8; font-size: 18px; }
.wl-shell .wl-key:hover:not(:disabled) { background: rgba(255, 255, 255, .22); border-color: #ffd666; }
.wl-shell .wl-key.wl-hk { background: #ffd666; color: #3a2600; border-color: #fff3c0; animation: wl-hp .7s ease-in-out infinite alternate; }
.wl-win { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0; }
.wl-win strong { font: 800 24px Georgia, serif; color: #ffe38a; }
.wl-win p { margin: 4px 0 12px; color: #d7d0f0; }
.wl-stars { font-size: 38px; line-height: 1.1; color: #4b4676; letter-spacing: 4px; }
.wl-stars i { font-style: normal; }
.wl-stars i.on { color: #ffc93c; text-shadow: 0 2px 10px rgba(255, 190, 40, .7); animation: wl-pop .5s both; }
.wl-stars i:nth-child(2).on { animation-delay: .12s; }
.wl-stars i:nth-child(3).on { animation-delay: .24s; }
@keyframes wl-pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.wl-win-actions { gap: 8px; }
.wl-shell .wl-primary { background: #3d6fd6; border-color: #3d6fd6; color: #fff; }
.wl-status { min-height: 22px; margin: 0; padding: 8px 4px 6px; color: var(--cg-muted); font-size: 13px; font-weight: 700; text-align: center; }
.wl-tools { justify-content: center; }
.wl-tools button { flex: 1; max-width: 220px; }
.wl-modes { justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.wl-seg { display: flex; }
.wl-seg button { border-radius: 0; }
.wl-seg button:first-child { border-radius: 12px 0 0 12px; }
.wl-seg button:last-child { border-radius: 0 12px 12px 0; }
.wl-seg button + button { margin-left: -1px; }
.wl-seg button[aria-pressed="true"] { background: #26306e; border-color: #26306e; color: #fff; }
.wl-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15, 12, 40, .7); }
.wl-card { position: relative; width: min(100%, 440px); padding: 26px; border-radius: 18px; background: #fbf7ea; color: #2a2622; }
.wl-card h2 { margin-top: 0; font-family: Georgia, serif; }
.wl-card p { line-height: 1.5; }
.wl-card #wl-close { position: absolute; right: 8px; top: 8px; font-size: 25px; }
@media (max-width: 520px) { .wl-shell { padding: 6px 6px 16px; } .wl-stage { padding: 10px 8px; border-radius: 14px; } .wl-stats { gap: 5px; } .wl-stats span { min-width: 54px; padding: 3px 8px; } .wl-n { left: 4px; } .wl-off { display: none; } .wl-ladder::before { left: 2px; } .wl-ladder::after { right: 2px; } .wl-tools button { max-width: none; } }
