/* ==================== TICKET DISPLAY ==================== */
.ticket-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--p5-black) 0%, #1a0000 100%);
    border: 2px solid var(--p5-red);
    padding: 8px 20px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    margin-right: 20px;
    /* Mobile optimization */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
}

/* Mobile ticket display */
@media (max-width: 768px) {
    .ticket-display {
        padding: 5px 12px;
        gap: 8px;
        margin-right: 10px;
    }
    
    .ticket-icon {
        font-size: 1.2rem;
        /* Simplify animation on mobile */
        animation: none;
    }
    
    .ticket-label {
        font-size: 0.6rem;
    }
    
    .ticket-count {
        font-size: 1rem;
    }
}

.ticket-icon {
    font-size: 1.8rem;
    animation: ticketFloat 2s ease-in-out infinite;
}

@keyframes ticketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Disable heavy animations on mobile */
@media (max-width: 768px) {
    @keyframes ticketFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-2px); }
    }
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-label {
    font-size: 0.7rem;
    color: var(--p5-light-gray);
    letter-spacing: 1px;
    font-weight: 700;
}

.ticket-count {
    font-size: 1.3rem;
    color: var(--p5-white);
    font-weight: 900;
    text-shadow: 2px 2px 0 var(--p5-red);
}

/* ==================== DAILY LOGIN BONUS ==================== */
.daily-login-bonus {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a0a0a 100%);
    border: 3px solid var(--p5-red);
    padding: 30px;
    margin: 30px auto;
    max-width: 900px;
    clip-path: polygon(
        0 0, calc(100% - 15px) 0, 100% 15px,
        100% 100%, 15px 100%, 0 calc(100% - 15px)
    );
}

.bonus-header {
    text-align: center;
    margin-bottom: 30px;
}

.bonus-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--p5-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 0 var(--p5-red);
}

.bonus-subtitle {
    font-size: 1rem;
    color: var(--p5-light-gray);
    letter-spacing: 2px;
    margin: 0;
}

.login-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.day-item {
    position: relative;
    background: var(--p5-black);
    border: 2px solid var(--p5-gray);
    padding: 20px 10px;
    text-align: center;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-item:hover {
    border-color: var(--p5-red);
    transform: translateY(-5px);
}

.day-item.claimed {
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
    border-color: var(--p5-red);
    opacity: 0.6;
}

.day-item.claimed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--p5-red);
    font-size: 1.5rem;
    font-weight: 900;
}

.day-item.active {
    border-color: var(--p5-red);
    background: linear-gradient(135deg, var(--p5-dark-red) 0%, var(--p5-black) 100%);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 0, 18, 0.5); }
    50% { box-shadow: 0 0 30px rgba(230, 0, 18, 0.8); }
}

/* Mobile optimization - reduce animation intensity */
@media (max-width: 768px) {
    @keyframes activePulse {
        0%, 100% { box-shadow: 0 0 10px rgba(230, 0, 18, 0.4); }
        50% { box-shadow: 0 0 15px rgba(230, 0, 18, 0.6); }
    }
    
    .day-item {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .day-item.active {
        animation-duration: 3s; /* Slower = less CPU */
    }
}

.day-item.special {
    border-color: var(--legendary-color);
    background: linear-gradient(135deg, #1a1000 0%, var(--p5-black) 100%);
}

.day-label {
    font-size: 0.8rem;
    color: var(--p5-light-gray);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.day-reward {
    font-size: 1.5rem;
    color: var(--p5-white);
    font-weight: 900;
}

.special-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--legendary-color);
    color: var(--p5-black);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}

.claim-btn {
    display: block;
    margin: 0 auto;
    min-width: 250px;
}

.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile responsive untuk daily login */
@media (max-width: 768px) {
    .daily-login-bonus {
        padding: 20px 15px;
    }
    
    .login-days {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .day-item {
        padding: 15px 5px;
    }
    
    .day-reward {
        font-size: 1.2rem;
    }
}

/* ==================== GACHA ANIMATION OVERLAY ==================== */
.gacha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.gacha-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gacha-animation-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

/* ==================== P5 SLOT MACHINE ==================== */
.p5-slot-machine {
    background: linear-gradient(135deg, var(--p5-black) 0%, #1a0000 100%);
    border: 4px solid var(--p5-red);
    padding: 40px;
    clip-path: polygon(
        0 0, calc(100% - 20px) 0, 100% 20px,
        100% 100%, 20px 100%, 0 calc(100% - 20px)
    );
    box-shadow: 0 0 50px rgba(230, 0, 18, 0.6);
}

.slot-header {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--p5-white);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0 var(--p5-red);
    animation: headerPulse 1.5s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slot-screen {
    background: var(--p5-black);
    border: 3px solid var(--p5-red);
    padding: 40px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.slot-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(230, 0, 18, 0.1) 2px,
        rgba(230, 0, 18, 0.1) 4px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.slot-reels {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.reel {
    flex: 1;
    height: 150px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--p5-gray);
    background: var(--bg-dark);
}

.reel.spinning {
    animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.reel-symbol {
    font-size: 4rem;
    text-align: center;
    line-height: 150px;
    height: 150px;
}

.slot-footer {
    text-align: center;
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--p5-red);
    letter-spacing: 4px;
    animation: loadingBlink 1s ease-in-out infinite;
}

@keyframes loadingBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== RESULT POPUP ==================== */
.result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.result-popup.active {
    display: flex;
    animation: popupFadeIn 0.5s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a0a0a 100%);
    border: 4px solid var(--p5-red);
    padding: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    clip-path: polygon(
        0 0, calc(100% - 20px) 0, 100% 20px,
        100% 100%, 20px 100%, 0 calc(100% - 20px)
    );
    box-shadow: 0 0 60px rgba(230, 0, 18, 0.8);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--p5-red);
    color: var(--p5-white);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--p5-white);
    color: var(--p5-red);
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.popup-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--p5-white);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    text-shadow: 4px 4px 0 var(--p5-red);
    animation: titleShake 0.5s ease-out;
}

@keyframes titleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    position: relative;
    background: var(--p5-black);
    border: 3px solid var(--p5-gray);
    padding: 20px;
    text-align: center;
    clip-path: polygon(
        0 0, calc(100% - 10px) 0, 100% 10px,
        100% 100%, 10px 100%, 0 calc(100% - 10px)
    );
    animation: cardSlideIn 0.5s ease-out backwards;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-10px);
    border-color: var(--p5-red);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }
.result-card:nth-child(7) { animation-delay: 0.7s; }
.result-card:nth-child(8) { animation-delay: 0.8s; }
.result-card:nth-child(9) { animation-delay: 0.9s; }
.result-card:nth-child(10) { animation-delay: 1.0s; }

.card-rarity {
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 15px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 100%, 0 100%);
}

.card-rarity.mythic {
    background: var(--mythic-color);
    color: var(--p5-white);
}

.card-rarity.legendary {
    background: var(--legendary-color);
    color: var(--p5-black);
}

.card-rarity.epic {
    background: var(--epic-color);
    color: var(--p5-white);
}

.card-rarity.rare {
    background: var(--rare-color);
    color: var(--p5-white);
}

.card-rarity.common {
    background: var(--common-color);
    color: var(--p5-white);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--p5-red);
    clip-path: polygon(
        0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px)
    );
}

.card-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--p5-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.card-description {
    font-size: 0.9rem;
    color: var(--p5-light-gray);
    margin-top: 10px;
}

#continueBtn {
    display: block;
    margin: 0 auto;
    min-width: 250px;
}

/* Mobile responsive untuk popup */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .slot-reels {
        gap: 10px;
    }
    
    .reel-symbol {
        font-size: 3rem;
    }
}

/* ==================== HISTORY FILTERS & PAGINATION ==================== */
.history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a0a0a 100%);
    border: 2px solid var(--p5-red);
    clip-path: polygon(
        0 0, calc(100% - 10px) 0, 100% 10px,
        100% 100%, 10px 100%, 0 calc(100% - 10px)
    );
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--p5-white);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.p5-select,
.p5-input {
    padding: 12px 15px;
    background: var(--p5-black);
    border: 2px solid var(--p5-gray);
    color: var(--p5-white);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: all 0.3s ease;
}

.p5-select:focus,
.p5-input:focus {
    outline: none;
    border-color: var(--p5-red);
    box-shadow: 0 0 15px rgba(230, 0, 18, 0.5);
}

.p5-select option {
    background: var(--p5-black);
    color: var(--p5-white);
    padding: 10px;
}

.p5-btn-small {
    padding: 12px 25px;
    font-size: 0.85rem;
    min-width: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.page-info {
    font-size: 1.2rem;
    color: var(--p5-white);
    font-weight: 700;
    letter-spacing: 2px;
}

.page-info span {
    color: var(--p5-red);
}

.p5-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navigation special styling for Gacha button */
.nav-btn-gacha {
    background: linear-gradient(135deg, var(--p5-red) 0%, var(--p5-dark-red) 100%);
    border: 2px solid var(--p5-red);
    position: relative;
    overflow: hidden;
}

.nav-btn-gacha::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: navShine 3s ease-in-out infinite;
}

@keyframes navShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Mobile responsive untuk filters */
@media (max-width: 768px) {
    .history-filters {
        flex-direction: column;
        padding: 15px;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .p5-btn-small {
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile performance optimization */
    #historyList {
        /* Enable momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        max-height: calc(100vh - 400px);
    }
    
    /* Reduce animation complexity on mobile */
    .history-card {
        animation-duration: 0.2s;
    }
    
    /* Simplify hover effects on mobile (touch devices) */
    @media (hover: none) {
        .history-card:hover {
            transform: none;
        }
        
        .p5-btn:hover {
            transform: none;
        }
    }
    
    /* GPU acceleration for smoother scrolling */
    .history-card,
    .p5-select,
    .p5-input {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: auto;
    }
}

/* ==================== HISTORY CARDS ==================== */

/* Date Header Grouping */
.history-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--p5-red) 0%, var(--p5-dark-red) 100%);
    padding: 12px 20px;
    margin: 20px 0 15px 0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    border-left: 4px solid var(--p5-white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.date-label {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--p5-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.date-count {
    font-size: 0.9rem;
    color: var(--p5-light-gray);
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* Mobile date header */
@media (max-width: 768px) {
    .history-date-header {
        padding: 10px 15px;
        margin: 15px 0 10px 0;
    }
    
    .date-label {
        font-size: 0.9rem;
    }
    
    .date-count {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

.history-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a0a0a 100%);
    border: 2px solid var(--p5-gray);
    border-left: 4px solid var(--p5-red);
    padding: 20px;
    margin-bottom: 15px;
    clip-path: polygon(
        0 0, calc(100% - 10px) 0, 100% 10px,
        100% 100%, 10px 100%, 0 calc(100% - 10px)
    );
    animation: cardFadeIn 0.5s ease-out backwards;
    transition: all 0.3s ease;
}

.history-card:hover {
    border-color: var(--p5-red);
    transform: translateX(10px);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--p5-gray);
}

.history-time {
    font-size: 0.85rem;
    color: var(--p5-light-gray);
    font-weight: 700;
    letter-spacing: 1px;
}

.history-rarity {
    display: inline-block;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 100%, 0 100%);
}

/* Rarity-specific colors */
.history-rarity.rarity-mythic { background: var(--mythic-color); color: var(--p5-white); }
.history-rarity.rarity-legendary { background: var(--legendary-color); color: var(--p5-black); }
.history-rarity.rarity-epic { background: var(--epic-color); color: var(--p5-white); }
.history-rarity.rarity-rare { background: var(--rare-color); color: var(--p5-white); }
.history-rarity.rarity-uncommon { background: #2ecc71; color: var(--p5-white); }
.history-rarity.rarity-common { background: var(--common-color); color: var(--p5-white); }
.history-rarity.rarity-secret { background: #ff00ff; color: var(--p5-white); }
.history-rarity.rarity-lore { background: #000000; color: var(--legendary-color); border: 2px solid var(--legendary-color); }

.history-card-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.history-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--p5-red);
    clip-path: polygon(
        0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px)
    );
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.history-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--p5-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.history-description {
    font-size: 0.9rem;
    color: var(--p5-light-gray);
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.history-value {
    font-size: 0.85rem;
    color: var(--legendary-color);
    font-weight: 700;
    margin: 0;
}

/* Mobile responsive for history cards */
@media (max-width: 768px) {
    .history-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .history-card-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .history-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .history-name {
        font-size: 1rem;
        text-align: center;
    }
    
    .history-description {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .history-time {
        font-size: 0.75rem;
    }
    
    .history-rarity {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* Loading, Empty, Error States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--p5-light-gray);
    font-size: 1.2rem;
}

.empty-state .hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--p5-gray);
}

.error-state {
    color: var(--p5-red);
}

/* Mobile responsive untuk history cards */
@media (max-width: 768px) {
    .history-card {
        padding: 15px;
    }
    
    .history-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .history-image {
        width: 80px;
        height: 80px;
    }
    
    .history-name {
        font-size: 1rem;
    }
}
