/* A compact, illustrated game shelf. Artwork stays colorful in both appearances. */
body.games-arcade .arcade-root.arcade-root .v3-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
body.games-arcade .arcade-root .library-card{position:relative;min-width:0;border:1px solid #dce4db;background:#fff;border-radius:17px;overflow:hidden;box-shadow:0 3px 0 #e6ece1;transition:transform .18s,box-shadow .18s}
body.games-arcade .arcade-root .library-card-link{display:block;color:#213e2c}
body.games-arcade .arcade-root .library-visual{height:112px;position:relative;overflow:hidden;background:linear-gradient(125deg,var(--tile-a),var(--tile-b))}
body.games-arcade .arcade-root .library-visual:before{content:'';position:absolute;border:1px solid #ffffff60;border-radius:50%;width:128px;height:128px;right:-25px;top:-39px;box-shadow:0 0 0 17px #ffffff15,0 0 0 35px #ffffff10;pointer-events:none}
body.games-arcade .arcade-root .library-genre{position:absolute;top:8px;left:8px;z-index:2;background:#ffffffe8;color:#244531;border-radius:6px;padding:4px 6px;font-size:8px;font-weight:750;line-height:1;letter-spacing:.04em;text-transform:uppercase}
body.games-arcade .arcade-root .library-scene{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
body.games-arcade .arcade-root .library-illustration{display:block;width:100%;height:100%;overflow:visible}
body.games-arcade .arcade-root .library-caption{padding:11px 10px 12px;text-align:left;min-height:60px}
body.games-arcade .arcade-root .library-caption h3{font-size:14px;font-weight:800;letter-spacing:-.035em;line-height:1.2;margin:0 0 5px}
body.games-arcade .arcade-root .library-caption p{font-size:10px;line-height:1.4;color:#647362;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.games-arcade .arcade-root .library-play{position:absolute;top:65px;right:7px;display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;min-width:54px;padding:0 8px;border-radius:11px;background:#fff;color:#234c32;border:1px solid #ffffffb3;box-shadow:0 3px 8px #213b2526;font-size:10px;font-weight:800;z-index:3}
body.games-arcade .arcade-root .library-play .svg-icon{width:13px;height:13px}
body.games-arcade .arcade-root .library-play:active{transform:translateY(2px);box-shadow:none}
body.games-arcade .arcade-root .library-card-link:focus-visible{outline-offset:-3px;outline-color:#315e3d}
body.games-arcade .arcade-root .library-play:focus-visible{outline:3px solid #b4842c;outline-offset:1px}
body.games-arcade .arcade-root .library-scene .jersey-svg{height:98px;width:100px;transform:rotate(-9deg);filter:drop-shadow(0 6px 4px #73518328)}
body.games-arcade .arcade-root .library-badges{display:flex;align-items:center;justify-content:center;width:100%;gap:0;padding-top:12px}
body.games-arcade .arcade-root .library-badges img{width:49px;height:62px;object-fit:contain;filter:drop-shadow(0 5px 3px #493a762d)}
body.games-arcade .arcade-root .library-badges img:first-child{transform:rotate(-18deg) translateX(9px)}
body.games-arcade .arcade-root .library-badges img:nth-child(2){width:62px;height:75px;z-index:1;transform:translateY(-7px)}
body.games-arcade .arcade-root .library-badges img:last-child{transform:rotate(16deg) translateX(-8px)}
body.games-arcade .arcade-root .library-journey{display:flex;align-items:center;gap:6px;transform:rotate(-8deg);position:relative}
body.games-arcade .arcade-root .library-journey:before{content:'';position:absolute;left:10px;right:10px;top:31px;border-top:2px dashed #b38944}
body.games-arcade .arcade-root .library-journey>span{height:64px;width:40px;border:1px solid #fff;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#ffffffe6;box-shadow:0 4px 0 #bd994c2a;z-index:1}
body.games-arcade .arcade-root .library-journey img{width:26px;height:32px;object-fit:contain}
body.games-arcade .arcade-root .library-journey small{font-size:8px;color:#8d6f34;font-weight:800}
body.games-arcade .arcade-root .library-memory{display:grid;grid-template-columns:repeat(3,30px);gap:6px;transform:rotate(-9deg)}
body.games-arcade .arcade-root .library-memory>span{width:30px;height:36px;border-radius:6px;background:#6f89be;box-shadow:0 3px 0 #4b659a;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff80}
body.games-arcade .arcade-root .library-memory .face-up{background:#fff;transform:rotate(9deg);box-shadow:0 3px 0 #a0b3d5}
body.games-arcade .arcade-root .library-memory img{width:23px;height:auto;max-height:27px;object-fit:contain}
body.games-arcade .arcade-root .library-lineup{width:130px;display:flex;align-items:center;flex-direction:column;transform:rotate(-7deg);gap:4px}
body.games-arcade .arcade-root .library-lineup>b{font-size:62px;line-height:1;font-weight:900;color:#34634b;letter-spacing:-.1em;opacity:.8}
body.games-arcade .arcade-root .library-lineup>div{display:flex;gap:5px;margin-top:-9px}
body.games-arcade .arcade-root .library-lineup span{width:27px;height:29px;display:flex;align-items:center;justify-content:center;background:#fffef1;border-radius:5px;box-shadow:0 3px 0 #52876b30}
body.games-arcade .arcade-root .library-lineup img{width:21px;height:23px;object-fit:contain}
body.games-arcade .arcade-root .library-hero-art{display:flex;align-items:center;justify-content:center}
body.games-arcade .arcade-root .library-hero-art .library-badges{transform:scale(.9);padding:0}
body.games-arcade .arcade-root .library-hero-art .library-journey{transform:rotate(-8deg) scale(.9)}
html[data-theme=night] body.games-arcade .arcade-root .library-card{background:#15243b;border-color:#34445e;box-shadow:0 3px 0 #0a1425}
html[data-theme=night] body.games-arcade .arcade-root .library-card-link{color:#f0cf83}
html[data-theme=night] body.games-arcade .arcade-root .library-caption p{color:#bdc8d8}
html[data-theme=night] body.games-arcade .arcade-root .library-play{background:#f0cf83;color:#14243b;border-color:#f5dfa7}
@media(hover:hover){body.games-arcade .arcade-root .library-card:hover{transform:translateY(-3px);box-shadow:0 6px 12px #244b311a}}
@media(max-width:640px){body.games-arcade .arcade-root .library-caption h3{font-size:14px}}
@media(max-width:360px){body.games-arcade .arcade-root .library-caption{padding:10px 8px;min-height:59px}body.games-arcade .arcade-root .library-caption h3{font-size:13px}body.games-arcade .arcade-root .library-caption p{font-size:9px}body.games-arcade .arcade-root .library-play{font-size:9px;min-width:48px;padding:0 6px}}
@media(prefers-reduced-motion:reduce){body.games-arcade .arcade-root .library-card{transition:none}}

/* Full-screen games own their Back, pause, and accessible touch controls. */
body.games-arcade .arcade-root.skill-game-root{height:100dvh;min-height:0;overflow:hidden}
body.games-arcade .skill-game-frame{display:block;width:100%;height:100%;border:0;background:#fff}

body.games-arcade .arcade-root.volley-game-root{max-width:none}
