body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
    margin: 0
}

code {
    font-family: source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace
}

:root {
    --header-background: linear-gradient(135deg,#2b0a50e6,#4c1d95e6);
    --profile-background: linear-gradient(135deg,#ffffff1a,#ffffff0d);
    --profile-text-color: #fff;
    --profile-icon-color: #fc0;
    --shake-rights-background: linear-gradient(135deg,#fc03,#ffa50033);
    --shake-rights-text-color: #fff;
    --shake-rights-icon-color: #fc0;
    --rights-button-background: linear-gradient(135deg,#fc0,orange);
    --rights-button-text-color: #2b0a50;
    --rights-button-icon-color: #2b0a50;
    --history-button-background: linear-gradient(135deg,#ffffff26,#ffffff0d);
    --history-button-text-color: #fff;
    --history-button-icon-color: #fff;
    --title-color: #fff;
    --title-span-color: #fc0;
    --title-shadow: 0 4px 8px #0000004d;
    --instruction-bg: linear-gradient(135deg,#ffcc004d,#ffa5004d);
    --instruction-text-color: #fff;
    --instruction-border-color: #fc03;
    --button-gradient: linear-gradient(45deg,#fc0,orange);
    --button-text-color: #2b0a50;
    --button-border-radius: 30px;
    --button-shadow: 0 8px 15px #0003;
    --gift-box-gradient1: #ffe500;
    --gift-box-gradient2: #ffa000;
    --gift-box-border-color: #ff6b00;
    --gift-box-ribbon-color: #4c1d95;
    --gift-box-ribbon-second-color: #5d2ca0;
    --gift-box-ribbon-highlight-color: #7e3fb5;
    --gift-box-shadow-color: #0003;
    --gift-box-glow-opacity: 0.3;
    --prize-gradient1-start: gold;
    --prize-gradient1-end: orange;
    --prize-gradient2-start: #ff7b00;
    --prize-gradient2-end: #ff4500;
    --prize-text-color1: #2b0a50;
    --prize-text-color2: #fff;
    --prize-glow-color: #fe0;
    --prize-popup-background: linear-gradient(165deg,#2d1a4d,#1a1c2e);
    --prize-popup-button-bg: linear-gradient(135deg,#7c3aed,#4c1d95);
    --prize-popup-button-text: #fff;
    --prize-popup-title-gradient: linear-gradient(90deg,#fff,#a78bfa);
    --prize-popup-text-color: #ffffffe6;
    --prize-popup-close-bg: #ffffff1a;
    --prize-popup-close-color: #fff;
    --prize-popup-win-icon-color: #22c55e;
    --prize-popup-fail-icon-color: #ef4444;
    --prize-popup-button-icon-color: #fff;
    --history-overlay-bg: #111827b3;
    --history-content-bg: linear-gradient(145deg,#1a1c2e,#2d1a4d);
    --history-border-color: #ffffff1a;
    --history-header-bg: #ffffff08;
    --history-title-gradient: linear-gradient(90deg,#fff,#a78bfa);
    --history-close-btn-bg: #ffffff1a;
    --history-close-btn-color: #fff;
    --history-text-color: #fff;
    --history-spinner-color: #a78bfa;
    --history-empty-icon-color: #ffffff80;
    --history-button-bg: linear-gradient(135deg,#7c3aed,#4c1d95);
    --history-button-text: #fff;
    --history-item-bg: #ffffff0d;
    --history-item-border: #ffffff0d;
    --history-win-icon-bg: #34d39933;
    --history-win-icon-color: #34d399;
    --history-win-icon-border: #34d3994d;
    --history-lose-icon-bg: #f8717133;
    --history-lose-icon-color: #f87171;
    --history-lose-icon-border: #f871714d;
    --history-win-text-color: #34d399;
    --history-lose-text-color: #f87171;
    --history-date-color: #ffffff80
}

body,html {
    font-family: Poppins,sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%
}

.App {
    background: linear-gradient(135deg,#2b0a50,#3b0a60);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    text-align: center;
    width: 100%
}

.App:before {
    background-image: none;
    content: "";
    height: 100%;
    opacity: 0;
    position: absolute;
    width: 100%
}

.shake-container {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 20px;
    overflow-y: auto;
    padding: 30px 15px 15px;
    position: relative;
    width: 100%;
    z-index: 1
}

.timer {
    background-color: #ff6b6bcc;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    left: 20px;
    padding: 4px 10px;
    position: absolute;
    top: 10px
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
    width: 100%
}

.logo {
    height: auto;
    max-width: 80%;
    width: 150px
}

.logo-container-small {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%
}

.logo-small {
    height: auto;
    width: 120px
}

.title {
    color: #fff;
    color: var(--title-color);
    font-family: Poppins,sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 5px;
    text-shadow: 0 4px 8px #0000004d;
    text-shadow: var(--title-shadow)
}

.title span {
    color: #fc0;
    color: var(--title-span-color)
}

.gift-container {
    align-items: center;
    display: flex;
    flex-grow: 0;
    justify-content: center;
    margin: 5px 0;
    position: relative;
    width: 100%
}

.gift-box {
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(255,204,0,.5));
    height: 200px;
    margin-bottom: 20px;
    transform-origin: bottom center;
    transition: transform .2s ease;
    width: 200px
}

.shaking-box {
    animation: shakeItem .6s infinite
}

@keyframes shakeItem {
    0% {
        transform: rotate(0deg) scale(1)
    }

    25% {
        transform: rotate(-20deg) scale(1.05)
    }

    50% {
        transform: rotate(0deg) scale(1)
    }

    75% {
        transform: rotate(20deg) scale(1.05)
    }

    to {
        transform: rotate(0deg) scale(1)
    }
}

@keyframes shake {
    0% {
        transform: rotate(0deg)
    }

    25% {
        transform: rotate(-15deg) translateX(-15px)
    }

    50% {
        transform: rotate(0deg)
    }

    75% {
        transform: rotate(15deg) translateX(15px)
    }

    to {
        transform: rotate(0deg)
    }
}

.gift-item {
    animation: giftRise 1.8s cubic-bezier(.175,.885,.32,1.275);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)) drop-shadow(0 0 15px rgba(255,221,0,.7));
    transform-origin: center bottom
}

@keyframes giftRise {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(.5)
    }

    40% {
        filter: drop-shadow(0 0 25px rgba(255,221,0,.9));
        opacity: 1;
        transform: translateY(-60px) scale(1.3)
    }

    60% {
        transform: translateY(-20px) scale(.9)
    }

    80% {
        transform: translateY(-10px) scale(1.05)
    }

    to {
        transform: translateY(0) scale(1)
    }
}

.prize-grid {
    grid-gap: 18px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2,1fr);
    margin: 25px auto;
    max-width: 340px;
    width: 90%
}

.prize-option {
    background: linear-gradient(135deg,#fff,#f8f8ff);
    border: 2px solid #0000;
    border-radius: 20px;
    box-shadow: 0 10px 20px #00000026;
    color: #2b0a50;
    cursor: pointer;
    font-weight: 700;
    overflow: hidden;
    padding: 18px 10px;
    position: relative;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275)
}

.prize-option:before {
    background: linear-gradient(135deg,#fc06,#f606);
    border-radius: 25px;
    bottom: -10px;
    content: "";
    left: -10px;
    position: absolute;
    right: -10px;
    top: -10px;
    transform: scale(0);
    transition: transform .5s cubic-bezier(.175,.885,.32,1.275);
    z-index: -1
}

.prize-option:hover {
    border: 2px solid #fc0;
    box-shadow: 0 15px 30px #0003;
    transform: translateY(-8px) scale(1.05)
}

.prize-option:hover:before {
    transform: scale(1)
}

.shake-button {
    background: linear-gradient(45deg,#fc0,orange);
    background: var(--button-gradient);
    border: none;
    border-radius: 30px;
    border-radius: var(--button-border-radius);
    box-shadow: 0 8px 15px #0003;
    box-shadow: var(--button-shadow);
    color: #2b0a50;
    color: var(--button-text-color);
    cursor: pointer;
    font-family: Poppins,sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding: 16px 32px;
    text-transform: uppercase;
    transition: all .3s ease
}

.shake-button:hover {
    box-shadow: 0 12px 20px #0000004d;
    transform: translateY(-5px) scale(1.05)
}

.shake-button:disabled {
    background: linear-gradient(45deg,#ccc,#aaa);
    box-shadow: 0 4px 8px #0000001a;
    cursor: not-allowed;
    transform: none
}

.prize-popup {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px
}

.prize-popup,.prize-popup-backdrop {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999
}

.prize-popup-backdrop {
    animation: fadeIn .5s ease-out;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: #111827cc
}

.prize-popup-content {
    animation: prizePopIn .6s cubic-bezier(.68,-.55,.265,1.55);
    background: linear-gradient(165deg,#2d1a4d,#1a1c2e);
    background: var(--prize-popup-background,linear-gradient(165deg,#2d1a4d 0,#1a1c2e 100%));
    border: 1px solid #ffffff1a;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px #00000080,0 0 30px #7c3aed4d,inset 0 2px 2px #ffffff1a;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 420px;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform .3s ease-out;
    width: 90%;
    z-index: 100000
}

.prize-popup-content:before {
    background: radial-gradient(circle at top right,#7c3aed26,#0000 70%),radial-gradient(circle at bottom left,#ffcc0026,#0000 70%);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0
}

.prize-popup-content:after {
    animation: popupGlow 6s ease-in-out infinite;
    background: radial-gradient(circle at center,#ffffff14,#0000 30%);
    bottom: -100%;
    content: "";
    left: -100%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: -100%;
    top: -100%
}

@keyframes popupGlow {
    0%,to {
        opacity: 0
    }

    50% {
        opacity: 1
    }
}

.close-btn {
    align-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: #ffffff1a;
    background: var(--prize-popup-close-bg,#ffffff1a);
    border: none;
    border-radius: 12px;
    color: #fff;
    color: var(--prize-popup-close-color,#fff);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 8px;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    touch-action: manipulation;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    width: 44px;
    z-index: 100001
}

.close-btn:hover {
    background: #fff3;
    box-shadow: 0 0 15px #ffffff26;
    transform: rotate(90deg) scale(1.1)
}

.prize-text {
    position: relative;
    text-align: center
}

.prize-text:after {
    background: linear-gradient(90deg,#0000,#7c3aed80,#0000);
    bottom: -1rem;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 60%
}

.prize-text h2 {
    -webkit-text-fill-color: #0000;
    background: linear-gradient(90deg,#fff,#a78bfa);
    background: var(--prize-popup-title-gradient,linear-gradient(to right,#fff,#a78bfa));
    -webkit-background-clip: text;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0 0 1.2rem;
    text-shadow: 0 2px 10px #7c3aed4d
}

.prize-text p {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: #ffffff0d;
    border: 1px solid #ffffff1a;
    border-radius: 20px;
    color: #ffffffe6;
    color: var(--prize-popup-text-color,#ffffffe6);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    padding: 1.2rem 1.5rem;
    position: relative
}

.prize-text p:before {
    animation: shimmer 3s infinite;
    background: linear-gradient(45deg,#0000,#ffffff1a,#0000);
    content: "";
    height: 200%;
    left: -50%;
    position: absolute;
    top: -50%;
    transform: rotate(45deg);
    width: 200%
}

.claim-prize-btn {
    background: linear-gradient(135deg,#7c3aed,#4c1d95);
    background: var(--prize-popup-button-bg,linear-gradient(135deg,#7c3aed,#4c1d95));
    border: none;
    border-radius: 20px;
    color: #fff;
    color: var(--prize-popup-button-text,#fff);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: .5rem;
    overflow: hidden;
    padding: 1rem 2rem;
    position: relative;
    text-transform: uppercase;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    width: 100%
}

.claim-prize-btn:before {
    background: linear-gradient(45deg,#0000,#fff3,#0000);
    content: "";
    height: 200%;
    left: -50%;
    position: absolute;
    top: -50%;
    transform: rotate(45deg);
    transition: .5s;
    width: 200%
}

.claim-prize-btn:hover {
    background: linear-gradient(135deg,#8b5cf6,#6d28d9);
    box-shadow: 0 10px 20px -10px #7c3aed80,0 0 15px #7c3aed4d;
    transform: translateY(-3px)
}

.claim-prize-btn:hover:before {
    animation: shimmer 1.5s infinite
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) rotate(45deg)
    }

    to {
        transform: translateX(150%) rotate(45deg)
    }
}

@keyframes prizePopIn {
    0% {
        opacity: 0;
        transform: scale(.85) translateY(50px)
    }

    70% {
        transform: scale(1.05) translateY(-10px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

@media (max-width: 480px) {
    .history-modal,.prize-popup {
        padding:16px
    }

    .prize-popup-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
        width: 100%
    }

    .close-btn {
        background: #fff3;
        height: 44px;
        padding: 10px;
        right: 1rem;
        top: 1rem;
        width: 44px
    }

    .prize-text h2 {
        font-size: 1.8rem
    }

    .prize-text p {
        font-size: 1rem;
        padding: 1rem
    }

    .claim-prize-btn {
        padding: .8rem 1.5rem
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction:column;
        gap: 8px;
        justify-content: center
    }

    .header-profile,.shake-rights {
        justify-content: center;
        max-width: none;
        padding: 6px 10px;
        width: 100%
    }

    .header-actions,.header-rights {
        justify-content: center;
        margin-top: 8px;
        width: 100%
    }

    .header-actions {
        flex-direction: column;
        gap: 8px
    }

    .history-nav-button,.rights-button {
        justify-content: center;
        max-width: none;
        width: 100%
    }

    .shake-container {
        gap: 10px;
        padding-top: 20px
    }

    .title {
        font-size: 28px;
        margin-bottom: 10px;
        margin-top: 0
    }

    .gift-box {
        height: 180px;
        margin-bottom: 15px;
        width: 180px
    }

    .shake-button {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 14px 28px
    }

    .instruction {
        font-size: 14px;
        max-width: 95%;
        padding: 8px 16px
    }
}

.instruction {
    animation: fadeIn 1s ease-out,pulseInstruction 2s ease-in-out infinite;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: linear-gradient(135deg,#ffcc004d,#ffa5004d);
    background: var(--instruction-bg);
    border: 1px solid #fc03;
    border: 1px solid var(--instruction-border-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px #0000001a;
    color: #fff;
    color: var(--instruction-text-color);
    font-family: Poppins,sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    max-width: 90%;
    padding: 10px 20px;
    text-align: center
}

@keyframes pulseInstruction {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.02)
    }

    to {
        transform: scale(1)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.history-button {
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg,#ffffff1a,#ffffff0d);
    border: 1px solid #fff3;
    border-radius: 50px;
    box-shadow: 0 4px 15px #0000001a;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 600;
    gap: 10px;
    padding: 12px 24px;
    transition: all .3s ease
}

.history-button:hover {
    background: linear-gradient(135deg,#ffffff26,#ffffff1a);
    box-shadow: 0 6px 20px #00000026;
    transform: translateY(-2px)
}

.history-button svg {
    height: 20px;
    opacity: .9;
    width: 20px
}

.history-popup {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000
}

.history-popup-backdrop {
    animation: fadeIn .3s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg,#2b0a50f2,#4c1d95f2);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%
}

.history-popup-content {
    animation: popIn .6s cubic-bezier(.175,.885,.32,1.275);
    background: linear-gradient(135deg,#fff,#f8f8ff);
    border: 2px solid #ffcc004d;
    border-radius: 25px;
    box-shadow: 0 20px 40px #0000004d,0 0 50px #fc03;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 80vh;
    max-width: 400px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    width: 90%
}

.history-title {
    -webkit-text-fill-color: #0000;
    background: linear-gradient(135deg,#2b0a50,#4c1d95);
    -webkit-background-clip: text;
    color: #2b0a50;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-align: center
}

.history-list {
    gap: 1rem;
    margin-right: -10px;
    overflow-y: auto;
    padding-right: 10px
}

.history-item {
    background: #fffc;
    border-radius: 15px;
    box-shadow: 0 2px 10px #0000000d;
    gap: 1rem;
    padding: 1rem;
    transition: transform .2s ease
}

.history-prize-icon {
    align-items: center;
    background: linear-gradient(135deg,#ff5722,#d84315);
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    height: 50px;
    justify-content: center;
    width: 50px
}

.history-prize-info {
    flex-grow: 1
}

.history-prize-info h3 {
    color: #2b0a50;
    font-size: 1rem;
    margin: 0 0 5px
}

.history-date {
    color: #666;
    display: block;
    font-size: .85rem
}

.no-history {
    background: #0000000d;
    border-radius: 15px;
    color: #666;
    font-size: 1rem;
    padding: 2rem;
    text-align: center
}

.history-list::-webkit-scrollbar {
    width: 8px
}

.history-list::-webkit-scrollbar-track {
    background: #0000000d;
    border-radius: 10px
}

.history-list::-webkit-scrollbar-thumb {
    background: #2b0a5033;
    border-radius: 10px
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #2b0a504d
}

.history-button {
    margin-bottom: 10px
}

.shake-button {
    margin-bottom: 20px;
    margin-top: 10px
}

@media (max-width: 400px) {
    .shake-button {
        margin-bottom:0;
        margin-top: 40px
    }
}

@media (max-height: 700px) {
    .shake-container {
        gap:8px;
        padding-top: 15px
    }

    .logo {
        width: 120px
    }

    .title {
        font-size: 24px;
        margin-bottom: 8px;
        margin-top: 0
    }

    .gift-box {
        height: 150px;
        margin-bottom: 10px;
        width: 150px
    }

    .shake-button {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 10px 24px
    }

    .instruction {
        font-size: 13px;
        margin-bottom: 8px;
        padding: 8px 16px
    }
}

.app-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(135deg,#2b0a50e6,#4c1d95e6);
    background: var(--header-background);
    border-bottom: 1px solid #ffffff1a;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 6px 20px #00000040;
    box-sizing: border-box;
    padding: 15px 16px;
    position: relative;
    width: 100%;
    z-index: 1000
}

.header-container {
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px
}

.header-container,.header-profile {
    align-items: center;
    display: flex;
    gap: 10px
}

.header-profile {
    background: linear-gradient(135deg,#ffffff1a,#ffffff0d);
    background: var(--profile-background);
    border: 1px solid #ffffff26;
    border-radius: 50px;
    box-shadow: 0 4px 12px #00000026;
    color: #fff;
    color: var(--profile-text-color);
    padding: 8px 16px;
    transition: all .3s ease
}

.profile-icon {
    align-items: center;
    color: #fc0;
    color: var(--profile-icon-color);
    display: flex;
    justify-content: center
}

.history-icon svg,.profile-icon svg,.rights-icon svg {
    fill: currentColor;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%
}

.profile-name {
    color: #fff;
    color: var(--profile-text-color);
    font-size: .95rem;
    font-weight: 600;
    text-shadow: 0 2px 4px #0003;
    white-space: nowrap
}

.header-rights,.shake-rights {
    align-items: center;
    display: flex
}

.shake-rights {
    background: linear-gradient(135deg,#fc03,#ffa50033);
    background: var(--shake-rights-background);
    border: 1px solid #8ed30d4d;
    border-radius: 50px;
    box-shadow: 0 4px 12px #00000026;
    color: #fff;
    color: var(--shake-rights-text-color);
    gap: 10px;
    padding: 8px 16px;
    transition: all .3s ease
}

.shake-rights:hover {
    background: linear-gradient(135deg, #8ed30d40, #8ed30d);
    transform: translateY(-2px)
}

.rights-text {
    color: #fff;
    color: var(--shake-rights-text-color);
    font-size: .95rem;
    font-weight: 600;
    text-shadow: 0 2px 4px #0003;
    white-space: nowrap
}

.shake-rights .rights-icon svg {
    fill: #fc0;
    fill: var(--shake-rights-icon-color)
}

.header-actions {
    display: flex;
    gap: 12px
}

.history-nav-button,.rights-button {
    align-items: center;
    background: linear-gradient(135deg,#fc0,orange);
    background: var(--rights-button-background);
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 15px #0003;
    color: #2b0a50;
    color: var(--rights-button-text-color);
    cursor: pointer;
    display: flex;
    font-size: .95rem;
    font-weight: 600;
    gap: 8px;
    overflow: hidden;
    padding: 9px 18px;
    position: relative;
    transition: all .3s ease
}

.rights-button:before {
    animation: shimmer 3s infinite;
    background: linear-gradient(45deg,#0000,#ffffff4d,#0000);
    content: "";
    height: 200%;
    left: -50%;
    position: absolute;
    top: -50%;
    transform: rotate(45deg);
    width: 200%
}

.history-nav-button {
    align-items: center;
    background: linear-gradient(135deg,#ffffff26,#ffffff0d);
    background: var(--history-button-background);
    border: 1px solid #fff3;
    border-radius: 50px;
    box-shadow: 0 6px 15px #0003;
    color: #fff;
    color: var(--history-button-text-color);
    cursor: pointer;
    display: flex;
    font-size: .95rem;
    font-weight: 600;
    gap: 8px;
    overflow: hidden;
    padding: 9px 18px;
    position: relative;
    transition: all .3s ease
}

.history-nav-button .history-icon svg {
    fill: #fff;
    fill: var(--history-button-icon-color)
}

.rights-button:hover {
    box-shadow: 0 8px 20px #8ed30d4d;
    transform: translateY(-3px)
}

.history-nav-button:hover {
    background: linear-gradient(135deg,#fff3,#ffffff1a);
    box-shadow: 0 8px 20px #00000040;
    transform: translateY(-3px)
}

.button-text {
    color: inherit;
    position: relative;
    white-space: nowrap;
    z-index: 1
}

.history-icon,.rights-icon {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1
}

@media (max-width: 768px) {
    .header-container {
        flex-direction:column;
        gap: 8px;
        justify-content: center
    }

    .header-profile,.shake-rights {
        justify-content: center;
        max-width: none;
        padding: 6px 10px;
        width: 100%
    }

    .header-actions,.header-rights {
        justify-content: center;
        margin-top: 8px;
        width: 100%
    }

    .header-actions {
        flex-direction: row;
        gap: 8px
    }

    .history-nav-button,.rights-button {
        justify-content: center;
        max-width: none;
        width: 100%
    }
}

@media (max-width: 480px) {
    .button-text,.profile-name,.rights-text {
        font-size:.8rem
    }

    .header-profile,.history-nav-button,.rights-button,.shake-rights {
        padding: 6px 10px
    }

    .title {
        font-size: 24px
    }

    .gift-box {
        height: 160px;
        width: 160px
    }

    .shake-button {
        font-size: 14px;
        padding: 12px 24px
    }
}

.error-screen,.loading-screen {
    align-items: center;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    width: 100%
}

.error-screen:before,.loading-screen:before {
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

.error-container,.loading-container {
    align-items: center;
    animation: containerFadeIn .8s ease forwards;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: #ffffff0f;
    border: 1px solid #ffffff1a;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 380px;
    overflow: hidden;
    padding: 3.5rem 2.5rem;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1
}

.loading-container:before {
    background: radial-gradient(circle at top right,#7c3aed1a,#0000 60%),radial-gradient(circle at bottom left,#ffcc000f,#0000 60%);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0
}

.loading-animation {
    align-items: center;
    display: flex;
    height: 120px;
    justify-content: center;
    margin: 2.5rem 0;
    position: relative;
    width: 120px
}

.spinner {
    animation: spin 1.2s cubic-bezier(.68,-.55,.265,1.55) infinite;
    border-left: 4px solid #ffffff14;
    border-radius: 50%;
    border-top: 4px solid #ffffff14;
    border-color: #fc0 #ffffff14 #ffffff14 #fc0;
    border-style: solid;
    border-width: 4px;
    filter: drop-shadow(0 0 10px rgba(255,204,0,.3));
    height: 90px;
    width: 90px
}

.spinner:before {
    animation: spinReverse 2s linear infinite;
    border-bottom: 3px solid #0000;
    border-radius: 50%;
    border-right: 3px solid #0000;
    border-color: #0000 #7c3aed #7c3aed #0000;
    border-style: solid;
    border-width: 3px;
    content: "";
    filter: drop-shadow(0 0 8px rgba(124,58,237,.3));
    inset: 10px;
    opacity: .7;
    position: absolute
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(-1turn)
    }
}

.loading-text {
    -webkit-text-fill-color: #0000;
    background: linear-gradient(90deg,#fff,#a78bfa);
    -webkit-background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: .5rem;
    margin-top: 0;
    position: relative;
    text-shadow: 0 2px 10px #7c3aed33
}

.loading-subtitle {
    color: #ffffffbf;
    font-size: 1rem;
    font-weight: 400;
    margin: .5rem 0 0
}

.dot-animation {
    animation: dotAnimation 1.5s infinite;
    display: inline-block
}

@keyframes dotAnimation {
    0%,20% {
        opacity: 0
    }

    40% {
        opacity: .4
    }

    60% {
        opacity: .8
    }

    80%,to {
        opacity: 1
    }
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.loading-particles {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

.particle {
    animation: float-particle 8s linear infinite;
    background-color: #ffffff80;
    border-radius: 50%;
    filter: blur(1px);
    height: 4px;
    position: absolute;
    width: 4px
}

.particle:first-child {
    animation-delay: 0s;
    animation-duration: 10s;
    left: 15%;
    top: 20%
}

.particle:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 12s;
    left: 80%;
    top: 70%
}

.particle:nth-child(3) {
    animation-delay: 1s;
    animation-duration: 15s;
    left: 70%;
    top: 40%
}

.particle:nth-child(4) {
    animation-delay: 3s;
    animation-duration: 18s;
    left: 20%;
    top: 60%
}

.particle:nth-child(5) {
    animation-delay: 4s;
    animation-duration: 20s;
    left: 80%;
    top: 30%
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0)
    }

    30% {
        opacity: .8
    }

    70% {
        opacity: .3
    }

    to {
        opacity: 0;
        transform: translateY(-40px) translateX(20px)
    }
}

.error-icon {
    animation: pulse 2s infinite;
    font-size: 3.5rem;
    margin: 15px 0
}

.error-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 0 2px 4px #0003
}

.error-message {
    color: #fffc;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 5px
}

@media (max-width: 480px) {
    .error-container,.loading-container {
        padding:30px 20px
    }

    .spinner {
        height: 60px;
        width: 60px
    }

    .loading-text {
        font-size: 1.4rem
    }

    .error-icon {
        font-size: 3rem
    }

    .error-title {
        font-size: 1.5rem
    }

    .error-message {
        font-size: 1rem
    }
}

.loading-spin {
    flex-direction: column;
    gap: 20px
}

.loading-spin,.loading-spin .loading-animation {
    align-items: center;
    display: flex;
    justify-content: center
}

.loading-spin .loading-animation {
    height: 200px;
    position: relative;
    width: 200px
}

.loading-spin .spinner {
    animation: spin 1s linear infinite;
    border: 6px solid #ffcc001a;
    border-left-color: #fc0;
    border-radius: 50%;
    height: 80px;
    width: 80px
}

.loading-spin p {
    animation: pulse 1.5s ease-in-out infinite;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px #0003
}

@keyframes pulse {
    0% {
        opacity: .6
    }

    50% {
        opacity: 1
    }

    to {
        opacity: .6
    }
}

.custom-alert {
    align-items: center;
    animation: alertSlideDown .5s cubic-bezier(.68,-.55,.265,1.55) forwards,alertPulse 2s ease-in-out .5s infinite;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #ffffff1a;
    border-radius: 16px;
    box-shadow: 0 10px 30px #00000040,0 0 20px #7c3aed33;
    display: flex;
    left: 50%;
    max-width: 90%;
    min-width: 320px;
    overflow: hidden;
    padding: 0;
    position: fixed;
    top: 30px;
    transform: translateX(-50%);
    z-index: 99999
}

.custom-alert.error {
    background: linear-gradient(135deg,#991b1b,#7f1d1d)
}

.custom-alert.success {
    background: linear-gradient(135deg,#065f46,#064e3b)
}

.alert-content {
    padding: 16px 20px;
    width: 100%
}

.alert-content,.alert-icon {
    align-items: center;
    display: flex
}

.alert-icon {
    border-radius: 50%;
    flex-shrink: 0;
    height: 32px;
    justify-content: center;
    margin-right: 16px;
    width: 32px
}

.success .alert-icon {
    background: #fff3;
    color: #10b981
}

.error .alert-icon {
    background: #fff3;
    color: #f87171
}

.alert-message {
    color: #fff;
    flex-grow: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    text-shadow: 0 1px 2px #0003
}

.alert-progress {
    animation: alertProgress 3s linear forwards;
    background: #fff6;
    bottom: 0;
    height: 3px;
    left: 0;
    position: absolute
}

@keyframes alertSlideDown {
    0% {
        opacity: 0;
        transform: translate(-50%,-100px)
    }

    50% {
        transform: translate(-50%,10px)
    }

    to {
        opacity: 1;
        transform: translate(-50%)
    }
}

@keyframes alertPulse {
    0% {
        box-shadow: 0 10px 30px #00000040,0 0 0 #7c3aed00
    }

    50% {
        box-shadow: 0 10px 30px #00000040,0 0 30px #7c3aed4d
    }

    to {
        box-shadow: 0 10px 30px #00000040,0 0 0 #7c3aed00
    }
}

@keyframes alertProgress {
    0% {
        width: 100%
    }

    to {
        width: 0
    }
}

@media (max-width: 480px) {
    .custom-alert {
        min-width:auto;
        top: 20px;
        width: 90%
    }

    .alert-content {
        padding: 14px 16px
    }

    .alert-icon {
        height: 28px;
        margin-right: 12px;
        width: 28px
    }

    .alert-message {
        font-size: 14px
    }
}

.admin-login-overlay {
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: #000000b3;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000
}

.admin-login-popup {
    animation: fadeIn .3s;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px #0000004d;
    max-width: 400px;
    overflow: hidden;
    width: 90%
}

.admin-login-header {
    align-items: center;
    background: linear-gradient(135deg,#2b0a50,#3b0a60);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px
}

.admin-login-header h2 {
    font-size: 1.2rem;
    margin: 0
}

.admin-close-btn {
    align-items: center;
    background: #0000;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 5px;
    transition: background .2s
}

.admin-close-btn:hover {
    background: #fff3
}

.admin-login-form {
    padding: 20px
}

.admin-login-error {
    background: #ffebee;
    border-radius: 5px;
    color: #d32f2f;
    font-size: .9rem;
    margin-bottom: 15px;
    padding: 10px
}

.admin-form-group {
    margin-bottom: 15px
}

.admin-form-group label {
    color: #333;
    display: block;
    font-weight: 500;
    margin-bottom: 5px
}

.admin-form-group input {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    padding: 12px 2px;
    width: 100%
}

.admin-form-group input:focus {
    border-color: #2b0a50;
    box-shadow: 0 0 0 2px #2b0a5033;
    outline: none
}

.admin-login-button {
    background: linear-gradient(135deg,#fc0,orange);
    border: none;
    border-radius: 5px;
    color: #2b0a50;
    cursor: pointer;
    font-weight: 600;
    padding: 12px;
    transition: all .2s;
    width: 100%
}

.admin-login-button:hover {
    box-shadow: 0 5px 15px #ffcc004d;
    transform: translateY(-2px)
}

.admin-login-button:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none
}

.admin-css-edit-button {
    background: linear-gradient(135deg,#2b0a50,#3b0a60);
    border: none;
    border-radius: 50px;
    bottom: 30px;
    box-shadow: 0 5px 15px #0000004d;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 20px;
    position: fixed;
    right: 30px;
    transition: all .3s ease;
    z-index: 1000
}

.admin-css-edit-button:hover {
    background: linear-gradient(135deg,#3b0a60,#4b0a70);
    box-shadow: 0 8px 20px #0006;
    transform: translateY(-3px) scale(1.05)
}

@media (max-width: 768px) {
    .admin-css-edit-button {
        bottom:20px;
        font-size: .9rem;
        padding: 10px 16px;
        right: 20px
    }
}

.css-editor-panel {
    animation: slideInRight .3s ease-out;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px #0000004d;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: calc(100vw - 60px);
    overflow: hidden;
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    z-index: 1001
}

.css-editor-header {
    align-items: center;
    background: #0003;
    background: linear-gradient(135deg,#2b0a50,#3b0a60);
    border-bottom: 1px solid #ffffff1a;
    display: flex;
    justify-content: space-between;
    padding: 15px
}

.css-editor-header h2 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0
}

.css-editor-header-actions {
    display: flex;
    gap: 10px
}

.css-editor-close,.css-editor-reset,.css-editor-save {
    align-items: center;
    background: none;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 5px;
    transition: all .3s ease
}

.css-editor-save {
    background: #4caf5033
}

.css-editor-save:hover {
    background: #4caf504d;
    transform: scale(1.1)
}

.css-editor-reset {
    background: #ffffff1a
}

.css-editor-reset:hover {
    background: #fff3;
    transform: rotate(180deg)
}

.css-editor-close:hover {
    background: #ffffff1a
}

.css-editor-content {
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    padding: 20px;
    position: relative
}

.css-editor-section {
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
    padding-bottom: 20px
}

.css-editor-section:last-child {
    border-bottom: none;
    margin-bottom: 0
}

.css-editor-section h3 {
    border-bottom: 1px solid #f0f0f0;
    color: #2b0a50;
    font-size: 1rem;
    margin: 0 0 15px;
    padding-bottom: 8px
}

.css-editor-field {
    margin-bottom: 12px
}

.css-editor-field label {
    color: #555;
    display: block;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 6px
}

.color-picker-container {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px
}

.color-preview {
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    height: 36px;
    position: relative;
    transition: transform .2s;
    width: 36px
}

.color-preview:hover {
    box-shadow: 0 2px 6px #0000001a;
    transform: scale(1.05)
}

.gradient-preview {
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    height: 36px;
    transition: transform .2s;
    width: 100px
}

.gradient-preview:hover {
    box-shadow: 0 2px 6px #0000001a;
    transform: scale(1.03)
}

.color-value {
    color: #666;
    flex: 1 1;
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.color-picker-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px #00000040;
    display: flex;
    flex-direction: column;
    gap: 16px;
    left: 50%;
    padding: 16px;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 220px;
    z-index: 2000
}

.gradient-picker-popup {
    width: 280px
}

.color-picker-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px
}

.color-picker-header span {
    color: #333;
    font-size: .9rem;
    font-weight: 600
}

.color-picker-header button {
    align-items: center;
    background: #0000;
    border: none;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 24px;
    justify-content: center;
    transition: all .2s;
    width: 24px
}

.color-picker-header button:hover {
    background: #f0f0f0;
    color: #333
}

.current-color {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 10px
}

.current-color-preview {
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 36px;
    width: 36px
}

.current-color input {
    border: 1px solid #ddd;
    border-radius: 6px;
    flex: 1 1;
    font-size: .9rem;
    padding: 8px 10px
}

.gradient-preview-large {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 60px;
    margin-bottom: 16px
}

.gradient-color-selector {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.gradient-colors-title {
    color: #444;
    font-size: .85rem;
    font-weight: 600
}

.gradient-colors-list {
    display: flex;
    gap: 10px
}

.gradient-color-item {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    transition: background .2s
}

.gradient-color-item:hover {
    background: #f5f5f5
}

.gradient-color-item.active {
    background: #f0f0f0;
    outline: 2px solid #ddd
}

.gradient-color-preview {
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 30px;
    width: 30px
}

.gradient-color-label {
    color: #666;
    font-size: .7rem
}

.gradient-color-editor {
    margin-top: 10px
}

.react-colorful {
    height: 180px!important;
    width: 100%!important
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translate(100%,-50%)
    }

    to {
        opacity: 1;
        transform: translateY(-50%)
    }
}

@media (max-width: 768px) {
    .css-editor-panel {
        bottom:80px;
        left: 20px;
        max-height: 80vh;
        max-width: none;
        right: 20px;
        top: auto;
        transform: none;
        width: auto
    }

    .color-picker-popup {
        max-width: 250px;
        width: 90%
    }

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

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }
}

.accordion-header {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    transition: all .3s
}

.accordion-header:hover {
    background-color: #00000005
}

.accordion-header h3 {
    border-bottom: none;
    color: #2b0a50;
    font-size: 1rem;
    margin: 0;
    padding-bottom: 0
}

.accordion-icon {
    align-items: center;
    color: #666;
    display: flex;
    justify-content: center;
    transition: transform .3s
}

.accordion-header.open .accordion-icon {
    transform: rotate(180deg)
}

.accordion-content {
    animation: accordionFadeIn .4s ease;
    padding: 15px 0 5px
}

@keyframes accordionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.css-editor-section.accordion {
    margin-bottom: 10px;
    padding-bottom: 5px
}

.text-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: .9rem;
    padding: 8px 10px;
    width: 100%
}

.text-input:focus {
    border-color: #2b0a50;
    box-shadow: 0 0 0 2px #2b0a5033;
    outline: none
}

.css-editor-alert {
    animation: slideDown .3s ease-out;
    border-radius: 16px 16px 0 0;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    left: 0;
    padding: 12px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    z-index: 1
}

.css-editor-alert.success {
    background: linear-gradient(135deg,#4caf50f2,#388e3cf2)
}

.css-editor-alert.error {
    background: linear-gradient(135deg,#f44336f2,#d32f2ff2)
}

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

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.App.modal-open .app-content {
    filter: blur(8px);
    opacity: .5;
    pointer-events: none;
    transition: all .3s ease;
    -webkit-user-select: none;
    user-select: none
}

.app-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all .3s ease
}

.App.modal-open .app-header {
    z-index: 1
}

.App.prize-popup-open .app-content {
    filter: blur(6px);
    opacity: .5;
    pointer-events: none;
    transition: all .3s ease;
    -webkit-user-select: none;
    user-select: none
}

@media (max-width: 400px) {
    .logo {
        height:auto;
        width: 100px
    }

    .logo-small {
        width: 90px
    }

    .title {
        font-size: 24px;
        margin-top: 2px
    }

    .instruction {
        font-size: 13px;
        margin-bottom: -30px;
        max-width: 95%;
        padding: 6px 12px
    }

    .gift-box {
        height: 140px;
        width: 140px
    }

    .shake-button {
        font-size: 14px;
        padding: 10px 20px
    }

    .history-button {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 8px 16px
    }

    .history-button svg {
        height: 16px;
        width: 16px
    }

    .app-header {
        padding: 10px 12px
    }

    .header-profile,.shake-rights {
        padding: 4px 8px
    }

    .profile-name,.rights-text {
        font-size: .75rem
    }

    .history-nav-button,.rights-button {
        padding: 6px 10px
    }

    .button-text {
        font-size: .75rem
    }

    .prize-popup-content {
        padding: 1.5rem 1rem
    }

    .prize-text h2 {
        font-size: 1.5rem
    }

    .prize-text p {
        font-size: .9rem;
        padding: .8rem
    }

    .claim-prize-btn {
        font-size: .9rem;
        padding: .7rem 1.2rem
    }

    .history-modal-content {
        padding: 12px
    }

    .history-modal-header h2 {
        font-size: 1.2rem
    }

    .history-item {
        padding: 10px
    }

    .prize-icon {
        height: 36px;
        margin-right: 10px;
        width: 36px
    }

    .history-item-details h3 {
        font-size: .9rem
    }

    .history-date {
        font-size: .7rem
    }

    .shake-container {
        gap: 5px;
        padding: 10px
    }
}

.history-modal {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px
}

.history-modal,.history-modal-overlay {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999
}

.history-modal-overlay {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #111827b3;
    background: var(--history-overlay-bg,#111827b3)
}

.history-modal-content {
    animation: modalSlideIn .3s ease-out;
    background: linear-gradient(145deg,#1a1c2e,#2d1a4d);
    background: var(--history-content-bg,linear-gradient(145deg,#1a1c2e,#2d1a4d));
    border: 1px solid #ffffff1a;
    border: 1px solid var(--history-border-color,#ffffff1a);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px #00000080;
    max-height: 85vh;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    width: 90%;
    z-index: 100000
}

.history-modal-header {
    align-items: center;
    background: #ffffff08;
    background: var(--history-header-bg,#ffffff08);
    border-bottom: 1px solid #ffffff1a;
    border-bottom: 1px solid var(--history-border-color,#ffffff1a);
    display: flex;
    justify-content: space-between;
    padding: 24px
}

.history-modal-header h2 {
    -webkit-text-fill-color: #0000;
    background: linear-gradient(90deg,#fff,#a78bfa);
    background: var(--history-title-gradient,linear-gradient(to right,#fff,#a78bfa));
    -webkit-background-clip: text;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0
}

.close-button {
    align-items: center;
    background: #ffffff1a;
    background: var(--history-close-btn-bg,#ffffff1a);
    border: none;
    border-radius: 12px;
    color: #fff;
    color: var(--history-close-btn-color,#fff);
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 8px;
    transition: all .3s ease
}

.close-button:hover {
    background: #fff3;
    transform: rotate(90deg)
}

.history-modal-body {
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    padding: 24px;
    scrollbar-color: #fff3 #0000;
    scrollbar-width: thin
}

.history-modal-body::-webkit-scrollbar {
    width: 4px
}

.history-modal-body::-webkit-scrollbar-track {
    background: #0000
}

.history-modal-body::-webkit-scrollbar-thumb {
    background-color: #fff3;
    border-radius: 20px
}

.history-loading {
    align-items: center;
    color: #fff;
    color: var(--history-text-color,#fff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid #ffffff1a;
    border-radius: 50%;
    border-top: 3px solid var(--history-spinner-color,#a78bfa);
    height: 40px;
    margin-bottom: 20px;
    width: 40px
}

.history-empty {
    color: #fff;
    color: var(--history-text-color,#fff);
    padding: 40px 20px;
    text-align: center
}

.history-empty svg {
    color: #ffffff80;
    color: var(--history-empty-icon-color,#ffffff80);
    margin-bottom: 20px
}

.start-playing-btn {
    align-items: center;
    background: linear-gradient(135deg,#7c3aed,#4c1d95);
    background: var(--history-button-bg,linear-gradient(135deg,#7c3aed,#4c1d95));
    border: none;
    border-radius: 16px;
    color: #fff;
    color: var(--history-button-text,#fff);
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    transition: all .3s ease
}

.start-playing-btn:hover {
    background: linear-gradient(135deg,#8b5cf6,#6d28d9);
    box-shadow: 0 10px 20px -10px #7c3aed80;
    transform: translateY(-2px)
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.history-item {
    align-items: center;
    background: #ffffff0d;
    background: var(--history-item-bg,#ffffff0d);
    border: 1px solid #ffffff0d;
    border: 1px solid var(--history-item-border,#ffffff0d);
    border-radius: 16px;
    display: flex;
    padding: 16px;
    transition: all .3s ease
}

.history-item:hover {
    background: #ffffff14;
    border-color: #ffffff1a;
    transform: translateX(5px)
}

.prize-icon {
    align-items: center;
    border-radius: 14px;
    display: flex;
    height: 48px;
    justify-content: center;
    margin-right: 16px;
    transition: all .3s ease;
    width: 48px
}

.prize-icon.won {
    background: #34d39933;
    background: var(--history-win-icon-bg,#34d39933);
    border: 1px solid #34d3994d;
    border: 1px solid var(--history-win-icon-border,#34d3994d);
    color: #34d399;
    color: var(--history-win-icon-color,#34d399)
}

.prize-icon.lost {
    background: #f8717133;
    background: var(--history-lose-icon-bg,#f8717133);
    border: 1px solid #f871714d;
    border: 1px solid var(--history-lose-icon-border,#f871714d);
    color: #f87171;
    color: var(--history-lose-icon-color,#f87171)
}

.history-item-details {
    flex: 1 1
}

.history-item-details h3 {
    color: #fff;
    color: var(--history-text-color,#fff);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0
}

.history-item-details h3.won {
    color: #34d399;
    color: var(--history-win-text-color,#34d399);
    text-align: left
}

.history-item-details h3.lost {
    color: #f87171;
    color: var(--history-lose-text-color,#f87171)
}

.history-date {
    color: #ffffff80;
    color: var(--history-date-color,#ffffff80);
    font-size: .9rem;
    margin: 4px 0 0;
    text-align: left
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

@media (max-width: 480px) {
    .history-modal {
        padding:16px
    }

    .history-modal-content {
        border-radius: 20px;
        max-height: 90vh;
        width: 100%
    }

    .history-modal-header {
        padding: 20px
    }

    .history-modal-header h2 {
        font-size: 1.3rem
    }

    .history-modal-body {
        padding: 20px
    }

    .history-item {
        padding: 14px
    }

    .prize-icon {
        height: 40px;
        margin-right: 12px;
        width: 40px
    }

    .history-item-details h3 {
        font-size: 1rem
    }

    .history-date {
        font-size: .8rem
    }
}
