#game-root {
    --wc-accent: #10B981;
    --wc-accent-dark: #0c8d64;
    --wc-accent-light: #e3f9ef;
    --wc-accent-border: #a7f3d0;
    --wc-glass-bg: rgba(255, 255, 255, .62);
    --wc-glass-border: rgba(255, 255, 255, .45);
}

/*
 * The kwi-* modifier classes game.js passes to KidWorldIcons.svg() are only
 * ever named by the shared icon helper, never defined by it, so the colors
 * are given real values here, scoped to this game.
 */
#game-root .kwi-accent { color: var(--wc-accent); }
#game-root .kwi-success { color: #10B981; }
#game-root .kwi-danger { color: #EF4444; }
#game-root .kwi-trophy { color: #F59E0B; }
#game-root .kwi-muted { color: #cbd5e1; }

.wc-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.wc-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.wc-loading,
.wc-error {
    text-align: center;
    padding: 48px 16px;
}

.wc-loading-icon,
.wc-error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.wc-loading-icon {
    animation: wc-pulse 1.2s ease-in-out infinite;
}

.wc-loading-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.wc-error-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #EF4444;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
}

/* ---------- Candy colors and shapes (one pair per letter of a stage) ---------- */

.wc-c0 { --wc-tc: #E11D48; --wc-tc-light: #FB7185; }
.wc-c1 { --wc-tc: #EA580C; --wc-tc-light: #FDBA74; }
.wc-c2 { --wc-tc: #CA8A04; --wc-tc-light: #FDE047; }
.wc-c3 { --wc-tc: #16A34A; --wc-tc-light: #86EFAC; }
.wc-c4 { --wc-tc: #2563EB; --wc-tc-light: #93C5FD; }
.wc-c5 { --wc-tc: #9333EA; --wc-tc-light: #D8B4FE; }

.wc-s0 { --wc-shape: 50%; }
.wc-s1 { --wc-shape: 22%; }
.wc-s2 { --wc-shape: 50% 10% 50% 10%; }
.wc-s3 { --wc-shape: 50% 50% 50% 12%; }
.wc-s4 { --wc-shape: 38% 62% 55% 45% / 45% 40% 60% 55%; }
.wc-s5 { --wc-shape: 16% 16% 50% 50%; }

/* ---------- Level picker ---------- */

.wc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.wc-header-icon {
    display: flex;
    font-size: 30px;
    line-height: 1;
}

.wc-header-icon img {
    display: block;
    height: 38px;
    width: auto;
}

.wc-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.wc-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.wc-level-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--kw-radius, 12px);
    background: var(--wc-glass-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wc-level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
}

.wc-level-thumb {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--wc-accent-light), var(--wc-accent-border));
    background-size: 70px 70px;
    background-repeat: no-repeat;
    background-position: center;
}

.wc-level-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px 16px;
}

.wc-level-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--kw-text, #2D2A32);
    text-align: center;
}

.wc-level-age {
    font-size: 14px;
    font-weight: 700;
    color: var(--wc-accent-dark);
    background: var(--wc-accent-light);
    padding: 2px 10px;
    border-radius: 999px;
}

/* ---------- Shared chrome ---------- */

.wc-level-row {
    justify-content: space-between;
    margin-bottom: 12px;
}

.wc-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--wc-accent-light);
    color: var(--wc-accent-dark);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
}

.wc-level-pill-icon {
    display: inline-flex;
    line-height: 1;
}

.wc-level-pill-icon img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: cover;
    border-radius: 50%;
}

.wc-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--wc-glass-border);
    background: var(--wc-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--wc-accent-dark);
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px 6px 10px;
    transition: transform .1s ease, background .15s ease;
}

.wc-pill-btn svg {
    width: 12px;
    height: 12px;
}

.wc-pill-btn:hover {
    background: rgba(255, 255, 255, .8);
    transform: translateY(-1px);
}

.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    background: var(--wc-accent-light);
    color: var(--wc-accent-dark);
    transition: transform .1s ease, background .15s ease;
}

.wc-btn:hover {
    transform: translateY(-1px);
    background: var(--wc-accent-border);
}

.wc-btn-primary {
    background: var(--wc-accent);
    color: #fff;
    box-shadow: 0 3px 0 var(--wc-accent-dark);
}

.wc-btn-primary:hover {
    background: var(--wc-accent);
}

.wc-link-btn {
    border: none;
    background: none;
    color: #fff;
    opacity: .8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Stage map ---------- */

.wc-hero {
    text-align: center;
    margin-bottom: 16px;
}

.wc-hero-tiles {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.wc-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--wc-shape, 22%);
    background: linear-gradient(160deg, var(--wc-tc-light), var(--wc-tc));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 3px 6px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
    animation: wc-bob 2.4s ease-in-out infinite;
}

.wc-mini:nth-child(2) { animation-delay: .2s; }
.wc-mini:nth-child(3) { animation-delay: .4s; }
.wc-mini:nth-child(4) { animation-delay: .6s; }

.wc-hero-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

.wc-hero-sub {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: .95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    margin: 4px auto 10px;
    max-width: 420px;
}

.wc-hero-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--kw-text, #2D2A32);
    border-radius: 999px;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.wc-stages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.wc-scard {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--kw-radius, 12px);
    background: var(--wc-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    transition: transform .12s ease, box-shadow .12s ease;
    flex-wrap: wrap;
}

.wc-scard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, .12);
}

.wc-scard-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wc-accent);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
}

.wc-scard-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wc-scard-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--kw-text, #2D2A32);
}

.wc-scard-emojis {
    font-size: 17px;
    letter-spacing: 2px;
}

.wc-scard-stars {
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    gap: 2px;
    font-size: 16px;
}

.wc-scard-locked {
    opacity: .55;
    cursor: default;
}

.wc-scard-locked .wc-scard-num {
    background: #94a3b8;
    font-size: 14px;
}

.wc-scard-next {
    box-shadow: 0 0 0 3px #FDE047, 0 6px 14px rgba(0, 0, 0, .14);
    animation: wc-bob 2s ease-in-out infinite;
}

.wc-map-foot {
    text-align: center;
    margin-top: 14px;
}

.wc-star {
    display: inline-flex;
}

/* ---------- Stage screen ---------- */

.wc-stage {
    position: relative;
}

.wc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.wc-stage-name {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-moves {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 4px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.wc-moves-num {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--wc-accent-dark);
}

.wc-moves-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.wc-moves-low .wc-moves-num {
    color: #EF4444;
    animation: wc-pulse 1s ease-in-out infinite;
}

/* The word being spelled */

.wc-wordcard {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--wc-glass-border);
    border-radius: 16px;
    background: var(--wc-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: background .2s ease, box-shadow .2s ease;
}

.wc-wordcard-in {
    animation: wc-card-in .35s ease;
}

.wc-wordcard-done {
    background: #ecfdf5;
    box-shadow: 0 0 0 3px var(--wc-accent), 0 6px 16px rgba(16, 185, 129, .35);
    animation: wc-cheer .5s ease;
}

.wc-word-emoji {
    flex: 0 0 auto;
    font-size: 44px;
    line-height: 1;
}

.wc-word-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wc-slots {
    display: flex;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.wc-slot {
    flex: 0 1 42px;
    min-width: 0;
    aspect-ratio: 42 / 48;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.wc-slot-ghost {
    color: #cbd5e1;
    text-shadow: none;
}

.wc-slot-next {
    border: 2px solid #F59E0B;
    background: #FEF3C7;
    animation: wc-glow 1.4s ease-in-out infinite;
}

.wc-slot-next .wc-slot-ghost {
    color: #B45309;
}

.wc-slot-on {
    border: none;
    background: linear-gradient(160deg, var(--wc-tc-light), var(--wc-tc));
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.wc-slot-pop {
    animation: wc-slot-pop .3s ease;
}

.wc-clue {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #475569;
}

.wc-word-speak {
    flex: 0 0 auto;
}

.wc-word-speak:empty {
    display: none;
}

.wc-queue {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wc-qchip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    font-size: 19px;
    opacity: .75;
}

.wc-qchip-now {
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 0 3px var(--wc-accent);
}

.wc-qchip-done {
    background: rgba(255, 255, 255, .75);
    opacity: 1;
}

.wc-qtick {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: flex;
    font-size: 15px;
    background: #fff;
    border-radius: 50%;
}

/* The board */

.wc-board-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 10px;
}

.wc-board {
    position: relative;
    width: 100%;
    border-radius: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)),
        rgba(30, 20, 60, .28);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, .2), 0 0 0 3px rgba(255, 255, 255, .35);
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    container-type: inline-size;
    cursor: pointer;
}

.wc-board-ended {
    cursor: default;
}

.wc-tile {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% / var(--wc-cols));
    height: calc(100% / var(--wc-rows));
    transition-property: transform;
    transition-timing-function: cubic-bezier(.45, .05, .55, 1.15);
    will-change: transform;
}

.wc-tile-in {
    position: absolute;
    inset: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wc-shape, 22%);
    background: linear-gradient(160deg, var(--wc-tc-light), var(--wc-tc));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 3px 5px rgba(0, 0, 0, .22);
    transition: transform .12s ease, box-shadow .12s ease;
}

.wc-tile-letter {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    font-size: calc(56cqw / var(--wc-cols));
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 3px rgba(0, 0, 0, .2);
}

.wc-badge {
    position: absolute;
    z-index: 2;
    right: -2%;
    bottom: -4%;
    font-size: 12px;
    font-size: calc(26cqw / var(--wc-cols));
    line-height: 1;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Special tiles */

.wc-rocket .wc-tile-in::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.wc-rocket-row .wc-tile-in::after {
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .45) 0 11%, transparent 11% 22%);
}

.wc-rocket-col .wc-tile-in::after {
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 11%, transparent 11% 22%);
}

.wc-bomb .wc-tile-in {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 3px 5px rgba(0, 0, 0, .22);
}

.wc-bomb .wc-tile-in::before {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: inherit;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, .85);
    animation: wc-throb 1.1s ease-in-out infinite;
}

.wc-rainbow .wc-tile-in {
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.wc-rainbow .wc-tile-in::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: conic-gradient(#F43F5E, #F59E0B, #FDE047, #22C55E, #06B6D4, #3B82F6, #A855F7, #F43F5E);
    animation: wc-spin 3s linear infinite;
}

.wc-rainbow .wc-tile-letter {
    font-size: calc(62cqw / var(--wc-cols));
}

/* Tile states (always on the inner candy, since the outer tile's transform is its position) */

.wc-selected .wc-tile-in {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px #fff, 0 0 14px 4px rgba(255, 255, 255, .8);
}

.wc-hint .wc-tile-in {
    animation: wc-wiggle .9s ease-in-out infinite;
}

.wc-nope .wc-tile-in {
    animation: wc-shake .3s ease;
}

.wc-pop .wc-tile-in {
    animation: wc-pop .23s ease-in forwards;
}

.wc-born .wc-tile-in {
    animation: wc-born .4s ease;
}

.wc-shuffling .wc-tile-in {
    animation: wc-shuffle .45s ease;
}

/* Effects layer */

.wc-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.wc-beam {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95), rgba(253, 224, 71, .7) 55%, transparent 75%);
}

.wc-beam-row {
    left: 0;
    width: 100%;
    animation: wc-beam-row .45s ease-out forwards;
}

.wc-beam-col {
    top: 0;
    height: 100%;
    animation: wc-beam-col .45s ease-out forwards;
}

.wc-blast {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(251, 146, 60, .6) 50%, transparent 72%);
    animation: wc-blast .5s ease-out forwards;
}

.wc-flash {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: conic-gradient(rgba(244, 63, 94, .5), rgba(253, 224, 71, .5), rgba(34, 197, 94, .5), rgba(59, 130, 246, .5), rgba(168, 85, 247, .5), rgba(244, 63, 94, .5));
    animation: wc-flash .55s ease-out forwards;
}

.wc-float {
    position: absolute;
    left: 50%;
    top: 45%;
    white-space: nowrap;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 14px rgba(0, 0, 0, .25);
    animation: wc-float 1s ease-out forwards;
}

.wc-float-word {
    color: #FDE047;
    font-size: 44px;
}

.wc-float-combo {
    top: 28%;
    font-size: 28px;
}

.wc-float-shuffle {
    font-size: 30px;
}

.wc-fly {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--wc-tc-light), var(--wc-tc));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, .7);
    pointer-events: none;
    transition: transform .45s cubic-bezier(.5, -.3, .4, 1), opacity .45s ease-in;
}

.wc-tip {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    min-height: 18px;
}

.wc-tip-letter {
    display: inline-block;
    min-width: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background: #FEF3C7;
    color: #B45309;
    text-shadow: none;
    font-size: 15px;
}

/* ---------- Stage result ---------- */

.wc-overlay {
    position: absolute;
    inset: -6px;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .45);
    animation: wc-fade .25s ease;
}

.wc-overlay[hidden] {
    display: none;
}

.wc-result {
    width: 100%;
    max-width: 380px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    animation: wc-card-in .35s ease;
}

.wc-result-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--wc-accent-dark);
}

.wc-result-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 34px;
    margin: 6px 0 10px;
}

.wc-result-stars .wc-star-on {
    animation: wc-star-in .45s ease backwards;
}

.wc-result-stars .wc-star:nth-child(2) { animation-delay: .15s; }
.wc-result-stars .wc-star:nth-child(3) { animation-delay: .3s; }

.wc-result-words {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.wc-rword {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
}

.wc-rword-ok {
    background: var(--wc-accent-light);
    color: var(--wc-accent-dark);
}

.wc-rword-miss {
    color: #94a3b8;
}

.wc-rword-emoji {
    font-size: 24px;
}

.wc-rword-text {
    flex: 1 1 auto;
    text-align: left;
}

.wc-result-score {
    font-size: 16px;
    font-weight: 800;
    color: #F59E0B;
    margin-bottom: 6px;
}

.wc-result-tip {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.wc-result-final {
    font-size: 14px;
    font-weight: 800;
    color: var(--wc-accent-dark);
    margin-bottom: 10px;
}

.wc-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.wc-share {
    justify-content: center;
    margin-top: 14px;
}

.wc-shake {
    animation: wc-shake .35s ease;
}

/* ---------- Animations ---------- */

@keyframes wc-pop {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes wc-born {
    0% { transform: scale(.3) rotate(-20deg); }
    60% { transform: scale(1.25) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes wc-shuffle {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(.7) rotate(180deg); }
}

@keyframes wc-wiggle {
    0%, 100% { transform: rotate(0) scale(1); }
    20% { transform: rotate(-10deg) scale(1.08); }
    40% { transform: rotate(10deg) scale(1.08); }
    60% { transform: rotate(-6deg) scale(1.04); }
    80% { transform: rotate(0) scale(1); }
}

@keyframes wc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

@keyframes wc-throb {
    0%, 100% { opacity: .5; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes wc-spin {
    to { transform: rotate(360deg); }
}

@keyframes wc-beam-row {
    0% { transform: scaleX(0); opacity: 1; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1) scaleY(.2); opacity: 0; }
}

@keyframes wc-beam-col {
    0% { transform: scaleY(0); opacity: 1; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) scaleX(.2); opacity: 0; }
}

@keyframes wc-blast {
    0% { transform: scale(.2); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes wc-flash {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes wc-float {
    0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    70% { transform: translate(-50%, -70%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -95%) scale(.95); opacity: 0; }
}

@keyframes wc-slot-pop {
    0% { transform: scale(.6); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes wc-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, .35); }
}

@keyframes wc-card-in {
    from { transform: translateY(8px) scale(.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes wc-cheer {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.05); }
}

@keyframes wc-star-in {
    0% { transform: scale(0) rotate(-40deg); }
    70% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes wc-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes wc-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .75; }
}

@keyframes wc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .wc-mini,
    .wc-scard-next,
    .wc-rainbow .wc-tile-in::before,
    .wc-bomb .wc-tile-in::before {
        animation: none;
    }
}

@media (max-width: 420px) {
    .wc-word-emoji {
        font-size: 36px;
    }

    .wc-wordcard {
        gap: 8px;
        padding: 8px 10px;
    }

    .wc-slot {
        font-size: 20px;
    }

    .wc-hero-title {
        font-size: 24px;
    }

    .wc-stages {
        grid-template-columns: 1fr 1fr;
    }

    .wc-float-word {
        font-size: 36px;
    }
}
