.zc-random-game{position:relative;min-width:0;border-radius:var(--main-radius,8px);overflow:hidden;background:var(--main-bg-color);color:var(--main-color);container-type:inline-size}
/* Use Zibll's native widget spacing, while the intro/result retain their own padding. */
.zc-random-game.zib-widget{padding:0}
.zc-random-game [hidden]{display:none!important}
.zcrg-intro{position:relative;isolation:isolate;overflow:hidden;padding:24px 12px;color:#fff;text-align:center;background:var(--focus-color)}
.zcrg-intro:before,.zcrg-intro:after{content:'';position:absolute;z-index:-1;width:140%;height:170px;border:1px solid rgba(255,255,255,.12);border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none;transform:rotate(22deg)}
.zcrg-intro:before{left:-42%;bottom:-95px}.zcrg-intro:after{right:-72%;top:-92px}
.zcrg-emblem{display:grid;place-items:center;margin:0 auto 14px;width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.17)}
.zcrg-emblem .zcgame-line-icon{display:block;width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:2;color:#fff}
.zcrg-emblem .fa-gamepad{font-size:35px;line-height:1;color:#fff}
.zcrg-intro h3{font-size:21px;line-height:1.5;margin:0 0 10px;color:inherit;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zcrg-intro p{font-size:14px;line-height:1.6;margin:0 0 18px;color:rgba(255,255,255,.88)}
.zc-random-game button,.zcrg-actions a{appearance:none;font-family:inherit;cursor:pointer;font-size:14px;line-height:1.5;text-align:center;text-decoration:none;transition:opacity .2s,transform .2s;border-radius:5px}
.zcrg-start{display:block;width:100%;padding:8px 12px;border:1px solid transparent;background:#fff;color:var(--focus-color);font-weight:500}
.zcrg-start:hover{opacity:.9}.zc-random-game button:disabled{cursor:wait;opacity:.65}
.zcrg-result{padding:18px;animation:zcrg-reveal .25s ease-out}
.zcrg-cover{display:block;position:relative;aspect-ratio:460/215;border-radius:7px;overflow:hidden;background:var(--muted-bg-color)}
.zcrg-cover img{display:block;width:100%;height:100%;object-fit:cover}
.zcrg-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 13px;font-size:12px;line-height:1.6;color:var(--muted-color);min-width:0}
.zcrg-category{color:var(--focus-color);min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zcrg-meta time{flex-shrink:0}
.zcrg-result .zcrg-title{display:block;font-size:17px;font-weight:500;line-height:1.5;margin:0 0 10px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zcrg-title a{color:var(--main-color);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zcrg-title a:hover{color:var(--focus-color)}
.zcrg-result .zcrg-excerpt{font-size:14px;line-height:1.7;color:var(--muted-color);background:var(--muted-bg-color);border-radius:7px;padding:10px 12px;margin:0 0 15px;overflow-wrap:anywhere}
.zcrg-excerpt>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zcrg-actions{display:flex;gap:9px}.zcrg-actions>*{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;margin:0;padding:8px 4px;border:1px solid var(--focus-color)}
.zcrg-actions .zcrg-download{color:#fff;background:var(--focus-color)}.zcrg-actions .zcrg-again{color:var(--focus-color);background:transparent}
.zcrg-actions>*:hover{opacity:.84}.zc-random-game :is(a,button):focus-visible{outline:2px solid var(--focus-color);outline-offset:2px}
.zcrg-status{padding:10px 14px;margin:0;font-size:12px;line-height:1.6;color:var(--muted-color);background:var(--muted-bg-color)}
.zcrg-status.is-success{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container(max-width:260px){.zcrg-result{padding:12px}.zcrg-result .zcrg-title{font-size:15px}.zcrg-meta{font-size:11px}.zcrg-actions>*{font-size:12px}.zcrg-intro h3{font-size:18px}}
@keyframes zcrg-reveal{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.zcrg-result{animation:none}.zc-random-game *{transition:none!important}}
