/* Ink chosen for each original frame; never an opaque patch over the artwork. */
body .player.fd-card.fd-card-v44,body .mini-card47{--ink50:#231a12;--name50:#fff5e3}
body .player.fd-card.fd-card-v44[data-edition=silver],body .mini-card47.silver{--ink50:#17232f}
body .player.fd-card.fd-card-v44[data-edition=icon],body .mini-card47.icon{--ink50:#241d13}
body .player.fd-card.fd-card-v44[data-edition=hero],body .mini-card47.hero{--ink50:#f4f6ff;--name50:#fff}
body .player.fd-card.fd-card-v44[data-edition=halloween],body .mini-card47.halloween{--ink50:#fff2d1;--name50:#fff2d1}
body .player.fd-card.fd-card-v44[data-edition] .stats{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;left:20%!important;right:16%!important;top:77%!important;height:14%!important}
body .player.fd-card.fd-card-v44[data-edition] .stats :is(span,b,small),body .player.fd-card.fd-card-v44 :is(.rating,.position,.card-affiliation,.rarity){color:var(--ink50)!important;-webkit-text-fill-color:var(--ink50)!important;text-shadow:none!important}
body .player.fd-card.fd-card-v44[data-edition] .stats b{font-family:Arial,sans-serif!important;font-weight:800!important}
body .player.fd-card.fd-card-v44[data-edition] .card-identity{background:transparent!important;border:0!important;box-shadow:none!important;left:13%!important;right:13%!important;top:61%!important;height:8%!important;padding:0!important}
body .player.fd-card.fd-card-v44[data-edition] .card-identity h3{color:var(--name50)!important;-webkit-text-fill-color:var(--name50)!important;font-weight:800!important}
body .mini-card47 .mini-rating47{background:transparent!important;padding:0!important;color:var(--ink50)!important;-webkit-text-fill-color:var(--ink50)!important;text-shadow:none!important}
body :is(.pitch-scroll,.squad-bench,.draft-bench) .mini-card47 .mini-name47{background:transparent!important;left:12%!important;width:76%!important;top:61%!important;height:9%!important;padding:0!important;color:var(--name50)!important;-webkit-text-fill-color:var(--name50)!important;font-size:9px!important;line-height:1!important;white-space:nowrap!important;display:block!important;text-overflow:ellipsis!important}
body :is(.pitch-scroll,.squad-bench,.draft-bench) .mini-card47 .mini-stats48{background:transparent!important;left:19%!important;right:15%!important;top:76%!important;height:17%!important;padding:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:0 3px!important}
body :is(.pitch-scroll,.squad-bench,.draft-bench) .mini-card47 .mini-stats48>span{flex-direction:row!important;justify-content:flex-start!important;gap:2px!important}
body :is(.pitch-scroll,.squad-bench,.draft-bench) .mini-card47 .mini-stats48 :is(span,b,small){color:var(--ink50)!important;-webkit-text-fill-color:var(--ink50)!important;text-shadow:none!important}
body .mini-card47 .mini-stats48 b{font-size:9px!important}body .mini-card47 .mini-stats48 small{font-size:6px!important}
.mode-art50{width:100%;height:100%;object-fit:contain;display:block}.generated-emblem:has(>.mode-art50){overflow:visible}.page-emblem .mode-art50{filter:drop-shadow(0 4px 10px #0005)}
.quiz-symbol{width:132px!important;height:132px!important;background:none!important;border:0!important;margin:0 auto 16px!important}.quiz-symbol .generated-emblem{width:100%!important;height:100%!important}
.challenge-crest .mode-art50{width:88px;height:88px;margin:auto}.mode-grid50{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:18px}.mode-tile50{position:relative;text-align:left;padding:26px;border:1px solid #74629566;border-radius:20px;background:radial-gradient(at 50% 0%,#4c366d66,#131824 70%);color:#eee;overflow:hidden;transition:transform .2s,border-color .2s}.mode-tile50:hover{transform:translateY(-4px);border-color:#ad9add}.mode-tile50>.mode-art50{height:140px;margin:0 auto 16px;animation:modeFloat50 6s ease-in-out infinite}.mode-tile50 h2{font-size:23px}.mode-tile50 p{color:#bcb6cf;min-height:48px}.mode-tile50>strong{color:#d8fba4}.mode-tile50:nth-child(2n)>.mode-art50{animation-delay:-3s}
@keyframes modeFloat50{50%{transform:translateY(-6px)}}
.page-head{position:relative;border-bottom:1px solid #8e6ba033;padding-bottom:22px}.page-head:after{content:'';position:absolute;bottom:-1px;left:0;width:20%;height:2px;background:linear-gradient(90deg,transparent,#ba9feb,transparent);animation:headSweep50 9s ease-in-out infinite;pointer-events:none}@keyframes headSweep50{50%{left:70%}}
.mystery-opponent50{width:min(210px,40%);display:grid;justify-items:center;gap:12px}.mystery-card50{width:100%;aspect-ratio:.7;background:linear-gradient(135deg,#11151c,#252b35 55%,#080b10);border:2px solid #737b8a;clip-path:polygon(0 8%,40% 3%,50% 0,60% 3%,100% 8%,100% 88%,50% 100%,0 88%);padding:15% 12% 14%;color:#e6eaf0;position:relative;box-sizing:border-box}.mystery-rating50{position:absolute;top:13%;left:13%;font-size:28px}.mystery-face50{font:bold 95px/1.5 Arial;text-align:center;color:#aab2c0}.mystery-card50>strong{display:block;text-align:center;font:800 10px/1.3 Arial;margin:0 0 12px}.mystery-card50>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:4px;font:12px Arial}.mystery-opponent50>small{color:#c2bad5;text-align:center}.sound-controls50{display:grid;gap:12px;margin-bottom:16px}.sound-controls50 label{font-size:11px;display:flex;align-items:center;gap:8px}.sound-controls50 input{min-width:0;width:100%;accent-color:#b794ff}
@media(max-width:767px){body .pitch-scroll .mini-card47 .mini-name47{font-size:7px!important;top:61%!important;height:10%!important}.mystery-face50{font-size:65px}.mystery-rating50{font-size:20px}.mystery-card50>strong{font-size:8px}.mystery-card50>div:last-child{font-size:9px}.mode-grid50{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-tile50{padding:14px}.mode-tile50>.mode-art50{height:100px}.mode-tile50 h2{font-size:17px}.mode-tile50 p{font-size:12px}.mode-tile50 .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.mode-tile50>.mode-art50,.page-head:after{animation:none!important}.mode-tile50{transition:none}}
/* Arena reveal: a new stage independent of the legacy tunnel. */
body dialog.walkout.arena50{width:min(1200px,98vw)!important;height:min(850px,96dvh)!important;max-width:98vw;max-height:96dvh;background:radial-gradient(ellipse at 50% 60%,#202d37,#070c13 72%)!important;overflow:hidden!important;padding:0!important;border:1px solid #627080;border-radius:16px;color:#fff}
.arena50 .opening-top,.arena50 .opening-bottom{position:absolute;left:0;right:0;z-index:30;padding:14px 20px;background:#07101ad9}.arena50 .opening-top{top:0}.arena50 .opening-bottom{bottom:0}.arena50 #walkout-content{position:absolute;inset:60px 0 60px;overflow:hidden;perspective:1000px}.arena50 .cinema-sound{position:absolute;bottom:8px;right:12px;z-index:25;font-size:12px}
.arena-roof50{position:absolute;inset:0 0 65%;background:repeating-linear-gradient(90deg,transparent 0 9%,#94afd526 9.5% 10%),linear-gradient(#0008,transparent);transform:rotateX(-30deg);transform-origin:top}
.arena-field50{position:absolute;inset:55% -30% -30%;background:repeating-linear-gradient(90deg,#184c3522 0 10%,#24674c22 10% 20%);transform:rotateX(65deg);border:2px solid #cde5ed30;box-shadow:0 -20px 100px color-mix(in srgb,var(--arena-color) 15%,transparent)}
.arena-lights50{position:absolute;inset:0;pointer-events:none}.arena-lights50 i{position:absolute;top:-20%;left:18%;width:12%;height:150%;background:linear-gradient(var(--arena-color),transparent 80%);opacity:.14;transform:rotate(-22deg);filter:blur(8px);animation:arenaBeam50 5s ease-in-out infinite alternate}.arena-lights50 i:nth-child(2){left:70%;transform:rotate(22deg);animation-delay:-2s}.arena-lights50 i:nth-child(3){left:40%;width:4%;animation-delay:-1s}.arena-lights50 i:nth-child(4){left:60%;width:4%;animation-delay:-3s}@keyframes arenaBeam50{to{transform:rotate(12deg);opacity:.25}}
.arena-booster50{position:absolute;inset:4% 25% 8%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;z-index:8;transition:transform .7s,opacity .6s}.arena-booster50 img{width:auto;height:65%;max-width:100%;object-fit:contain;filter:drop-shadow(0 0 25px #bfafff44);animation:modeFloat50 4s ease-in-out infinite}.arena-booster50 small{font-size:12px;color:#c6c4d4}.arena-start50 .arena-booster50{transform:translateZ(250px) scale(1.15);opacity:0;pointer-events:none}
.arena-gates50{position:absolute;inset:0 28%;z-index:6;display:flex;pointer-events:none;opacity:0}.arena-gates50 i{width:50%;background:linear-gradient(110deg,#0b1420,#273345,#0b1420);border:1px solid var(--arena-color);transition:transform .8s cubic-bezier(.2,.7,.2,1),opacity .8s;box-shadow:0 0 25px color-mix(in srgb,var(--arena-color) 25%,transparent)}.arena-revealing50 .arena-gates50{opacity:1}.arena-open50 .arena-gates50 i:first-child{transform:translateX(-160%) rotateY(70deg);opacity:0}.arena-open50 .arena-gates50 i:last-child{transform:translateX(160%) rotateY(-70deg);opacity:0}
.arena-clue50{position:absolute;inset:24% 28% auto;display:flex;align-items:center;flex-direction:column;gap:20px;z-index:9;text-align:center}.arena-clue50>span{font-size:12px;letter-spacing:3px;color:#c9d2df}.arena-clue50 img,.arena-clue50 .special-emblem{width:80px!important;height:80px!important;object-fit:contain}.arena-clue50>strong{font-size:22px}.arena-clue50>b{font-size:64px;color:var(--arena-color)}.arena-open50 .arena-clue50{display:none}
.arena-boards50{position:absolute;inset:13% 9% 18%;display:flex;justify-content:space-between;pointer-events:none}.arena-boards50>div{width:16%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border-top:3px solid var(--arena-color);border-bottom:3px solid var(--arena-color);background:linear-gradient(#101929,#1e283bdd);color:var(--arena-color);transform:rotateY(15deg)}.arena-boards50>div:last-child{transform:rotateY(-15deg)}.arena-boards50 small{font:800 12px Arial;letter-spacing:1px}.arena-boards50 img,.arena-boards50 .special-emblem{width:56px!important;height:48px!important;object-fit:contain}.arena-boards50 strong{font-size:28px}.arena-boards50 b{font-size:46px}.arena-boards50 .generated-emblem{width:100%!important;height:100%!important}
.arena-reveal50{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;z-index:10;opacity:0;transform:translateY(80px) scale(.7);pointer-events:none;transition:transform .9s cubic-bezier(.16,1,.3,1),opacity .5s}.arena-open50 .arena-reveal50{opacity:1;transform:none;pointer-events:auto}.arena-card50{width:clamp(170px,25vw,250px);filter:drop-shadow(0 0 25px color-mix(in srgb,var(--arena-color) 25%,transparent))}.arena50 .arena-card50 .fd-card-options,.arena50 .arena-card50 .card-flip-button{display:none!important}.arena-caption50{text-align:center;max-width:80%}.arena-caption50>span{font-size:11px;letter-spacing:2px;color:var(--arena-color)}.arena-caption50 h2{font-size:22px;margin:4px 0 10px}.arena-caption50 button{font-size:13px;padding:10px 16px}.arena-pagination50{position:absolute;bottom:12px;left:20px;display:flex;gap:5px;z-index:20}.arena-pagination50 i{width:16px;height:4px;background:#ffffff30;border-radius:3px}.arena-pagination50 i.lit{background:var(--arena-color)}
.arena50.elite50.arena-open50 .arena-card50{filter:drop-shadow(0 0 40px var(--arena-color))}.arena50.tier50-5 .arena-lights50 i{background:linear-gradient(#bf62ff,#dc8420,transparent)}
@media(max-width:767px){.arena50 .opening-top{padding:10px;font-size:10px}.arena50 .opening-top button{font-size:10px;padding:8px}.arena50 .opening-bottom{font-size:11px;padding:10px}.arena50 #walkout-content{inset:48px 0 50px}.arena-card50{width:clamp(160px,48vw,230px)}.arena-boards50{inset:20% 2% 24%}.arena-boards50>div{width:21%;gap:12px}.arena-boards50 small{font-size:7px}.arena-boards50 img,.arena-boards50 .special-emblem{width:34px!important;height:30px!important}.arena-boards50 strong{font-size:18px}.arena-boards50 b{font-size:26px}.arena-caption50 h2{font-size:18px}.arena-clue50{inset:25% 23% auto}.arena-booster50{inset:7% 15% 12%}.arena-gates50{inset:0 22%}}
@media(max-height:650px){.arena-card50{width:150px}.arena-caption50 h2{font-size:16px}.arena-reveal50{gap:0}.arena-caption50>span{display:none}}
@media(prefers-reduced-motion:reduce){.arena50 *{animation:none!important;transition:none!important}}
body .duel-preview{width:100%;min-width:0;gap:10px}body .duel-preview>.player,body .duel-preview>.mystery-opponent50{width:calc((100% - 48px)/2);max-width:210px;min-width:0;flex:none}body .duel-preview .duel-vs{font-size:22px}
@media(max-width:480px){body .duel-intro{padding:16px}body .duel-preview .mystery-face50{font-size:52px;line-height:1.4}body .duel-preview .mystery-card50>strong{font-size:7px;margin-bottom:6px}.mystery-card50>div:last-child{font-size:8px}.mystery-rating50{font-size:16px}}
body .player.fd-card.fd-card-v44,body .mini-card47{--name50:var(--ink50)}
body .player.fd-card.fd-card-v44[data-edition=hero],body .mini-card47.hero{--name50:#f4f6ff}
body .player.fd-card.fd-card-v44[data-edition=halloween],body .mini-card47.halloween{--name50:#fff2d1}
body .arena50 .cinema-sound{left:auto!important;width:auto!important;right:12px!important;bottom:8px!important}
.sound-menu50{position:relative;flex:none;z-index:80}.sound-menu50>summary{list-style:none;cursor:pointer;border:1px solid #68577e;border-radius:10px;width:32px;height:36px;display:grid;place-items:center;font-size:22px;color:#d9c6ff}.sound-menu50>summary::-webkit-details-marker{display:none}.sound-menu50 .sound-controls50{position:absolute;right:0;top:42px;width:210px;padding:16px;background:#121827;border:1px solid #766091;border-radius:14px;box-shadow:0 12px 35px #0009;box-sizing:border-box}.sound-controls50 button{font-size:12px;padding:10px}.sound-controls50 label{color:#c4bcd5}
.page-head{border-radius:14px 14px 0 0;background:linear-gradient(90deg,#0b1019 25%,#0b1019de 65%,#0b101988),url('/stadium-night.png') right center/cover;padding:18px 12px 24px}.page-head .page-title-group{position:relative;z-index:1}.page-head .pill{background:#111829d9}.mode-tile50:focus-visible{outline:3px solid #d4f88e;outline-offset:3px}
