@font-face{font-family:Game;src:local('Trebuchet MS')}*{box-sizing:border-box}body{margin:0;color:#ffefcb;font-family:Game,'Trebuchet MS',sans-serif;background:#102c25;background-image:radial-gradient(ellipse at 50% 5%,#3e644a 0,transparent 65%),repeating-linear-gradient(90deg,#ffffff02 0 1px,transparent 1px 90px);min-height:100dvh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #fff19c;outline-offset:4px}button:disabled{cursor:default;opacity:.48}button[hidden],[hidden]{display:none!important}.game-shell{width:min(1260px,95%);margin:auto;padding:0 0 14px}.topbar{height:55px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #a7bd9028;color:#c0cba7;font-size:10px;letter-spacing:2px}.brand{font-weight:900;color:#fff2cc;text-decoration:none;letter-spacing:3px}.brand b{color:#e6b95d}.topbar div{display:flex;gap:10px}.topbar button{border:1px solid #b6c5993b;background:#17372f;color:#d9e3bf;padding:7px 12px;border-radius:5px;letter-spacing:1px;font-size:10px}.mast{display:flex;gap:30px;align-items:center;min-height:116px;padding:12px 14px}.logo{font-family:Georgia,serif;font-weight:1000;letter-spacing:-4px;font-style:italic;font-size:68px;line-height:.84;color:#ffcd55;-webkit-text-stroke:1.3px #532b13;text-shadow:0 3px 0 #6f421e,0 6px 0 #0b221a;transform:rotate(-4deg);width:205px;flex-shrink:0}.logo span{display:block;font-family:Game,sans-serif;font-size:22px;letter-spacing:1px;padding-top:9px;color:#ffeec3;text-align:center;-webkit-text-stroke:0;text-shadow:0 2px #422e17}.story small,.keys-panel small{font-size:9px;letter-spacing:2px;color:#e1bf7a}.story h1{font-size:24px;margin:8px 0;color:#ffedbc}.story p{font-size:12px;margin:0;color:#a7bba2}.keys-panel{margin-left:auto;text-align:center;min-width:230px}#keys{display:flex;gap:12px;justify-content:center;margin-top:8px}#keys span{font-family:Georgia;font-size:33px;color:#487356;text-shadow:0 1px #11291a}#keys span.found{color:#ffcd59;text-shadow:0 1px #925516,0 0 8px #ffd56e44}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 238px;gap:18px}.television{padding:7px;border-radius:16px;background:linear-gradient(120deg,#be8b48,#70471f 40%,#d2a25b 65%,#7c5127);border:2px solid #3d2b17;box-shadow:0 7px 0 #071d19,0 12px 30px #0005}.tv-header{display:flex;align-items:center;gap:8px;padding:8px 12px 10px;background:#16362e;border-radius:9px 9px 0 0;font-size:10px;letter-spacing:1.6px;color:#dce8c4}.live-dot{width:6px;height:6px;background:#f5bc50;border-radius:50%;box-shadow:0 0 6px #e9b94a66}#chapter{margin-left:auto;color:#93b29a;font-size:9px}.scene{aspect-ratio:16/10;position:relative;overflow:hidden;border:3px solid #15251b;border-radius:4px;background:#132e23}.scene>img{width:100%;height:100%;position:absolute;object-fit:fill;inset:0}.scene canvas{position:absolute;width:100%;height:100%;inset:0}.scene-caption{position:absolute;top:7%;left:50%;transform:translateX(-50%);text-align:center;background:linear-gradient(#f3d69e,#d2a866);border:3px solid #61451e;box-shadow:0 3px 0 #20190d88;border-radius:8px;color:#47321b;padding:9px 20px;min-width:40%;font-size:clamp(14px,2vw,22px);font-weight:900}.scene-caption small{display:block;font-size:12px;margin-top:4px;font-weight:400}.dialogue{display:flex;gap:18px;align-items:center;background:linear-gradient(90deg,#efe0b2,#dcc491);border:2px solid #714d26;min-height:75px;padding:10px 18px;color:#3e3620}.speaker{font-size:18px;letter-spacing:1px;font-weight:900;border-right:1px solid #715d3950;padding-right:16px}.speaker span{display:block;font-size:7px;letter-spacing:1px;color:#6f7d46;white-space:nowrap;margin-top:5px}.dialogue p{margin:0;font-size:15px;line-height:1.4;font-weight:700}.journey{display:flex;align-items:center;gap:12px;padding:10px 12px 5px;color:#d8c79f;font-size:8px;letter-spacing:1.7px}.journey i{height:1px;flex:1;background:#d8c79f55}.journey span.active{color:#ffefc2;text-shadow:0 0 3px #ffdf86}.witch-marker{color:#d5b6e7}.telephone{align-self:stretch;border:2px solid #e3c38e;border-bottom:7px solid #89764e;border-radius:21px;background:linear-gradient(120deg,#ded2ac,#bfaf86 60%,#e4d6af);padding:17px;color:#433e2b;box-shadow:inset 0 0 0 3px #a4956d,0 8px 0 #071d19;display:flex;flex-direction:column;gap:16px}.receiver{height:51px;border-radius:16px;background:linear-gradient(#7b795c,#363c2c);box-shadow:0 3px 0 #958665;display:flex;align-items:center;justify-content:center;padding:8px;gap:10px}.receiver i{display:block;width:24px;height:30px;border-radius:8px;background:repeating-linear-gradient(#222b20 0 2px,#72765d 2px 4px)}.receiver span{font-size:8px;letter-spacing:1.4px;text-align:center;line-height:1.7;color:#e0d9bc;flex:1}.lcd{background:linear-gradient(130deg,#c0cb94,#94aa71);border:5px solid #7b7c5b;box-shadow:inset 1px 2px 5px #303f2b66;border-radius:6px;min-height:123px;text-align:center;color:#2d482c;padding:10px 3px}.lcd small{display:block;font-size:9px;letter-spacing:2px}.lcd b{display:block;font-family:monospace;font-size:37px;line-height:1.5}.lcd>span{font-size:8px;letter-spacing:2px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-grid button,.continue{min-height:106px;padding:8px 4px;border:1px solid #b6a87e;border-bottom:5px solid #827956;border-radius:10px;background:linear-gradient(#fff7da,#d9d0aa);color:#3e462f;box-shadow:inset 0 1px 0 #fff8}.choice-grid button:active,.continue:active{border-bottom-width:2px;transform:translateY(3px)}.choice-grid strong{display:block;font-size:33px}.choice-grid em{font-size:22px;font-style:normal}.choice-grid span{display:block;font-size:10px;font-weight:700;line-height:1.3;margin-top:5px}.continue{color:#fff4cf;background:linear-gradient(#58764a,#344f34);border-color:#26412b;width:100%;min-height:70px}.continue b{font-size:28px;display:inline-block;vertical-align:middle;margin-right:12px}.continue span{font-size:11px;font-weight:900;letter-spacing:1px}.phone-note{text-align:center;color:#5d6046;font-size:11px;line-height:1.8}.phone-note b{font-size:15px}.phone-tools{margin-top:auto;display:flex;gap:8px}.phone-tools button{border:1px solid #8a835d;border-bottom:3px solid #777451;background:#a49e77;color:#f8f3db;font-size:9px;letter-spacing:1px;padding:8px 5px;border-radius:5px;flex:1}.phone-tools button.active{background:#4c6f44}.controls{display:flex;align-items:center;gap:30px;background:linear-gradient(#234f3d,#17382f);border:1px solid #c89b5366;border-radius:10px;margin-top:19px;padding:12px 21px;box-shadow:0 5px 0 #0a211b}.controls small{display:block;font-size:8px;letter-spacing:1.4px;color:#c6bb8e;margin-bottom:4px}.balance{min-width:180px}.balance strong{font-size:28px;font-variant-numeric:tabular-nums;color:#ffedb6}.bet{text-align:center}.bet div{display:flex;align-items:center;gap:16px}.bet button{width:29px;height:29px;border:1px solid #c9ad69;border-radius:50%;background:#14332a;color:#ffdf8c;font-size:21px;line-height:1}.bet strong{font-size:24px;min-width:50px}.progress{margin-left:auto;text-align:right}.progress span{color:#98b69c;font-size:10px}.under-note{text-align:center;color:#6f967b;font-size:8px;letter-spacing:1.5px;margin:13px 0 0}.loading{position:absolute;inset:0;background:#173d31;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;text-align:center}.loading b{color:#ffdd8f;font-size:19px}.loading span{font-size:12px;color:#acc6a5}.rope-buttons{position:absolute;inset:0 23% 20% 23%;display:flex;justify-content:space-around}.rope-buttons button{width:29%;border:0;background:transparent;position:relative;color:#fff2b7}.rope-buttons span{position:absolute;top:46%;left:50%;transform:translateX(-50%);border:2px solid #a47936;border-bottom:5px solid #623f20;border-radius:8px;background:linear-gradient(#f8db96,#bf8a43);font-weight:900;font-size:23px;padding:7px 13px;color:#4e3519}.rope-buttons button:hover span{background:#ffe8a7}.rope-buttons button:disabled{opacity:1}.rope-buttons button:disabled span{opacity:.6}dialog{border:2px solid #bc934f;background:linear-gradient(#294e3b,#132f26);border-radius:16px;color:#f4e9c4;max-width:530px;width:90%;padding:28px;box-shadow:0 18px 80px #0008}dialog::backdrop{background:#061d18a6}.modal-close{float:right;border:0;background:none;color:#ead7a6;font-size:27px}.modal-body h2,dialog h2{color:#ffcf75;font-family:Georgia,serif}dialog p,dialog li{font-size:13px;line-height:1.7}dialog button.action{border:1px solid #bfa267;border-bottom:4px solid #786032;background:#eed39a;color:#33452f;padding:12px 20px;border-radius:7px;font-weight:800;margin:8px}dialog table{width:100%;font-size:12px;border-collapse:collapse}dialog td,dialog th{padding:8px;text-align:left;border-bottom:1px solid #ffffff20}#status.error{color:#ffbf91}
@media(max-width:760px){.game-shell{width:96%;padding-bottom:20px}.topbar{height:44px;font-size:8px;letter-spacing:1px}.topbar>span{display:none}.topbar button{font-size:8px;padding:6px 9px}.brand{font-size:10px}.mast{min-height:101px;padding:13px 6px;gap:10px}.logo{font-size:48px;width:140px;letter-spacing:-3px}.logo span{font-size:16px;padding-top:7px}.story{display:none}.keys-panel{min-width:0}.keys-panel small{font-size:7px;letter-spacing:1px}#keys{gap:7px;margin-top:5px}#keys span{font-size:29px}.play-layout{grid-template-columns:1fr;gap:12px}.television{border-radius:11px;padding:4px}.tv-header{font-size:8px;letter-spacing:1px;padding:7px 8px}#chapter{font-size:7px}.scene{aspect-ratio:16/11}.dialogue{gap:10px;padding:9px;min-height:73px}.speaker{font-size:13px;padding-right:9px}.speaker span{font-size:5px}.dialogue p{font-size:12px}.journey{padding:8px 6px 4px;font-size:6px;gap:8px}.telephone{padding:10px;border-radius:12px;border-bottom-width:4px;display:grid;grid-template-columns:105px 1fr;gap:9px}.receiver{display:none}.lcd{min-height:86px;grid-row:1/3;padding:7px 1px;border-width:3px}.lcd small{font-size:7px;letter-spacing:1px}.lcd b{font-size:29px}.lcd>span{font-size:7px;letter-spacing:1px}.choice-grid{gap:8px}.choice-grid button{min-height:69px;padding:3px}.choice-grid strong{font-size:25px}.choice-grid em{font-size:20px}.choice-grid span{font-size:9px;margin-top:0}.phone-note{font-size:8px;line-height:1.2;grid-column:2}.phone-note br{display:none}.phone-note b{font-size:10px}.phone-tools{grid-column:1/-1;gap:9px}.phone-tools button{padding:5px;font-size:8px}.continue{min-height:65px}.controls{margin-top:12px;padding:10px 12px;gap:10px;flex-wrap:wrap}.balance{min-width:0;flex:1}.balance strong{font-size:22px}.controls small{font-size:7px;letter-spacing:1px}.bet div{gap:10px}.bet strong{font-size:22px;min-width:42px}.bet button{width:26px;height:26px}.progress{flex-basis:100%;display:flex;justify-content:space-between;text-align:left;border-top:1px solid #a3bd7d22;padding-top:7px;gap:12px}.progress small{font-size:6px;letter-spacing:.5px;margin:0}.progress span{font-size:7px}.under-note{font-size:6px;margin-top:12px}.scene-caption{padding:5px 10px;min-width:50%;font-size:14px;border-width:2px}.scene-caption small{font-size:8px}.rope-buttons span{font-size:15px;padding:4px 9px}}
@media(max-height:650px) and (min-width:761px){.mast{min-height:83px}.logo{font-size:53px}.play-layout{grid-template-columns:minmax(0,1fr) 215px}.television .scene{max-height:52vh}.telephone{gap:10px;padding:13px}.receiver{height:35px}.lcd{min-height:80px;padding:5px}.lcd b{font-size:27px}.choice-grid button{min-height:75px}.controls{margin-top:12px;padding:8px 16px}}

.logo::before{content:'ТОТ САМЫЙ';display:block;font:800 10px Game,sans-serif;letter-spacing:4px;color:#ecdbab;text-align:center;margin-bottom:8px;-webkit-text-stroke:0;text-shadow:none}.story h1{font-size:21px;max-width:330px}.logo span{font-size:17px;letter-spacing:0}@media(max-width:760px){.logo::before{font-size:7px;letter-spacing:3px;margin-bottom:6px}.logo span{font-size:12px}.mast{min-height:107px}}

#keys span{width:28px;height:36px}#keys svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}@media(max-width:760px){#keys span{width:23px;height:30px}}

#rail-joins{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

.outcome{position:absolute;inset:10% 12%;z-index:3;overflow:hidden;border:4px solid #dcb96c;border-radius:13px;background:#153b2c;box-shadow:0 5px 0 #263323,0 12px 24px #0006;pointer-events:none}.outcome>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.outcome-copy{position:absolute;inset:auto 0 0;padding:10px 15px 9px;background:linear-gradient(transparent,#143826 22%);text-align:center;color:#fff1bd}.outcome-copy>div{display:flex;justify-content:center;align-items:baseline;gap:16px}.outcome-copy strong{font-size:clamp(16px,2vw,26px);letter-spacing:1px}.outcome-copy b{font-size:clamp(24px,4vw,48px);font-variant-numeric:tabular-nums;color:#ffdc6f}.outcome-copy small{display:block;font-size:12px;line-height:1.4}.outcome-copy em{display:block;margin-top:4px;font-size:11px;font-style:normal;color:#ffe080;font-weight:900}.outcome[data-kind=loss]{border-color:#c7a779}.outcome[data-kind=loss] .outcome-copy{background:linear-gradient(transparent,#3b3022 22%)}.outcome[data-kind=loss] .outcome-copy b{font-size:20px;color:#ffe2bc}
@media(max-width:760px){.outcome{inset:3% 2%;border-width:2px;border-radius:8px}.outcome-copy{padding:7px 6px 5px}.outcome-copy>div{gap:9px}.outcome-copy strong{font-size:14px}.outcome-copy b{font-size:27px}.outcome-copy small{font-size:8px}.outcome-copy em{font-size:8px;margin-top:2px}.outcome[data-kind=loss] .outcome-copy b{font-size:11px}}
