/* Winner Page Specific Styles */

/* Winner Panel - Main content area matching history panel positioning */
.winner-panel {
    position: absolute;
    top: 20px;
    left: 116px;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: stretch;
    font-family: 'Kanit', sans-serif;
    padding: 16px;
    box-sizing: border-box;
}

/* Ranking Card */
.ranking-card {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Daily Card - Golden border outside, red border inside */
.ranking-card.daily {
    background: transparent;
    border: 3px solid #c9a861;
    box-shadow: inset 0 0 0 3px #8b0000;
}

/* Monthly Card - Golden border outside, red border inside */
.ranking-card.monthly {
    background: transparent;
    border: 3px solid #c9a861;
    box-shadow: inset 0 0 0 3px #8b0000;
}

/* Card Triangles */
.card-triangles {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}

.triangle {
    font-size: 12px;
    line-height: 1;
}

.triangle.white {
    color: #fff;
}

.triangle.blue {
    color: #4fc3f7;
}

/* Card Image - positioned inside the double border */
.card-image {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

.card-image img {
    width: 80%;
    height: 100%;
    object-fit: cover;
}

/* Dice Images */
.dice {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

/* Daily Card - Dice 1 (left side, upper) */
.ranking-card.daily .dice-1 {
    top: 20%;
    left: 2%;
    width: 30%;
    height: auto;
    transform: rotate(-20deg);
}

/* Daily Card - Dice 2 (right of person, lower) */
.ranking-card.daily .dice-2 {
    top: 50%;
    left: 70%;
    width: 12%;
    height: auto;
    transform: rotate(12deg);
}

/* Monthly Card - Dice (right side near head) */
.ranking-card.monthly .dice-monthly {
    top: 20%;
    right: 10%;
    width: 12%;
    height: auto;
    transform: rotate(12deg);
}

/* Card Title - Base styles */
.card-title {
    position: absolute;
    bottom: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Daily Title - positioned bottom-left with skew */
.daily-title {
    left: 50%;
    transform: rotate(-19deg);
}

.daily-title .title-line-1,
.daily-title .title-line-2 {
    font-size: 32px;
    font-weight: 900;
    font-style: Kanit;
    line-height: 0.85;
    transform: skewX(-15deg);
    display: block;
    /* Gradient text effect - #FFE8DB to #FFCD8D */
    background: linear-gradient(180deg, #FFE8DB 0%, #FFCD8D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 2px #000;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.8));
}

/* Monthly Title - positioned bottom-right with skew */
.monthly-title {
    right: 10%;
    left: auto;
    text-align: right;
    transform: rotate(-12deg);
}

.monthly-title .title-line-1,
.monthly-title .title-line-2 {
    font-size: 32px;
    font-weight: 900;
    font-style: Kanit;
    line-height: 0.85;
    transform: skewX(-10deg);
    display: block;
    /* Gradient text effect - #FFE8DB to #FFCD8D */
    background: linear-gradient(180deg, #FFE8DB 0%, #FFCD8D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 2px #000;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.8));
}

/* Corner Rectangle - positioned at bottom-right corner */
.corner-rectangle {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    border-bottom-right-radius: 12px;
}
