:root{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#142854;background:#f4f5f9;font-synthesis:none;--navy:#10286c;--blue:#335ff0;--gold:#ffe35c;--muted:#7b87a3;--line:#e3e7f0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #e3ac0e;outline-offset:4px}button{transition:transform .16s,box-shadow .16s,background .16s}button:hover:not(:disabled){filter:brightness(1.035)}button:active:not(:disabled){transform:scale(.97)}h1,h2,h3,p{margin-top:0}p{line-height:1.6}a{color:var(--blue)}.site-header{max-width:1280px;margin:auto;height:100px;display:flex;align-items:center;padding:0 44px;gap:28px}.wordmark{background:transparent;color:var(--navy);font-weight:1000;font-style:italic;font-size:41px;letter-spacing:-3px;line-height:1;position:relative;padding:0}.wordmark span{color:#f3be24}.wordmark i{position:absolute;right:-2px;top:-14px;font-size:21px;transform:rotate(12deg)}.header-note{font-size:10px;letter-spacing:2px;font-weight:850;color:#8a94ac}.site-header nav{margin-left:auto;display:flex;gap:9px}.icon-btn{width:43px;height:43px;border:1px solid #dce1ec;border-radius:50%;background:#fff;color:#526287;font-weight:800;font-size:18px}main{max-width:1192px;margin:auto;padding:12px 28px 40px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:850;color:var(--blue);margin-bottom:12px}.subtle{color:var(--muted);font-size:14px}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center;padding:26px 0 38px}.hero h1{font-size:clamp(40px,4.7vw,64px);letter-spacing:-3px;line-height:1.07;margin:0 0 20px}.hero h1 em{font-style:normal;color:var(--blue)}.hero p{max-width:390px;color:#7583a0}.art{position:relative}.art img{width:100%;border-radius:26px;display:block;transform:rotate(3deg);box-shadow:0 22px 44px #113b781c}.art-tag{position:absolute;bottom:-14px;left:22px;background:var(--gold);padding:12px 18px;border-radius:12px;color:#142854;font-weight:800;font-size:12px;box-shadow:0 6px 0 #dec44d;transform:rotate(-3deg)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0}.section-heading h2{font-size:20px;letter-spacing:-.5px;margin:0}.section-heading span{font-size:12px;color:#8490a6}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mode{border:1px solid var(--line);background:#fff;border-radius:20px;padding:21px;text-align:left;color:var(--navy);position:relative;min-height:150px}.mode.selected{border:2px solid var(--blue);padding:20px;background:#f0f4ff;box-shadow:0 6px 18px #3157bf0a}.mode-icon{display:grid;place-items:center;width:40px;height:40px;font-size:23px;background:#edf0fe;border-radius:13px;margin-bottom:15px}.mode:nth-child(2) .mode-icon{background:#fff1bc}.mode:nth-child(3) .mode-icon{background:#e4f3ee}.mode strong{font-size:16px;display:block}.mode small{font-size:12px;color:#7f8aa3;display:block;margin-top:5px}.mode-check{position:absolute;right:18px;top:20px;width:17px;height:17px;border:1px solid #d8dfed;border-radius:50%}.selected .mode-check{background:var(--blue);border:4px solid #c6d4ff}.setup-panel{display:flex;gap:18px;align-items:end;background:white;border:1px solid var(--line);border-radius:18px;margin-top:15px;padding:20px}.field{display:flex;flex-direction:column;gap:7px;flex:1;font-size:12px;font-weight:750;min-width:0;color:#566783}.field input,.field select{width:100%;height:47px;background:#f7f8fc;border:1px solid #e2e7f1;border-radius:10px;padding:0 12px;color:#142854;font-size:14px;min-width:0}.field input:focus,.field select:focus{background:white}.primary,.secondary,.text-button{min-height:46px;padding:12px 20px;font-size:14px;font-weight:800;border-radius:12px}.primary{background:var(--navy);color:white;white-space:nowrap}.primary.gold{background:var(--gold);color:var(--navy);box-shadow:0 4px 0 #d8bb37}.secondary{background:#edf1fc;color:var(--navy)}.text-button{background:transparent;color:#647493}.primary:disabled,.secondary:disabled{opacity:.4}.friends-actions{display:flex;gap:10px}.local-names{display:flex;gap:8px;flex:3}.micro-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0 0;padding-top:25px;border-top:1px solid var(--line)}.micro-guide div{display:flex;gap:12px;align-items:center;font-size:12px;color:#7886a0}.micro-guide b{font-size:18px;color:#b1bfdc;font-weight:850}.site-footer{max-width:1136px;margin:0 auto;padding:14px 0 26px;display:flex;justify-content:space-between;color:#9aa4b8;font-size:10px;letter-spacing:1px}.footer-star{color:#d2af20;margin:0 8px}.resume{padding:12px 18px;background:#e8efff;border-radius:12px;display:flex;justify-content:space-between;align-items:center;margin:0 0 15px;font-size:13px}.resume button{background:transparent;color:var(--blue);font-weight:800;padding:8px}.match-head{display:flex;align-items:center;justify-content:space-between;padding:6px 0 20px;gap:10px}.match-head h1{font-size:23px;margin:0;letter-spacing:-.6px}.match-head .eyebrow{margin-bottom:7px;font-size:10px}.badge{display:inline-block;border-radius:20px;background:#e5ebf8;padding:6px 10px;color:#65799e;font-size:11px;font-weight:750}.badge.online{background:#e4f4eb;color:#338067}.badge.warning{background:#fff0c6;color:#876514}.game-shell{background:radial-gradient(ellipse at 50% 0,#2a56c9,#153886 60%,#102b70);border-radius:28px;box-shadow:0 16px 35px #1636811a;color:white;overflow:hidden;position:relative}.opponents{display:flex;gap:12px;justify-content:center;padding:22px 24px;background:#071d5a25;border-bottom:1px solid #ffffff12}.opponent{background:#ffffff08;border:1px solid #ffffff16;border-radius:14px;padding:11px 15px;color:white;display:flex;align-items:center;gap:10px;min-width:150px;text-align:left}.opponent.active{border-color:#ffe35c80;background:#ffe35c15}.avatar{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;background:#6182d140;border:1px solid #ffffff18;border-radius:50%;color:#dfebff;font-size:13px;font-weight:850}.opponent strong{font-size:13px;display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opponent small{font-size:10px;display:block;color:#9db5e8;margin-top:4px}.opponent .op-score{font-size:20px;font-weight:900;margin-left:10px;color:#fff}.table-content{padding:24px 34px 28px;display:grid;grid-template-columns:1fr 330px;gap:30px;align-items:center}.play-space{display:flex;flex-direction:column;align-items:center;min-width:0}.turn-status{text-align:center;min-height:67px}.turn-status .eyebrow{color:#9cb7f6;font-size:10px;margin-bottom:7px}.turn-status h2{font-size:19px;margin:0;letter-spacing:-.3px}.turn-status h2 span{color:var(--gold)}.deck-zone{display:flex;align-items:center;justify-content:center;gap:25px;margin:13px 0 22px;position:relative}.pile-wrap{text-align:center;width:85px}.pile-wrap>span{display:block;color:#9fb7ec;font-size:11px;margin-top:12px}.pile-wrap>span b{color:#dce8ff;font-weight:700}.card{border:4px solid #fff;border-radius:12px;aspect-ratio:3/3.75;width:100%;position:relative;padding:0;display:grid;place-items:center;box-shadow:0 4px 0 #071a503d,0 8px 12px #061f641f;isolation:isolate;color:white;background:var(--cc,#6656ca);font-weight:950}.card.face{background:linear-gradient(130deg,#ffffff25,transparent 70%),repeating-linear-gradient(145deg,#ffffff09 0 16px,transparent 16px 32px),var(--cc)}.card .number{font-size:38px;font-weight:950;letter-spacing:-2px;line-height:1;font-style:italic;text-shadow:0 2px 1px #00000035}.card .corner{position:absolute;top:5px;left:6px;font-size:11px;line-height:1}.card .corner.bottom{top:auto;left:auto;bottom:5px;right:6px;transform:rotate(180deg)}.card.back{background:repeating-linear-gradient(45deg,#ffffff04 0 2px,transparent 2px 8px),linear-gradient(130deg,#4771d2,#21469f);border-color:#7899ee}.card.back:after{content:'';position:absolute;inset:5px;border:1px solid #ffffff21;border-radius:5px;z-index:-1}.back-label{font-style:italic;letter-spacing:-1px;font-size:24px;font-weight:1000}.back-label em{font-style:italic;color:var(--gold)}.back-label i{display:block;font-size:22px;color:var(--gold);text-align:center;margin:0 0 3px;line-height:1}.card:disabled{opacity:1}.card.interactive{cursor:pointer}.card.interactive:hover{transform:translateY(-4px);box-shadow:0 0 0 3px #ffe35c70,0 8px 16px #0002}.card.target{outline:2px dashed #ffe35c70;outline-offset:4px}.card.combo{box-shadow:0 0 0 2px var(--gold),0 0 22px #ffe35c25}.card.fresh{animation:reveal .3s ease-out}.card.peek{border-style:dashed;opacity:.8}.deck-button{box-shadow:4px 4px 0 #7899ee66,7px 7px 0 #7899ee22}.deck-button.can-draw{animation:invite 2.7s ease-in-out infinite}.discard-target{background:#ffffff05;border:2px dashed #6c8ed880;box-shadow:none;color:#8daaea}.discard-target .empty{font-size:26px;line-height:1}.discard-target.drop{border-color:var(--gold);box-shadow:0 0 25px #ffe35c12}.drawn-wrap{width:78px;display:flex;flex-direction:column;align-items:center;justify-content:center}.drawn-wrap .card{transform:rotate(5deg);box-shadow:0 0 30px #ffe35c25}.drawn-wrap small{color:#ffe781;font-size:10px;margin-top:12px}.drawn-empty{font-size:22px;color:#6789d3}.own-board{width:min(100%,310px);background:#ffffff07;border:1px solid #ffffff16;border-radius:19px;padding:16px 18px}.board-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px;font-size:12px}.board-label strong{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-label span{font-size:10px;color:#afc5f2}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.board-summary{display:flex;justify-content:space-between;margin:13px 0 0;font-size:11px;color:#a4bce9}.board-summary strong{color:white}.chips{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:13px;min-height:20px}.chip{font-size:10px;background:#ffe35c1a;color:#ffe58a;border:1px solid #ffe35c22;border-radius:6px;padding:4px 7px}.game-instruction{font-size:12px;color:#acc3f5;text-align:center;margin:16px 0 0;max-width:350px;min-height:19px}.side-panel{align-self:stretch;display:flex;flex-direction:column;gap:15px;padding-top:13px}.side-card{background:#061e5a38;border:1px solid #ffffff10;border-radius:18px;padding:23px}.side-card h3{font-size:14px;margin-bottom:20px;color:#e1eaff}.combo-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:11px 0;border-bottom:1px solid #ffffff0c;color:#afc4f1}.combo-row b{font-size:14px;color:#fff}.max9-callout{margin-top:18px;color:var(--gold);font-size:24px;font-weight:950;font-style:italic;display:flex;justify-content:space-between}.side-card p{font-size:11px;color:#91ace0;margin:8px 0 0}.score-row{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:12px}.score-row .avatar{width:27px;height:27px;font-size:11px}.score-row b{margin-left:auto;color:var(--gold);font-size:17px}.progress{height:4px;background:#ffffff10;border-radius:5px;margin-top:12px;overflow:hidden}.progress i{height:100%;background:var(--gold);display:block;border-radius:5px}.match-bottom{display:flex;justify-content:space-between;gap:10px;margin:15px 2px;font-size:11px;color:#91a0bc}.link-button{color:#5370ae;background:transparent;padding:0;font-size:11px}.rival-grid{max-width:270px;margin:20px auto}.lobby{max-width:560px;margin:35px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:25px;padding:32px}.lobby-symbol{width:68px;height:68px;display:grid;place-items:center;border-radius:23px;background:#fff3c4;font-size:32px;margin:0 auto 24px}.lobby h1{font-size:29px;letter-spacing:-1px}.room-code{font-family:ui-monospace,monospace;font-size:32px;letter-spacing:5px;font-weight:850;background:#f0f4fd;padding:20px 8px;border-radius:15px;margin:18px 0 12px;color:var(--navy)}.lobby-actions{display:flex;gap:9px;margin-bottom:26px}.lobby-actions>*{flex:1}.members{display:grid;gap:8px;margin-bottom:24px;text-align:left}.member{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:13px;border-radius:12px;font-size:14px}.member .avatar{background:#e9edfa;color:var(--navy)}.member small{margin-left:auto;color:#90a0b7;font-size:11px}.waiting{color:#9aa7bc;border-style:dashed}.lobby .primary{width:100%}.connection{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;color:#8595b2;margin-top:16px}.spinner{width:12px;height:12px;border:2px solid #dae2f2;border-top-color:#476ac3;border-radius:50%;animation:spin 1s linear infinite}.network-banner{padding:12px 16px;background:#fff0c6;color:#7e601b;border-radius:12px;font-size:12px;margin-bottom:15px;display:flex;justify-content:space-between;align-items:center}.network-banner button{background:transparent;font-weight:800;color:inherit}.results{margin:26px 0}.results h2{font-size:27px;letter-spacing:-.7px}.result-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.result{background:#fff;border:1px solid var(--line);border-radius:19px;padding:20px}.result h3{font-size:16px;margin-bottom:12px}.result .sum{font-size:37px;font-weight:950;color:var(--blue);letter-spacing:-1px}.result dl{font-size:12px;margin-bottom:0}.result dl div{display:flex;justify-content:space-between;margin:9px 0}.result dd{margin:0;font-weight:800}.result .total{border-top:1px solid var(--line);padding-top:12px}.result-actions{display:flex;gap:10px;margin-top:20px}.table-scroll{overflow:auto;margin-top:15px;border-radius:14px;border:1px solid var(--line);background:#fff}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}th{color:#8794ae}details{font-size:13px;margin:15px 0}summary{cursor:pointer;font-weight:750}dialog{padding:28px;border:0;border-radius:24px;max-width:550px;width:calc(100% - 28px);max-height:85dvh;overflow:auto;color:#142854;box-shadow:0 30px 90px #07163940}dialog::backdrop{background:#0b1c4d99;backdrop-filter:blur(5px)}.modal-close{float:right;width:34px;height:34px;border-radius:50%;background:#eef1f8;color:#6a7b9d;font-size:23px}dialog h2{font-size:25px;letter-spacing:-.7px;margin-top:14px}dialog p,dialog li{font-size:14px;color:#6e7f9f;line-height:1.65}dialog li{margin-bottom:12px}.field input,.field select{font-size:16px}dialog .field{margin:16px 0}dialog .primary{width:100%}.rule-bonuses{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-bonuses>div{background:#f0f4fc;padding:12px;border-radius:10px;font-size:12px;display:flex;justify-content:space-between;gap:8px}.rule-bonuses b{color:var(--blue)}.debug-options{border-top:1px solid var(--line);padding-top:15px}.debug-options button{margin:6px 0}.debug-options pre{font-size:11px;white-space:pre-wrap;word-break:break-word;background:#f5f7fb;padding:10px;border-radius:9px;max-height:250px;overflow:auto}.debug-options textarea{width:100%;height:180px;font:12px monospace;border:1px solid var(--line);border-radius:9px;padding:10px}.check{display:flex;gap:10px;align-items:center;font-size:13px;margin:15px 0}.check input{width:20px;height:20px}#toast{position:fixed;z-index:20;left:50%;bottom:max(25px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:90vw;width:max-content;pointer-events:none;background:var(--gold);color:var(--navy);font-weight:850;font-size:14px;padding:15px 23px;border-radius:14px;box-shadow:0 8px 30px #10245430;opacity:0;transition:opacity .18s;text-align:center}#toast.show{opacity:1;animation:bump .25s}.toast-max{font-size:22px!important;font-style:italic}.small-link{display:inline-block;background:transparent;color:var(--blue);font-size:12px;padding:10px}.mobile-bonus{display:none}@keyframes reveal{from{transform:rotateY(80deg);opacity:.4}to{transform:rotateY(0);opacity:1}}@keyframes invite{50%{box-shadow:4px 4px 0 #7899ee66,7px 7px 0 #7899ee22,0 0 22px #8aa9ff35}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes bump{from{scale:.9}to{scale:1}}
@media(max-width:950px){.table-content{grid-template-columns:1fr 260px;padding:22px;gap:20px}.hero{gap:30px}.hero h1{font-size:47px}.setup-panel{flex-wrap:wrap}.setup-panel>.primary{flex:1}.header-note{font-size:9px}.site-footer{padding:14px 28px 26px}.opponent{min-width:0;padding:10px}.opponent strong{max-width:95px}}
@media(max-width:650px){.site-header{height:78px;padding:0 22px}.wordmark{font-size:34px}.wordmark i{font-size:18px;top:-12px}.header-note{display:none}.icon-btn{height:40px;width:40px;font-size:16px}main{padding:3px 18px 25px}.hero{display:block;padding:13px 3px 18px;position:relative}.hero h1{font-size:39px;letter-spacing:-1.8px;max-width:320px;margin-bottom:12px}.hero p{font-size:14px;max-width:290px;margin-bottom:8px}.hero .eyebrow{font-size:10px;margin-bottom:11px}.art{display:none}.section-heading{margin:13px 0}.section-heading h2{font-size:17px}.section-heading span{font-size:11px}.modes{gap:8px}.mode{border-radius:15px;padding:13px 10px;min-height:125px}.mode.selected{padding:12px 9px}.mode-icon{width:34px;height:34px;font-size:19px;border-radius:11px;margin-bottom:11px}.mode strong{font-size:13px}.mode small{font-size:11px;line-height:1.45;max-width:83px}.mode-check{width:12px;height:12px;right:10px;top:14px}.selected .mode-check{border-width:3px}.setup-panel{padding:15px;gap:12px;border-radius:15px;margin-top:10px}.setup-panel .field{flex-basis:40%;font-size:12px}.setup-panel .primary{flex-basis:100%;min-height:49px}.setup-panel .friends-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.friends-actions>*{padding:12px;font-size:13px}.local-names{flex-wrap:wrap;flex-basis:100%}.local-names .field{flex-basis:40%}.micro-guide{gap:10px;margin-top:23px;padding-top:18px}.micro-guide div{font-size:11px;gap:7px;align-items:flex-start;line-height:1.5}.micro-guide b{font-size:14px}.site-footer{padding:0 22px 24px;font-size:9px;justify-content:center}.site-footer>span:last-child{display:none}.match-head{padding:5px 1px 14px}.match-head h1{font-size:19px}.match-head .eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:5px}.badge{font-size:11px;padding:5px 8px}.game-shell{border-radius:23px;margin:0 -4px}.opponents{padding:13px 12px;gap:7px}.opponent{padding:8px;gap:6px;border-radius:11px;flex:1;max-width:270px}.opponent .avatar{width:28px;height:28px;font-size:12px}.opponent strong{font-size:12px;max-width:95px}.opponent small{font-size:10px;margin-top:3px}.opponent .op-score{font-size:17px;margin-left:auto}.opponents.many .opponent{display:block;text-align:center}.opponents.many .opponent .avatar{display:none}.opponents.many .opponent .op-score{font-size:15px;margin-top:3px}.opponents.many .opponent strong{max-width:100%;font-size:11px}.table-content{display:block;padding:16px 17px 19px}.side-panel{display:none}.turn-status{min-height:43px}.turn-status .eyebrow{font-size:10px;margin-bottom:5px}.turn-status h2{font-size:16px;letter-spacing:0}.deck-zone{gap:25px;margin:13px 0 19px}.pile-wrap{width:62px}.pile-wrap>span{margin-top:8px;font-size:11px}.pile-wrap .number{font-size:29px}.pile-wrap .back-label{font-size:19px}.pile-wrap .back-label i{font-size:16px}.drawn-wrap{width:62px}.drawn-wrap .number{font-size:29px}.drawn-wrap small{font-size:10px;margin-top:9px}.own-board{width:min(100%,279px);padding:12px 15px;border-radius:16px}.board-label{margin-bottom:10px;font-size:12px}.grid{gap:8px}.card{border-radius:10px;border-width:3px}.card .number{font-size:34px}.card .corner{font-size:10px;top:4px;left:5px}.card .corner.bottom{bottom:4px;right:5px}.back-label{font-size:23px}.back-label i{font-size:18px}.board-summary{font-size:11px;margin-top:11px}.chips{margin-top:9px;min-height:0}.game-instruction{font-size:12px;margin-top:12px;max-width:290px}.mobile-bonus{display:flex;justify-content:center;gap:10px;padding:13px 3px 0;font-size:10px;color:#8191ae}.mobile-bonus b{color:#47608e}.match-bottom{font-size:11px;align-items:center}.match-bottom .link-button{font-size:11px}.result-cards{grid-template-columns:1fr 1fr;gap:9px}.result{padding:14px}.result h3{font-size:14px}.result .sum{font-size:30px}.result dl{font-size:12px}.result-actions{flex-wrap:wrap}.result-actions>*{flex:1;font-size:13px}.lobby{padding:24px 20px;margin:20px 0}.lobby h1{font-size:27px}.room-code{font-size:27px;letter-spacing:3px}.lobby-actions>*{font-size:13px;padding:12px 9px}dialog{padding:24px}.network-banner{font-size:12px}.card.target{outline-offset:2px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.hero h1{font-size:35px}.game-shell{margin:0}.table-content{padding:14px}.own-board{width:250px}.card .number{font-size:30px}.deck-zone{margin-bottom:15px}.mode strong{font-size:12px}.mode small{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
