/* Yugimon V79: artwork is the exact approved arena paintings, kept separate from live duel zones. */
.board.arena-universe,
.board.arena-forest,
.board.arena-factory,
.board.arena-beach,
.board.arena-desert {
 background-position:center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}
.board.arena-universe{background-image:linear-gradient(180deg,#04133364,#06143373),url('/arenas/universe.webp')!important}
.board.arena-forest{background-image:linear-gradient(180deg,#041c1470,#011e135e),url('/arenas/forest.webp')!important}
.board.arena-factory{background-image:linear-gradient(180deg,#08132166,#07141c72),url('/arenas/factory.webp')!important}
.board.arena-beach{background-image:linear-gradient(180deg,#00354d7a,#031e326b),url('/arenas/beach.webp')!important}
.board.arena-desert{background-image:linear-gradient(180deg,#3b1d076b,#24120864),url('/arenas/desert.webp')!important}
.board.arena-original{background-image:linear-gradient(90deg,#0e2236aa 1px,transparent 1px),linear-gradient(#0e2236aa 1px,transparent 1px),radial-gradient(circle at 50% 50%,#173653,#0b1b2c 62%,#071421)!important;background-size:42px 42px,42px 42px,auto!important}
.board.arena-universe::before,.board.arena-forest::before,.board.arena-factory::before,.board.arena-beach::before,.board.arena-desert::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
 background:radial-gradient(ellipse at 50% 50%,transparent 55%,#03132582);animation:ygArenaGlow 10s ease-in-out infinite alternate
}
.board .field-half,.board .field-divider,.board .side-rail{z-index:1}
@keyframes ygArenaGlow{from{opacity:.38}to{opacity:.75}}
@media(prefers-reduced-motion:reduce){.board::before{animation:none!important}}
/* Original sleeve is the existing Yugimon card back, rather than a recolored one. */
.sleeve-original .card-back,.sleeve-original.card-back,.sleeve-original .pile-stack{background:#1a0c06 url('/images/card-back.png') center/cover no-repeat!important}
.sleeve-original .card-back::after,.sleeve-original.card-back::after{border-color:#251109!important;box-shadow:inset 0 0 0 2px #8f512d!important}
/* Full-resolution previews use the same source files as the actual board. */
#preview .arena{position:relative;background-position:center!important;background-size:cover!important;border:2px solid #d9c78b;isolation:isolate}
#preview .arena::before{content:"";position:absolute;inset:0;background:linear-gradient(#06152748,#04192b8b);border-radius:inherit;z-index:-1}
#preview .arena.original{background:#102b43!important;background-image:linear-gradient(90deg,#44607b46 1px,transparent 1px),linear-gradient(#44607b46 1px,transparent 1px),radial-gradient(ellipse,#17466c,#071d32)!important;background-size:30px 30px,30px 30px,auto!important}
#preview .arena.universe{background-image:url('/arenas/universe.webp')!important}
#preview .arena.forest{background-image:url('/arenas/forest.webp')!important}
#preview .arena.factory{background-image:url('/arenas/factory.webp')!important}
#preview .arena.beach{background-image:url('/arenas/beach.webp')!important}
#preview .arena.desert{background-image:url('/arenas/desert.webp')!important}
#preview .arena strong{background:#071930bd;padding:7px 13px;border:1px solid #c2d5e081;border-radius:10px;text-shadow:0 3px 7px #000;font-size:clamp(.65rem,2.6vw,1rem);text-align:center}
#preview .sleeve.original{color:transparent!important;background:#26110b url('/images/card-back.png') center/cover no-repeat!important;border:3px solid #2c1912}
#preview .sleeve{flex:none}
.choices button:focus-visible{outline:3px solid #ffdf90;outline-offset:2px}
.choices button.active{box-shadow:0 0 0 2px #edc785,0 0 16px #ffca7b4d}
@media(max-width:600px){
 #preview .arena{height:clamp(265px,75vw,350px)!important;padding:12px}
 #preview .zones{gap:6px;max-width:100%}
 #preview .zone{width:clamp(36px,14vw,62px);height:clamp(55px,20vw,82px)}
 #preview .sleeve{width:clamp(36px,13vw,56px);height:clamp(55px,19vw,78px)}
 .choices button{min-height:42px}
}

/* Every arena option previews the exact painting, not a generic emoji tile. */
#arenas.choices button[data-a]{min-height:61px;color:#f9fcff;background-size:cover;background-position:center;position:relative;overflow:hidden;text-shadow:0 2px 6px #000,0 0 8px #071321;padding:10px 12px;font-weight:900;border:1px solid #72b1de;box-shadow:inset 0 0 0 1px #001b3180}
#arenas.choices button[data-a="original"]{background-image:linear-gradient(145deg,#0a253dba,#164a6e99)}
#arenas.choices button[data-a="universe"]{background-image:linear-gradient(#03132e9c,#03132e8a),url('/arenas/universe.webp')}
#arenas.choices button[data-a="forest"]{background-image:linear-gradient(#031a0eb6,#03190ca8),url('/arenas/forest.webp')}
#arenas.choices button[data-a="factory"]{background-image:linear-gradient(#091a2ab3,#091a2a99),url('/arenas/factory.webp')}
#arenas.choices button[data-a="beach"]{background-image:linear-gradient(#063e519c,#063e518f),url('/arenas/beach.webp')}
#arenas.choices button[data-a="desert"]{background-image:linear-gradient(#382009ab,#382009a3),url('/arenas/desert.webp')}
#arenas.choices button.active{outline:3px solid #f5d28e;border-color:#fff0c2;box-shadow:0 0 17px #efca6e99}
