/* REVAMED MANSION — CHARACTER MODEL V2 */

.player-model-v2 {
    transform-origin: 50% 100%;
    animation: player-v2-idle 3.8s ease-in-out infinite;
}

.player-model-v2 .player-head,
.player-model-v2 .player-body {
    overflow: visible;
}

.player-model-v2 .player-head {
    z-index: 4;
    box-shadow:
        inset -4px -3px 6px rgba(63,31,28,.24),
        0 1px 0 rgba(255,235,215,.12);
}

.player-model-v2 .player-head::before {
    inset: -6px -3px 45% -3px;
    border-radius: 72% 68% 30% 28%;
    background:
        radial-gradient(circle at 33% 35%, rgba(118,84,63,.45), transparent 22%),
        linear-gradient(145deg, #3a2b25 0 30%, #19191d 58%, #090b0e 100%);
    box-shadow: inset 3px 0 0 rgba(176,126,82,.14);
}

.player-v2-hair-highlight {
    position: absolute;
    z-index: 8;
    left: 18%;
    top: -10%;
    width: 42%;
    height: 16%;
    border-radius: 70% 30% 60% 20%;
    border-top: 2px solid rgba(189,143,102,.32);
    transform: rotate(-12deg);
}

.player-v2-ear {
    position: absolute;
    z-index: 1;
    top: 42%;
    width: 16%;
    height: 22%;
    border-radius: 50%;
    background: #b77f68;
    border: 1px solid rgba(65,34,31,.62);
}

.player-v2-ear-left { left: -9%; }
.player-v2-ear-right { right: -9%; }

.player-v2-eye {
    position: absolute;
    z-index: 8;
    top: 43%;
    width: 11%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #191519;
    box-shadow: 0 0 0 1px rgba(244,224,194,.45);
}

.player-v2-eye-left { left: 28%; }
.player-v2-eye-right { right: 28%; }

.player-v2-brow {
    position: absolute;
    z-index: 9;
    top: 32%;
    width: 21%;
    height: 4%;
    border-radius: 999px;
    background: #2a211f;
}

.player-v2-brow-left { left: 19%; transform: rotate(-7deg); }
.player-v2-brow-right { right: 19%; transform: rotate(7deg); }

.player-v2-nose {
    position: absolute;
    z-index: 8;
    left: 48%;
    top: 49%;
    width: 12%;
    height: 19%;
    border-right: 1px solid rgba(86,48,43,.72);
    border-bottom: 1px solid rgba(86,48,43,.48);
    border-radius: 0 0 60% 0;
    transform: skewX(-8deg);
}

.player-v2-mouth {
    position: absolute;
    z-index: 8;
    left: 35%;
    top: 72%;
    width: 31%;
    height: 8%;
    border-bottom: 1px solid #6c3e3b;
    border-radius: 50%;
}

.player-model-v2 .player-body {
    z-index: 3;
    border-radius: 4px 4px 3px 3px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045), transparent 22% 76%, rgba(0,0,0,.16)),
        linear-gradient(180deg, #315f61 0%, #23484d 54%, #17343b 100%) !important;
}

.player-model-v2 .player-body::before,
.player-model-v2 .player-body::after {
    display: none !important;
}

.player-v2-collar {
    position: absolute;
    z-index: 7;
    top: -3%;
    width: 38%;
    height: 31%;
    background: #d9d1c2;
    border: 1px solid rgba(63,58,53,.42);
}

.player-v2-collar-left {
    left: 11%;
    clip-path: polygon(0 0, 100% 0, 68% 100%, 14% 54%);
}

.player-v2-collar-right {
    right: 11%;
    clip-path: polygon(0 0, 100% 0, 86% 54%, 32% 100%);
}

.player-v2-scarf {
    position: absolute;
    z-index: 8;
    left: 43%;
    top: 4%;
    width: 15%;
    height: 34%;
    border-radius: 1px 1px 6px 6px;
    background: linear-gradient(#8d3f42, #4d242c);
    transform: rotate(3deg);
}

.player-v2-lapel {
    position: absolute;
    z-index: 6;
    left: 18%;
    top: 22%;
    width: 64%;
    height: 37%;
    border-left: 2px solid rgba(180,202,193,.28);
    border-right: 2px solid rgba(8,20,22,.42);
    clip-path: polygon(0 0, 42% 31%, 50% 100%, 59% 31%, 100% 0, 79% 88%, 21% 88%);
}

.player-v2-belt {
    position: absolute;
    z-index: 8;
    left: 3%;
    right: 3%;
    top: 68%;
    height: 10%;
    border-top: 1px solid #a87b42;
    border-bottom: 1px solid #281c16;
    background: #68462b;
}

.player-v2-belt::after {
    content: "";
    position: absolute;
    left: 43%;
    top: -2px;
    width: 18%;
    height: calc(100% + 4px);
    border: 1px solid #c49a55;
    background: #4f3828;
}

.player-v2-satchel-strap {
    position: absolute;
    z-index: 5;
    left: 18%;
    top: 4%;
    width: 8%;
    height: 82%;
    border-radius: 999px;
    background: #6e4b2c;
    transform: rotate(-24deg);
    transform-origin: top center;
}

.player-v2-arm {
    position: absolute;
    z-index: 1;
    top: 18%;
    width: 31%;
    height: 58%;
    border-radius: 999px;
    background: linear-gradient(#285053, #17353a);
    border: 1px solid rgba(6,17,19,.65);
    transform-origin: 50% 10%;
}

.player-v2-arm-left { left: -22%; transform: rotate(8deg); }
.player-v2-arm-right { right: -22%; transform: rotate(-8deg); }

.player-v2-arm i {
    position: absolute;
    left: 24%;
    bottom: -13%;
    width: 52%;
    aspect-ratio: .78;
    border-radius: 50% 50% 44% 44%;
    background: #b97e67;
    border: 1px solid rgba(69,35,32,.6);
}

.player-v2-leg {
    position: absolute;
    z-index: -1;
    top: 83%;
    width: 33%;
    height: 71%;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(#23272e, #15181e);
    transform-origin: 50% 0;
}

.player-v2-leg-left { left: 10%; }
.player-v2-leg-right { right: 10%; }

.player-v2-leg i {
    position: absolute;
    bottom: -10%;
    width: 126%;
    height: 25%;
    border-radius: 55% 22% 25% 25%;
    background: #111215;
    border-bottom: 2px solid #704e31;
}

.player-v2-leg-left i { left: -27%; }
.player-v2-leg-right i { right: -27%; transform: scaleX(-1); }

.player-model-v2-moving {
    animation: none;
}

.player-model-v2-moving .player-v2-arm-left { animation: player-v2-arm-left .27s ease-in-out infinite alternate; }
.player-model-v2-moving .player-v2-arm-right { animation: player-v2-arm-right .27s ease-in-out infinite alternate; }
.player-model-v2-moving .player-v2-leg-left { animation: player-v2-leg-left .27s ease-in-out infinite alternate; }
.player-model-v2-moving .player-v2-leg-right { animation: player-v2-leg-right .27s ease-in-out infinite alternate; }
.player-model-v2-moving .player-head { animation: player-v2-step-bob .27s ease-in-out infinite alternate; }

@keyframes player-v2-idle {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -1px; }
}

@keyframes player-v2-step-bob { from { translate: 0 0; } to { translate: 0 -2px; } }
@keyframes player-v2-arm-left { from { transform: rotate(19deg); } to { transform: rotate(-14deg); } }
@keyframes player-v2-arm-right { from { transform: rotate(-19deg); } to { transform: rotate(14deg); } }
@keyframes player-v2-leg-left { from { transform: rotate(-8deg); } to { transform: rotate(9deg); } }
@keyframes player-v2-leg-right { from { transform: rotate(8deg); } to { transform: rotate(-9deg); } }

/* Velvet Graves V2 detail pass */
#duck-incident-root .velvet-model-v2 {
    filter: drop-shadow(0 12px 9px rgba(0,0,0,.48));
}

#duck-incident-root .velvet-model-v2 .velvet-hair {
    fill: url(#velvetHairGradient);
}

#duck-incident-root .velvet-v2-hair-light {
    fill: none;
    stroke: rgba(184,93,197,.42);
    stroke-width: 8;
    stroke-linecap: round;
}

#duck-incident-root .velvet-v2-eyelid,
#duck-incident-root .velvet-v2-nose,
#duck-incident-root .velvet-v2-cheek {
    fill: none;
    stroke: rgba(74,15,49,.75);
    stroke-width: 3;
    stroke-linecap: round;
}

#duck-incident-root .velvet-v2-collar {
    fill: #c98abe;
    stroke: #5b234d;
    stroke-width: 3;
}

#duck-incident-root .velvet-v2-brooch {
    fill: #efcf69;
    stroke: #6f4c19;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(242,207,105,.5));
}

#duck-incident-root .velvet-v2-dress-panel {
    fill: none;
    stroke: rgba(229,148,207,.45);
    stroke-width: 4;
    stroke-linecap: round;
}

#duck-incident-root .velvet-v2-shoe {
    fill: #281326;
    stroke: #0e0810;
    stroke-width: 3;
}

#duck-incident-root[data-phase="duck"] .velvet-eyes circle {
    transform: translate(-4px, 5px);
}

#duck-incident-root[data-phase="slip"] .velvet-eyes circle,
#duck-incident-root[data-phase="tumble"] .velvet-eyes circle {
    transform: translate(0, -4px) scale(1.22);
}

#duck-incident-root[data-phase="crash"] .velvet-v2-details,
#duck-incident-root[data-phase="duck-roll"] .velvet-v2-details {
    filter: saturate(.8) brightness(.9);
}

#duck-incident-root .duck-prop-v2 {
    width: clamp(36px, 6vw, 64px);
    font-size: 0;
}

#duck-incident-root .duck-prop-v2 svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

#duck-incident-root .duck-v2-shadow { fill: rgba(0,0,0,.35); }
#duck-incident-root .duck-v2-body,
#duck-incident-root .duck-v2-head {
    fill: #efd649;
    stroke: #8d681d;
    stroke-width: 4;
}
#duck-incident-root .duck-v2-beak { fill: #e77a27; stroke: #8f421d; stroke-width: 3; }
#duck-incident-root .duck-v2-eye { fill: #171017; }
#duck-incident-root .duck-v2-wing { fill: #d6b930; stroke: #9a781f; stroke-width: 2.5; }
#duck-incident-root .duck-v2-highlight {
    fill: none;
    stroke: rgba(255,250,166,.72);
    stroke-width: 4;
    stroke-linecap: round;
}

#duck-incident-root[data-phase="duck"] .duck-prop-v2 svg {
    animation: duck-v2-squash .29s ease-out 1;
}

@keyframes duck-v2-squash {
    0% { transform: scale(1); }
    46% { transform: scale(1.18,.72) rotate(-6deg); }
    100% { transform: scale(1); }
}

@media (max-width: 720px), (pointer: coarse) {
    .player-model-v2 { filter: drop-shadow(0 6px 5px rgba(0,0,0,.52)); }
    .player-v2-eye { width: 13%; }
    #duck-incident-root .duck-prop-v2 { width: clamp(34px, 10vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
    .player-model-v2,
    .player-model-v2 *,
    #duck-incident-root .velvet-model-v2 *,
    #duck-incident-root .duck-prop-v2 * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}