/* Game Lab: Word Whack. Same family and themes as the memory game. */
@font-face { font-family: 'DX Letters'; src: url('../../assets/fonts/dx-letters-bold.woff2') format('woff2'); font-weight: 700; font-display: block; }
.lk { --outline: #26324a; --bar: rgba(255,255,255,.8); --txt: #1c2b3d;
	position: relative; overflow: hidden; border-radius: 26px; max-width: 1000px; margin: 0 auto; min-height: 600px; padding: 0 0 72px; isolation: isolate;
	font-family: var(--dx-font-heading, 'Lexend', system-ui, sans-serif); color: var(--txt); box-shadow: 0 10px 30px rgba(28,43,61,.18); user-select: none; -webkit-user-select: none; }
.lk--night { --bar: rgba(20,26,50,.6); --txt: #fff; }
.lk:fullscreen { max-width: none; border-radius: 0; }
.lk-scene { position: absolute; inset: 0; z-index: -1; }
.lk-scene svg { width: 100%; height: 100%; display: block; }
.lk-scene::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.2); }
.lk--night .lk-scene::after { background: rgba(0,0,0,.05); }
.lk-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .7rem 1rem; margin: .75rem; border-radius: 18px; background: var(--bar); backdrop-filter: blur(4px); }
.lk-timer { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2em; }
.lk-status { text-align: center; font-size: clamp(1rem, .8rem + 1vw, 1.5rem); font-weight: 800; }
.lk-status--warn { color: #c23b3b; } .lk--night .lk-status--warn { color: #ffb4a8; } .lk-status--good { color: #1f7a4a; } .lk--night .lk-status--good { color: #9ff0c4; }
.lk-count { font-size: clamp(1rem, .9rem + .8vw, 1.4rem); font-weight: 800; color: #1f7a4a; background: #e7f6ee; padding: .15rem .7rem; border-radius: 999px; white-space: nowrap; }
.lk-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); padding: .3rem clamp(12px, 4vw, 48px) 0; }
.lk-hole { position: relative; height: clamp(130px, 17vw, 165px); border: 0; padding: 0; background: none; cursor: pointer; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 30% 30%; touch-action: manipulation; }
.lk-hole:focus-visible { outline: 3px solid #17706f; outline-offset: 2px; }
.lk-dirt { position: absolute; left: 6%; right: 6%; bottom: 4px; height: 30%; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #4a3a2e 0%, #6b5443 55%, #8a6d56 100%); box-shadow: inset 0 6px 10px rgba(0,0,0,.35); z-index: 2; }
.lk-num { position: absolute; left: 8px; bottom: 6px; z-index: 4; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.85); color: #26324a; font-weight: 800; font-size: .8rem; }
.lk-pop { position: absolute; left: 0; right: 0; bottom: 12%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transform: translateY(88%); transition: transform .28s cubic-bezier(.34,1.45,.64,1); z-index: 1; }
.lk-hole.is-up .lk-pop { transform: translateY(0); }
.lk-critter { width: 56%; max-width: 110px; display: block; }
.lk-critter svg { width: 100%; height: auto; display: block; }
.lk-sign { order: -1; margin-bottom: -6px; font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: clamp(1rem, .75rem + 1.2vw, 1.55rem); line-height: 1.1; color: #1c2b3d;
	background: #fffaf0; border: 3px solid var(--outline); border-radius: 12px; padding: .25em .6em .3em; box-shadow: 0 4px 0 var(--outline); white-space: nowrap; max-width: 96%; overflow: hidden; z-index: 3; }
.lk-hole.is-bonked .lk-pop { transition-duration: .18s; }
.lk-hole.is-bonked .lk-critter { animation: lk-squash .26s ease; }
.lk-hole.is-bonked .lk-sign { background: #bfeccf; border-color: #1f7a4a; box-shadow: 0 4px 0 #1f7a4a; }
.lk-mark { position: absolute; left: 50%; top: 42%; z-index: 6; width: clamp(44px, 5vw, 58px); height: clamp(44px, 5vw, 58px); margin-left: calc(clamp(44px, 5vw, 58px) / -2); display: grid; place-items: center;
	border-radius: 50%; border: 4px solid #fff; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 900; line-height: 1; box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.25);
	animation: lk-markpop .9s cubic-bezier(.34,1.56,.64,1) forwards; pointer-events: none; }
.lk-mark--right { background: #2fa36b; }
.lk-mark--wrong { background: #d64545; }
@keyframes lk-markpop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 25% { transform: scale(1.2) rotate(0); opacity: 1; } 40% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: scale(1) translateY(-8px); opacity: 0; } }
.lk-hole.is-miss .lk-sign { background: #ffd9d4; border-color: #c23b3b; box-shadow: 0 4px 0 #c23b3b; }
.lk-hole.is-miss .lk-pop { animation: lk-shake .4s ease; }
.lk-penalty { position: absolute; top: 5.2rem; left: 1.4rem; z-index: 6; font-weight: 800; color: #c23b3b; font-size: 1.3rem; opacity: 0; pointer-events: none; }
.lk-penalty.is-on { animation: lk-rise .9s ease forwards; }
.lk-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }
.lk-spacer { flex: 1; }
.lk-ctl { width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--outline); background: rgba(255,255,255,.92); font-size: 1.35rem; cursor: pointer; box-shadow: 0 3px 0 var(--outline); }
.lk-ctl:active, .lk-btn:active { transform: translateY(2px); }
.lk-ctl:focus-visible, .lk-btn:focus-visible, .lk-speed button:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #17706f; }
.lk-overlay { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(28,43,61,.3); backdrop-filter: blur(2px); padding: 1rem; overflow: auto; }
.lk-overlay[hidden] { display: none; }
.lk-card { background: #fff; color: #1c2b3d; border: 4px solid #26324a; border-radius: 26px; box-shadow: 0 8px 0 #26324a, 0 18px 40px rgba(0,0,0,.25); padding: 1.4rem 1.8rem; text-align: center; max-width: 460px; width: 100%; animation: lk-pop .45s cubic-bezier(.34,1.56,.64,1); }
.lk-card__kicker { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c0475a; }
.lk-card__title { margin: .3rem 0 .3rem; font-size: 1.5rem; }
.lk-card__goal { margin: 0 0 .6rem; font-weight: 800; font-size: 1.15rem; color: #17706f; }
.lk-card__text { margin: 0 0 .8rem; color: #3b4a5c; font-family: var(--dx-font-body, inherit); }
.lk-speed { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .2rem; }
.lk-speed button { font: inherit; font-weight: 800; font-size: 1.05rem; padding: .55rem; border-radius: 14px; border: 3px solid #cfd6de; background: #fff; color: #1c2b3d; cursor: pointer; }
.lk-speed button[aria-pressed="true"] { border-color: #26324a; background: #fff4d6; box-shadow: 0 4px 0 #26324a; }
.lk-time { font-size: 2.8rem; font-weight: 800; margin: 0 0 .3rem; font-variant-numeric: tabular-nums; }
.lk-btn { font: inherit; font-weight: 800; font-size: 1.25rem; margin-top: 1rem; padding: .7rem 2.4rem; border-radius: 999px; border: 3px solid #26324a; background: #2fa36b; color: #fff; cursor: pointer; box-shadow: 0 5px 0 #1f6f48; }
.lk-btn--small { font-size: 1rem; margin: 0; padding: .45rem 1.2rem; }
.lk-initials label { display: block; font-weight: 700; margin-bottom: .35rem; }
.lk-initials > div { display: flex; gap: .5rem; justify-content: center; }
.lk-initials input { font: inherit; font-weight: 800; font-size: 1.3rem; width: 5.5em; text-align: center; text-transform: uppercase; letter-spacing: .15em; padding: .35rem .5rem; border: 3px solid #26324a; border-radius: 12px; }
.lk-initials__note { margin: .4rem 0 0; font-size: .85rem; color: #566273; font-family: var(--dx-font-body, inherit); }
.lk-board__title { margin: 1rem 0 .3rem; font-weight: 800; }
.lk-board { list-style: none; counter-reset: r; margin: 0 auto; padding: 0; max-width: 260px; text-align: left; }
.lk-board li { counter-increment: r; display: flex; gap: .6rem; padding: .25rem .6rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.lk-board li::before { content: counter(r) "."; width: 1.6em; color: #566273; font-weight: 700; }
.lk-board li.is-me { background: #fff4d6; font-weight: 800; }
.lk-board__who { flex: 1; font-weight: 800; letter-spacing: .1em; }
.lk-confetti { position: absolute; top: 0; z-index: 8; border-radius: 2px; pointer-events: none; }
@keyframes lk-pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes lk-squash { 40% { transform: scaleY(.7) scaleX(1.15); } 100% { transform: none; } }
@keyframes lk-stars { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scale(1.2); } }
@keyframes lk-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes lk-rise { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px); } }
@media (max-width: 640px) { .lk { min-height: 0; } .lk-top { margin: .6rem .5rem; padding: .5rem .7rem; } .lk-field { padding: .3rem .4rem 0; gap: 6px; } .lk-hole { height: 118px; } .lk-sign { font-size: .95rem; padding: .18em .28em; border-width: 2px; max-width: 99%; } }
@media (prefers-reduced-motion: reduce) { .lk *, .lk { animation: none !important; transition: none !important; } .lk-mark { opacity: 1; } }

.lk-sign--pic { padding: 4px; line-height: 0; border-radius: 16px; }
.lk-sign--pic svg { width: clamp(54px, 7vw, 76px); height: clamp(54px, 7vw, 76px); display: block; }
@media (max-width: 640px) { .lk-sign--pic svg { width: 50px; height: 50px; } }
.lk--pic .lk-hole { height: clamp(170px, 21vw, 205px); }
.lk--pic .lk-sign--pic svg { width: clamp(52px, 6vw, 66px); height: clamp(52px, 6vw, 66px); }
.lk--pic .lk-critter { width: 46%; max-width: 92px; }
.lk--pic .lk-pop { transform: translateY(92%); }
.lk--pic .lk-hole.is-up .lk-pop { transform: translateY(0); }
@media (max-width: 640px) { .lk--pic .lk-hole { height: 140px; } }
