.wp-section {
    padding:40px 20px;
    margin:40px 0;
    border-radius:32px;
    text-align:center;
    background:linear-gradient(
        135deg,#e2f7d4,#fff2c7,#ffe2ef,#e3e5ff
    );
}

.wp-section h2 {
    color:#7544d5;
    font-size:clamp(28px,5vw,44px);
}

.wp-decoration {
    font-size:38px;
    letter-spacing:8px;
}

.wp-collection {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:25px;
}

.wp-game-card {
    border:3px solid #ffffffaa;
    border-radius:25px;
    min-height:185px;
    padding:22px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#453263;
    background:#e7dcff;
    cursor:pointer;
    transition:transform .2s,box-shadow .2s;
}

.wp-game-card:nth-child(3n+2){
    background:#d5efff;
}

.wp-game-card:nth-child(3n+3){
    background:#ffdbea;
}

.wp-game-card:nth-child(4){
    background:#fff0b0;
}

.wp-game-card:nth-child(5){
    background:#d5f2c6;
}

.wp-game-card:nth-child(6){
    background:#ffddc4;
}

.wp-game-card:nth-child(9){
    background:#cdeedb;
}

.wp-game-card:hover {
    transform:translateY(-5px);
    box-shadow:0 10px 20px #62418b20;
}

.wp-card-art {
    font-size:58px;
}

.wp-game-card strong {
    font-size:20px;
}

.wp-game-card small {
    color:#7043c3;
    font-weight:800;
}

.wp-dialog {
    width:min(94vw,900px);
    max-width:none;
    max-height:92vh;
    padding:0;
    border:0;
    border-radius:30px;
    background:#fffaf0;
    color:#49336c;
    box-shadow:0 20px 80px #34204c55;
    overflow:auto;
}

.wp-dialog::backdrop {
    background:#34204caa;
    backdrop-filter:blur(4px);
}

.wp-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:18px;
    background:#7949dc;
    color:white;
    font-size:21px;
}

.wp-controls {
    display:flex;
    gap:8px;
}

.wp-icon {
    border:0;
    background:#ffffff30;
    color:white;
    width:42px;
    height:42px;
    border-radius:14px;
    font-size:20px;
    cursor:pointer;
}

.wp-status {
    display:flex;
    justify-content:space-between;
    padding:18px 24px;
    color:#7544c4;
}

.wp-stage {
    padding:20px 25px 30px;
    text-align:center;
}

.wp-stage h2 {
    font-size:clamp(24px,4vw,34px);
    color:#7544d5;
    margin:10px 0 25px;
}

.wp-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin:22px 0;
}

.wp-button,.wp-tile,.wp-balloon,
.wp-memory,.wp-paint,.wp-shape,.wp-coin {
    border:0;
    border-radius:22px;
    padding:18px;
    min-height:65px;
    font-weight:800;
    font-size:20px;
    color:#49336c;
    background:#e9ddff;
    cursor:pointer;
    transition:transform .15s;
}

.wp-button {
    background:#7949dc;
    color:white;
    margin:8px;
    border-radius:30px;
}

.wp-tile:nth-child(2n),
.wp-coin:nth-child(2n){
    background:#d7efff;
}

.wp-tile:nth-child(3n){
    background:#ffdfed;
}

.wp-dialog button:hover:not(:disabled){
    transform:scale(1.035);
}

.wp-dialog button:disabled{
    opacity:.55;
    cursor:default;
}

.wp-dialog button:focus-visible,
.wp-game-card:focus-visible{
    outline:4px solid #3b2379;
    outline-offset:3px;
}

.wp-hero,.wp-plant {
    font-size:110px;
    padding:15px;
}

.wp-train {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:20px 0;
}

.wp-slot {
    min-width:70px;
    min-height:75px;
    padding:15px;
    display:grid;
    place-items:center;
    background:#fff1b7;
    border:3px dashed #d9b54c;
    border-radius:18px;
    font-size:25px;
    font-weight:800;
}

.wp-slot.filled {
    background:#d2efba;
    border:3px solid #75bb51;
}

.wp-balloon {
    position:relative;
    border-radius:50% 50% 45% 45%;
    min-height:125px;
    font-size:38px;
    margin-bottom:20px;
    box-shadow:inset -8px -8px 0 #0000000a;
}

.wp-balloon::after {
    content:'';
    position:absolute;
    top:100%;
    left:50%;
    height:20px;
    border-left:2px solid #8e7ca5;
}

.wp-memory {
    min-height:105px;
    font-size:48px;
    background:#d9eaff;
}

.wp-memory.wp-matched {
    background:#c7edac;
    opacity:1;
}

.wp-paint {
    min-height:110px;
    border:5px solid white;
    color:#171717;
    text-shadow:0 0 5px white;
}

.wp-paint-target,.wp-mix-tray {
    border-radius:22px;
    padding:25px;
    margin:15px auto;
    max-width:360px;
    font-size:23px;
    font-weight:800;
    color:#161616;
    background:#fff0b7;
}

.wp-shape {
    font-size:65px;
    background:white;
    border:2px solid #e8dcff;
}

.wp-shape-target,.wp-payment {
    background:#fff0ba;
    padding:20px;
    border-radius:20px;
    font-size:27px;
    font-weight:800;
}

.wp-coin {
    background:#ffe6a2;
}

.wp-feedback {
    min-height:45px;
    padding:12px 20px 25px;
    text-align:center;
    font-size:20px;
    font-weight:800;
    color:#477d36;
}

.wp-stars {
    font-size:35px;
    overflow-wrap:anywhere;
}

.wp-celebration {
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
}

.wp-celebration span {
    position:absolute;
    top:-45px;
    font-size:28px;
    animation:wp-fall 1.5s ease-in forwards;
}

@keyframes wp-fall {
    to {
        transform:translateY(650px) rotate(360deg);
        opacity:0;
    }
}

@media(max-width:650px){
    .wp-collection {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .wp-game-card {
        min-height:150px;
    }

    .wp-game-card strong {
        font-size:16px;
    }

    .wp-stage {
        padding:15px;
    }

    .wp-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .wp-top {
        font-size:16px;
    }

    .wp-hero,.wp-plant {
        font-size:85px;
    }
}

@media(prefers-reduced-motion:reduce){
    .wp-dialog *,
    .wp-section * {
        animation:none!important;
        transition:none!important;
    }
}
