.wg-dialog,
.wg-dialog * {
    box-sizing:border-box;
}

.wg-dialog {
    width:min(1150px,96vw);
    max-height:94vh;
    border:0;
    border-radius:28px;
    padding:0;
    background:#f8fced;
    color:#34583a;
    font-family:system-ui,Arial,sans-serif;
    overflow:auto;
}

.wg-dialog::backdrop {
    background:#183721aa;
}

.wg-top {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 24px;
    background:#438c50;
    color:white;
}

.wg-top h2 {
    margin:0;
    font-size:25px;
}

.wg-controls,
.wg-extras {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.wg-controls .wg-button {
    background:white;
    color:#34583a;
    margin:0;
    padding:10px 14px;
}

.wg-main {
    padding:24px;
    text-align:center;
    background:linear-gradient(
        150deg,#f8fced,#e2f4d2
    );
}

.wg-main h1 {
    font-size:clamp(26px,5vw,42px);
}

.wg-main h2 {
    font-size:clamp(22px,4vw,30px);
}

.wg-main p {
    line-height:1.6;
}

.wg-hero {
    padding:20px;
    border:4px solid white;
    border-radius:30px;
    background:linear-gradient(
        135deg,#d5edff,#e1f3c7,#fff0bc
    );
}

.wg-hero .wg-art {
    height:180px;
    width:180px;
}

.wg-art {
    display:block;
    width:100%;
    height:145px;
    object-fit:contain;
    margin:auto;
}

.wg-grid,
.wg-plots {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin:24px 0;
}

.wg-card,
.wg-seed,
.wg-plot {
    border:3px solid white;
    border-radius:24px;
    padding:18px;
    background:#fff;
    color:#34583a;
    box-shadow:0 5px 15px #355b3214;
    text-align:center;
    font:inherit;
}

.wg-card,
.wg-seed {
    cursor:pointer;
    transition:transform .18s,border-color .18s;
}

.wg-card:hover,
.wg-seed:hover {
    transform:translateY(-3px);
    border-color:#92cc6d;
}

.wg-card h3 {
    font-size:20px;
    margin:12px 0 8px;
}

.wg-card p {
    font-size:14px;
    margin:0;
}

.wg-button {
    display:inline-block;
    border:0;
    border-radius:22px;
    padding:13px 20px;
    background:#438c50;
    color:white;
    font:inherit;
    font-weight:800;
    cursor:pointer;
    margin:8px 4px;
}

.wg-dialog button:focus-visible {
    outline:3px solid #7950cc;
    outline-offset:4px;
}

.wg-seeds,
.wg-sequence {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:20px 0;
}

.wg-seed .wg-art {
    height:95px;
}

.wg-selected {
    border-color:#438c50;
    background:#e1f3c7;
}

.wg-status {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:15px;
    border-radius:20px;
    background:#fff0bc;
    font-weight:800;
}

.wg-plot {
    background:#fff9e8;
}

.wg-plot .wg-button {
    width:100%;
    margin:10px 0 0;
}

.wg-empty-soil {
    display:grid;
    place-items:center;
    min-height:145px;
    border-radius:50%;
    background:radial-gradient(
        ellipse,#b7804f,#805333
    );
    color:white;
    font-weight:800;
}

.wg-feedback,
.wg-description {
    background:white;
    border:2px solid #c5e2b5;
    border-radius:20px;
    padding:20px;
    margin:18px 0;
    font-size:18px;
    font-weight:750;
    line-height:1.5;
}

.wg-retry {
    border-color:#f2cc76;
}

.wg-slot {
    min-height:155px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border:3px dashed #a5c69a;
    border-radius:20px;
    background:#f5fbea;
    font-size:20px;
    font-weight:800;
}

.wg-slot .wg-art,
.wg-sequence .wg-art {
    height:110px;
}

.wg-step {
    display:inline-grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#438c50;
    color:white;
    font-weight:800;
}

.wg-correct {
    background:#e0f4d4;
    border-color:#438c50;
}

.wg-wrong {
    background:#fff0dd;
    border-color:#e4b36a;
}

.wg-card:disabled {
    cursor:default;
    transform:none;
}

.wg-note {
    font-size:13px;
    color:#536b52;
    max-width:750px;
    margin:20px auto;
}

.wg-trophy {
    font-size:110px;
    padding:30px;
}

.wg-extras {
    justify-content:center;
}

@media(max-width:700px) {
    .wg-main {
        padding:14px;
    }

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

    .wg-card,
    .wg-seed,
    .wg-plot {
        padding:12px;
    }

    .wg-art {
        height:110px;
    }

    .wg-card h3 {
        font-size:17px;
    }

    .wg-top {
        padding:14px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .wg-card,
    .wg-seed {
        transition:none;
    }

    .wg-card:hover,
    .wg-seed:hover {
        transform:none;
    }
}
