/* A real interaction target: click the illustrated machine itself. */
.activity-panel#panel-gacha>.surprise-card{display:block}.gacha-interaction{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:26px;align-items:center;min-width:0}.activity-panel#panel-gacha .gacha-machine{display:flex;grid-column:auto;grid-row:auto;flex-direction:column;align-items:center;justify-content:center;width:100%;height:auto;min-height:410px;margin:0;padding:10px 0 16px;background:radial-gradient(ellipse at 50% 50%,#dcecd647,transparent 70%);border:0;border-radius:18px;color:#5e7b50;transition:filter .2s}.activity-panel#panel-gacha .gacha-machine:hover{filter:brightness(1.06)}.activity-panel#panel-gacha .gacha-machine:disabled{cursor:not-allowed;opacity:1;filter:saturate(.7)}.gacha-machine:focus-visible{outline:3px solid #c5a14c;outline-offset:3px}.gacha-machine canvas{width:256px;height:384px;max-width:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.gacha-machine .machine-hint{display:block;font-size:11px;line-height:1.8;padding:10px 8px 0;text-align:center;pointer-events:none}.gacha-copy{min-width:0}.gacha-copy h3{font-size:23px;margin:0 0 18px}.gacha-copy>p{font-size:12px;line-height:2;color:#83937a}.gacha-copy .gacha-progress{margin:24px 0 14px}.gacha-copy .collection-result{text-align:left;font-size:12px;min-height:0}.gacha-copy .machine-instruction{padding:14px;border:1px dashed #ccdabc;border-radius:10px;color:#7d916f;font-size:11px;margin-top:16px;line-height:1.9}.gacha-machine[aria-busy=true]{cursor:wait}
/* Animate the gradient angle, not a finite square: no cut-off edges during rotation. */
@property --ray-angle{syntax:'<angle>';inherits:false;initial-value:0deg}.gacha-reward{display:block;position:relative;min-height:300px;width:100%;max-width:100%;overflow:hidden;margin:24px 0 18px}.gacha-reward .reward-rays{inset:0;left:0;top:0;width:100%;height:100%;transform:none;border-radius:inherit;background:repeating-conic-gradient(from var(--ray-angle,0deg) at 50% 45%,#e7c77435 0deg 15deg,transparent 15deg 30deg);mask-image:radial-gradient(ellipse at 50% 45%,#000 8%,#000b 40%,transparent 90%);animation:raySweep 14s linear infinite}.gacha-reward .prize-presentation{padding:26px 20px 28px;min-width:0}.gacha-reward .reward-item-art{height:120px;min-width:0}.gacha-reward .prize-presentation h3{margin:10px 0;font-size:22px}.gacha-reward .reward-item-art .title-frame{max-width:100%;white-space:normal;text-align:center;line-height:1.6}.gacha-reward .prize-presentation p{line-height:1.8}.gacha-reward .prize-presentation>b{line-height:1.9}@keyframes raySweep{to{--ray-angle:360deg}}
/* Let real content size the ticket. The scratch cover remains an absolute overlay. */
.activity-panel#panel-scratch .scratch-board{height:auto!important;aspect-ratio:auto!important;min-height:0!important;width:100%;max-width:100%;min-width:0}.scratch-board .scratch-symbols.ticket-content{position:relative;inset:auto;height:auto;min-height:0;overflow:visible;padding:22px}.scratch-board .classic-symbols{height:auto;min-height:155px}.scratch-board .classic-symbols>div{height:auto;min-height:130px}.scratch-board .seven-grid{grid-template-rows:repeat(3,minmax(118px,auto))}.scratch-board .seven-grid .ticket-cell{aspect-ratio:auto;min-height:118px}.scratch-board .ticket-rule-bottom{margin:14px 0 4px}.scratch-board canvas{position:absolute;inset:0;width:100%;height:100%}.scratch-board .number-grid .ticket-cell{aspect-ratio:1/.95}.scratch-board .line-grid{margin-bottom:8px}
html[data-theme=dark] .gacha-copy>p,html[data-theme=dark] .gacha-copy .machine-instruction{color:#aab9a6}html[data-theme=dark] .gacha-copy .machine-instruction{border-color:#3c5141;background:#1c2c22}html[data-theme=dark] .gacha-machine .machine-hint{color:#c0d0b8}html[data-theme=dark] .activity-panel#panel-gacha .gacha-machine{background:radial-gradient(ellipse,#25443155,transparent 70%)}
@media(max-width:700px){.gacha-interaction{grid-template-columns:1fr;gap:14px}.activity-panel#panel-gacha .gacha-machine{min-height:0;padding:0 0 12px}.gacha-machine canvas{width:224px;height:336px}.gacha-copy h3{font-size:19px;margin-bottom:10px}.gacha-copy .gacha-progress{margin-top:15px}.gacha-reward{min-height:280px}.gacha-reward .prize-presentation{padding:22px 14px}.gacha-reward .reward-item-art .title-frame{font-size:13px}.scratch-board .scratch-symbols.ticket-content{padding:12px}.scratch-board .seven-grid{grid-template-rows:repeat(3,minmax(80px,auto));gap:7px}.scratch-board .seven-grid .ticket-cell{min-height:80px}.scratch-board .seven-grid .pixel-icon{width:44px;height:44px}.scratch-board .classic-symbols{min-height:120px}.scratch-board .classic-symbols>div{min-height:100px}.scratch-board .ticket-rule-bottom{margin:10px 0 3px}}
@media(prefers-reduced-motion:reduce){.gacha-reward .reward-rays{animation:none}.gacha-machine{transition:none}}

.gacha-machine canvas{width:288px;height:384px}@media(max-width:700px){.gacha-machine canvas{width:252px;height:336px}}

.activity-panel#panel-gacha .gacha-machine[aria-busy=true]{cursor:wait}
