.game-screen {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%;
    z-index: 0;
}

.game-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

.game-header {
    position: relative;
    z-index: 2;
}

.game-header .header-title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.game-header .btn {
    color: #fff;
}

/* Coins in header */
.header-coins {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    justify-content: flex-end;
    color: #fff;
}

.coin-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #f0a000);
    flex-shrink: 0;
}

.hint-btn {
    gap: 4px;
    font-size: 16px;
}

.hint-cost {
    font-size: 12px;
    opacity: 0.8;
}

/* Crossword Grid */
.grid-area {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-height: 0;
    overflow: hidden;
    padding: var(--grid-padding);
}

.grid-container {
    display: inline-grid;
    gap: 3px;
}

.grid-cell {
    width: var(--cell-size, 36px);
    height: var(--cell-size, 36px);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: calc(var(--cell-size, 36px) * 0.55);
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.3s;
}

.grid-cell.empty {
    visibility: hidden;
}

.grid-cell.filled {
    background: rgba(230, 225, 240, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.grid-cell.revealed {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.grid-cell.hint-revealed {
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Word Preview */
.word-preview {
    height: var(--preview-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    overflow: hidden;
}

.preview-letter {
    width: 32px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* Wheel Area */
.wheel-area {
    position: relative;
    z-index: 2;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: calc(var(--safe-bottom) + var(--wheel-bottom-padding));
    padding-left: 32px;
    padding-right: 32px;
}

.wheel-wrapper {
    position: relative;
}

.wheel-container {
    position: relative;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    --wheel-letter-size: 52px;
    --wheel-hit-radius: 36px;
    --wheel-line-width: 6px;
    width: min(66vw, 40vh, 300px);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.44s ease-out;
}
.wheel-container.shuffling {
    animation: wheel-shuffle-spin 0.8s ease-in-out;
}
@keyframes wheel-shuffle-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

.wheel-letter {
    position: absolute;
    width: var(--wheel-letter-size, 52px);
    height: var(--wheel-letter-size, 52px);
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--wheel-letter-size, 52px) * 0.54);
    font-weight: 800;
    color: #39426b;
    text-transform: uppercase;
    z-index: 2;
    transition: transform 0.15s ease, color 0.15s, background 0.15s;
    will-change: transform;
}

.wheel-letter.selected {
    background: var(--section-color, #e94560);
    color: #fff;
    border-radius: 50%;
    transform: scale(1.15);
}

.wheel-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, transform 0.15s;
}

.wheel-center-dot svg {
    display: block;
}

.wheel-center-dot:active {
    background: rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%) scale(0.85);
}

/* (hint-float styles removed — replaced by .booster-tray) */

/* Bonus word counter */
.bonus-counter {
    position: absolute;
    top: calc(var(--total-top) + var(--header-height) + 4px);
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 3;
    display: none;
}

.bonus-counter.visible {
    display: block;
}

/* Bonus word fly-up */
.bonus-flyup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a2e;
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    z-index: 50;
    pointer-events: none;
}

.bonus-fly-to-icon {
    position: fixed;
    z-index: 60;
    pointer-events: none;
    background: rgba(255, 215, 0, 0.95);
    color: #1a1a2e;
    padding: 5px 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    transform: translate(-50%, -50%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.extra-words-pulse {
    animation: ew-pulse 0.4s ease-out;
}
@keyframes ew-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Words found counter */
.words-found {
    display: flex;
    gap: 4px;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.word-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s;
}

.word-dot.found {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== Header Stats ===== */
.header-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-gems {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #fff;
    background: transparent;
    border: 1.5px solid #fff;
    padding: 3px 10px 3px 22px;
    border-radius: 50px;
    position: relative;
    overflow: visible;
}
.header-gems .icon-gem {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% + 8px);
    width: auto;
    z-index: 1;
}
.gem-icon, .bf-icon {
    font-size: 14px;
}

/* Inline SVG/sprite icons */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-gem {
    object-fit: contain;
}
.icon svg {
    display: inline-block;
    vertical-align: middle;
}
/* Make SVG icons visible on dark backgrounds */
.booster-tray .icon,
.fortune-sector-label .icon,
.bf-reward-gems .icon,
.header-gems .icon {
    stroke: currentColor;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

/* ===== Level Complete ===== */
.lc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-size: cover;
    background-position: center 35%;
}
.lc-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(20px + var(--total-top, 0px)) 20px calc(20px + var(--safe-bottom, 0px));
}
.lc-header {
    position: absolute;
    top: calc(16px + var(--total-top, 0px));
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.lc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    max-width: 90vw;
    width: 340px;
}
.lc-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}
.lc-voyage {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.34) 0%, rgba(233, 240, 255, 0.22) 48%, rgba(210, 226, 255, 0.14) 100%);
    border: 2.5px solid rgba(232, 239, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 10px rgba(195, 215, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 20px 0;
}
.lc-voyage-num {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.lc-voyage-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
}
.lc-progress {
    width: 100%;
}
.lc-progress-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -3px;
}
.lc-progress + .lc-progress {
    margin-top: -13px;
}
.lc-progress-label {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    display: block;
    padding-bottom: 0;
}
.lc-progress-count {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.lc-bar-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.lc-bar-track {
    flex: 1;
    height: 18px;
    background: rgba(12, 20, 45, 0.75);
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 2px;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.lc-bar-fill {
    height: 100%;
    background: linear-gradient(180deg, #7cd842 0%, #4fb524 100%);
    border-radius: 999px;
    transition: width 0.8s ease-out;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(0, 0, 0, 0.2);
}
.lc-bar-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20px;
    position: relative;
    z-index: 2;
    transform: translateY(-6px);
}
.lc-bar-thumb {
    width: 42px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transform: rotate(6deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-left: -10px;
    position: relative;
    z-index: 2;
}
.lc-btn-next {
    background: linear-gradient(180deg, #5bbd3f, #3d9e2a);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 16px 60px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(61, 158, 42, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.15s;
}
.lc-btn-next:active {
    transform: scale(0.95);
}
.lc-btn-home {
    position: absolute;
    bottom: calc(24px + var(--safe-bottom, 0px));
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(20, 25, 50, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5d6a7;
    top: -4px;
    animation: lc-sparkle 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 3;
}
@keyframes lc-sparkle {
    0% { transform: scale(0) translateY(0); opacity: 1; }
    100% { transform: scale(1.5) translateY(-18px); opacity: 0; }
}

/* ===== Postcard Reveal ===== */
.pc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: #08101d;
    background-size: cover;
    background-position: center;
}
.pc-shade {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--total-top, 0px) + 34px) 24px calc(var(--safe-bottom, 0px) + 28px);
    background: linear-gradient(180deg, rgba(7, 12, 26, 0.82) 0%, rgba(7, 12, 26, 0.56) 36%, rgba(7, 12, 26, 0.78) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: min(92vw, 700px);
}
.pc-title {
    font-size: clamp(30px, 7.6vw, 48px);
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.08;
    text-transform: uppercase;
}
.pc-subtitle {
    margin-top: -10px;
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
    text-transform: uppercase;
}
.pc-card {
    width: min(50vw, 520px);
    aspect-ratio: 0.62;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(168, 151, 255, 0.44);
}
.pc-wonder {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    max-width: 92%;
}
.pc-btn-collect {
    min-width: 250px;
    min-height: 74px;
    background: linear-gradient(180deg, #69d448 0%, #3fac24 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0 40px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 14px 22px rgba(57, 145, 35, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s;
}
.pc-btn-collect:active {
    transform: scale(0.95);
}

/* ===== Postcard Viewer (full-screen) ===== */
.pcv-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: #000;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.pcv-overlay.pcv-entering {
    opacity: 0;
}
.pcv-overlay.pcv-closing {
    opacity: 0;
}
.pcv-back-btn {
    position: absolute;
    top: calc(var(--total-top, 0px) + 16px);
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s;
}
.pcv-back-btn:active {
    background: rgba(0, 0, 0, 0.45);
}
.pcv-bottom {
    padding: 0 24px calc(var(--safe-bottom, 0px) + 32px);
    text-align: center;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding-top: 80px;
}
.pcv-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.pcv-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.pcv-wonder {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-top: 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== Section Complete ===== */
.sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-size: cover;
    background-position: center;
}
.sc-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: max(40px, var(--safe-bottom, 0px));
}
.sc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}
.sc-country {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.sc-badge {
    font-size: 14px;
    color: #a5d6a7;
    letter-spacing: 2px;
    font-weight: 600;
}
.sc-postcards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px 0;
}
.sc-postcard-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sc-postcard {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
}
.sc-postcard.unlocked {
    border-color: rgba(255, 255, 255, 0.6);
}
.sc-check {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.sc-postcard-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 80px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-btn-next {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: transform 0.15s;
    margin-top: 8px;
}
.sc-btn-next:active {
    transform: scale(0.95);
}

/* ===== Tutorial ===== */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: radial-gradient(
        circle at var(--cut-cx, 50%) var(--cut-cy, 70%),
        transparent var(--cut-r, 100px),
        rgba(0, 0, 0, 0.7) calc(var(--cut-r, 100px) + 4px)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15vh;
}
.tutorial-overlay-swipe {
    justify-content: flex-start;
}
.tutorial-tooltip {
    background: #FFF8DC;
    color: #333;
    border: 3px solid #E8C547;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: min(300px, 80vw);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tutorial-tooltip-swipe {
    margin-top: 0;
}
.tutorial-tooltip-readonly {
    gap: 0;
    padding: 14px 18px;
}
.tutorial-tooltip-arrow-down::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #E8C547;
}
.tutorial-tooltip-bottom::after {
    top: -12px;
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: #E8C547;
}
.tutorial-msg {
    line-height: 1.4;
}
.tutorial-btn {
    background: #E8C547;
    color: #333;
    border: none;
    border-radius: 24px;
    padding: 8px 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}
.tutorial-btn:active {
    transform: scale(0.95);
}
.tutorial-hand {
    position: fixed;
    z-index: 2001;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.tutorial-arrow {
    position: fixed;
    z-index: 2001;
    animation: tutorial-bounce 1s ease-in-out infinite;
    pointer-events: none;
}
@keyframes tutorial-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.tutorial-highlight-pulse {
    animation: tutorial-glow 1.5s ease-in-out infinite !important;
    position: relative;
    z-index: 2001;
}
@keyframes tutorial-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.6); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 213, 79, 0.4); }
}

/* ===== Booster Tray ===== */
.booster-tray {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translate(100%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 4;
}

.booster-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(60, 50, 40, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, opacity 0.3s;
}

.booster-btn:active {
    transform: scale(0.88);
    background: rgba(60, 50, 40, 0.8);
}

.booster-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.booster-btn.active {
    border-color: #FFD54F;
    box-shadow: 0 0 12px rgba(255, 213, 79, 0.5);
    background: rgba(80, 70, 30, 0.7);
}

.booster-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}


/* ===== Extra Words Button ===== */
.extra-words-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: radial-gradient(circle at 50% 45%, #63d839, #3e9f1a);
    box-shadow: 0 4px 12px rgba(5, 10, 24, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}
.extra-words-btn:active {
    transform: scale(0.88);
}
.extra-words-ring {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
}
.extra-words-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.extra-words-btn.extra-words-reward {
    animation: extra-words-flash 0.6s ease-out;
}
@keyframes extra-words-flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
    50% { box-shadow: 0 0 18px 6px rgba(76, 175, 80, 0.7); }
}

/* ===== Extra Words Popup (matches original APK) ===== */
.extra-words-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ew-popup {
    background: #f5e6c8;
    border-radius: 24px;
    padding: 18px 20px 16px;
    width: 90%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}
.ew-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.12);
    color: #8a7a60;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}
.ew-title {
    font-size: 22px;
    font-weight: 900;
    color: #4a3a1e;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.15;
    padding: 0;
    margin-top: 32px;
    width: 100%;
}
.ew-illust {
    display: block;
    object-fit: contain;
    margin: 2px 0;
}
.ew-words-box {
    width: 100%;
    border: 2px solid #d4b96e;
    border-radius: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.3);
}
.ew-words-label {
    font-size: 15px;
    color: #5a4a30;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}
.ew-words-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    min-height: 32px;
}
.ew-words-item {
    font-size: 17px;
    font-weight: 800;
    color: #3d3220;
    padding: 4px 0;
    letter-spacing: 1.5px;
}
.ew-words-empty {
    grid-column: 1 / -1;
    color: #b0a08a;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}
.ew-bar-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    position: relative;
}
.ew-bar-track {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: #c4a868;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.ew-bar-fill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    border-radius: 13px;
    background: linear-gradient(180deg, #6dce3e, #49a825);
    transition: width 0.5s ease;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.ew-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.ew-reward-badge {
    position: relative;
    width: 64px;
    height: 64px;
    margin-left: -10px;
    margin-top: -10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.ew-reward-badge .ew-badge-gems {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.ew-badge-ribbon {
    position: relative;
    margin-top: -8px;
    width: 48px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ew-badge-ribbon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.ew-badge-num {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ew-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}
.ew-btn {
    flex: 1;
    min-height: 52px;
    border: none;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
    transition: transform 0.08s, box-shadow 0.08s;
}
.ew-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}
.ew-btn-claim {
    background: linear-gradient(180deg, #74d637 0%, #4ca81e 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.ew-btn-claim-x2 {
    background: linear-gradient(180deg, #8a55d6 0%, #5f2eab 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.1;
    flex-direction: row;
}
.ew-btn-x2-icon {
    width: 28px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(180deg, #5ec3ff, #2e86d6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.ew-btn-x2-label {
    text-align: left;
}
.gem-burst-particle {
    position: fixed;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    z-index: 1200;
    pointer-events: none;
    transform: translate(0, 0) scale(0.6);
    opacity: 1;
    filter: drop-shadow(0 2px 6px rgba(76, 175, 80, 0.7));
}

/* ===== Combo Flyup ===== */
.combo-flyup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e94560, #ff6d00);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.5);
}

.combo-text {
    letter-spacing: 2px;
}

.combo-mult {
    font-size: 24px;
    color: #FFD54F;
}

/* ===== Hammer Target ===== */
.grid-cell.hammer-target {
    animation: hammer-pulse 1s infinite;
    cursor: pointer;
}

@keyframes hammer-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(255, 213, 79, 0); }
}

/* ===== Rocket ===== */
.rocket-anim {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    animation: rocket-fly 1.5s ease-in forwards;
    pointer-events: none;
}
@keyframes rocket-fly {
    0% { bottom: -60px; opacity: 1; transform: translateX(-50%) rotate(-5deg); }
    30% { opacity: 1; }
    50% { bottom: 50%; transform: translateX(-30%) rotate(0deg); }
    100% { bottom: 110%; opacity: 0; transform: translateX(-50%) rotate(5deg); }
}

/* ===== Booster Price Badge ===== */
.booster-price {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #2e7d32;
    padding: 0 5px;
    font-size: 10px;
    min-width: 28px;
}

.booster-price .icon-gem {
    width: 10px;
    height: 10px;
}

.booster-price .price-value {
    font-size: 10px;
    line-height: 1;
}

/* ===== Insufficient Coins Toast ===== */
.insufficient-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 20, 20, 0.85);
    color: #ff5252;
    padding: 8px 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.insufficient-toast .icon-gem {
    width: 14px;
    height: 14px;
}

/* ===== Coin Flyup ===== */
.coin-flyup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #4e2a00;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
}

.coin-flyup .icon-gem {
    width: 18px;
    height: 18px;
}

/* ===== Endgame Prize in Level Complete ===== */
.lc-prize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    margin: 8px auto;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 160, 0, 0.25));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.lc-prize-amount {
    font-size: 24px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== Welcome Gift Overlay ===== */
.welcome-gift-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.welcome-gift-card {
    background: linear-gradient(160deg, #1a1a2e, #16213e);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1);
}

.wg-icon { font-size: 48px; margin-bottom: 12px; }
.wg-icon .icon { width: 48px; height: 48px; }
.wg-title {
    font-size: 22px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    margin-bottom: 16px;
}
.wg-amount {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.wg-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.4;
}
.wg-btn {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}
.wg-btn:active { transform: scale(0.95); }

/* ===== Hint Reminder Pulse ===== */
.booster-btn.hint-reminder-pulse {
    animation: hint-pulse-glow 0.6s ease-in-out 5;
}

@keyframes hint-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 79, 0); }
    50% { box-shadow: 0 0 16px 4px rgba(255, 213, 79, 0.6); }
}

.game-bg::after {
    background: linear-gradient(180deg, rgba(11, 20, 41, 0.08) 0%, rgba(11, 20, 41, 0.18) 24%, rgba(11, 20, 41, 0.28) 46%, rgba(7, 12, 26, 0.58) 100%);
}

.game-topbar {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: calc(var(--total-top, 0px) + 12px) 14px 0;
}

.game-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-stat-pill {
    min-height: 34px;
    padding: 6px 14px 6px 30px;
    border-radius: 999px;
    background: rgba(4, 8, 20, 0.58);
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-stat-pill .icon-gem,
.game-stat-pill .icon-credit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    object-fit: contain;
}

.game-stat-pill .icon-gem {
    left: -11px;
    width: 40px;
    height: 40px;
}

.game-stat-pill .icon-credit {
    left: -7px;
    width: 32px;
    height: 32px;
}

.game-settings-btn {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    border-radius: 21px;
    background: rgba(4, 8, 20, 0.58);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.grid-area {
    padding: 6px 14px 0;
}

.grid-container {
    gap: 4px;
}

.grid-cell {
    border-radius: 8px;
}

.grid-cell.filled {
    background: rgba(245, 248, 255, 0.82);
    color: rgba(44, 74, 129, 0.2);
    border: 1px solid rgba(149, 175, 224, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 2px 6px rgba(38, 67, 118, 0.14);
}

.grid-cell.revealed {
    background: var(--set-color, #5d7ad6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 -3px 0 rgba(28, 48, 98, 0.22);
}

.grid-cell.hint-revealed {
    background: rgba(109, 148, 227, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.46);
}

.words-found {
    min-height: 14px;
}

.word-dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.3);
}

.word-dot.found {
    background: rgba(255, 255, 255, 0.95);
}

.extra-word-bar {
    padding: 2px 0 6px;
}

.extra-word-seg {
    width: 10px;
    height: 10px;
    background: rgba(8, 14, 29, 0.42);
    border-color: rgba(255, 255, 255, 0.32);
}

.extra-word-seg.filled {
    background: #ffd75a;
    border-color: #ffd75a;
}

.word-preview {
    min-height: 42px;
}

.preview-letter {
    background: rgba(19, 34, 73, 0.78);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 18px rgba(7, 13, 30, 0.18);
}

.wheel-area {
    padding: 8px 12px calc(var(--safe-bottom, 0px) + 18px);
    position: relative;
    flex-direction: column;
}

.game-wheel-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: start;
    gap: 6px;
    position: relative;
}

.booster-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    padding-top: 8px;
}

.booster-column-left {
    justify-content: flex-start;
}

.booster-column-right {
    justify-content: flex-start;
}

.wheel-bottom-left {
    position: absolute;
    left: 1px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.wheel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.wheel-container {
    --wheel-letter-size: 56px;
    --wheel-hit-radius: 40px;
    --wheel-line-width: 7px;
    width: min(68vw, 42vh, 304px);
    background: rgba(255, 255, 255, 0.72);
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(6, 11, 24, 0.15);
}

.wheel-letter {
    width: var(--wheel-letter-size, 56px);
    height: var(--wheel-letter-size, 56px);
    font-size: calc(var(--wheel-letter-size, 56px) * 0.54);
    color: #475a87;
}

.wheel-letter.selected {
    background: var(--set-color, #5d7ad6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.wheel-letter.tutorial-trace {
    color: #111;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.wheel-center-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 51, 97, 0.08);
}

.booster-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: radial-gradient(circle at 50% 40%, rgba(30, 45, 80, 0.88), rgba(15, 22, 45, 0.94));
    box-shadow: 0 4px 16px rgba(5, 10, 24, 0.3);
}

.booster-btn.active {
    border-color: #ffd761;
    box-shadow: 0 0 0 3px rgba(255, 215, 97, 0.18), 0 14px 28px rgba(5, 10, 24, 0.24);
}

.booster-btn.disabled {
    opacity: 0.42;
}

.booster-badge {
    top: auto;
    right: -6px;
    bottom: -6px;
    min-width: 32px;
    height: 22px;
    border-radius: 999px;
    padding: 0 6px;
    background: #1d2948;
    border: 2px solid rgba(255, 255, 255, 0.76);
    font-size: 11px;
    gap: 2px;
}

/* ===== APK gameplay parity overrides ===== */
.game-topbar {
    padding: calc(var(--total-top, 0px) + 10px) 14px 0;
}

.game-topbar-left {
    gap: 8px;
}

.game-topbar-actions {
    gap: 6px;
}

.game-settings-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 12, 24, 0.5);
}

.game-stat-pill {
    min-height: 34px;
    padding: 4px 14px 4px 34px;
    font-size: 14px;
}

.game-stat-pill .icon-gem,
.game-stat-pill .icon-credit {
    width: auto;
    max-width: none;
    object-fit: contain;
}

.game-stat-pill .icon-gem {
    left: -10px;
    width: 40px;
    height: 40px;
}

.game-stat-pill .icon-credit {
    left: -6px;
    width: 34px;
    height: 34px;
}

.game-bg {
    background-position: center 52%;
}

.grid-area {
    flex: 0 0 44%;
    align-items: flex-start;
    padding: 18px 14px 0;
}

.grid-container {
    gap: 5px;
    margin-top: 0;
}

.grid-cell {
    border-radius: 7px;
    position: relative;
}

.grid-cell.filled {
    background: rgba(248, 250, 255, 0.96);
    color: rgba(60, 72, 96, 0.16);
    border: 1px solid rgba(214, 220, 236, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 2px 8px rgba(38, 67, 118, 0.1);
}

.grid-cell.revealed {
    background: linear-gradient(180deg, #8b76e3 0%, #705dd0 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 -3px 0 rgba(46, 33, 100, 0.24);
    text-shadow: 0 1px 0 rgba(46, 33, 100, 0.18);
}

.grid-cell.hint-revealed {
    background: linear-gradient(180deg, #99b0ff 0%, #7892f0 100%);
    color: #fff;
}

.words-found {
    min-height: 18px;
    padding: 8px 0 2px;
}

.word-dot {
    width: 10px;
    height: 10px;
}

.extra-word-bar {
    padding: 0 0 6px;
}

.word-preview {
    min-height: 46px;
}

.preview-letter {
    width: 36px;
    height: 40px;
    border-radius: 8px;
}

.wheel-area {
    margin-top: auto;
    padding: 0 12px calc(var(--safe-bottom, 0px) + 26px);
}

.game-wheel-shell {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: start;
    gap: 10px;
    position: relative;
}

.booster-column {
    gap: 14px;
}

.wheel-container {
    --wheel-letter-size: 56px;
    --wheel-hit-radius: 40px;
    --wheel-line-width: 8px;
    width: min(64vw, 38vh, 300px);
    border-width: 6px;
    box-shadow: 0 18px 34px rgba(6, 11, 24, 0.22);
}

.wheel-letter {
    width: var(--wheel-letter-size, 56px);
    height: var(--wheel-letter-size, 56px);
    font-size: calc(var(--wheel-letter-size, 56px) * 0.58);
    color: #111827;
    font-weight: 700;
}

.wheel-center-dot {
    width: 46px;
    height: 46px;
    background: rgba(31, 51, 97, 0.06);
}

.wheel-letter.selected {
    background: transparent;
    box-shadow: none;
    color: #111827;
    transform: scale(1.03);
}

.booster-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.booster-badge {
    right: -4px;
    bottom: -8px;
    min-width: 32px;
    height: 22px;
    font-size: 11px;
}

body[data-parity-preset="gameplay_normal_ru"] .grid-area,
body[data-parity-preset="game_tutorial_swipe_ru"] .grid-area,
body[data-parity-preset="daily_gameplay_ru"] .grid-area {
    flex-basis: 38%;
}

body[data-parity-preset="gameplay_normal_ru"] .wheel-area,
body[data-parity-preset="game_tutorial_swipe_ru"] .wheel-area,
body[data-parity-preset="daily_gameplay_ru"] .wheel-area {
    margin-top: 2px;
    padding: 0 8px calc(var(--safe-bottom, 0px) + 42px);
}

body[data-parity-preset="gameplay_normal_ru"] .grid-area {
    padding-top: 68px;
    align-items: flex-start;
}

body[data-parity-preset="gameplay_normal_ru"] .grid-container {
    gap: 5px;
    transform: translateX(6px) scale(1.22);
    transform-origin: center top;
}

body[data-parity-preset="gameplay_normal_ru"] .wheel-container {
    --wheel-letter-size: 54px;
    --wheel-hit-radius: 42px;
    --wheel-line-width: 9px;
    width: min(62vw, 37vh, 286px);
    height: min(62vw, 37vh, 286px);
}

body[data-parity-preset="gameplay_normal_ru"] .words-found,
body[data-parity-preset="gameplay_normal_ru"] .word-preview,
body[data-parity-preset="game_tutorial_swipe_ru"] .words-found,
body[data-parity-preset="game_tutorial_swipe_ru"] .word-preview {
    display: none;
}

body[data-parity-preset="gameplay_normal_ru"] .game-wheel-shell,
body[data-parity-preset="game_tutorial_swipe_ru"] .game-wheel-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 286px;
}

body[data-parity-preset="gameplay_normal_ru"] .booster-column,
body[data-parity-preset="game_tutorial_swipe_ru"] .booster-column {
    position: absolute;
    top: 0;
    padding-bottom: 0;
    gap: 10px;
    z-index: 5;
}

body[data-parity-preset="gameplay_normal_ru"] .booster-column-left,
body[data-parity-preset="game_tutorial_swipe_ru"] .booster-column-left {
    left: 2px;
}

body[data-parity-preset="gameplay_normal_ru"] .booster-column-right,
body[data-parity-preset="game_tutorial_swipe_ru"] .booster-column-right {
    right: 2px;
}

body[data-parity-preset="gameplay_normal_ru"] .booster-rocket,
body[data-parity-preset="game_tutorial_swipe_ru"] .booster-rocket {
    display: none !important;
}

body[data-parity-preset="gameplay_normal_ru"] .booster-btn,
body[data-parity-preset="game_tutorial_swipe_ru"] .booster-btn {
    width: 60px;
    height: 60px;
}

body[data-parity-preset="gameplay_normal_ru"] .wheel-bottom-left,
body[data-parity-preset="game_tutorial_swipe_ru"] .wheel-bottom-left {
    left: 2px;
    bottom: 0;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .game-bg {
    background-position: center 40%;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .grid-area {
    padding-top: 72px;
    align-items: flex-start;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .grid-container {
    gap: 5px;
    transform: translateX(6px) scale(1.2);
    transform-origin: center top;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .wheel-container {
    --wheel-letter-size: 56px;
    --wheel-hit-radius: 44px;
    --wheel-line-width: 10px;
    width: min(63vw, 37vh, 290px);
    height: min(63vw, 37vh, 290px);
}

body[data-parity-preset="game_tutorial_swipe_ru"] .tutorial-overlay {
    background: radial-gradient(
        circle at var(--cut-cx, 50%) var(--cut-cy, 75%),
        transparent var(--cut-r, 108px),
        rgba(0, 0, 0, 0.56) calc(var(--cut-r, 108px) + 4px)
    );
    padding-top: 0;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .tutorial-tooltip {
    position: fixed;
    left: 50%;
    top: 34.5%;
    transform: translateX(-50%);
    width: min(88vw, 940px);
    max-width: min(88vw, 940px);
    padding: 18px 30px;
    font-size: 14px;
    line-height: 1.2;
    border-width: 2px;
    border-radius: 14px;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .tutorial-msg {
    max-width: none;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .tutorial-hand {
    transform: translate(8px, 6px) scale(1.68);
}

.game-parity-utility {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.game-parity-utility-left {
    left: 16px;
    bottom: calc(var(--safe-bottom, 0px) + 18px);
}

.game-parity-utility-right {
    right: 14px;
    bottom: calc(var(--safe-bottom, 0px) + 20px);
}

.game-parity-chip {
    min-width: 58px;
    min-height: 24px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 12px rgba(5, 10, 24, 0.14);
}

.game-parity-chip-label {
    background: rgba(255, 255, 255, 0.96);
    color: #7d6408;
    border: 2px solid rgba(221, 186, 45, 0.88);
}

.game-parity-chip-timer {
    min-width: 82px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    background: rgba(94, 96, 245, 0.96);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 22px rgba(27, 30, 82, 0.22);
}

.game-parity-btn {
    width: 60px;
    height: 60px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 18px rgba(5, 10, 24, 0.2);
    pointer-events: none;
}

.game-parity-btn-label {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    position: relative;
}

.game-parity-btn-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
}

.game-parity-btn-theme-brand {
    border-radius: 50%;
    background: rgba(7, 12, 26, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-parity-btn-theme-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.game-parity-btn-theme-gift {
    width: 64px;
    height: 64px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.game-parity-cell-decor {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.game-parity-cell-decor-sun img {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14));
}

.game-parity-top-btn {
    pointer-events: none;
    position: relative;
    overflow: hidden;
    width: 46px;
    height: 46px;
}

.game-parity-top-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.game-parity-top-value {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5e4502;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

body[data-parity-preset="game_tutorial_swipe_ru"] .game-parity-utility-right {
    right: 14px;
    bottom: calc(var(--safe-bottom, 0px) + 70px);
}

body[data-parity-preset="game_tutorial_swipe_ru"] .game-parity-utility-left {
    left: 16px;
    bottom: calc(var(--safe-bottom, 0px) + 70px);
}

body[data-parity-preset="gameplay_normal_ru"] .game-parity-utility-right {
    right: 14px;
    bottom: calc(var(--safe-bottom, 0px) + 62px);
}

body[data-parity-preset="gameplay_normal_ru"] .game-parity-utility-left {
    left: 16px;
    bottom: calc(var(--safe-bottom, 0px) + 62px);
}

body[data-parity-preset="gameplay_normal_ru"] .game-parity-utility-left,
body[data-parity-preset="game_tutorial_swipe_ru"] .game-parity-utility-left {
    gap: 4px;
    align-items: flex-start;
}

body[data-parity-preset="gameplay_normal_ru"] .game-parity-utility-right,
body[data-parity-preset="game_tutorial_swipe_ru"] .game-parity-utility-right {
    gap: 2px;
    align-items: flex-end;
}

body[data-parity-preset="gameplay_normal_ru"] .game-stat-pill:first-child::after,
body[data-parity-preset="game_tutorial_swipe_ru"] .game-stat-pill:first-child::after {
    content: '!';
    position: absolute;
    left: 10px;
    top: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

body[data-parity-preset="postcard_reveal_ru"] .pc-card {
    width: min(50vw, 540px);
}

@media (max-width: 600px) {
    .grid-area {
        flex-basis: 42%;
        padding: 20px 14px 0;
    }

    .wheel-container {
        width: min(76vw, 320px);
    }

    .wheel-letter {
        width: 54px;
        height: 54px;
        font-size: 30px;
    }

    .booster-btn {
        width: 58px;
        height: 58px;
    }
}