.crossword-cafe{--ink:#24394e;--cream:#fff6df;--gold:#e7ad45;background:#eff3f2;border:1px solid #bbc9c6;border-radius:20px;padding:22px;color:var(--ink);overflow:hidden;font-family:system-ui,sans-serif}.crossword-cafe *{box-sizing:border-box}.crossword-head{display:block!important;text-align:left}.crossword-head h4{font:700 clamp(1.8rem,4vw,2.6rem) Georgia,serif!important;margin:.2em 0}.crossword-kicker{font-size:.72rem;letter-spacing:.16em;font-weight:800;color:#38746a}.crossword-head p{max-width:75ch}.crossword-bar,.crossword-tabs,.crossword-tools,.crossword-characters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.crossword-bar strong{background:var(--gold);border-radius:10px;padding:10px 14px}.crossword-bar span{font-variant-numeric:tabular-nums}.crossword-bar button{margin-left:auto}.crossword-cafe button{cursor:pointer;border:1px solid #55736e;border-radius:8px;padding:10px 13px;color:var(--ink);background:#fff9e9;font-weight:650;min-height:42px}.crossword-cafe button:hover{background:#f6e5bd}.crossword-cafe button:focus-visible,.crossword-cafe input:focus-visible{outline:3px solid #bc5d1b;outline-offset:2px}.crossword-tabs button[aria-pressed=true]{background:#245c55;color:white}.crossword-scene{display:grid;grid-template-columns:minmax(135px,190px) minmax(0,1fr);gap:20px;background:linear-gradient(#46658a 0 72%,#304d65 72%);padding:24px 16px;border-radius:16px;align-items:end}.crossword-host{color:white;text-align:center;min-width:0}.crossword-host svg{width:100%;max-width:180px;display:block;margin:auto;overflow:visible}.crossword-speech{background:var(--cream);color:var(--ink);border-radius:16px;padding:13px;font-size:.9rem;line-height:1.5;border:2px solid #e7ad45}.crossword-music-note{font-size:.7rem;line-height:1.45;color:#edf3fc}.crossword-shop{min-width:0;background:var(--gold);border:3px solid #263c50;border-radius:14px 14px 5px 5px;box-shadow:0 14px 0 #23374955}.crossword-awning{height:37px;background:repeating-linear-gradient(90deg,#fdf3d5 0 34px,#2d615b 34px 68px);border-radius:10px 10px 15px 15px;border-bottom:4px solid #263c50}.crossword-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,220px);align-items:start}.crossword-scroll{overflow:auto;background:#25394a;padding:12px;max-height:760px}.crossword-grid{display:grid;grid-template-columns:repeat(var(--crossword-cols),28px);width:max-content;margin-inline:auto;gap:1px;background:#25394a}.crossword-cell,.crossword-block{aspect-ratio:1;position:relative;min-width:25px;min-height:25px}.crossword-cell{background:var(--cream)}.crossword-cell input{width:100%;height:100%;min-width:0;border:0;background:transparent;text-align:center;padding:5px 0 0;font:700 17px system-ui;color:#25394a;border-radius:0;caret-color:#1a5c52}.crossword-number{position:absolute;left:2px;top:0;font:600 8px system-ui;pointer-events:none}.crossword-cell.active{background:#c7dff2}.crossword-cell.solved{background:#b7e9a6}.crossword-cell.incorrect{background:#ffd2cf}.crossword-clues{padding:14px 12px;min-width:0}.crossword-clues h5{font:700 1.25rem Georgia,serif;margin:0}.crossword-current{font-size:.84rem;background:#fff1bb;border-radius:8px;padding:9px;line-height:1.45}.crossword-clue-lists{max-height:650px;overflow:auto}.crossword-clues h6{font-size:.76rem;letter-spacing:.1em;margin:16px 0 8px}.crossword-clues button{display:block;width:100%;min-height:36px;text-align:left;background:transparent;border:0;border-radius:5px;padding:7px 8px;font-size:.86rem;font-weight:500;line-height:1.4}.crossword-clues button.chosen{background:#c7dff2}.crossword-clues button.complete:before{content:'✓ ';color:#185c34}.crossword-clues button.complete{text-decoration:line-through}.crossword-characters button{min-width:42px;font-size:1.15rem}.crossword-status{min-height:3em;padding:12px 14px;border-left:4px solid #337b6a;background:#fff7df;line-height:1.5}.crossword-wordbank{background:#fff8e6;border-radius:10px;padding:14px}.crossword-wordbank ul{columns:2;line-height:1.8}.cafe-character{animation:cafe-bob 3s ease-in-out infinite;transform-origin:100px 210px}.cafe-eyes{animation:cafe-blink 5s infinite;transform-origin:100px 88px}.cheering .cafe-character{animation:cafe-cheer .7s ease-in-out 3}.all-solved .crossword-awning{box-shadow:0 0 22px #fff6a9}.all-solved .crossword-speech{background:#d3f1ba}@keyframes cafe-bob{50%{transform:translateY(-5px) rotate(-2deg)}}@keyframes cafe-blink{0%,45%,49%,100%{transform:scaleY(1)}47%{transform:scaleY(.1)}}@keyframes cafe-cheer{50%{transform:translateY(-15px) rotate(6deg)}}@media(max-width:1000px){.crossword-scene{grid-template-columns:1fr}.crossword-host{display:flex;align-items:center;gap:10px;text-align:left}.crossword-host svg{width:95px;margin:0}.crossword-speech{flex:1}.crossword-music-note{max-width:120px}.crossword-work{grid-template-columns:minmax(0,1fr) 180px}}@media(max-width:650px){.crossword-cafe{padding:12px}.crossword-scene{padding:12px 8px}.crossword-work{grid-template-columns:1fr}.crossword-clue-lists{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:300px}.crossword-music-note{display:none}.crossword-bar button{margin-left:0}.crossword-wordbank ul{columns:1}}@media(prefers-reduced-motion:reduce){.cafe-character,.cafe-eyes,.cheering .cafe-character{animation:none!important}}@media print{.crossword-host,.crossword-bar button,.crossword-tools,.crossword-tabs{display:none}.crossword-scene{background:white;display:block}}
