/* Card game styles are scoped. The public scale helper skips this stylesheet:
   the board sizes itself against the viewport instead of browser zoom. */
.duel-page{--duel-accent:#c9afd9;--duel-line:#ffffff25;--duel-muted:#b2a8b9;--duel-hand-height:clamp(154px,15dvh,210px);--duel-field-card-height:clamp(74px,calc((100dvh - var(--duel-nav-height,80px) - var(--duel-hand-height) - 224px)/6 - 8px),150px);color:#eee8f2;font-family:'ObelixPro',sans-serif}
.duel-shell{width:min(2460px,calc(100% - 48px));margin:16px auto 32px}
.duel-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.duel-hero h1{font-size:38px;line-height:1.15;margin:8px 0;font-weight:400;letter-spacing:0}
.duel-spark{display:inline-block;font:24px 'ObelixPro',sans-serif;color:#c4a1db;margin-left:18px;vertical-align:middle}
.duel-eyebrow{display:block;font-size:11px;letter-spacing:1.5px;color:#ad90bf;line-height:1.5}
.duel-header-tools,.duel-game-tools{display:flex;gap:10px;align-items:center}
.duel-btn,.duel-page .duel-btn,.duel-admin .duel-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:10px 18px;color:#f5ecfc;background:#392c42;border:1px solid #80638f;border-radius:7px;font:inherit;font-size:16px;line-height:1.4;text-decoration:none;cursor:pointer;box-sizing:border-box;box-shadow:none;transition:background .15s,border-color .15s}
.duel-btn:hover:not(:disabled){background:#513a60;border-color:#c3a2d1}.duel-btn--quiet,.duel-page .duel-btn--quiet{background:#100e13;border-color:#ffffff30;color:#d6cddd}
.duel-btn:disabled,.duel-counter:disabled{opacity:.45;cursor:default}
.duel-page :is(button,input,select):focus-visible,.duel-dialog :is(button,input,select):focus-visible{outline:2px solid #d7b5ed;outline-offset:3px}
.duel-page input,.duel-page select,.duel-dialog input,.duel-dialog select{color:#f1eaf6;background:#0d0c10;border:1px solid #ffffff38;border-radius:6px;padding:10px 12px;min-height:42px;font:inherit;font-size:16px;box-sizing:border-box;max-width:100%}
.duel-lobby-grid{display:grid;grid-template-columns:1fr 1fr .85fr;gap:22px;max-width:1900px;margin:32px auto 0}
.duel-mode-card,.duel-deck-summary,.duel-room-panel,.duel-welcome{border:1px solid var(--duel-line,#ffffff25);border-radius:12px;background:linear-gradient(145deg,#20152799,#09090b 75%);padding:32px}
.duel-mode-card{display:flex;flex-direction:column;align-items:flex-start;min-height:310px}
.duel-mode-icon{font:44px 'ObelixPro',sans-serif;color:#c6a5d7;margin:4px 0 24px}
.duel-mode-card h2,.duel-deck-summary h2,.duel-room-panel h2{font-size:28px;font-weight:400;margin:10px 0 18px}
.duel-mode-card p,.duel-welcome p{font:18px/1.7 'ObelixPro',sans-serif;color:#c4b7cf;max-width:650px}
.duel-mode-card .duel-btn{margin-top:auto}.duel-deck-summary{display:flex;flex-direction:column;align-items:center;text-align:center}.duel-deck-summary p{font:17px/1.5 'ObelixPro',sans-serif;color:#c0afca;margin:0 0 22px}.duel-deck-summary .duel-btn{margin-top:auto}
.duel-seal,.duel-faction-seal{display:grid;place-items:center;width:70px;height:70px;border:1px solid #b08bc15e;border-radius:50%;font-size:32px;color:#d4b8e4;flex:0 0 auto}.duel-seal{margin:18px auto}
.duel-room-panel{max-width:1900px;margin:22px auto 0;background:#0c0a10}
.duel-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.duel-panel-heading h2{margin:6px 0}
.duel-join{display:flex;gap:10px;align-items:center}.duel-join input{width:210px;text-transform:uppercase;letter-spacing:1px}
.duel-room-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.duel-room,.duel-page .duel-room{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ffffff04;border:1px solid #ffffff25;border-radius:7px;padding:18px;color:#eadff2;text-align:left;font:17px 'ObelixPro',sans-serif;cursor:pointer}.duel-room:hover{background:#c59adb14}.duel-room strong,.duel-room small{display:block;overflow-wrap:anywhere}.duel-room small{font-size:15px;color:#b3a0c0;margin-top:7px}
.duel-muted{color:#b2a4bd;font:16px/1.65 'ObelixPro',sans-serif}.duel-invalid{color:#f0a7b9!important}
.duel-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:420px;text-align:center;max-width:1500px;margin:30px auto}.duel-welcome h2{font-size:34px;font-weight:400;margin:8px}.duel-welcome p{margin:0 0 15px}.duel-room-code{font:700 32px/1.5 'ObelixPro',sans-serif;letter-spacing:4px;padding:18px 26px;border:1px dashed #b391c8;border-radius:7px;user-select:all}
/* Board: original game-style ordering, six combat rows and a hand in one viewport. */
.duel-in-game .duel-shell{height:calc(100dvh - var(--duel-nav-height,80px) - 20px);min-height:740px;display:flex;flex-direction:column;margin:8px auto 12px}
.duel-in-game .duel-hero{flex:0 0 auto;margin:0 0 8px;min-height:40px}.duel-in-game .duel-hero h1{font-size:28px;margin:0}.duel-in-game .duel-hero .duel-eyebrow{display:none}.duel-in-game .duel-header-tools .duel-btn{min-height:36px;padding:7px 14px;font-size:14px}
.duel-in-game #duelContent{flex:1;display:flex;flex-direction:column;min-height:0}
.duel-game-top{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:55px;flex:0 0 auto;margin-bottom:10px}
.duel-turn-label{font:400 27px/1.2 'ObelixPro',sans-serif;color:#c3b7ca;margin:4px 0 0}.duel-turn-label.is-own{color:#eddcf9}.duel-game-top .duel-eyebrow{font:12px/1.4 'ObelixPro',sans-serif;letter-spacing:1.5px}
.duel-move-hint{flex:1;max-width:850px;color:#c4b6cd;font:17px/1.45 'ObelixPro',sans-serif;margin:0}
.duel-game-tools .duel-btn{font:15px/1.3 'ObelixPro',sans-serif;min-height:38px;padding:8px 14px}
.duel-table{flex:1;min-height:0;display:grid;grid-template-columns:clamp(220px,14vw,300px) minmax(0,1fr) clamp(260px,18vw,380px);gap:18px}
.duel-table :is(p,span,small,h2,h3,strong,b,button){font-family:'ObelixPro',sans-serif}
.duel-player-column{display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);gap:12px;min-height:0}
.duel-player{border:1px solid #ffffff20;border-radius:9px;background:linear-gradient(145deg,#1c1421,#0b0a0e 75%);padding:18px;display:flex;flex-direction:column;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#665074 #151018}
.duel-player.is-turn{border-color:#c9a5db99;box-shadow:inset 3px 0 #c6a1d9}
.duel-player-heading{display:flex;align-items:center;gap:14px}.duel-faction-seal{width:52px;height:52px;font:26px 'ObelixPro',sans-serif;flex-basis:52px}
.duel-player .duel-eyebrow{font-size:11px}.duel-player h2{font-size:21px;line-height:1.3;font-weight:600;overflow-wrap:anywhere;margin:5px 0}.duel-player p{font-size:16px;line-height:1.4;color:#c1afcc;margin:5px 0}
.duel-player-score{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 6px}.duel-lives{display:flex;gap:12px;font-size:25px;color:#dcc0ee}.duel-lives .is-lost{color:#46394e}.duel-total{font-size:52px;font-weight:600;line-height:1;color:#f2e6fa;font-variant-numeric:tabular-nums}
.duel-player-state{min-height:22px;color:#dcc3ee!important;font-size:14px!important;letter-spacing:1px}
.duel-piles{display:flex;flex-wrap:wrap;gap:8px 15px;border-top:1px solid #ffffff20;padding-top:10px;font-size:15px;color:#c6b6d1}.duel-piles span,.duel-piles button{display:flex;align-items:center;gap:5px}.duel-page .duel-piles button{border:0;padding:0;background:transparent;color:#e7d3f4;font:15px 'ObelixPro',sans-serif;cursor:pointer}.duel-player small{font-size:14px;line-height:1.45;color:#b4a1c0;display:block;margin-top:12px}
.duel-player-leader{margin-top:auto;padding-top:14px}.duel-player-leader p{font-size:15px}.duel-player-leader .duel-btn{font-size:14px;margin-top:7px;min-height:36px;padding:7px 12px;width:100%}
.duel-weather{padding:10px 15px;border:1px solid #ffffff22;border-radius:7px;background:#141017}.duel-weather>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px;font:14px/1.4 'ObelixPro',sans-serif;color:#cbbed4}.duel-weather>div>span{padding-right:8px}
.duel-field{display:grid;grid-template-rows:28px minmax(0,1fr) 22px minmax(0,1fr);gap:4px;padding:10px;border:1px solid #8a6d985c;border-radius:9px;background:radial-gradient(ellipse at center,#44304d30,#0d0b10 80%);min-width:0;min-height:0;overflow:hidden}
.duel-opponent-hand{display:flex;align-items:center;justify-content:center;gap:15px;color:#b29ec1;font:13px/1.3 'ObelixPro',sans-serif}.duel-opponent-hand>div{display:flex;gap:4px;height:22px;overflow:hidden}.duel-opponent-hand i{display:block;width:18px;height:30px;border:1px solid #9471aa;border-radius:3px;background:repeating-linear-gradient(45deg,#34233c 0 3px,#17111d 4px 7px);transform:rotate(-5deg)}
.duel-half{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:6px;min-height:0}
.duel-center-line{display:flex;align-items:center;justify-content:center;gap:20px;letter-spacing:3px;color:#b495c5;font:12px/1 'ObelixPro',sans-serif;border-top:1px solid #9a78aa44;border-bottom:1px solid #9a78aa44}
.duel-lane{display:flex;align-items:stretch;gap:10px;min-height:0;min-width:0;border:1px solid #ffffff16;border-radius:5px;background:#ffffff03;position:relative;isolation:isolate;transition:background .15s,border-color .15s}
.duel-lane--weather{background:linear-gradient(110deg,#6d8fb12b,#2a284b33);border-color:#b4ccff44}.duel-lane--weather::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(110deg,transparent 0 40px,#bddbff0d 41px 42px,transparent 44px 80px);animation:duel-weather 8s linear infinite}
.duel-lane.is-target{background:#9a70bf1f;border-color:#d8b5ed;cursor:pointer;box-shadow:inset 0 0 20px #b187cf15}
.duel-lane-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:88px;flex:0 0 88px;padding:6px;text-align:center;background:#0003;border-right:1px solid #ffffff12;color:#c4b2ce}.duel-lane-label span{font-size:13px;line-height:1.3}.duel-lane-label b{font-size:32px;font-weight:500;font-variant-numeric:tabular-nums;color:#eaddf4}
.duel-lane-cards{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;flex:1;padding:4px 0;overflow:auto hidden;scrollbar-width:thin;scrollbar-color:#8b659e #1b1420}.duel-lane-effects{width:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:19px;color:#debfef}
/* A persistent large card viewer gives readable abilities without hiding the board. */
.duel-preview{border:1px solid #ffffff25;border-radius:9px;padding:18px;background:#110d16;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#82618e #1b1320}
.duel-preview-empty{display:flex;flex-direction:column;justify-content:center;min-height:100%;text-align:center}.duel-preview-emblem{font:60px 'ObelixPro',sans-serif;color:#c6a5d7}.duel-preview h3{font-size:25px;line-height:1.3;font-weight:600;color:#f1e5f9;margin:12px 0}.duel-preview p{font-size:17px;line-height:1.5;color:#cdbed6;margin:12px 0}.duel-preview .duel-muted{font-size:15px}.duel-preview-art{display:flex;justify-content:center}.duel-preview-copy .duel-eyebrow{margin-top:15px}.duel-preview .duel-action-list{display:flex;flex-direction:column;gap:8px;margin-top:15px}.duel-preview .duel-btn{font-size:15px;width:100%}
.duel-card,.duel-page .duel-card,.duel-admin .duel-card{display:block;position:relative;isolation:isolate;width:130px;height:184px;flex:0 0 130px;border:1px solid #ad86bd88;border-radius:6px;background:#1b1221;padding:0;overflow:hidden;text-align:left;font:inherit;color:#f8f0fc;box-sizing:border-box;line-height:1.3;transition:transform .15s,border-color .15s,box-shadow .15s}
.duel-card img{width:100%;height:100%;object-fit:cover;display:block;opacity:.95;margin:0;filter:none}.duel-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0002,transparent 25%,#0002 45%,#0c0710f7 82%);pointer-events:none;z-index:1}
button.duel-card{cursor:pointer}.duel-page button.duel-card:hover,.duel-page button.duel-card:focus-visible{border-color:#e4c8f3;box-shadow:0 0 20px #bf90df44;z-index:3}.duel-card.is-selected{border:2px solid #efceff;box-shadow:0 0 20px #be8cd54d}.duel-card.is-target{border-color:#e4d29b!important;box-shadow:0 0 15px #e4ce8b55!important}
.duel-card-power{position:absolute;left:5px;top:5px;display:grid;place-items:center;min-width:32px;height:34px;padding:2px 4px;border-radius:5px;background:#09060cf2;border:1px solid #c2a3d08c;color:#fff;font:600 23px/1 'ObelixPro',sans-serif;z-index:2;font-variant-numeric:tabular-nums}
.duel-card--hero{border-color:#c3ad70!important}.duel-card--hero .duel-card-power{color:#f7dfa4;border-color:#e9d18ba0}
.duel-card-row{position:absolute;top:8px;right:6px;max-width:65px;text-align:right;font:11px/1.3 'ObelixPro',sans-serif;color:#f1e7f7;z-index:2;text-shadow:0 1px 4px #000}
.duel-card-caption{position:absolute;left:7px;right:7px;bottom:7px;display:block;z-index:2}.duel-card-caption strong{display:block;font:600 14px/1.25 'ObelixPro',sans-serif;overflow-wrap:anywhere;max-height:54px;overflow:hidden}.duel-card-caption small{display:block;font:11px/1.3 'ObelixPro',sans-serif;color:#d0badd;margin-top:5px;max-height:30px;overflow:hidden}
.duel-page .duel-card--small{height:min(var(--duel-field-card-height),100%);width:calc(var(--duel-field-card-height)*.73);flex-basis:calc(var(--duel-field-card-height)*.73);border-radius:4px;max-width:120px;min-width:54px}
.duel-card--small .duel-card-power{min-width:27px;height:28px;font-size:20px;left:3px;top:3px}.duel-card--small .duel-card-row{display:none}.duel-card--small .duel-card-caption{left:4px;right:4px;bottom:4px}.duel-card--small .duel-card-caption strong{font-size:11px;line-height:1.1;max-height:36px}.duel-card--small .duel-card-caption small{display:none}
.duel-preview-art>.duel-card{width:min(235px,100%);height:auto;aspect-ratio:5/7;flex-basis:auto}.duel-preview-art .duel-card-power{min-width:44px;height:46px;font-size:31px}.duel-preview-art .duel-card-caption strong{font-size:20px;max-height:80px}.duel-preview-art .duel-card-caption small{font-size:14px;max-height:42px}.duel-preview-art .duel-card-row{font-size:13px;max-width:110px}
.duel-hand-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:53px;flex:0 0 auto;padding:8px 0}.duel-hand-heading>div{display:flex;align-items:center;gap:20px}.duel-hand-heading strong{font:600 18px 'ObelixPro',sans-serif;color:#eedff9}.duel-hand-heading span{font:16px 'ObelixPro',sans-serif;color:#b8a6c4}.duel-hand-heading label{display:flex;align-items:center;gap:10px;font:15px 'ObelixPro',sans-serif}.duel-hand-heading .duel-btn{min-width:130px}
.duel-hand{flex:0 0 var(--duel-hand-height);height:var(--duel-hand-height);display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:6px 2px 10px;overflow:auto hidden;scrollbar-width:thin;scrollbar-color:#8d679f #151018}
.duel-page .duel-card--hand{height:calc(var(--duel-hand-height) - 16px);width:calc((var(--duel-hand-height) - 16px)*.72);flex:0 0 calc((var(--duel-hand-height) - 16px)*.72)}
.duel-hand .duel-card:hover{transform:translateY(-4px)}
/* Native modal dialogs: rules, round results, choices and confirmations. */
.duel-dialog{width:min(1120px,calc(100vw - 40px));max-height:90dvh;color:#f0e7f6;background:#130e19;border:1px solid #a680b68c;border-radius:12px;padding:34px;font-family:'ObelixPro',sans-serif;box-sizing:border-box;overflow:auto;box-shadow:0 30px 100px #000a}
.duel-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.duel-dialog form[method=dialog]{position:absolute;top:10px;right:10px;margin:0}.duel-dialog-close{width:34px;height:34px;display:grid;place-items:center;background:transparent;border:0;color:#ddcae8;font:28px 'ObelixPro',sans-serif;cursor:pointer}
.duel-dialog h2{font:400 31px/1.35 'ObelixPro',sans-serif;margin:6px 0 20px}.duel-dialog h3{font:600 22px 'ObelixPro',sans-serif}.duel-dialog p{font:18px/1.6 'ObelixPro',sans-serif;color:#d0bfdc}.duel-dialog .duel-btn{font:16px 'ObelixPro',sans-serif}.duel-dialog :is(select,input){font-family:'ObelixPro',sans-serif}
.duel-card-detail{display:grid;grid-template-columns:240px 1fr;gap:30px;align-items:center}.duel-card-detail>.duel-card{width:240px;height:336px}.duel-card-detail .duel-card-power{min-width:44px;height:46px;font-size:30px}.duel-card-detail .duel-card-caption strong{font-size:20px;max-height:80px}.duel-card-detail .duel-card-caption small{font-size:14px;max-height:45px}
.duel-action-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.duel-picker{display:flex;flex-wrap:wrap;gap:22px;padding-top:12px}.duel-picker>div>.duel-btn{font-size:14px;min-height:38px;width:130px;padding:8px;margin-top:10px}
.duel-dialog--round{width:min(760px,calc(100vw - 36px));text-align:center;padding:44px}.duel-result h2{font-size:35px;margin:15px 0 28px}.duel-result-scores{display:flex;align-items:center;justify-content:center;gap:30px;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20;padding:24px 10px}.duel-result-scores>div{display:flex;flex-direction:column;align-items:center;gap:12px;flex:1;min-width:0}.duel-result-scores span{font:18px/1.4 'ObelixPro',sans-serif;overflow-wrap:anywhere}.duel-result-scores strong{font:600 60px/1 'ObelixPro',sans-serif;color:#e6c6f8}.duel-result-scores>b{font:40px 'ObelixPro',sans-serif;color:#a88cb8}.duel-result-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.duel-rules-content{font:18px/1.65 'ObelixPro',sans-serif;color:#d6c8df}.duel-rules-content h2{margin-top:0}.duel-rules-content dl{display:grid;grid-template-columns:190px 1fr;gap:14px 24px}.duel-rules-content dt{font-weight:600;color:#edd9f8}.duel-rules-content dd{margin:0}.duel-history{font:18px/1.7 'ObelixPro',sans-serif;color:#d5c2df;padding-left:24px}.duel-history li{padding:8px 0;border-bottom:1px solid #ffffff12}
.duel-deck-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.duel-deck-controls label{display:flex;flex-direction:column;gap:8px;font:16px 'ObelixPro',sans-serif}.duel-deck-controls select{max-width:400px}.duel-deck-controls p{font-size:15px;margin:0 0 10px}.duel-deck-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:24px;margin-top:26px}.duel-deck-item>.duel-card{margin:0 auto}.duel-deck-item p{font-size:13px;line-height:1.4;min-height:36px;margin:9px 0;color:#baa4c9}.duel-deck-item>div:last-child{display:flex;align-items:center;justify-content:center;gap:12px;font:16px 'ObelixPro',sans-serif}.duel-counter{width:34px;height:34px;display:grid;place-items:center;border:1px solid #8f6da6;background:#2a1c35;color:#f0d8ff;border-radius:5px;font:23px 'ObelixPro',sans-serif;cursor:pointer;padding:0}
.duel-flash{position:fixed;right:22px;bottom:22px;z-index:2147483000;max-width:min(520px,calc(100vw - 44px));padding:18px 22px;border:1px solid #a580bb;border-radius:9px;background:#201528;box-shadow:0 12px 60px #0009;color:#f0e3fa;font:17px/1.5 'ObelixPro',sans-serif}.duel-flash.is-error{border-color:#be7b91;background:#301c25;color:#ffd3df}.duel-flash[hidden]{display:none}.duel-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes duel-weather{to{background-position:80px 0}}
/* The existing monochrome admin theme supplies the real sidebar. */
.duel-admin .admin-main{align-content:start}.duel-admin-grid{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(530px,1.3fr);gap:22px;align-items:start;margin-top:0}.duel-admin .duel-panel-heading h2{font-size:24px}.duel-admin-list{max-height:78dvh;overflow:auto;margin-top:20px;display:flex;flex-direction:column;gap:7px}.duel-admin-item{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#0b0b0c;border:1px solid #444;border-radius:7px;padding:14px;color:#eee;text-align:left;cursor:pointer;font:inherit;font-size:16px}.duel-admin-item strong{display:block;font-weight:400}.duel-admin-item small{display:block;margin-top:7px;color:#aaa;font-size:12px}.duel-admin-item.is-selected{border-color:#aaa;background:#242426}.duel-admin-item>b{font-size:25px;color:#eee}.duel-editor{display:flex;flex-direction:column;gap:20px}.duel-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.duel-admin label{min-width:0}.duel-admin fieldset{border:1px solid #444;border-radius:8px;padding:20px;margin:0}.duel-effects{display:flex;flex-wrap:wrap;gap:15px 24px}.duel-admin .duel-editor .duel-check{display:inline-flex;align-items:center;gap:9px;flex-direction:row;font-size:16px;margin:0}.duel-admin .duel-editor .duel-check input{appearance:auto!important;position:static!important;transform:none!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0!important;flex:0 0 18px;accent-color:#aaa}.duel-check::before,.duel-check::after{display:none!important}.duel-admin .duel-btn{background:#242426;border-color:#666}.duel-admin .duel-btn:hover{background:#353538;border-color:#aaa}.duel-admin .duel-muted{font:14px/1.7 'ObelixPro',sans-serif;color:#bbb}.duel-admin .duel-card--preview{margin:auto;width:200px;height:280px}.duel-admin .duel-card--preview strong{font-size:18px;max-height:70px}.duel-admin .duel-card--preview small{font-size:13px;max-height:40px}
@media(min-width:1800px){.duel-preview{padding:24px}.duel-preview-art>.duel-card{width:260px}.duel-preview p{font-size:19px}.duel-card--small .duel-card-caption strong{font-size:13px;line-height:1.2;max-height:50px}.duel-card--small .duel-card-power{font-size:26px;min-width:34px;height:35px}.duel-lane-label span{font-size:15px}.duel-player h2{font-size:24px}.duel-player small{font-size:16px}.duel-hand-heading span{font-size:18px}.duel-hand .duel-card-caption strong{font-size:16px}.duel-hand .duel-card-caption small{font-size:13px}}
@media(max-height:1000px) and (min-width:1000px){.duel-in-game .duel-shell{min-height:740px}.duel-player{padding:12px}.duel-player-heading{gap:9px}.duel-faction-seal{width:38px;height:38px;flex-basis:38px;font-size:22px}.duel-player h2{font-size:18px}.duel-player p{font-size:14px}.duel-player small{font-size:13px;margin-top:6px}.duel-total{font-size:40px}.duel-player-score{margin:6px 0 3px}.duel-player-state{min-height:16px;margin:0!important;font-size:12px!important}.duel-piles,.duel-page .duel-piles button{font-size:13px}.duel-player-leader{padding-top:8px}.duel-player-leader p{font-size:13px}.duel-player-leader .duel-btn{font-size:13px;min-height:32px;padding:5px 8px}.duel-preview{padding:12px}.duel-preview-art>.duel-card{width:165px}.duel-preview h3{font-size:20px}.duel-preview p{font-size:15px;line-height:1.4}.duel-preview-art .duel-card-caption strong{font-size:16px}.duel-preview-art .duel-card-caption small{font-size:12px}.duel-game-top{min-height:48px;margin-bottom:7px}.duel-turn-label{font-size:23px}.duel-move-hint{font-size:15px}.duel-hand-heading{min-height:46px}.duel-hand-heading span{font-size:14px}}
@media(max-width:1250px){.duel-shell{width:calc(100% - 24px)}.duel-table{grid-template-columns:205px minmax(0,1fr) 245px;gap:10px}.duel-lane-label{width:65px;flex-basis:65px}.duel-lane-label span{font-size:11px}.duel-move-hint{max-width:430px}.duel-admin-grid{grid-template-columns:1fr}.duel-admin-list{max-height:330px}}
@media(max-width:999px){.duel-in-game .duel-shell{height:auto;min-height:0}.duel-table{grid-template-columns:200px minmax(0,1fr);min-height:690px;flex:auto}.duel-preview{grid-column:1/-1;display:none}.duel-field{min-height:690px}.duel-page{--duel-field-card-height:96px}.duel-move-hint{font-size:15px}.duel-game-top{flex-wrap:wrap}.duel-move-hint{order:3;max-width:none;width:100%;flex-basis:100%}.duel-hand{justify-content:flex-start}.duel-lobby-grid{grid-template-columns:1fr 1fr}.duel-deck-summary{grid-column:1/-1}.duel-room-list{grid-template-columns:1fr 1fr}.duel-hand-heading>div{display:block}.duel-hand-heading span{display:block;margin-top:7px}}
@media(max-width:700px){.duel-shell{width:calc(100% - 20px);margin-top:16px}.duel-hero{align-items:flex-start;gap:12px;flex-wrap:wrap}.duel-hero h1{font-size:32px}.duel-hero .duel-eyebrow{font-size:9px}.duel-header-tools .duel-btn{font-size:13px;min-height:36px;padding:7px 11px}.duel-lobby-grid{grid-template-columns:1fr;margin-top:20px;gap:15px}.duel-mode-card,.duel-deck-summary,.duel-room-panel{padding:24px}.duel-mode-card{min-height:280px}.duel-deck-summary{grid-column:auto}.duel-mode-card h2,.duel-deck-summary h2{font-size:26px}.duel-panel-heading{align-items:flex-start;flex-direction:column}.duel-join{width:100%}.duel-join input{min-width:0;width:100%;flex:1}.duel-room-list{grid-template-columns:1fr}.duel-in-game .duel-hero .duel-eyebrow{display:none}.duel-in-game .duel-hero h1{font-size:23px}.duel-in-game .duel-header-tools{gap:6px}.duel-in-game .duel-header-tools .duel-btn{font-size:12px;padding:6px 8px}.duel-game-top{gap:10px}.duel-game-top .duel-eyebrow{font-size:10px}.duel-turn-label{font-size:22px}.duel-game-tools .duel-btn{font-size:13px;padding:7px 10px}.duel-table{grid-template-columns:1fr;min-height:0}.duel-player-column{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;gap:8px}.duel-player{padding:12px;overflow:visible}.duel-player:first-child{grid-column:1;grid-row:1}.duel-player:last-child{grid-column:2;grid-row:1}.duel-weather{grid-column:1/-1;grid-row:2}.duel-player-heading{display:block}.duel-faction-seal{display:none}.duel-player h2{font-size:17px}.duel-player p{font-size:14px}.duel-player .duel-eyebrow{font-size:10px}.duel-player small{display:none}.duel-player-state{font-size:12px!important;min-height:16px}.duel-total{font-size:36px}.duel-lives{font-size:20px;gap:6px}.duel-piles,.duel-page .duel-piles button{font-size:12px;gap:6px}.duel-player-leader p{font-size:12px}.duel-player-leader .duel-btn{font-size:12px;min-height:32px;padding:6px}.duel-field{min-height:650px;padding:6px}.duel-lane{gap:5px}.duel-lane-label{width:54px;flex-basis:54px;padding:4px}.duel-lane-label span{font-size:10px}.duel-lane-label b{font-size:26px}.duel-lane-effects{flex-basis:20px;width:20px;font-size:16px}.duel-opponent-hand{gap:10px;font-size:11px}.duel-opponent-hand i{width:12px}.duel-card--small .duel-card-caption strong{font-size:12px}.duel-hand-heading{gap:10px;flex-wrap:wrap}.duel-hand-heading>div{flex:1;min-width:160px}.duel-hand-heading strong{font-size:16px}.duel-hand-heading span{font-size:13px}.duel-hand-heading .duel-btn{font-size:14px;min-width:90px}.duel-hand-heading label{font-size:13px}.duel-dialog{width:calc(100vw - 18px);max-height:94dvh;padding:28px 18px}.duel-dialog h2{font-size:25px}.duel-dialog p{font-size:16px}.duel-card-detail{grid-template-columns:1fr;gap:20px}.duel-card-detail>.duel-card{margin:auto;width:180px;height:252px}.duel-rules-content{font-size:16px}.duel-rules-content dl{grid-template-columns:1fr;gap:5px}.duel-rules-content dd{margin-bottom:12px}.duel-result h2{font-size:29px}.duel-result-scores{gap:15px;padding:20px 4px}.duel-result-scores span{font-size:15px}.duel-result-scores strong{font-size:48px}.duel-result-actions{flex-direction:column}.duel-result-actions .duel-btn{width:100%}.duel-deck-controls{display:grid;grid-template-columns:1fr}.duel-deck-controls select{width:100%}.duel-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.duel-picker{gap:15px}.duel-fields{grid-template-columns:1fr}.duel-flash{right:12px;bottom:12px;max-width:calc(100vw - 24px);font-size:15px;padding:15px}.duel-welcome{padding:24px}.duel-room-code{font-size:24px;letter-spacing:2px;padding:12px 18px}}
@media(prefers-reduced-motion:reduce){.duel-page:not(.gwent-motion-full) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep every game control visible when the screen is shorter. */
.duel-page button.duel-faction-seal{background:#24192d;cursor:pointer;padding:0;line-height:1;color:#d4b8e4}
.duel-leader-short{display:none}.duel-player-state:empty{display:none}
@media(max-height:1100px) and (min-width:1000px){
 .duel-player{overflow:visible;padding:11px}
 .duel-player-heading{gap:8px}.duel-player h2{font-size:17px;line-height:1.2;margin:3px 0}.duel-player p{font-size:13px;margin:3px 0}.duel-player .duel-eyebrow{font-size:10px}
 .duel-player-score{margin:5px 0 3px}.duel-total{font-size:36px}.duel-lives{font-size:22px;gap:9px}
 .duel-player small{display:none}.duel-piles{gap:6px;padding-top:6px}.duel-piles,.duel-page .duel-piles button{font-size:13px}
 .duel-player-leader{padding-top:6px}.duel-player-leader .duel-eyebrow{display:none}.duel-player-leader:has(button)>p{display:none}.duel-player-leader .duel-btn{font-size:13px;min-height:36px;margin-top:0;padding:5px 7px}
 .duel-leader-action{display:none}.duel-leader-short{display:inline}
}

.duel-readonly-deck .duel-deck-item{min-width:0}.duel-readonly-deck .duel-deck-item>p{font-size:15px;line-height:1.5;margin:10px 0}.duel-header-tools [aria-pressed=false]{background:#0b0b0b;color:#b7ab95}.gwent-stage button.gwent-deck{padding:0;border:0;margin:0;font:inherit;cursor:pointer;background:transparent}.gwent-stage button.gwent-deck:focus-visible{outline:3px solid #d9ba72;outline-offset:4px}

#duelApp .duel-readonly-deck{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));align-items:start;gap:24px}#duelApp .duel-readonly-deck .gwent-card{width:min(100%,220px);height:auto;aspect-ratio:618/888}.duel-readonly-deck details{font-size:16px;line-height:1.5;color:#c8baa0}.duel-readonly-deck summary{cursor:pointer}.duel-readonly-deck details p{font-size:16px;line-height:1.5;margin:8px 0}
