@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@400;500;600&display=swap');
:root{--cream:#f6f3e9;--green:#174c40;--ink:#243d34;--muted:#6e786a;--line:#dddccf;--yellow:#e9bd55}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d49425;outline-offset:4px}button:disabled{opacity:.45;cursor:default}header{max-width:1320px;margin:auto;padding:25px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-family:Fraunces,Georgia,serif;font-size:24px;color:var(--green);text-decoration:none;display:flex;gap:12px;align-items:center}.quiet{border:0;background:transparent;color:var(--green);padding:10px}.quiet span{margin-left:20px}main{max-width:1200px;min-height:76vh;margin:auto;padding:45px 28px}h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:500;margin:0}h1{font-size:clamp(48px,6vw,79px);line-height:1.07;letter-spacing:-3px}h2{font-size:36px}h3{font-size:25px}p{line-height:1.6}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:65px;align-items:center}.hero h1 em{font-weight:400;color:#9c6739}.intro{font-size:17px;color:var(--muted);max-width:410px;margin:25px 0}.pill{display:inline-block;border:1px solid #ccd4c6;border-radius:30px;padding:8px 13px;font-size:11px;letter-spacing:1px;margin-bottom:24px}.setup{background:#fffdf6;border:1px solid var(--line);border-radius:16px;padding:24px;margin-top:28px;max-width:450px}.fields{display:flex;gap:14px}label{display:block;flex:1;font-size:12px;font-weight:600}input,select{width:100%;margin:8px 0 16px;border:1px solid #d6dacd;border-radius:7px;padding:12px;background:#fffef9;color:var(--ink)}.primary{border:0;border-radius:8px;background:var(--green);color:white;padding:15px 22px;font-weight:600}.secondary{border:1px solid #c7cebf;border-radius:8px;background:#fffdf5;color:var(--green);padding:13px 20px}.wide{width:100%}.small{font-size:12px;color:var(--muted)}.table{background:var(--green);border-radius:120px 120px 24px 24px;padding:65px 30px 40px;min-height:510px;display:flex;flex-direction:column;justify-content:center;position:relative;box-shadow:inset 0 0 0 12px #ffffff06}.table:before{content:'✳';position:absolute;top:23px;right:42px;font-size:52px;color:#e6bd66}.sample{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:12px 0}.tile{display:inline-flex;position:relative;align-items:center;justify-content:center;min-height:62px;min-width:95px;padding:16px 22px;background:#fffae9;border:1px solid #d4c7a7;border-bottom:5px solid #d9cba8;border-radius:9px;color:#34483d;font-family:Fraunces,Georgia,serif;font-size:23px;box-shadow:0 3px 4px #172d2310}.tile:after{content:'';position:absolute;width:14px;height:2px;bottom:7px;background:#c9bfa6;border-radius:1px}.sample .tile:nth-child(2n){transform:rotate(5deg)}.sample .tile:nth-child(odd){transform:rotate(-5deg)}.table .caption{text-align:center;color:#cbdacf;font-size:13px;margin-top:32px}.yellow{background:#f1d382}.steps{display:flex;gap:32px;margin-top:40px;border-top:1px solid var(--line);padding-top:23px}.steps b{font-family:Fraunces;font-size:19px}.steps p{font-size:13px;color:var(--muted);margin:8px 0}.steps>div{flex:1}footer{max-width:1240px;margin:auto;display:flex;justify-content:space-between;padding:25px 28px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.scores{display:flex;gap:12px;flex-wrap:wrap}.score{border:1px solid var(--line);border-radius:8px;padding:12px 18px;font-size:13px}.score.active{background:var(--green);color:white}.board{border:1px solid var(--line);background:#fffdf7;border-radius:16px;min-height:230px;padding:28px;margin-bottom:24px}.story{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.story .tile{font-size:20px;min-width:60px;min-height:52px;padding:12px 18px}.story .pending{background:#f1d382;border-style:dashed}.empty{font-family:Fraunces;font-size:27px;color:#9b9f90;margin:35px 0}.rack{padding:26px;background:#e9ecdf;border-radius:16px}.rack-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.hand{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.hand button:hover{transform:translateY(-4px)}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{background:#f0dca5;padding:20px;border-radius:10px}.handoff{text-align:center;padding:40px 20px}.handoff .symbol{font-size:45px;color:var(--green)}.handoff p{color:var(--muted)}.punct{width:auto;margin:0;padding:9px}.result{text-align:center;padding:25px}.result h2{font-size:44px}dialog{border:1px solid var(--line);border-radius:16px;padding:35px;max-width:580px;width:90%;background:var(--cream);color:var(--ink)}dialog::backdrop{background:#153c32aa}dialog li{line-height:1.6;margin:12px 0}.close{float:right;border:0;background:none;font-size:30px;color:var(--green)}@media(max-width:750px){header{padding:18px 20px}.brand{font-size:20px}main{padding:25px 18px}.hero{grid-template-columns:1fr;gap:30px}.hero h1{max-width:450px}.table{min-height:350px;border-radius:70px 70px 20px 20px;padding:45px 18px 24px}.setup{max-width:none}.steps{gap:16px}.steps b{font-size:17px}footer{gap:15px;flex-direction:column}.game-top{align-items:flex-start;flex-direction:column}.rack{padding:18px}.tile{min-width:75px;font-size:20px;padding:14px}.fields{gap:10px}.board{padding:20px}.rack-head{flex-wrap:wrap}}
/* Second edition: warm paper, soft grain and worn wooden tiles. */
:root{--cream:#f2ead8;--green:#385642;--ink:#3c4635;--muted:#746e5b;--line:#d8cab0}body{background-color:var(--cream);background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238b7047' opacity='.09' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");}header{border-bottom-style:dashed}.hero h1 em{color:#a56643}.setup,.board,dialog{background-color:#faf3e3;background-image:repeating-linear-gradient(2deg,transparent 0,transparent 5px,#8e754106 6px,transparent 7px);border-radius:19px 24px 17px 22px;box-shadow:0 8px 24px #6d573209}.table{background-color:#385642;background-image:repeating-linear-gradient(98deg,transparent 0,transparent 3px,#c3d5a007 4px,transparent 5px);border-radius:120px 115px 35px 28px;box-shadow:inset 0 0 0 9px #e6d3ac12,0 15px 28px #4d40241a}.tile{background-color:#f8edcf;background-image:linear-gradient(110deg,#ffffff45,transparent 45%,#b59b5e12),repeating-linear-gradient(1deg,transparent 0,transparent 9px,#93764007 10px,transparent 11px);border-color:#d5bf92;border-bottom-color:#cdb383;border-radius:8px 11px 9px 7px;box-shadow:1px 3px 5px #453a2418}.yellow{background-color:#eed08b}.rack{background:#dfe3ce;border:1px solid #c8cfb3;border-radius:23px 18px 25px 17px}.story-word.chosen{outline:2px solid #9c7344;outline-offset:2px}.punctuation{border-top:1px dashed #d3c5a6;padding-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.punctuation>span:last-child{flex-basis:100%}.punct-buttons{display:flex;flex-wrap:wrap;gap:7px}.punct-button{min-width:40px;min-height:40px;padding:5px 12px;border:1px solid #cabb9e;border-radius:6px;background:#f0e4c8;color:var(--ink);font-family:Georgia,serif;font-size:22px}.punct-button:last-child{font:12px 'DM Sans',sans-serif}.verb-tile{flex-direction:column;gap:7px;padding:10px 13px 17px}.verb-caption{font:8px 'DM Sans',sans-serif;letter-spacing:1.3px;color:#83724e}.verb-tile>div{display:flex;align-items:center;gap:4px}.verb-tile button{font:inherit;color:var(--green);border:0;border-radius:5px;padding:6px;background:#ffffff55}.verb-tile button:hover{background:#e6d7b0;transform:none}.verb-divider{font-size:16px;color:#a28d65}.hand{align-items:stretch}.hand>.tile{min-height:85px}.primary{background-image:linear-gradient(105deg,#ffffff09,transparent)}@media(max-width:750px){.table{border-radius:70px 75px 22px 28px}.punctuation{gap:10px}.punct-buttons{width:100%}.verb-tile{max-width:100%}}
.helper-tray{background:#f6efdce8;border:1px dashed #bdae8d;border-radius:13px;padding:16px;margin-top:18px}.helper-tray p{margin:0 0 8px}.helper-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:10px 0}.helper-row strong{font-size:12px;min-width:95px}.helper-buttons{display:flex;gap:7px;align-items:center}.helper{padding:8px 16px;min-width:48px;font-family:Fraunces,Georgia,serif;font-size:20px}.helper-selection{font-family:Fraunces,Georgia,serif;color:#795736}.story .free-word{background:#e2e8cc;min-width:40px;border-bottom-width:2px;font-size:18px}.finished-story{white-space:normal;text-align:left;font-family:Fraunces,Georgia,serif;font-size:25px;line-height:1.65;background:#fcf6e7;border:1px solid #d5c8a7;padding:26px;border-radius:14px;margin:25px auto;max-width:850px;overflow-wrap:anywhere}.give-in{color:#8a4f35}@media(max-width:600px){.helper-row{gap:7px}.helper-row strong{width:100%}.finished-story{font-size:21px;padding:20px}}
/* Storybook edition: mid-century illustrated paper and ink. */
:root{--green:#294b59;--ink:#293f48;--muted:#655f52;--cream:#f3e8ce;--line:#cbbd9e}header{padding:14px 30px;border-bottom:2px solid #294b59}.brand{letter-spacing:-.5px}.brand:before{content:'✦';color:#a65037}.brand{font-size:23px}main{padding:22px 28px;min-height:76vh}.hero{gap:48px}.hero h1{font-family:Georgia,serif;font-size:clamp(48px,6vw,76px);letter-spacing:-2px}.hero h1 em{color:#a65037}.pill{border-color:#ae9670;border-radius:2px;font-size:10px}.table{background:#294b59 url('castle.svg') center top/100% auto no-repeat;min-height:560px;justify-content:flex-end;padding:300px 20px 20px;border-radius:100px 100px 4px 4px;border:6px double #e1bf7c;box-shadow:8px 8px 0 #d7c49f}.table:before{display:none}.sample{gap:8px;margin:7px 0}.sample .tile{font-size:19px;min-height:45px;padding:8px 12px;min-width:55px}.table .caption{margin:12px 0 0;color:#fff2cf}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.setup{margin-top:16px;padding:18px;border-radius:3px;box-shadow:4px 4px 0 #d9c8a6}.setup input,.setup select{padding:9px;margin:6px 0 12px}.primary,.secondary{border-radius:4px;padding:11px 17px}.primary{background-color:#294b59}.secondary{color:#294b59}.game-top{margin-bottom:12px}.game-top h2{font-size:30px}.eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:1.6px}.scores{gap:6px;justify-content:flex-end}.score{padding:8px 11px;font-size:12px;border-radius:3px}.board{border:4px double #b9a580;border-radius:3px;padding:16px 20px;min-height:160px;margin-bottom:12px;position:relative;box-shadow:5px 5px 0 #dbccaa}.story{margin:12px 0;gap:7px;max-height:23vh;overflow-y:auto;padding:4px}.story .tile{font-size:18px;min-height:40px;padding:7px 12px;border-bottom-width:3px}.story .tile:after{display:none}.empty{margin:20px 0;font-size:23px}.punctuation{padding-top:10px;gap:8px}.punctuation>span:last-child{display:none}.helper-inline{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-right:12px;margin-right:4px;border-right:1px solid #cbbb98}.punct-button{min-height:34px;min-width:34px;font-size:19px;padding:4px 9px}.punct-button.helper{font-size:18px}.helper.selected{background:#294b59;color:#fff4dc;outline:2px solid #bd783e;outline-offset:1px}.rack{padding:16px 20px;border-radius:3px;background:#e5e2ca}.rack h3{font-size:23px}.rack .small{margin:6px 0}.hand{margin:12px 0;gap:8px}.hand>.tile{min-height:58px;font-size:20px;padding:10px 14px}.hand>.verb-tile{padding:6px 10px 10px;gap:3px}.verb-tile button{padding:3px}.handoff{padding:14px 10px}.handoff h2{font-size:28px}.handoff p{margin:10px 0}.result{padding:12px}.result h2{font-size:36px}.finished-story{font-family:Georgia,serif;border-radius:2px;border:4px double #c5ae83;background:#fbf2dc}.finished-story:first-letter{font-size:1.6em;color:#a65037}footer{padding:15px 28px;gap:14px;flex-wrap:wrap}footer a{color:#294b59}dialog{border-radius:4px;border:5px double #b59c75}textarea{width:100%;padding:12px;margin:10px 0 16px;font:17px/1.6 Georgia,serif;background:#fff9e9;border:1px solid #bdaa85;color:#293f48}.actions a{text-decoration:none;font-size:14px}.steps{margin-top:25px}.result .actions{margin-top:15px}@media(min-width:950px){.board .punctuation{flex-wrap:nowrap}.helper-inline{flex-shrink:0}.game-top{min-height:45px}}@media(max-width:750px){main{padding:18px 14px}.hero{gap:25px}.table{min-height:530px;max-width:500px;width:100%;margin:auto}.game-top{gap:10px}.scores{justify-content:flex-start}.board,.rack{padding:13px}.story{max-height:28vh}.helper-inline{border-right:0;width:100%}.punct-buttons{width:auto}.hand>.tile{font-size:18px;min-width:60px}.steps{flex-direction:column;gap:10px}.steps p{margin:3px 0}.result h2{font-size:29px}}
