/* Optional presentation polish — no modifications to rules or board animation coordinates. */
#cccEnhancements{position:absolute;inset:0;pointer-events:none;z-index:19}
#cccReaction{position:absolute;top:13%;left:50%;transform:translate(-50%,-10px) scale(.96);font:900 clamp(16px,2vw,25px) system-ui;color:#fff0b0;background:#183356ef;border:2px solid #e8d092;border-radius:17px;padding:12px 20px;box-shadow:0 8px 23px #091326a6;opacity:0;transition:transform .2s ease,opacity .2s ease;white-space:nowrap}
#cccReaction.cccVisible{opacity:1;transform:translate(-50%,0) scale(1)}
#cccReaction.cccLoss{color:#fbd3d3;border-color:#e0a0a0}
#cccFirstTip{position:absolute;bottom:75px;right:18px;max-width:min(280px,60%);background:#152952f2;border:2px solid #9fdad0;border-radius:15px;padding:11px 30px 11px 14px;color:#f3f8ff;font:600 13px system-ui;pointer-events:auto;box-shadow:0 6px 20px #07142aa8}
#cccFirstTip[hidden]{display:none!important}
#cccFirstTip strong{color:#ffdf94;font-size:11px;letter-spacing:.09em}
#cccFirstTip p{margin:6px 0 0}
#cccTipClose{position:absolute;right:7px;top:5px;background:transparent;color:white;border:0;font-size:21px;cursor:pointer}
#cccCameraToggle{position:absolute;top:62px;right:14px;pointer-events:auto;border-radius:9px;padding:6px 10px;background:#223b65dc;border:1px solid #a4bad9;color:white;font:750 11px system-ui}
#cccCameraToggle[hidden]{display:none!important}
#boardWrap.cccCameraFocus #threeMount{filter:saturate(1.06) brightness(1.025)}
body[data-ccc-world=beach] #boardWrap{box-shadow:0 0 0 2px #e4d89e,0 0 26px #61cfd04b}
body[data-ccc-world=snow] #boardWrap{box-shadow:0 0 0 2px #c6e7fc,0 0 23px #b4d4fc55}
body[data-ccc-world=desert] #boardWrap{box-shadow:0 0 0 2px #e3b178,0 0 23px #d9a45d50}
body[data-ccc-world=woodland] #boardWrap{box-shadow:0 0 0 2px #9dc7a5,0 0 23px #6ea88c55}
.r20-q-favourite{background:#283c66!important;border:1px solid #e2ca81!important;color:#ffe1a2!important}
@media(prefers-reduced-motion:reduce){#cccReaction{transition:none!important}}

/* Keep the board coordinates untouched while framing a move more cinematically. */
#boardWrap.cccCameraFocus #threeMount canvas{filter:saturate(1.09) contrast(1.035);transition:filter .35s ease}
#cccWinnerGroupPodium{display:flex;align-items:flex-end;justify-content:center;gap:9px;margin:12px auto;max-width:520px}
.cccPodiumCharacter{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;flex:1;padding:8px 5px;background:linear-gradient(#3b5686,#24385d);border:1px solid #9ab0de;border-radius:13px;color:#fff;animation:cccPodiumRise .55s ease-out both}
.cccPodiumCharacter span{font-size:clamp(25px,4vw,44px);line-height:1.1}
.cccPodiumCharacter small{font:800 clamp(10px,1.4vw,13px) system-ui;overflow-wrap:anywhere;text-align:center}
.cccPodiumChampion{background:linear-gradient(#ae843b,#5a3e31);border:2px solid #ffe49e;transform-origin:bottom}
.cccPodiumChampion span{font-size:clamp(34px,5vw,56px)}
@keyframes cccPodiumRise{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.cccPodiumCharacter{animation:none!important}}

/* Non-invasive character focus: follows the moving board token without changing game camera. */
#cccCharacterSpotlight{position:absolute;width:72px;height:72px;border-radius:50%;border:3px solid #ffe5a1;box-shadow:0 0 0 8px #ffe5a12b,0 0 25px 8px #ffe5a177;transform:translate(-50%,-50%);transition:left .15s linear,top .15s linear;pointer-events:none;z-index:3}
#cccCharacterSpotlight[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#cccCharacterSpotlight{display:none!important}}

/* Character-specific victory portraits, deliberately separate from the 3D movement rig. */
.partyWinner:not(.hidden) .victoryAvatar.cccCelebrate{transform-origin:50% 85%;animation-duration:2.1s;animation-timing-function:ease-in-out;animation-fill-mode:both}
.partyWinner[data-celebration="fox"] .victoryAvatar.cccCelebrate{animation-name:cccFoxCelebrate}
.partyWinner[data-celebration="dragon"] .victoryAvatar.cccCelebrate{animation-name:cccDragonCelebrate}
.partyWinner[data-celebration="koala"] .victoryAvatar.cccCelebrate{animation-name:cccKoalaCelebrate}
.partyWinner[data-celebration="bunny"] .victoryAvatar.cccCelebrate{animation-name:cccBunnyCelebrate}
.partyWinner[data-celebration="panda"] .victoryAvatar.cccCelebrate{animation-name:cccPandaCelebrate}
.partyWinner[data-celebration="bear"] .victoryAvatar.cccCelebrate{animation-name:cccBearCelebrate}
.partyWinner[data-celebration="capybara"] .victoryAvatar.cccCelebrate{animation-name:cccCapybaraCelebrate}
.partyWinner[data-celebration="cat"] .victoryAvatar.cccCelebrate{animation-name:cccCatCelebrate}
.partyWinner[data-celebration="puppy"] .victoryAvatar.cccCelebrate{animation-name:cccPuppyCelebrate}
@keyframes cccFoxCelebrate{0%,100%{transform:rotate(0) scale(1)}30%{transform:translateY(-12px) rotate(-14deg) scale(1.12)}60%{transform:rotate(15deg) scale(1.14)}80%{transform:rotate(-5deg) scale(1.08)}}
@keyframes cccDragonCelebrate{0%,100%{transform:scale(1)}35%{transform:translateY(-20px) scale(1.22) rotate(-7deg)}65%{transform:scale(1.28) rotate(8deg)}}
@keyframes cccKoalaCelebrate{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-11deg) scale(1.05)}40%,80%{transform:rotate(11deg) scale(1.08)}}
@keyframes cccBunnyCelebrate{0%,100%{transform:translateY(0) rotate(0)}20%,60%{transform:translateY(-22px) rotate(-8deg)}40%,80%{transform:translateY(0) rotate(12deg)}}
@keyframes cccPandaCelebrate{0%,100%{transform:rotate(0) scale(1)}25%,75%{transform:rotate(-16deg) scale(1.07)}50%{transform:rotate(15deg) scale(1.13)}}
@keyframes cccBearCelebrate{0%,100%{transform:scale(1)}35%{transform:translateY(-10px) scale(1.28)}60%{transform:scale(1.2) rotate(-7deg)}}
@keyframes cccCapybaraCelebrate{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-4px) rotate(-6deg)}50%{transform:translateY(-7px) rotate(7deg)}75%{transform:translateY(-3px) rotate(-4deg)}}
@keyframes cccCatCelebrate{0%,100%{transform:rotate(0)}30%{transform:rotate(-20deg) translateY(-7px)}65%{transform:rotate(20deg) translateY(-5px)}}
@keyframes cccPuppyCelebrate{0%,100%{transform:rotate(0) translateY(0)}20%,60%{transform:rotate(-13deg) translateY(-13px)}40%,80%{transform:rotate(13deg) translateY(-3px)}}
#cccReaction .cccReactionAnimal{display:inline-block;margin-right:7px;transform-origin:bottom center}
#cccReaction.cccVisible .cccReactionAnimal{animation:cccCoinCheer .85s ease-in-out both}
#cccReaction.cccLoss .cccReactionAnimal{animation:cccCoinSad .75s ease-out both}
@keyframes cccCoinCheer{30%{transform:translateY(-9px) rotate(-12deg) scale(1.18)}65%{transform:rotate(12deg) scale(1.1)}}
@keyframes cccCoinSad{40%{transform:translateY(5px) rotate(8deg) scale(.92)}}
#cccMinigameCelebration{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:22;background:linear-gradient(125deg,#25396d,#422d73);border:2px solid #ffdf8b;border-radius:19px;box-shadow:0 12px 30px #091327bb;padding:12px 25px;color:white;font:900 clamp(14px,2vw,22px) system-ui;text-align:center;white-space:nowrap;max-width:90%;pointer-events:none}
#cccMinigameCelebration[hidden]{display:none!important}
#cccMinigameCelebration .cccMiniAnimal{display:block;font-size:clamp(36px,5vw,62px);animation:cccMiniCheer 1.65s ease-in-out both}
@keyframes cccMiniCheer{0%,100%{transform:scale(1)}30%{transform:translateY(-13px) rotate(-12deg) scale(1.2)}65%{transform:rotate(12deg) scale(1.14)}}
@media(prefers-reduced-motion:reduce){
.partyWinner .victoryAvatar.cccCelebrate,#cccReaction .cccReactionAnimal,#cccMinigameCelebration .cccMiniAnimal{animation:none!important}
}
