:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;--bg: #1b1d22;--header: #17191d;--panel: #23262c;--panel-raised: #2a2e35;--panel-hover: #31353d;--border: #3a3f48;--border-light: #4a505a;--text: #f2f3f5;--muted: #9da3ad;--accent: #12b8df;--accent-hover: #28c5e8;--exact: #2d7d3b;--partial: #9b741d;--different: #a92d37}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--bg)}body{min-width:320px;min-height:100vh;margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,[tabindex]:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{cursor:not-allowed}.app-shell{display:flex;min-height:100vh;flex-direction:column}.site-header{display:flex;width:100%;min-height:64px;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1240px)/2));border-bottom:1px solid #2d3036;background:var(--header)}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}.brand-mark{display:grid;width:34px;height:34px;place-items:center;border:1px solid #4a515c;border-radius:5px;background:#24282f;color:var(--accent);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;font-weight:800}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:.95rem;line-height:1.15}.brand-copy small{margin-top:2px;color:#7f8792;font-size:.7rem}.header-actions{display:flex;align-items:center;gap:7px}.icon-button{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid transparent;border-radius:5px;background:transparent;color:#b8bdc5;cursor:pointer}.icon-button:hover{border-color:var(--border);background:#24272d;color:var(--text)}.icon-button svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button>span{margin-top:-2px;font-size:1.5rem}main{width:min(1240px,calc(100% - 48px));flex:1;margin:0 auto}.hero{display:flex;flex-direction:column;align-items:center;padding:44px 0 34px;text-align:center}.challenge-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--muted);font-size:.78rem}.challenge-meta span+span:before{margin-right:10px;content:"·";color:#626873}.hero h1{margin:0;font-size:clamp(1.8rem,4vw,2.6rem);font-weight:720;letter-spacing:-.035em}.hero>p{margin:9px 0 0;color:var(--muted);font-size:.92rem}.character-form{display:flex;width:min(720px,100%);gap:8px;margin-top:26px}.search-wrap{position:relative;flex:1;min-width:0}.search-icon{position:absolute;top:50%;left:14px;z-index:1;width:19px;fill:none;stroke:#8e959f;stroke-width:1.8;transform:translateY(-50%)}.selected-character-image{position:absolute;top:4px;left:8px;z-index:2;width:38px;height:38px;border-radius:4px;background:#1b1d22;object-fit:contain}.character-input{width:100%;height:46px;padding:0 42px 0 43px;border:1px solid var(--border-light);border-radius:6px;outline:0;background:#292c32;color:var(--text)}.character-input.has-selection{padding-left:55px}.character-input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.character-input::placeholder{color:#777e88}.clear-search{position:absolute;top:50%;right:9px;z-index:3;display:grid;width:28px;height:28px;padding:0;place-items:center;border:0;border-radius:4px;background:transparent;color:#aeb4bd;cursor:pointer;transform:translateY(-50%)}.clear-search:hover{background:#3a3e46;color:#fff}.clear-search svg{width:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.guess-button,.share-button,.fatal-state button{min-width:112px;border:0;border-radius:6px;background:var(--accent);color:#07181c;font-weight:700;cursor:pointer}.guess-button:hover:not(:disabled),.share-button:hover,.fatal-state button:hover{background:var(--accent-hover)}.guess-button:disabled{opacity:.38}.button-spinner{display:inline-block;width:17px;height:17px;border:2px solid rgba(7,24,28,.25);border-top-color:#07181c;border-radius:50%;animation:spin .7s linear infinite}.search-results{position:absolute;top:calc(100% + 6px);right:0;left:0;z-index:50;max-height:min(430px,58vh);overflow-x:hidden;overflow-y:auto;padding:5px;border:1px solid var(--border-light);border-radius:6px;background:#25282e;box-shadow:0 12px 28px #00000059;text-align:left}.search-option{display:flex;width:100%;min-height:58px;align-items:center;gap:11px;padding:5px 9px;border:0;border-radius:4px;background:transparent;cursor:pointer;text-align:left}.search-option:hover,.search-option.active{background:#363a42}.option-image{display:grid;width:42px;height:48px;flex:0 0 auto;place-items:center;overflow:hidden;border:1px solid #3b4048;border-radius:4px;background:#1c1e23}.option-image img{width:100%;height:100%;object-fit:contain}.option-copy{display:flex;min-width:0;flex-direction:column}.option-copy strong{overflow:hidden;font-size:.9rem;font-weight:620;text-overflow:ellipsis;white-space:nowrap}.option-copy small{overflow:hidden;margin-top:3px;color:var(--muted);font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.no-results{margin:0;padding:16px;color:var(--muted);text-align:center}.toast{position:fixed;top:76px;left:50%;z-index:100;display:flex;max-width:min(480px,calc(100% - 32px));align-items:center;gap:12px;padding:11px 12px 11px 15px;border:1px solid #87414a;border-radius:6px;background:#47262b;color:#ffe1e4;box-shadow:0 8px 22px #00000059;font-size:.85rem;transform:translate(-50%)}.toast button{border:0;background:transparent;font-size:1.3rem;cursor:pointer}.board-section{margin-bottom:28px;padding:18px;border:1px solid #343840;border-radius:8px;background:var(--panel)}.board-title-row{display:flex;align-items:center;justify-content:space-between}.board-title-row h2{margin:0;font-size:1rem;font-weight:650}.guess-count{color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums}.legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:13px;color:var(--muted);font-size:.72rem}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border-radius:2px}.legend-exact{background:var(--exact)}.legend-partial{background:var(--partial)}.legend-different{background:var(--different)}.legend-arrow{margin-left:auto}.empty-board{display:flex;min-height:130px;flex-direction:column;align-items:center;justify-content:center;margin-top:17px;border:1px dashed #414650;border-radius:6px;color:var(--muted);text-align:center}.empty-board strong{color:#c7cbd1;font-size:.9rem}.empty-board p{margin:6px 0 0;font-size:.8rem}.comparison-scroll{overflow-x:auto;margin-top:16px;padding-bottom:6px;scrollbar-color:#555b65 #282b31;scrollbar-width:thin}.comparison-grid{min-width:1180px}.comparison-header,.attempt-row{display:grid;grid-template-columns:170px repeat(9,minmax(0,1fr));gap:6px}.comparison-header{margin-bottom:6px}.comparison-header span{display:flex;min-height:34px;align-items:center;justify-content:center;padding:5px;border:1px solid #3d424a;border-radius:4px;background:#292c32;color:#bdc1c8;font-size:.68rem;font-weight:620;text-align:center}.column-icon,.cell-emoji{display:inline-block;margin-right:5px;font-weight:400;white-space:nowrap}.column-icon{font-size:.82rem}.attempt-row{margin-top:6px}.attempt-row.reveal-row>.character-cell,.attempt-row.reveal-row>.comparison-cell{opacity:0;animation:reveal-cell .5s ease-out forwards;animation-delay:var(--reveal-delay)}.character-cell,.comparison-cell{position:relative;min-height:96px;overflow:hidden;border:1px solid transparent;border-radius:4px}.character-cell{display:flex;align-items:center;padding:7px;border-color:#424750;background:#2c3037}.character-cell img{width:60px;height:80px;flex:0 0 auto;border-radius:3px;background:#1b1d22;object-fit:contain}.character-cell>span{display:flex;min-width:0;flex-direction:column;margin-left:9px}.character-cell strong{overflow:hidden;font-size:.78rem;line-height:1.2;text-overflow:ellipsis}.character-cell small{overflow:hidden;margin-top:5px;color:var(--muted);font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}.comparison-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 7px 9px;text-align:center}.status-exact{border-color:#3a8d47;background:var(--exact)}.status-partial{border-color:#ad852b;background:var(--partial)}.status-different{border-color:#bd3d47;background:var(--different)}.status-symbol{position:absolute;top:5px;right:7px;color:#ffffffa6;font-size:.65rem;font-weight:800}.cell-value{max-width:100%;overflow-wrap:anywhere;font-size:.72rem;font-weight:650;line-height:1.3}.cell-meta{margin-top:4px;color:#ffffffb3;font-size:.6rem}.direction{margin-top:5px;font-size:1.05rem;font-weight:800}.end-card{display:grid;grid-template-columns:150px 1fr auto;min-height:190px;gap:24px;align-items:center;margin-bottom:28px;padding:20px 24px;border:1px solid #3c424b;border-radius:8px;background:var(--panel)}.end-card.won{border-left:4px solid var(--exact)}.end-card.lost{border-left:4px solid var(--different)}.lost-answer-row{min-width:0;grid-column:1 / -1;padding-top:18px;border-top:1px solid var(--border)}.lost-answer-row .comparison-scroll{margin-top:8px}.answer-art{display:flex;height:150px;align-items:center;justify-content:center;border-radius:5px;background:#1b1d22}.answer-art img{max-width:100%;max-height:100%;object-fit:contain}.result-label{color:var(--muted);font-size:.76rem}.answer-copy h2{margin:5px 0 0;font-size:1.7rem}.answer-copy>p{margin:6px 0 0;color:var(--muted);font-size:.82rem}.end-actions{display:flex;align-items:center;gap:11px;margin-top:17px}.share-button{min-height:39px;padding:0 15px}.share-message{color:#79c885;font-size:.78rem}.next-timer{display:flex;min-width:158px;flex-direction:column;align-items:flex-end;padding-left:24px;border-left:1px solid var(--border)}.next-timer span,.next-timer small{color:var(--muted);font-size:.68rem}.next-timer strong{margin:5px 0 3px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.35rem;font-variant-numeric:tabular-nums}.loading-state,.fatal-state{display:flex;min-height:460px;flex-direction:column;align-items:center;justify-content:center;text-align:center}.loading-spinner{width:28px;height:28px;border:3px solid #3c4149;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}.loading-state strong{margin-top:14px;color:var(--muted);font-size:.84rem;font-weight:500}.fatal-state h1{margin:0;font-size:1.4rem}.fatal-state p{margin:9px 0 18px;color:var(--muted)}.fatal-state button{min-height:40px;padding:0 16px}footer{display:flex;width:min(1240px,calc(100% - 48px));justify-content:flex-end;margin:0 auto;padding:20px 0 calc(20px + env(safe-area-inset-bottom));border-top:1px solid #30333a;color:#737a84;font-size:.7rem}.modal-dialog{position:fixed;z-index:200;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;overflow-y:auto;padding:24px;border:0;background:#0c0d10b8;color:var(--text)}.modal-dialog[open]{display:grid;place-items:center}.modal-dialog::backdrop{background:#0c0d1080}.modal-panel{width:min(500px,100%);padding:22px;border:1px solid var(--border-light);border-radius:8px;background:var(--panel);box-shadow:0 16px 42px #00000073}.modal-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid var(--border)}.modal-heading h2{margin:0;font-size:1.1rem}.help-content>p{color:#c4c8ce;font-size:.87rem;line-height:1.55}.help-example{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:17px 0}.help-tile{display:flex;min-height:65px;flex-direction:column;align-items:center;justify-content:center;border:1px solid;border-radius:5px;font-weight:800}.help-tile small{margin-top:5px;font-size:.65rem;font-weight:550}.rules-list{margin:0;padding:0;list-style:none}.rules-list li{margin-top:7px;padding:8px 10px;border-left:2px solid #555b65;background:#292c32;color:var(--muted);font-size:.8rem;line-height:1.45}.rules-list strong{color:var(--text)}.fine-print{margin:17px 0 0;color:#7e858f!important;font-size:.72rem!important}.stats-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:18px}.stats-summary>span{display:flex;min-width:0;flex-direction:column;align-items:center;padding:11px 4px;border:1px solid var(--border);border-radius:5px;background:#292c32}.stats-summary strong{font-size:1.25rem}.stats-summary small{margin-top:4px;color:var(--muted);font-size:.58rem;text-align:center}.distribution-title{margin:21px 0 11px;font-size:.82rem}.distribution{display:flex;flex-direction:column;gap:5px}.distribution-row{display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:center;font-size:.65rem}.distribution-row>div{height:19px}.distribution-row i{display:flex;min-width:25px;height:100%;align-items:center;justify-content:flex-end;padding-right:6px;border-radius:2px;background:#347f91;font-style:normal;font-weight:700}@keyframes spin{to{transform:rotate(360deg)}}@keyframes reveal-cell{0%{opacity:0;transform:translate(-7px) scale(.98)}to{opacity:1;transform:translate(0) scale(1)}}@media(max-width:760px){.site-header{padding-right:16px;padding-left:16px}main,footer{width:min(100% - 28px,1240px)}.hero{padding:34px 0 28px}.hero>p{max-width:320px;line-height:1.45}.board-section{padding:14px}.end-card{grid-template-columns:125px 1fr}.next-timer{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:center;padding:13px 0 0;border-top:1px solid var(--border);border-left:0}.next-timer strong{margin:0 9px;font-size:1.1rem}}@media(max-width:520px){.brand-copy small{display:none}.character-form{gap:6px}.guess-button{min-width:82px}.search-results{right:-88px}.board-section{margin-right:-14px;margin-left:-14px;border-right:0;border-left:0;border-radius:0}.legend{gap:8px 12px}.legend-arrow{width:100%;margin-left:0}.end-card{grid-template-columns:1fr;gap:14px;padding:18px;text-align:center}.answer-art{height:180px}.end-actions{justify-content:center}.next-timer{grid-column:auto}footer{flex-direction:column;gap:7px;text-align:center}.modal-dialog{padding:12px}.modal-panel{padding:17px}.stats-summary{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
