
.wl-app, .wl-app * { box-sizing: border-box; }
.wl-app { --wl-ink: #eef3fb; --wl-muted: #a9b8d0; --wl-line: rgba(255, 255, 255, .14); --wl-glass: rgba(10, 17, 30, .74);
  --wl-good: #7ed492; --wl-gold: #ffd34d; --wl-accent: #fb923c;
  --gs-ink: var(--wl-ink); --gs-muted: var(--wl-muted); --gs-line: #26364d; --gs-accent: #fb923c; --gs-accent-ink: #2a1405;
  --gs-panel: #111c2e; --gs-bg: #0b1220; --gs-chip: rgba(17, 28, 46, .9);
  --wl-banner: 172px; --wl-h: clamp(52px, calc((100svh - 400px) / 4), 92px);
  position: relative; display: flex; flex-direction: column; color: var(--wl-ink); font: 16px/1.45 "Segoe UI", system-ui, Arial, sans-serif; overflow: clip; }
.wl-app.wl-embedded { height: clamp(560px, calc(100svh - 110px), 880px); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); border: 1px solid #26364d; background: #0b1220; }
.wl-app.gs-fs { background: #0b1220; --wl-h: clamp(52px, calc((100svh - 420px) / 4), 104px); }
.wl-app button { font: inherit; color: inherit; cursor: pointer; }
.wl-app button:focus-visible { outline: 2px solid var(--wl-gold); outline-offset: -4px; }
.wl-app .gs-stage, .wl-app .gs-main { min-height: 0; }
.wl-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.wl-app .gs-side { min-height: 0; overflow: auto; }
.wl-msg { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: var(--wl-muted); }
.wl-body { position: relative; flex: 1; min-height: 0; display: flex; }
.wl-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 56px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse at top, rgba(60, 40, 90, .35), rgba(8, 12, 20, .92)); isolation: isolate; }
.wl-stage > * { flex: none; }
.wl-stage > .wl-grid, .wl-stage > .wl-solved, .wl-stage > .wl-head, .wl-stage > .wl-actions { width: min(100%, 640px); align-self: center; }
.wl-port, .wl-port-name { display: none; }
.wl-stage.wl-live { padding-top: calc(var(--wl-banner) + 10px); background: #05080e; }
.wl-stage.wl-live .wl-port { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; overflow: hidden; }
.wl-stage.wl-live .wl-port::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 6, 12, .18) 0, rgba(3, 6, 12, 0) 40px, rgba(3, 6, 12, 0) calc(var(--wl-banner) - 26px), rgba(3, 6, 12, calc(.5 + var(--pw-day, 0) * .2)) calc(var(--wl-banner) + 26px), rgba(3, 6, 12, .62) 100%); }
.wl-stage.wl-live > .wl-head, .wl-stage.wl-live > .wl-solved, .wl-stage.wl-live > .wl-grid, .wl-stage.wl-live > .wl-actions { position: relative; z-index: 1; }
.wl-stage.wl-live .wl-head { text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.wl-stage.wl-live .wl-btn:not(.wl-submit) { background: rgba(8, 12, 20, .62); }
.wl-stage.wl-live .wl-port-name { display: block; position: absolute; z-index: 2; left: 10px; top: calc(var(--wl-banner) - 22px); pointer-events: none; font: bold 11px "Segoe UI", Arial, sans-serif; letter-spacing: .5px;
  color: rgba(255, 255, 255, .92); background: rgba(5, 8, 14, calc(.3 + var(--pw-day, 0) * .2)); border: 1px solid rgba(255, 255, 255, .14); padding: 2px 9px; border-radius: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-stage.wl-live .wl-toast { top: calc(var(--wl-banner) + 36px); }
.wl-stage.wl-live .wl-end { align-items: flex-start; padding-top: calc(var(--wl-banner) - 8px); background: linear-gradient(to bottom, rgba(5, 8, 14, 0) 0, rgba(5, 8, 14, 0) calc(var(--wl-banner) - 40px), rgba(5, 8, 14, .92) calc(var(--wl-banner) + 14px)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl-hud { position: absolute; left: 0; right: 0; top: 8px; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: min(calc(100% - 20px), 640px); margin: 0 auto; pointer-events: none; }
.wl-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 5px 4px; min-width: 0; min-height: 40px;
  background: var(--wl-glass); border: 1px solid var(--wl-line); backdrop-filter: blur(4px); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.wl-chip small { font: 700 9px/1 monospace; letter-spacing: 1.3px; color: var(--wl-muted); text-transform: uppercase; white-space: nowrap; }
.wl-chip b { display: inline-flex; align-items: center; gap: 5px; font: 800 16px/1.15 monospace; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-chip b.g { color: var(--wl-accent); }
.wl-bandpill { font-size: 11px; font-weight: 700; padding: 1px 6px; clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); background: var(--b); color: #0b1020; }
.wl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 2px 8px; color: #e2e8f0; font-weight: 700; font-size: 14.5px; }
.wl-keys { font-size: 11.5px; font-weight: 400; color: var(--wl-muted); }
@media (hover: none) { .wl-keys { display: none; } }
.wl-solved { display: flex; flex-direction: column; gap: 8px; }
.wl-solved:not(:empty) { margin-bottom: 8px; }
.wl-band { --c: #f6a04d; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px;
  min-height: var(--wl-h, 72px); padding: 8px 10px; border-radius: 0; background: var(--c); color: #14161c;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--c) 52%, #000), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .08);
  animation: wlSnap .52s cubic-bezier(.2, 1.5, .4, 1) both; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-130%); animation: wlShine .75s ease .2s both; }
.wl-band.c0 { --c: #f6a04d; } .wl-band.c1 { --c: #45c1b2; } .wl-band.c2 { --c: #ef7a7a; } .wl-band.c3 { --c: #a7b4c6; }
.wl-band.revealed { opacity: .88; background: repeating-linear-gradient(135deg, var(--c), var(--c) 10px, color-mix(in srgb, var(--c) 86%, #000) 10px, color-mix(in srgb, var(--c) 86%, #000) 20px); }
.wl-band-name { font-weight: 900; font-size: 14.5px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.2; }
.wl-band-words { font-size: 13.5px; line-height: 1.3; }
@keyframes wlSnap { 0% { transform: translateY(-16px) scaleY(.6); opacity: 0; } 50% { transform: translateY(3px) scaleY(1.07); opacity: 1; } 72% { transform: translateY(-1px) scaleY(.98); } 100% { transform: none; opacity: 1; } }
@keyframes wlShine { to { transform: translateX(130%); } }
.wl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wl-tile { position: relative; height: var(--wl-h, 72px); min-width: 0; padding: 4px 5px; border-radius: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #333d57 0%, #272f44 100%); border: 1px solid #404b68; border-bottom-color: #1e2434; color: #f1f5f9; font-weight: 800; font-size: 15px; line-height: 1.15;
  box-shadow: inset 0 -4px 0 #151a27, inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-tile span { display: block; max-width: 100%; }
.wl-tile:hover { background: linear-gradient(180deg, #3b4663 0%, #2e3750 100%); }
.wl-tile:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 #151a27, inset 0 1px 0 rgba(255, 255, 255, .06); }
.wl-tile:focus-visible { outline: 2px solid var(--wl-accent); outline-offset: -4px; }
.wl-tile.sel { background: linear-gradient(180deg, #f6f8fc 0%, #dde3ee 100%); color: #10131a; border-color: #fff; border-bottom-color: #a6aec0;
  box-shadow: inset 0 -4px 0 #858ea4, inset 0 1px 0 #fff; transform: translateY(-2px); }
.wl-tile.hop { animation: wlHop .32s ease; }
.wl-tile.shake { animation: wlShake .45s ease; }
.wl-tile.gone { animation: wlGone .26s ease-in forwards; pointer-events: none; }
.wl-tile.fresh { animation: wlDrop .44s cubic-bezier(.3, 1.45, .5, 1) both; animation-delay: calc(var(--i, 0) * 24ms); }
.wl-tile.lock { --c: #f6a04d; background: var(--c); color: #14161c; border-color: rgba(255, 255, 255, .7); transform: translateY(-3px) scale(1.04);
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--c) 50%, #000); transition: all .14s ease; }
.wl-tile.lock.c1 { --c: #45c1b2; } .wl-tile.lock.c2 { --c: #ef7a7a; } .wl-tile.lock.c3 { --c: #a7b4c6; }
@keyframes wlHop { 40% { transform: translateY(-9px); } 100% { transform: translateY(-2px); } }
@keyframes wlShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
@keyframes wlGone { to { transform: translateY(-10px) scale(.86); opacity: 0; } }
@keyframes wlDrop { 0% { transform: translateY(-24px) scale(.95); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.wl-toast { position: absolute; left: 50%; top: 56px; transform: translate(-50%, -8px); z-index: 4; pointer-events: none; opacity: 0;
  background: #f1f5f9; color: #10131a; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 0; box-shadow: none;
  transition: opacity .2s ease, transform .2s ease; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-toast.on { opacity: 1; transform: translate(-50%, 0); }
.wl-lives { display: inline-flex; gap: 6px; }
.wl-dot { width: 12px; height: 12px; border-radius: 50%; background: #5b6478; display: inline-block; transition: transform .3s ease, background .3s ease, opacity .3s ease; }
.wl-dot.lost { background: transparent; box-shadow: inset 0 0 0 1.5px #3a4252; }
.wl-dot.pop { animation: wlPopDot .5s ease; }
@keyframes wlPopDot { 0% { transform: scale(1); background: #ff6b81; } 50% { transform: scale(1.7); background: #ff6b81; } 100% { transform: scale(1); } }
.wl-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wl-btn { min-height: 44px; padding: 0 18px; border-radius: 0; border: 1px solid #8a93a6; background: transparent; color: #f1f5f9; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: all .15s ease; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-btn:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, .06); }
.wl-btn:disabled { opacity: .4; cursor: default; }
.wl-submit:not(:disabled) { background: #f1f5f9; color: #10131a; border-color: #f1f5f9; }
.wl-submit:not(:disabled):hover { background: #fff; }
.wl-end { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; background: rgba(5, 8, 14, .93); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wl-end-card { max-width: 440px; width: 100%; max-height: 100%; overflow-y: auto; padding: 16px; text-align: center; background: rgba(10, 17, 30, .6); border: 1px solid var(--wl-line); border-radius: 0; animation: wlPop .45s cubic-bezier(.3, 1.6, .5, 1); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
@keyframes wlPop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wl-c-stars { font-size: 28px; letter-spacing: 4px; color: rgba(255, 255, 255, .25); }
.wl-c-stars .on { color: var(--wl-gold); text-shadow: 0 0 10px rgba(255, 211, 77, .7); }
.wl-c-stars:empty, .wl-end-burst:empty { display: none; }
.wl-end-burst { font-size: 40px; line-height: 1; }
.wl-c-title { font-size: 20px; font-weight: 800; margin-top: 2px; }
.wl-c-sub { color: var(--wl-muted); font-size: 14px; margin-top: 2px; }
.wl-review { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; text-align: center; }
.wl-review .wl-band { min-height: 0; padding: 7px 10px; animation-duration: .45s; }
.wl-review .wl-band:nth-child(2) { animation-delay: .1s; } .wl-review .wl-band:nth-child(3) { animation-delay: .2s; } .wl-review .wl-band:nth-child(4) { animation-delay: .3s; }
.wl-review .wl-band-name { font-size: 12.5px; }
.wl-review .wl-band-words { font-size: 12.5px; }
.wl-note { font-size: 11.5px; line-height: 1.35; color: #2a2d36; font-style: italic; }
.wl-next { min-height: 46px; padding: 0 26px; border: 0; font-weight: 800; font-size: 16px; background: var(--wl-accent); color: #2a1405; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.wl-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 520px) {
  .wl-stage { padding-left: 8px; padding-right: 8px; }
  .wl-grid { gap: 5px; }
  .wl-solved { gap: 5px; }
  .wl-solved:not(:empty) { margin-bottom: 5px; }
  .wl-tile { padding: 2px; font-size: 13px; border-radius: 0; letter-spacing: -.01em; box-shadow: inset 0 -3px 0 #151a27, inset 0 1px 0 rgba(255, 255, 255, .1); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
  .wl-tile.sel { box-shadow: inset 0 -3px 0 #858ea4, inset 0 1px 0 #fff; transform: translateY(-1px); }
  .wl-band { padding: 6px; border-radius: 0; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--c) 52%, #000), inset 0 1px 0 rgba(255, 255, 255, .5); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
  .wl-band-name { font-size: 13px; }
  .wl-band-words { font-size: 12px; }
  .wl-btn { padding: 0 14px; font-size: 13.5px; }
  .wl-chip small { font-size: 8.5px; letter-spacing: 1px; }
  .wl-chip b { font-size: 14px; }
  .wl-app.gs-root .gs-bar { gap: 4px; }
  .wl-app.gs-root .gs-btn { min-width: 40px; padding: 0 6px; }
  .wl-app .gs-title { font-size: 13px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-app .wl-tile.shake { animation: none; }
  .wl-tile.fresh, .wl-band, .wl-band::after, .wl-tile.gone { animation-duration: .01s; animation-delay: 0s; }
}
