:root{--paper:#f5f3ee;--card:#fffefa;--ink:#26253a;--muted:#73717e;--line:#dfdcd4;--violet:#6752ba;--violet-dark:#4e3a98;--lavender:#ede9fa;--green:#28795f;--green-bg:#dceee5;--yellow:#9b711a;--yellow-bg:#f9edc9;--gray:#736f78;--gray-bg:#e5e3e7;--shadow:0 7px 24px #29243108}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9686d8;outline-offset:3px}button{color:inherit}a{color:inherit;text-decoration:none}.masthead{max-width:1240px;margin:auto;padding:26px 38px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px}.brand{font-size:28px;font-weight:800;letter-spacing:.13em;display:flex;align-items:center;gap:11px}.lab{font-size:9px;color:var(--muted);letter-spacing:.2em;font-weight:600;border-left:1px solid #c8c3d1;padding-left:13px;max-width:60px;line-height:1.5}.orbit-mark{width:31px;height:31px;display:inline-block;border:2px solid var(--violet);border-radius:50%;position:relative;transform:rotate(-32deg)}.orbit-mark:after{content:"";position:absolute;width:38px;height:12px;border:1.5px solid var(--violet);border-radius:50%;left:-6px;top:7px}.orbit-mark i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--violet);right:-4px;top:5px}.header-actions{display:flex;gap:20px;align-items:center}.save-status{font-size:11px;color:var(--muted)}.save-status:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#6d9578;margin-right:6px}.text-button{background:none;border:0;font-size:12px;font-weight:600;padding:9px 0;color:var(--muted)}.text-button:hover{color:var(--violet)}.circle-button{background:transparent;border:1px solid #ccc6d4;border-radius:50%;width:30px;height:30px;font-weight:600;display:grid;place-items:center}main{max-width:1140px;margin:auto;padding:24px 26px 20px}.puzzle-nav{display:flex;justify-content:center;gap:9px;margin:1px 0 29px}.puzzle-chip{height:32px;min-width:36px;border:1px solid var(--line);border-radius:100px;background:none;color:var(--muted);font-size:12px;font-weight:600;padding:0 11px}.puzzle-chip.current{background:var(--ink);color:white;border-color:var(--ink)}.puzzle-chip.done:not(.current){background:var(--green-bg);border-color:#c0d8cc;color:var(--green)}.intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 25px}.eyebrow{font-size:10px;letter-spacing:.19em;color:var(--violet);font-weight:750;margin:0 0 10px}h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:34px;line-height:1.15;letter-spacing:-.03em;margin:0 0 9px}#subline{color:var(--muted);font-size:13px;margin:0;line-height:1.6}.restart{white-space:nowrap}.game-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(350px,1.35fr) minmax(230px,1fr);grid-template-areas:". north ." "west center east" ". south .";gap:16px;align-items:center}.source{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow);position:relative;min-width:0}.source-0{grid-area:north}.source-1{grid-area:west}.source-2{grid-area:east}.source-3{grid-area:south}.source-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;gap:6px}.source-label{font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:700}.quota{font-size:11px;background:var(--lavender);color:var(--violet-dark);padding:4px 8px;border-radius:100px;white-space:nowrap}.clue-text{font-size:14px;line-height:1.5;margin:0 0 12px;min-height:20px}.answer-row{display:flex;gap:6px}.answer-input{width:100%;min-width:0;background:#f6f4ef;border:1px solid var(--line);border-radius:7px;padding:9px 10px;letter-spacing:.12em;text-transform:uppercase;font-weight:650;font-size:16px}.outer-check{border:0;border-radius:7px;padding:8px 11px;background:var(--ink);color:white;font-size:12px}.source-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-top:9px;gap:8px}.source-bottom button{font-size:11px;color:var(--violet);padding:1px 0}.outer-message{font-size:11px;margin-top:9px;line-height:1.4;color:#a05542}.outer-message.success{color:var(--green)}.outer-hint{color:var(--violet-dark);font-size:12px;margin-top:9px}.source.confirmed{border-color:#c2d7cb}.word-display{letter-spacing:.14em;font-size:18px;font-weight:700;margin:6px 0}.confirmed-tag{color:var(--green);font-size:11px}.bank{display:flex;flex-wrap:wrap;gap:5px}.bank-letter{width:32px;height:38px;border:1px solid #d6d0df;border-radius:6px;background:white;font-size:16px;font-weight:750;position:relative;box-shadow:0 2px 0 #e7e3ec}.bank-letter.assigned{background:#f0edf4;border-style:dashed;color:#797081;box-shadow:none}.bank-letter.assigned:after{content:"";position:absolute;bottom:3px;left:50%;transform:translateX(-50%);height:3px;width:3px;border-radius:50%;background:#9789a7}.bank-letter.selected{background:var(--violet);color:white;outline:2px solid #b5a6e2;outline-offset:1px}.allocation{font-size:11px;line-height:1.5;margin-top:12px;color:var(--muted);display:flex;justify-content:space-between;gap:5px}.allocation strong{color:var(--ink);font-weight:600;letter-spacing:.08em}.source-hint-caption{font-size:11px;color:var(--muted);line-height:1.4;margin-top:8px}.center-panel{grid-area:center;border:1px solid #cfc6e7;border-radius:18px;padding:25px 18px;background:linear-gradient(155deg,#fffeff,#f1edf9);text-align:center;box-shadow:0 9px 30px #5f46980a;min-width:0}.center-panel.locked{min-height:200px;display:flex;flex-direction:column;justify-content:center;background:transparent;border-style:dashed;box-shadow:none}.center-label{font-size:10px;letter-spacing:.16em;font-weight:750;color:var(--violet);margin-bottom:8px}.center-panel h2{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:5px 0 10px}.lock-symbol{color:#afa3c7;font-size:25px;line-height:1}.locked-copy{max-width:250px;margin:0 auto;font-size:12px;line-height:1.7;color:var(--muted)}.solved-count{margin-top:16px;display:flex;justify-content:center;gap:7px}.solved-count span{width:7px;height:7px;background:#d8d2e2;border-radius:50%}.solved-count .is-done{background:var(--green)}.center-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.checks-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.slots{display:flex;justify-content:center;gap:5px;margin:24px 0 17px}.slot-wrap{flex:1;max-width:43px;min-width:0}.slot{height:50px;width:100%;border:1.5px solid #c9c2d7;background:white;border-radius:7px;font-size:22px;font-weight:750;display:grid;place-items:center;box-shadow:0 2px 0 #d9d2e4;position:relative}.slot.empty{border-style:dashed;background:#ffffff7a;box-shadow:none}.slot.G{background:var(--green-bg);border-color:#78a892;color:var(--green);box-shadow:0 2px 0 #b2d0bf}.slot.Y{background:var(--yellow-bg);border-color:#d4b25c;color:var(--yellow)}.slot.X{background:var(--gray-bg);border-color:#c6c1ca;color:var(--gray)}.slot.focused{outline:2px solid var(--violet);outline-offset:3px}.slot.selected-move{box-shadow:0 0 0 3px #bbaae8}.slot.G:after{content:"•";font-size:11px;position:absolute;bottom:0;right:4px;color:var(--green)}.position-label{font-size:9px;color:#918a9b;margin-top:7px;display:block}.center-instruction{font-size:11px;line-height:1.6;color:var(--muted);min-height:34px;margin:7px 0 12px}.primary{background:var(--violet);border:1px solid var(--violet);color:white;border-radius:8px;padding:11px 17px;font-weight:650;font-size:13px}.primary:hover{background:var(--violet-dark);border-color:var(--violet-dark)}.check-center{width:100%}.secondary{background:white;border:1px solid #cfc8db;border-radius:8px;padding:9px 12px;font-size:12px}.center-edits{display:flex;gap:14px;justify-content:center;margin:10px 0 13px}.center-edits button{font-size:11px;padding:4px 0}.center-clue-area{border-top:1px solid #ded7e9;padding-top:13px}.clue-button{font-size:12px;color:var(--violet-dark);border:0;background:none;display:inline-flex;gap:7px;align-items:center;padding:2px 8px}.center-clue{font-family:Georgia,serif;font-size:17px;line-height:1.5;margin:5px 0 0;color:#4f416c}.center-note{font-size:10px;color:var(--muted);margin:7px 0 0;line-height:1.6}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:16px;font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:4px}.legend i{display:inline-block;width:7px;height:7px;border-radius:2px}.legend .g{background:var(--green)}.legend .y{background:#d6b451}.legend .x{background:#a8a1ad}.allocation-explanation{font-size:10px;line-height:1.6;max-width:280px;margin:12px auto 0;color:#847a91}.success-banner{font-family:Georgia,serif;font-size:22px;color:var(--green);margin:8px 0 5px}.check-mark{font-size:16px}.history-section{margin:35px auto 0;max-width:800px;border-top:1px solid var(--line);padding-top:22px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:15px}.section-heading h2{font-size:14px;font-weight:650;margin:0}.section-heading span{font-size:11px;color:var(--muted)}.history{display:flex;gap:10px;flex-wrap:wrap}.history-row{background:var(--card);border:1px solid var(--line);border-radius:9px;padding:11px}.history-meta{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:18px;margin-bottom:7px}.history-tiles{display:flex;gap:3px}.history-tile{width:25px;height:30px;border-radius:4px;border:1px solid #ddd7e3;display:grid;place-items:center;font-weight:700;font-size:13px}.history-tile.G{background:var(--green-bg);color:var(--green);border-color:#b6d1c0}.history-tile.Y{background:var(--yellow-bg);color:var(--yellow);border-color:#e2cd91}.history-tile.X{background:var(--gray-bg);color:var(--gray)}.feedback-section{max-width:800px;margin:25px auto 0;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px}.feedback-section h2{font-family:Georgia,serif;font-weight:500;margin:0 0 6px;font-size:24px}.feedback-intro{color:var(--muted);font-size:12px;margin:0 0 18px}.ratings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rating-label{font-size:12px;display:block;margin-bottom:9px}.rating-scale{display:flex;gap:6px}.rating-scale button,.another-buttons button{border:1px solid #d4cedc;background:white;border-radius:7px;padding:8px 12px;font-size:12px}.rating-scale button.active,.another-buttons button.active{background:var(--lavender);border-color:#a895d9;color:var(--violet-dark)}.rating-ends{font-size:10px;display:flex;justify-content:space-between;max-width:204px;margin-top:6px;color:var(--muted)}.another-block{margin:20px 0 16px}.another-buttons{display:flex;gap:7px}.reaction{display:block;width:100%;border:1px solid var(--line);border-radius:8px;min-height:70px;padding:10px;background:#faf9f6;resize:vertical;font-size:13px}.feedback-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px}.feedback-actions small{color:var(--muted);font-size:11px}.page-footer{border-top:1px solid var(--line);margin-top:36px;padding:17px 0 5px;display:flex;justify-content:space-between;gap:10px;color:#96909b;font-size:10px}.page-footer span:first-child{font-size:8px;letter-spacing:.15em}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;max-width:min(530px,calc(100vw - 28px));padding:13px 19px;border-radius:10px;box-shadow:0 5px 25px #29243122;font-size:13px;line-height:1.6;z-index:20}.toast.error{background:#734438}dialog{border:1px solid #d0c7dd;border-radius:17px;background:var(--card);color:var(--ink);max-width:480px;width:calc(100vw - 32px);padding:26px;box-shadow:0 15px 80px #211c3544}dialog::backdrop{background:#29243144;backdrop-filter:blur(3px)}dialog h2{font-family:Georgia,serif;font-weight:500;margin:0;font-size:26px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}
@media(min-width:1100px){.source-0,.source-3{width:300px;justify-self:center}.game-grid{column-gap:25px;row-gap:12px}.center-panel{padding:26px 21px}.source{padding:18px 20px}}
@media(max-width:900px){.game-grid{grid-template-columns:1fr 1.45fr 1fr;gap:10px}.source{padding:13px}.bank{gap:4px}.bank-letter{width:28px;height:34px}.center-panel{padding:20px 12px}.slot{height:45px;font-size:20px}.slots{gap:4px}.masthead{padding:20px 25px}.save-status{display:none}}
@media(max-width:700px){main{padding:19px 16px}.masthead{padding:18px 17px}.brand{font-size:23px;gap:8px}.lab{display:none}.header-actions{gap:14px}.header-actions .text-button{font-size:11px}.intro{align-items:flex-start;margin-bottom:19px}h1{font-size:28px}.eyebrow{font-size:9px;margin-bottom:8px}#subline{font-size:12px;max-width:300px}.restart{font-size:10px;padding-top:0;max-width:65px;white-space:normal;text-align:right}.puzzle-nav{margin-bottom:24px;gap:7px}.puzzle-chip{height:30px;min-width:32px;font-size:11px}.game-grid{grid-template-columns:1fr 1fr;grid-template-areas:"north west" "east south" "center center";gap:10px;align-items:stretch}.source{padding:13px 12px;border-radius:11px}.clue-text{font-size:13px;line-height:1.5;min-height:39px}.source-top{margin-bottom:8px}.source-label{font-size:9px}.quota{font-size:10px;padding:3px 6px}.answer-row{gap:4px}.answer-input{padding:8px 6px;letter-spacing:.06em}.outer-check{padding:6px 8px}.source-bottom{font-size:10px;flex-wrap:wrap}.center-panel.locked{min-height:140px;padding:18px}.center-panel.locked h2{font-size:22px}.lock-symbol{display:none}.solved-count{margin-top:11px}.center-panel{padding:19px 17px;border-radius:13px}.game-grid.center-active{grid-template-areas:"center center" "north west" "east south"}.center-active .source .clue-text{display:none}.center-active .source{padding:12px}.center-active .source-top{margin-bottom:10px}.bank-letter{width:29px;height:35px}.bank{gap:4px}.allocation{font-size:10px;margin-top:9px;flex-wrap:wrap}.center-active .center-panel{align-self:start}.center-instruction{min-height:0}.slots{margin:17px 0 10px;gap:6px}.slot-wrap{max-width:45px}.slot{height:46px;font-size:21px}.center-edits{margin:7px 0 9px}.center-clue-area{padding-top:10px}.center-note{font-size:9px}.allocation-explanation{max-width:100%;margin:9px auto 0}.legend{margin-top:11px}.section-heading{align-items:flex-start}.section-heading span{font-size:10px;max-width:155px;text-align:right}.history-section{margin-top:25px;padding-top:18px}.history-row{padding:8px}.feedback-section{padding:19px}.ratings-grid{gap:14px}.rating-scale{gap:4px}.rating-scale button{padding:8px 10px}.feedback-actions{align-items:flex-start;flex-direction:column}.page-footer{font-size:9px;line-height:1.6}.page-footer span{max-width:50%}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,border-color .12s,transform .12s}.bank-letter:hover:not(:disabled){transform:translateY(-2px)}.slot:hover:not(.G){border-color:var(--violet)}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

@media(max-width:480px){.ratings-grid{grid-template-columns:1fr}.rating-scale{max-width:240px}.rating-scale button{flex:1}.rating-ends{max-width:240px}}
.slot:disabled{opacity:1}

.center-active .source .clue-text{display:none}
#export-text{height:180px;font-family:ui-monospace,monospace;font-size:11px}

.page-footer{flex-wrap:wrap}.page-footer .copyright{flex-basis:100%;max-width:none;font-size:11px;letter-spacing:normal}
