/* REDkit stage coordinates; all rules are scoped to the card-game page. */
.duel-page{--duel-accent:#cbaa72}
/* Equal side columns keep the title on the page axis, regardless of tool width. */
.duel-page .duel-hero{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px}
.duel-page .duel-hero>div:first-child{grid-column:2;text-align:center}
.duel-page .duel-header-tools{grid-column:3;justify-self:end;flex-wrap:wrap;justify-content:flex-end}
.duel-page .duel-hero h1 .duel-spark{display:none}
/* The common site background remains visible around the board. */
.duel-page.duel-in-game .duel-shell{width:calc(100% - 24px);height:auto;min-height:0;margin:6px auto;display:block}
.duel-in-game #duelContent{display:block;min-height:0}
.duel-in-game .duel-hero{height:40px;min-height:0;margin:0 12px 4px}
.duel-in-game .duel-hero h1{font-family:'ObelixPro',sans-serif;text-transform:uppercase;letter-spacing:3px;color:#d1b77f;font-size:26px}
.duel-in-game .duel-spark{display:none}
.duel-in-game .duel-header-tools .duel-btn{font-family:'ObelixPro',sans-serif;background:#14110c;border-color:#75603e;color:#d9cdb3}
.gwent-viewport{position:relative;overflow:clip;width:100%;min-height:100px;background:transparent;scrollbar-color:#876d40 #14100c;scrollbar-width:thin}
.gwent-stage{position:relative;width:1920px;height:1080px;transform-origin:top left;background:#352313 url('/assets/gwent/board.webp') center/1920px 1080px no-repeat;isolation:isolate;overflow:hidden;color:#e0d7c8;font:24px/1.25 'ObelixPro',sans-serif;box-sizing:border-box}
.gwent-stage *{box-sizing:border-box}
.gwent-stage :is(h2,h3,p,b,span,strong,button,select,label){font-family:'ObelixPro',sans-serif}
.gwent-stage img{user-select:none;-webkit-user-drag:none}
.gwent-stage button{cursor:pointer}
.gwent-stage button:disabled{cursor:default}
.gwent-stage button:focus-visible,.gwent-stage [tabindex]:focus-visible{outline:3px solid #e4c378;outline-offset:3px}
.gwent-status{position:absolute;left:245px;top:82px;width:185px;color:#c2ac81;z-index:12;text-shadow:0 2px 3px #000}
.gwent-status span{display:block;font-size:20px;line-height:1.25}.gwent-status strong{display:block;font-size:27px;line-height:1.2;font-weight:400;margin-top:8px;overflow-wrap:anywhere}
.gwent-stage .duel-lane.gwent-lane{display:block;position:absolute;left:706.9px;width:813px;height:130px;border:1px solid transparent;border-radius:0;background:none;min-height:0;min-width:0;isolation:auto;transition:border-color .15s,background .15s;overflow:visible}
.gwent-stage .duel-lane--weather::before{display:none}
.gwent-stage .duel-lane.is-target{border-color:#b88c3d;background:#c7983b14;box-shadow:inset 0 0 24px #c2a66730;cursor:pointer}
.gwent-stage .duel-lane:focus-visible{outline-offset:0}
.gwent-stage .duel-lane-label{position:absolute;left:-203px;top:39px;width:49px;height:49px;display:grid;place-items:center;background:url('/assets/gwent/ui/row-score.webp') center/contain no-repeat;border:0;padding:0;gap:0;color:#171008}
.gwent-stage .duel-lane[data-side] .duel-lane-label b{color:#1e1408;font:700 clamp(17px,calc(65px / var(--score-digits,2)),31px)/1 'ObelixPro',sans-serif;display:block}
.gwent-stage .duel-lane-label span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.gwent-stage .duel-lane[data-enemy="true"] .duel-lane-label{background-image:url('/assets/gwent/ui/row-score-enemy.webp')}
.gwent-stage .gwent-cards{position:relative;display:block;height:120px;padding:0;margin:0;border:0;gap:0;overflow:visible;flex:none;min-height:0}
.gwent-stage .duel-lane-cards.gwent-cards{width:810px;left:0;top:4px}
.gwent-stage .gwent-cards>.duel-card{position:absolute;top:0}
.gwent-stage .gwent-cards>.duel-card:hover,.gwent-stage .gwent-cards>.duel-card:focus-visible{z-index:80!important}
.gwent-modifier{position:absolute;width:90px;height:120px;left:-138px;top:4px;display:flex;gap:2px;justify-content:center}
.gwent-modifier>.duel-card{flex:none}
.gwent-weather-mark{position:absolute;left:-150px;top:0;pointer-events:none;width:26px;height:26px;opacity:.8;z-index:2}
.gwent-weather-mark img{width:100%;height:100%;object-fit:contain}
/* Small cards use the 90 × 120 board state of the original CardSlot. */
.duel-page .gwent-card{width:130px;height:246px;flex:0 0 130px;border:0;border-radius:4px;background:#281d13;padding:0;overflow:hidden;isolation:isolate;color:#18130d;font:20px 'ObelixPro',sans-serif;box-shadow:0 2px 5px #000a;transition:transform .15s,box-shadow .15s}
.duel-page .gwent-card::after{display:none}
.duel-page .gwent-card .gwent-card-art{position:absolute;inset:0 0 auto;height:76%;width:100%;object-fit:cover;opacity:1;filter:none;display:block}
.duel-page .gwent-card .gwent-card-banner{position:absolute;left:1%;top:0;width:25%;height:80%;object-fit:fill;z-index:2;opacity:1}
.duel-page .gwent-card .duel-card-power{position:absolute;left:2%;top:1%;display:grid;place-items:center;min-width:0;padding:0;width:30%;height:auto;aspect-ratio:1;background:transparent url('/assets/gwent/ui/power.webp') center/contain no-repeat;border:0;border-radius:0;color:#21170c;font:700 28px/1 'ObelixPro',sans-serif;z-index:4;text-shadow:none}
.duel-page .gwent-card .duel-card-power.is-hero{background-image:url('/assets/gwent/ui/hero-power.webp');color:#21170c}
.duel-page .gwent-card .gwent-card-ability{position:absolute;left:4%;bottom:27%;width:22%;height:auto;aspect-ratio:1;object-fit:contain;z-index:4;opacity:1}
.duel-page .gwent-card .duel-card-caption{left:0;right:0;bottom:0;height:25%;padding:9px 6px;background:#ddd1b5 url('/assets/gwent/ui/paper.webp') center/100% 100% no-repeat;color:#211b12;z-index:3;text-align:center}
.duel-page .gwent-card .duel-card-caption strong{font:700 16px/1.1 'ObelixPro',sans-serif;color:#22190f;max-height:36px;display:block;overflow:hidden}
.duel-page .gwent-card .duel-card-caption small{font:italic 13px/1.1 'ObelixPro',sans-serif;color:#514332;margin:4px 0 0;display:block;max-height:24px}
.duel-page .gwent-card .duel-card-row{display:none}
.duel-page .gwent-card.duel-card--hero{border:0!important;box-shadow:0 0 2px 1px #ae8844}
.gwent-stage .gwent-card,.gwent-stage .gwent-card.duel-card--small,.gwent-stage .gwent-card.duel-card--hand{width:90px;height:120px;min-width:0;flex:0 0 90px;border-radius:2px}
.gwent-stage .gwent-card .gwent-card-art{height:100%;object-position:center 38%;border:1px solid #a1804833}
.gwent-stage .gwent-card .gwent-card-banner{width:22%;height:100%}
.gwent-stage .gwent-card .duel-card-caption{display:none}
.gwent-stage .gwent-card .gwent-card-ability{left:36%;bottom:5%;width:29%;height:29px;filter:drop-shadow(0 1px 1px #e8dec8);background:#dccfb3c9;border-radius:50%;padding:3px}
.gwent-stage .gwent-card .duel-card-power{left:-1%;top:-1%;width:40%;font-size:28px;z-index:6}
.gwent-stage .duel-card.is-selected,.gwent-stage .duel-card.is-target{box-shadow:0 0 0 2px #cbae65,0 0 16px #efce8270}
.gwent-stage .duel-card--hand.is-selected{transform:translateY(-15px)}
.gwent-stage .duel-card--hand:hover{transform:translateY(-15px)}
.gwent-stage .gwent-hand.gwent-cards{position:absolute;left:580px;top:845px;width:930px;height:120px;overflow:visible}
/* Player panels retain the source layout and graphic elements. */
.gwent-player{position:absolute;left:100.1px;top:666.35px;width:448px;height:136px;z-index:5}
.gwent-player.is-enemy{left:101.5px;top:275.7px}
.gwent-profile-background{position:absolute;left:-100px;top:0;width:505px;height:136px;background:url('/assets/gwent/ui/player-background.webp') center/100% 100% no-repeat;opacity:.92}
.gwent-player.is-turn .gwent-profile-background{box-shadow:0 0 20px #c09b3d28}
.gwent-portrait{position:absolute;left:28px;top:23px;width:82px;height:94px;object-fit:contain;z-index:2}
.gwent-portrait-ring{position:absolute;left:18px;top:10px;width:116px;height:126px;object-fit:contain;z-index:3}
.gwent-faction-button{position:absolute;left:-7px;top:76px;width:68px;height:68px;border:0;background:transparent;z-index:4;padding:0}
.gwent-faction-button img{width:100%;height:100%;object-fit:contain}
.gwent-player h2{position:absolute;left:139px;top:74px;width:174px;max-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;color:#e3dace;font-size:23px;font-weight:400;text-shadow:0 1px 3px #000}
.gwent-player p{position:absolute;left:139px;top:106px;width:240px;margin:0;font-size:20px;line-height:1.2;color:#ab9c85}
.gwent-hand-count{position:absolute;left:136px;top:20px;display:flex;align-items:center;gap:12px;font-size:29px}
.gwent-hand-count img{width:30px;height:40px;object-fit:contain}.gwent-hand-count b{font-weight:400;min-width:36px}
.gwent-gems{display:flex;position:absolute;left:222px;top:23px;gap:4px}
.gwent-gems img{width:38px;height:40px;object-fit:contain}.gwent-gems .is-lost{filter:grayscale(1);opacity:.2}
.gwent-total{position:absolute;left:316px;top:12px;width:70px;height:70px;display:grid;place-items:center;background:url('/assets/gwent/ui/score.webp') center/contain no-repeat;color:#171108;font-size:clamp(20px,calc(82px / var(--score-digits,2)),36px);font-weight:400;text-shadow:0 1px 1px #fff8}
.gwent-total.is-enemy{background-image:url('/assets/gwent/ui/score-enemy.webp')}
.gwent-passed{position:absolute;left:140px;top:-26px;color:#bd824d;font-size:23px;letter-spacing:2px}
.gwent-deck{position:absolute;left:1704.4px;top:802.9px;width:113px;height:159px;z-index:3;text-align:center}
.gwent-deck.is-enemy{left:1704.15px;top:40.65px}
.gwent-deck>img{width:100%;height:100%;object-fit:fill;filter:drop-shadow(4px 4px 0 #26190a) drop-shadow(2px 2px 0 #755736)}
.gwent-deck span{position:absolute;bottom:-35px;left:0;width:100%;font-size:28px;color:#d7c9b1;text-shadow:0 2px 3px #000}
.gwent-discard{position:absolute;left:1544.05px;top:826.2px;width:90px;height:130px;padding:0;background:none;border:0;color:#c9b795;z-index:3}
.gwent-discard.is-enemy{left:1544.05px;top:67.5px}
.gwent-discard-art{width:100%;height:100%;object-fit:cover;filter:brightness(.75)}
.gwent-discard span{position:absolute;left:0;bottom:-35px;width:100%;font-size:28px;text-shadow:0 2px 3px #000}
.gwent-leader{position:absolute;left:131.5px;top:824.8px;width:90px;height:130px;padding:0;border:1px solid #b0905480;background:#2a1c11;z-index:3;color:#c2ad87}
.gwent-leader.is-enemy{left:130.75px;top:71.85px}
.gwent-leader img{width:100%;height:100%;object-fit:fill}.gwent-leader span{position:absolute;bottom:-31px;left:-25px;width:140px;font-size:22px;text-shadow:0 2px 3px #000}
.gwent-leader.is-used img{filter:grayscale(1);opacity:.35}.gwent-leader:disabled:not(.is-used){opacity:.75}
.gwent-leader:not(:disabled):hover{box-shadow:0 0 15px #c49c48}
.gwent-leader-label{position:absolute;left:250px;top:850px;width:185px;font-size:22px;line-height:1.3;color:#b6a587;text-shadow:0 1px 3px #000}
.gwent-weather-pile{position:absolute;left:136px;top:449px;width:270px;height:135px;display:flex;align-items:center;justify-content:center;gap:0;color:#b1a184;font-size:23px}
.gwent-weather-pile>.duel-card{flex:none}
.gwent-preview{position:absolute;left:1542.5px;top:229px;width:309px;min-height:584px;z-index:90;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s}
.gwent-preview.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.gwent-stage .gwent-preview>.gwent-card{width:309px;height:584px;border-radius:9px;box-shadow:0 4px 20px #000b}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-art{height:76%;object-position:center}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-banner{height:80%;width:25%}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption{display:block;height:25%;padding:13px 15px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption strong{font-size:29px;max-height:65px;line-height:1.1}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption small{font-size:20px;max-height:45px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-power{font-size:58px;width:30%;left:2%;top:1%}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-ability{width:21%;height:65px;left:4%;bottom:27%;padding:0;background:none;filter:none}
.gwent-preview-description{position:absolute;left:0;right:0;bottom:0;background:#110c09ef;border:1px solid #84693c;padding:12px 15px;color:#d5c8ad;opacity:0;pointer-events:none;transform:translateY(-60px);transition:opacity .15s}
.gwent-preview-description h3{font-size:24px;margin:0 0 5px;color:#dec895}.gwent-preview-description p{font-size:21px;line-height:1.3;margin:0}
.gwent-preview:hover .gwent-preview-description{opacity:1}
.gwent-preview .duel-action-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.gwent-stage .duel-btn{font:23px/1.2 'ObelixPro',sans-serif;min-height:44px;padding:9px 16px;background:#1b140ce8;color:#c7b48c;border:1px solid #8d7146;border-radius:1px;box-shadow:0 2px 5px #0008;text-shadow:0 1px 2px #000}
.gwent-stage .duel-btn:hover:not(:disabled){background:#48321b;border-color:#dbc188;color:#eedebc}
.gwent-stage .duel-btn:disabled{opacity:.45}
.gwent-controls{position:absolute;left:58px;right:58px;bottom:18px;display:flex;align-items:center;gap:26px;justify-content:space-between;z-index:101;font-size:22px}
.gwent-controls>div{display:flex;align-items:center;gap:12px;flex-shrink:0;max-width:500px;flex-wrap:wrap}
.gwent-controls p{margin:0;flex:1;color:#bcae92;line-height:1.25;font-size:22px;max-width:850px;text-align:center;text-shadow:0 2px 3px #000}
.gwent-controls select{font-size:22px;color:#ddcba6;background:#1b140c;border:1px solid #876b3c;min-height:38px;padding:2px 5px}
.gwent-controls label{font-size:20px}
.gwent-fx{position:absolute;inset:0;width:1920px;height:1080px;z-index:98;pointer-events:none}
.gwent-message{position:absolute;left:550px;top:340px;width:950px;height:260px;z-index:100;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(90deg,transparent,#100b08e6 18%,#100b08e6 82%,transparent);pointer-events:none;opacity:0}
.gwent-message img{width:180px;height:150px;object-fit:contain}.gwent-message strong{font-size:43px;font-weight:400;text-transform:uppercase;letter-spacing:3px;color:#ddc79b;text-shadow:0 3px 5px #000}
.gwent-viewport:fullscreen{width:100vw;height:100vh!important;display:flex;align-items:center;justify-content:center;background:transparent}
.duel-page .duel-dialog{font-family:'ObelixPro',sans-serif;background:#16100bed;color:#ddd0b7;border-color:#957846;border-radius:2px}
.duel-page .duel-dialog :is(h2,h3,p,button,select,input,span,dt,dd){font-family:'ObelixPro',sans-serif}
.duel-page .duel-dialog h2{font-size:34px;color:#d7bf8b}.duel-page .duel-dialog p{font-size:22px;color:#c6b89e}.duel-page .duel-dialog .duel-btn{font-size:21px;background:#2b1f13;border-color:#8d7349;color:#e3d3af}
.duel-page .duel-dialog::backdrop{backdrop-filter:none;background:#000b}
.duel-page .duel-result-scores strong{color:#ddc48c}.gwent-result-icon{display:block;width:200px;height:170px;object-fit:contain;margin:0 auto 8px}
.duel-page .duel-dialog .gwent-card{font-family:'ObelixPro',sans-serif}
.duel-page .duel-deck-grid{gap:18px}.duel-page .duel-deck-item>.gwent-card{margin:auto}
.duel-page .duel-card-detail>.gwent-card{width:220px;height:416px;margin:auto}
.duel-page .duel-dialog .gwent-card .duel-card-power{font-size:35px}
@media(max-width:899px){.gwent-viewport{overflow:auto}.duel-page.duel-in-game .duel-shell{width:calc(100% - 12px)}.duel-in-game .duel-hero{height:auto;min-height:40px;margin:6px 4px}.duel-in-game .duel-header-tools .duel-btn{font-size:15px}.duel-page .duel-dialog p{font-size:19px}}
@media(prefers-reduced-motion:reduce){.duel-page:not(.gwent-motion-full) .gwent-stage *{animation:none!important;transition:none!important}.duel-page:not(.gwent-motion-full) .gwent-fx,.duel-page:not(.gwent-motion-full) .gwent-message{display:none}}

.duel-page .gwent-card .duel-card-power.is-boosted{color:#218013}.duel-page .gwent-card .duel-card-power.is-weakened{color:#c10000}
.gwent-stage .gwent-card.is-flipping{transform-style:preserve-3d}.gwent-stage .gwent-card.is-flipping>*{backface-visibility:hidden}.gwent-stage .gwent-card>.gwent-flip-back{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:20;transform:rotateY(180deg);backface-visibility:hidden;opacity:1}

.gwent-sizer{position:relative;overflow:clip}.gwent-stage{position:absolute;left:0;top:0}

/* The card may be both a hero and a medic: power, row and ability are separate. */
.duel-page .gwent-card .gwent-card-row-icon{position:absolute;left:4%;bottom:29%;width:18%;height:auto;aspect-ratio:1;object-fit:contain;z-index:5}
.duel-page .gwent-card .gwent-card-ability{left:auto;right:5%}
.gwent-stage .gwent-card .gwent-card-row-icon{left:5%;bottom:5%;width:24%;height:26px;filter:drop-shadow(0 0 2px #e3cfa0)}
.gwent-stage .gwent-card .gwent-card-ability{left:auto;right:6%;bottom:5%;width:29%;height:29px}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-row-icon{left:4%;bottom:27%;width:19%;height:64px}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-ability{left:auto;right:5%;bottom:27%;width:21%;height:65px}
.duel-page .gwent-card .duel-card-power.is-special{background:none;color:transparent}
.duel-page .gwent-card .duel-card-power.is-special img{width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 0 2px #eedab2)}
@media(max-width:700px){.duel-page .duel-hero{grid-template-columns:minmax(0,1fr);gap:8px}.duel-page .duel-hero>div:first-child,.duel-page .duel-header-tools{grid-column:1;justify-self:center}.duel-page .duel-header-tools{justify-content:center}.duel-in-game .duel-hero{height:auto;margin-bottom:8px}}

.duel-page .gwent-card .duel-card-power.is-hero{background-image:radial-gradient(circle at center,#1a140e 0 51%,transparent 55%),url('/assets/gwent/ui/hero-power.webp');color:#fff1c9;text-shadow:0 1px 2px #000}

.gwent-stage .gwent-card .duel-card-power{font-size:clamp(15px,calc(54px / var(--power-digits,1)),28px)}
.gwent-stage .gwent-preview>.gwent-card .duel-card-power{font-size:clamp(30px,calc(120px / var(--power-digits,1)),58px)}
/* Full cards place the row and ability on the left ribbon, as in the game. */
.duel-page .gwent-card .gwent-card-row-icon,.duel-page .gwent-card .gwent-card-ability{left:4%;right:auto;bottom:auto;width:22%;height:auto;aspect-ratio:1;padding:2.5%;border:1px solid #a58b56;border-radius:50%;background:#e0d5bcee;filter:none}
.duel-page .gwent-card .gwent-card-row-icon{top:27%}.duel-page .gwent-card .gwent-card-ability{top:47%}
.duel-page .duel-card--hero .gwent-card-row-icon{background-color:#d4ac60}
.gwent-stage .gwent-card .gwent-card-row-icon{left:5%;top:auto;bottom:5%;width:24%;height:26px;padding:3px}
.gwent-stage .gwent-card .gwent-card-ability{left:auto;right:6%;top:auto;bottom:5%;width:29%;height:29px;padding:3px}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-row-icon,.gwent-stage .gwent-preview>.gwent-card .gwent-card-ability{left:4%;right:auto;bottom:auto;width:22%;height:auto;padding:2.5%}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-row-icon{top:27%}.gwent-stage .gwent-preview>.gwent-card .gwent-card-ability{top:47%}
.gwent-stage .gwent-preview>.gwent-card .gwent-card-ability{background:#e0d5bcee}
/* Sound controls stay outside the stage and do not move the centered title. */
.gwent-audio-controls{display:flex;align-items:center;gap:7px}
.duel-page .gwent-audio-controls input[type=range]{width:72px;min-height:20px;height:20px;padding:0;border:0;background:transparent;accent-color:#c2a568;cursor:pointer}
.gwent-presenting .gwent-stage{cursor:wait}.gwent-presenting .gwent-stage button{cursor:wait}
.gwent-stage{perspective:1600px}.gwent-stage .is-score-changing{animation:gwentScorePulse .45s ease-out}
@keyframes gwentScorePulse{0%{filter:brightness(2);transform:scale(1.13)}100%{filter:brightness(1);transform:scale(1)}}
.gwent-round-progress{height:3px;max-width:300px;margin:10px auto 22px;background:#4b3c26;overflow:hidden}.gwent-round-progress i{display:block;height:100%;background:#c8aa6d;animation:gwentRoundProgress 3.6s linear both;transform-origin:left}
@keyframes gwentRoundProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.gwent-stage .duel-btn.is-holding{background:linear-gradient(90deg,#94703c,#1b140c);animation:gwentPassHold .65s linear both}
@keyframes gwentPassHold{from{box-shadow:inset 0 -3px #dbbd7d44}to{box-shadow:inset 0 -44px #dbbd7d44}}
@media(max-width:1100px) and (min-width:701px){.duel-page .duel-header-tools{gap:6px}.duel-in-game .duel-header-tools .duel-btn{padding:6px 8px}.duel-page .gwent-audio-controls input[type=range]{width:54px}}
@media(max-width:700px){.duel-page .gwent-audio-controls input[type=range]{width:55px}.duel-page .duel-header-tools{gap:6px}.duel-page .gwent-audio-controls{gap:4px}}
@media(prefers-reduced-motion:reduce){.duel-page:not(.gwent-motion-full) .is-score-changing,.duel-page:not(.gwent-motion-full) .duel-btn.is-holding{animation:none!important}}
/* Flying cards escape the row stacking order; destination slots stay hidden until landing. */
.gwent-stage{perspective:none}
.gwent-motion-layer{position:absolute;inset:0;z-index:96;pointer-events:none;transform-style:preserve-3d}
.gwent-flying-card{position:absolute;left:0;top:0;width:90px;height:120px;transform-origin:50% 50%;transform-style:preserve-3d;pointer-events:none;will-change:transform,opacity}
.gwent-flying-card>.gwent-flight-front,.gwent-flying-card>.gwent-flight-back{position:absolute;inset:0;width:90px;height:120px;backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;box-shadow:0 12px 20px #0009}
.gwent-flying-card>.gwent-flight-front{transform:rotateY(0deg)!important}
.gwent-flying-card>.gwent-flight-back{transform:rotateY(180deg)!important;object-fit:fill;border-radius:2px}
@media(prefers-reduced-motion:reduce){.duel-page:not(.gwent-motion-full) .gwent-motion-layer{display:none}}

.gwent-presenting .gwent-stage .duel-card--hand:hover{transform:none}

/* v7: solid site surfaces above the common grid, and one stable fullscreen root. */
.duel-page .duel-shell{position:relative;z-index:1;isolation:isolate}
.duel-page :is(.duel-mode-card,.duel-deck-summary,.duel-room-panel,.duel-welcome,.duel-dialog){background:#050505;background-image:none}
.duel-page .duel-room,.duel-page .duel-room-code,.duel-page input:not([type=range]),.duel-page select{background-color:#0b0b0b;background-image:none}
.duel-page .duel-room:hover{background:#17131d}
.duel-page .duel-dialog{border-color:#403946;border-radius:10px}
.duel-page.duel-in-game .duel-hero{height:auto;min-height:44px}
.gwent-motion-control select{font:14px 'ObelixPro',sans-serif;min-height:34px;padding:5px 7px;max-width:128px}
#duelApp:is(:fullscreen,.is-fullscreen){width:100vw;height:100dvh;max-width:none;margin:0;padding:0;overflow:hidden;background:transparent}
#duelApp:is(:fullscreen,.is-fullscreen)>.duel-hero{display:none}
#duelApp:is(:fullscreen,.is-fullscreen) #duelContent{width:100%;height:100%}
#duelApp:is(:fullscreen,.is-fullscreen) .gwent-viewport{height:100dvh!important}
#duelApp:is(:fullscreen,.is-fullscreen) .gwent-sizer{margin-top:max(0px,calc((100dvh - 1080px * var(--gwent-scale,1))/2))}
.gwent-stage .gwent-lane{z-index:5}.gwent-stage .gwent-hand{z-index:8}
.gwent-weather{position:absolute;inset:0;width:1920px;height:1080px;z-index:2;pointer-events:none}
.gwent-round-progress{height:6px;max-width:360px;border-radius:4px;background:#302b23;margin:12px auto 22px}
.gwent-round-progress i{display:block;width:100%;height:100%;background:#c8aa6d;transform:scaleX(0);transform-origin:left;animation:none!important;transition:none!important}
[data-round-seconds]{display:inline-block;min-width:1ch;font-variant-numeric:tabular-nums;color:#e3c78c}
.gwent-lobby-avatar{display:grid;justify-items:center;gap:9px;margin:18px auto 24px;padding:0;border:0;background:transparent;color:#cbb3dc;font:inherit;font-size:14px;cursor:pointer}
.gwent-lobby-avatar img{width:88px;height:88px;object-fit:cover;object-position:center 20%;border-radius:50%;border:1px solid #66516f;background:#0b0b0b}
.gwent-avatar-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;margin:20px 0 28px}
.gwent-avatar-option{display:grid;justify-items:center;gap:8px;padding:12px;border:1px solid #403946;border-radius:8px;background:#0b0b0b;color:#ddd0b7;font:19px 'ObelixPro',sans-serif;cursor:pointer}
.gwent-avatar-option img{width:80px;height:92px;border-radius:50%;object-fit:cover;object-position:center 20%;background:#151116}
.gwent-avatar-option:hover,.gwent-avatar-option.is-selected{border-color:#bda1ce;background:#201825}
.gwent-avatar-upload{display:grid;gap:12px;border-top:1px solid #403946;padding-top:22px}
.gwent-avatar-upload p{margin:0}.gwent-avatar-upload [data-avatar-upload-preview]{width:96px;height:96px;border-radius:50%;object-fit:cover}
.gwent-avatar-upload [hidden]{display:none}.gwent-avatar-upload .duel-btn{justify-self:start}
.gwent-portrait-button{position:absolute;left:28px;top:23px;width:82px;height:94px;z-index:2;padding:0;background:#0b0b0b;border:0;border-radius:50%;overflow:hidden}
.gwent-portrait-button .gwent-portrait{position:static;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.gwent-portrait-button:disabled{opacity:1;cursor:default}.gwent-portrait-ring{pointer-events:none}
.gwent-motion-reduced .gwent-fx,.gwent-motion-reduced .gwent-message,.gwent-motion-reduced .gwent-motion-layer{display:none}
.gwent-motion-reduced .gwent-stage *{animation:none!important;transition:none!important}
@media(max-width:700px){.gwent-avatar-options{grid-template-columns:repeat(3,minmax(0,1fr))}.gwent-avatar-option{font-size:16px;padding:8px}.gwent-avatar-option img{width:62px;height:72px}}

body.gwent-fullscreen-fallback{overflow:hidden}#duelApp.is-fullscreen{position:fixed;inset:0;z-index:2147483000}

/* v8: site typeface; bold card name/power and a smaller regular ability line. */
.duel-page .gwent-card,.duel-page .gwent-card :is(b,strong,small,span),.duel-page .duel-dialog .gwent-card{font-family:'ObelixPro',sans-serif}
.duel-page .gwent-card .duel-card-power{font-family:'ObelixPro',sans-serif;font-weight:700;font-style:normal}
.duel-page .gwent-card .duel-card-caption strong{font-family:'ObelixPro',sans-serif;font-weight:700;font-style:normal;line-height:1.2}
.duel-page .gwent-card .duel-card-caption small{font-family:'ObelixPro',sans-serif;font-weight:400;font-style:normal;line-height:1.35;font-size:11px}
.gwent-stage .gwent-card .duel-card-power{font-size:clamp(14px,calc(48px / var(--power-digits,1)),26px)}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption strong{font-size:26px;max-height:64px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption small{font-size:16px;max-height:44px;margin-top:6px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-power{font-size:clamp(27px,calc(110px / var(--power-digits,1)),56px)}
.duel-page .duel-dialog .gwent-card .duel-card-power{font-size:clamp(17px,calc(52px / var(--power-digits,1)),33px)}
.duel-page .gwent-preview-description :is(h3,p){font-family:'ObelixPro',sans-serif}.duel-page .gwent-preview-description h3{font-weight:700}.duel-page .gwent-preview-description p{font-size:17px;line-height:1.5;font-weight:400}
/* The faction ribbon tip continues onto the paper instead of hiding behind it. */
.duel-page .gwent-card .gwent-card-banner{z-index:4}
.duel-page .gwent-card .duel-card-power{z-index:6}
.duel-page .gwent-card .gwent-card-row-icon,.duel-page .gwent-card .gwent-card-ability{z-index:5}
.duel-page .gwent-card .duel-card-caption{padding-left:27%;padding-right:6px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption{padding-left:27%;padding-right:12px}
.gwent-stage .gwent-preview>.gwent-card .duel-card-caption strong{font-size:25px;max-height:62px}
.duel-page .duel-dialog .gwent-card .duel-card-caption strong{font-size:20px;line-height:1.2;max-height:48px}
.duel-page .duel-dialog .gwent-card .duel-card-caption small{font-size:12px;max-height:33px}
.duel-page .duel-card-detail :is(h2,p,b){font-family:'ObelixPro',sans-serif}.duel-page .duel-card-detail h2{font-weight:700;font-size:29px}.duel-page .duel-card-detail p{font-weight:400;font-size:18px;line-height:1.6}

/* Public full-size cards show the saved description below their ability line. */
.duel-page .gwent-card.duel-card--has-description .duel-card-caption{height:auto;min-height:25%;max-height:50%;overflow:hidden}
.duel-page .gwent-card.duel-card--has-description .duel-card-caption strong{max-height:2.4em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.duel-page .gwent-card.duel-card--has-description .duel-card-caption small{max-height:2.7em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.duel-page .gwent-card .duel-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:4.05em;margin-top:clamp(4px,2cqw,7px);color:#514332;font:400 clamp(9px,5cqw,16px)/1.35 'ObelixPro',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:none}
.duel-page .gwent-preview-description p,.duel-page .duel-deck-item details p,.duel-page .duel-card-detail>div>p{white-space:pre-wrap;overflow-wrap:anywhere}
/* The frame is circular above its lower point: center a square portrait in that hole. */
.gwent-portrait-button{left:24px;top:16px;width:104px;height:104px;border-radius:50%;isolation:isolate}
.gwent-portrait-button .gwent-portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}
.gwent-avatar-current{display:flex;align-items:center;gap:24px;margin:20px 0 28px}
.gwent-avatar-current>img{display:block;width:104px;height:104px;flex:0 0 104px;object-fit:cover;border-radius:50%;background:#0b0b0b;border:1px solid #66516f}
.gwent-avatar-current strong{font-size:24px}.gwent-avatar-current p{margin:8px 0 16px}
@media(max-width:600px){.gwent-avatar-current{flex-direction:column;text-align:center}}
