*,*:before,*:after{box-sizing:border-box}:root{--bg: #fff8ef;--card: #ffffff;--ink: #2b2340;--accent: #ff6b4a;--muted: #6b6480;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}body{margin:0;min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:16px;box-sizing:border-box}.card{background:var(--card);border-radius:20px;padding:32px;max-width:420px;width:100%;text-align:center;box-shadow:0 8px 30px #2b23401f}h1{margin:0;font-size:2.2rem;color:var(--accent)}.tagline{color:var(--muted);margin-top:4px}.welcome{font-size:1.3rem;font-weight:600}button{font:inherit;font-weight:600;border:0;border-radius:999px;padding:12px 24px;background:var(--accent);color:#fff;cursor:pointer}button.secondary{background:#eee9f5;color:var(--ink)}.error{color:#c0392b}button:disabled{opacity:.45;cursor:not-allowed}button.small{padding:8px 16px;font-size:.9rem}button.link{background:none;color:var(--muted);padding:8px;font-weight:500;text-decoration:underline;display:block;margin:12px auto 0}h2{font-size:1.1rem;margin:24px 0 8px}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);margin:20px 0;font-size:.9rem}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#e6e1ee}.join{display:flex;gap:8px;justify-content:center}.join input{font:inherit;font-size:1.3rem;letter-spacing:.3em;text-transform:uppercase;text-align:center;width:7.5em;padding:10px;border:2px solid #e6e1ee;border-radius:12px}.join input:focus{outline:none;border-color:var(--accent)}.label{color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;margin:16px 0 4px}.code{font-size:3rem;font-weight:800;letter-spacing:.25em;margin:0 0 12px;color:var(--ink)}.players{list-style:none;padding:0;margin:0;text-align:left}.players li{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid #f1edf6}.players li:last-child{border-bottom:0}.players .name{flex:1}.players button.link{margin:0;padding:0;display:inline}.dot{width:18px;height:18px;border-radius:50%;flex:none}.colors{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:20px}.swatch{width:36px;height:36px;padding:0;border-radius:50%;border:3px solid transparent}.swatch.chosen{border-color:var(--ink);transform:scale(1.1)}.hint{color:var(--muted);font-size:.9rem}.card:has(.game){max-width:760px;padding:20px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 12px}.turn-count{color:var(--muted);font-size:.9rem}.artist{display:flex;align-items:center;gap:8px;font-weight:600}.canvas-wrap{width:100%}.board{width:100%;aspect-ratio:4 / 3;display:block;background:#fff;border:2px solid #e6e1ee;border-radius:14px;touch-action:none}.board.drawing{cursor:crosshair;border-color:var(--accent)}.tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:10px}.pens,.sizes{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.tools .swatch{width:30px;height:30px}.swatch.eraser{background:#f3f0f7;font-size:15px;line-height:1}.size{width:36px;height:36px;padding:0;border-radius:10px;background:#f3f0f7;display:grid;place-items:center}.size span{display:block;border-radius:50%;background:var(--ink)}.size.chosen{outline:3px solid var(--ink)}.timer{font-weight:700;font-variant-numeric:tabular-nums}.timer.low{color:#c0392b}.waiting{font-size:1.2rem;padding:40px 0}.choose .cards{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:12px 0}.word-card{display:flex;flex-direction:column;gap:6px;min-width:150px;padding:18px 16px;border-radius:16px;color:var(--ink)}.word-card.easy{background:#e5f4e4}.word-card.medium{background:#f9eeda}.word-card.hard{background:#fbebeb}.word-card .level{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.word-card .word{font-size:1.3rem}.word-line{min-height:44px;display:flex;justify-content:center;align-items:center;font-size:1.2rem;margin-bottom:8px}.secret{color:var(--accent)}.pattern{display:inline-flex;gap:6px;flex-wrap:wrap;justify-content:center}.pattern .slot{width:22px;border-bottom:3px solid var(--ink);text-align:center;font-weight:700;text-transform:uppercase;height:30px}.pattern .gap{width:12px}.golden{color:#b8860b;font-weight:700;margin:0 0 8px}.play-area{display:grid;grid-template-columns:1fr 200px;gap:14px;align-items:start}@media(max-width:640px){.play-area{grid-template-columns:1fr}}.scores,.results{list-style:none;padding:0;margin:0;text-align:left}.scores li,.results li{display:flex;align-items:center;gap:8px;padding:6px 2px;border-bottom:1px solid #f1edf6}.scores .name,.results .name{flex:1}.results li{font-size:1.15rem;padding:10px 4px}.results .medal{width:28px}.feed{list-style:none;padding:0;margin:10px 0 0;text-align:left;font-size:.9rem;color:var(--muted);max-height:220px;overflow:auto}.feed li{padding:3px 0}.feed li.correct{color:#2e7d32}.guess{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;justify-content:center}.guess input{font:inherit;flex:1;min-width:0;max-width:420px;padding:12px 14px;border:2px solid #e6e1ee;border-radius:12px}.guess input:focus{outline:none;border-color:var(--accent)}.guess .close{width:100%;margin:4px 0 0;color:#e67e22;font-weight:700}.got-it{color:#2e7d32;font-weight:700;font-size:1.1rem;margin-top:12px}.reveal b{color:var(--accent)}.reactions{display:flex;gap:10px;justify-content:center;margin-top:12px}.react{background:#f3f0f7;color:var(--ink);font-size:1.4rem;padding:6px 14px;display:flex;align-items:center;gap:6px}.react span{font-size:.9rem;font-weight:700}.react.chosen{outline:3px solid var(--accent)}.results li.winner{background:#fff6dc;border-radius:10px}.awards{list-style:none;padding:0;margin:0 0 16px;text-align:left;display:grid;gap:8px}.awards li{display:flex;gap:12px;align-items:center;background:#f7f4fb;border-radius:12px;padding:10px 12px}.award-icon{font-size:1.6rem}.awards small{color:var(--muted)}.board-btn{margin-top:20px}.card:has(.board-page){max-width:640px}.champion{font-size:1.1rem;background:#fff6dc;border-radius:12px;padding:10px}.tabs{display:flex;gap:8px;justify-content:center;margin:12px 0}.tabs button{background:#f3f0f7;color:var(--ink);padding:8px 16px}.tabs button.on{background:var(--ink);color:#fff}.standings{width:100%;border-collapse:collapse;text-align:left;font-size:.95rem}.standings th{color:var(--muted);font-weight:500;font-size:.8rem;padding:6px 4px;border-bottom:1px solid #e6e1ee}.standings td{padding:8px 4px;border-bottom:1px solid #f1edf6}.standings .who{display:flex;align-items:center;gap:8px}.standings .medals{color:var(--muted);white-space:nowrap}.standings tr.clickable{cursor:pointer}.standings tr.h2h td{background:#f7f4fb;text-align:center}.small-print{font-size:.8rem}.recent{list-style:none;padding:0;margin:0 0 16px;text-align:left;display:grid;gap:10px}.recent li{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #f1edf6;padding-bottom:10px}.recent small{color:var(--muted)}.thumb{width:120px;flex:none}.thumb .board{border-width:1px;border-radius:8px}html{-webkit-text-size-adjust:100%}body{-webkit-tap-highlight-color:transparent}input{font-size:16px}button{min-height:44px;touch-action:manipulation}.swatch,.size,.react{min-height:0}.timebar{height:6px;background:#f1edf6;border-radius:3px;overflow:hidden;margin:-4px 0 10px}.timebar span{display:block;height:100%;background:var(--accent);transition:width .25s linear}.main-col{min-width:0}.players li{min-height:44px}@media(max-width:640px){body{padding:8px;place-items:start center}.card{padding:20px 14px;border-radius:16px}h1{font-size:1.8rem}.card:has(.game){padding:10px 10px 14px}.card:has(.game)>h1,.card:has(.game)>.tagline{display:none}.game-top{margin:2px 0 8px;font-size:.95rem}.turn-count{font-size:.8rem}.word-line{min-height:36px;margin-bottom:6px}.pattern .slot{width:18px;height:26px}.tools{flex-direction:column;align-items:stretch;gap:8px}.pens{flex-wrap:nowrap;overflow-x:auto;justify-content:space-between;padding:4px 2px}.tools .swatch{width:32px;height:32px;flex:none}.sizes{justify-content:space-between}.guess{flex-wrap:nowrap;margin-top:10px}.guess input{padding:12px}.guess .close{position:absolute}.guess{position:relative}.guess .close{top:-28px;left:0;right:0;background:#fff3e0;border-radius:8px;padding:2px}aside .scores{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}aside .scores li{border:0;background:#f7f4fb;border-radius:999px;padding:4px 10px;gap:6px;font-size:.9rem}aside .scores .dot{width:12px;height:12px}.feed{max-height:110px;margin-top:8px}.choose .cards{flex-direction:column;align-items:stretch}.word-card{min-width:0;flex-direction:row;justify-content:space-between;align-items:center;padding:16px}.word-card .word{font-size:1.2rem}.code{font-size:2.6rem}.standings{font-size:.85rem}.standings .medals{font-size:.75rem}.thumb{width:90px}}@media(max-width:640px){.sizes{gap:6px;flex-wrap:nowrap}.sizes .size{width:40px;height:40px;flex:none}.sizes button.small{padding:0 12px;flex:1}}.home-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:20px}.card:has(.gallery-page){max-width:760px}.chips{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px}.chips button{flex:none;background:#f3f0f7;color:var(--ink);padding:6px 14px;min-height:36px;font-weight:500}.chips button.on{background:var(--ink);color:#fff}.gallery{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.tile{width:100%;padding:6px;background:#f7f4fb;color:var(--ink);border-radius:14px;display:flex;flex-direction:column;gap:4px;text-align:left;font-weight:500}.tile .board{border-width:1px;border-radius:10px}.tile-word{font-weight:700;text-transform:capitalize;padding:0 4px}.tile-by{color:var(--muted);font-size:.85rem;padding:0 4px 4px}.big-drawing{margin-bottom:10px}.big-caption{font-size:1.2rem;margin:6px 0}@media(max-width:640px){.gallery{grid-template-columns:1fr 1fr;gap:8px}.home-links button{flex:1}}@media(max-width:640px){.pens{gap:4px}.tools .swatch{width:29px;height:29px}.sizes .size{width:38px;height:38px}.sizes button.small{padding:0 8px;font-size:.85rem;min-width:0}.tools,.pens,.sizes{min-width:0;max-width:100%}}.add-person{display:grid;gap:8px;margin:12px 0}.add-person input{font:inherit;font-size:16px;padding:12px;border:2px solid #e6e1ee;border-radius:12px}.add-person input:focus{outline:none;border-color:var(--accent)}.people{list-style:none;padding:0;margin:8px 0;text-align:left}.people li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px;border-bottom:1px solid #f1edf6}.people small{color:var(--muted);word-break:break-all}.people button.link{margin:0;flex:none}button.link.danger{color:#c0392b;font-weight:700}.waiting-box{padding:36px 0;display:flex;flex-direction:column;align-items:center;gap:4px}.waiting-text{font-size:1.15rem;font-weight:600;margin:12px 0 0}.waiting-line{color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px}.spinner{width:44px;height:44px;border-radius:50%;border:5px solid #f1edf6;border-top-color:var(--accent);animation:spin .8s linear infinite;display:inline-block;flex:none}.spinner.small{width:18px;height:18px;border-width:3px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2s}}.big-error{background:#fbebeb;border-radius:12px;padding:12px;font-weight:600}.next-up{margin-top:10px}.next-up .timebar{margin:0 0 4px}.next-up .hint{margin:0}.version{color:#b9b2c7;font-size:.7rem;margin:16px 0 0}html,body{overscroll-behavior:none}.stuck{background:#fff6dc;border-radius:14px;padding:12px;margin-bottom:10px}.stuck p{margin:0 0 8px}.stuck .hint{margin:6px 0 0}
