/* DECKZA portrait-first visual system. Engine, rules and storage are unchanged. */
:root{--bg:#11101b;--panel:#21162d;--raised:#302044;--line:#554161;--cream:#f7f3e9;--muted:#beb5cb;--lime:#d5ff57;--orange:#ff784b;--violet:#a950e8;--cyan:#80e4f2;--red:#bd2244;--radius:18px;background:var(--bg)}
:root[data-table-look]{--lime:#d5ff57}
body{background:radial-gradient(ellipse at 65% 6%,#742c9a30,transparent 55%),radial-gradient(ellipse at 10% 70%,#32275d33,transparent 50%),var(--bg);min-width:280px;min-height:100svh}
button{border-radius:12px;background:linear-gradient(155deg,#32243e,#20162c);border-color:#715080;font-weight:700;transition:background .18s,border-color .18s;min-height:44px}
button:hover:not(:disabled){filter:brightness(1.13);border-color:#c183e0}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
button.primary{background:linear-gradient(140deg,#e5ff83,#caff36);color:#171b0e;border-color:#e1ff8a;box-shadow:0 2px 0 #7b9934,0 0 22px #d5ff570c}button.orange{background:linear-gradient(140deg,#8732b0,#47235e);color:#fff0ff;border-color:#bb6bd7}.secondary{background:#251b3099}.text-button{background:transparent;border-color:transparent}.icon-button{width:46px;padding:10px;display:grid;place-items:center;flex:none}.icon-button svg,svg{width:23px;height:23px;flex:none}.player-button{border-radius:50%;background:linear-gradient(130deg,#58306c,#20162c);font-size:24px;overflow:hidden}.player-button img{height:100%;width:100%;object-fit:cover;border-radius:50%}
h1,h2,h3,h4,.brand{letter-spacing:.1px}h2{font-size:clamp(28px,4vw,42px)}h4{font-size:17px;margin:10px 0}.eyebrow{color:var(--cyan);font-size:10px;letter-spacing:1.8px}.shell{max-width:1200px;padding-inline:28px}.topbar{height:84px;padding:14px 0;border-bottom:1px solid #8c63a52b;gap:18px;flex-wrap:nowrap}.brand{display:flex;gap:6px;align-items:center;transform:none;font-size:28px;line-height:1;white-space:nowrap;position:relative;font-style:italic}.brand-word{text-shadow:0 2px #8c3ec3;font-weight:900;letter-spacing:-.5px}.brand-symbol{color:#edbcff!important;font-size:34px;filter:drop-shadow(0 0 7px #b94fff)}.brand:after{content:'';height:2px;background:linear-gradient(90deg,#e4a9ff,#9e4cdb,transparent);position:absolute;bottom:-5px;left:30px;right:0;transform:rotate(-3deg)}.toplinks{flex-wrap:nowrap;margin-left:auto;gap:8px}.toplinks button{font-size:11px;min-height:44px}.toplinks #table-style{display:flex;gap:5px;align-items:center;padding:8px}.toplinks #profile{padding:5px;font-size:24px;width:44px}.toplinks #profile img{width:32px;height:32px}.footer{border-color:#8b63a62b;letter-spacing:0;text-transform:none;font-size:11px;padding:18px 0;margin-top:22px}.bottom-nav{display:flex;justify-content:center;gap:12px;padding:14px 0 22px}.bottom-nav button{display:flex;align-items:center;gap:8px;background:transparent;border-color:transparent;font-size:12px;color:var(--muted)}.bottom-nav button[aria-current=page]{color:var(--lime)}
.home-hero{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'copy art' 'actions art';gap:12px 50px;align-items:center;padding:45px 0 20px;min-height:490px}.home-copy{grid-area:copy}.home-copy h1{font-size:clamp(65px,7vw,96px);line-height:.93;letter-spacing:-1px;margin:20px 0 18px;text-transform:none}.home-copy h1 span{color:var(--cream)}.home-copy>p{font-size:17px;color:var(--muted);margin:12px 0}.home-player{display:flex;gap:12px;align-items:center;margin-top:20px;font-size:13px}.home-player .avatar{border:1px solid #9d64b5;background:#3a2649;width:38px;height:38px}.home-player small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.home-actions{grid-area:actions;display:grid;gap:10px;max-width:480px;margin-top:14px}.home-actions>button.mode-action{display:flex;gap:16px;align-items:center;min-height:66px;padding:14px 18px;text-align:left;border:1px solid #805493;box-shadow:inset 0 1px #ead4ff20;background:linear-gradient(120deg,#392247,#21162d)}.home-actions>button.primary{background:linear-gradient(120deg,#e5ff83,#caff36);border-color:#e5ff83}.mode-action>svg{width:30px;height:30px;color:#dcb1f1}.mode-action.primary>svg{color:#25310e}.mode-action>span{font-size:18px;line-height:1.3;display:block}.mode-action small{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:4px}.mode-action.primary small{color:#46501f}.mode-action>b{margin-left:auto;font-size:30px;font-weight:400}.home-art{grid-area:art;width:100%;height:400px;max-width:480px;position:relative;background:none;align-self:center;justify-self:center;overflow:visible}.hero-logo{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:center;flex-direction:column;font:italic 900 64px/.9 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;transform:rotate(-7deg);filter:drop-shadow(0 5px 2px #0005)}.hero-logo .brand-symbol{font-size:62px;line-height:1;color:#ffbe8a!important;filter:drop-shadow(0 0 8px #ff7742)}.hero-logo .brand-word{white-space:nowrap;text-shadow:0 3px #672887,0 -1px #fff;letter-spacing:-1px}.hero-orbit{position:absolute;left:4%;right:4%;top:63%;height:90px;border:3px solid #d46bfa;border-radius:50%;box-shadow:0 0 12px #df6aff,inset 0 0 28px #aa3aeb,0 0 70px #9d31db66;transform:rotate(-9deg);background:radial-gradient(ellipse,#9a38d655,transparent 65%)}.home-card{position:absolute;top:40%;left:39%;transform:none}.home-card>.playing-card{width:125px;height:178px;box-shadow:0 10px 20px #0007,0 0 20px #d896f520}.home-card .corner{font-size:40px}.home-card .pip{font-size:62px}.home-card.hc-one{left:17%;top:41%;transform:rotate(-24deg)}.home-card.hc-two{left:38%;top:32%;transform:rotate(-2deg);z-index:2}.home-card.hc-three{left:58%;top:41%;transform:rotate(20deg);z-index:3}.home-seat{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#d8b3e8;font-size:10px;letter-spacing:3px;transform:none;background:none;border:0}.home-shortcuts{display:flex;justify-content:flex-start;gap:12px;margin:10px 0 24px}.home-shortcuts button{display:flex;align-items:center;gap:10px;padding:12px 18px;background:#21162d;color:#dfc2ef;border-color:#634670}.cosmetic-feature{display:flex;gap:22px;align-items:center;border:1px solid #814b9b;border-radius:18px;padding:22px 26px;background:radial-gradient(ellipse at 8% 40%,#71328e66,transparent 45%),linear-gradient(120deg,#30203c,#1c1426)}.cosmetic-feature h3{font-size:24px;text-transform:none;margin-top:5px}.cosmetic-feature p{font-size:12px;color:var(--muted);margin:6px 0 0}.cosmetic-feature>button{margin-left:auto}.mini-back-fan{display:flex;padding-inline:10px;flex:none}.mini-back-fan i{display:grid;place-items:center;font-style:normal;font-size:22px;width:38px;height:56px;border:2px solid #d490f6;border-radius:6px;margin-left:-12px;background:repeating-linear-gradient(45deg,#392049 0 4px,#24152f 4px 8px);color:#e0bbf5;transform:rotate(-15deg)}.mini-back-fan i:nth-child(2){transform:translateY(-5px);border-color:#87e7ee;color:#87e7ee}.mini-back-fan i:nth-child(3){transform:rotate(15deg);border-color:#e5cf8d;color:#e5cf8d}
/* Shared sheets and screen surfaces */
dialog{background:linear-gradient(150deg,#2b1c37,#191323);border-color:#9664b0;border-radius:24px;box-shadow:0 0 0 1px #c690e519,0 24px 100px #000a;width:540px;max-width:min(94vw,720px);max-height:calc(100dvh - 32px);overflow:auto;padding:26px}dialog::backdrop{background:#0b0814d9;backdrop-filter:blur(10px)}.sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.sheet-heading h2{margin:8px 0 0}.sheet-heading>button{min-width:44px;min-height:44px;padding:10px}.menu-grid,.settings-list{display:grid;gap:8px}.menu-grid>button,.settings-list>button{display:flex;align-items:center;gap:14px;padding:16px;text-align:left;min-height:64px}.menu-grid>button>b,.settings-list>button>b{margin-left:auto}.menu-grid svg,.settings-list svg{color:#dca9f4}.settings-list small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.menu-grid>button span{flex:1}.setup,.room-panel,.sidebar,.hand-panel{background:linear-gradient(155deg,#281c34,#1e1729);border-color:var(--line);border-radius:20px;box-shadow:0 8px 24px #0002}.setup{padding:28px}.setup select,.setup input,dialog select,dialog input:not([type=checkbox]){background:#17111f;color:var(--cream);border:1px solid #765286;border-radius:10px;min-height:46px;padding:12px;width:100%}.setup input[type=checkbox],dialog input[type=checkbox]{accent-color:var(--lime)}.turn-time-control{background:#b26df10b;border-color:#6e4a82}.setup-options{border-color:#6e4a82;background:#2e203c44;border-radius:14px}.setup-options>summary,.appearance-options>summary{padding:16px;min-height:48px}.intro h1{font-size:clamp(64px,8vw,105px);line-height:.95;letter-spacing:-1px}.lobby{padding:36px 0;min-height:70vh;gap:44px;grid-template-columns:1fr minmax(320px,470px)}.friends-choice{max-width:880px;margin:25px auto 50px}.friends-choice>.eyebrow{display:block;margin-top:30px}.friends-choice h1{font-size:clamp(62px,9vw,100px);line-height:.95;margin:18px 0}.friends-choice>p{color:var(--muted)}.choice-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px}.choice-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;border-color:#9a61b3;border-radius:22px}.choice-card>strong{font:800 32px 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase}.choice-card>span:not(.choice-art){font-size:13px;line-height:1.5;color:var(--muted)}.choice-card>small{font-size:11px;color:var(--cyan)}.choice-card>b{margin-top:10px;color:var(--lime);font-size:13px}.choice-art{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;height:105px;border-radius:14px;background:radial-gradient(ellipse,#8f44c233,transparent 70%);color:#d999f1}.choice-art svg{width:70px;height:70px}.choice-art>span{font-size:42px}.online-art{color:var(--cyan);background:radial-gradient(ellipse,#32949d33,transparent 70%)}
.playing-card{background:linear-gradient(135deg,#fffdf7,#f3ecdf 80%);border:1px solid #e1d9c8;border-radius:10px;color:#202127;box-shadow:0 3px 0 #b7af9e,0 5px 10px #0004}.playing-card.red{color:#bf2348}.playing-card .corner{font-weight:900}.playing-card .corner small{line-height:1}.playing-card .pip{font-family:Georgia,serif}.playing-card.selected{border-color:#d5ff57!important;box-shadow:0 0 0 2px #d5ff57,0 0 15px #d5ff5755!important}.playing-card .order{background:#28380e;color:#e1ff87}.playing-card.back,:root[data-card-back=street] .playing-card.back{background-color:#281333;background-image:repeating-linear-gradient(45deg,transparent 0 6px,#de94ff18 6px 7px),repeating-linear-gradient(-45deg,transparent 0 6px,#de94ff18 6px 7px);border:4px solid #d49ae8;color:#f6e7ff;box-shadow:inset 0 0 0 2px #513063,0 3px 0 #64247c,0 0 14px #bc57e929}.playing-card.back strong{color:#f5e9ff;font-size:26px;transform:none;letter-spacing:.5px;font-style:italic;text-shadow:0 2px #9835bf}.playing-card.back strong span{color:var(--lime)!important}.draw-stack:before,.draw-stack:after{border-color:#8d5fa2;background:#422451}.discard-surface:before,.discard-surface:after{background:#e5ddcf;border-color:#b9b0a1}.avatar{background:#4b305d;border:1px solid #826294;border-radius:50%;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.seat{background:#21172df2;border:1px solid #79558d;box-shadow:0 5px 14px #0003;border-radius:15px}.seat.active{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime),0 0 18px #d5ff5720}.seat-fan span{background:repeating-linear-gradient(45deg,#6b3784 0 3px,#b37aca 3px 5px);border-color:#d2ace6}.arena:before{border-color:var(--table-wood,#614735);box-shadow:0 0 0 2px #98715c,inset 0 0 45px #0008,0 16px 35px #0004}.arena:after{content:'YOUR TABLE. YOUR MOVE.'}.wish-marker{background:#21132d;border-color:#c379e4;color:#f4e7ff}.wish-marker strong{color:#e6b8fb}.chip{background:#2a1a35;border-color:#80608f}.chip.warning{color:#ffcab4;border-color:#c77e67}.coach-panel{background:linear-gradient(110deg,#382148,#20162b);border-color:#a469c4;border-radius:16px}.coach-avatar{background:#5f3975;color:#eed4fb}.coach-why{background:#ad65db12;border-color:var(--cyan)}.rule-demo,.guide-power-choice,.guide-callout,.guide-custom-steps,.guide-custom-example,.rule-setting-note,.agreed-power,.rule-demo,.rank-card,.best-grid>div,.friend-table,.friends-empty,.friends-code,.friend-invite,.friend-player,.game-receipt,.opponent-row,.score-empty{background:#241830;border-color:#644776}.guide-mode-card,.guide-section,.guide-power,.guide-mini,.preview-notice,.bundle-preview,.empty-commerce{border-color:#725283}.guide-mode-card{background:linear-gradient(130deg,#392246,#23182e)}.guide-mode-card.current-mode{border-color:var(--lime)}.guide-mini,.guide-rank{background:#f5efe2;color:#26222d}.guide-red{color:#be2347!important}.guide-joker{background:#f8dc9b}.guide-caption,.guide-settings-note{color:var(--muted)}.guide-play-ways{border-color:#795393}.guide-heading h2{letter-spacing:0}.guide-table-settings>button{background:#392447;border-color:#805495}.rule-summary{color:var(--muted)}.rules-guide{background:transparent}.profile-editor,.receipts,.friends-hub,.scorebook{color:var(--cream)}.receipt-totals,.personal-bests,.rival-receipt,.rank-card,.room-member{border-color:#634773}.room-rule-choice{color:var(--cyan)}.room-code-display{font-size:32px;letter-spacing:4px;color:var(--lime)!important}.receipt-totals strong,.best-grid strong{color:var(--lime)}.results{margin:35px auto;max-width:700px}.results>h1{font-size:clamp(58px,10vw,94px)!important}.winner-crown{color:#e2c97c;text-shadow:0 0 24px #be8d4955}.results .podium-row{border-color:#624572;border-radius:12px;margin-bottom:8px;background:#2a1c35}.results .podium-row:first-child{background:linear-gradient(110deg,#dfff80,#c9f54c);color:#242b15}.match-highlights>div{background:#32213f;border-color:#765188;border-radius:15px}.results-actions{gap:10px;display:flex;flex-wrap:wrap;justify-content:center}.results-actions button{flex:1;min-width:150px}.profile-design-links{display:flex;gap:10px;margin-top:20px}.profile-design-links button{flex:1}.badge-summary{display:flex;gap:22px;align-items:center;padding:20px;border:1px solid #8758a0;border-radius:20px;background:radial-gradient(ellipse at left,#733c8e66,#24182f)}.badge-trophy svg{width:64px;height:64px;color:#d7a4f0}.badge-summary strong{font:800 45px 'Barlow Condensed',Impact,sans-serif;color:var(--lime)}.badge-summary strong small{font-size:24px;color:var(--muted)}.badge-summary p{font-size:12px;margin:5px 0;color:var(--muted)}.badge-filters,.shop-tabs,.gallery-tabs{display:flex;gap:5px;padding:5px;background:#17101f;border:1px solid #765087;border-radius:14px;margin:18px 0}.badge-filters button,.shop-tabs button,.gallery-tabs button{flex:1;min-height:44px;font-size:12px;padding:9px 8px;border-color:transparent;background:transparent;white-space:nowrap}.badge-filters button[aria-pressed=true],.shop-tabs button[aria-selected=true],.gallery-tabs button[aria-selected=true]{background:var(--lime);color:#202815;border-color:var(--lime)}.badge-catalogue{display:grid;gap:12px}.badge-tile{display:flex;gap:18px;padding:20px;background:#23172f;border:1px solid #60436d;border-radius:18px}.badge-medal{display:grid;place-items:center;flex:none;width:60px;height:66px;font-size:34px;background:linear-gradient(135deg,#45354d,#241b2a);color:#a493ad;clip-path:polygon(50% 0,95% 25%,90% 77%,50% 100%,10% 77%,5% 25%)}.badge-tile.is-earned .badge-medal{background:linear-gradient(135deg,#f7db91,#b28032);color:#45300f;filter:drop-shadow(0 0 8px #f9cd7a44)}.badge-tile.is-earned{border-color:#ae9655}.badge-state{font-size:10px;color:var(--cyan);text-transform:uppercase;letter-spacing:1px}.badge-tile h3{font-size:23px;margin:5px 0}.badge-tile p{font-size:12px;color:var(--muted);margin:6px 0}.badge-tile progress{width:100%;height:7px;accent-color:var(--lime)}.badge-tile small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.preview-notice{display:flex;align-items:center;gap:14px;background:#54316c33;border:1px solid #8757a0;padding:15px;border-radius:15px}.preview-notice>span{font-size:30px;color:var(--cyan)}.preview-notice small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:4px}.shop-screen>h3{font-size:28px}.shop-feature-art{height:180px;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse,#813ca855,transparent 68%);margin:10px 0 20px}.shop-feature-art>i{display:grid;place-items:center;width:85px;height:125px;border:3px solid #de9bfa;border-radius:12px;background:repeating-linear-gradient(45deg,#33173f 0 7px,#492154 7px 8px);font-style:normal;font-size:50px;color:#deb1f5;transform:rotate(18deg);box-shadow:0 0 22px #ad41dd88}.shop-feature-art>b{position:relative;z-index:1;font-size:70px;margin-left:-40px;margin-top:60px;color:#e8cc7a;text-shadow:0 4px #725228}.shop-orbit{position:absolute;width:250px;height:45px;border-radius:50%;bottom:5px;border:2px solid #ad5de5;box-shadow:0 0 25px #b650ed88}.shop-offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-offer-grid article,.bundle-preview,.empty-commerce{background:linear-gradient(140deg,#382147,#20172b);border:1px solid #86549e;border-radius:18px;padding:20px}.shop-offer-grid p{font-size:12px;color:var(--muted)}.shop-offer-grid button{font-size:12px;width:100%}.offer-icon svg{height:40px;width:40px;color:#d69ce9}.empty-commerce{margin-top:20px;text-align:center}.empty-commerce p{color:var(--muted);font-size:13px}.shop-screen p{line-height:1.7}.shop-screen #shop-content>h3{font-size:28px;margin:8px 0}.shop-screen #shop-content>p{color:var(--muted);font-size:14px}
/* Cosmetic designs are original CSS/vector treatments, not flattened reference screenshots. */
.gallery-stage{height:230px;border-radius:20px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,var(--preview-light),var(--preview-felt) 65%);border:9px solid #6c4a39;box-shadow:inset 0 0 35px #0008,0 0 0 1px #ad8065;margin:18px 5px 26px}.gallery-stage .preview-seat{position:absolute;top:10px;left:12px;background:#22182ed9;padding:5px 10px;border:1px solid #a87abe;border-radius:20px;font-size:11px}.gallery-stage .preview-cards{display:flex;gap:20px;align-items:center}.gallery-stage .playing-card{width:83px;height:119px;transform:rotate(7deg)}.gallery-preview-name{position:absolute;bottom:10px;font-size:13px;font-weight:700;text-align:center}.gallery-preview-name small{display:block;font-size:10px;font-weight:400;color:#eee4f1}.cosmetic-back{--back-color:#2a1535;--back-ink:#d7a1ee;display:flex;align-items:center;justify-content:center;flex-direction:column;width:80px;height:115px;background-color:var(--back-color);background-image:repeating-linear-gradient(45deg,transparent 0 5px,#d7a1ee22 5px 6px),repeating-linear-gradient(-45deg,transparent 0 5px,#d7a1ee18 5px 6px);border:4px solid var(--back-ink);outline:1px solid #f2d6ff55;outline-offset:-7px;border-radius:10px;color:var(--back-ink);box-shadow:0 4px 0 #0005}.cosmetic-back>span{font:34px Georgia,serif;filter:drop-shadow(0 0 7px currentColor)}.cosmetic-back strong{font:italic 900 13px/.95 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;text-align:center;margin-top:8px}.cosmetic-back[data-design=weave]{--back-color:#321045;--back-ink:#e57dff;background-image:repeating-linear-gradient(45deg,transparent 0 6px,#dc71fb33 6px 8px),repeating-linear-gradient(-45deg,transparent 0 6px,#dc71fb33 6px 8px)}.cosmetic-back[data-design=orbit]{--back-color:#0f2445;--back-ink:#8edfff;background-image:repeating-radial-gradient(circle at center,transparent 0 7px,#8edfff44 7px 8px,transparent 8px 14px)}.cosmetic-back[data-design=sunset-concept]{--back-color:#4e1939;--back-ink:#ff9d78}.cosmetic-back[data-design=emerald-concept]{--back-color:#123b30;--back-ink:#b6ee6f}.cosmetic-back[data-design=royale-concept]{--back-color:#392047;--back-ink:#eed293}.gallery-catalogue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cosmetic-tile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 8px;border-radius:16px;min-width:0;background:linear-gradient(145deg,#382147,#21162c);text-align:center}.cosmetic-tile[aria-pressed=true]{border:2px solid var(--lime);box-shadow:0 0 14px #d5ff5722;padding:15px 7px}.cosmetic-tile>strong{font-size:13px}.cosmetic-tile small{font-size:9px;color:var(--muted);line-height:1.5}.cosmetic-tile[aria-pressed=true] small{color:var(--lime)}.theme-catalogue{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-swatch{width:100%;height:85px;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse,#ffffff15,var(--swatch));border:6px solid #78543e;border-radius:50%;gap:3px;box-shadow:inset 0 0 20px #0006}.theme-swatch i{display:grid;place-items:center;width:22px;height:32px;background:#faf3e5;border-radius:3px;color:#242029;font:18px Georgia,serif;transform:rotate(-8deg)}.theme-swatch i+i{color:#b12242;transform:rotate(8deg)}.gallery-equip{display:flex;gap:12px;align-items:center;justify-content:space-between;position:sticky;bottom:-26px;background:#21152ef5;border-top:1px solid #79528c;padding:18px 0 10px;margin-top:18px;z-index:2}.gallery-equip>span{font-size:14px;font-weight:700}.gallery-equip small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:6px}.appearance-options{border:1px solid #644670;border-radius:14px}.style-try{padding:12px;display:flex;gap:6px;justify-content:center}.style-try button{font-size:12px}.appearance-options label,.appearance-options select,.appearance-options>p{margin-inline:16px;width:calc(100% - 32px)}
:root[data-card-back=weave] .playing-card.back{border-color:#df87fa;background-color:#341342;background-image:repeating-linear-gradient(45deg,transparent 0 7px,#dc71fb33 7px 9px),repeating-linear-gradient(-45deg,transparent 0 7px,#dc71fb33 7px 9px)}:root[data-card-back=orbit] .playing-card.back{border-color:#94dcf4;background-color:#11274a;background-image:repeating-radial-gradient(circle at center,transparent 0 7px,#8edfff44 7px 8px,transparent 8px 14px)}
/* A complete turn stays within the viewport. Long feed/rules/choice sheets scroll separately. */
body:has(.game-layout){height:100dvh;overflow:hidden}.shell:has(.game-layout){height:100dvh;max-width:1180px;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:calc(8px + env(safe-area-inset-bottom));overflow:hidden}.shell:has(.game-layout)>.topbar{height:60px;min-height:60px;flex:none;padding:8px 0}.shell:has(.game-layout)>.footer{display:none}.shell:has(.game-layout) .match-header{height:46px;min-height:46px;padding:4px 0;gap:8px;flex:none}.shell:has(.game-layout) .room-label{gap:8px;min-width:0}.shell:has(.game-layout) .room-label h2{font-size:23px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:550px}.shell:has(.game-layout) .room-label .eyebrow{font-size:9px}.shell:has(.game-layout) .match-header>button{min-height:40px;padding:8px 14px}.game-layout{flex:1;min-height:0;display:block;margin:0}.board{height:100%;display:grid;grid-template-rows:minmax(130px,1fr) auto;gap:8px}.arena,.coach-panel~.game-layout .arena{height:100%;min-height:0;max-width:960px;width:100%;margin:0 auto;max-height:none}.arena:before{inset:24px 10px;border-width:12px;border-radius:50%;background:radial-gradient(ellipse at 40% 35%,var(--felt-light,#42704f),var(--felt,#294b37) 72%)}.arena:after{font-size:12px;bottom:23%;letter-spacing:2px}.players{position:absolute;inset:0;display:block}.seat{min-width:92px;max-width:130px;padding:8px 10px;gap:8px}.seat .avatar{width:30px;height:30px;font-size:22px}.seat b{font-size:12px;display:block;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat small{font-size:10px;line-height:1.3}.seat-fan{bottom:-15px}.center-piles{padding:0;gap:38px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.center-piles .playing-card,.draw-stack:before,.draw-stack:after{width:85px;height:119px}.center-piles .corner{font-size:28px}.center-piles .pip{font-size:46px}.pile-label{font-size:9px;margin-top:9px}.suit-status,.coach-panel~.game-layout .suit-status{position:absolute;left:20%;right:20%;top:calc(50% + 83px);max-width:none;transform:none;bottom:auto;gap:5px}.wish-marker{padding:4px 8px}.hand-panel{position:relative;margin:0;padding:10px 14px;display:grid;grid-template-rows:34px 116px 24px 48px minmax(0,30px);gap:3px;max-height:none;min-height:0;border-radius:18px}.hand-heading{height:34px;padding:0 260px 0 0}.hand-heading h3{font-size:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hand-heading h3 span{display:none}.hand-heading>span{display:none}.hand-tools{position:absolute;top:7px;right:12px;display:flex;gap:6px;margin:0;height:40px}.hand-tools button{min-height:36px;font-size:11px;padding:6px 10px;border-radius:9px}.hand-tools .small{font-size:10px}.hand{padding:12px 3px 5px;min-height:0;height:116px;gap:8px;overflow-x:auto;overflow-y:hidden;align-items:flex-end}.hand .playing-card{width:68px;height:96px;min-height:0;padding:7px;flex-shrink:0}.hand .playing-card .pip{font-size:35px}.hand .playing-card .corner{font-size:26px}.hand .playing-card .corner small{font-size:14px}.hand .playing-card.selected{transform:translateY(-8px)}.selection-line{font-size:11px;padding:3px 0;min-height:0;height:24px;overflow:auto;white-space:nowrap;scrollbar-width:thin;color:#d2bade}.actions{display:grid;grid-template-columns:1fr 1fr .8fr 1.4fr;gap:8px;padding:4px 0 0;border-top:1px solid #785486}.actions button{margin:0!important;min-height:44px;padding:8px 10px;font-size:14px;border-radius:11px;white-space:nowrap}.notice{font-size:11px;min-height:0;max-height:30px;overflow:auto;padding:3px 0;line-height:1.4}.notice.error{color:#ffc1aa}.rivalry-score{padding:3px 0;font-size:10px;gap:8px;flex:none}.rivalry-score p{margin:0}.sidebar{display:block;position:fixed;right:max(18px,calc((100vw - 1140px)/2));top:111px;z-index:8;max-width:340px;max-height:65dvh;overflow:auto;margin:0;padding:12px;background:#23172ff5}.sidebar:not([open]){background:none;border:0;box-shadow:none;top:66px;right:max(92px,calc((100vw - 1000px)/2));padding:0;overflow:visible}.sidebar>summary{min-height:40px;cursor:pointer}.sidebar:not([open])>summary{font-size:0;width:40px;border:1px solid #715180;border-radius:10px;display:grid;place-items:center;background:#281a35}.sidebar:not([open])>summary:before{content:'≡';font-size:23px}.sidebar:not([open])>summary span{display:none}.coach-panel{flex:none;max-height:140px;overflow:auto;padding:12px;gap:12px;margin:4px 0 6px}.coach-copy h3{font-size:22px}.coach-copy p{font-size:12px;line-height:1.45;margin:7px 0}.coach-why{padding:7px}.coach-avatar{width:30px;height:30px;flex:none}.coach-actions button{font-size:12px;min-height:36px;padding:7px 10px}.coach-progress{margin-top:6px}.overlay{background:#160d22;backdrop-filter:none;z-index:50}.handover{padding:25px;border:1px solid #9564ad;border-radius:28px;background:radial-gradient(ellipse at top,#5a2d7233,#22162f)}.handover .big-icon{color:#d8a6ed}.handover h2{font-size:54px;line-height:.95}.turn-clock{border-color:#d5ff57;color:#d5ff57;background:#21152b;width:40px;height:40px;font-size:14px;margin-right:55px}.choice-table-preview{background:#1d1429}.card-flight .playing-card{border-radius:10px}.last-card-announcement{border-color:#e9c2fc;background:linear-gradient(135deg,#9b44be,#54276d);color:#fff4ff}.last-card-announcement strong{text-shadow:0 2px #3a184b}
@media(max-width:1000px){.toplinks #challenge-hall,.toplinks #friends-hub{display:none}.home-hero{gap:12px 25px}.hero-logo{font-size:54px}.home-card>.playing-card{width:105px;height:150px}.home-art{height:360px}}
@media(max-width:700px){.shell{padding-inline:16px}.topbar{height:70px;padding:10px 0;gap:12px;justify-content:space-between}.topbar>.brand{margin:auto;font-size:27px}.toplinks{margin:0;gap:0}.toplinks>button:not(#profile){display:none!important}.brand-symbol{font-size:31px}.topbar>#main-menu{width:42px;height:44px}.home-hero{display:flex;flex-direction:column;gap:0;padding:18px 0 0;min-height:0}.home-art{order:-1;grid-area:auto;width:min(100%,350px);height:230px;margin-bottom:0}.hero-logo{font-size:43px;top:0}.hero-logo .brand-symbol{font-size:42px}.hero-orbit{height:55px;top:66%;left:5%;right:5%;box-shadow:0 0 8px #df6aff,inset 0 0 16px #aa3aeb,0 0 35px #9d31db44}.home-card>.playing-card{width:76px;height:109px;padding:9px}.home-card .corner{font-size:29px}.home-card .pip{font-size:42px}.home-card.hc-one{left:20%;top:45%}.home-card.hc-two{left:40%;top:37%}.home-card.hc-three{left:59%;top:45%}.home-seat{font-size:8px;letter-spacing:2px;bottom:6px}.home-copy{text-align:center;width:100%}.home-copy>.eyebrow,.home-player,.desktop-break{display:none}.home-copy h1{font:italic 800 36px/1.1 'Barlow Condensed',Impact,sans-serif;margin:10px 0;letter-spacing:0}.home-copy h1 br{display:none}.home-copy h1 span{color:var(--cream)}.home-copy h1 span:before{content:' '}.home-copy>p{font-size:14px;line-height:1.5;max-width:300px;margin:10px auto 22px}.home-actions{width:100%;max-width:460px;margin:0;gap:10px}.home-actions>button.mode-action{min-height:64px;padding:13px 17px;border-radius:15px;gap:15px}.mode-action>span{font-size:17px}.mode-action small{font-size:10px}.mode-action>svg{width:29px;height:29px}.home-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.home-shortcuts button{background:transparent;border-color:transparent;flex-direction:column;gap:7px;padding:8px 3px;font-size:11px;color:#e2b9f2}.home-shortcuts svg{width:25px;height:25px}.cosmetic-feature{padding:16px;gap:14px;border-radius:18px;margin-bottom:20px}.cosmetic-feature h3{font-size:20px}.cosmetic-feature p{font-size:10px}.cosmetic-feature .eyebrow{font-size:8px}.cosmetic-feature>button{font-size:11px;min-height:40px;padding:8px}.mini-back-fan{padding:0 8px}.mini-back-fan i{width:26px;height:40px;font-size:15px;border-width:1px;margin-left:-10px}.home-shell{padding-bottom:90px}.home-shell>.footer{margin-bottom:0;font-size:9px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;border-top:1px solid #9962ad;background:#1e112bec;backdrop-filter:blur(18px);z-index:10;justify-content:space-around;gap:0;padding:7px max(10px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom))}.bottom-nav button{flex:1;flex-direction:column;gap:5px;padding:7px 2px;border-radius:12px;font-size:10px;min-height:54px;max-width:90px}.bottom-nav button svg{width:23px;height:23px}.bottom-nav button[aria-current=page]{background:#d5ff5710}.lobby{display:block;padding:25px 0}.intro{margin-bottom:25px}.intro h1{font-size:58px;line-height:.93;margin:16px 0}.intro h1 br{display:none}.intro p{font-size:13px;margin:10px 0}.intro .eyebrow{font-size:9px}.setup{padding:20px;border-radius:20px}.setup label{font-size:13px}.names{gap:10px}.setup>.primary{position:sticky;bottom:8px;z-index:2;min-height:52px;box-shadow:0 5px 20px #0007}.friends-choice{margin:20px 0}.friends-choice h1{font-size:60px}.choice-cards{grid-template-columns:1fr;gap:15px;margin-top:24px}.choice-card{display:grid;grid-template-columns:80px 1fr;gap:8px 18px;padding:20px}.choice-art{grid-column:1;grid-row:1 / 5;height:100%;display:flex;flex-direction:column;gap:0}.choice-art svg{height:54px;width:54px}.choice-art>span{font-size:25px}.choice-card>strong{font-size:29px;grid-column:2}.choice-card>span:not(.choice-art),.choice-card>small,.choice-card>b{grid-column:2;font-size:11px}.choice-card>b{margin-top:7px}.sheet-heading h2{font-size:31px}.shop-offer-grid{grid-template-columns:1fr}.shop-feature-art{height:140px}.gallery-stage{height:215px}.gallery-catalogue{gap:8px}.cosmetic-back{width:65px;height:95px;border-width:3px}.cosmetic-back strong{font-size:11px}.cosmetic-back>span{font-size:28px}.cosmetic-tile{padding:12px 5px;gap:8px}.cosmetic-tile[aria-pressed=true]{padding:11px 4px}.cosmetic-tile>strong{font-size:12px}.cosmetic-tile small{font-size:8px}.gallery-equip{bottom:-20px;padding-top:15px}.gallery-equip small{font-size:9px}.gallery-equip button{font-size:12px}.badge-tile{padding:15px;gap:13px}.badge-medal{width:45px;height:53px;font-size:28px}.badge-tile h3{font-size:22px}.badge-tile p{font-size:11px}.badge-tile small{font-size:10px}dialog{border-radius:22px;padding:20px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}dialog:has(.rules-guide){padding:0}.rules-guide{padding:20px 14px}.guide-content p{font-size:13px}.guide-table-settings>button{font-size:11px;min-height:44px}.guide-mode-card>strong{font-size:25px}.guide-mode-card>span:not(.guide-mode-art){font-size:11px}.guide-mode-card>small{font-size:10px}.friends-forms{grid-template-columns:1fr}.room-lobby-grid,.room-entry-grid{grid-template-columns:1fr}.results{margin:25px auto}.results h1{line-height:.9}.results-actions button{font-size:12px}.best-grid>div{padding:12px 9px}.profile-design-links button{font-size:12px}
.shell:has(.game-layout){padding-inline:10px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.shell:has(.game-layout)>.topbar{height:52px;min-height:52px;padding:4px 0;flex-wrap:nowrap}.shell:has(.game-layout)>.topbar .brand{font-size:23px}.shell:has(.game-layout)>.topbar .brand-symbol{font-size:26px}.shell:has(.game-layout)>.topbar button{min-height:44px;min-width:44px}.shell:has(.game-layout)>.topbar #profile{font-size:22px}.shell:has(.game-layout) .match-header{height:40px;min-height:40px;padding:0;align-items:center}.shell:has(.game-layout) .room-label{display:block;padding-right:85px}.shell:has(.game-layout) .room-label h2{font-size:19px;max-width:220px}.shell:has(.game-layout) .room-label .eyebrow{font-size:8px;letter-spacing:1px;line-height:1;margin-bottom:3px;display:block}.shell:has(.game-layout) .match-header>button{min-height:38px;padding:7px 11px;font-size:12px}.turn-clock{height:34px;width:34px;font-size:12px;flex:none;margin-left:auto;margin-right:42px}.shell:has(.game-layout) .match-header:has(.turn-clock) .room-label{padding-right:0;max-width:165px}.shell:has(.game-layout) .match-header:has(.turn-clock) .room-label h2{max-width:165px}.board{grid-template-rows:minmax(125px,1fr) auto;gap:6px}.arena:before{inset:22px 2px;border-width:9px}.arena:after{font-size:9px;bottom:25%;letter-spacing:1.5px}.seat{min-width:86px;max-width:108px;padding:6px 7px;gap:5px;border-radius:12px}.seat .avatar{width:26px;height:26px;font-size:20px;flex:none}.seat b{font-size:10px;max-width:65px}.seat small{font-size:9px;line-height:1.3}.seat-fan{bottom:-11px}.seat-fan span{width:9px;height:14px}.last-card-badge{font-size:8px!important}.center-piles{gap:25px}.center-piles .playing-card,.draw-stack:before,.draw-stack:after{width:69px;height:97px}.center-piles .corner{font-size:25px}.center-piles .pip{font-size:36px}.center-piles .back strong{font-size:22px}.pile-label{font-size:8px;letter-spacing:1.4px;margin-top:8px}.suit-status,.coach-panel~.game-layout .suit-status{top:calc(50% + 67px);left:12%;right:12%;gap:3px}.suit-status .chip{font-size:9px;padding:3px 7px}.wish-marker{padding:2px 6px;gap:5px}.wish-marker>strong{font-size:20px}.wish-marker span{font-size:8px}.wish-marker b{font-size:10px}.hand-panel{grid-template-rows:34px 106px 22px 46px minmax(0,29px);padding:8px 10px;gap:2px;border-radius:17px}.hand-heading{padding:0 205px 0 0;height:34px}.hand-heading h3{font-size:18px}.hand-tools{top:6px;right:9px;gap:4px;height:36px}.hand-tools button{font-size:10px;min-height:34px;padding:6px 8px}.hand-tools button:first-child{font-size:16px;min-width:34px;padding-inline:6px}.hand{height:106px;padding:12px 3px 4px;gap:6px;align-items:flex-end}.hand .playing-card{width:61px;height:86px;padding:6px;border-radius:8px}.hand .playing-card .corner{font-size:24px}.hand .playing-card .corner small{font-size:13px}.hand .playing-card .pip{font-size:30px}.hand .playing-card .order{width:18px;height:18px;line-height:18px;right:3px;top:3px;font-size:11px}.selection-line{height:22px;font-size:10px;padding:2px 0}.actions{gap:5px;padding-top:2px}.actions button{font-size:12px;min-height:44px;padding:7px 5px;white-space:normal;line-height:1.15;border-radius:10px}.notice{font-size:10px;line-height:1.35;max-height:29px;padding:2px 0}.sidebar:not([open]){right:79px;top:calc(54px + env(safe-area-inset-top))}.sidebar:not([open])>summary{width:36px;min-height:36px}.sidebar{top:100px;right:12px;max-width:calc(100vw - 24px);font-size:12px}.coach-panel{max-height:124px;padding:9px;gap:7px;margin:3px 0 5px;display:flex;flex-wrap:wrap}.coach-avatar{display:none}.coach-copy{flex:1;min-width:0}.coach-copy h3{font-size:19px}.coach-copy p{font-size:11px;line-height:1.4;margin:5px 0}.coach-copy .eyebrow{font-size:8px}.coach-why{padding:6px;margin:5px 0!important}.coach-actions{margin:0;display:flex;gap:6px;align-items:center}.coach-actions button{font-size:10px;padding:6px 9px;min-height:32px}.coach-progress{margin-top:4px}.rivalry-score{max-height:23px;overflow:auto}.rivalry-score .eyebrow{font-size:8px}.handover h2{font-size:47px}.handover .primary{min-height:54px}
}
@media(max-width:360px){.shell{padding-inline:12px}.home-art{height:205px}.home-copy h1{font-size:32px}.home-copy>p{font-size:13px}.home-actions>button.mode-action{padding:11px 14px;min-height:60px}.mode-action>span{font-size:16px}.mode-action small{font-size:9px}.hand-panel{padding-inline:7px;grid-template-rows:32px 98px 20px 46px minmax(0,27px)}.hand{height:98px;gap:5px}.hand .playing-card{width:55px;height:78px;padding:5px}.hand .playing-card .corner{font-size:22px}.hand .playing-card .pip{font-size:28px}.hand-heading{padding-right:190px}.hand-heading h3{font-size:16px}.hand-tools button{padding-inline:6px}.actions button{font-size:11px}.center-piles .playing-card,.draw-stack:before,.draw-stack:after{width:62px;height:87px}.center-piles .pip{font-size:30px}.center-piles .corner{font-size:23px}.center-piles .back strong{font-size:19px}.suit-status,.coach-panel~.game-layout .suit-status{top:calc(50% + 59px)}.seat{min-width:76px;max-width:95px;padding:5px}.seat .avatar{width:22px;height:22px;font-size:17px}.seat b{font-size:9px;max-width:56px}.seat small{font-size:8px}.badge-filters button,.shop-tabs button{font-size:10px;padding-inline:5px}.cosmetic-back{width:56px;height:82px}.gallery-catalogue{gap:6px}.gallery-equip>span{font-size:12px}.gallery-equip small{font-size:8px}.cosmetic-feature{padding:13px;gap:9px}}
@media(max-height:650px) and (max-width:700px){.home-art{height:175px}.home-card>.playing-card{width:63px;height:90px}.hero-logo{font-size:37px}.hero-logo .brand-symbol{font-size:35px}.home-copy h1{font-size:30px;margin-top:6px}.home-copy>p{margin-bottom:15px}.home-shortcuts{margin:14px 0}.coach-panel{max-height:92px}.coach-why{display:none}.coach-copy p{font-size:10px}.coach-actions button{min-height:30px}.hand-panel{grid-template-rows:30px 92px 20px 46px minmax(0,26px);padding-block:6px}.hand{height:92px}.hand .playing-card{height:76px;width:54px}.hand-heading h3{font-size:17px}.hand-tools button{min-height:30px}.shell:has(.game-layout)>.topbar{min-height:48px;height:48px}.shell:has(.game-layout) .match-header{min-height:37px;height:37px}.sidebar:not([open]){top:50px}.center-piles .playing-card,.draw-stack:before,.draw-stack:after{height:83px;width:59px}.center-piles .back strong{font-size:19px}.center-piles .pip{font-size:31px}.suit-status,.coach-panel~.game-layout .suit-status{top:calc(50% + 58px)}}
@media(min-width:701px) and (max-height:650px){.shell:has(.game-layout)>.topbar{height:52px;min-height:52px}.shell:has(.game-layout) .match-header{height:36px;min-height:36px}.hand-panel{grid-template-rows:30px 94px 20px 46px minmax(0,24px);padding-block:6px}.hand{height:94px}.hand .playing-card{height:78px;width:56px}.hand .playing-card .pip{font-size:28px}.hand .playing-card .corner{font-size:23px}.coach-panel{max-height:90px}.coach-why{display:none}.center-piles .playing-card,.draw-stack:before,.draw-stack:after{width:64px;height:89px}.center-piles .back strong{font-size:20px}.center-piles .pip{font-size:32px}.suit-status,.coach-panel~.game-layout .suit-status{top:calc(50% + 60px)}.sidebar:not([open]){top:54px}.seat{padding:5px 8px}.seat .avatar{width:24px;height:24px;font-size:18px}.seat b{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hero-orbit{box-shadow:0 0 5px #df6aff}.playing-card.selected{box-shadow:0 0 0 2px var(--lime)!important}}
.home-art{display:block}.brand .brand-word{color:var(--cream)}
.setup-mode-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.setup-mode-cards button{padding:14px 8px;display:flex;align-items:center;flex-direction:column;gap:6px;background:linear-gradient(140deg,#42264e,#23172f);border-color:#79538c;min-width:0}.setup-mode-cards button[aria-pressed=true]{border-color:var(--lime);box-shadow:0 0 0 1px #d5ff5755}.mode-card-symbol{font:30px Georgia,serif;color:#d7a7ed}.setup-mode-cards b{font-size:14px}.setup-mode-cards small{font-size:9px;color:var(--muted);line-height:1.5}.rule-category{border:1px solid #765485;border-radius:16px;margin:20px 0;background:#201529}.rule-category>summary{padding:15px;min-height:52px;cursor:pointer}.rule-category>summary>span{font-weight:700}.rule-category>summary>small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.power-editor{padding:0 10px 10px}.power-editor-row{border:1px solid #614371;border-radius:12px;background:#2a1c35;margin-top:7px}.power-editor-row>summary{display:flex;align-items:center;gap:12px;padding:10px;min-height:62px;cursor:pointer}.power-editor-row>summary:after{display:none}.power-editor-row>summary>span:last-child{margin-left:auto;color:#caa3e0;font-size:24px}.power-editor-row>summary small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.power-editor-row>div{padding:0 14px 14px}.rule-face{background:#faf1df;display:grid;place-items:center;border-radius:5px;color:#211827;width:32px;height:44px;font:800 21px 'Barlow Condensed',Impact,sans-serif}.power-editor-row select{width:100%}.hand-tools button,.coach-actions button,.match-header>button,.sidebar:not([open])>summary,.turn-time-presets button{min-height:44px;min-width:44px}.hand-tools{height:44px;top:3px}.shell:has(.game-layout) .match-header{height:46px;min-height:46px}.shell:has(.game-layout) .match-header>button{min-height:44px}.sidebar:not([open])>summary{min-height:44px;width:44px}.sidebar:not([open]){right:79px}.hand-heading{padding-right:215px}
@media(max-width:360px){.setup-mode-cards{gap:5px}.setup-mode-cards button{padding:12px 5px}.setup-mode-cards b{font-size:12px}.setup-mode-cards small{font-size:8px}.hand-heading{padding-right:200px}.hand-tools{right:6px;gap:3px}.hand-tools button{padding-inline:5px}.shell:has(.game-layout) .room-label h2{max-width:170px}}
@media(max-height:650px) and (max-width:700px){.shell:has(.game-layout) .match-header{height:44px;min-height:44px}.coach-actions button{min-height:44px}}
@media(max-width:360px){.arena:has(.seat:nth-child(6)) .center-piles{gap:16px}.arena:has(.seat:nth-child(6)) .center-piles .playing-card,.arena:has(.seat:nth-child(6)) .draw-stack:before,.arena:has(.seat:nth-child(6)) .draw-stack:after{width:50px;height:72px}.arena:has(.seat:nth-child(6)) .center-piles .corner{font-size:20px}.arena:has(.seat:nth-child(6)) .center-piles .pip{font-size:26px}.arena:has(.seat:nth-child(6)) .center-piles .back strong{font-size:16px}}
.sheet-heading{position:sticky;top:-26px;z-index:6;background:#24182f;padding-block:10px;border-bottom:1px solid #78518b55}.gallery-equip{background:#21152e}.sheet-heading h2{line-height:1}
@media(max-width:700px){.sheet-heading{top:-20px}}
.winner-crown{display:grid;place-items:center;width:112px;height:112px;border:1px solid #d7b866;border-radius:50%;background:radial-gradient(circle,#c59a3933,#36243b 65%);box-shadow:0 0 40px #c4952730,inset 0 0 0 8px #d9b8600d;margin:22px auto;position:relative}.winner-crown svg{width:63px;height:63px;stroke:#f3d58c;filter:drop-shadow(0 3px 2px #563918)}.winner-crown:after{content:'✦';position:absolute;right:0;top:3px;color:#f3d58c;font-size:24px}.results .winner-avatar{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:#34203f;border:2px solid #b787ce;box-shadow:0 0 0 7px #b787ce0a;margin:24px auto 16px;font-size:56px;overflow:hidden}.results .winner-avatar img{height:100%;width:100%;object-fit:cover}.results .rivalry-score{max-height:none;padding:12px;overflow:visible;border:1px solid #705182;border-radius:12px;background:#291c34;margin:18px 0}.results .rivalry-score p{display:block;font-size:12px;line-height:1.5}.shell:has(.game-layout)>.rivalry-score{max-height:23px;overflow:auto}.coach-why{display:block!important}
.setup input[type=checkbox],dialog input[type=checkbox]{width:20px!important;height:20px;min-height:20px;flex:none;padding:0;border-radius:4px}.toggle label{flex:1}.toggle input{margin-left:14px}.rule-switch{align-items:flex-start;gap:12px}.rule-switch input{margin-top:3px}
.risky-category-content{padding:0 12px 12px}.risky-category .risky-switch{margin:0}.risky-category .risky-switch>.eyebrow{font-size:9px}
.online-hand-panel>.online-turn-status{position:absolute;right:14px;top:8px;max-width:50%;height:30px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;margin:0;color:var(--cyan)}.online-hand-panel .hand-heading{padding-right:48%}.online-hand-panel .hand-heading h3{font-size:18px}
@media(max-width:700px){.online-hand-panel>.online-turn-status{right:10px;top:8px;font-size:10px}.online-hand-panel .hand-heading h3{font-size:17px}}
@media(min-width:701px){.sidebar:not([open]){right:max(160px,calc((100vw - 1140px)/2 + 88px))}}
.startup-screen{min-height:100svh;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at center,#59237744,transparent 60%);padding:25px;text-align:center}.startup-spade{font:70px Georgia,serif;color:#e8b1f9;text-shadow:0 0 25px #b452e7}.startup-screen h1{font:italic 900 clamp(40px,8vw,68px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:0;margin:18px 0;text-shadow:0 3px #76339c}.startup-screen p{color:var(--muted);font-size:13px}
.wallet-home{display:block;margin:16px 0 0 auto;border-radius:24px;color:var(--lime);font-size:12px;padding:10px 18px}.wallet-balances{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wallet-balances article{padding:20px;background:#352143;border:1px solid #85619c;border-radius:16px}.wallet-balances strong{display:block;font:800 44px 'Barlow Condensed',Impact,sans-serif;color:var(--lime);margin:10px 0}.wallet-balances strong small{font-size:24px;color:var(--muted)}.wallet-balances article>small{display:block;font-size:11px;color:var(--muted)}.daily-reward-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:20px 0}.daily-reward-strip>div{background:#281a35;border:1px solid #705080;border-radius:10px;padding:12px 3px;text-align:center}.daily-reward-strip small,.daily-reward-strip span{display:block;font-size:9px;color:var(--muted)}.daily-reward-strip b{display:block;color:var(--lime);font-size:20px;margin:8px 0}.daily-reward-strip .claimed{border-color:var(--lime)}.feed-cards{display:flex;gap:6px;overflow:auto;padding:6px 3px 12px}.feed-cards .playing-card{width:50px;height:72px;min-width:50px;padding:5px;pointer-events:none}.feed-cards .corner{font-size:19px}.feed-cards .corner small{font-size:11px}.feed-cards .pip{font-size:25px}.feed-cards .card-foot{display:none}.choice-table-preview{gap:12px;flex-wrap:wrap}.choice-table-preview>div{max-width:110px}.entry-notice{padding:14px;border:1px solid #af91c2;border-radius:12px;background:#392348;font-size:12px}.record-fastest,.record-rival{padding:14px;border:1px solid #77558b;border-radius:12px;font-size:13px}@media(max-width:700px){.topbar{gap:6px}.topbar>.brand{font-size:21px}.topbar .brand-symbol{font-size:24px}.shell:has(.game-layout)>.topbar .brand{font-size:20px}.wallet-home{margin:12px auto 0}.choice-table-preview .playing-card{width:66px;min-width:66px;height:94px}.choice-table-preview small{font-size:10px}.choice-table-preview .pip{font-size:30px}.choice-table-preview .corner{font-size:23px}}@media(max-width:360px){.topbar>.brand,.shell:has(.game-layout)>.topbar .brand{font-size:17px}.topbar .brand-symbol{font-size:21px}.wallet-balances article{padding:13px}.wallet-balances strong{font-size:34px}.daily-reward-strip{gap:3px}.daily-reward-strip b{font-size:16px}.daily-reward-strip small,.daily-reward-strip span{font-size:8px}}
.waiting-practice-banner{font-size:11px;background:#3a2549;border:1px solid #a88bbc;border-radius:10px;padding:8px;margin:4px 0;flex:none}

.wallet-home>span,.wallet-home>small{display:block}.wallet-home>small{margin-top:5px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}#life-countdown,#life-full-countdown{font-variant-numeric:tabular-nums}

.title-crowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.title-crowns article{padding:14px 8px;border:1px solid #886898;background:#352143;border-radius:14px;text-align:center}.title-crowns span{display:block;color:var(--lime);font-size:36px}.title-crowns b,.title-crowns small{display:block;font-size:12px;margin:8px 0}.title-crowns small{color:var(--muted)}.title-offer,.coin-rival,.series-banner{padding:16px;margin:14px 0;border:1px solid #866794;border-radius:14px;background:#30203f}.title-offer button{margin:6px 4px 6px 0}.title-offer form{border-top:1px solid #705080;padding-top:12px}.title-offer label,.title-desk label{display:block;margin:12px 0;font-size:13px}.title-offer input[type=number],.title-desk input[type=number],.title-desk select{display:block;width:100%;margin-top:8px}.series-banner{border-color:var(--lime);font-size:13px}.series-banner small{display:block;color:var(--muted);margin:6px 0}.title-score{font:bold 60px 'Barlow Condensed',Impact,sans-serif;color:var(--lime)}.title-score small{display:block;font:14px Inter,Arial,sans-serif;color:var(--muted)}.watch-table{min-height:200px;background:radial-gradient(ellipse,#384d38,#172c25);border:8px solid #70513b;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0}.watch-card{display:inline-flex;flex-direction:column;justify-content:space-between;width:70px;min-width:70px;height:98px;padding:10px;border-radius:9px;background:#f4f0dc;color:#222820;box-shadow:0 3px #b6af90}.watch-card.red{color:#ba2549}.watch-card strong{font-size:38px;text-align:center}.watch-card small{font-size:9px}.watch-wish{font-size:24px;color:white}.watch-players{display:grid;grid-template-columns:1fr 1fr;gap:12px}.watch-players article{padding:14px;border:1px solid #705080;border-radius:14px}.watch-players .playing{border-color:var(--lime)}.watch-feed{padding:12px 0;border-bottom:1px solid #705080}.watch-feed>div{display:flex;gap:6px;overflow:auto;padding:10px 0}.watch-feed .watch-card{width:40px;min-width:40px;height:58px;padding:5px;font-size:12px}.watch-feed .watch-card strong{font-size:22px}

.starter-choice{border:1px solid #876495;border-radius:14px;margin:20px 0;padding:14px}.starter-choice legend{padding:0 8px;font-weight:bold}.starter-choice>div{display:flex;gap:8px;flex-wrap:wrap}.starter-choice button{flex:1;font-size:12px;white-space:nowrap}.starter-choice button[aria-pressed=true]{background:var(--lime);color:#192516;border-color:var(--lime)}.starting-announcement{position:fixed;top:75px;left:50%;transform:translateX(-50%);z-index:1500;pointer-events:none;max-width:90vw;padding:14px 24px;border-radius:16px;background:var(--lime);color:#172511;font-size:20px;font-weight:800;box-shadow:0 8px 24px #0005;text-align:center}.shell:has(.game-layout)>.series-banner{flex:none;margin:2px 0;padding:6px 10px;font-size:11px}.shell:has(.game-layout)>.series-banner p{margin:3px 0}.shell:has(.game-layout)>.series-banner small{display:none}

.feed-cards{align-items:center}.feed-card{display:inline-flex;flex:none;flex-direction:column;justify-content:space-between;width:50px;min-width:50px;height:72px;border-radius:7px;background:#f4f0dc;color:#242a24;border:1px solid #d1c9a6;box-shadow:0 2px #a9a68e;padding:6px}.feed-card b{font:800 21px 'Barlow Condensed',Impact,sans-serif;line-height:1}.feed-card strong{font-size:30px;line-height:1;text-align:center}.feed-card.red{color:#ba2549}.feed-card small{font-size:8px}.feed-arrow{font-size:14px;color:var(--muted)}.feed-entry>p{margin-bottom:4px}@media(max-width:700px){.feed-card{width:44px;min-width:44px;height:64px;padding:5px}.feed-card b{font-size:19px}.feed-card strong{font-size:27px}}

/* Coins and life shields are separate resources. */
.home-balances{display:flex;justify-content:flex-end;gap:12px;margin:16px 0 0}.balance-chip{display:flex;align-items:center;gap:12px;padding:10px 18px;min-width:130px;border-radius:18px;text-align:left}.balance-chip>svg{width:30px;height:30px;color:#ffd46d}.balance-chip>span{font-size:10px;color:var(--muted);display:block}.balance-chip strong{display:block;font-size:22px;line-height:1.2;color:#ffd46d}.balance-chip small{display:block;font-size:9px;margin-top:3px;font-variant-numeric:tabular-nums}#lives-home>svg,#lives-home strong{color:#ff8cb4}#coins-home{border-color:#a28241;background:#3e302d}#lives-home{border-color:#a45d86;background:#3c2243}.wallet-resource-title{display:flex;align-items:center;gap:8px}.wallet-resource-title svg{width:32px;height:32px}.wallet-balances .coin-panel{border-color:#bda258;background:linear-gradient(145deg,#42322e,#2f2137)}.coin-panel .wallet-resource-title,.coin-panel strong{color:#ffdc7e}.wallet-balances .lives-panel{border-color:#b36d96;background:linear-gradient(145deg,#44283f,#2d223d)}.lives-panel .wallet-resource-title,.lives-panel>strong{color:#ff97bc}.shield-scene{height:90px;position:relative;overflow:hidden;margin:2px -8px 8px}.shield-player{position:absolute;right:0;top:0;width:46%;height:78px}.shield-player img{width:100%;height:100%;object-fit:contain}.heart-shields{display:flex;position:absolute;left:1px;right:30%;top:34px;z-index:2;gap:1px;filter:drop-shadow(0 0 6px #ff75c1aa)}.heart-shield{flex:1;display:block;transform:rotate(-8deg)}.heart-shield svg{width:100%;height:27px;stroke-width:2.2}.heart-shield.charged svg{color:#ff8bb9;fill:#aa3e78}.heart-shield.empty{opacity:.28;filter:grayscale(1)}.shield-card{position:absolute;left:-24px;top:33px;font:bold 17px Georgia;background:#f4f0dc;color:#292828;width:22px;height:30px;border-radius:4px;transform:rotate(-15deg);text-align:center;padding:2px;opacity:0}.life-blocked .shield-card{animation:shield-block 1.2s ease-out both}.life-blocked .heart-shields{animation:shield-flash 1.2s ease-out}.life-hit .shield-card{animation:shield-hit 1.2s ease-out both}.life-hit .shield-player{animation:shield-ouch .7s .55s ease-in-out}.guest-about,.guest-entry-notice,.guest-rules{padding:16px;border:1px solid #7b5c94;border-radius:14px;margin:16px 0}.guest-entry-notice{border-color:#9ddbea;background:linear-gradient(120deg,#23404e,#30203f)}.guest-entry-notice p{font-size:13px;line-height:1.55;margin:8px 0}.guest-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.guest-facts>span{padding:12px 8px;background:#32243f;border:1px solid #735785;border-radius:12px;font-size:10px;text-align:center}.guest-facts b{display:block;color:var(--lime);font:800 28px 'Barlow Condensed',Impact,sans-serif;margin-bottom:5px}.guest-rules p{font-size:13px;line-height:1.7}.guest-about>.guest-rules{border:none;padding:8px 0;margin:0}.guest-about summary{cursor:pointer;font-weight:bold;color:var(--cyan)}
@keyframes shield-block{0%{left:-24px;opacity:0}15%{opacity:1}55%{left:25%;transform:rotate(20deg);opacity:1}100%{left:12%;top:-4px;transform:rotate(-100deg);opacity:0}}@keyframes shield-hit{0%{left:-24px;opacity:0}15%{opacity:1}65%{left:70%;opacity:1;transform:rotate(15deg)}100%{left:75%;top:50px;opacity:0;transform:rotate(75deg)}}@keyframes shield-flash{50%{filter:drop-shadow(0 0 14px #fff);transform:scale(1.08)}}@keyframes shield-ouch{25%,75%{transform:rotate(-8deg)}50%{transform:rotate(7deg)}100%{transform:none}}
/* Illustrated home fan: Ace / Jack / Joker. */
.home-art{height:450px}.home-card>.illustrated-hero-card{width:178px;height:252px;padding:0;position:relative;overflow:hidden;border:3px solid #ded2a4;background:radial-gradient(ellipse at 50% 70%,#dfb3ed77,#f5efdc 75%);border-radius:14px}.illustrated-hero-card img{position:absolute;left:3%;bottom:0;width:94%;height:91%;object-fit:contain;object-position:bottom}.hero-card-corner{position:absolute;top:8px;left:10px;z-index:2;font:900 34px/1 'Barlow Condensed',Impact,sans-serif;color:#29282c;text-shadow:0 1px #fff}.hero-card-corner.red{color:#b82247}.hero-card-corner small{display:block;font-size:16px;line-height:1.2}.hero-joker .hero-card-corner small{font:800 8px Inter,Arial,sans-serif;letter-spacing:.3px}.home-card.hc-one{left:7%;top:34%;transform:rotate(-16deg);z-index:1}.home-card.hc-two{left:34%;top:28%;transform:rotate(-2deg);z-index:3}.home-card.hc-three{left:61%;top:35%;transform:rotate(16deg);z-index:2}.hero-card-spark{position:absolute;bottom:35%;right:10%;font-size:24px;color:#fff4a0;filter:drop-shadow(0 0 8px #cf7af8);animation:hero-magic 3.5s ease-in-out infinite;pointer-events:none}.hero-jack .hero-card-spark{display:none}.hero-ace .hero-card-spark{animation-delay:1.4s}.hero-joker img{animation:joker-magic 5s ease-in-out infinite}.hero-orbit{top:68%}@keyframes hero-magic{0%,100%{opacity:.25;transform:scale(.65) rotate(-15deg)}50%{opacity:1;transform:scale(1.2) rotate(15deg)}}@keyframes joker-magic{0%,100%{filter:drop-shadow(0 0 0 #bd6fff00)}50%{filter:drop-shadow(0 0 8px #be6aff)}}
@media(max-width:1000px){.home-card>.illustrated-hero-card{width:142px;height:204px}.home-art{height:400px}}
@media(max-width:700px){.home-balances{justify-content:center;margin-top:12px;gap:8px}.balance-chip{flex:1;min-width:0;max-width:190px;padding:9px 12px;gap:8px}.balance-chip>svg{width:26px;height:26px}.balance-chip strong{font-size:19px}.balance-chip small{font-size:8px}.home-art{height:285px;width:min(100%,350px);margin-top:0}.home-card>.illustrated-hero-card{width:112px;height:158px;border-width:2px;border-radius:10px}.hero-card-corner{top:6px;left:6px;font-size:25px}.hero-card-corner small{font-size:12px}.hero-joker .hero-card-corner small{font-size:6px}.home-card.hc-one{left:7%;top:37%}.home-card.hc-two{left:34%;top:31%}.home-card.hc-three{left:61%;top:37%}.hero-logo{font-size:42px}.hero-card-spark{font-size:17px}.wallet-balances article{padding:14px 12px}.wallet-resource-title{gap:5px}.wallet-resource-title svg{width:26px;height:26px}.heart-shield svg{height:22px}.guest-rules{padding:13px}.guest-facts{gap:5px}}
@media(max-width:360px){.home-art{height:265px}.home-card>.illustrated-hero-card{width:99px;height:143px}.hero-logo{font-size:38px}}
@media(prefers-reduced-motion:reduce){.hero-card-spark,.hero-joker img,.shield-card,.heart-shields,.shield-player{animation:none!important}}

.coin-treasure{height:84px;position:relative;display:flex;align-items:center;justify-content:center;margin:2px 0 8px}.coin-treasure>svg{width:66px;height:66px;stroke:#ffdc7e;fill:#b97c242e;filter:drop-shadow(0 0 9px #efc74966)}.coin-treasure>i{position:absolute;right:13%;top:3px;font-size:20px;color:#fff1a2;font-style:normal}.coin-panel{position:relative}

@media(max-width:700px){.home-art .home-seat{display:none}}
:root[data-still-motion=true] .hero-card-spark,:root[data-still-motion=true] .hero-joker img,:root[data-still-motion=true] .shield-card,:root[data-still-motion=true] .heart-shields,:root[data-still-motion=true] .shield-player{animation:none!important}

/* Give each home character room, with an unmistakable rank and suit. */
.home-art{max-width:540px;height:460px}
.home-card>.illustrated-hero-card{width:160px;height:242px;border-color:#aa87b8;background:radial-gradient(ellipse at 50% 75%,#57356b,#24172f 78%);box-shadow:0 12px 24px #0008,inset 0 1px #f0ceff33}
.illustrated-hero-card img{left:1%;width:98%;height:84%;filter:drop-shadow(0 3px 7px #0005)}
.hero-card-corner{top:9px;left:11px;color:#f4e9d2;text-shadow:0 2px 3px #0007}
.hero-card-corner.red,.hero-card-suit.red{color:#ff7698}
.hero-card-suit{position:absolute;top:3px;right:10px;z-index:2;font:700 58px/1.1 Georgia,serif;color:#f4e9d2;text-shadow:0 2px 4px #0008;pointer-events:none}
.hero-joker .hero-card-suit{color:#e3b5ff;font-size:51px}
.home-card.hc-one{left:5%;top:34%;transform:rotate(-12deg)}
.home-card.hc-two{left:34%;top:28%}
.home-card.hc-three{left:63%;top:34%;transform:rotate(12deg)}
@media(max-width:1000px) and (min-width:701px){.home-card>.illustrated-hero-card{width:122px;height:186px}.home-art{height:400px}.hero-card-suit{font-size:46px}.hero-joker .hero-card-suit{font-size:41px}}
@media(max-width:700px){.home-art{width:min(100%,350px);height:300px}.home-card>.illustrated-hero-card{width:105px;height:158px}.home-card.hc-one{left:5%;top:39%}.home-card.hc-two{left:34%;top:33%}.home-card.hc-three{left:63%;top:39%}.hero-card-corner{top:7px;left:7px;font-size:26px}.hero-card-suit{top:3px;right:6px;font-size:40px}.hero-joker .hero-card-suit{font-size:35px}}
@media(max-width:360px){.home-art{height:280px}.home-card>.illustrated-hero-card{width:92px;height:143px}.hero-card-suit{font-size:36px}.hero-joker .hero-card-suit{font-size:32px}}

/* Six illustrated stamina poses follow the real life balance. */
.joker-energy-sprite{display:block;width:100%;height:100%;background-size:300% 200%;background-repeat:no-repeat;filter:drop-shadow(0 2px 3px #0004)}
.shield-player:has(.joker-energy-sprite){width:88px;height:88px;top:0;right:-4px}
.joker-energy-label{display:block;color:#edbed9!important;font-size:11px;margin:0 0 9px;line-height:1.4}
.life-refilled .shield-player{animation:joker-recharged .8s ease-out both}
.life-refilled .heart-shields{animation:shield-flash 1.2s ease-out}
@keyframes joker-recharged{0%{transform:translateY(8px) scale(.9);filter:brightness(.85)}45%{transform:translateY(-6px) scale(1.07);filter:brightness(1.25)}100%{transform:translateY(0) scale(1);filter:brightness(1)}}
@media(max-width:700px){.shield-player:has(.joker-energy-sprite){width:76px;height:76px;top:4px;right:-6px}}

.life-buy{display:block;width:100%;font-size:12px;margin:8px 0 12px;min-height:44px;padding:9px 7px}.rewarded-ad-offer{padding:16px;border:1px solid #85609b;border-radius:16px;margin:20px 0;background:#ae6ce70a}.rewarded-ad-offer h3{margin-top:0}.rewarded-ad-offer button{width:100%}.wallet-balances .lives-panel:has(.life-buy){display:flex;flex-direction:column}.lives-panel .life-buy{margin-top:auto}.lives-panel .shield-scene{flex:none}

.shop-economy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0}.shop-economy-grid article{padding:18px;border:1px solid #765287;border-radius:16px;background:#d5a5ef09}.shop-economy-grid article b{color:var(--cream);font-size:15px}.shop-economy-grid article p{font-size:12px;line-height:1.65;margin:9px 0 0;color:var(--muted)}

.hero-card-corner small{font:800 9px/1.4 Inter,Arial,sans-serif;letter-spacing:.5px;margin-top:3px}.jack-pickup-setting{padding:18px;border:1px solid #735282;border-radius:16px;margin:18px 0;background:#c398f40a}.avatar-build-preview{max-width:230px;margin:20px auto}.avatar-build-preview svg{display:block;width:100%;height:auto}.avatar-build-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.avatar-builder .dialog-actions{position:sticky;bottom:0;padding:12px 0;background:#21162df5}.avatar-build-controls label{font-size:12px}.avatar-build-controls select{margin-top:5px}@media(max-width:700px){.hero-card-corner small{font-size:6px}.avatar-build-preview{max-width:170px}}

.coach-navigation{display:flex;gap:10px;align-items:end;margin-top:10px}.coach-navigation button{min-height:44px}.coach-navigation label{font-size:10px;flex:1}.coach-navigation select{min-height:38px;font-size:12px;padding:7px}.board{position:relative}.table-replay-panel{position:absolute;inset:15% 9%;z-index:6;background:#20162eed;border:1px solid #b385d1;border-radius:22px;padding:24px;box-shadow:0 12px 50px #0009;overflow:auto;max-height:80%}.table-replay-panel h2{font-size:38px}.table-replay-panel p{font-size:13px;line-height:1.6}.practice-next-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.table-replay-panel input{width:auto}@media(max-width:700px){.table-replay-panel{inset:8% 5%;padding:16px;max-height:88%}.table-replay-panel h2{font-size:28px}.coach-panel{max-height:240px;overflow:auto}.coach-copy .coach-why{display:block;font-size:11px}.coach-actions{flex-wrap:wrap}.coach-navigation select{max-width:180px}}
/* Tournaments and rule-aware Coach entry. */
.tournament-setup{border:1px solid var(--border,#72537d);border-radius:18px;padding:18px;margin:18px 0;background:#c886f309}.tournament-setup legend{font-weight:800;color:var(--lime,#d4ff56);padding:0 8px}.tournament-toggle{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-weight:800}.tournament-toggle input{width:24px;height:24px}.tournament-toggle span{font-weight:400;color:var(--muted,#bbb)}.tournament-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border:1px solid #dd9cff;border-radius:16px;padding:14px 20px;margin:18px 0;background:linear-gradient(120deg,#45254f,#20162f)}.tournament-banner b{color:#e5b9ff}.tournament-banner span{font-size:14px}.tournament-stage h1{font-size:clamp(32px,6vw,68px);overflow-wrap:anywhere}.tournament-next{padding:22px;border:1px solid #d4ff56;border-radius:18px;background:#d4ff560b;margin:22px 0}.tournament-next strong{font-size:44px;color:#d4ff56}.tournament-watch{min-height:400px;margin-top:22px}.watch-player-list{position:absolute;top:14px;left:7%;right:7%;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.watch-player-list .room-member{padding:8px 12px;gap:12px}.tournament-watch .center-piles{top:62%}.tournament-standings .podium-row{gap:16px}.coach-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.coach-style-tile{display:flex;flex-direction:column;gap:14px;text-align:left;white-space:normal;padding:22px;border:1px solid #916aa3;border-radius:22px;background:linear-gradient(145deg,#3e2750,#1a1326);transition:transform .2s,border-color .2s;min-width:0}.coach-style-tile:hover,.coach-style-tile:focus-visible{transform:translateY(-4px);border-color:#d4ff56}.coach-style-tile strong{font-size:30px;color:#fff7e6}.coach-style-tile b{font-size:16px}.coach-style-tile>span:not(.coach-tile-art){font-size:14px;color:#c9bdd1;line-height:1.6}.coach-style-tile em{margin-top:auto;font-style:normal;color:#d4ff56}.coach-tile-art{display:flex;justify-content:center;align-items:center;gap:12px;min-height:120px;width:100%}.coach-tile-art .guide-mini{transform:rotate(-10deg);animation:coachCardFloat 3s ease-in-out infinite}.coach-tile-art .guide-mini:last-child{transform:rotate(10deg);animation-delay:-1.5s}.coach-tile-spark{font-size:32px;color:#d4ff56}.coach-style-tile.savage{background:linear-gradient(140deg,#4d2343,#24112d)}.coach-style-tile.custom{background:linear-gradient(140deg,#24454e,#18152c)}@keyframes coachCardFloat{50%{translate:0 -7px}}@media(max-width:650px){.coach-style-grid{grid-template-columns:1fr}.coach-style-tile{display:grid;grid-template-columns:100px 1fr;gap:9px 16px;padding:18px}.coach-tile-art{grid-row:1 / 6;min-height:100px;gap:4px}.coach-tile-art .guide-mini{min-width:34px;width:34px;height:60px;font-size:21px}.coach-tile-spark{font-size:18px}.coach-style-tile strong{font-size:26px}.tournament-watch{min-height:360px}.watch-player-list{left:2%;right:2%}.watch-player-list .room-member{font-size:12px}.tournament-banner{padding:12px}.coach-panel{max-height:none}.coach-navigation select{max-width:190px}}@media(prefers-reduced-motion:reduce){.coach-tile-art .guide-mini{animation:none}.coach-style-tile{transition:none}}
dialog:has(.coach-style-chooser){width:min(1000px,calc(100vw - 32px));max-width:1000px}.coach-style-chooser h2{font-size:clamp(28px,4vw,46px)}.coach-style-tile{min-height:360px}@media(max-width:650px){.coach-style-tile{min-height:170px}}

.hero-card-corner small,.hero-joker .hero-card-corner small{font:800 11px/1.35 Inter,Arial,sans-serif;letter-spacing:.5px}@media(max-width:700px){.hero-card-corner small,.hero-joker .hero-card-corner small{font-size:8px}}

.hall-join{text-align:center;padding:20px 8px}.hall-join-icon{display:block;font-size:58px;color:var(--lime,#d5ff57);margin-bottom:14px}.hall-join>button{display:block;margin:16px auto;min-height:46px}.hall-join h2{font-size:clamp(32px,5vw,48px)}

.home-shortcuts #home-receipts{grid-column:1 / -1;flex-direction:row;min-height:44px;justify-content:center;gap:10px}.home-shortcuts #home-receipts svg{width:22px;height:22px}

/* Five held cards: individual lights, then a shared glow. */
.jack-card-lights{position:absolute;left:3%;bottom:0;width:94%;height:91%;pointer-events:none;overflow:visible}.jack-light{fill:#fff8b5;fill-opacity:.35;stroke:#fff4a0;stroke-width:4;stroke-linejoin:round;opacity:0;filter:drop-shadow(0 0 7px #ffe05b);animation-duration:8s;animation-iteration-count:infinite;animation-timing-function:ease-in-out}
.jack-light-1{animation-name:jackLight1}@keyframes jackLight1{0%,0%{opacity:0}2%,8%{opacity:1}10%,58%{opacity:0}64%,82%{opacity:1}90%,100%{opacity:0}}
.jack-light-2{animation-name:jackLight2}@keyframes jackLight2{0%,9%{opacity:0}12%,18%{opacity:1}20%,58%{opacity:0}64%,82%{opacity:1}90%,100%{opacity:0}}
.jack-light-3{animation-name:jackLight3}@keyframes jackLight3{0%,19%{opacity:0}22%,28%{opacity:1}30%,58%{opacity:0}64%,82%{opacity:1}90%,100%{opacity:0}}
.jack-light-4{animation-name:jackLight4}@keyframes jackLight4{0%,29%{opacity:0}32%,38%{opacity:1}40%,58%{opacity:0}64%,82%{opacity:1}90%,100%{opacity:0}}
.jack-light-5{animation-name:jackLight5}@keyframes jackLight5{0%,39%{opacity:0}42%,48%{opacity:1}50%,58%{opacity:0}64%,82%{opacity:1}90%,100%{opacity:0}}
:root[data-table-effects=gentle] .jack-light{filter:none;stroke-width:3}:root[data-still-motion=true] .jack-light,:root[data-table-effects=off] .jack-light{animation:none;opacity:0}@media(prefers-reduced-motion:reduce){.jack-light{animation:none!important;opacity:0}}

/* Full-body character studio, with the same portrait used around the table. */
.avatar-build-layout{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(250px,1.2fr);gap:28px;align-items:start}.avatar-preview-column{position:sticky;top:0}.avatar-build-preview{max-width:200px;margin:0 auto 12px}.avatar-build-preview svg{width:100%;height:auto;max-height:360px}.avatar-turn-controls{display:flex;justify-content:center;gap:5px}.avatar-turn-controls button{padding:9px;font-size:11px;min-height:44px}.avatar-turn-controls button[aria-pressed=true]{border-color:var(--lime);color:var(--lime)}.avatar-portrait-row{display:flex;gap:12px;align-items:center;justify-content:center;margin:16px 0;font-size:12px}.avatar-portrait-row small{display:block;color:var(--muted);margin-top:4px}.avatar-portrait-preview svg{width:62px;height:62px;border-radius:15px}.profile-fullbody:empty{display:none}.profile-fullbody{max-width:160px;margin:10px auto}.profile-fullbody svg{width:100%;height:auto;max-height:280px}.profile-fullbody:not(:empty)+.profile-preview{width:58px;height:58px;margin:8px auto 20px}.avatar-builder .dialog-actions{display:flex;flex-wrap:wrap;gap:8px;z-index:2}.avatar-builder .dialog-actions button{min-height:44px;font-size:13px}.avatar-build-controls select{min-height:44px}.avatar-builder p{line-height:1.6}
@media(max-width:650px){.avatar-build-layout{grid-template-columns:1fr;gap:16px}.avatar-preview-column{position:static}.avatar-build-preview{max-width:145px}.avatar-build-preview svg{max-height:270px}.avatar-build-controls{gap:10px}.avatar-builder .dialog-actions{bottom:-20px}.avatar-builder .dialog-actions .primary{flex:1}.avatar-turn-controls button{font-size:12px}}

dialog:has(.avatar-builder){width:min(850px,calc(100vw - 32px))}.avatar-builder .dialog-actions{margin-top:16px;background:#21162d;border-top:1px solid #72537d;padding:12px 0}.avatar-build-controls label{min-width:0}.avatar-build-controls select{width:100%;min-width:0}@media(max-width:650px){dialog:has(.avatar-builder){width:calc(100vw - 20px)}}

/* Coach is a readable lesson and table, rather than a game squeezed into one viewport. */
body:has(.coach-shell){height:auto;min-height:100dvh;overflow:auto}
.shell.coach-shell{height:auto;min-height:100dvh;overflow:visible;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
.coach-shell .coach-panel{position:static;display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;max-height:none;overflow:visible;padding:18px;margin-bottom:18px}
.coach-shell .coach-avatar{width:34px;height:34px;font-size:25px}
.coach-shell .coach-copy{min-width:0;flex-basis:auto}
.coach-shell .coach-copy h3{font-size:25px;line-height:1.15;margin:6px 0 10px}
.coach-shell .coach-copy p{font-size:14px;line-height:1.6;max-width:none;overflow-wrap:anywhere}
.coach-shell .coach-why{display:block;margin-top:12px;padding:10px 12px}
.coach-shell .coach-navigation{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:14px}
.coach-shell .coach-navigation label{flex:1;min-width:150px}
.coach-shell .coach-navigation select{max-width:none;width:100%;min-height:44px}
.coach-shell .coach-actions{grid-column:2;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin:0;gap:10px}
.coach-shell .coach-actions button,.coach-shell .coach-navigation button{min-height:44px;font-size:13px}
.coach-shell .game-layout{flex:none;min-height:0;height:auto;overflow:visible}
.coach-shell .board{height:auto;display:flex;flex-direction:column;gap:18px}
.coach-shell .game-layout .arena{height:360px;min-height:360px;flex:none;max-height:none;margin:0 auto 10px}
.coach-shell .center-piles{top:48%;gap:34px}
.coach-shell .center-piles .playing-card,.coach-shell .draw-stack:before,.coach-shell .draw-stack:after{height:119px;width:85px}
.coach-shell .pile-label{font-size:11px;line-height:1.4;margin-top:12px}
.coach-shell .game-layout .suit-status{top:calc(48% + 89px);bottom:auto;left:15%;right:15%;transform:none;max-width:none}
.coach-shell .seat{z-index:2}
.coach-shell .hand-panel{display:flex;flex-direction:column;gap:10px;overflow:visible;padding:16px;min-height:0}
.coach-shell .hand-heading{height:auto;min-height:24px;padding:0}
.coach-shell .hand-tools{position:static;height:auto;display:flex;flex-wrap:wrap;justify-content:flex-start;margin:0}
.coach-shell .hand-tools button{min-height:44px}
.coach-shell .hand{height:142px;min-height:142px;padding:14px 4px 8px;flex:none}
.coach-shell .hand .playing-card{width:78px;height:111px}
.coach-shell .selection-line{height:auto;min-height:20px;white-space:normal;overflow:visible;line-height:1.5}
.coach-shell .actions{flex:none;min-height:48px}
.coach-shell .actions button{min-height:48px;white-space:normal;line-height:1.3}
.coach-shell .notice{height:auto;min-height:24px;max-height:none;overflow:visible;white-space:normal;font-size:13px;line-height:1.5}
.coach-shell .sidebar,.coach-shell .sidebar:not([open]){position:static;inset:auto;width:100%;max-height:none;margin-top:14px;overflow:visible}
@media(max-width:700px){
 .shell.coach-shell{padding-inline:12px}.coach-shell .coach-panel{grid-template-columns:minmax(0,1fr);padding:15px;gap:12px}.coach-shell .coach-avatar{display:none}.coach-shell .coach-actions{grid-column:1}.coach-shell .coach-copy h3{font-size:24px}.coach-shell .actions{grid-template-columns:1fr 1fr;gap:8px}.coach-shell .actions button{grid-column:auto;min-height:48px;font-size:14px}.coach-shell .hand-panel{padding:14px}.coach-shell .match-header{height:auto!important;min-height:52px!important}.coach-shell .room-label h2{white-space:normal!important;font-size:20px!important}.coach-shell .arena:after{display:none}
}

.coach-shell .sidebar:not([open])>summary,.coach-shell .sidebar>summary{font-size:14px;width:auto;height:auto;min-height:44px;padding:12px;overflow:visible}.coach-shell .sidebar:not([open])>summary:before{display:none}
.coach-shell .coach-navigation select{background:#1b1326;color:var(--cream);border:1px solid #80608f;border-radius:10px;padding:10px;font-size:13px}
@media(max-width:700px){.coach-shell .hand{gap:4px;height:126px;min-height:126px}.coach-shell .hand .playing-card{width:clamp(44px,15vw,68px);height:98px;padding:6px}.coach-shell .hand .playing-card .corner{font-size:23px}.coach-shell .hand .playing-card .pip{font-size:30px}.coach-shell .hand .playing-card .card-effect{font-size:8px}}

.coach-style-chooser .coach-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.coach-style-chooser .coach-style-grid{grid-template-columns:1fr}}

.coach-graduation{padding:16px;border:1px solid #cfff5a;border-radius:14px;background:#cfff5a0b;margin-top:14px}.coach-graduation>b{display:block;color:var(--lime);margin-bottom:8px}.coach-graduation small{display:block;margin-top:10px;line-height:1.5;color:var(--muted)}
/* Crew studio: fixed preview and tools, independently scrolling choices. */
dialog:has(.crew-studio){padding:16px;overflow:hidden;width:min(900px,calc(100vw - 24px));max-width:900px}
.crew-studio{height:min(760px,calc(100dvh - 72px));display:flex;flex-direction:column;overflow:hidden}.crew-studio .sheet-heading{position:static;margin:0 0 12px;flex:none;padding:0}.crew-studio .sheet-heading h2{font-size:30px;margin-top:5px}.crew-studio .avatar-build-layout{flex:1;min-height:0;grid-template-columns:minmax(210px,.85fr) minmax(290px,1.15fr);gap:20px}.crew-studio .avatar-preview-column{position:static;display:flex;flex-direction:column;min-height:0}.crew-studio .avatar-build-preview{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;max-width:none;width:100%;margin:0;border-radius:20px;background:radial-gradient(ellipse,#61407844,#160f20);overflow:hidden}.crew-studio .avatar-build-preview svg{width:auto;max-width:100%;height:100%;max-height:none;object-fit:contain}.crew-control-column{display:flex;flex-direction:column;min-width:0;min-height:0}.crew-tabs{display:flex;gap:4px;overflow-x:auto;flex:none;border-bottom:1px solid #805291;padding-bottom:8px}.crew-tabs button{font-size:12px;min-height:44px;padding:10px;border-color:transparent;flex:1}.crew-tabs button[aria-selected=true]{background:var(--lime);color:#242a15}.crew-options{overflow-y:auto;min-height:0;padding:12px 5px 20px;overscroll-behavior:contain}.crew-options fieldset{border:0;padding:0;margin:0 0 18px}.crew-options legend{font-size:13px;font-weight:800;margin-bottom:10px}.crew-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crew-choice-grid button{min-height:48px;white-space:normal;font-size:12px;padding:10px}.crew-choice-grid button[aria-pressed=true]{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}.crew-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}.crew-swatches button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 3px;font-size:9px}.crew-swatches i{display:block;width:27px;height:27px;border:1px solid #fff5;border-radius:50%}.crew-studio .avatar-turn-controls{flex-wrap:wrap;gap:4px;margin-top:8px}.crew-studio .avatar-turn-controls button{font-size:10px;padding:6px;min-height:36px}.crew-studio .avatar-portrait-row{margin:8px 0;font-size:11px}.crew-studio .avatar-portrait-preview svg{width:46px;height:46px}.crew-studio .dialog-actions{position:static;margin:0;flex:none;background:transparent;padding:10px 0 0}.crew-studio #avatar-build-status{font-size:11px;flex:none;margin:6px 0}.crew-studio .dialog-actions button{font-size:12px;min-height:44px}
@media(max-width:650px){dialog:has(.crew-studio){padding:12px;max-width:calc(100vw - 16px)}.crew-studio{height:calc(100dvh - 52px)}.crew-studio .sheet-heading h2{font-size:26px}.crew-studio .avatar-build-layout{display:flex;flex-direction:column;gap:10px}.crew-studio .avatar-preview-column{height:245px;min-height:190px;flex:none;position:relative}.crew-studio .avatar-build-preview{height:180px;flex:1}.crew-studio .avatar-portrait-row{display:none}.crew-studio .crew-control-column{flex:1;min-height:120px}.crew-tabs button{font-size:11px;padding:8px 5px}.crew-options{padding-top:10px}.crew-studio .dialog-actions{gap:6px}.crew-studio .dialog-actions button{padding:10px 8px}.crew-studio .dialog-actions .primary{flex:1}.crew-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-height:700px) and (max-width:650px){.crew-studio .avatar-preview-column{height:190px;min-height:160px}.crew-studio .sheet-heading{margin-bottom:6px}.crew-studio .avatar-build-preview{height:135px}.crew-studio #avatar-build-status{font-size:10px;margin:4px 0}.crew-studio .avatar-turn-controls button{min-height:32px}}
.crew-studio .avatar-build-layout{align-items:stretch}.crew-studio .crew-control-column,.crew-studio .avatar-preview-column{height:100%;overflow:hidden}.crew-studio .avatar-build-preview{max-height:100%;flex-basis:0}.crew-studio .avatar-turn-controls,.crew-studio .avatar-portrait-row{flex:none}.crew-studio .crew-options{flex:1}.crew-studio #avatar-build-status{min-height:16px}.crew-studio .dialog-actions{border-top:1px solid #72537d;z-index:2}
@media(max-width:650px){.crew-studio .avatar-preview-column{height:245px;overflow:hidden}.crew-studio .crew-control-column{height:auto}.crew-studio .avatar-build-preview{flex-basis:0;height:auto}}
@media(max-height:700px) and (max-width:650px){.crew-studio .avatar-preview-column{height:190px}}
.crew-choice-art{display:flex;align-items:center;justify-content:center;width:100%;height:72px;overflow:hidden;margin-bottom:6px}.crew-choice-art>svg{width:74px;height:74px;border-radius:12px}.crew-choice-art>img{max-width:100%;height:70px;object-fit:contain}.crew-choice-grid:has(.crew-choice-art){grid-template-columns:repeat(3,minmax(0,1fr))}.crew-choice-grid:has(.crew-choice-art)>button{font-size:10px;padding:7px}
@media(max-width:650px){.crew-choice-art{height:54px}.crew-choice-art>svg{width:56px;height:56px}.crew-choice-art>img{height:52px}.crew-choice-grid:has(.crew-choice-art)>button{min-height:85px}}

/* Crew: approved motion study, isolated from static thumbnails and saved portraits. */
.crew-animated .crew-face-group{transform-origin:320px 270px;animation:curious 5s ease-in-out infinite}.crew-animated .crew-hair{transform-origin:320px 75px;animation:hair 4s ease-in-out infinite}.crew-animated .crew-torso{transform-origin:320px 640px;animation:breathe 3.8s ease-in-out infinite}.crew-animated .crew-arm-left{transform-origin:210px 320px}.crew-animated .crew-arm-right{transform-origin:430px 320px}.crew-forearm{transform-origin:452px 475px;animation:forearm 2s ease-in-out infinite}.crew-animated:not([data-motion=wave]) .crew-forearm{animation:none}.crew-animated[data-motion=wave] .crew-arm-right{animation:wave 2s ease-in-out infinite}.crew-animated[data-motion=wave] .crew-face-group{animation:nod 2s ease-in-out infinite}.crew-animated[data-motion=play] .crew-arm-right{animation:deal 2.6s ease-in-out infinite}.crew-animated[data-motion=play] .crew-flying-card{animation:dealCard 2.6s ease-in-out infinite}.crew-animated[data-motion=win] .crew-arm-left{animation:cheerLeft 1.8s ease-in-out infinite}.crew-animated[data-motion=win] .crew-arm-right{animation:cheerRight 1.8s ease-in-out infinite}.crew-animated[data-motion=win] .crew-face-group{animation:nod 1.8s ease-in-out infinite}.crew-animated[data-motion=win] .crew-sparkles{animation:spark 1.8s ease-in-out infinite}.crew-flying-card,.crew-sparkles{opacity:0}.paused *{animation:none!important}.paused .crew-flying-card,.paused .crew-sparkles{opacity:0!important}
@keyframes curious{0%,100%{transform:rotate(0)}35%{transform:rotate(2deg)}65%{transform:rotate(-1.5deg)}}@keyframes hair{0%,100%{transform:rotate(0)}50%{transform:rotate(-1deg)}}@keyframes breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.012)}}@keyframes wave{0%,100%{transform:rotate(-8deg)}25%,65%{transform:rotate(-48deg)}45%,85%{transform:rotate(-38deg)}}@keyframes nod{0%,100%{transform:rotate(0) translateY(0)}45%{transform:rotate(-3deg) translateY(-5px)}75%{transform:rotate(2deg)}}@keyframes forearm{0%,100%{transform:rotate(0)}25%,65%{transform:rotate(-90deg)}45%,85%{transform:rotate(-60deg)}}@keyframes deal{0%,100%{transform:rotate(0)}30%,45%{transform:rotate(-30deg)}70%{transform:rotate(-8deg)}}@keyframes dealCard{0%,22%{opacity:0;transform:translate(0,0) rotate(0)}27%{opacity:1}65%{opacity:1;transform:translate(105px,-160px) rotate(25deg)}85%,100%{opacity:0;transform:translate(150px,-185px) rotate(35deg)}}@keyframes cheerLeft{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(65deg)}}@keyframes cheerRight{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(-65deg)}}@keyframes spark{0%,100%{opacity:0;transform:translateY(20px)}40%,65%{opacity:1;transform:translateY(-20px)}}

@media(prefers-reduced-motion:reduce){.crew-animated *{animation:none!important}.crew-animated .crew-flying-card,.crew-animated .crew-sparkles{opacity:0!important}}
.crew-variety-note{font-size:12px;color:var(--muted);margin:0 0 12px}

.crew-animated>rect{fill:transparent}.crew-animated{overflow:visible}
:root[data-still-motion=true] .crew-animated,:root[data-still-motion=true] .crew-animated *{animation:none!important}
:root[data-still-motion=true] .crew-flying-card,:root[data-still-motion=true] .crew-sparkles{opacity:0!important}
.avatar-build-preview .crew-animated{animation:crew-reveal .22s ease-out}
@keyframes crew-reveal{from{opacity:.5}to{opacity:1}}

.profile-fullbody:has(.crew-animated){max-width:240px}

/* Keep every Jack highlight in the exact same contain-fit box as the artwork. */
.hero-jack .jack-card-lights{left:1%;bottom:0;width:98%;height:84%}
.hero-jack .jack-light{fill:#ffe49a;fill-opacity:.2;stroke:#ffe9a6;stroke-width:1.4;filter:drop-shadow(0 0 4px #ffd45e);stroke-linejoin:round}
:root[data-table-effects=gentle] .hero-jack .jack-light{fill-opacity:.12;stroke-width:1;filter:none}
/* Upper-body Crew: complete reviewed looks, no detached arm or recolour masks. */
dialog:has(.crew-bust-studio){width:min(960px,calc(100vw - 20px));padding:20px;overflow:hidden}
.crew-bust-studio{height:min(760px,calc(100dvh - 80px));display:flex;flex-direction:column;min-height:0}
.crew-bust-studio .sheet-heading{position:static;flex:none;margin-bottom:12px;padding:0}.crew-bust-studio h2{font-size:30px;margin:4px 0}
.crew-bust-layout{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(280px,1.15fr);gap:20px;flex:1;min-height:0}
.crew-bust-preview-column{display:flex;flex-direction:column;min-height:0;gap:8px;align-items:center}
.crew-bust-preview-column .avatar-build-preview{width:100%;flex:1;min-height:0;max-width:none;margin:0;display:grid;place-items:center;background:#160f20;border-radius:22px;overflow:hidden}
.crew-bust-preview-column .avatar-build-preview svg{width:100%;height:100%;max-height:none;object-fit:contain}
.crew-bust-preview-column>p{font-size:11px;margin:0}.crew-bust-preview-column>button{font-size:12px;min-height:40px}
.crew-bust-studio .crew-control-column{min-height:0;overflow:hidden}.crew-bust-studio .crew-options{flex:1;overflow:auto;padding:10px 4px 20px;overscroll-behavior:contain}
.crew-look-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crew-look-grid button{padding:8px;min-width:0;white-space:normal;text-align:left;border:1px solid #76568c;border-radius:16px}.crew-look-grid button[aria-pressed=true]{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}
.crew-look-grid svg{width:100%;height:150px;display:block;object-fit:contain}.crew-look-grid b{font-size:13px;display:block;margin-top:5px}.crew-look-grid small{font-size:10px;color:var(--muted);display:block;line-height:1.4;margin-top:4px}
.crew-bust-studio #avatar-build-status{flex:none;margin:8px 0;font-size:12px;min-height:18px}.crew-bust-studio .dialog-actions{position:static;flex:none;padding-top:10px;margin:0;border-top:1px solid #76568c;background:transparent;display:flex;gap:8px}.crew-bust-studio .dialog-actions button{min-height:44px;font-size:12px}.crew-bust-studio .dialog-actions .primary{flex:1}
.crew-bust-person{transform-origin:210px 410px}.crew-bust-moving .crew-bust-person{animation:crew-bust-idle 5s ease-in-out infinite}
@keyframes crew-bust-idle{0%,100%{transform:rotate(0) translateY(0)}35%{transform:rotate(.8deg) translateY(-2px)}70%{transform:rotate(-.6deg) translateY(-1px)}}
:root[data-still-motion=true] .crew-bust-person{animation:none!important}
@media(prefers-reduced-motion:reduce){.crew-bust-person{animation:none!important}}
@media(max-width:650px){dialog:has(.crew-bust-studio){padding:12px;max-height:calc(100dvh - 16px)}.crew-bust-studio{height:calc(100dvh - 44px)}.crew-bust-studio h2{font-size:25px}.crew-bust-layout{display:flex;flex-direction:column;gap:10px}.crew-bust-preview-column{height:235px;flex:none}.crew-bust-preview-column>p{display:none}.crew-bust-preview-column>button{min-height:32px;padding:5px 10px;font-size:10px}.crew-bust-studio .crew-control-column{flex:1;min-height:110px}.crew-look-grid svg{height:110px}.crew-bust-studio .crew-tabs button{font-size:11px;padding:8px 4px}.crew-bust-studio .dialog-actions{gap:5px}.crew-bust-studio .dialog-actions button{padding:8px;font-size:11px}}
@media(max-width:650px) and (max-height:680px){.crew-bust-preview-column{height:175px}.crew-look-grid svg{height:85px}.crew-bust-studio .sheet-heading{margin-bottom:6px}}
.crew-bust-blink{opacity:0;animation:crew-bust-blink 6.2s linear infinite}
@keyframes crew-bust-blink{0%,43%,47%,100%{opacity:0}44%,46%{opacity:1}}
:root[data-still-motion=true] .crew-bust-blink{animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){.crew-bust-blink{animation:none!important;opacity:0!important}}
.challenge-code-panel form,.code-request,#your-challenge-code{padding:16px;border:1px solid #76568c;border-radius:16px;margin:14px 0}.share-code{font-size:32px;letter-spacing:.14em;color:var(--lime);font-variant-numeric:tabular-nums}.code-request button{margin:8px 6px 0 0}.code-request details{padding:10px 0}.challenge-code-panel .agreed-powers{font-size:12px;line-height:1.8}.challenge-code-panel input{text-transform:uppercase}.challenge-code-panel .sheet-heading{position:static}
.challenge-appointment{padding:14px;border-left:4px solid var(--cyan);background:#83dce60c;line-height:1.7}.challenge-appointment small{display:block;color:var(--muted);font-size:12px}.schedule-box{margin:12px 0}.schedule-form input{text-transform:none}.schedule-form{margin:10px 0!important}.schedule-preview{color:var(--cyan);font-variant-numeric:tabular-nums}
