*{box-sizing:border-box}html{background:#070706;color:#ddd9cb;color-scheme:dark;font-family:Arial,Helvetica,sans-serif}body{margin:0;scrollbar-color:#9c7734 #14120e}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,summary:focus-visible{outline:3px solid #fff1a6;outline-offset:4px}::selection{background:#b28023;color:#fff}main{max-width:1480px;margin:auto;padding:0 24px 24px}.page-header{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2d271c}.page-header h1{font-family:Georgia,serif;font-size:26px;color:#dfbe71;margin:0}.page-header h1 span{font-size:17px;color:#c2b595;font-weight:400;margin-left:16px;letter-spacing:2px}.build-label{font-size:11px;color:#ab9e82;letter-spacing:1px}.viewport{width:100%;position:relative;overflow:hidden;background:#000}.game-scene{width:1400px;height:1080px;transform-origin:top left;position:relative;background:radial-gradient(ellipse at 47% 46%,#1d1406 0,#000 61%);isolation:isolate}.loading{position:absolute;top:40%;right:40%;bottom:40%;left:40%;white-space:nowrap}.field-plaque{position:absolute;left:86px;top:65px;z-index:4;width:208px;height:108px;background:#070526;border:5px ridge #c8cadb;display:flex;flex-direction:column;align-items:center;justify-content:space-around;box-shadow:0 8px 20px #0008}.field-plaque strong{font-family:Georgia,serif;font-size:34px;color:#beb6ec;text-shadow:2px 3px #332050;letter-spacing:5px}.field-plaque span{font-size:32px}.duelist-hud{position:absolute;top:45px;right:42px;width:353px;z-index:5}.status{position:relative;border:5px ridge #c8cadb;margin-bottom:3px;padding:8px 16px 9px 58px;min-height:94px;box-shadow:0 8px 16px #0008}.status.opponent{background:#17115a}.status.player{background:#a70913}.status>div{display:flex;align-items:center;justify-content:space-between;gap:14px}.lp-label{font-size:24px;color:#ffe16f;font-weight:700;font-family:Georgia,serif}.status strong{font-size:42px;line-height:1;letter-spacing:3px;font-variant-numeric:tabular-nums;color:#e0dfe4;text-shadow:3px 3px #131329}.nameplate{position:absolute;font-family:Georgia,serif;font-size:22px;letter-spacing:1px;left:-130px;top:39px;white-space:nowrap;padding:5px 18px;background:#211d63;border:3px ridge #c8cadb;min-width:160px}.status.player .nameplate{background:#be0d18;left:-45px;top:6px;min-width:90px}.pile-counts{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:1px;color:#d6d2ef;margin-top:8px;font-variant-numeric:tabular-nums}.status.player .pile-counts{color:#ffdad4}.opponent-hand{position:absolute;left:397px;top:97px;display:flex;gap:15px;opacity:.66;transform:rotate(-6deg);z-index:0}.opponent-hand .card-back{width:50px;height:66px}.card-back{display:inline-block;border:4px solid #9b5f17;background:#110b08;padding:5px}.card-back>span{display:block;width:100%;height:100%;background:repeating-radial-gradient(ellipse at 50% 47%,#221009 0,#221009 3px,#c87b23 5px,#39200f 8px);border:1px solid #c58b38}.board-perspective{position:absolute;left:170px;top:190px;width:1060px;height:490px;perspective:1500px;z-index:1}.gold-board{width:1060px;height:490px;border:15px ridge #e9af27;background:#ce911b;transform:scale(.88) rotateX(35deg) rotate(-10deg);transform-style:preserve-3d;box-shadow:0 23px #8b4e0b,0 36px 40px #000b;position:relative}.board-row{display:grid;grid-template-columns:repeat(5,1fr);height:103px;padding:0 9px;gap:7px}.board-row.opponent{background:#b67c16}.board-row.player{background:#c28b20}.zone{position:relative;display:flex;align-items:center;justify-content:center;padding:5px;margin:0;border:3px solid #5b350a;outline-offset:-7px;background:repeating-linear-gradient(21deg,#db9c1c 0,#db9c1c 2px,#dfa524 2px,#dfa524 7px,#e5b22f 9px,#e5b22f 12px);color:#6f4715;box-shadow:inset 2px 2px #ffe667,inset -3px -3px #92600f;overflow:visible}.zone:hover{background:#edc551;border-color:#fff1b0}.zone.selected,.zone.attack-selected{outline:4px solid #d92324;outline-offset:-5px}.zone-mark{font-family:Georgia,serif;font-size:29px;color:#68400a;text-shadow:1px 1px #ffda6666}.zone-mark small{display:block;font-family:Arial,sans-serif;font-size:11px;letter-spacing:2px}.field-divider{height:47px;background:#120d07;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-top:6px solid #6f410e;border-bottom:6px solid #e9bb47;font-family:Georgia,serif;font-size:15px;letter-spacing:6px;color:#b48a3f}.field-card{width:71px;height:87px;display:block;transform:rotate(180deg);box-shadow:0 8px 11px #0009}.board-row.player .field-card{transform:none}.field-card.used{filter:brightness(.6)}.field-card .card-face{padding:4px;border-width:2px}.field-card .card-number{font-size:8px;top:0;left:2px}.field-card .card-stats{font-size:8px;height:13px;gap:2px}.field-card .placeholder{height:60px;font-size:9px;padding-top:8px}.field-card .placeholder>span,.field-card .placeholder small{display:none}.field-card .placeholder strong{font-size:25px}.field-card .card-face img{height:61px}.board-edge{position:absolute;top:100%;left:-15px;width:1060px;height:30px;border:5px ridge #ac751a;background:repeating-linear-gradient(90deg,#7b4809 0,#7b4809 4px,#dba225 4px,#dba225 14px,#96600b 14px,#96600b 19px,#e5b83e 19px,#e5b83e 35px);color:transparent;overflow:hidden}.hand-stone{position:absolute;left:68px;right:42px;top:692px;bottom:25px;z-index:3;padding:14px 26px 12px;background:repeating-linear-gradient(121deg,#55513d 0,#55513d 2px,#4a4735 3px,#4a4735 5px,#57523c 5px,#57523c 9px);border:10px ridge #69644a;box-shadow:0 -12px 26px #0008}.hand-label{position:absolute;top:-27px;left:17px;display:flex;gap:24px;background:#18150d;color:#bcb08e;font-size:12px;letter-spacing:3px;padding:7px 12px}.hand-label span{color:#f4d58a;letter-spacing:1px}.player-hand{height:204px;display:grid;grid-template-columns:repeat(5,1fr);gap:40px}.hand-card{position:relative;display:block;width:100%;height:204px;padding:0;background:transparent;border:0;transition:transform .14s ease-out}.hand-card:hover{transform:translateY(-9px)}.hand-card[draggable=true]{cursor:grab}.hand-card:active[draggable=true]{cursor:grabbing}.hand-card.selected:before{content:"";position:absolute;left:-23px;top:147px;border-left:21px solid #f51d25;border-top:14px solid transparent;border-bottom:14px solid transparent;z-index:4;filter:drop-shadow(2px 3px 2px #000)}.hand-card.selected .card-face{outline:3px solid #e5dca5;outline-offset:3px}.card-face{position:relative;display:flex;flex-direction:column;width:100%;height:100%;padding:10px 8px 6px;background:#bb8526;border:5px ridge #dcc783;overflow:hidden}.card-face.spell{background:#497644;border-color:#8aba72}.card-face.trap{background:#a03c68;border-color:#ce83ac}.card-number{position:absolute;top:2px;left:7px;font-size:11px;font-weight:700;color:#33250b;z-index:2}.card-face img{display:block;min-height:0;width:100%;height:156px;object-fit:contain;image-rendering:auto;background:#20160d}.card-stats{height:30px;padding-top:4px;display:flex;align-items:center;justify-content:space-around;gap:6px;font-size:21px;letter-spacing:1px;font-variant-numeric:tabular-nums;color:#e7e6e8;text-shadow:2px 2px #1d2840;font-family:Georgia,serif}.card-stats>span{font-size:16px;color:#736139}.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:156px;background:radial-gradient(ellipse,#292014,#100d08);border:2px solid #705022;padding:12px 5px;color:#ceb675}.placeholder>span{font:12px Georgia,serif;letter-spacing:1px}.placeholder strong{font-family:Georgia,serif;font-size:55px;font-weight:400;line-height:1.1;color:#b9954b}.placeholder small{font-family:Georgia,serif;text-align:center;font-size:12px;line-height:1.1}.empty-hand{border:2px inset #655f44;background:#24221955}.selected-strip{height:78px;margin-top:13px;border:5px groove #827858;background:#060605;display:flex;align-items:center;justify-content:space-between;padding:0 13px;gap:14px}.selected-strip h2{font-family:Georgia,serif;font-size:26px;letter-spacing:1px;margin:0 0 5px;color:#e0dfe4;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:690px}.selected-strip div>span{font-size:10px;color:#c4b896;letter-spacing:1px}.large-stats{display:flex;gap:25px;align-items:center}.large-stats>span{display:flex;align-items:center;gap:10px!important;font-size:13px!important;color:#bfac6d!important;letter-spacing:0!important}.large-stats b{font-size:31px;font-family:Georgia,serif;letter-spacing:1px;font-weight:400;color:#e0dfe4;text-shadow:2px 2px #17213a;font-variant-numeric:tabular-nums}.controls{border:1px solid #393020;background:#13110e;padding:20px 24px}.turn-controls{display:flex;align-items:center;gap:22px}.turn-text{display:flex;flex-direction:column;gap:5px;min-width:122px}.turn-text strong{font-family:Georgia,serif;font-size:23px;font-weight:400;color:#eedba8}.turn-text span{font-size:12px;color:#b5aa91}.phases{list-style:none;display:flex;padding:0;margin:0;flex:1;gap:0;border:1px solid #423823}.phases li{flex:1;font-size:12px;text-align:center;padding:14px 9px;border-right:1px solid #423823;color:#978973}.phases li:last-child{border:0}.phases .active{background:#a77c28;color:#fff3d0;font-weight:700}.primary-button,.reset-button{border:1px solid #997432;background:#c1943d;color:#130f08;min-height:44px;padding:10px 18px;font-size:13px;font-weight:700;white-space:nowrap}.primary-button:hover:not(:disabled){background:#e2b658}.primary-button>span{padding-left:12px}.reset-button{background:transparent;color:#c1ae88;border-color:#635333}.reset-button:hover{color:#f3d18b}.help-row{min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:15px}.help-row p{font-size:12px;line-height:1.7;color:#c6b895;margin:12px 0}.controls details{border-top:1px solid #332d21;padding:12px 0;color:#ae9f83;font-size:12px;line-height:1.7}.controls summary{cursor:pointer;min-height:24px;color:#d4c29c}.controls details p{max-width:75ch}.controls details ul{padding-left:20px}.controls footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #332d21;padding-top:12px;font-size:10px;color:#9c8e74;line-height:1.6}.controls footer>span:first-child{color:#c9af76}@media(max-width:900px){main{padding:0 12px 12px}.page-header{height:62px}.page-header h1{font-size:20px}.page-header h1 span{font-size:12px;margin-left:10px;letter-spacing:1px}.build-label{display:none}.controls{padding:16px}.turn-controls{flex-wrap:wrap;gap:12px}.turn-text{min-width:100px;flex:1}.phases{order:3;flex-basis:100%}.controls footer{flex-direction:column;gap:4px}}@media(max-width:480px){main{padding:0 6px 10px}.page-header{height:58px}.page-header h1{font-size:21px}.page-header h1 span{display:block;font-size:10px;margin:3px 0 0;letter-spacing:2px}.controls{padding:13px}.turn-text strong{font-size:20px}.turn-text span{font-size:11px}.primary-button,.reset-button{padding:10px 11px;font-size:12px}.turn-controls{gap:8px}.phases li{font-size:10px;padding:13px 2px}.controls footer{font-size:10px}.help-row p{font-size:11px}.game-scene .hand-card:hover{transform:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}.controls{margin:0;min-width:0}a{color:#e2c17c;text-underline-offset:4px}a:hover{color:#fff1c7}a:focus-visible,input:focus-visible{outline:3px solid #fff1a6;outline-offset:3px}.account-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #42331d;background:#0e0c08}.account-identity{display:flex;flex-direction:column;gap:4px;min-width:0;padding-left:12px}.account-identity>span{font-size:13px;color:#e1c78e;overflow-wrap:anywhere}.account-identity small{font-size:10px;color:#a69a80}.account-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.account-actions>a{font-size:12px;padding:12px 4px}.account-actions .reset-button{font-size:12px;min-height:44px}.account-toast{position:fixed;right:24px;top:24px;z-index:20;border:2px ridge #c8a458;background:#211b0d;color:#fff0bb;padding:16px 28px;box-shadow:0 8px 24px #000b;font-weight:700}.auth-error{background:#371415;color:#ffd4c9;border:1px solid #9d4840;padding:12px;font-size:13px;line-height:1.6;margin:14px 0}.account-error{margin:8px 0}.auth-page{min-height:100vh;background:radial-gradient(ellipse at 50% 40%,#211909 0,transparent 65%)}.auth-panel{width:min(100%,480px);margin:68px auto;padding:28px 36px 34px;border:5px ridge #aa7f30;background:linear-gradient(155deg,#211b11,#0b0a08 65%);box-shadow:0 18px 70px #000b,inset 0 0 0 2px #30250f}.auth-emblem{color:#d0a54c;text-align:center;font:52px Georgia,serif;line-height:1.1;text-shadow:0 0 22px #ce98294d}.auth-eyebrow{color:#bda66f;letter-spacing:2px;font-size:9px;text-align:center;line-height:1.8;margin:15px 0 22px}.auth-panel h2{font:30px Georgia,serif;color:#efcf8c;margin:0 0 12px}.auth-intro{font-size:13px;color:#bdb096;line-height:1.7;margin:0 0 20px}.demo-notice{padding:12px;border-left:2px solid #ae8334;background:#34291566;font-size:12px;line-height:1.7;color:#d1bc8e;margin:0 0 22px}.auth-panel form{display:flex;flex-direction:column}.auth-panel label{font-size:13px;color:#dfceaa;margin:0 0 8px}.auth-panel input{width:100%;height:46px;background:#080706;color:#f3e7cc;border:1px solid #72603b;padding:10px 12px;font:16px Arial,sans-serif;margin-bottom:20px;border-radius:0}.auth-panel input::placeholder{color:#968873}.auth-panel input:disabled{opacity:.6}.auth-panel input[name=password]{margin-bottom:8px}.auth-panel small{font-size:11px;color:#a99b80}.auth-panel form>.primary-button{margin-top:24px;min-height:48px}.auth-switch{font-size:13px;text-align:center;margin:24px 0 0;line-height:1.8;color:#b6a78a}.auth-switch a{margin-left:6px}.demo-link{font-size:12px;display:block;text-align:center;margin-top:20px;line-height:1.7;color:#bfad85}.session-loading{padding:60px 24px;color:#ddc08a}@media(max-width:600px){.account-bar{align-items:stretch;flex-direction:column;gap:10px;padding:12px}.account-identity{padding:0}.account-actions{gap:8px}.account-actions .reset-button{padding:10px 14px}.account-actions>a{padding:12px 3px}.auth-panel{margin:34px auto;padding:24px 22px 28px}.auth-panel h2{font-size:27px}.auth-eyebrow{font-size:8px;letter-spacing:1px}.account-toast{right:14px;top:14px}.auth-page{padding:0 16px 24px}}
