.prize { margin: 0; border-radius: 0; border: 0; border-top: 2px solid #b91c1c; background: linear-gradient(135deg, #fef9c3, #fde68a); display: flex; align-items: center; justify-content: center; gap: 6px 8px; flex-wrap: wrap; padding: 14px 10px; min-height: 84px; box-sizing: border-box; font-family: "Mukta Malar", "Latha", "Nirmala UI", sans-serif; }
.prize[hidden] { display: none; }
.prize-head { font-weight: 800; color: #92400e; font-size: .9rem; white-space: nowrap; }
.prize-body { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.winner { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #f59e0b; border-radius: 0; padding: 3px 10px 3px 3px; }
.winner img, .winner .ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid #f59e0b; flex: none; background: #fff7ed; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.winner .nm { font-weight: 800; color: #7f1d1d; font-size: .82rem; line-height: 1.1; }
.winner .pl { font-size: .7rem; color: #92400e; font-weight: 700; line-height: 1.1; }
.winner .amt { font-weight: 800; color: #15803d; font-size: .82rem; white-space: nowrap; }
/* celebration effects */
.prize { position: relative; overflow: hidden; background-size: 200% 100%; animation: prizeGlow 1.6s ease-in-out infinite alternate; }
@keyframes prizeGlow { from { box-shadow: inset 0 0 0 0 rgba(245,158,11,0); background-color: #fef9c3; } to { box-shadow: inset 0 0 14px 2px rgba(245,158,11,.75); background-color: #fde047; } }
.prize::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-20deg); animation: prizeShine 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes prizeShine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
.prize-head, .winner { position: relative; z-index: 1; }
.prize-head { animation: trophy 1.2s ease-in-out infinite; transform-origin: center; }
@keyframes trophy { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.12) rotate(-4deg); } 75% { transform: scale(1.12) rotate(4deg); } }
.winner { animation: winnerPop 1.4s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(245,158,11,.7); }
.winner:nth-child(2) { animation-delay: .35s; }
@keyframes winnerPop { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,158,11,.7); } 50% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(245,158,11,0); } }
.winner .amt { animation: amtBlink 1s steps(2) infinite; }
@keyframes amtBlink { 50% { color: #dc2626; } }
.confetti { position: absolute; top: -8px; width: 7px; height: 11px; opacity: 0; z-index: 0; pointer-events: none; animation: fall 2.5s linear infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110px) rotate(540deg); opacity: 0; } }
.topbox { max-width: 1100px; margin: 8px auto 0; border: 2px solid #b91c1c; border-radius: 0; overflow: hidden; background: rgba(255,255,255,.92); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.topbox > .board { grid-column: 1; min-width: 0; }
.topbox > .prize { grid-column: 2; min-width: 0; border-top: 0; border-left: 2px solid #b91c1c; flex-direction: column; padding: 8px 5px; }
.prize-head { white-space: normal; text-align: center; }
.prize-body { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.winner { max-width: 100%; min-width: 0; box-sizing: border-box; }
.winner > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.board { margin: 0; }
.board[hidden] { display: none; }
.board-head { position: relative; text-align: center; font-weight: 800; color: #fff; background: linear-gradient(90deg, #7f1d1d, #b91c1c, #7f1d1d); padding: 6px; font-size: .95rem; border-radius: 0; margin: 0; font-family: "Mukta Malar", "Latha", "Nirmala UI", sans-serif; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.board-head .ttl { flex: 1 1 auto; font-size: clamp(.8rem, 3vw, 1.2rem); font-weight: 900; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.board-head select { font-size: .58rem; padding: 2px 1px; width: 64px; flex: none; border: 1px solid #fecaca; border-radius: 6px; background: #fff; color: #7f1d1d; font-family: "Mukta Malar", "Latha", "Nirmala UI", sans-serif; }
.board-viewport { overflow: hidden; container-type: inline-size; background: rgba(255,255,255,.92); border: 0; border-radius: 0; margin: 0; padding: 10px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.board-track { display: flex; gap: 14px; width: max-content; animation: run var(--dur, 40s) linear infinite; }
.board-track.board-empty { display: block; width: 100%; padding: 8px; box-sizing: border-box; text-align: center; font-weight: 700; font-size: .85rem; color: #7f1d1d; animation: none; }
.board-viewport.board-list-view { max-height: 300px; overflow-y: auto; overflow-x: hidden; padding: 6px; -webkit-mask-image: none; mask-image: none; }
.board-list-view .board-track { display: flex; flex-direction: column; gap: 6px; width: 100%; animation: none; }
.board-list-view .hero-card { width: 100%; }
.board-list-view .hero-card img { animation: none; }
.board-viewport:hover .board-track, .board-viewport:active .board-track, .board-viewport:focus-within .board-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
.hero-card { font-family: "Mukta Malar", "Latha", "Nirmala UI", sans-serif; display: flex; align-items: center; gap: 6px; width: min(270px, 100cqw); box-sizing: border-box; flex: none; padding: 6px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 0; text-align: left; cursor: pointer; }
.hero-card:focus-visible { outline: 3px solid #b91c1c; outline-offset: -3px; }
.hero-card > div { min-width: 0; overflow-wrap: anywhere; }
.hero-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #f59e0b; flex: none; box-shadow: 0 3px 8px rgba(0,0,0,.3); animation: floaty 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes floaty { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
.hero-card .who { font-size: .78rem; font-weight: 800; color: #7f1d1d; line-height: 1.2; }
.hero-card .who small { font-weight: 600; color: #92400e; }
.hero-card .prob { font-size: .68rem; color: #333; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-details { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(520px, calc(100% - 24px)); max-width: none; max-height: none; padding: 0; border: 2px solid #d97706; border-radius: 14px; color: #333; background: #fffaf3; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-family: "Mukta Malar", "Latha", "Nirmala UI", sans-serif; overflow: hidden; }
.hero-details-content { transform-origin: top left; }
.hero-details::backdrop { background: rgba(30,10,5,.7); }
.hero-details-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 10px; background: linear-gradient(110deg, #7f1d1d, #b91c1c); color: #fff; }
.hero-details-head h2 { margin: 0; font-size: 1rem; }
.hero-details-close { flex: none; width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.hero-details-body { padding: 6px; font-size: .85rem; line-height: 1.25; }
.hero-details-portrait { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 5px; padding: 5px; border: 1px solid #f59e0b; border-radius: 10px; background: linear-gradient(135deg, #fff7d6, #fed7aa); text-align: center; }
.hero-details-portrait-title { color: #991b1b; font-size: 1.15rem; font-weight: 900; letter-spacing: .12em; }
.hero-details-portrait img { width: 64px; height: 64px; max-width: 100%; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #f59e0b, 0 4px 10px rgba(127,29,29,.25); }
.hero-details-name { color: #7f1d1d; font-size: 1.1rem; font-weight: 900; overflow-wrap: anywhere; }
.hero-details-portrait-status { color: #7f1d1d; font-size: .8rem; }
.hero-details-portrait-status:empty { display: none; }
.hero-details-field { margin-bottom: 4px; padding: 4px 7px; border: 1px solid #fed7aa; border-radius: 7px; background: #fff; overflow-wrap: anywhere; white-space: pre-wrap; }
.hero-details-field strong { color: #991b1b; }
.hero-details-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.hero-details-photos figure { margin: 0; }
.hero-details-photos figcaption { margin-bottom: 4px; color: #991b1b; font-weight: 800; }
.hero-details-photos img { display: block; max-width: 100%; height: 90px; object-fit: contain; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .board-track, .hero-card img { animation: none; } .board-viewport { overflow-x: auto; } }
