/* The same lacquer, bronze and painted portraits as the original card set. */
:root{--bg:#141211;--panel:#211b18;--raised:#30251e;--line:#514134;--text:#f1e7cf;--muted:#b0a18c;--gold:#e5bb69;--red:#c96b4e;--green:#b6bc85}
[hidden]{display:none!important}body{background:radial-gradient(ellipse at 60% 0,#342019 0,#141211 65%)}button,input,select{font:inherit}input,select{color:var(--text);background:#191512;border:1px solid #63503b;border-radius:4px;padding:12px}input:focus,select:focus{outline:2px solid var(--gold);outline-offset:2px}input[type=checkbox]{accent-color:#b47b3d}.btn{border-color:#705538;background:#34281e}.btn.primary{background:linear-gradient(125deg,#bf8240,#e1b76c);border-color:#efd298;color:#24170e;box-shadow:0 3px 14px #0004}.btn.subtle{background:#251e19}.btn.large{padding:16px 24px;font-size:14px}.btn:active:not(:disabled){transform:translateY(1px)}.eyebrow{color:#bd9b6e}h1,h2,h3{font-weight:400}.court-top{height:91px;padding:0 max(28px,calc((100vw - 1380px)/2));display:flex;align-items:center;gap:35px;border-bottom:1px solid #b28c493b;background:#171310f5;position:sticky;top:0;z-index:12;backdrop-filter:blur(14px)}.court-brand{display:flex;align-items:center;gap:12px;text-align:left;background:none;border:0;font:24px Georgia;letter-spacing:2px;white-space:nowrap}.court-brand>span{font-size:40px;color:var(--gold)}.court-brand small{display:block;font:8px 'Segoe UI';letter-spacing:2.7px;margin-top:6px;color:var(--muted)}.court-top nav{display:flex;align-items:stretch;height:100%;gap:23px;flex:1;justify-content:center}.court-top nav button{background:none;border:0;border-bottom:2px solid transparent;padding:0 2px;color:#bcad97;position:relative;font-size:12px}.court-top nav button.active{color:#f3d18a;border-bottom-color:#d4a65e}.court-top nav i{position:absolute;top:20px;color:#ffda89;font-style:normal;font-size:10px}.wallet{font:21px Georgia;color:#edc578;white-space:nowrap}.wallet small{display:block;font:8px 'Segoe UI';letter-spacing:2px;text-align:right;color:#ae9b7f;margin-top:6px}.court-content{max-width:1440px;margin:auto;padding:30px 36px 24px}.court-hero{position:relative;min-height:430px;border:1px solid #95703f77;background:#221b18;isolation:isolate;overflow:hidden}.court-hero:after{content:'';position:absolute;inset:10px;border:1px solid #c29d5a35;pointer-events:none}.hero-king{position:absolute;right:0;top:-15%;width:62%;height:130%;object-fit:cover;object-position:50% 30%;z-index:-3;animation:portrait-in 1.2s ease-out}.hero-vignette{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#231b17 10%,#231b17f2 32%,#231b1740 62%,#221b1830),linear-gradient(0deg,#231b18dd,transparent 40%)}.hero-copy{position:relative;padding:50px 48px;max-width:700px}.hero-copy h1{font:clamp(38px,4.3vw,64px)/1.07 Georgia;letter-spacing:-1.5px;margin:20px 0;color:#f6e4bd}.hero-copy p{color:#c8b9a0;line-height:1.8;font-size:14px;margin-bottom:25px}.hero-copy .btn{margin:0 10px 8px 0}.hero-copy .btn span{margin-left:25px}.hero-caption{font-size:8px;letter-spacing:2.4px;color:#bba27d;margin-top:25px}.hero-caption b{color:#9e703e;padding:0 11px}.hero-seal{position:absolute;bottom:35px;right:35px;border:1px solid #be955d88;width:90px;height:104px;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);background:#211710bb;display:flex;align-items:center;flex-direction:column;padding:9px;font-size:35px;color:#dab470}.hero-seal small{font:8px/1.5 'Segoe UI';letter-spacing:2px;text-align:center}.court-paths{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.path-card{display:flex;position:relative;gap:17px;background:linear-gradient(110deg,#31271f,#201a16);border:1px solid #63503a66;min-height:132px;text-align:left;padding:18px;overflow:hidden}.path-card img{width:80px;height:103px;object-fit:cover;border:1px solid #b48c4b66;transform:rotate(-6deg);transition:transform .3s}.path-card:hover img{transform:rotate(0) scale(1.08)}.path-card div{padding-top:7px}.path-card h2{font:22px/1.1 Georgia;margin:7px 0}.path-card p{color:var(--muted);font-size:11px;line-height:1.6;margin:8px 0}.path-card>b{position:absolute;top:12px;right:12px;color:#997649}.court-foot{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #4c3c2c;padding:20px 0;color:#99876c;font-size:10px}.court-foot button{border:0;background:none;color:#c6ab7c;font-size:11px}.recent{padding:5px 0 20px}.recent h2{font:23px Georgia}.recent>div{border-bottom:1px solid #443426;padding:12px 2px;display:flex;justify-content:space-between;gap:20px}.recent small{display:block;color:var(--muted);margin-top:5px}.court-heading{margin:15px 0 30px}.court-heading h1{font:42px/1.1 Georgia;margin:10px 0 13px}.court-heading p{line-height:1.8;color:#b4a58d;max-width:850px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mode-card{display:flex;align-items:center;gap:18px;border:1px solid #604831;background:#251e19;text-align:left;padding:22px}.mode-card.selected{background:linear-gradient(110deg,#49321f,#292019);border-color:#cca15b}.mode-card>span{font-size:40px;color:#c7a569}.mode-card h2{font:26px Georgia;margin:0 0 9px}.mode-card p{color:#b8a58a;font-size:12px;line-height:1.6;margin:0}.mode-card>b{margin-left:auto;font-size:20px;color:var(--gold)}.opponent-tabs{display:flex;gap:5px;margin:22px 0 28px;border:1px solid #604831;padding:5px;width:fit-content;background:#171310}.opponent-tabs button{border:0;background:none;color:#b9a78c;padding:13px 25px}.opponent-tabs button.active{background:#59331f;color:#f7d699}.section-label{font:20px Georgia}.court-kings{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.court-king{position:relative;padding:0;background:#221a15;border:1px solid #5d4531;text-align:left;overflow:hidden}.court-king.selected{border:2px solid #e0b565;box-shadow:0 0 22px #a3692322}.court-king img{width:100%;height:190px;object-fit:cover;object-position:50% 20%;transition:transform .3s}.court-king:hover img{transform:scale(1.04)}.court-king div{padding:13px 12px;position:relative}.court-king small{font-size:9px;color:#b99866;letter-spacing:1px;text-transform:uppercase}.court-king h3{font:20px/1.2 Georgia;margin:7px 0}.court-king div>span{font-size:10px;color:#b1a18c}.battle-setup{display:flex;gap:30px;justify-content:space-between;margin:24px 0;padding:26px;background:linear-gradient(110deg,#33251b,#201a16);border:1px solid #6f5134}.battle-setup h2{font:27px Georgia;margin:6px 0 10px}.battle-setup p{color:#c2ad8d;line-height:1.7}.setup-controls{display:flex;flex-direction:column;gap:12px;justify-content:center;min-width:300px}.setup-controls small{max-width:300px;line-height:1.6;color:#aa967a}.join-room{display:flex;gap:8px}.join-room input{width:200px;text-transform:uppercase;letter-spacing:2px}.deck-preview{display:grid;gap:8px;grid-template-columns:1fr 1fr;padding:18px 0;font-size:11px;color:#bfa986}.deck-preview b{color:#f0d5a0}details summary{cursor:pointer;color:#d4b57c;font-size:12px;padding:12px 0}details small{color:var(--muted)}.library-layout.editing{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.library-tools{display:flex;align-items:center;gap:12px;margin-bottom:20px}.library-tools input[type=text],#card-search{flex:1;min-width:100px}.library-tools label{white-space:nowrap;color:#bca68a;font-size:11px}.collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.editing .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.collection-card{background:#2a2019;border:1px solid #695039;overflow:hidden;position:relative}.collection-card.in-deck{border-color:#ba8e49}.collection-art{display:block;width:100%;height:150px;position:relative;padding:0;border:0;background:#15110e;overflow:hidden}.collection-art img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.collection-art:hover img{transform:scale(1.07)}.locked .collection-art img{filter:saturate(.25);opacity:.55}.ownership{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:9px;letter-spacing:.5px;padding:7px;background:#17100de0;color:#dec18e}.collection-body{padding:12px}.collection-body>small{color:#ba9868;text-transform:uppercase;font-size:8px;letter-spacing:1px}.collection-body h3{font:18px/1.2 Georgia;margin:6px 0 12px;min-height:42px}.collection-body p{font-size:11px;line-height:1.65;color:#baaa93}.collection-body .deck-qty{font-size:10px}.deck-panel{position:sticky;top:112px;align-self:start;background:#261d17;border:1px solid #755536;padding:20px}.deck-panel label{display:block;font-size:11px;margin:10px 0 7px}.deck-panel select{width:100%;font-size:11px;padding:9px}.deck-banner{width:100%;height:95px;object-fit:cover;object-position:50% 23%;margin-top:15px;border:1px solid #67492b}.deck-panel h2{font:25px Georgia;margin:12px 0}.deck-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #59412b;border-bottom:1px solid #59412b;padding:12px 0;margin-bottom:12px}.deck-total>b{font:26px Georgia;color:#f2cd85}.deck-total small{font:11px 'Segoe UI';color:#b6a187}.deck-total>span{font-size:8px;color:#cbaa73;letter-spacing:1px}.deck-list{max-height:300px;overflow:auto}.deck-list button{border:0;border-bottom:1px solid #513922;background:#201811;width:100%;display:flex;align-items:center;padding:4px;gap:7px;font-size:10px;text-align:left}.deck-list img{width:29px;height:29px;object-fit:cover}.deck-list span{flex:1}.deck-list b{color:#d4ac6e}.deck-list i{font-size:15px;color:#b18d63;font-style:normal;padding:0 5px}.deck-panel>.btn{width:100%;margin:5px 0 10px}.deck-panel .action-group{margin-bottom:15px}.deck-panel>small{color:#a99070;font-size:10px;line-height:1.7}.deck-validation{font-size:11px;line-height:1.7;color:#d3b991}.quest-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:25px}.quest{display:flex;gap:18px;background:linear-gradient(125deg,#33261b,#211a15);padding:22px;border:1px solid #61482e}.quest-icon{font-size:28px;flex-shrink:0;width:50px;height:57px;display:grid;place-items:center;background:#564024;color:#dfba78;clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%)}.quest h2{font:23px Georgia;margin:5px 0 10px}.quest p{color:#beaa8c;line-height:1.6;font-size:12px;min-height:38px}.quest>div:nth-child(2){flex:1}.quest-progress{display:flex;gap:12px;align-items:center;color:#cbb083;font-size:10px}.quest progress{width:100%;height:5px;appearance:none}.quest progress::-webkit-progress-bar{background:#483522}.quest progress::-webkit-progress-value{background:#d5a552}.quest-progress span{white-space:nowrap}.quest-reward{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;min-width:95px}.quest-reward strong{font:21px Georgia;color:#e3b86b}.quest-reward .btn{font-size:10px;padding:10px}.quest.claimed{opacity:.6}.treasury{display:grid;grid-template-columns:1.15fr 1fr;gap:45px}.chest-stage{position:relative;isolation:isolate;min-height:460px;border:1px solid #6b4d30;padding:35px;text-align:center;background:radial-gradient(ellipse at 50% 20%,#68412066,#241b15 70%);overflow:hidden}.chest-glow{position:absolute;top:0;left:10%;width:80%;height:300px;background:radial-gradient(ellipse,#d08e2555,transparent 65%);z-index:-1;animation:treasury-glow 4s ease-in-out infinite alternate}.treasure-chest{width:205px;height:148px;margin:20px auto 32px;position:relative;filter:drop-shadow(0 20px 18px #0008);transform:rotate(-4deg)}.chest-lid{height:63px;border:6px solid #a67b39;background:repeating-linear-gradient(90deg,#35170f 0px,#783c20 27px,#412015 32px,#71361d 61px);border-radius:38px 38px 3px 3px;position:relative;transform-origin:50% 100%;transition:transform .7s}.chest-lid:after{content:'';position:absolute;inset:10px 12px;border:1px solid #b88b4988;border-radius:20px 20px 0 0}.chest-base{height:85px;background:linear-gradient(100deg,#4a2217,#7b3e25,#3b1b13);border:6px solid #b08745;border-top:3px solid #513316;display:grid;place-items:center}.chest-base span{color:#ffdb8c;background:#a77b37;padding:3px 10px;font-size:36px;border:2px solid #f3cd76;position:relative;top:-15px}.opened .chest-lid{transform:perspective(250px) rotateX(-65deg);box-shadow:0 0 40px #ffdb8c99}.chest-stage h2{font:29px Georgia;margin:10px 0}.chest-stage p{color:#c2a783;line-height:1.8;font-size:12px}.chest-stage>small{display:block;margin-top:15px;font-size:10px;color:#a78c67}.chest-explainer{padding:25px 0}.chest-explainer h2{font:34px Georgia}.chest-explainer p{font-size:13px;line-height:1.9;color:#bdaa8d;max-width:450px}.chest-explainer details{margin-top:25px;border-top:1px solid #584029}.odds-list{max-height:230px;overflow:auto;padding:10px 0}.odds-list>div{display:flex;justify-content:space-between;padding:7px 10px;font-size:11px;border-bottom:1px solid #42301f;color:#b8a187}.odds-list b{color:#dfba78}.loot-reveal{text-align:center;margin:35px 0}.loot-reveal>h2{font:32px Georgia}.loot-reveal>div{display:flex;gap:22px;justify-content:center;margin-bottom:25px}.loot-reveal article{width:235px;border:1px solid #d4a650;background:#302317;animation:card-arrive .65s both;animation-delay:var(--delay)}.loot-reveal article img{width:100%;height:180px;object-fit:cover}.loot-reveal article small{display:block;font-size:8px;letter-spacing:1px;color:#e7c176;margin:15px 10px}.loot-reveal article h3{font:23px Georgia;padding:0 15px}.loot-reveal article p{font-size:11px;line-height:1.7;color:#bba384;padding:0 15px 15px}.room-lobby{max-width:600px;text-align:center;margin:45px auto;padding:45px;background:#2a1d15;border:1px solid #8c6136}.room-crest{font-size:60px;color:var(--gold);margin-bottom:20px}.room-lobby>.eyebrow{display:block}.room-lobby>strong{display:block;font:42px Georgia;letter-spacing:10px;color:#f0ce87;margin:20px 0 25px}.room-lobby p{color:#c8ad84;line-height:2;margin:25px}.court-error{padding:16px 20px;border:1px solid #bf7350;background:#49271c;margin-bottom:20px;line-height:1.7}.court-error a{color:#f3ca81;margin-left:15px}.loading-court{text-align:center;padding:100px 0}.loading-court>span{font-size:65px;color:var(--gold)}.loading-court h1{font:30px Georgia;color:#ccb58b}.card-reading{display:grid;grid-template-columns:1fr 1fr;gap:25px;position:relative;max-width:720px}.card-reading>img{width:100%;max-height:350px;object-fit:cover}.card-reading h2{font:32px Georgia}.card-reading p{color:#c1ad8f;font-size:14px;line-height:1.9}.card-reading .close{position:absolute;right:15px;top:15px}.card-reading>div{padding-top:30px}.card-reading small{color:var(--gold)}
/* Keep the battlefield compact, with the hand and controls close to the board. */
.shell{grid-template-columns:160px minmax(550px,1fr) 226px}.sidebar,.rightbar{background:#1b1714;border-color:#4d3927}.sidebar{padding:22px 14px;gap:18px}.main{padding:16px 20px;background:radial-gradient(ellipse at 50% 35%,#68402220,transparent)}.nav.active{background:#493021;border-color:#7e5730;color:#ecc478}.objective{display:none}.brand h1{font-size:18px}.crest{background:#4e2d1b;border-color:#a67c3f}.board{background:radial-gradient(ellipse,#3e3025,#251e19);border-color:#80603b;box-shadow:0 12px 35px #0004,inset 0 0 50px #08050399}.board:before{border-color:#ad895a35}.slot{background:#17110d77;border-color:#9c784b55;height:90px}.slot.occupied{border-color:#ad854980;background:#211911}.base .slot{height:62px}.zone{color:#bda17c}.king-slot{background:#38251a;border-color:#a27840;height:62px}.phasebar{background:#30231a;border-color:#664a30}.step{background:#5a402b}.topbar{padding-bottom:9px}.topbar h2{font-size:23px}.player-line{margin:9px 0}.hand{min-height:140px}.hand-card{background:#36241a;border-color:#8c6337;height:133px;flex-basis:98px;width:98px}.hand-card img{height:82px}.hand-card .card-title{top:89px;font-size:12px}.hand-card .card-kind{color:#b7976e}.detail-art{height:150px}.detail h3{font-size:24px}.detail p{color:#bda98d;font-size:11px}.detail,.log{border-color:#55402c}.rightbar{padding:20px 16px}.log-list{height:230px}.modal{background:linear-gradient(125deg,#30231b,#1e1813);border-color:#856138}.recruit-card,.king-choice{background:#31231a;border-color:#735131}.rule{border-color:#624a31}.rule p{color:#c5af90}.modal-note{background:#3b291c;color:#c1aa86}.hidden-card{background:repeating-linear-gradient(45deg,#341f17,#341f17 5px,#472a1a 5px,#472a1a 6px);color:#b98c4b}.help-label{color:#ad9474}.saved{font-size:9px}.auction-panel{background:#38271b;border-color:#98703f}.quiet{border-color:#60472e}.footer-brand{color:#a08156}.badge{border-color:#91663b;color:#ddba7e}.log-entry{color:#bba78b}.log-entry b{color:#b18b51}.avatar{background:#453120;border-color:#9c743f}.actionbar{margin:10px 0}.selection-hint{background:#4d351e;border-color:#b18a48}.court-content .eyebrow{font-size:9px}
@keyframes portrait-in{from{transform:scale(1.07);opacity:.4}to{transform:scale(1);opacity:1}}@keyframes treasury-glow{to{opacity:.4;transform:scale(.9)}}@keyframes card-arrive{from{opacity:0;transform:translateY(25px) rotateY(35deg)}to{opacity:1;transform:none}}
@media(min-width:1500px){.shell{grid-template-columns:170px minmax(640px,1fr) 260px}.main{max-width:1250px;width:100%;margin:auto}.slot{height:105px}.base .slot{height:70px}.king-slot{height:70px}.hand-card{height:145px}.hand{min-height:152px}.court-hero{min-height:480px}.hero-copy{padding:62px}.court-king img{height:220px}}
@media(max-width:1150px){.court-top{gap:18px;padding:0 22px}.court-top nav{gap:16px}.court-brand{font-size:20px}.court-content{padding:24px}.path-card img{width:60px}.path-card{gap:13px;padding:14px}.path-card h2{font-size:20px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.editing .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-layout.editing{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.quest{padding:17px;gap:12px}.quest-icon{display:none}.court-king img{height:160px}.court-king h3{font-size:17px}.shell{grid-template-columns:135px minmax(520px,1fr) 205px}.sidebar{padding:18px 9px}.main{padding:13px}.rightbar{padding:15px 12px}.brand h1{font-size:15px}.nav{font-size:11px}.slot{height:82px}.base .slot{height:58px}}
@media(max-width:900px){.court-top{height:auto;min-height:82px;flex-wrap:wrap;padding:18px 22px 0;gap:10px}.court-top nav{order:3;justify-content:flex-start;width:100%;flex-basis:100%;height:45px;gap:25px;overflow-x:auto}.wallet{margin-left:auto}.hero-copy{padding:38px 30px}.hero-king{width:80%;right:-18%}.hero-copy h1{font-size:46px}.hero-seal{display:none}.court-paths{grid-template-columns:1fr}.path-card{min-height:110px}.path-card img{width:90px;height:90px}.path-card h2{font-size:24px}.court-hero{min-height:420px}.court-kings{gap:8px}.court-king img{height:130px}.court-king div{padding:10px 7px}.court-king small{font-size:7px}.court-king div>span{display:none}.battle-setup{flex-direction:column}.setup-controls{min-width:0}.library-layout.editing{grid-template-columns:1fr 240px}.editing .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-tools{flex-wrap:wrap}.library-tools input{width:100%}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quest-grid{grid-template-columns:1fr}.treasury{gap:25px}.shell{grid-template-columns:100px minmax(500px,1fr)}.rightbar{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid #604329}.sidebar .brand{display:block}.sidebar .brand .eyebrow{display:none}.sidebar .brand h1{font-size:13px;margin-top:10px}.sidebar .nav{display:grid;gap:9px;font-size:10px;padding:10px 5px}.sidebar .nav-icon{display:block}.sidebar .quiet{font-size:10px;padding:10px 4px}.log-list{height:180px}.court-foot{flex-wrap:wrap}}
@media(max-width:620px){.court-content{padding:16px}.court-top nav{gap:20px}.hero-copy{padding:30px 25px}.hero-copy h1{font-size:40px}.hero-copy p{font-size:12px}.hero-king{width:120%;right:-50%;opacity:.55}.hero-caption{font-size:7px;letter-spacing:1px}.court-heading h1{font-size:34px}.mode-grid{grid-template-columns:1fr}.mode-card{padding:18px}.court-kings{grid-template-columns:repeat(3,1fr)}.court-king img{height:145px}.battle-setup{padding:18px}.court-heading p{font-size:12px}.library-layout.editing{display:flex;flex-direction:column-reverse}.deck-panel{position:static}.deck-panel .deck-list{max-height:180px}.deck-banner{display:none}.collection-grid,.editing .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-art{height:145px}.treasury{grid-template-columns:1fr}.chest-explainer{padding:0}.loot-reveal>div{gap:10px;flex-wrap:wrap}.loot-reveal article{width:calc(50% - 10px)}.loot-reveal article img{height:130px}.loot-reveal article h3{font-size:20px}.quest{padding:17px}.quest h2{font-size:21px}.quest-reward{min-width:80px}.room-lobby{padding:30px 12px}.room-lobby>strong{font-size:29px;letter-spacing:6px}.card-reading{grid-template-columns:1fr}.card-reading>img{max-height:220px}.card-reading>div{padding-top:0}.shell{display:block}.sidebar{padding:10px;display:flex;flex-direction:row}.sidebar .brand{display:none}.sidebar .navigation{display:flex;justify-content:space-around;width:100%}.sidebar .nav{display:flex;align-items:center;font-size:9px!important;gap:5px}.sidebar .nav-icon{font-size:14px}.main{padding:10px 5px}.slot{height:75px}.base .slot{height:52px}.king-slot{height:52px}.rightbar{display:block}.hand-card{flex-basis:83px;width:83px}.hand-card .card-title{font-size:10px}.court-foot>span:last-child{display:none}.court-brand{font-size:19px}.opponent-tabs button{padding:12px 18px}.collection-body h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#player-lobby{width:min(32rem,92vw);max-height:85vh;overflow:auto;padding:1.5rem;color:#eee4ca;border:1px solid #887549;background:#172019;border-radius:.5rem}
#player-lobby::backdrop{background:#090d0bd9}
#player-lobby input,#login-form select{padding:.6rem;background:#101813;color:#eee4ca;border:1px solid #716848}
#player-lobby form{display:grid;gap:.7rem}#player-lobby label{display:grid;gap:.4rem}

#court .court-lobby-door{display:flex;align-items:center;gap:16px;padding:14px 24px;min-height:74px;text-align:left;color:#ffedc1;border:1px solid #b69962;border-radius:6px;box-shadow:0 5px 15px #09090960;background:linear-gradient(90deg,#202b27f5,#25342bd9 58%,#19312699),url(assets/crown-valley.webp) center 49%/cover}
.court-lobby-door b,.court-lobby-door small{display:block}.court-lobby-door b{font:700 clamp(20px,2vw,28px) Georgia,serif}.court-lobby-door small{margin-top:4px;color:#e3d8b9}.court-lobby-door>span:last-child{margin-left:auto}
.door-mark{font-size:28px}.court-lobby-door:hover{filter:brightness(1.12)}
#player-lobby{padding:0;width:min(760px,94vw);max-height:90dvh;box-sizing:border-box;color:#f7e7c6;box-shadow:0 24px 78px #000b}
#player-lobby .hall-header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px;background:linear-gradient(90deg,#18251df5,#1b241d66),url(assets/crown-valley.webp) center 48%/cover}
#player-lobby h2{font:700 clamp(26px,4vw,40px) Georgia,serif;margin:0}
.hall-presence{margin:8px 0 0}.hall-presence::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#b7d69b;margin-right:8px;box-shadow:0 0 9px #aec89b}
.hall-body{padding:18px 24px}.hall-loadout,.hall-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hall-loadout select{width:100%;padding:8px;background:#101a14;color:#f2e2be;border:1px solid #727758;border-radius:4px}
.hall-columns h3{margin:18px 0 9px;color:#e6c788;font:600 20px Georgia,serif}
.hall-columns .btn{cursor:pointer}.hall-players,.lobby-bots{display:grid;gap:6px}
.lobby-bots button{display:flex;align-items:center;gap:10px;text-align:left}.lobby-bots img{width:38px;height:38px;object-fit:cover;object-position:center 24%;border-radius:50%}
.room-list{margin:12px 0 20px}.hall-activity{color:#cecfab}.hall-body [role=status]:empty,.hall-activity:empty{display:none}
@media(max-width:560px){.hall-columns{grid-template-columns:1fr}.hall-columns>section:last-child{grid-row:1}.hall-body{padding:14px}.hall-loadout{gap:8px}.hall-loadout label{min-width:0}}
@media(prefers-reduced-motion:no-preference){#player-lobby[open]{animation:hall-enter .22s ease-out}@keyframes hall-enter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:none}}}

.coffer-room{max-width:1080px;margin:auto;color:#efe5ca}
.coffer-hero{min-height:clamp(300px,46vh,490px);display:flex;align-items:center;padding:clamp(22px,5vw,70px);box-sizing:border-box;border:1px solid #9b8152;border-radius:8px;background:linear-gradient(90deg,#171a13e8 0%,#1617108a 37%,transparent 66%),url(assets/royal-coffer.webp) 55% center/cover;box-shadow:0 16px 32px #08090570}
.coffer-hero>div{max-width:42ch;display:grid;gap:12px;justify-items:start}
.coffer-hero h1,.coffer-heading h1{font:600 clamp(32px,4vw,56px)/1.05 Georgia,serif;margin:0;color:#fff0ce}
.coffer-hero p,.coffer-room>p{margin:0;color:#e1d5b6}
.coffer-info{display:grid;grid-template-columns:3fr 2fr;gap:24px;margin:22px 0}
.coffer-info h2{font:600 24px Georgia,serif;margin:0}
.coffer-info p{max-width:58ch;color:#d5c8a8;line-height:1.6}
.coffer-info summary{cursor:pointer;color:#ead7a4;padding:12px;border-block:1px solid #8a734755}
.coffer-heading,.reward-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reward-actions{justify-content:center;margin:16px 0}
.reward-deal{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:clamp(10px,2vw,30px);padding:26px clamp(8px,2vw,28px);perspective:1200px}
.reward-card{position:relative;display:block;color:#f4dfaf;background:transparent;border:0;border-radius:8px;padding:0;min-width:0;min-height:310px;aspect-ratio:2/3;cursor:pointer;transform-style:preserve-3d}
.reward-back,.reward-face{box-sizing:border-box;position:absolute;inset:0;border:1px solid #bb9a5f;border-radius:8px;box-shadow:0 10px 24px #0008;overflow:hidden;backface-visibility:hidden}
.reward-back{display:grid;align-items:end;background:#262119 url(assets/crowned-raven-back.webp) center/cover}
.reward-back strong{display:block;padding:13px;background:#161710e3;color:#f9e5ba;font:600 20px Georgia,serif}
.reward-face{display:flex;flex-direction:column;gap:6px;text-align:left;background:linear-gradient(140deg,#343629,#181b15);transform:rotateY(180deg)}
.reward-face img{width:100%;height:53%;object-fit:cover;object-position:center 28%}
.reward-face small,.reward-face strong,.reward-face>span{margin:0 12px}
.reward-face small{color:#ddc791;font:600 11px system-ui;text-transform:uppercase}
.reward-face strong{font:600 clamp(17px,1.7vw,24px)/1.06 Georgia,serif;color:#fff1c7}
.reward-face>span{font:13px/1.4 system-ui;color:#ded4ba;overflow:auto;padding-bottom:8px}
.reward-card.turned .reward-back{transform:rotateY(-180deg)}.reward-card.turned .reward-face{transform:none}
.reward-card:focus-visible{outline:3px solid #f9d98d;outline-offset:3px}
.coffer-room>p{text-align:center}
@media(prefers-reduced-motion:no-preference){
 body:not(.fx-off) .reward-card:not(.turned){animation:deal-reward .46s ease-out backwards;animation-delay:calc(var(--order)*90ms)}
 @keyframes deal-reward{from{opacity:0;transform:translateY(20px) rotate(-4deg)}}
}
@media(max-width:620px){.coffer-info{grid-template-columns:1fr}.coffer-hero{background-position:64% center}.coffer-hero>div{background:#14160edb;padding:12px;border-radius:4px}.reward-deal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reward-card{min-height:225px}.reward-face img{height:43%}.reward-face small,.reward-face strong,.reward-face>span{margin:0 6px}.reward-face>span{font-size:12px}.coffer-heading{align-items:end}}

/* The treasury cards use a painted, transparent metal mount over one continuous face. */
[data-tier=common]{--enamel:#a8b7a7;--jewel:#47594f}
[data-tier=rare]{--enamel:#85d0ed;--jewel:#1a5169}
[data-tier=epic]{--enamel:#dbacf4;--jewel:#663c79}
[data-tier=legendary]{--enamel:#ffd581;--jewel:#86511d}
.opening-table{padding:clamp(14px,3vw,38px);border-radius:12px;background:linear-gradient(#07140f44,#08130e15 55%,#070d0be6),url(assets/treasury-table.webp) center/cover;box-shadow:inset 0 0 75px #060b08ad,0 15px 36px #0008}
.opening-table .coffer-heading{color:#fff4ce;text-shadow:0 2px 8px #000}
.opening-table .reward-deal{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(14px,2vw,32px);padding:30px 0 12px}
.opening-table .reward-card{width:min(29%,265px);height:auto;min-height:0;aspect-ratio:0.568;isolation:isolate}
.reward-card .reward-back{background-size:100% 100%;border:0}
.reward-card .reward-back strong{margin:0 7% 9%;padding:9px 4px;border-block:1px solid #bd9e63;background:#1a211bea;color:#f3deb0;font:small-caps 600 18px Georgia,serif}
.reward-card .reward-face{padding:6% 6% 8%;border:0;gap:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto auto;background:radial-gradient(ellipse at top,var(--jewel),#131b18 75%);box-shadow:0 10px 24px #000b,0 0 16px color-mix(in srgb,var(--enamel) 30%,transparent)}
.reward-card .reward-face::after,.reward-card .reward-back::after,.collection-art::after{content:'';position:absolute;inset:0;background:url(assets/imperial-mount.webp) center/100% 100% no-repeat;pointer-events:none}
.reward-card .reward-face>span{margin:0;padding:0;overflow:visible}
.reward-face .reward-picture{display:block;min-height:0;overflow:hidden;background:#111a16 url(assets/grain.png);border-radius:2px}
.reward-card .reward-picture img{width:100%;height:100%;display:block;object-fit:contain}
.reward-face .reward-caption{display:grid;justify-items:center;text-align:center;gap:4px;background:linear-gradient(90deg,#101714,var(--jewel),#101714);padding:0 4px 7px!important}
.reward-card .reward-caption strong,.reward-card .reward-caption small{margin:0}
.reward-card .reward-caption strong{font:600 clamp(17px,1.65vw,24px)/1.04 Georgia,serif}
.reward-card .reward-caption small{font:600 10px/1.25 system-ui;letter-spacing:.09em;color:#e4d9ba}
.rarity-mark{display:inline-flex;align-items:center;gap:6px;color:var(--enamel);font:700 10px/1.3 system-ui;text-transform:uppercase;letter-spacing:.12em}
.rarity-mark i{font:normal 10px Georgia;color:var(--enamel)}
.reward-caption .rarity-mark{position:relative;margin-top:-8px;background:#16201b;padding:3px 12px;border:1px solid var(--enamel);clip-path:polygon(6% 0,94% 0,100% 50%,94% 100%,6% 100%,0 50%)}
.card-figures{display:flex;justify-content:space-around;gap:8px;padding:7px 5px;background:#0c1412;color:#f7edce}
.card-figures>span{display:grid;justify-items:center;gap:1px}
.card-figures small,.reward-card .card-figures small{font:600 9px/1.25 system-ui;text-transform:uppercase;letter-spacing:.08em;color:#b8b5a1;margin:0}
.card-figures b{font:600 14px/1.2 Georgia;color:#fff1ca}
.reward-card .reward-face>.card-figures{padding:6px 3px}
.reward-card .reward-face>.reward-rules{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-align:center;color:#e0dbc9;font:13px/1.36 Georgia,serif;margin:7px 3px 3px}
.reward-card .reward-face>.reward-copy{text-align:center;font:italic 11px Georgia;color:#c4ae84}
.collection-art{position:relative}
.collection-card .rarity-mark{margin-bottom:6px}
.collection-body .card-figures{margin:0 0 8px;justify-content:flex-start;gap:14px;padding:5px 7px}
.card-reading .card-figures{margin:12px 0}
.card-reading .rarity-mark{margin-right:12px}
.tier-odds{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.tier-odds span{color:var(--enamel);text-transform:capitalize;background:#121b17;padding:5px 9px}
@media(max-width:780px){.opening-table .reward-card{width:min(44%,250px)}}
@media(max-width:530px){.opening-table .reward-card{width:min(92%,260px)}.opening-table .coffer-heading{flex-wrap:wrap}}
.reward-card[data-tier=legendary] .reward-caption,.reward-card[data-tier=epic] .reward-caption,.reward-card[data-tier=rare] .reward-caption{border-block-end:2px solid var(--enamel)}

.reward-card .reward-face{grid-template-rows:minmax(0,1fr) auto auto}
.opening-table .reward-card{aspect-ratio:.64}
.reward-card .reward-back{display:grid;place-items:center}
.coffer-seal{position:relative;display:block;width:30%;aspect-ratio:1;filter:drop-shadow(1px 4px 4px #110902)}
.seal-half{position:absolute;inset:0;border-radius:48% 44% 47% 42%;background:radial-gradient(ellipse at 35% 25%,#ce7150,#8c2c1f 42%,#651910 64%,#9c3723 69%,#4b1b13 80%);box-shadow:inset 2px 2px 3px #ec9c72,inset -2px -2px 2px #47170f;display:grid;place-items:center;color:#e6a276;font:600 clamp(20px,3vw,36px) Georgia;text-shadow:0 2px 1px #47140d}
.seal-half::before{content:'♛';display:grid;place-items:center;width:72%;height:72%;border:2px solid #a64e36;border-radius:50%;box-shadow:0 1px 1px #f0a278,inset 0 1px 2px #531b10}
.seal-half:first-child{clip-path:polygon(0 0,53% 0,45% 36%,55% 52%,44% 72%,53% 100%,0 100%)}
.seal-half:last-child{clip-path:polygon(52% 0,100% 0,100% 100%,52% 100%,43% 72%,54% 52%,44% 36%)}
.reward-card .reward-face>.reward-copy{position:absolute;right:7%;top:5.8%;padding:3px 9px;background:#18221bea;color:#f8e8bd;border:1px solid #aa915c;border-radius:2px;font:600 11px Georgia}
.reward-card .reward-caption{padding:0 4px 10px!important}
.reward-card .reward-face>.card-figures{padding:8px 3px 5px;background:linear-gradient(180deg,#101814,#17211b)}
.card-figures>span{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.card-figures i{font:normal 18px/1 Georgia;text-shadow:0 1px 2px #000}
.card-figures b{font:700 18px/1 Georgia}
.figure-silver i{color:#eee2b9}.figure-ruby i,.figure-health i{color:#f98e7b}.figure-attack i{color:#e4cf91}
.coffer-light{position:absolute;inset:-17%;width:134%;height:134%;pointer-events:none;z-index:5;mix-blend-mode:screen}
.foil-sweep{position:absolute;inset:0;pointer-events:none;z-index:2;transform:translateX(-110%);background:linear-gradient(110deg,transparent 28%,color-mix(in srgb,var(--enamel) 17%,transparent) 44%,#fff8ce90 50%,transparent 54%);mix-blend-mode:screen}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body:not(.fx-off) .reward-card:not(.turned):hover .coffer-seal{filter:drop-shadow(0 0 8px #efb26f)}
 body:not(.fx-off) .reward-card.turned:hover .reward-face{box-shadow:0 9px 28px #0009,0 0 22px var(--jewel);transition:box-shadow .28s}
}

.reward-layout{position:relative}
#reward-inspector{position:relative;align-self:center;min-width:0;max-height:min(540px,75vh);overflow:auto;box-sizing:border-box;padding:18px;color:#efe5cd;background:linear-gradient(145deg,#2c3329,#121c18 64%,#24241a);border:1px solid #aa8f57;border-radius:7px;box-shadow:0 8px 28px #0009,inset 0 0 0 3px #121912}
#reward-inspector[hidden]{display:none}
#reward-inspector .reward-detail-art{display:block;width:100%;height:clamp(130px,20vh,200px);object-fit:contain;background:#101713;margin-bottom:12px}
#reward-inspector h2{font:600 24px/1.08 Georgia,serif;color:#fff2ca;margin:6px 0}
#reward-inspector small{font:600 10px system-ui;text-transform:uppercase;letter-spacing:.1em;color:#c5b994}
#reward-inspector .card-figures{margin:12px 0}
#reward-inspector p{font:16px/1.45 Georgia,serif;margin:0}
.reward-dismiss{position:absolute;right:6px;top:6px;width:34px;height:34px;border:1px solid #aa915c;border-radius:50%;background:#17201bf2;color:#fff1cc;font:24px/1 Georgia;cursor:pointer;z-index:1}
.reward-card[aria-expanded=true]{outline:2px solid var(--enamel);outline-offset:3px}
@media(min-width:960px){
 .coffer-room.opening-table{max-width:1360px}
 .reward-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(215px,19vw,300px);gap:clamp(12px,2vw,32px)}
}
@media(max-width:959px){
 #reward-inspector{position:fixed;right:10px;bottom:12px;width:min(310px,88vw);max-height:min(500px,60dvh);z-index:50}
 #reward-inspector .reward-detail-art{height:96px}
}
.reward-card .reward-face>.new-copy{overflow:hidden;padding:4px 12px;color:#371b04;background:linear-gradient(118deg,#ae782c,#ffe999 37%,#fff9cc 47%,#e3a338 80%,#ffe39a);border:1px solid #fff2b0;border-radius:2px 8px 2px 8px;box-shadow:0 1px 4px #301803,0 0 9px #f7b949c9;font:800 11px/1.1 system-ui;letter-spacing:.12em}
.new-copy::before{content:'✦';margin-right:3px}
@media(prefers-reduced-motion:no-preference){
 body:not(.fx-off) .new-copy::after{content:'';position:absolute;inset:-50% -20%;background:linear-gradient(112deg,transparent 42%,#fffbed 50%,transparent 58%);animation:minted-shine 3.4s ease-in-out infinite;animation-delay:calc(var(--order)*.25s)}
 body:not(.fx-off) #reward-inspector:not([hidden]){animation:reward-drawer-in .22s ease-out}
 @keyframes minted-shine{0%,45%{transform:translateX(-100%)}78%,100%{transform:translateX(100%)}}
 @keyframes reward-drawer-in{from{opacity:0;transform:translateX(18px)}}
}
