@font-face{font-family:'Barlow Condensed';src:url('./fonts/barlow-condensed-1.woff2') format('truetype');font-weight:800;font-display:swap}@font-face{font-family:'Barlow Condensed';src:url('./fonts/barlow-condensed-0.woff2') format('truetype');font-weight:600;font-display:swap}
:root{--ground:#172e35;--ink:#f0ecda;--muted:#a9b9b8;--line:#425b60;--soft:#243f45;--focus:#e8cb72;--accent:#e8cb72;--correct:#98c9b0;--present:#e8cb72;--absent:#385058;color-scheme:dark}
.link-main{width:100%;max-width:1080px;margin:20px auto 18px;padding:0 30px}.game-heading{text-align:center}.game-heading h1{display:flex;justify-content:center;align-items:center;gap:14px;font:800 clamp(65px,7.2vw,96px)/.98 'Barlow Condensed',sans-serif;letter-spacing:-.015em}.title-link{width:70px;height:77px;fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;transform:rotate(-8deg);margin:0 4px}.title-link path{stroke:var(--ground);stroke-width:5}.game-heading>p{font-size:18px;color:var(--muted);margin-top:17px}.round-bar{max-width:550px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:14px;color:var(--muted);margin:40px auto 0}.round-bar>span{flex:1}.round-bar>span:last-child{text-align:right;font-variant-numeric:tabular-nums}.progress-dot.current,.progress-dot.complete{background:var(--accent);border-color:var(--accent);color:var(--ground)}.bridge{position:relative;display:grid;grid-template-columns:1fr 340px 1fr;align-items:center;gap:36px;margin:40px auto 0;max-width:960px}.bridge::before{content:'';position:absolute;top:50%;left:15%;right:15%;height:2px;border-top:2px dashed #637873;z-index:0;transform:translateY(-14px)}.word-anchor{position:relative;z-index:1;text-align:center;border:1px solid #668078;min-height:133px;padding:20px 10px;background:var(--ground);border-radius:70px 14px 14px 70px;display:flex;justify-content:center;flex-direction:column;gap:0}.word-anchor strong{font:600 53px/1.06 'Barlow Condensed',sans-serif;color:var(--ink);letter-spacing:.015em}.word-position{font-size:13px;color:var(--muted);margin-bottom:8px}.word-right{border-radius:14px 70px 70px 14px}.connection-port{position:absolute;right:-7px;top:50%;width:12px;height:12px;border:2px solid #87978b;border-radius:50%;background:var(--ground);transform:translateY(-50%)}.word-right .connection-port{left:-7px;right:auto}.entry-zone{position:relative;z-index:1;padding-top:22px}.tile-input{position:relative}.tile-row{display:flex;justify-content:center;gap:8px}.letter-tile{width:60px;height:72px;flex:1;max-width:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#223b43;border:1px solid #6c8284;border-radius:9px;color:var(--ink);font:600 39px/1 'Barlow Condensed',sans-serif;position:relative;transition:background .18s,border-color .18s,transform .18s;box-shadow:0 5px 10px #081a221f}.letter-tile.empty::after{content:'';width:18px;height:2px;background:#758b8d;position:absolute;bottom:22px}.letter-tile.cursor{border-color:var(--accent)}.letter-tile.cursor::after{background:var(--accent)}.tile-input:focus-within .letter-tile.cursor{outline:2px solid var(--accent);outline-offset:3px}.letter-tile.filled{background:var(--ink);border-color:var(--ink);color:var(--ground);transform:translateY(-2px)}.tile-input input{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;cursor:text;font-size:24px}.letter-count{text-align:center;display:block;margin-top:14px;font-size:13px;color:var(--muted)}.phrase-check{position:absolute;left:50%;top:calc(100% + 13px);transform:translateX(-50%);white-space:nowrap;color:var(--correct);font-size:14px;display:flex;gap:6px;align-items:center}.phrase-check svg{width:16px;height:16px}.guess-history{max-width:340px;margin:24px auto 0;display:flex;flex-direction:column;gap:8px}.guess-history:empty{display:none}.guess-row{display:flex;align-items:center;justify-content:center;gap:6px}.guess-row .letter-tile{width:41px;max-width:41px;height:46px;border-radius:6px;font-size:25px;border:0;padding-bottom:6px;box-shadow:none;flex:none}.letter-tile.correct{color:#143b34;background:var(--correct);border-color:var(--correct)}.letter-tile.present{color:#453719;background:var(--present);border-color:var(--present)}.letter-tile.absent{color:#d1dcda;background:var(--absent);border-color:var(--absent)}.letter-tile.correct::before{content:'';position:absolute;bottom:5px;width:10px;height:3px;border-radius:2px;background:#265c49}.letter-tile.present::before{content:'';position:absolute;bottom:4px;width:5px;height:5px;border:1px solid #6f561c;border-radius:50%}.letter-tile.absent::before{content:'';position:absolute;bottom:5px;width:8px;height:1px;background:#b5c4c1;transform:rotate(-35deg)}.earlier-guesses{text-align:center;font-size:13px;color:var(--muted);margin-bottom:3px}.feedback-area{min-height:91px;padding:27px 0 12px}.feedback{color:var(--muted);font-size:16px}.feedback.good{color:var(--correct)}.feedback-legend{display:flex;align-items:center;justify-content:center;gap:17px;margin:11px auto 0;font-size:12px;color:var(--muted)}.feedback-legend>span{display:flex;align-items:center;gap:6px}.feedback-legend i{display:inline-block;width:8px;height:8px;background:var(--correct);border-radius:2px}.feedback-legend .present-mark{background:var(--present);border-radius:50%}.feedback-legend .absent-mark{width:9px;height:2px;background:var(--muted);transform:rotate(-35deg)}.keyboard{width:min(100%,540px);margin:0 auto;display:flex;flex-direction:column;gap:7px}.keyboard-row{display:flex;justify-content:center;gap:6px}.key{flex:1;max-width:47px;height:49px;background:#304950;border-radius:7px;display:grid;place-items:center;font:600 17px/1 Jost,sans-serif;color:var(--ink);border:1px solid #52686c;transition:background .12s,transform .12s}.key:hover{background:#466168}.key:active{transform:translateY(2px)}.key[data-status="correct"]{background:var(--correct);color:var(--ground);border-color:var(--correct)}.key[data-status="present"]{background:var(--present);color:var(--ground);border-color:var(--present)}.key[data-status="absent"]{background:#20383f;color:#9eb0b2;border-color:#3f565c}.key.wide{max-width:78px;flex:1.6;font-size:14px;background:var(--accent);border-color:var(--accent);color:var(--ground)}.key.delete{background:#304950;border-color:#52686c;color:var(--ink)}.key svg{width:21px;height:21px}.game-actions{margin-top:20px;min-height:50px}.game-actions .primary-button,.result .primary-button,.menu-dialog .primary-button{background:var(--accent);color:var(--ground)}.bridge.is-solved::before{border-style:solid;border-color:var(--correct)}.bridge.is-solved .word-anchor{border-color:var(--correct)}.bridge.is-solved .word-anchor strong{color:var(--correct)}.bridge.is-solved .connection-port{background:var(--correct);border-color:var(--correct)}.bridge.is-solved .letter-tile{background:var(--correct);border-color:var(--correct);color:var(--ground);animation:lock .42s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i)*55ms)}.bridge.is-solved .word-left{animation:join-left .55s cubic-bezier(.16,1,.3,1)}.bridge.is-solved .word-right{animation:join-right .55s cubic-bezier(.16,1,.3,1)}.bridge.is-revealed .letter-tile{background:var(--accent);color:var(--ground);border-color:var(--accent)}.bridge.is-solved+.guess-history{opacity:.6}.tile-input.is-wrong{animation:shake .28s ease-out}.result h2,.result-score{font-family:'Barlow Condensed',sans-serif;font-weight:600}.result h2{font-size:56px}.result-score{font-size:90px}.result{margin-top:50px}.result-list span{color:var(--correct)}@keyframes lock{0%{transform:translateY(-8px) rotateX(35deg)}100%{transform:translateY(0) rotateX(0)}}@keyframes join-left{0%{transform:translateX(-10px)}100%{transform:translateX(0)}}@keyframes join-right{0%{transform:translateX(10px)}100%{transform:translateX(0)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@media(min-width:1400px) and (min-height:900px){.link-main{margin-top:45px}.round-bar{margin-top:48px}.bridge{margin-top:45px}.feedback-area{padding-top:32px;min-height:102px}.keyboard{gap:8px}.key{height:52px}}
@media(max-width:850px){.bridge{grid-template-columns:1fr 290px 1fr;gap:22px}.word-anchor strong{font-size:43px}.word-anchor{min-height:119px}.letter-tile{height:66px}.bridge::before{transform:translateY(-14px)}}
@media(max-width:650px){.link-main{padding:0 18px;margin-top:22px}.game-heading h1{font-size:clamp(53px,13.3vw,77px);gap:8px}.title-link{width:42px;height:50px;stroke-width:10;margin:0 2px}.game-heading>p{font-size:16px;margin-top:13px}.round-bar{margin-top:29px;font-size:13px}.bridge{grid-template-columns:1fr 1fr;gap:0 52px;margin-top:28px;max-width:430px}.word-anchor{grid-row:1;min-height:89px;padding:13px 8px;border-radius:46px 10px 10px 46px}.word-right{grid-column:2;border-radius:10px 46px 46px 10px}.word-position{font-size:12px;margin-bottom:5px}.word-anchor strong{font-size:36px}.entry-zone{grid-column:1/-1;grid-row:2;padding-top:28px;max-width:330px;width:100%;margin:auto}.bridge::before{top:44px;left:20%;right:20%;transform:none}.bridge::after{content:'';position:absolute;width:2px;height:50px;top:44px;left:50%;background:#637873;z-index:0}.letter-tile{height:64px;font-size:34px}.tile-row{gap:7px}.letter-count{margin-top:11px}.feedback-area{padding-top:18px;min-height:78px}.keyboard{gap:6px}.keyboard-row{gap:4px}.key{height:48px;font-size:16px;border-radius:6px}.key.wide{font-size:12px;max-width:60px}.game-actions{margin-top:16px;gap:10px}.guess-history{margin-top:15px;gap:6px}.guess-row .letter-tile{width:35px;max-width:35px;height:39px;font-size:23px}.feedback-legend{gap:12px;font-size:11px;margin-top:10px}.phrase-check{top:calc(100% + 5px);font-size:11px;z-index:2}.phrase-check svg{width:12px;height:12px}.bridge.is-solved::after{background:var(--correct)}.page-footer{margin-top:28px}.page-footer>a>span:first-child{display:none}.feedback{font-size:15px}.result h2{font-size:45px}}
@media(max-width:370px){.link-main{padding:0 12px}.game-heading h1{font-size:49px}.title-link{width:34px}.bridge{column-gap:42px}.word-anchor strong{font-size:33px}.key{font-size:14px;height:46px}.key.wide{font-size:11px}.letter-tile{height:59px}.feedback-legend{gap:9px}.text-button{padding:10px}.round-bar{gap:8px;font-size:12px}.progress{gap:6px}}
/* The light world uses the same shapes and feedback grammar. */
:root[data-theme=light]{--ground:#eef2eb;--ink:#233e43;--muted:#4c656a;--line:#a2b3af;--soft:#dce5dd;--focus:#80621f;--accent:#d6b44f;--correct:#8fc3a8;--present:#e0bf5a;--absent:#c8d3cf;color-scheme:light}
:root[data-theme=light] .title-link{stroke:#a77e18}
:root[data-theme=light] .letter-tile{background:#e1e9e1;border-color:#91a7a1;color:var(--ink);box-shadow:none}
:root[data-theme=light] .letter-tile.filled{background:#26484c;border-color:#26484c;color:#f3f5e9}
:root[data-theme=light] .letter-tile.correct,:root[data-theme=light] .bridge.is-solved .letter-tile{background:var(--correct);border-color:var(--correct);color:#143b34}
:root[data-theme=light] .letter-tile.present,:root[data-theme=light] .bridge.is-revealed .letter-tile{background:var(--present);border-color:var(--present);color:#453719}
:root[data-theme=light] .letter-tile.absent{background:var(--absent);border-color:var(--absent);color:#374e52}
:root[data-theme=light] .letter-tile.absent::before{background:#4c656a}
:root[data-theme=light] .letter-tile.cursor{border-color:#96751e}
:root[data-theme=light] .letter-tile.cursor::after{background:#96751e}
:root[data-theme=light] .tile-input:focus-within .letter-tile.cursor{outline-color:#96751e}
:root[data-theme=light] .key{background:#dfe7df;border-color:#a6b8b1;color:#233e43}
:root[data-theme=light] .key:hover{background:#c9d8cc}
:root[data-theme=light] .key.wide{background:var(--accent);border-color:var(--accent);color:#233e43}
:root[data-theme=light] .key.delete{background:#dfe7df;border-color:#a6b8b1}
:root[data-theme=light] .key[data-status=correct]{background:var(--correct);border-color:var(--correct);color:#143b34}
:root[data-theme=light] .key[data-status=present]{background:var(--present);border-color:var(--present);color:#453719}
:root[data-theme=light] .key[data-status=absent]{background:#ccd7d1;border-color:#a6b8b1;color:#4c656a}
:root[data-theme=light] .feedback.good,:root[data-theme=light] .phrase-check,:root[data-theme=light] .bridge.is-solved .word-anchor strong,:root[data-theme=light] .result-list span{color:#245d49}
:root[data-theme=light] .game-actions .primary-button,:root[data-theme=light] .result .primary-button,:root[data-theme=light] .menu-dialog .primary-button{color:#233e43}
:root[data-theme=light] .progress-dot.current,:root[data-theme=light] .progress-dot.complete{background:#947421;border-color:#947421;color:#fff}
:root[data-theme=light] .bridge.is-solved::before{border-color:#498169}
:root[data-theme=light] .bridge.is-solved .word-anchor{border-color:#498169}
:root[data-theme=light] .bridge.is-solved .connection-port{background:#498169;border-color:#498169}
:root[data-theme=light] .bridge.is-solved::after{background:#498169}
@media(min-width:1400px) and (min-height:900px){.link-main{margin-top:28px}.round-bar{margin-top:37px}.bridge{margin-top:35px}.key{height:48px}.feedback-area{padding-top:24px;min-height:85px}}
.mini-legend .legend-tile.present{border-bottom:0;outline:1px solid #9d7733;outline-offset:-3px}

.page-footer>a>.footer-title{display:inline!important}
.earlier-guesses summary{cursor:pointer;padding:7px;list-style-position:inside}.earlier-guesses[open] .guess-row{margin:7px auto}
