.playing-card{--width:96px;display:block;width:var(--width);aspect-ratio:208/319;flex-shrink:0;border:0;padding:0;border-radius:calc(var(--width)*.055);background-color:#fff;background-image:url('assets/spanish-deck.png');background-size:1200% 500%;background-position:var(--cx) var(--cy);box-shadow:0 5px 9px #00181245;position:relative}.card-label{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}.hero-card{position:absolute;transition:transform .5s}.hero-card .playing-card{--width:205px;box-shadow:0 25px 45px #001c2960}.hero-left{transform:translate(-93px,-9px) rotate(-19deg);z-index:1}.hero-middle{transform:translate(10px,-36px) rotate(0deg);z-index:2}.hero-right{transform:translate(114px,20px) rotate(17deg);z-index:3}.welcome-cards:hover .hero-left{transform:translate(-108px,-16px) rotate(-22deg)}.welcome-cards:hover .hero-right{transform:translate(126px,18px) rotate(21deg)}.hero-orbit{position:absolute;width:420px;height:420px;border:1px solid #e1c28b1c;border-radius:50%}.hero-orbit:after{content:'';position:absolute;inset:20px;border:1px solid #e1c28b12;border-radius:50%}.hero-seal{position:absolute;bottom:10px;left:30px;width:66px;height:66px;border:1px solid #e1c28b55;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--gold);font:24px Georgia}.hero-seal span{font:11px 'DM Sans',sans-serif;margin-top:3px}.text-button{border:0;border-bottom:1px solid #e1c28b44;color:var(--gold);background:none;padding:7px 0;font-size:13px;margin:8px 0}.text-button:hover{border-color:var(--gold)}.compact{min-width:0;min-height:44px;padding:11px 22px;display:inline-flex;font-size:14px;gap:15px}.secondary{border:1px solid var(--line);border-radius:7px;padding:13px 22px;background:none;color:var(--white)}.icon-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:none;border:1px solid var(--line);color:var(--white);font-size:22px}.in-game .topbar{height:84px}.in-game .brand{font-size:38px}.in-game .top-note{display:none}.in-game .footer{height:56px}.game-shell{max-width:1450px;margin:0 auto;padding:0 4vw 20px}.game-toolbar{height:76px;display:flex;align-items:center;justify-content:space-between}.game-toolbar .quiet{padding-left:0;font-size:25px;display:flex;align-items:center;gap:15px}.game-toolbar .menu-label{border:0;border-radius:0;width:auto;height:auto;margin:0;font-size:14px}.round-info{text-align:center;font-size:16px;font-weight:500}.round-info span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:36px}.play-column{min-width:0}.scoreboard{height:78px;display:flex;justify-content:space-between;align-items:center;padding:0 25px 15px}.score-team{display:flex;align-items:center;gap:14px}.score-team>div>span{font-size:14px;font-weight:500}.score-team small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.team-mark{height:40px;min-width:40px;padding:0 7px;display:grid;place-items:center;border:1px solid #e1c28b60;border-radius:50%;font-size:12px;color:var(--gold)}.score-team strong{font:36px 'Playfair Display',Georgia,serif;margin-left:15px;display:flex;align-items:baseline;gap:6px}.score-team strong small{font:12px 'DM Sans',sans-serif;display:inline}.opposing strong{margin:0 15px 0 0}.opposing .team-mark{border-color:#d5978260;color:#e5ad97}.opposing>div{text-align:right}.score-divider{font-size:12px;color:var(--muted)}.game-table{position:relative;height:405px;border-radius:160px;background:radial-gradient(ellipse at 50% 45%,#276354 0%,#1e5447 55%,#18483d 100%);border:7px solid #0b302a;box-shadow:0 0 0 1px #62806b66,0 7px 0 #082b25,0 22px 28px #00231a35,inset 0 0 40px #0b302a55;isolation:isolate}.table-stitch{position:absolute;inset:8px;border:1px dashed #d0c79d2b;border-radius:150px;pointer-events:none;z-index:-1}.seat{position:absolute;z-index:2}.seat-top{top:16px;left:50%;transform:translateX(-50%)}.seat-head{display:flex;align-items:center;gap:10px;justify-content:center}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#2d6155;color:var(--gold);border:1px solid #9da98565;font-family:Georgia;font-size:18px;outline:3px solid transparent;outline-offset:3px}.avatar-1{background:#6e4638;color:#f0c4ae;border-color:#b67d5955}.seat.active .avatar{outline-color:var(--gold)}.seat-head b{font-weight:500;font-size:14px}.seat-head small{display:block;font-size:11px;color:#bed0c2;margin-top:3px}.opponent-hand{display:flex;justify-content:center;margin-top:10px;padding-left:18px;min-height:52px}.card-back{width:35px;aspect-ratio:208/319;background:#f3efe4 url('assets/spanish-deck.png') 9.090909% 100%/1200% 500%;border-radius:3px;box-shadow:0 3px 6px #00231c44;flex-shrink:0}.opponent-hand .card-back{margin-left:-15px;transform:rotate(-6deg)}.opponent-hand .card-back:nth-child(even){transform:rotate(6deg)}.seat-left{left:18px;top:150px}.seat-right{right:18px;top:150px}.seat-left .seat-head,.seat-right .seat-head{flex-direction:column;gap:6px;text-align:center}.seat-left .opponent-hand,.seat-right .opponent-hand{margin-top:8px}.four-players .seat-left .card-back,.four-players .seat-right .card-back{width:28px}.table-center{position:absolute;inset:123px 90px 45px;display:flex;align-items:center;justify-content:center}.table-cards{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;max-width:100%;position:relative;z-index:1}.table-cards .playing-card{--width:73px;transition:transform .2s,box-shadow .2s,opacity .2s}.table-cards .playing-card:nth-child(2n){transform:rotate(3deg)}.table-cards .playing-card:nth-child(3n){transform:rotate(-3deg)}.table-cards.many{gap:8px}.table-cards.many .playing-card{--width:61px}.playing-card.will-capture{box-shadow:0 0 0 3px var(--gold),0 0 25px #e1c28b45;transform:translateY(-6px)!important}.empty-table{text-align:center;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;color:#bad2bb}.table-monogram{font:italic 80px/.8 'Playfair Display',Georgia;opacity:.18;color:var(--gold)}.empty-table p{color:#c4d3b9;font-size:14px;margin:14px 0 4px}.empty-table small{color:#93b39f;font-size:12px}.deck-indicator{position:absolute;left:32px;top:50px;display:flex;align-items:center;gap:11px}.deck-indicator .card-back{width:31px;transform:rotate(-8deg);box-shadow:2px 2px 0 #ebecdb,4px 4px 0 #1b4a3b,6px 6px 0 #dbdfce}.deck-indicator span{font-size:10px;color:#a9c2ac;line-height:1.7}.deck-indicator b{font-size:14px;color:#e0e5ce}.last-taker{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);font-size:11px;color:#a4bfac;white-space:nowrap}.last-taker b{font-weight:400;color:#d4dcc7}.hand-zone{padding:21px 0 0;position:relative}.turn-line{display:flex;justify-content:center;align-items:center;gap:8px;position:relative}.turn-line b{font-weight:500;font-size:14px}.turn-marker{width:6px;height:6px;border-radius:50%;background:var(--muted)}.turn-marker.your-turn{background:var(--gold);box-shadow:0 0 0 4px #e1c28b15}.dealer-badge{position:absolute;right:4px;font-size:11px;color:var(--muted)}.player-hand{min-height:150px;display:flex;justify-content:center;align-items:center;margin-top:24px;padding-bottom:10px;gap:10px}.player-hand .playing-card{--width:89px;transform:translateY(calc(abs(var(--i) - (var(--total) - 1)/2)*4px)) rotate(calc((var(--i) - (var(--total) - 1)/2)*4deg));transition:transform .2s,box-shadow .2s;transform-origin:center bottom}.player-hand.playable .playing-card:hover,.player-hand.playable .playing-card:focus-visible{transform:translateY(-16px) rotate(0);box-shadow:0 10px 22px #001e1966,0 0 0 2px var(--gold);z-index:3}.player-hand .inactive{filter:brightness(.94)}.hand-action{text-align:center;min-height:58px}.hand-hint{font-size:13px;color:var(--muted);margin:5px}.announce-panel{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding-top:10px}.announce-panel>span{font-size:13px}.announce-panel .text-button{font-size:12px}.game-aside{border-left:1px solid var(--line);padding-left:28px;margin-top:6px}.aside-heading{display:flex;justify-content:space-between;align-items:center}.aside-heading h2{font:24px 'Playfair Display',Georgia;margin:0}.live-tag{font-size:11px;color:#bacebe;background:#ffffff0a;border:1px solid var(--line);border-radius:20px;padding:5px 9px}.captured-count{display:grid;grid-template-columns:1fr 1fr;padding:25px 0;border-bottom:1px solid var(--line);gap:15px}.captured-count span{font-size:12px;color:var(--muted)}.captured-count b{font:32px 'Playfair Display',Georgia;display:flex;align-items:baseline;gap:7px;margin-top:7px}.captured-count small{font:11px 'DM Sans',sans-serif;color:var(--muted)}.history{padding-top:14px}.history h3{font-size:13px;font-weight:500;color:var(--muted)}.history ol{list-style:none;padding:0;margin:22px 0 10px;min-height:280px}.history li{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin-bottom:16px;color:#c4d2c4}.history li small{display:block;font-size:10px;color:var(--muted)}.event-dot{width:5px;height:5px;border:1px solid #789c85;border-radius:50%;flex-shrink:0;margin:7px 8px 0}.event-points{display:grid;place-items:center;color:var(--gold);background:#e1c28b13;min-width:27px;height:27px;border-radius:7px;font-size:12px}.event-points.other{color:#f0b298;background:#f0b29813}.rule-reminder{border-top:1px solid var(--line);padding-top:23px;margin-top:20px}.rule-reminder>span{font-size:11px;color:var(--gold)}.rule-reminder p{font:20px/1.5 'Playfair Display',Georgia;color:#dddcc5;margin:10px 0 18px}.sequence{font:18px Georgia;color:var(--gold);display:flex;justify-content:space-between;align-items:center}.sequence i{font:12px sans-serif;color:#577a62}.flying-card{position:fixed;pointer-events:none;z-index:100}.flying-card .playing-card{width:100%;height:100%}.capturing{transform:translateY(-25px) scale(.7)!important;opacity:0;transition:transform .25s,opacity .25s}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,15px);max-width:min(90vw,650px);background:#f4e8cc;color:#133d30;border:1px solid #fff4d8;border-radius:10px;box-shadow:0 15px 35px #00221c55;padding:15px 22px;text-align:center;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:90}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{width:590px;box-shadow:0 30px 90px #00130d77}dialog h2{font:36px/1.2 'Playfair Display',Georgia;margin:12px 0 20px}dialog .primary{width:100%;min-width:0}dialog .compact{width:auto}.modal-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch;margin-top:24px}.modal-actions .compact{width:100%;justify-content:center}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--line);font-size:14px}select{background:#204f42;color:var(--white);border:1px solid var(--line);padding:10px;border-radius:5px;font:14px 'DM Sans',sans-serif}.setting-row input{accent-color:var(--gold);width:22px;height:22px}.fine-print{font-size:13px}.rules-list details{border-bottom:1px solid var(--line);padding:17px 0}.rules-list summary{font-size:15px;cursor:pointer;padding-right:10px}.rules-list p,.rules-list li{font-size:14px;line-height:1.8;color:#c2d1c2}.rules-list li{margin-bottom:7px}.rules-list b{color:var(--white);font-weight:500}.credits{font-size:11px;line-height:1.8;color:var(--muted);margin-top:24px}.credits a{text-decoration:underline}.full-history{padding:0;list-style:none}.full-history li{display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}.full-history small{font-size:11px;color:var(--muted)}.full-history b{color:var(--gold);font-size:13px;font-weight:500}.result-flower{font-size:48px;color:var(--gold);margin-bottom:16px}.result-scores{display:grid;grid-template-columns:1fr 1fr;margin:28px 0 32px;gap:20px}.result-scores>div{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:20px;gap:9px}.result-scores span{font-size:14px}.result-scores strong{font:64px/1.2 'Playfair Display',Georgia;color:var(--gold)}.result-scores small{font-size:12px;color:var(--muted)}.result-scores b{font-size:12px;font-weight:500}.tutorial-table{display:flex;justify-content:center;gap:8px;padding:20px 0}.tutorial-table .playing-card{--width:80px}.tutorial-hand{display:flex;justify-content:center;margin:15px 0}.tutorial-hand .playing-card{--width:86px;transition:transform .2s}.tutorial-hand .playing-card:hover{transform:translateY(-8px)}.tutorial-success{font:36px 'Playfair Display',Georgia;color:var(--gold);height:132px;display:flex;align-items:center;gap:20px}.tutorial-success b{font:22px 'DM Sans',sans-serif}
@media(min-width:1450px){.game-table{height:445px}.table-center{inset:123px 110px 45px}.table-cards .playing-card{--width:88px}.table-cards.many .playing-card{--width:75px}.player-hand .playing-card{--width:102px}.player-hand{min-height:166px}}
@media(max-width:1100px){.game-layout{gap:22px;grid-template-columns:minmax(0,1fr) 210px}.game-aside{padding-left:20px}.scoreboard{padding:0 8px 15px}.score-team{gap:9px}.team-mark{display:none}.table-center{inset:123px 60px 45px}.four-players .table-center{left:85px;right:85px}.table-cards .playing-card{--width:62px}.table-cards.many .playing-card{--width:50px}.dealer-badge{display:none}.hero-card .playing-card{--width:173px}.hero-left{transform:translate(-70px,-9px) rotate(-19deg)}.hero-right{transform:translate(95px,20px) rotate(17deg)}.hero-orbit{width:330px;height:330px}}
@media(max-width:850px){.game-layout{display:block}.game-aside{border-left:0;padding:20px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px}.game-aside .aside-heading,.rule-reminder{display:none}.captured-count{border:0;align-self:start;padding:0}.history{padding:0}.history h3{margin-top:0}.history ol{min-height:0;margin:12px 0}.history li:nth-child(n+4){display:none}.game-table{height:390px}.table-cards .playing-card{--width:75px}.table-cards.many .playing-card{--width:60px}.game-shell{max-width:750px;padding:0 5vw 20px}.scoreboard{padding-bottom:20px}.hero-card .playing-card{--width:150px}.hero-orbit{width:290px;height:290px}}
@media(max-width:760px){.hero-card .playing-card{--width:123px}.hero-left{transform:translate(-69px,-5px) rotate(-18deg)}.hero-middle{transform:translate(0,-23px)}.hero-right{transform:translate(71px,5px) rotate(17deg)}.welcome-cards:hover .hero-left{transform:translate(-69px,-5px) rotate(-18deg)}.welcome-cards:hover .hero-right{transform:translate(71px,5px) rotate(17deg)}.hero-orbit{height:240px;width:240px}.hero-seal{left:calc(50% - 130px);bottom:2px;width:47px;height:47px;font-size:18px}.hero-seal span{font-size:9px}.welcome{padding-top:22px}.welcome-cards{height:235px;margin-top:0;margin-bottom:15px}.welcome-copy .text-button{font-size:12px}.in-game .topbar{height:67px}.in-game .brand{font-size:30px}.in-game .brand span{font-size:16px}.in-game .topbar .quiet{font-size:12px}.game-toolbar{height:63px}.game-shell{padding:0 4vw 15px}.score-team strong{font-size:31px;margin-left:5px}.opposing strong{margin:0 5px 0 0}.score-team>div>span{font-size:13px}.score-team small{font-size:10px}.score-divider{font-size:10px}.scoreboard{height:70px;padding:0 3px 16px}.game-table{height:365px;border-width:5px;border-radius:110px}.table-stitch{border-radius:102px;inset:6px}.table-center{inset:123px 25px 38px}.four-players .table-center{left:58px;right:58px}.table-cards{gap:7px}.table-cards .playing-card{--width:60px}.table-cards.many .playing-card{--width:48px}.seat-top{top:15px}.seat-head b{font-size:12px}.seat-head small{font-size:10px}.seat-head .avatar{width:30px;height:30px;font-size:15px}.seat-left{left:8px;top:155px}.seat-right{right:8px;top:155px}.seat-left .opponent-hand,.seat-right .opponent-hand{display:none}.seat-left .seat-head small,.seat-right .seat-head small{display:none}.seat-left .seat-head b,.seat-right .seat-head b{font-size:10px}.deck-indicator{left:18px;top:52px;gap:8px}.deck-indicator span{font-size:9px}.deck-indicator .card-back{width:25px}.deck-indicator b{font-size:12px}.hand-zone{padding-top:20px}.turn-line b{font-size:13px}.player-hand{margin-top:19px;gap:6px;min-height:127px}.player-hand .playing-card{--width:76px}.announce-panel{gap:10px;padding-top:8px}.announce-panel>span{font-size:12px}.announce-panel .compact{padding:10px 14px;font-size:12px}.hand-hint{font-size:12px}.game-aside{margin-top:14px}.last-taker{font-size:10px}.game-toolbar .quiet{font-size:22px}.game-toolbar .menu-label{font-size:12px}.round-info{font-size:14px}.round-info span{font-size:10px}.icon-button{width:35px;height:35px;font-size:19px}dialog{padding:29px 22px}dialog h2{font-size:30px}.tutorial-table .playing-card{--width:65px}.toast{bottom:15px;font-size:12px;padding:12px 15px}.result-scores strong{font-size:52px}.footer{font-size:11px}.empty-table small{font-size:10px}.empty-table p{font-size:12px}.opponent-hand{margin-top:8px;min-height:44px}.opponent-hand .card-back{width:29px}.table-monogram{font-size:66px}}
@media(max-width:760px){.four-players .table-cards.many{gap:6px}.four-players .table-cards.many .playing-card{--width:38px}}
@media(max-width:380px){.game-table{height:340px}.table-cards .playing-card{--width:51px}.table-cards.many .playing-card{--width:42px}.four-players .table-cards.many .playing-card{--width:35px}.player-hand .playing-card{--width:68px}.score-team>div>span{font-size:11px}.score-team strong{font-size:27px}.score-team small{font-size:9px}.table-center{top:113px}.game-aside{grid-template-columns:1fr}.captured-count{max-width:240px}.tutorial-table .playing-card{--width:55px}.brand span{display:none}}
