:root{color-scheme:light;--paper:#f7f6ee;--ink:#283e35;--muted:#6d786e;--line:#dce0d4;--green:#284c3b;--lime:#d8ee83;--orange:#e6ab73;--soft-green:#edf1df;--white:#fffef9;--shadow:0 12px 35px #2b44370b;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #a26534;outline-offset:4px}button{touch-action:manipulation}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.045em}h1{font-size:clamp(3.1rem,7vw,5.4rem);line-height:1.04}h2{font-size:clamp(2rem,5vw,3rem)}h3{font-size:1rem}svg{display:block}button svg{flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shell{max-width:1240px;margin:auto;padding:28px 44px 40px}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:45px;gap:15px;margin-bottom:26px}.wordmark{display:flex;align-items:center;gap:11px;font-weight:800;font-size:17px;letter-spacing:-.5px}.mark{width:38px;height:38px;border-radius:12px;background:var(--green);color:var(--lime);padding:7px}.top-actions{display:flex;gap:10px;align-items:center}.menu-button,.text-button{background:transparent;border:1px solid var(--line);padding:11px 17px;border-radius:999px;font-size:14px;font-weight:700;min-height:44px}.menu-button{display:flex;align-items:center;gap:8px}.text-button:hover,.menu-button:hover{background:var(--soft-green)}.brand-note{font-size:12px;color:var(--muted);letter-spacing:.06em}.intro{text-align:center;padding:20px 0 18px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}.subtitle{font-size:16px;line-height:1.65;color:var(--muted);margin:18px auto 0;max-width:480px}.hero-art{position:relative;width:330px;height:155px;margin:27px auto 20px;display:flex;justify-content:center;align-items:center;gap:18px}.animal-tile{width:100px;height:107px;border-radius:28px;display:grid;place-items:center;box-shadow:0 5px 0 #284c3b0c;transform:rotate(-10deg);background:var(--lime)}.animal-tile.cow-tile{background:#f2d5b5;transform:rotate(10deg)}.animal-tile svg{width:73px;height:73px}.art-cross{font-family:Georgia,serif;font-size:32px;color:#89947d}.tiny-code{position:absolute;bottom:-4px;display:flex;gap:5px;transform:rotate(-3deg)}.tiny-code span{display:grid;place-items:center;width:36px;height:40px;background:var(--white);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 8px #283e3510;font-weight:800;font-size:19px}.choice-section{max-width:700px;margin:22px auto 0;text-align:center}.choice-section h2{font-family:inherit;font-size:16px;font-weight:700;letter-spacing:0;margin-bottom:20px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:16px}.choice{padding:24px;text-align:left;border:1px solid var(--line);border-radius:20px;background:var(--white);box-shadow:var(--shadow);display:grid;grid-template-columns:46px 1fr 20px;align-items:center;gap:14px;transition:transform .15s,border-color .15s}.choice:hover{transform:translateY(-3px);border-color:var(--green)}.choice:first-child{background:var(--green);color:var(--white)}.choice-icon{width:44px;height:44px;border-radius:13px;background:#ffffff17;display:grid;place-items:center}.choice:nth-child(2) .choice-icon{background:var(--soft-green)}.choice strong{display:block;font-size:17px;margin-bottom:7px}.choice small{display:block;font-size:11px;font-weight:400;opacity:.72;line-height:1.4}.how-button{margin-top:21px;background:transparent;font-size:13px;font-weight:700;display:inline-flex;gap:8px;align-items:center;padding:12px}.footer-note{text-align:center;font-size:11px;letter-spacing:.07em;color:var(--muted);margin-top:42px}.legend{display:flex;justify-content:center;gap:25px;flex-wrap:wrap;margin-top:23px;font-size:11px;color:var(--muted)}.legend span{display:flex;gap:7px;align-items:center}.legend svg{width:20px;height:20px}.bull-icon{color:var(--green)}.cow-icon{color:#a9652b}
.panel{max-width:540px;margin:50px auto 0;background:var(--white);border:1px solid var(--line);border-radius:26px;padding:38px;box-shadow:var(--shadow)}.panel-heading{text-align:center;margin-bottom:30px}.panel-heading p{color:var(--muted);font-size:14px;line-height:1.6;margin-top:13px}.section-label{display:block;font-size:14px;font-weight:700;margin-bottom:12px}.setting-group{margin:25px 0}.segmented{display:flex;gap:7px;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--paper)}.segment{flex:1;background:transparent;border-radius:10px;padding:13px 10px;font-size:14px;min-height:46px}.segment.active{background:var(--green);color:white;font-weight:700;box-shadow:0 2px 5px #0001}.tip{padding:14px;border-radius:12px;background:var(--soft-green);font-size:12px;line-height:1.6;margin-top:12px}.primary{border-radius:13px;background:var(--green);color:white;min-height:52px;padding:14px 24px;font-size:14px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:12px}.primary:hover:not(:disabled){background:#37604b}.primary:disabled{opacity:.36}.full{width:100%}.secondary{border:1px solid var(--line);border-radius:13px;background:var(--white);padding:13px 20px;min-height:48px;font-size:13px;font-weight:700}.secondary:hover{background:var(--soft-green)}.actions{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:18px}.actions>*{flex:1}.status-message{font-size:13px;line-height:1.6;text-align:center;color:var(--muted);margin-top:20px;overflow-wrap:anywhere}.status-message:empty{display:none}.warning{background:#fff1de;border-radius:12px;padding:12px;color:#78502d}.link-input{width:100%;padding:14px;font-size:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);margin-top:20px}.room-symbol{margin:5px auto 25px;width:76px;height:76px;border-radius:24px;background:var(--lime);display:grid;place-items:center}.room-symbol svg{width:35px;height:35px}.secret-panel{margin-top:25px}.secret-panel .panel-heading{margin-bottom:24px}
.code-slots{display:flex;justify-content:center;gap:10px;margin:10px auto 20px}.code-slot{width:59px;height:68px;border-radius:12px;border:1px solid var(--line);border-bottom-width:3px;background:var(--white);display:grid;place-items:center;font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;transition:background .15s}.code-slot.filled{background:var(--soft-green);border-color:#bec9ac}.code-slot.current{outline:2px solid #a7ba87;outline-offset:2px}.code-slot .blank{width:6px;height:6px;background:#ccd1c2;border-radius:50%}.keypad{width:min(100%,302px);margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.digit-key{position:relative;min-width:56px;min-height:56px;border:1px solid var(--line);border-bottom-width:3px;border-radius:12px;background:var(--white);font-size:23px;font-weight:600;transition:background .12s,transform .12s}.digit-key:hover:not(:disabled){background:var(--soft-green);transform:translateY(-1px)}.digit-key.used{background:#e9eae4;color:#8d9389;text-decoration:line-through;border-color:#e1e3da}.digit-key.noted:not(.used){color:#8b9388;background:#eceee6}.digit-key:disabled:not(.used){opacity:.45}.delete-key{font-size:12px;background:transparent;border:0}.guess-key{font-size:13px;background:var(--green);color:white;border-color:var(--green)}.guess-key:hover:not(:disabled){background:#37604b}.keypad .highlight{box-shadow:0 0 0 3px var(--lime),0 0 18px #cce9698c;border-color:#92a859;background:#f4facf;animation:glow 1.4s ease-in-out infinite}.keypad .guess-key.highlight{color:var(--ink)}.secret-actions{max-width:302px;margin:15px auto 0}.locked{font-size:34px;text-align:center;letter-spacing:12px;margin:40px 0}.locked-icon{width:60px;height:60px;margin:auto;color:var(--green);padding:14px;background:var(--lime);border-radius:20px}
.game-shell .topbar{margin-bottom:20px}.game-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.game-top h2{font-size:30px}.turn-pill{display:inline-flex;align-items:center;gap:9px;font-size:13px;padding:11px 16px;background:var(--soft-green);border-radius:999px}.turn-dot{width:7px;height:7px;border-radius:50%;background:#6f9253}.thinking .turn-dot{animation:glow 1s infinite}.round-label{font-size:12px;color:var(--muted);border:1px solid var(--line);padding:9px 14px;border-radius:999px}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:25px;align-items:start}.histories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.history-panel{min-height:350px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--white);box-shadow:var(--shadow)}.history-heading{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--line);gap:10px}.history-heading h3{font-size:13px}.history-heading .person-dot{display:flex;gap:8px;align-items:center}.avatar{width:25px;height:25px;border-radius:8px;background:var(--soft-green);padding:5px}.opponent .avatar{background:#f5e3d1}.history-count{color:var(--muted);font-size:11px;background:var(--paper);border-radius:5px;padding:4px 7px}.history-list{list-style:none;padding:10px 12px;margin:0;max-height:390px;overflow:auto}.guess-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e9ebdf;padding:12px 3px;font-variant-numeric:tabular-nums}.guess-row:last-child{border:0}.guess-index{color:#8b9387;font-size:10px;width:15px}.guess-digits{font-weight:700;letter-spacing:4px;font-size:17px;flex:1;white-space:nowrap}.result-icons{display:flex;gap:9px;align-items:center;font-weight:700;font-size:13px}.result-icons>span{display:flex;align-items:center;gap:3px}.result-icons svg{width:20px;height:20px}.guess-row.solved{background:var(--soft-green);border-radius:8px;padding-left:6px}.empty-history{display:flex;min-height:230px;flex-direction:column;gap:12px;justify-content:center;align-items:center;color:#828c7d;font-size:11px;text-align:center}.empty-history svg{width:30px;height:30px;opacity:.28}.notepad{border:1px solid var(--line);border-radius:16px;background:#f0f1e4;padding:16px;margin-top:15px}.notepad-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;margin-bottom:12px}.notepad-head svg{width:16px;height:16px}.note-keys{display:flex;gap:6px;justify-content:space-between}.note-key{height:38px;min-width:30px;flex:1;border:1px solid #d9ddcb;border-radius:8px;background:var(--white);font-size:14px;font-weight:600}.note-key.crossed{text-decoration:line-through;background:#e1e4d7;color:#7d8776}.note-key.highlight{outline:3px solid #a1b960}.input-panel{padding:23px 18px;background:#ecefe1;border:1px solid var(--line);border-radius:22px}.input-panel .code-slots{margin:0 0 22px}.input-panel .code-slot{width:56px;height:65px}.input-panel .keypad{max-width:280px}.input-panel .digit-key{min-height:59px}.input-caption{text-align:center;font-size:11px;color:var(--muted);margin-top:18px}.secret-reveal{display:flex;gap:8px;align-items:center;position:relative}.secret-reveal button{user-select:none;-webkit-user-select:none}.secret-value{position:absolute;right:0;top:48px;z-index:5;min-width:136px;text-align:center;background:var(--ink);color:var(--lime);border-radius:10px;box-shadow:var(--shadow);padding:14px;font-size:22px;letter-spacing:4px}.history-tabs{display:none}.game-message{margin:0 0 18px}.result-banner{padding:28px;background:var(--soft-green);border:1px solid #cbd7b6;border-radius:20px;margin-bottom:22px;text-align:center}.result-banner h2{font-size:29px;line-height:1.2}.revealed-codes{display:flex;justify-content:center;gap:25px;margin-top:20px;flex-wrap:wrap;font-size:14px;font-weight:600}.result-banner .actions{max-width:350px;margin:22px auto 0}.result-banner .result-emblem{width:40px;height:40px;margin:0 auto 14px}.tutorial-header{max-width:850px;margin:0 auto 24px}.tutorial-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.tutorial-heading h2{font-size:32px}.tutorial-count{font-size:12px;color:var(--muted)}.tutorial-progress{display:flex;gap:6px;margin-bottom:18px}.tutorial-progress span{flex:1;height:4px;background:#e1e5d6;border-radius:4px}.tutorial-progress .done{background:#729653}.tutorial-bubble{border:1px solid #cdd8b9;background:var(--soft-green);border-radius:16px;padding:20px 24px;font-size:15px;line-height:1.65;position:relative}.tutorial-bubble:after{content:'';position:absolute;bottom:-8px;left:34px;width:14px;height:14px;background:var(--soft-green);border-right:1px solid #cdd8b9;border-bottom:1px solid #cdd8b9;transform:rotate(45deg)}.tutorial-body{max-width:850px;margin:auto;display:grid;grid-template-columns:1fr 310px;gap:24px}.tutorial-body .history-panel{min-height:220px}.tutorial-body .empty-history{min-height:145px}.tutorial-body .input-panel{padding:18px 15px}.tutorial-result{margin-top:16px;font-size:13px;line-height:1.65;background:var(--soft-green);border-radius:12px;padding:16px}.tutorial-navigation{display:flex;gap:12px;align-items:center;max-width:850px;margin:24px auto 0}.tutorial-navigation .skip-button{margin-left:auto;background:transparent;font-size:12px;color:var(--muted);padding:12px}.tutorial-navigation .primary,.tutorial-navigation .secondary{min-width:90px}.tutorial-navigation .primary:disabled{opacity:.3}
@keyframes glow{50%{opacity:.7}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(min-width:1200px){.game-shell{padding-top:30px}.game-grid{gap:32px}.history-panel{min-height:410px}.history-list{max-height:440px}.game-top{margin-top:35px}.game-shell .footer-note{margin-top:25px}}
@media(max-width:1000px){.shell{padding:24px}.game-grid{grid-template-columns:minmax(0,1fr) 295px;gap:18px}.histories{gap:10px}.guess-row{flex-wrap:wrap}.guess-digits{font-size:16px;letter-spacing:3px}.result-icons{margin-left:auto}.history-heading{padding:14px 10px}.note-keys{gap:4px}.note-key{min-width:24px}.brand-note{display:none}}
@media(max-width:760px){.shell{padding:20px 18px 30px}.topbar{margin-bottom:15px}.wordmark{font-size:15px}.mark{width:34px;height:34px}.intro{padding-top:15px}.intro h1{font-size:56px}.subtitle{font-size:14px;max-width:310px}.hero-art{margin-top:15px;height:145px}.choices{gap:12px}.choice{padding:19px 15px;grid-template-columns:34px 1fr;gap:10px}.choice-icon{width:34px;height:38px}.choice strong{font-size:14px}.choice small{font-size:10px}.choice>.arrow{display:none}.choice-section{margin-top:20px}.footer-note{margin-top:28px}.panel{margin-top:25px;padding:27px 23px}.game-grid{grid-template-columns:1fr}.history-panel{min-height:240px}.history-list{max-height:250px}.empty-history{min-height:150px}.guess-row{flex-wrap:nowrap}.input-panel{max-width:390px;width:100%;margin:auto}.game-top{margin-bottom:16px}.game-top h2{font-size:26px}.game-shell .legend{display:none}.notepad{margin-top:12px}.note-key{height:38px}.tutorial-body{grid-template-columns:1fr 285px;gap:15px}.tutorial-body .guess-row{flex-wrap:wrap}.tutorial-heading h2{font-size:28px}.tutorial-bubble{font-size:14px;padding:16px 20px}.top-actions{gap:6px}.my-code-button{font-size:11px;padding:10px}.menu-button{font-size:12px;padding:9px 13px}.result-banner{padding:22px 16px}}
@media(max-width:520px){.shell{padding:17px 16px 24px}.intro h1{font-size:48px}.hero-art{width:290px;height:138px}.animal-tile{width:86px;height:93px;border-radius:25px}.animal-tile svg{width:64px;height:64px}.choices{grid-template-columns:1fr;gap:11px}.choice{padding:19px 20px;grid-template-columns:44px 1fr 20px}.choice-icon{width:42px;height:42px}.choice strong{font-size:16px}.choice small{font-size:11px}.choice>.arrow{display:block}.choice-section h2{font-size:14px;margin-bottom:15px}.hero-art{margin-bottom:26px}.how-button{margin-top:12px}.legend{gap:15px;font-size:10px}.footer-note{font-size:10px}.panel{padding:26px 18px;margin-top:26px}.secret-panel{margin-top:15px}.secret-panel .panel-heading p{font-size:13px}.game-top{gap:10px}.turn-pill{padding:10px 13px;font-size:12px}.round-label{font-size:11px;padding:8px 10px}.history-tabs{display:flex;background:#e9edde;padding:4px;border-radius:11px;margin-bottom:10px}.history-tabs button{flex:1;font-size:12px;min-height:39px;padding:8px;background:transparent;border-radius:8px}.history-tabs button.active{background:var(--white);box-shadow:0 2px 5px #0001;font-weight:700}.histories{display:block}.history-panel.mobile-hidden{display:none}.history-panel{min-height:170px}.empty-history{min-height:108px}.history-list{max-height:205px}.history-heading{padding:12px 15px}.guess-row{padding:10px 3px}.guess-digits{letter-spacing:6px;font-size:18px}.input-panel{padding:18px 16px}.input-panel .code-slots{margin-bottom:17px}.input-panel .code-slot{height:59px;width:55px}.input-panel .digit-key{min-height:56px}.game-grid{gap:17px}.input-caption{margin-top:13px}.notepad{padding:12px}.note-key{min-width:25px;height:36px}.note-keys{gap:4px}.game-shell .footer-note{display:none}.tutorial-body{display:flex;flex-direction:column}.tutorial-body .history-panel{min-height:100px}.tutorial-body .empty-history{min-height:70px}.tutorial-body .history-list{max-height:170px}.tutorial-body .guess-row{flex-wrap:nowrap}.tutorial-body .input-panel{max-width:340px}.tutorial-header{margin-bottom:18px}.tutorial-heading{margin:10px 0 15px}.tutorial-bubble{font-size:13px;padding:15px 18px}.tutorial-navigation{gap:8px;margin-top:17px;flex-wrap:wrap}.tutorial-navigation .primary,.tutorial-navigation .secondary{min-width:70px;padding:12px 15px}.tutorial-navigation .skip-button{padding:12px 0;font-size:11px}.revealed-codes{gap:12px;font-size:13px}.result-banner h2{font-size:26px}}

@media(max-width:360px){.note-key{min-width:0}.topbar{flex-wrap:wrap}.top-actions{margin-left:auto}.game-shell .wordmark{font-size:13px}.game-shell .mark{width:28px;height:28px;padding:5px}.game-shell .topbar{gap:7px}.game-shell .menu-button{padding:8px 10px}.game-shell .menu-button svg{width:18px}.game-shell .my-code-button{padding:10px}.secret-panel .code-slot{width:52px}.keypad{gap:7px}}
.masked-code{display:block;font-size:9px;letter-spacing:2px;margin-top:3px;color:var(--muted)}.my-code-button{padding-top:7px;padding-bottom:7px}
.game-grid{grid-template-columns:minmax(0,1fr)}.game-shell{max-width:1020px}.game-shell .input-panel{width:100%;max-width:360px;margin:auto}.game-shell .history-panel{min-height:210px}.game-shell .history-list{max-height:220px}.game-shell .empty-history{min-height:135px}@media(max-width:520px){.game-shell .history-panel{min-height:160px}.game-shell .empty-history{min-height:105px}}
.hero-art{max-width:100%}.turn-pill{position:relative}
