:root{--paper:#f4f1e9;--ink:#253d33;--muted:#777c70;--green:#244c3f;--line:#dcded1;--red:#b95443;--lime:#e2ecae;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
.five-choice{background:#ece0d2}.five-art{position:absolute;top:94px;left:50%;transform:translateX(-50%) rotate(-8deg);display:flex;border:1px solid #b6ad95;background:#f8f1e3}.five-art span{display:grid;place-items:center;font-size:40px;width:43px;height:49px;border-right:1px solid #c9c0ac}.five-art span:last-child{border-right:0}.five-surface{background:#e9eadd;border:1px solid #dfe1d1;border-radius:20px;padding:16px;min-width:0}.five-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.five-tools>span{font-size:11px;color:#67715b}.zoom-toggle{min-height:44px;white-space:nowrap}.five-scroll{overflow:auto;border:1px solid #bfc6ac;border-radius:6px;max-height:640px;overscroll-behavior:contain}.five-board{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:1px;background:#bdc6ab;padding:1px;aspect-ratio:1}.five-board .five-cell{border-radius:0;box-shadow:none;aspect-ratio:1;padding:0;min-height:0;position:relative}.five-cell .mark{width:61%;height:61%}.five-cell .circle{border-width:3px}.five-cell.last-move:after{content:'';position:absolute;inset:2px;border:2px solid #b88743;pointer-events:none}.five-cell.pending{background:#d5e3ac;box-shadow:inset 0 0 0 2px #567349}.aim{font-size:19px;font-weight:bold;line-height:1}.five-scroll.zoomed{max-height:440px}.zoomed .five-board{min-width:676px}.zoomed .five-cell .circle{border-width:5px}.five-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.five-confirm>span{font-size:11px;color:#67715b}.five-confirm .primary{min-width:170px;justify-content:center}.five-note{font-size:10px;color:#737d67;margin:12px 0 0}.table-area{min-width:0}
@media(min-width:1100px){.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.game-choice .choice-bottom h2{font-size:24px}.game-choice .choice-bottom p{font-size:10px}.game-choice .choice-bottom{gap:10px}.game-choice .arrow{width:36px;height:36px}.game-choice .xo-art{left:20%}}
@media(max-width:680px){.five-surface{padding:10px}.five-tools>span{font-size:9px}.five-confirm{align-items:stretch;flex-direction:column;gap:8px}.five-confirm .primary{width:100%}.five-board .circle{border-width:2px}.zoomed .five-cell .circle{border-width:5px}.five-cell.last-move:after{inset:1px;border-width:1px}.five-art{top:81px}.five-note{font-size:9px}.five-scroll{max-height:400px}.five-scroll.zoomed{max-height:390px}}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #a9792b;outline-offset:5px}button:disabled:not(.card):not(.cell){opacity:.4}button:enabled:active{transform:translateY(1px)}.shell{max-width:1280px;margin:auto;padding:0 52px}.header{height:106px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{font-weight:800;font-size:27px;letter-spacing:-1.5px;display:flex;align-items:center;white-space:nowrap}.brand-icon{font-size:38px;margin-right:11px;font-weight:400}.brand-dot{color:var(--red)}.header-note{font-size:12px;color:var(--muted);margin-left:20px}.small{border:1px solid #cdd0c4;border-radius:100px;padding:11px 17px;background:transparent;font-size:12px}.small span{margin-left:14px}.header>.share{margin-left:auto}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:24px 0 28px;margin-top:55px;color:var(--muted);font-size:11px}footer span span{font-size:19px;padding-left:9px;color:var(--green)}.welcome{padding-top:52px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;display:flex;align-items:center;gap:8px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6d8b44;flex-shrink:0}.offline{background:#a9aaa1}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:72px;line-height:1.04;letter-spacing:-3px;margin:23px 0 20px}h1 em{font-weight:400;color:#66816a}.intro{font-size:15px;line-height:1.7;color:#6d7368;margin-bottom:33px}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.game-choice{border-radius:24px;height:318px;position:relative;padding:25px 28px;overflow:hidden;transition:transform .2s}.game-choice:hover{transform:translateY(-4px)}.xo-choice{background:#e8e9de}.durak-choice{background:var(--green);color:#f8f5e9}.choice-top{display:flex;justify-content:space-between;align-items:center}.pill{border:1px solid currentColor;border-radius:30px;padding:7px 10px;font-size:9px;letter-spacing:1px;opacity:.7}.choice-number{font-family:Georgia,serif;font-size:18px;opacity:.5}.choice-bottom{position:absolute;bottom:25px;left:28px;right:28px;display:flex;justify-content:space-between;align-items:center}.choice-bottom h2{font-family:Georgia,serif;font-weight:400;font-size:27px;letter-spacing:-.7px;margin:0 0 7px}.choice-bottom p{margin:0;font-size:11px;opacity:.65}.arrow{width:43px;height:43px;border:1px solid #a6ae9d;border-radius:50%;display:grid;place-items:center;font-size:24px;flex-shrink:0}.durak-choice .arrow{background:var(--lime);color:var(--green);border:0}.xo-art{position:absolute;left:25%;top:92px;display:flex;align-items:center;gap:30px;transform:rotate(-9deg)}.mark{display:block;position:relative;width:74px;height:74px}.cross:before,.cross:after{content:'';position:absolute;left:43%;top:0;width:14%;height:100%;background:var(--green);border-radius:4px;transform:rotate(45deg)}.cross:after{transform:rotate(-45deg)}.circle{border:10px solid #a66a53;border-radius:50%}.art-star{color:#8b9472;font-size:25px;position:absolute;right:-42px;top:-20px}.cards-art{position:absolute;top:72px;left:calc(50% - 90px);height:160px;width:180px}.art-card{background:#fbf7eb;width:89px;height:126px;border:1px solid #dcdacb;border-radius:9px;position:absolute;top:6px;left:42px;transform:rotate(19deg);color:var(--ink);box-shadow:0 5px 10px #102c2c30}.art-card:nth-child(2){transform:rotate(-6deg);left:11px;top:2px}.art-card:first-child{transform:rotate(-24deg);left:-14px}.art-card span{position:absolute;left:8px;top:7px;font-size:19px}.art-card small{display:block;font-size:15px;line-height:1}.art-card b{position:absolute;top:43px;left:25px;font-size:43px}.back-art,.card-back{background-color:#8b9b78;background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,#e6ebc840 4px,#e6ebc840 5px);border:4px solid #eae8d8!important}.red{color:var(--red)!important}.how{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:30px;padding:24px 0;border-bottom:1px solid var(--line);font-size:11px;color:#71786c}.how-title{color:var(--ink);font-weight:700}.how b{display:inline-grid;place-items:center;border:1px solid #c6cebe;border-radius:50%;width:23px;height:23px;margin-right:7px;font-size:10px;font-weight:400}.public-note{font-size:11px;color:var(--muted);margin:18px 0 0}
.play-nav{display:flex;align-items:center;justify-content:space-between;padding:26px 0;gap:12px;font-size:11px}.back-link{color:var(--muted)}.tabs{display:flex;padding:4px;background:#e7e8dd;border-radius:25px;gap:3px}.tabs a{padding:10px 16px;border-radius:22px}.tabs a[aria-current]{background:#fffdf7;box-shadow:0 1px 3px #28382c10}.live{display:flex;align-items:center;gap:7px;color:var(--muted)}.game-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 27px}.game-heading h1{font-size:45px;margin:12px 0 0;letter-spacing:-1.7px}.rules{padding:20px;line-height:1.7;font-size:13px;border:1px solid var(--line);border-radius:16px;margin-bottom:20px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:28px}.players{display:flex;gap:12px;margin-bottom:17px}.player{display:flex;align-items:center;padding:13px 16px;border:1px solid var(--line);border-radius:15px;gap:10px;flex:1;min-width:0}.player.is-you{background:#eeefe2;border-color:#c4ceb6}.avatar{display:grid;place-items:center;border-radius:50%;width:36px;height:36px;background:#e3e6d7;font-size:24px;flex-shrink:0}.avatar-o{color:var(--red);background:#efdfd4}.player b{display:block;font-size:12px}.player small{display:flex;align-items:center;gap:5px;font-size:10px;margin-top:5px;color:var(--muted);white-space:nowrap}.you-badge{font-size:8px;letter-spacing:1px;margin-left:auto;color:#75826b}.turn-status{padding:28px 25px;border:1px solid var(--line);border-radius:20px;min-height:216px;background:#eaece1}.status-symbol{display:block;font-size:27px;color:#678267;margin-bottom:27px}.turn-status h2{font-family:Georgia,serif;font-weight:400;font-size:26px;letter-spacing:-.6px;margin:0 0 12px}.turn-status p{font-size:12px;line-height:1.7;color:#6e7668;margin:0}.your-turn,.finished{background:var(--green);color:#f4f0e4;border-color:var(--green)}.your-turn .status-symbol,.finished .status-symbol{color:var(--lime)}.your-turn p,.finished p{color:#d0d8c8}.game-actions{display:flex;flex-direction:column;gap:9px;margin-top:16px}.primary,.secondary{display:flex;justify-content:space-between;align-items:center;border:0;background:var(--green);color:#fffdf2;padding:15px 20px;border-radius:12px;font-size:13px;min-height:48px}.secondary{background:transparent;color:var(--ink);border:1px solid #c6cbbb;justify-content:center}.text-button{background:transparent;border:0;color:var(--muted);padding:13px;font-size:11px}.text-button:enabled:hover{text-decoration:underline}.table-note{border-top:1px solid var(--line);display:flex;gap:12px;margin-top:23px;padding-top:18px;color:var(--muted)}.table-note p{font-size:11px;line-height:1.6;margin:0}.table-note>span{font-size:21px}.leave{display:block;margin:15px auto 0;font-size:10px}.xo-surface{background:#e9eadd;border:1px solid #dfe1d1;border-radius:24px;padding:33px 30px 23px;display:flex;flex-direction:column;align-items:center;gap:25px}.xo-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:min(100%,360px);aspect-ratio:1}.cell{border:0;border-radius:14px;background:#faf8f0;display:grid;place-items:center;aspect-ratio:1;box-shadow:0 2px 0 #253d3310;min-width:0}.cell:enabled:hover{background:#fffefa}.cell .mark{width:54%;height:54%}.cell .circle{border-width:8px}.cell.winning{background:#d5e3ac;box-shadow:inset 0 0 0 2px #b6c28c}.surface-caption{font-size:8px;letter-spacing:1.7px;color:#8b927f}
.felt{background:var(--green);color:#e7eadc;border-radius:22px;padding:22px 22px 17px;position:relative;min-height:310px;background-image:radial-gradient(ellipse at 50% 40%,#365e4d,transparent 75%)}.opponent{text-align:center;font-size:10px;color:#c4cfb6}.mini-hand{display:flex;justify-content:center;padding-left:17px;margin-bottom:9px;min-height:43px}.card-back{display:inline-block;height:44px;width:31px;border-width:2px!important;border-radius:4px;margin-left:-14px;transform:rotate(-5deg)}.deck-info{display:flex;align-items:center;justify-content:center;gap:18px;font-size:10px;color:#bfccb6;margin:21px 0 13px}.deck-info b{font-weight:400;color:#e1e7d4}.deck-badge{font-size:17px;color:var(--lime);border:1px solid #68816a;border-radius:30px;padding:4px 10px}.deck-badge b{font-size:9px;vertical-align:middle}.battle{min-height:144px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:17px;padding:8px 0 20px}.empty-table{text-align:center;color:#afc0a8}.empty-table>span{font-size:38px;opacity:.6}.empty-table p{font-family:Georgia,serif;font-size:23px;margin:6px 0}.empty-table small{font-size:10px;opacity:.7}.felt-bottom{display:flex;justify-content:space-between;color:#b1c2a5;font-size:9px;padding-top:5px}.pair{position:relative;width:82px;height:112px}.pair .card{width:62px;height:90px;position:absolute;left:0;top:0}.pair .defense{left:20px;top:23px;transform:rotate(8deg)}.cover-slot{position:absolute;bottom:0;right:0;font-size:9px;opacity:.45}.pair.target .attack{box-shadow:0 0 0 3px #e1eba2;cursor:pointer}.pair.target .cover-slot{color:var(--lime);opacity:1}.card{display:block;background:#fffaf0;border:1px solid #ddd9c7;border-radius:7px;width:66px;height:96px;position:relative;padding:0;color:#273b34;flex:0 0 auto;box-shadow:0 2px 4px #0e271a12}.card .corner{position:absolute;top:5px;left:6px;font-family:Georgia,serif;font-size:16px;line-height:1}.corner small{display:block;font-size:12px;line-height:1.1}.card .bottom{left:auto;top:auto;right:6px;bottom:5px;transform:rotate(180deg)}.card .suit{font-size:29px}.hand-area{padding:19px 0 0}.hand-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:8px;margin-bottom:13px}.hand-label b{font-weight:500}.hand-label b span{display:inline-block;background:#e5e8d8;border-radius:20px;padding:3px 7px;font-size:10px;margin-left:5px}.hand-label small{font-size:9px;color:var(--muted)}.hand{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;padding:7px 3px 3px}.hand .card{transition:transform .15s,box-shadow .15s}.hand .card:disabled{background:#eae7de;color:#6e7569}.hand .card:disabled.red{color:#9e7c70!important}.card.playable{box-shadow:0 0 0 2px #9cae72}.hand .card:enabled:hover{transform:translateY(-5px)}.hand .card.selected{transform:translateY(-8px);box-shadow:0 0 0 3px #446443}.loading{display:grid;place-items:center}.durak .turn-status{min-height:227px}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);background:#263f34;color:#fffaf0;max-width:calc(100% - 32px);width:max-content;padding:14px 20px;border-radius:12px;font-size:13px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:20;box-shadow:0 4px 30px #0002}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1100px){.welcome{position:relative}.intro{position:absolute;right:5px;top:115px;width:370px}.game-grid{margin-top:37px}}
@media(max-width:900px){.shell{padding:0 28px}.header-note{display:none}.play-layout{grid-template-columns:minmax(0,1fr) 225px;gap:18px}.turn-status{padding:23px 20px}.game-choice{padding:22px;height:290px}.choice-bottom{left:22px;right:22px}.choice-bottom h2{font-size:24px}.choice-bottom p{font-size:10px}.xo-art{left:21%;gap:20px}.xo-art .mark{width:65px;height:65px}.how{flex-wrap:wrap}.how-title{width:100%}.player{padding:12px 10px}.you-badge{display:none}}
@media(max-width:680px){.shell{padding:0 20px}.header{height:78px;gap:12px}.brand{font-size:24px}.brand-icon{font-size:32px;margin-right:7px}.small{padding:10px 12px;font-size:10px}.small span{margin-left:7px}.welcome{padding-top:34px}.eyebrow{font-size:8px;letter-spacing:1.5px}h1{font-size:54px;letter-spacing:-2px;margin-top:20px}.intro{font-size:13px;line-height:1.7;margin-bottom:26px}.game-grid{grid-template-columns:1fr;gap:16px}.game-choice{height:267px;padding:21px 23px}.choice-bottom{left:23px;right:23px;bottom:23px}.choice-bottom h2{font-size:26px}.choice-bottom p{font-size:11px}.xo-art{top:79px;left:calc(50% - 80px);gap:28px}.xo-art .mark{width:65px;height:65px}.cards-art{top:51px;transform:scale(.85)}.how{flex-direction:column;align-items:flex-start;gap:14px;padding:22px 0;margin-top:10px;font-size:12px}.how-title{margin-bottom:3px}.public-note{font-size:10px;line-height:1.6}footer{margin-top:32px;padding:22px 0;gap:16px;font-size:9px}footer>span:last-child{text-align:right}.play-nav{padding:20px 0 15px;flex-wrap:wrap;gap:15px}.play-nav .back-link{font-size:11px}.play-nav .live{margin-left:auto;font-size:10px}.tabs{order:3;width:100%;justify-content:center}.tabs a{flex:1;text-align:center;padding:10px;font-size:11px}.game-heading{margin:11px 0 22px;gap:10px}.game-heading h1{font-size:33px;letter-spacing:-1.1px;margin-top:10px}.game-heading .small{white-space:nowrap}.play-layout{display:flex;flex-direction:column;gap:20px}.players{gap:8px;margin-bottom:12px}.player{padding:11px 10px;gap:8px}.avatar{width:32px;height:32px;font-size:23px}.player b{font-size:11px}.player small{font-size:8px}.xo-surface{padding:23px 25px 20px;border-radius:19px;gap:20px}.xo-board{gap:8px;max-width:320px}.cell{border-radius:11px}.cell .circle{border-width:7px}.surface-caption{font-size:6px;letter-spacing:1.5px}.side-panel{display:flex;flex-direction:column}.turn-status,.durak .turn-status{min-height:auto;padding:18px 19px;position:relative;padding-left:52px}.status-symbol{position:absolute;left:18px;top:17px;margin:0;font-size:23px}.turn-status h2{font-size:23px;margin:0 0 6px}.turn-status p{font-size:11px;line-height:1.6}.game-actions{margin-top:12px;flex-direction:row;flex-wrap:wrap;gap:8px}.game-actions>*{flex:1;justify-content:center}.game-actions .text-button{flex-basis:100%}.table-note{margin-top:16px;padding-top:15px}.leave{margin-top:8px;padding:10px}.felt{padding:18px 14px 14px;border-radius:18px;min-height:300px}.deck-info{gap:14px;margin-top:16px}.battle{gap:12px;min-height:136px}.pair{width:78px;height:110px}.hand{gap:7px;padding-top:9px}.hand .card{width:58px;height:86px}.card .corner{font-size:14px}.card .suit{font-size:26px}.hand-label{font-size:11px}.hand-label small{font-size:9px}.rules{font-size:12px;padding:16px}.felt-bottom{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.five-board .five-cell .circle{border-width:3px}.five-board .five-cell .mark{width:61%;height:61%}.zoomed .five-board .five-cell .circle{border-width:5px}
@media(max-width:680px){.five-board .five-cell .circle{border-width:2px}.zoomed .five-board .five-cell .circle{border-width:5px}}
@media(max-width:680px){.is-playing .header{height:62px}.play-nav{padding:14px 0 10px;gap:10px}.game-heading{margin:8px 0 16px}.game-heading h1{font-size:31px;margin-top:8px}.play-layout{gap:14px}.felt{min-height:260px;padding-top:14px}.battle{min-height:118px;padding-bottom:12px}.deck-info{margin:12px 0 8px}.hand-area{padding-top:15px}.hand-label{margin-bottom:10px}.hand .card{width:48px;height:76px}.hand .card .corner{font-size:13px;left:4px;top:4px}.hand .card .bottom{left:auto;top:auto;right:4px;bottom:4px}.hand .card .suit{font-size:24px}.hand .card .corner small{font-size:10px}}
