/* Game Lab: Alphabet Arch. Magnetic letters on a whiteboard, in the new game look. */
@font-face { font-family: 'DX Letters'; src: url('../../assets/fonts/dx-letters-bold.woff2') format('woff2'); font-weight: 700; font-display: block; }
.la { --outline: #26324a; position: relative; max-width: 1000px; margin: 0 auto; border-radius: 26px; overflow: hidden; isolation: isolate;
	padding: 0 0 72px; font-family: var(--dx-font-heading, 'Lexend', system-ui, sans-serif); color: #1c2b3d;
	background: radial-gradient(ellipse at 50% 85%, #fff 0%, #fffaf0 55%, #fdf3e2 100%); border: 8px solid #cfe9df; box-shadow: inset 0 0 0 2px #fff, 0 10px 30px rgba(28,43,61,.12); }   /* soft brand board */
.la:fullscreen { max-width: none; border-radius: 0; overflow: auto; }
.la::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, #f4b3a8, #f8c9a8, #f6d878, #a9d8c3, #afcdef, #cdbdef); z-index: 1; }
.la-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .7rem 1rem; margin: 1rem .9rem 0; border-radius: 18px; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(28,43,61,.06); }
.la-timer { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2em; }
.la-status { text-align: center; font-size: clamp(1rem, .8rem + 1.2vw, 1.6rem); font-weight: 800; }
.la-status--warn { color: #b3261e; }
.la-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; }
.la-board { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.la-board text { font-family: 'DX Letters', 'Andika', 'Lexend', sans-serif; font-weight: 700; }
.la-outline { fill: none; stroke: #a7b3c2; stroke-width: 1.6; stroke-linejoin: round; }
.la-dot { fill: #b7bfcc; }
.la-slot { fill: transparent; cursor: pointer; }
.la-slot:focus-visible { outline: none; stroke: #17706f; stroke-width: 3; stroke-dasharray: 5 4; }
.la-piece { cursor: grab; transition: transform .18s cubic-bezier(.34,1.4,.64,1); }
.la-piece.is-dragging { cursor: grabbing; transition: none; }
.la-piece:focus-visible { outline: none; }
.la-piece:focus-visible text, .la-piece.is-selected text { stroke: #f2b01e !important; stroke-width: 6 !important; }
.la-piece.is-right text { stroke: #2fa36b !important; stroke-width: 5 !important; }
.la-piece.is-wrong text { stroke: #d32f2f !important; stroke-width: 6 !important; animation: la-wiggle .5s ease; transform-box: fill-box; transform-origin: center; }
.la-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }
.la-spacer { flex: 1; }
.la-ctl { width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--outline); background: #fff; font-size: 1.35rem; cursor: pointer; box-shadow: 0 3px 0 var(--outline); }
.la-ctl:active, .la-check:active, .la-btn:active { transform: translateY(2px); }
.la-check { font: inherit; font-weight: 800; font-size: 1.2rem; min-height: 52px; padding: .5rem 1.8rem; border-radius: 999px; border: 3px solid var(--outline); background: #2fa36b; color: #fff; cursor: pointer; box-shadow: 0 4px 0 #1f6f48; }
.la-check:hover { background: #29925f; }
.la-ctl:focus-visible, .la-check:focus-visible, .la-btn:focus-visible, .la-choice button:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #17706f; }
.la-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(28,43,61,.3); backdrop-filter: blur(2px); padding: 1rem; }
.la-overlay[hidden] { display: none; }
.la-card { background: #fff; border: 4px solid var(--outline); border-radius: 26px; box-shadow: 0 8px 0 var(--outline), 0 18px 40px rgba(0,0,0,.25); padding: 1.5rem 1.8rem; text-align: center; max-width: 470px; animation: la-pop .45s cubic-bezier(.34,1.56,.64,1); }
.la-card__kicker { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c0475a; }
.la-card__title { margin: .3rem 0 .4rem; font-size: 1.7rem; color: #1c2b3d; }
.la-card__text { margin: 0 0 1rem; color: #3b4a5c; font-family: var(--dx-font-body, inherit); }
.la-card__label { margin: .6rem 0 .35rem; font-weight: 800; font-size: .9rem; color: #566273; text-align: left; }
.la-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.la-choice button { font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; padding: .6rem .5rem; border-radius: 16px; border: 3px solid #cfd6de; background: #fff; color: #1c2b3d; cursor: pointer; }
.la-choice button small { display: block; font-family: var(--dx-font-heading, sans-serif); font-size: .8rem; font-weight: 700; color: #566273; margin-top: .25rem; }
.la-choice button[aria-pressed="true"] { border-color: var(--outline); background: #fff4d6; box-shadow: 0 4px 0 var(--outline); }
.la-btn { font: inherit; font-weight: 800; font-size: 1.25rem; margin-top: 1.1rem; padding: .7rem 2.4rem; border-radius: 999px; border: 3px solid var(--outline); background: #2fa36b; color: #fff; cursor: pointer; box-shadow: 0 5px 0 #1f6f48; }
.la-time { font-size: 3rem; font-weight: 800; margin: 0 0 .25rem; font-variant-numeric: tabular-nums; }
.la-confetti { position: absolute; top: 0; z-index: 6; border-radius: 2px; pointer-events: none; }
@keyframes la-pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes la-wiggle { 20% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@media (max-width: 640px) { .la { border-width: 6px; } .la-top { margin: .8rem .5rem 0; padding: .5rem .7rem; } .la-check { padding: .5rem 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .la *, .la { animation: none !important; transition: none !important; } }

.la-grab { fill: transparent; }
.la-card__tip { display: none; margin: -.4rem 0 .8rem; font-size: .88rem; font-weight: 700; color: #17706f; background: #e6f4ee; border-radius: 12px; padding: .4rem .6rem; font-family: var(--dx-font-body, inherit); }
@media (max-width: 600px) and (orientation: portrait) { .la-card__tip { display: block; } }
