/* ====================================
   운명의 주사위 - 전용 스타일시트
==================================== */

/* How to Play Section */
.how-to-play-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.how-to-toggle {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border: none;
    border-bottom: 2px solid #DEB564;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4A1F;
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
}

.how-to-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.how-to-content {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.how-to-content.hidden {
    display: none;
}

.how-to-content h3 {
    color: #5C4A1F;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #DEB564;
    transition: transform 0.2s;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #5C4A1F;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.how-to-tips {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #27AE60;
}

.how-to-tips h4 {
    color: #16A085;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.how-to-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-tips li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #2C3E50;
    line-height: 1.7;
}

.how-to-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Game Section */
.game-section {
    text-align: center;
    padding: 30px 0;
}

/* Dice Container */
.dice-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.dice-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Dice 3D */
.dice {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.dice.rolling {
    animation: roll-dice 0.6s ease-in-out;
}

@keyframes roll-dice {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.dice-face {
    width: 100%;
    height: 100%;
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dice Dots */
.dice-face {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    padding: 8px;
    place-items: center;
}

.dice-face .dot {
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    justify-self: center;
    align-self: center;
}

/* Dice Face 1 */
.dice[data-dice="1"] .dice-face .dot:nth-child(5) {
    opacity: 1;
    grid-column: 2;
    grid-row: 2;
}

/* Dice Face 2 */
.dice[data-dice="2"] .dice-face .dot:nth-child(1),
.dice[data-dice="2"] .dice-face .dot:nth-child(9) {
    opacity: 1;
}
.dice[data-dice="2"] .dice-face .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}
.dice[data-dice="2"] .dice-face .dot:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
}

/* Dice Face 3 */
.dice[data-dice="3"] .dice-face .dot:nth-child(1),
.dice[data-dice="3"] .dice-face .dot:nth-child(5),
.dice[data-dice="3"] .dice-face .dot:nth-child(9) {
    opacity: 1;
}
.dice[data-dice="3"] .dice-face .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}
.dice[data-dice="3"] .dice-face .dot:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}
.dice[data-dice="3"] .dice-face .dot:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
}

/* Dice Face 4 */
.dice[data-dice="4"] .dice-face .dot:nth-child(1),
.dice[data-dice="4"] .dice-face .dot:nth-child(3),
.dice[data-dice="4"] .dice-face .dot:nth-child(7),
.dice[data-dice="4"] .dice-face .dot:nth-child(9) {
    opacity: 1;
}
.dice[data-dice="4"] .dice-face .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}
.dice[data-dice="4"] .dice-face .dot:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}
.dice[data-dice="4"] .dice-face .dot:nth-child(7) {
    grid-column: 1;
    grid-row: 3;
}
.dice[data-dice="4"] .dice-face .dot:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
}

/* Dice Face 5 */
.dice[data-dice="5"] .dice-face .dot:nth-child(1),
.dice[data-dice="5"] .dice-face .dot:nth-child(3),
.dice[data-dice="5"] .dice-face .dot:nth-child(5),
.dice[data-dice="5"] .dice-face .dot:nth-child(7),
.dice[data-dice="5"] .dice-face .dot:nth-child(9) {
    opacity: 1;
}
.dice[data-dice="5"] .dice-face .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}
.dice[data-dice="5"] .dice-face .dot:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}
.dice[data-dice="5"] .dice-face .dot:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}
.dice[data-dice="5"] .dice-face .dot:nth-child(7) {
    grid-column: 1;
    grid-row: 3;
}
.dice[data-dice="5"] .dice-face .dot:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
}

/* Dice Face 6 */
.dice[data-dice="6"] .dice-face .dot:nth-child(1),
.dice[data-dice="6"] .dice-face .dot:nth-child(3),
.dice[data-dice="6"] .dice-face .dot:nth-child(4),
.dice[data-dice="6"] .dice-face .dot:nth-child(6),
.dice[data-dice="6"] .dice-face .dot:nth-child(7),
.dice[data-dice="6"] .dice-face .dot:nth-child(9) {
    opacity: 1;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(7) {
    grid-column: 1;
    grid-row: 3;
}
.dice[data-dice="6"] .dice-face .dot:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
}

/* Sum Display */
.sum-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sum-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.sum-value {
    font-size: 3rem;
    font-weight: 900;
    color: #8B6914;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Roll Button */
.roll-btn {
    padding: 20px 50px;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
    margin-bottom: 30px;
}

.roll-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 105, 20, 0.5);
}

.roll-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.roll-btn .btn-icon {
    font-size: 1.5rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.roll-btn:disabled .btn-icon {
    animation: none;
}

/* Special Alert */
.special-alert {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    animation: special-glow 2s ease-in-out infinite;
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

@keyframes special-glow {
    0%, 100% {
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.7);
        transform: scale(1.02);
    }
}

.alert-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.alert-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.alert-text {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Result Section */
.result-section {
    animation: fadeInUp 0.6s ease;
}

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

/* Combination Display */
.combination-display {
    text-align: center;
    margin-bottom: 30px;
}

.result-title {
    color: #5C4A1F;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.combination-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 40px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 20px;
    border: 3px solid #DEB564;
    box-shadow: 0 10px 30px rgba(222, 181, 100, 0.3);
}

.combo-numbers {
    font-size: 2.5rem;
    font-weight: 900;
    color: #8B6914;
    letter-spacing: 5px;
}

.combo-type {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.combination-badge.special .combo-numbers {
    color: #FF6B00;
    animation: pulse-text 1s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Fortune Card */
.fortune-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.fortune-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

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

.fortune-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #5C4A1F;
}

.fortune-message {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.fortune-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.detail-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.detail-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.detail-value {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1.1rem;
}

/* Time Fortune Section */
.time-fortune-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
    text-align: center;
    color: #5C4A1F;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.time-item {
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
}

.time-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.time-label {
    display: block;
    font-weight: 600;
    color: #5C4A1F;
    margin-bottom: 12px;
}

.time-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.time-fill {
    height: 100%;
    background: linear-gradient(90deg, #F39C12, #E74C3C);
    border-radius: 5px;
    transition: width 1s ease;
}

.time-tip {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Lucky Elements Section */
.lucky-elements-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.element-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 15px;
}

.elem-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.elem-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.elem-value {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1rem;
}

/* Category Details Section */
.category-details-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #DEB564;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1.1rem;
}

.category-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.category-detail {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Combination Meaning Section */
.combination-meaning-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.meaning-card {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #DEB564;
}

.meaning-text {
    color: #5C4A1F;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* Compatibility Section */
.compatibility-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.compat-item {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.compat-item.good {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    border-left: 4px solid #27AE60;
}

.compat-item.caution {
    background: linear-gradient(135deg, #FEF5E7, #FDEBD0);
    border-left: 4px solid #F39C12;
}

.compat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.compat-label {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.compat-numbers {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #8B6914;
    margin-bottom: 10px;
}

.compat-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #DEB564;
}

.quote-card {
    text-align: center;
    padding: 20px;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5C4A1F;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-author {
    font-size: 1rem;
    color: #8B6914;
    font-weight: 600;
    margin: 0;
}

/* Activities Section */
.activities-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #DEB564;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.activity-text {
    color: #5C4A1F;
    font-size: 1rem;
    font-weight: 500;
}

/* Action Points Section */
.action-points-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.action-points-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-point-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 12px;
    border-left: 4px solid #DEB564;
}

.point-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.point-text {
    color: #5C4A1F;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Advice Section */
.advice-section {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #DEB564;
}

.advice-text {
    color: #5C4A1F;
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.retry-btn,
.share-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.retry-btn {
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
}

.share-btn {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

.retry-btn:hover,
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* History Section */
.history-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.history-title {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.history-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.history-item {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    padding: 15px 10px;
    background: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.history-item:hover {
    transform: scale(1.05);
}

.history-numbers {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5C4A1F;
    margin-bottom: 5px;
}

.history-sum {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.history-time {
    font-size: 0.75rem;
    color: #aaa;
}

.history-item.special {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.history-item.special .history-numbers,
.history-item.special .history-sum {
    color: white;
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: fall 3s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dice {
        width: 80px;
        height: 80px;
    }
    
    .dice-wrapper {
        gap: 20px;
    }
    
    .sum-value {
        font-size: 2.5rem;
    }
    
    .roll-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .combo-numbers {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .fortune-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-btn,
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .how-to-content {
        padding: 20px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dice {
        width: 70px;
        height: 70px;
    }
    
    .dice-wrapper {
        gap: 15px;
    }
    
    .combo-numbers {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .elements-grid {
        grid-template-columns: 1fr;
    }
}

