@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#172e33;background:#f5f8f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d78313;outline-offset:4px}header{max-width:1120px;margin:auto;padding:28px 30px;border-bottom:1px solid #d4e0e3;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:#172e33;font:700 28px 'Space Grotesk',sans-serif;letter-spacing:-1.5px}.brand span{color:#12816e}.brand i{font-style:normal;margin-left:10px;color:#12816e}header button,footer button,.actions button{background:none;border:0;color:#52686c;font-size:14px}main{max-width:1000px;margin:auto}.intro{text-align:center;padding:42px 20px 25px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:#12816e}.eyebrow span{display:block;margin-top:10px;color:#687d82;letter-spacing:1px}h1{font:600 clamp(30px,5vw,44px)/1.13 'Space Grotesk',sans-serif;letter-spacing:-1.8px;margin:20px 0 12px}.intro p{color:#687d82;font-size:16px}.game{max-width:460px;padding:0 20px;margin:auto}.route{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #cfdddf;border-bottom:1px solid #cfdddf;padding:22px 10px}.label{display:block;font-size:12px;letter-spacing:2px;color:#687d82;margin-bottom:9px}.route strong{font:600 27px 'Space Grotesk';letter-spacing:4px}.route>div:last-child{text-align:right}.route>div:last-child strong{color:#12816e}.route-line{color:#8fa8a9;font-size:15px;overflow:hidden;margin:0 10px}.progress{display:flex;justify-content:space-between;color:#687d82;font-size:14px;margin:20px 0}.row{display:flex;justify-content:center;gap:8px;margin:10px 0;animation:arrive .2s ease-out}.tile{width:58px;height:58px;border:1.5px solid #bfcfd2;background:white;border-radius:7px;display:grid;place-items:center;font:600 28px 'Space Grotesk';}.tile.match{background:#12816e;border-color:#12816e;color:white}.tile.changed{box-shadow:inset 0 -3px #e4b451}form{display:flex;gap:10px;margin:18px 0 0}input{min-width:0;width:100%;background:white;border:1.5px solid #9db8bc;border-radius:7px;padding:14px;font:500 22px 'Space Grotesk';letter-spacing:9px;text-transform:uppercase}input::placeholder{color:#abbcc0;font-size:17px}form button{border:0;background:#172e33;color:white;border-radius:7px;padding:0 20px;font-weight:600}#message{min-height:40px;text-align:center;font-size:14px;color:#627b7f;line-height:1.5;margin:14px 0}#message.error{color:#ab423d}.keyrow{display:flex;justify-content:center;gap:5px;margin:6px 0}.key{border:0;border-radius:5px;background:#e0e9ec;color:#29454a;flex:1;height:44px;font-weight:600;font-size:14px;max-width:40px}.key.wide{max-width:64px;flex:1.6;font-size:12px}.key:hover{background:#cbdbdf}.actions{display:flex;justify-content:space-between;margin:18px 0 30px}.actions button:disabled{opacity:.4;cursor:default}#win{text-align:center;background:#dff1ec;padding:22px;border-radius:10px;margin-bottom:25px}#win h2{font-family:'Space Grotesk';margin:0}#win p{font-size:14px}#countdown{color:#52776e}.ad{max-width:720px;border:1px dashed #c6d5d9;margin:28px auto 50px;min-height:105px;text-align:center;padding:14px;color:#8a9ca0}.ad>span{font-size:10px;letter-spacing:2px}.explanation{max-width:620px;padding:0 20px;margin:0 auto 50px}.explanation h2{font:500 23px 'Space Grotesk';letter-spacing:-.6px}.explanation p{color:#5b7378;font-size:16px;line-height:1.7}footer{max-width:1120px;border-top:1px solid #d4e0e3;margin:auto;padding:25px 30px;display:flex;justify-content:space-between;color:#7b9095;font-size:14px}footer div{display:flex;gap:20px}dialog{max-width:520px;width:calc(100% - 40px);border:0;border-radius:16px;padding:30px;color:#172e33;box-shadow:0 20px 100px #17323833}dialog::backdrop{background:#142f3866}dialog h2{font-family:'Space Grotesk'}dialog p{line-height:1.7}#close{float:right;border:0;background:none;font-size:28px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes arrive{from{transform:translateY(5px);opacity:.4}to{transform:none;opacity:1}}@media(max-width:560px){header{padding:20px}.intro{padding-top:28px}h1{margin-top:18px}.route-line{font-size:12px}.ad{margin:25px 20px 35px}footer{flex-direction:column;gap:18px;padding:25px 20px}.tile{width:54px;height:54px}}@media(prefers-reduced-motion:reduce){.row{animation:none}}
[hidden]{display:none!important}
/* A hand-built cabinet of word curiosities. */
:root{color:#252327;background:#fff8e9}body{background-image:radial-gradient(#25232719 1px,transparent 1px);background-size:18px 18px}header{border-bottom:2px solid #252327;max-width:1180px}.brand{color:#252327}.brand span,.brand i{color:#6c45c2}.header-tools{display:flex;gap:12px}header button{border:2px solid #252327;border-radius:50%;padding:12px 17px;color:#252327;background:#f4f09b;transform:rotate(-4deg)}header button:last-child{background:#bce5d3;transform:rotate(4deg)}.intro{position:relative;padding:42px 140px 20px;max-width:950px;margin:auto}.eyebrow{color:#6c45c2}.eyebrow span{color:#59515d}h1{font-size:clamp(36px,5vw,60px);font-weight:700;letter-spacing:-2px}h1 em{font-style:normal;background:#f4f09b;box-shadow:6px 6px 0 #252327;padding:0 10px;display:inline-block;transform:rotate(-2deg)}.intro p{color:#59515d;margin-top:22px}.oddity{position:absolute;width:125px;top:40px;animation:bob 5s ease-in-out infinite;pointer-events:none}.oddity svg{width:100%;overflow:visible}.oddity span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:bold}.oddity-left{left:5px;transform:rotate(-12deg)}.oddity-right{right:5px;animation-delay:-2s}.wheel{transform-origin:75px 75px;animation:spin 24s linear infinite}.game{position:relative;background:#fffdf5;border:3px solid #252327;border-radius:25px 8px 28px 7px;padding:25px;max-width:500px;box-shadow:9px 9px 0 #b5a0ff;margin:30px auto 40px}.game:before{content:'EXPERIMENT NO. 04';position:absolute;top:-15px;left:25px;background:#ff875d;border:2px solid #252327;padding:5px 12px;font-size:10px;letter-spacing:2px;font-weight:bold;transform:rotate(-3deg)}.route{border:0;border-bottom:2px dashed #25232755;padding:15px 4px 22px}.route-line{color:#6c45c2}.route strong{color:#252327}.route>div:last-child strong{color:#6c45c2}.label{color:#59515d}.progress{font-size:12px;color:#59515d}.progress span:last-child{background:#f4f09b;padding:4px 8px;transform:rotate(2deg)}.tile{border:2px solid #252327;border-radius:5px 12px 5px 12px;box-shadow:3px 3px 0 #252327;background:#fff8e9}.tile:nth-child(2n){transform:rotate(3deg)}.tile:nth-child(2n+1){transform:rotate(-3deg)}.tile.match{background:#bce5d3;color:#252327;border-color:#252327}.tile.changed{box-shadow:3px 3px 0 #252327,inset 0 -5px #ff875d}input{border:2px solid #252327;background:#fff8e9;border-radius:5px;box-shadow:3px 3px 0 #b5a0ff}form button{background:#6c45c2;border:2px solid #252327;border-radius:8px 2px;box-shadow:3px 3px 0 #252327}.key{background:#e9dfff;border:1px solid #252327;box-shadow:0 2px 0 #252327;color:#252327}.key:hover{background:#f4f09b}.actions button{color:#59515d;text-decoration:underline;text-underline-offset:4px}#win{background:#f4f09b;border:2px solid #252327;border-radius:2px 20px;transform:rotate(-1deg)}.ad{background:#fffdf5;border:1px dashed #837d87;color:#655d6a;max-width:728px;min-height:110px;margin:35px auto;padding:12px}.ad-top{margin:12px auto 30px}.explanation h2{font-weight:700;font-size:28px}.explanation p{color:#59515d}footer{border-top:2px solid #252327;color:#59515d}dialog{background:#fff8e9;border:3px solid #252327;border-radius:8px 28px;box-shadow:8px 8px 0 #b5a0ff}dialog a{color:#6c45c2}.history-list p{border-bottom:1px dashed #837d87;padding-bottom:14px}#message{color:#59515d}button:disabled{cursor:default;opacity:.45}@keyframes bob{0%,100%{translate:0 0;rotate:-7deg}50%{translate:0 -12px;rotate:6deg}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:650px){.intro{padding:30px 20px 20px}.oddity{width:65px;top:5px;opacity:.9}.oddity span{display:none}.oddity-left{left:12px}.oddity-right{right:12px}h1{font-size:36px;margin-top:35px;letter-spacing:-1.5px}.game{margin:28px 17px 35px;padding:22px 16px}.ad{margin:24px 20px}.header-tools{gap:7px}header button{font-size:11px;padding:10px}.brand{font-size:24px}.tile{width:53px;height:53px}.explanation h2{font-size:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
.letter-entry{display:flex;justify-content:center;gap:8px;flex:1;min-width:0}.letter-entry .letter-input{width:54px;height:58px;min-width:0;padding:0;text-align:center;letter-spacing:0;font:600 28px 'Space Grotesk',sans-serif;border:2px solid #252327;border-radius:5px 12px 5px 12px;background:#fff8e9;box-shadow:3px 3px 0 #b5a0ff;caret-color:#6c45c2}.letter-input:focus{background:#f4f09b}.letter-entry+button{padding:0 14px}@media(max-width:400px){.letter-entry{gap:6px}.letter-entry .letter-input{width:44px;height:54px}.letter-entry+button{padding:0 10px}}

.creator-credit{display:inline-block;margin-top:10px;color:#6c45c2;text-decoration:underline;text-underline-offset:3px}

#answer{font-weight:700;line-height:1.8;overflow-wrap:anywhere;border-top:2px dashed #25232755;padding-top:14px}

.total-plays{text-align:center;margin:30px 20px 40px;font-weight:700;color:#6c45c2}
.leaderboard{max-width:620px;margin:30px auto 45px;padding:26px;background:#e9dfff;border:2px solid #252327;border-radius:10px 28px 6px 20px;box-shadow:5px 5px 0 #252327}.leaderboard h2{font:700 26px 'Space Grotesk',sans-serif;margin:12px 0}.leaderboard p{font-size:14px;line-height:1.6}.leaderboard ol{list-style:none;padding:0}.leaderboard li{display:flex;align-items:center;gap:12px;background:#fff8e9;border:1px solid #252327;border-radius:8px;padding:14px;margin:10px 0;overflow-wrap:anywhere}.podium-rank{font:700 24px 'Space Grotesk',sans-serif;color:#6c45c2}.leaderboard li>span:last-child{margin-left:auto;font-size:12px}.leaderboard #sync-status{border-top:1px dashed #837d87;padding-top:15px;font-size:12px}#account-close{float:right;border:0;background:none;font-size:28px}.account-form{display:flex;flex-direction:column;gap:10px}.account-form input{width:100%;font:inherit;letter-spacing:normal;text-transform:none;padding:12px}.account-form input[type=checkbox]{width:18px;height:18px;flex-shrink:0;box-shadow:none}.account-form button,.account-actions button{padding:12px}.import-choice{display:flex;align-items:center;gap:10px;font-size:14px}.fine-print{font-size:12px;line-height:1.6;color:#59515d}.account-actions{display:flex;flex-direction:column;gap:9px;margin-top:20px}.account-actions button{border:1px solid #252327;border-radius:5px;background:#e9dfff;color:#252327}#account-status{font-size:14px;line-height:1.6;min-height:24px;overflow-wrap:anywhere}#account-email{overflow-wrap:anywhere}.header-tools{flex-wrap:wrap;justify-content:flex-end}@media(max-width:650px){.leaderboard{margin:30px 20px;padding:20px}.leaderboard li{flex-wrap:wrap}.leaderboard li>span:last-child{margin-left:36px}.header-tools{max-width:200px}}
/* Keep the account controls aligned; on phones give the row its own full width. */
header{gap:18px;flex-wrap:wrap}.brand{flex-shrink:0}.header-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;max-width:none;min-width:0}header .header-tools button{white-space:nowrap;transform:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.header-tools #account-button{max-width:200px;overflow:hidden;text-overflow:ellipsis;display:block}@media(max-width:650px){header{gap:16px}.header-tools{max-width:none;width:100%;justify-content:space-between;gap:8px}.header-tools button{flex:1;min-width:0;padding:11px 8px;font-size:12px}.header-tools #account-button{max-width:none;flex:1.2}}
/* Keep mobile podium names and both counters on one line. */
@media(max-width:650px){
 .leaderboard li{flex-wrap:nowrap;gap:6px;padding:12px 9px;overflow-wrap:normal}
 .leaderboard .podium-rank{flex:none;font-size:18px}
 .leaderboard li>strong{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .leaderboard li>span:last-child{flex:none;margin-left:0;font-size:10px;white-space:nowrap}
}

.history-list{max-height:55dvh;overflow:auto}.history-day{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px dashed #b5a0ff}.history-day small{display:block;margin-top:5px;color:#59515d;font-size:12px}.history-day button,#today-button{padding:9px 14px;border:1px solid #252327;border-radius:8px;background:#e9dfff;color:#252327;font:inherit;cursor:pointer}.history-day button{min-width:76px}.archive-state{font-size:12px;color:#6c45c2;margin:8px auto}#today-button{margin:8px auto}#today-button[hidden],#archive-state[hidden]{display:none}

#history-signin{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:44px;padding:12px 20px;margin:4px 0 18px;background:#f4f09b;color:#252327;border:2px solid #252327;border-radius:10px 5px 12px 5px;box-shadow:3px 3px 0 #252327;font:700 14px 'DM Sans',sans-serif;line-height:1.4;text-align:center;transition:transform .15s,box-shadow .15s}#history-signin:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #252327}#history-signin:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #252327}

/* Keep all four letter columns identical, with room for the submit control. */
:root{--letter-size:54px;--letter-gap:8px;--submit-width:88px;--submit-gap:10px}
#ladder .row{padding-right:calc(var(--submit-width) + var(--submit-gap))}
.tile,.letter-entry .letter-input{width:var(--letter-size);height:58px;flex:0 0 var(--letter-size)}
#form{display:flex;gap:var(--submit-gap);align-items:stretch}
#form .letter-entry{gap:var(--letter-gap);justify-content:center}
#form>button{flex:0 0 var(--submit-width);width:var(--submit-width);padding:0 4px;font-size:13px}
.key-row{display:flex;justify-content:center;gap:5px;margin:6px 0}
.key-row button{border:1px solid #252327;border-radius:5px;background:#e9dfff;box-shadow:0 2px 0 #252327;color:#252327;flex:1;height:44px;font:600 14px 'DM Sans',sans-serif;max-width:40px}
.key-row button:hover{background:#f4f09b}.key-row:first-child button{background:#bce5d3}
#fada-help,#save-status{text-align:center;font-size:12px;line-height:1.6;color:#59515d}
.explanation{margin-top:35px}summary{cursor:pointer;font-weight:700;margin:20px 0}details{margin-bottom:25px}.explanation a,footer a{color:#6c45c2}
#retry,#share{border:2px solid #252327;border-radius:8px 2px;background:#e9dfff;padding:10px 16px;color:#252327}
@media(max-width:400px){:root{--letter-size:44px;--letter-gap:6px;--submit-width:70px;--submit-gap:8px}.tile,.letter-entry .letter-input{height:54px}}
@media(max-width:340px){:root{--letter-size:39px;--letter-gap:5px;--submit-width:62px;--submit-gap:6px}}

#ladder .row{gap:var(--letter-gap)}.keyrow:first-child .key{background:#bce5d3}

/* Align visible outlines as well as layout boxes. */
#ladder .tile,.letter-entry .letter-input{transform:none;border-radius:5px 12px 5px 12px}
#ladder .row{animation:none}
/* Gaeilge keeps Wordshift's layout, in its own green, lime and rose palette. */
:root{color:#182b25;background:#fff8e9}body{background-color:#fff8e9;background-image:radial-gradient(#182b2519 1px,transparent 1px)}
.brand{color:#182b25}.brand span,.brand i,.eyebrow,.route-line,.route>div:last-child strong{color:#1d493e}
h1 em,.progress span:last-child,#win{background:#d4ec8b}.game{border-color:#182b25;box-shadow:9px 9px 0 #9cc6ac}.game:before{content:'AS GAEILGE';background:#f2b8cb}
.tile,.letter-entry .letter-input{border-color:#182b25}.tile{box-shadow:3px 3px 0 #182b25}.tile.match{background:#c7dfcd;border-color:#182b25;color:#182b25}.tile.changed{box-shadow:3px 3px 0 #182b25,inset 0 -5px #f2b8cb}
.letter-entry .letter-input{box-shadow:3px 3px 0 #9cc6ac;caret-color:#1d493e}.letter-input:focus{background:#d4ec8b}
#form>button,.account-form button{background:#1d493e}.key{background:#dce9df;border-color:#182b25;color:#182b25}.key:hover{background:#d4ec8b}.keyrow:first-child .key{background:#f2b8cb}
header .header-tools button{background:#d4ec8b}header .header-tools button:last-child{background:#c7dfcd}
header .header-tools #history{background:#f2b8cb}dialog{box-shadow:8px 8px 0 #9cc6ac;border-color:#182b25}dialog a,.explanation a,footer a{color:#1d493e}
.account-actions button,.history-day button,#today-button,#history-more,#retry,#share{background:#dce9df;color:#182b25;border:1px solid #182b25;border-radius:5px;padding:10px 14px}
.dialog-close{float:right;border:0;background:none;color:#182b25;font-size:28px}.account-form label{font-size:14px;line-height:1.5}.account-form button{min-height:44px}.account-form .import-choice input{flex:none}
#sync-status{font-size:12px;text-align:center;color:#59515d;line-height:1.6}#archive-state{font-size:12px;letter-spacing:0;margin-top:10px}#today-button{font-size:12px;margin-top:10px}
@media(max-width:650px){.header-tools #account-button{flex:1.3;font-size:11px}.header-tools #history{font-size:11px}.header-tools #help{font-size:11px}}

footer{gap:16px;flex-wrap:wrap}footer .creator-credit{margin-top:0}
