/* Daily Word Tower shares the dashboard's ink, brass and teal palette. */
.word-tower{--wt-ink:#edf4f5;--wt-muted:#adbfce;--wt-gold:#e7c58b;--wt-mint:#9de1d0;--wt-line:#37516b;box-sizing:border-box;margin:26px 0;padding:clamp(16px,2.5vw,28px);color:var(--wt-ink);border:1px solid #68716b;border-radius:15px;background:radial-gradient(ellipse at 100% 0,#c7a35812,transparent 52%),linear-gradient(125deg,#142437,#0b1728 65%);box-shadow:inset 0 1px #e9c98d33,0 12px 35px #0003;font:14px/1.5 system-ui,sans-serif;position:relative;isolation:isolate}
.word-tower *{box-sizing:border-box}.word-tower h2,.word-tower h3,.word-tower h4,.word-tower p{margin:0}.word-tower .word-header{display:flex;align-items:center;justify-content:space-between;gap:18px;background:none;border:0;padding:0}.word-brand{display:flex;align-items:center;gap:16px;min-width:0}.word-mark{display:grid;place-items:center;flex:none;width:48px;height:52px;border:1px solid #9b8660;border-radius:9px;color:var(--wt-gold);font:700 27px Georgia,serif;background:linear-gradient(145deg,#77613b44,#171f29);box-shadow:inset 0 0 0 4px #1a2635,0 4px 12px #0005;transform:rotate(-5deg)}.word-tower .word-eyebrow{font:700 10px/1.5 system-ui;letter-spacing:2px;color:var(--wt-gold)}.word-tower h2{color:#f2e7cd;font:600 clamp(22px,2.4vw,30px)/1.25 Georgia,serif;margin:3px 0 5px}.word-tower .word-subtitle{color:var(--wt-muted);font-size:12px}.word-reward{flex:none;display:grid;justify-items:center;gap:1px;border:1px solid #4c9e8866;border-radius:8px;padding:8px 15px;background:#3c8f7220;color:var(--wt-mint)}.word-reward strong{font:700 23px/1.2 Georgia,serif}.word-reward small{font:700 8px/1.8 system-ui;letter-spacing:1.5px}
.word-stages{list-style:none;margin:23px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.word-stages li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:0 9px;align-items:center;border:1px solid #32455d;border-radius:7px;padding:11px 14px;background:#09152380;color:#a1b3c5;position:relative}.word-stages strong{font-size:13px;font-weight:650}.word-stage-reward{grid-column:2;font-size:10px;white-space:nowrap}.word-step{grid-row:1/3;width:27px;height:27px;border:1px solid #53657a;border-radius:50%;display:grid;place-items:center;font:11px monospace;color:#b9cbd9}.word-stages .current{border-color:#d8bc7e;background:linear-gradient(110deg,#e4bc6f19,#c4a46d08);color:#f4dfb1;box-shadow:inset 0 0 12px #d0a35e0a}.word-stages .current .word-step{color:#f5deb0;border-color:#c4a572}.word-stages .done{border-color:#3e8676;background:#1c54482e;color:var(--wt-mint)}.word-stages .done .word-step{background:#266d59;color:#d5f6e9;border-color:#6cb997}
.word-teaser{display:flex;align-items:center;gap:22px;margin-top:20px;padding-top:19px;border-top:1px solid #ae916138}.word-teaser p{max-width:270px;font-size:12px;color:var(--wt-muted)}.word-teaser-tiles{display:flex;gap:4px;flex:none}.word-teaser-tiles .word-tile{height:35px;width:32px;font-size:17px;border-radius:4px}.word-tower .word-primary{margin-left:auto;padding:12px 20px;min-height:46px;background:linear-gradient(#e7cf9d,#c6a66a);color:#172435;border:1px solid #f5dfb2;border-radius:6px;font:700 12px system-ui;white-space:nowrap;box-shadow:0 3px 0 #624c2e;cursor:pointer}.word-tower button:disabled{opacity:.65;cursor:wait}.word-tower :focus-visible{outline:3px solid #b0eeff!important;outline-offset:4px!important}
.word-body{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:34px;margin-top:24px;padding-top:22px;border-top:1px solid #ae916138}.word-play-area{max-width:480px;width:100%;margin:0 auto}.word-stage-heading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;margin-bottom:15px}.word-stage-heading .word-eyebrow{grid-column:1/-1;font-size:9px}.word-tower h3{font:600 23px/1.3 Georgia,serif;color:#f0e5cc}.word-guess-count{font:700 9px monospace;letter-spacing:1px;color:var(--wt-muted)}.word-board{list-style:none;display:grid;gap:7px;margin:0 auto 16px;padding:0;width:min(100%,calc(var(--word-length)*52px + (var(--word-length) - 1)*7px))}.word-row{display:grid;grid-template-columns:repeat(var(--word-length),minmax(0,1fr));gap:7px;margin:0;padding:0}.word-tile{display:grid;place-items:center;aspect-ratio:1;height:auto;min-width:0;border:1px solid #405970;background:linear-gradient(135deg,#1c3046,#15263a);box-shadow:inset 0 1px #ffffff0a,0 2px 0 #040c1740;border-radius:5px;color:#f6f5e8;font:700 clamp(18px,2vw,25px)/1 system-ui;letter-spacing:.3px}.word-tile.filled{border-color:#9ba99d;background:#24374a}.word-tile.correct,.word-key.correct{background:linear-gradient(145deg,#347d68,#286151);border-color:#6cb297;color:#f0fff7}.word-tile.present,.word-key.present{background:linear-gradient(145deg,#886528,#765a22);border-color:#cfac65;color:#fff5d9}.word-tile.absent,.word-key.absent{background:#293544;border-color:#526173;color:#d5deea}.word-row:has(.filled) .word-tile{box-shadow:inset 0 1px #ffffff15}
.word-input-form{display:flex;gap:6px;margin:0 0 5px}.word-tower #word-guess{display:block;min-width:0;flex:1;width:0;padding:10px 12px;min-height:42px;color:#eff7ff;background:#0b1626;border:1px solid #496178;border-radius:5px;font:12px/1.5 system-ui;letter-spacing:1px;text-transform:uppercase}.word-tower #word-guess::placeholder{text-transform:none;color:#aebfd0;letter-spacing:0}.word-tower #word-guess[aria-invalid=true]{border-color:#edc477}.word-tower .word-enter{min-height:42px;padding:8px 13px;border:1px solid #bda36b;background:#3d3d31;color:#f6e7c3;border-radius:5px;font:700 11px system-ui;cursor:pointer}.word-tower .word-input-note{text-align:center;font-size:10px;color:#a2b7c9;margin:6px 0 16px}.word-keyboard{display:grid;gap:6px;width:100%}.word-key-row{display:flex;justify-content:center;gap:5px}.word-key-row:nth-child(2){padding:0 4.5%}.word-tower .word-key{min-width:0;flex:1;min-height:44px;padding:4px 0;background:#263b50;color:#f1f5f9;border:1px solid #50647a;border-bottom:3px solid #0c1829;border-radius:5px;font:650 12px system-ui;cursor:pointer;touch-action:manipulation}.word-tower .word-key.wide{flex:1.5;font-size:9px}.word-tower .word-key:hover{filter:brightness(1.18)}
.word-side{border-left:1px solid #50607855;padding-left:26px;align-self:stretch}.word-bank{display:grid;gap:4px;padding:18px 0 22px;border-bottom:1px solid #50607855}.word-bank strong{font:600 31px/1.2 Georgia,serif;color:var(--wt-mint)}.word-bank>span:last-of-type{font:700 9px system-ui;letter-spacing:2px;color:#b9d2d7}.word-bank progress{display:block;width:100%;height:5px;accent-color:#84d4b6;margin-top:10px}.word-bank progress::-webkit-progress-bar{background:#304153;border-radius:5px}.word-bank progress::-webkit-progress-value{background:#84d4b6;border-radius:5px}.word-tower .word-side h4{margin:22px 0 15px;font:500 17px Georgia,serif;color:#f1dfbd}.word-tower .word-legend{display:flex;align-items:center;gap:10px;margin:11px 0;color:var(--wt-muted);font-size:11px}.word-legend .word-tile{width:30px;height:32px;flex:none;font-size:14px}.word-tower .word-help-button{display:block;min-height:44px;background:transparent;border:0;border-bottom:1px solid #7d929d;padding:5px 0;color:#cee3ee;font:12px system-ui;cursor:pointer;border-radius:0;margin-top:16px}.word-tower .word-reset{font-size:10px;color:#9dafc0;line-height:1.7;margin-top:16px;max-width:150px}.word-tower .word-message:empty{display:none}.word-tower .word-message{margin:18px 0 0;padding:12px 14px;border:1px solid #8b815b;border-radius:6px;color:#f4e2bd;font-size:12px;background:#b79b4620}.word-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.word-tower .word-result{min-height:270px;display:flex;flex-direction:column;justify-content:center;gap:14px}.word-result>strong{font:600 40px Georgia,serif;color:var(--wt-mint)}.word-result p{font-size:13px;color:#d6e1ea}.word-result .word-solved-line{font-family:monospace;color:var(--wt-gold)}
@media(max-width:780px){.word-body{grid-template-columns:minmax(0,1fr);gap:20px}.word-side{border-left:0;border-top:1px solid #50607855;padding:15px 0 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.word-bank{padding:0 12px 0 0;border:0;border-right:1px solid #50607855;width:130px;gap:2px}.word-bank strong{font-size:23px}.word-tower .word-side h4{display:none}.word-tower .word-legend{font-size:10px;gap:6px;margin:0}.word-legend .word-tile{width:24px;height:26px;font-size:12px}.word-tower .word-help-button{margin:0}.word-tower .word-reset{margin:0;max-width:160px}.word-teaser{flex-wrap:wrap;gap:15px}.word-teaser p{max-width:none;flex:1}.word-tower .word-primary{width:100%}}
@media(max-width:480px){.word-tower{padding:16px 12px;border-radius:10px}.word-header{gap:8px!important}.word-brand{gap:9px}.word-mark{width:33px;height:39px;font-size:22px}.word-tower h2{font-size:22px}.word-tower .word-eyebrow{font-size:8px;letter-spacing:1.4px}.word-tower .word-subtitle{font-size:10px;max-width:200px}.word-reward{padding:7px 8px;border-radius:6px}.word-reward strong{font-size:20px}.word-reward small{font-size:7px;letter-spacing:.5px}.word-stages{gap:5px;margin-top:18px}.word-stages li{display:flex;flex-direction:column;gap:3px;padding:10px 3px}.word-step{width:23px;height:23px}.word-stages strong{font-size:11px}.word-stage-reward{font-size:9px}.word-body{margin-top:17px;padding-top:16px}.word-tower h3{font-size:22px}.word-board,.word-row{gap:5px}.word-key-row{gap:3px}.word-tower .word-key{font-size:11px;min-height:46px}.word-tower .word-key.wide{font-size:8px}.word-bank{width:100%;border-right:0;border-bottom:1px solid #50607855;padding:0 0 15px}.word-bank progress{width:100%;height:5px}.word-bank strong{font-size:25px}.word-tower .word-legend{font-size:11px;width:100%}.word-tower .word-help-button{margin-top:0}.word-tower .word-reset{margin-left:auto}.word-guess-count{font-size:8px}.word-tile{border-radius:4px}.word-teaser-tiles .word-tile{width:25px;height:29px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.word-tower *{animation:none!important;transition:none!important}}html[data-cs-reduce-motion] .word-tower *{animation:none!important;transition:none!important}

.word-tower .word-key.correct{background:linear-gradient(145deg,#347d68,#286151);border-color:#6cb297;color:#f0fff7}.word-tower .word-key.present{background:linear-gradient(145deg,#886528,#765a22);border-color:#cfac65;color:#fff5d9}.word-tower .word-key.absent{background:#293544;border-color:#526173;color:#d5deea}
/* A solved word pauses on a celebration until the player chooses Next. */
.word-header-actions{display:flex;align-items:center;gap:12px}.word-tower .word-sound{min-height:40px;padding:7px 10px;border:1px solid #526e7d;border-radius:6px;color:#d6e8ed;background:#122638;font:11px system-ui;white-space:nowrap;cursor:pointer}.word-tower .word-sound[aria-pressed=false]{color:#bcc6d0;background:#182532}
.word-celebration{position:relative;isolation:isolate;overflow:hidden;display:grid;justify-items:center;gap:15px;text-align:center;min-height:440px;margin-top:24px;padding:40px 18px;border-top:1px solid #ae916150;background:radial-gradient(ellipse at 50% 35%,#e7bc5b1c,transparent 67%)}.word-victory-seal{display:grid;place-items:center;position:relative;width:94px;height:94px;border-radius:50%;border:2px solid #dfbd79;outline:1px solid #dfbd7955;outline-offset:7px;box-shadow:0 0 38px #efc76e25,inset 0 0 20px #d0b16d22;background:linear-gradient(145deg,#59472a,#1b2832);color:#ffe5a6;font:58px Georgia,serif;margin:9px 0 13px}.word-tower .word-celebration h3{font:700 clamp(42px,7vw,62px)/1.1 Georgia,serif;color:#ffe1a0;text-shadow:0 3px 15px #0005}.word-tower .word-win-subtitle{font-size:13px;color:#c3d4df;max-width:370px}.word-win-answer{display:flex;justify-content:center;gap:6px;margin:8px 0}.word-win-answer .word-tile{width:44px;height:48px;font-size:23px}.word-win-xp{font:600 25px Georgia,serif;color:#a4e8c8}.word-celebration .word-primary{margin:10px 0 0;min-width:180px}.word-win-sparks{position:absolute;inset:0;pointer-events:none;z-index:-1}.word-win-sparks i{position:absolute;left:calc(8% + var(--spark)*7.5%);top:30%;width:5px;height:10px;background:#e7c58b;border-radius:1px;opacity:0;animation:word-confetti 2.6s ease-out both;animation-delay:calc(var(--spark)*.035s)}.word-win-sparks i:nth-child(3n){background:#80d8b4;width:7px;height:7px}.word-win-sparks i:nth-child(2n){background:#b7d9ec;top:17%}@keyframes word-confetti{0%{opacity:0;transform:translateY(-15px) rotate(0)}18%{opacity:.85}100%{opacity:0;transform:translateY(235px) rotate(220deg)}}
@media(max-width:480px){.word-header-actions{flex-direction:column;align-items:flex-end;gap:6px}.word-tower .word-sound{min-height:32px;padding:5px 7px;font-size:10px}.word-celebration{min-height:420px;padding:30px 3px;gap:13px}.word-win-answer{gap:4px}.word-win-answer .word-tile{width:34px;height:40px;font-size:20px}.word-celebration .word-primary{width:100%;max-width:260px}}
.word-tower .word-certification{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;color:#d4e4ed;font:11px/1.6 system-ui;margin:7px 0 1px}.word-cert-kicker{color:#e7c58b;font:700 8px/1.6 system-ui;letter-spacing:1px}.word-certification strong{font-weight:600}.word-cert-exam{color:#b6c9d7;font-size:10px}.word-celebration .word-certification{justify-content:center;max-width:100%;padding:6px 10px;border:1px solid #526778;border-radius:6px;background:#162638}.word-tower .word-solved-line{overflow-wrap:anywhere}@media(max-width:480px){.word-tower .word-certification{font-size:10px;gap:3px 6px}.word-cert-kicker{font-size:8px}.word-cert-exam{font-size:9px}}
