:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#18251f;background:#f4f0e7;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #f4f0e7;--surface: #fffdf8;--ink: #18251f;--muted: #56645b;--line: #cbd2c8;--green: #245a4c;--green-dark: #163d33;--orange: #c64a2e;--orange-dark: #8e2c19;--yellow: #f5c95c;--radius: 22px;--shadow: 0 15px 45px rgb(25 40 30 / 8%)}*{box-sizing:border-box}body{margin:0;min-width:280px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #275aee;outline-offset:3px}h1,h2,h3,p{margin-top:0}p{line-height:1.55}.app-shell{min-height:100vh;display:flex;flex-direction:column}.site-header,.site-footer{width:min(100%,1320px);margin:0 auto;padding-left:clamp(18px,4vw,48px);padding-right:clamp(18px,4vw,48px)}.site-header{min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-weight:900;letter-spacing:-.045em;font-size:clamp(17px,2.3vw,24px);white-space:nowrap}.brand em{font-style:normal;color:var(--orange)}.brand-mark{display:grid;place-items:center;background:var(--orange);color:#fff;width:38px;height:38px;border-radius:12px;font-size:29px;line-height:1}.site-header nav{display:flex;gap:8px}.header-button,.text-button{border:0;background:transparent;color:var(--green-dark);font-weight:700;padding:12px 14px;min-height:44px;border-radius:12px}.header-button:hover,.text-button:hover{background:#e4eadd}.site-footer{display:flex;justify-content:space-between;gap:16px;padding-top:25px;padding-bottom:28px;margin-top:auto;font-size:13px;color:var(--muted)}.eyebrow{color:var(--orange-dark);text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:900}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.section-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:19px}.section-heading h2{font-size:clamp(22px,2.4vw,28px);letter-spacing:-.045em;line-height:1.1;margin:5px 0 0}.notice{width:min(calc(100% - 36px),1224px);margin:14px auto 0;border:1px solid #e2b278;background:#fff1db;color:#5f3515;border-radius:13px;padding:12px 16px;line-height:1.4}.home-layout,.game-layout,.rules-panel{width:min(100%,1320px);margin:0 auto;padding:26px clamp(18px,4vw,48px) 35px}.home-layout{display:grid;grid-template-columns:1.24fr .76fr;align-items:stretch;gap:22px}.hero{border-radius:30px;overflow:hidden;background:var(--green-dark);color:#fff;min-height:550px;padding:clamp(28px,5vw,58px);position:relative;display:flex;align-items:flex-start;box-shadow:var(--shadow)}.hero-copy{position:relative;z-index:2;max-width:560px}.hero .eyebrow{color:var(--yellow)}.hero h1{font-weight:900;font-size:clamp(48px,6.2vw,84px);line-height:1.02;letter-spacing:-.055em;margin:27px 0 23px}.hero h1 span{color:var(--yellow)}.hero p{color:#e6eee4;max-width:435px;font-size:clamp(17px,1.6vw,20px)}.hero-rule{display:flex;align-items:center;gap:15px;border-top:1px solid #789789;margin-top:35px;padding-top:22px;max-width:430px;color:#e3efe8;font-size:15px;line-height:1.4}.hero-rule-number{font-size:52px;font-weight:900;line-height:1;color:var(--yellow);letter-spacing:-.08em}.hero-art{position:absolute;inset:0;overflow:hidden;opacity:.95}.hero-art:before{content:"";position:absolute;width:490px;height:490px;right:-260px;bottom:-300px;border:75px solid #2d705b;border-radius:50%}.hero-track{position:absolute;width:120%;height:80px;left:16%;bottom:-6px;transform:rotate(-18deg);background:#c1492e;border-top:10px solid #ed7554;border-bottom:8px solid #a33524}.hero-track-one:before,.hero-track-two:before{content:"";position:absolute;top:31px;left:0;right:0;height:3px;background:repeating-linear-gradient(90deg,#f9e2c0 0 28px,transparent 28px 43px)}.hero-track-two{bottom:-80px}.hero-runner{position:absolute;right:14%;bottom:68px;display:grid;place-items:center;width:98px;height:98px;color:var(--green-dark);background:var(--yellow);border:9px solid white;border-radius:50%;box-shadow:0 9px #102e28;transform:rotate(-17deg)}.hero-runner span{font-size:70px;font-weight:900;line-height:1;transform:translateY(-4px)}.hero-finish{position:absolute;right:5%;bottom:193px;font-size:13px;font-weight:900;letter-spacing:.18em;color:#fff0d0;transform:rotate(-18deg)}.setup-panel{background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:clamp(25px,3.3vw,43px);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center}.setup-panel h2{font-size:clamp(33px,3.3vw,47px);line-height:1.06;letter-spacing:-.065em;margin:17px 0}.setup-panel p{color:var(--muted);font-size:16px}.count-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:23px 0 27px;padding:0;border:0;min-width:0}.count-button{position:relative;min-height:90px;display:flex;align-items:center;justify-content:center;gap:5px;border:2px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);cursor:pointer}.count-button input{position:absolute;width:1px;height:1px;opacity:0}.count-button:focus-within{outline:3px solid #275aee;outline-offset:3px}.count-button strong{font-size:34px;letter-spacing:-.07em}.count-button span{font-weight:700}.count-button:hover{border-color:var(--green)}.count-button-selected{border-color:var(--green);background:#e6f0e7;box-shadow:inset 0 0 0 1px var(--green)}.primary-button,.secondary-button{min-height:52px;border-radius:15px;padding:11px 22px;font-weight:800;border:2px solid transparent;text-align:center}.primary-button{background:var(--orange);color:#fff;box-shadow:0 5px 0 var(--orange-dark)}.primary-button:hover:not(:disabled){background:#aa3c23;transform:translateY(1px);box-shadow:0 4px 0 var(--orange-dark)}.secondary-button{background:transparent;color:var(--green-dark);border-color:var(--green)}.secondary-button:hover{background:#e7efe8}.setup-actions{display:flex;flex-direction:column;gap:13px}.setup-actions .primary-button{display:flex;justify-content:space-between;align-items:center}.setup-actions .primary-button span{font-size:23px}.confirm-box{border:1px solid #caa788;background:#fff3e8;border-radius:16px;padding:15px}.confirm-box p{margin-bottom:13px;color:#6b371b;font-weight:650}.confirm-box>div{display:flex;gap:10px;flex-wrap:wrap}.home-footnote{grid-column:1 / -1;text-align:center;font-size:12px;color:var(--muted)}.rules-panel{background:#e5ebdf;border-bottom:1px solid var(--line);padding-top:27px;padding-bottom:28px}.rules-panel .section-heading{align-items:center}.rules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.rules-grid>div{background:var(--surface);border:1px solid var(--line);padding:18px;border-radius:16px}.rules-grid h3{margin:0 0 8px;font-size:17px}.rules-grid p{font-size:14px;margin:0;color:#34453a}.all-cards{margin-top:15px;padding:15px 18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.all-cards summary{cursor:pointer;font-weight:800;min-height:44px;display:list-item;padding-top:10px}.rules-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:16px}.rules-cards figure{margin:0;min-width:0}.rules-cards img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 3px 9px #203b3230}.rules-cards figcaption{font-size:13px;line-height:1.4;margin-top:8px}.game-layout{padding-top:32px}.game-top{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:25px}.game-top h1{font-size:clamp(40px,5.2vw,67px);line-height:1.04;letter-spacing:-.07em;margin:7px 0 9px}.game-top p{color:var(--muted);max-width:650px;margin:0}.turn-badge{background:#e4eadd;border:1px solid #afc5b7;color:var(--green-dark);border-radius:999px;padding:10px 17px;font-weight:800;white-space:nowrap}.turn-badge-active{background:var(--yellow);border-color:#ae8429;color:#493008}.game-grid{display:grid;grid-template-columns:minmax(310px,.87fr) minmax(430px,1.13fr);align-items:start;gap:20px}.game-left,.game-right{display:flex;flex-direction:column;gap:20px;min-width:0}.track-panel,.journal-panel,.hand-panel,.review-panel,.result-panel,.waiting-panel{border:1px solid var(--line);border-radius:var(--radius);padding:clamp(18px,2.6vw,29px);background:var(--surface);box-shadow:var(--shadow)}.finish-label,.hand-count{font-size:12px;font-weight:850;white-space:nowrap;color:var(--green-dark);background:#e5efe4;padding:8px 11px;border-radius:999px}.track-scale{display:flex;justify-content:space-between;color:#5a665d;font-size:12px;font-weight:750;padding:0 2px 8px}.lanes{display:flex;flex-direction:column;gap:20px}.lane{--lane-color: #bc4a2f}.lane-1{--lane-color: #387d70}.lane-2{--lane-color: #766393}.lane-3{--lane-color: #b17a23}.lane-header{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:800;margin-bottom:8px}.lane-header>span{display:flex;align-items:center;gap:8px}.lane-header strong{font-variant-numeric:tabular-nums;font-size:17px}.lane-dot{width:12px;height:12px;display:inline-block;border-radius:50%;background:var(--lane-color);flex:0 0 auto}.lane-bar{height:17px;position:relative;border-radius:99px;background:repeating-linear-gradient(90deg,#e1e7dc 0 calc(33.33% - 2px),#bbc6b8 calc(33.33% - 2px) 33.33%);border:1px solid #b9c4b8}.lane-progress{height:100%;border-radius:99px;background:var(--lane-color);opacity:.79}.lane-marker{position:absolute;top:50%;transform:translate(-50%,-50%);width:25px;height:25px;border-radius:50%;background:var(--surface);border:6px solid var(--lane-color);box-shadow:0 1px 4px #283d3480}.lane-stats{display:flex;flex-wrap:wrap;column-gap:13px;row-gap:5px;color:var(--muted);font-size:12px;margin-top:11px}.lane-stats b{color:var(--ink);font-variant-numeric:tabular-nums}.journal-panel h2{font-size:21px}.journal-panel ol,.review-panel ol{margin:0;padding-left:22px}.journal-panel li,.review-panel li{color:#35453b;line-height:1.42;margin-bottom:10px;font-size:14px}.journal-panel p{color:var(--muted);font-size:14px}.hand-panel{background:#f9f7f1}.hand-hint{display:none}.card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-width:0;padding:8px;border-radius:16px;border:2px solid #c7d1c6;background:#fff;color:var(--ink);box-shadow:0 4px #d5dbd2}.game-card:hover{border-color:var(--green)}.game-card-selected{border-color:var(--orange);background:#fff6ed;box-shadow:0 4px #d89b86}.card-face{display:block;width:100%;height:auto;border-radius:10px}.card-top{display:flex;justify-content:space-between;gap:6px;align-items:center;margin:3px 5px 10px}.card-type,.card-cost{font-size:11px;font-weight:850;white-space:nowrap}.card-type{text-transform:uppercase;letter-spacing:.08em;border-radius:8px;padding:5px 6px;background:#dfece1;color:#194c3b}.type-Тактика{background:#e7e2f1;color:#49346c}.type-Риск{background:#fff0cf;color:#70420c}.type-Восстановление{background:#dbeaf0;color:#285265;font-size:10px;letter-spacing:.03em}.card-cost{color:var(--orange-dark)}.card-name{font-size:17px;font-weight:880;line-height:1.08;letter-spacing:-.035em;margin:10px 5px 6px}.card-effect{font-size:13px;line-height:1.39;color:#3d4d42;flex:1;margin:0 5px}.card-footer{display:block;padding-top:10px;margin:13px 5px 4px;border-top:1px solid #e1e6dd;color:#526056;font-size:11px;line-height:1.4}.selection-panel{margin-top:20px;background:#e9efe6;border:1px solid #b9cabb;border-radius:16px;padding:17px}.selection-panel h3{font-size:19px;letter-spacing:-.03em;margin:0 0 8px}.selection-panel p{font-size:14px;margin:0 0 15px}.selection-panel .primary-button{width:100%}.target-list{margin:4px 0 16px;border:0;padding:0}.target-list legend{font-weight:850;margin-bottom:8px}.target-option{display:flex;align-items:center;gap:9px;min-height:45px;margin:6px 0;border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:10px;cursor:pointer}.target-option input{width:19px;height:19px;accent-color:var(--green)}.review-panel{background:#e8efe7;border-color:#aec5b3}.review-panel h2,.result-panel h2,.waiting-panel h2{font-size:clamp(28px,3vw,39px);line-height:1.09;letter-spacing:-.055em;margin:9px 0 19px}.review-content{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);align-items:start;gap:20px;margin-bottom:22px}.review-card-image{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 4px 12px #203b3230}.review-panel ol{margin-bottom:0}.review-panel li{font-size:15px}.result-panel{background:#fff7e5;border-color:#e3ce9f}.result-panel>p{color:#4e5145}.result-list{list-style:none;margin:20px 0 23px;padding:0}.result-list li{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #d6cfbb;padding:13px 0}.result-list li span{color:#515b52;text-align:right;font-size:13px}.waiting-panel{min-height:350px;display:flex;align-items:start;flex-direction:column;justify-content:center}.waiting-panel p{color:var(--muted);max-width:390px}.waiting-icon{display:grid;place-items:center;width:70px;height:70px;margin-bottom:25px;border-radius:20px;color:#fff;background:var(--green);font-size:45px}@media(max-width:940px){.home-layout{grid-template-columns:1fr}.hero{min-height:400px}.setup-panel{max-width:none}.game-grid{grid-template-columns:1fr}.game-left{display:contents}.game-right{grid-row:2}.journal-panel{grid-row:3}.rules-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.site-header{min-height:68px}.brand-mark{width:32px;height:32px;font-size:24px}.site-header nav{gap:0}.header-button{font-size:12px;padding:9px 6px}.home-layout,.game-layout,.rules-panel{padding-top:18px}.hero{min-height:470px;padding:26px;border-radius:22px}.hero h1{font-size:clamp(46px,12vw,65px);margin-top:25px}.hero p{font-size:16px;max-width:310px}.hero-rule{margin-top:20px;max-width:285px;font-size:13px}.hero-art{opacity:.68}.hero-runner{right:6%;bottom:50px;width:68px;height:68px;border-width:6px}.hero-runner span{font-size:49px}.hero-finish{bottom:153px}.setup-panel{border-radius:22px}.rules-grid{grid-template-columns:1fr}.rules-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-top{margin-bottom:18px}.game-top h1{font-size:40px}.game-top p{font-size:14px}.turn-badge{padding:7px 9px;font-size:12px}.game-grid{gap:14px}.hand-hint{display:block;margin:8px 0 0;font-size:12px;color:var(--muted)}.card-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding:2px 2px 10px}.game-card{flex:0 0 min(72vw,270px);scroll-snap-align:start}.review-content{grid-template-columns:minmax(100px,135px) minmax(0,1fr);gap:12px}.review-panel li{font-size:13px}.site-footer{flex-direction:column;gap:4px}}@media(max-width:380px){.review-content{grid-template-columns:1fr}.review-card-image{max-width:175px}}@media(prefers-reduced-motion:no-preference){.game-card,.primary-button,.count-button{transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}.game-card:hover{transform:translateY(-2px)}}
