/**
 * WordSearch (Ordletaren) - Word Search Puzzle Game Styles
 * Visual style matched to Ordgatan for consistency
 * Mobile-first, senior-friendly (45-70 yr audience)
 */

/* ==========================================================================
   CSS Variables — defined in the 2026 Realignment block below
   ========================================================================== */

/* ==========================================================================
   Body & Layout
   ========================================================================== */
.wordsearch-body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ws-text);
    background: var(--ws-background);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.ws-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.ws-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ws-card-bg);
    border-bottom: 1px solid var(--ws-border);
}

/* ==========================================================================
   Splash / Index Page
   ========================================================================== */
.ws-hero-card {
    background: var(--ws-card-bg);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.ws-theme-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ws-theme-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--ws-text);
    margin: 0 0 4px;
}

.ws-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ws-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ws-radius-sm);
    padding: 14px 48px;
    font-size: 18px;
    font-weight: 600;
    min-height: 48px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 141, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.ws-play-btn:hover {
    background: var(--ws-primary-dark);
    box-shadow: 0 4px 12px rgba(255, 141, 0, 0.35);
}

.ws-play-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(255, 141, 0, 0.25);
}

.ws-play-btn:focus-visible {
    outline: none;
    box-shadow: var(--ws-focus-ring), 0 2px 6px rgba(255, 141, 0, 0.3);
}

/* Status badges */
.ws-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.ws-status-badge--completed {
    background: #d4edda;
    color: #155724;
}

.ws-status-badge--in_progress {
    background: #fff3cd;
    color: #856404;
}

/* How-to-play collapsible */
.ws-how-to-play {
    background: var(--ws-card-bg);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.ws-how-to-play summary {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--ws-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--ws-touch-target);
    -webkit-tap-highlight-color: transparent;
}

.ws-how-to-play summary::-webkit-details-marker {
    display: none;
}

.ws-how-to-play summary::after {
    content: "\25BC";
    font-size: 12px;
    color: var(--ws-text-muted);
    transition: transform 0.2s ease;
}

.ws-how-to-play[open] summary::after {
    transform: rotate(180deg);
}

.ws-how-to-play .ws-how-to-play-content {
    padding: 0 20px 16px;
    color: var(--ws-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Leaderboard */
.ws-leaderboard {
    background: var(--ws-card-bg);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 16px 20px;
    margin-bottom: 16px;
    list-style: none;
}

.ws-leaderboard-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-text);
    margin: 0 0 12px;
}

.ws-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ws-border-light);
}

.ws-leaderboard-item:last-child {
    border-bottom: none;
}

.ws-leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ws-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--ws-text-muted);
    flex-shrink: 0;
}

.ws-leaderboard-rank--top {
    background: #fff3cd;
    color: #856404;
}

.ws-leaderboard-username {
    flex: 1;
    font-size: 15px;
    color: var(--ws-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-leaderboard-points {
    font-weight: 600;
    font-size: 14px;
    color: var(--ws-primary);
}

/* Archive list */
.ws-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-archive-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ws-card-bg);
    border-radius: var(--ws-radius-sm);
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
    min-height: var(--ws-touch-target);
}

.ws-archive-item:hover {
    box-shadow: var(--ws-shadow);
}

.ws-archive-date {
    font-size: 13px;
    color: var(--ws-text-muted);
    flex-shrink: 0;
    min-width: 70px;
}

.ws-archive-theme {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
    color: var(--ws-text);
}

.ws-archive-status {
    flex-shrink: 0;
}

/* ==========================================================================
   Game Grid
   ========================================================================== */
.ws-grid-wrapper {
    display: flex;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding: 8px 0;
}

.ws-grid {
    display: inline-grid;
    gap: 1px;
    background: var(--ws-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ws-cell {
    background: var(--ws-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--ws-text);
    cursor: pointer;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: var(--ws-touch-target);
    min-height: var(--ws-touch-target);
}

.ws-cell:hover {
    background: #f0f4f8;
}

.ws-cell--selecting {
    background: var(--ws-selecting-bg);
    box-shadow: inset 0 0 0 2px var(--ws-selecting-border);
    z-index: 1;
}

.ws-cell--found {
    color: var(--ws-text);
    font-weight: 700;
}

/* Rotating found-word background colors */
.ws-cell--found-1 { background: var(--ws-found-1); }
.ws-cell--found-2 { background: var(--ws-found-2); }
.ws-cell--found-3 { background: var(--ws-found-3); }
.ws-cell--found-4 { background: var(--ws-found-4); }
.ws-cell--found-5 { background: var(--ws-found-5); }

/* Wrong selection shake */
.ws-cell--wrong {
    animation: ws-shake 0.3s ease;
}

@keyframes ws-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

@keyframes ws-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.ws-cell--pop {
    animation: ws-pop 0.3s ease;
}

@keyframes ws-chip-found {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.ws-cell--flash-wrong {
    background: #f8d7da;
    transition: background 0.3s ease;
}

/* ==========================================================================
   Word List
   ========================================================================== */
.ws-word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    justify-content: center;
}

.ws-word-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: #e9ecef;
    color: var(--ws-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 32px;
}

.ws-word-chip--found {
    background: #D4EDDA;
    color: #155724;
    text-decoration: line-through;
    animation: ws-chip-found 0.35s ease;
}

/* ==========================================================================
   Timer & Action Bar
   ========================================================================== */
.ws-action-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ws-card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--ws-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 48px;
}

.ws-timer {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ws-back-btn,
.ws-help-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--ws-text-muted);
    min-width: var(--ws-touch-target);
    min-height: var(--ws-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ws-back-btn:hover,
.ws-help-btn:hover {
    background: var(--ws-background);
    color: var(--ws-text);
}

.ws-back-btn:focus-visible,
.ws-help-btn:focus-visible {
    outline: none;
    box-shadow: var(--ws-focus-ring);
}

/* ==========================================================================
   Progress Counter
   ========================================================================== */
.ws-progress {
    text-align: center;
    font-size: 16px;
    color: var(--ws-text-muted);
    padding: 8px 0;
}

.ws-progress-count {
    font-weight: 700;
    color: var(--ws-text);
}

/* ==========================================================================
   Completion Modal
   ========================================================================== */
.ws-completion-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ws-completion-modal {
    background: var(--ws-card-bg);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: ws-modal-in 0.3s ease;
    box-shadow: var(--ws-shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes ws-modal-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ws-completion-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ws-success);
    margin: 0 0 16px;
}

.ws-completion-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--ws-border-light);
}

.ws-completion-stat:last-of-type {
    border-bottom: none;
}

.ws-completion-stat-label {
    color: var(--ws-text-muted);
    font-size: 15px;
}

.ws-completion-stat-value {
    font-weight: 600;
    color: var(--ws-text);
    font-size: 15px;
}

.ws-share-box {
    background: var(--ws-background);
    border-radius: var(--ws-radius-sm);
    padding: 16px;
    margin: 16px 0;
    text-align: left;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 13px;
    white-space: pre-line;
    color: var(--ws-text);
    line-height: 1.5;
    border: 1px solid var(--ws-border);
}

.ws-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ws-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ws-radius-sm);
    padding: 10px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    min-height: var(--ws-touch-target);
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ws-share-btn:hover {
    background: var(--ws-primary-dark);
}

.ws-share-btn:active {
    transform: scale(0.97);
}

.ws-share-btn:focus-visible {
    outline: none;
    box-shadow: var(--ws-focus-ring);
}

.ws-cross-promo {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ws-border);
    font-size: 14px;
    color: var(--ws-text-muted);
}

.ws-cross-promo a {
    color: var(--ws-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ws-cross-promo a:hover {
    color: var(--ws-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Streak Badge
   ========================================================================== */
.ws-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.hidden {
    display: none !important;
}

/* ==========================================================================
   Responsive - Tablet & Desktop
   ========================================================================== */
@media (min-width: 768px) {
    .ws-container {
        max-width: 720px;
        padding: 24px;
    }

    .ws-grid-wrapper {
        padding: 16px 0;
    }

    .ws-cell {
        font-size: 18px;
        min-width: 48px;
        min-height: 48px;
    }

    .ws-word-list {
        padding: 20px 0;
        gap: 10px;
    }

    .ws-word-chip {
        font-size: 15px;
        padding: 8px 18px;
    }

    .ws-hero-card {
        padding: 32px;
    }

    .ws-theme-name {
        font-size: 22px;
    }

    .ws-play-btn {
        font-size: 20px;
        padding: 16px 56px;
    }

    .ws-completion-modal {
        padding: 40px;
    }

    .ws-completion-title {
        font-size: 28px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .ws-container {
        max-width: 800px;
    }
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ws-cell,
    .ws-word-chip,
    .ws-play-btn,
    .ws-share-btn,
    .ws-back-btn,
    .ws-help-btn {
        transition: none;
    }

    .ws-cell--wrong {
        animation: none;
    }

    .ws-cell--pop,
    .ws-word-chip--found {
        animation: none;
    }

    .ws-completion-modal {
        animation: none;
    }
}

/* High contrast / forced colors */
@media (forced-colors: active) {
    .ws-cell--selecting {
        outline: 2px solid Highlight;
    }

    .ws-cell--found {
        outline: 1px solid CanvasText;
    }

    .ws-play-btn,
    .ws-share-btn {
        border: 2px solid ButtonText;
    }
}

/* Focus-visible for keyboard users */
.ws-cell:focus-visible {
    outline: none;
    box-shadow: var(--ws-focus-ring);
    z-index: 2;
}

.ws-word-chip:focus-visible {
    outline: none;
    box-shadow: var(--ws-focus-ring);
}

/* ==========================================================================
   2026 Realignment - WordSearch UI matched to Ordgatan components
   ========================================================================== */

:root {
    --ws-primary: #ff8d00;
    --ws-primary-dark: #e67e00;
    --ws-primary-light: #ffa033;
    --ws-success: #10b981;
    --ws-success-dark: #047857;
    --ws-background: #f8fafc;
    --ws-surface: #ffffff;
    --ws-surface-soft: #fff8f2;
    --ws-text: #1f2937;
    --ws-text-muted: #6b7280;
    --ws-border: #ffe0c0;
    --ws-border-strong: #ffc48a;
    --ws-border-light: #f5e5d3;
    --ws-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    --ws-shadow-lg: 0 26px 64px rgba(15, 23, 42, 0.16);
    --ws-gradient: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
    --ws-radius: 20px;
    --ws-radius-sm: 12px;
    --ws-focus-ring: 0 0 0 3px rgba(255, 141, 0, 0.18);
}

.wordsearch-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--ws-gradient);
    color: var(--ws-text);
}

.hidden,
.ws-modal.hidden {
    display: none !important;
}

/* =====================================================================
   Landing / Index Page — Lagom theme (matched to /idag daily-hub)
   Sizes in pt, min 12pt. Font: Open Sans. Max-width 720px single column.
   ===================================================================== */
.ws-landing {
    max-width: 720px;
    margin: 24px auto;
    padding: 0 16px 48px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.ws-landing h1,
.ws-landing h2,
.ws-landing h3 {
    font-family: 'Open Sans', sans-serif;
}

/* Header */
.ws-landing-header {
    text-align: center;
    margin-bottom: 24px;
}

.ws-landing-title {
    font-size: 22pt;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ws-landing-title i {
    color: #e8850c;
    margin-right: 8px;
}

.ws-landing-subtitle {
    font-size: 12pt;
    color: #555;
    margin: 6px 0 0;
}

/* Streak at risk banner */
.ws-streak-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fffbf5 0%, #fff5e6 100%);
    border-radius: 10px;
    border: 1px solid #f0e6d6;
    font-size: 12pt;
    color: #333;
}

.ws-streak-fire-icon {
    font-size: 16pt;
    color: #e8850c;
}

/* Hero card */
.ws-hero-card {
    background: #fff;
    border: 2px solid #f5a623;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fffbf5 0%, #fff 40%);
}

.ws-hero-card__kicker {
    display: inline-block;
    font-size: 10pt;
    font-weight: 600;
    color: #fff;
    background: #f5a623;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.ws-hero-card__kicker i {
    margin-right: 4px;
}

.ws-hero-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.ws-hero-card__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16pt;
    font-weight: 700;
    color: #333;
}

.ws-hero-card__meta {
    font-size: 12pt;
    font-weight: 600;
    color: #666;
}

.ws-theme-icon {
    font-size: 18pt;
}

/* CTA button */
.ws-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13pt;
    font-weight: 600;
    margin-top: 12px;
}

/* Completed card */
.ws-completed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.ws-completed-icon {
    font-size: 28pt;
    color: #4caf50;
}

.ws-completed-title {
    margin: 0;
    font-size: 16pt;
    font-weight: 700;
    color: #333;
}

.ws-completed-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.ws-completed-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.ws-completed-stat__value {
    font-size: 16pt;
    font-weight: 700;
    color: #e8850c;
}

.ws-completed-stat__value--success {
    color: #4caf50;
}

.ws-completed-stat__label {
    font-size: 12pt;
    color: #666;
}

.ws-completed-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ws-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    font-size: 12pt;
    font-weight: 700;
    color: #8a5a00;
}

.ws-streak-multiplier,
.ws-streak-multiplier-badge {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12pt;
    font-weight: 600;
}

.ws-next-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12pt;
    color: #555;
}

.ws-countdown-timer {
    font-variant-numeric: tabular-nums;
    color: #333;
    font-weight: 700;
}

.ws-completed-actions {
    width: 100%;
}

.ws-completed-actions .btn {
    width: 100%;
    font-size: 12pt;
}

/* In-progress chip */
.ws-in-progress-chip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #f0e6d6;
    background: #fffbf5;
}

.ws-in-progress-chip__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12pt;
    font-weight: 600;
    color: #333;
}

.ws-state-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e8850c;
}

.ws-progress-line {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.ws-progress-line span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #e8850c, #f5a623);
    transition: width 0.4s ease;
}

/* New puzzle preview */
.ws-new-puzzle-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    text-align: center;
}

.ws-grid-preview {
    color: #e8850c;
    opacity: 0.6;
}

.ws-new-puzzle-preview p {
    margin: 0;
    font-size: 12pt;
    color: #555;
}

/* How to play */
.ws-how-to-play {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.ws-section-title {
    font-size: 14pt;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

.ws-section-title i {
    color: #e8850c;
    margin-right: 6px;
}

.ws-steps {
    display: grid;
    gap: 12px;
}

.ws-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
}

.ws-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fffbf5;
    border: 1px solid #f0e6d6;
    color: #e8850c;
    font-weight: 700;
    font-size: 12pt;
}

.ws-step-content strong {
    display: block;
    font-size: 12pt;
    color: #333;
    margin-bottom: 2px;
}

.ws-step-content p {
    margin: 0;
    font-size: 12pt;
    color: #555;
    line-height: 1.5;
}

/* Sidebar cards (stacked in single column) */
.ws-sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ws-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14pt;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.ws-sidebar-header i {
    color: #e8850c;
}

.ws-sidebar-body {
    padding: 16px;
}

.ws-sidebar-footer {
    padding: 0 16px 16px;
}

.ws-sidebar-footer a {
    font-size: 12pt;
    color: #e8850c;
    text-decoration: none;
    font-weight: 600;
}

.ws-sidebar-footer a:hover {
    color: #c97208;
    text-decoration: underline;
}

/* Streak display */
.ws-streak-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ws-streak-number {
    font-size: 30pt;
    font-weight: 700;
    line-height: 1;
    color: #e8850c;
}

.ws-streak-unit {
    font-size: 12pt;
    font-weight: 600;
    color: #555;
}

.ws-streak-best {
    font-size: 12pt;
    color: #666;
}

/* Leaderboard & puzzle lists */
.ws-leaderboard-list,
.ws-puzzle-list {
    display: grid;
    gap: 8px;
}

.ws-leaderboard-row,
.ws-puzzle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: border-color 0.2s;
}

.ws-leaderboard-row:hover,
.ws-puzzle-row:hover {
    border-color: #f5a623;
    text-decoration: none;
    color: #333;
}

.ws-rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #333;
    font-weight: 700;
    font-size: 12pt;
    flex-shrink: 0;
}

.ws-rank-medal--gold { background: #fde68a; }
.ws-rank-medal--silver { background: #e5e7eb; }
.ws-rank-medal--bronze { background: #fdba74; }
.ws-rank-medal--default { background: #f3f4f6; }

.ws-leaderboard-name {
    flex: 1;
    font-size: 12pt;
    font-weight: 600;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-leaderboard-points {
    font-size: 12pt;
    font-weight: 700;
    color: #e8850c;
    flex-shrink: 0;
}

.ws-puzzle-date {
    font-size: 12pt;
    color: #666;
    flex-shrink: 0;
    min-width: 40px;
}

.ws-puzzle-theme {
    flex: 1;
    font-size: 12pt;
    font-weight: 600;
    color: #333;
}

.ws-puzzle-status {
    font-size: 12pt;
    flex-shrink: 0;
}

/* No puzzle state */
.ws-no-puzzle {
    text-align: center;
    padding: 32px 16px;
    font-size: 12pt;
    color: #555;
    background: #fffbf5;
    border: 1px solid #f0e6d6;
    border-radius: 8px;
}

.ws-no-puzzle i {
    margin-right: 6px;
    color: #e8850c;
}

/* Puzzle difficulty tag */
.ws-puzzle-difficulty {
    font-size: 12pt;
    color: #666;
    flex-shrink: 0;
}

/* Pagination */
.ws-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ws-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12pt;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    transition: border-color 0.2s;
}

.ws-pagination-item:hover {
    border-color: #f5a623;
    text-decoration: none;
    color: #333;
}

.ws-pagination-item--active {
    background: #e8850c;
    color: #fff;
    border-color: #e8850c;
}

/* Responsive */
@media (max-width: 576px) {
    .ws-landing {
        padding: 0 12px 32px;
    }

    .ws-landing-title {
        font-size: 18pt;
    }

    .ws-completed-stats {
        grid-template-columns: 1fr;
    }
}

/* Dedicated gameplay */
.ws-game {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #fff8f2 0%, #f8fafc 100%);
    position: relative;
}

.ws-action-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 224, 192, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.ws-action-bar__nav {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ws-action-bar__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ws-text);
    text-align: center;
}

.ws-action-bar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-back-btn,
.ws-help-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--ws-border);
    background: #fff;
    color: var(--ws-text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

.ws-back-btn:hover,
.ws-help-btn:hover {
    background: var(--ws-surface-soft);
    color: var(--ws-primary-dark);
}

.ws-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ws-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ws-text);
}

.ws-timer__value {
    font-variant-numeric: tabular-nums;
}

.ws-theme-banner {
    width: min(1120px, calc(100% - 24px));
    margin: 18px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ws-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    color: var(--ws-text);
    font-weight: 700;
}

.ws-theme-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 141, 0, 0.12);
}

.ws-theme-banner__label {
    color: var(--ws-text-muted, #6b7280);
    font-weight: 600;
}

.ws-main {
    width: min(1120px, 100%);
    margin: 20px auto 0;
    padding: 0 12px 28px;
    display: grid;
    gap: 20px;
}

.ws-grid-wrapper,
.ws-word-list-section {
    background: #fff;
    border: 1px solid var(--ws-border);
    border-radius: 24px;
    box-shadow: var(--ws-shadow);
}

.ws-grid-wrapper {
    min-height: 320px;
    padding: 18px;
    align-items: center;
}

.ws-grid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
}

.ws-grid {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ws-border);
}

.ws-cell {
    border: 1px solid #f1d6b7;
    border-radius: 8px;
    background: #fff;
    color: var(--ws-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s, transform 0.15s;
}

.ws-cell:hover {
    background: #fff7ef;
    transform: translateY(-1px);
}

.ws-cell--selecting {
    background: #dbeafe !important;
    box-shadow: inset 0 0 0 2px #60a5fa;
}

.ws-word-list-section {
    padding: 20px;
}

.ws-word-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ws-word-list-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ws-text);
}

.ws-word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ws-word-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: var(--ws-text);
    font-size: 1rem;
    font-weight: 700;
}

.ws-word-chip--found {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
    text-decoration: none;
    animation: ws-chip-found 0.35s ease;
}

.ws-word-chip--found::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.3;
    transform: translateY(-50%);
}

.ws-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ws-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ws-modal__content {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--ws-shadow-lg);
}

.ws-modal__content--completion {
    width: min(560px, 100%);
    text-align: center;
}

.ws-modal__content > .ws-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--ws-border);
    background: #fff;
    color: var(--ws-text);
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ws-modal__title {
    margin: 0 0 18px;
    padding-right: 48px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ws-text);
}

.ws-modal__body {
    color: var(--ws-text-muted);
}

.ws-modal__body p {
    line-height: 1.7;
}

.ws-modal__footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.ws-modal__footer .ws-modal__close,
.ws-share-btn,
.ws-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-light) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(255, 141, 0, 0.22);
    text-decoration: none;
}

.ws-modal__footer .ws-modal__close:hover,
.ws-share-btn:hover,
.ws-btn-back:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ws-primary-dark) 0%, var(--ws-primary) 100%);
}

.ws-completion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(255, 141, 0, 0.12));
    color: var(--ws-success);
    font-size: 1.5rem;
}

.ws-completion-title {
    margin: 0 0 20px;
    color: var(--ws-text);
}

.ws-completion-share {
    margin: 20px 0 14px;
    display: flex;
    justify-content: center;
}

.ws-share-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.ws-share-btn-copy,
.ws-share-btn-whatsapp,
.ws-share-btn-facebook {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.ws-share-btn-copy:hover,
.ws-share-btn-whatsapp:hover,
.ws-share-btn-facebook:hover {
    transform: scale(1.08);
}

.ws-share-btn-copy:active,
.ws-share-btn-whatsapp:active,
.ws-share-btn-facebook:active {
    transform: scale(0.95);
}

.ws-share-btn-copy {
    background: var(--ws-primary);
}

.ws-share-btn-whatsapp {
    background: #25d366;
}

.ws-share-btn-facebook {
    background: #1877f2;
}

.ws-completion-promo {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--ws-border);
    background: var(--ws-surface-soft);
}

.ws-completion-promo__label {
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ws-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ws-completion-promo__links {
    display: flex;
    justify-content: center;
}

.ws-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--ws-border-strong);
    background: #fff;
    color: var(--ws-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.ws-promo-link:hover {
    background: #fff;
    color: var(--ws-primary-dark);
    text-decoration: none;
}

/* Directions visual — help modal */
.ws-directions-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.ws-dir-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--ws-border-light, #e5e7eb);
}

.ws-dir-arrow {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--ws-primary, #ff8d00);
}

.ws-dir-item span:last-child {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ws-text-muted, #6b7280);
}

.ws-completion-footer {
    margin-top: 18px;
}

.ws-btn-back {
    width: 100%;
}

@media (min-width: 992px) {
    .ws-main {
        display: block;
        width: 100%;
        max-width: 1100px;
        margin: 20px auto 0;
    }

    .ws-theme-banner {
        display: flex;
        max-width: 1100px;
    }
}

@media (max-width: 991px) {
    .ws-streak-banner__content,
    .ws-hero-card__title-row {
        align-items: flex-start;
    }

    .ws-streak-banner__content {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .ws-landing {
        padding-left: 4px;
        padding-right: 4px;
    }

    .ws-landing .card-body,
    .ws-sidebar-body,
    .tutorial-content {
        padding: 18px;
    }

    .ws-hero-card__header,
    .tutorial-header,
    .ws-sidebar-header {
        padding: 18px;
    }

    .ws-completed-stats,
    .ws-completion-stats {
        grid-template-columns: 1fr;
    }

    .ws-action-bar {
        padding: 10px;
    }

    .ws-action-bar__title {
        font-size: 1rem;
    }

    .ws-timer {
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .ws-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ws-grid-wrapper,
    .ws-word-list-section,
    .ws-modal__content {
        border-radius: 22px;
    }

    .ws-modal__content {
        padding: 22px 18px 18px;
    }

    .ws-grid-wrapper {
        padding: 12px;
    }

    .ws-leaderboard-row,
    .ws-puzzle-row {
        padding: 14px 16px;
    }

    .ws-leaderboard-name {
        font-size: 0.95rem;
    }

    .ws-leaderboard-points {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ws-grid-wrapper {
        padding: 10px;
        border-radius: 18px;
    }

    .ws-word-list-section {
        padding: 14px;
        border-radius: 18px;
    }

    .ws-word-chip {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 1rem;
    }

    .ws-word-list-title {
        font-size: 1.05rem;
    }

    .ws-main {
        padding-left: 6px;
        padding-right: 6px;
        margin-top: 14px;
        gap: 14px;
    }

    .ws-theme-banner {
        margin: 12px auto 0;
        width: calc(100% - 12px);
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Hint System
   ========================================================================== */

.ws-hint-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff3e0;
    color: var(--ws-primary, #ff8d00);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ws-hint-btn:hover {
    background: #ffe0b2;
    transform: scale(1.05);
}

.ws-hint-btn:active {
    transform: scale(0.95);
}

.ws-hint-btn--empty {
    opacity: 0.5;
    color: var(--ws-text-muted, #6b7280);
    background: #f3f4f6;
}

.ws-hint-counter {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ws-primary, #ff8d00);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Hinted cell pulse */
.ws-cell--hinted {
    animation: ws-hint-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 2px var(--ws-primary, #ff8d00);
    border-radius: 4px;
    z-index: 2;
    position: relative;
}

@keyframes ws-hint-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--ws-primary, #ff8d00); }
    50% { box-shadow: 0 0 0 5px rgba(255, 141, 0, 0.4); }
}

/* ==========================================================================
   Bottom Bar — sticky word list toggle
   ========================================================================== */

.ws-main--with-bottom-bar {
    padding-bottom: 70px;
}

.ws-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--ws-border, #ffe0c0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.ws-bottom-bar--flash {
    box-shadow: 0 -4px 20px rgba(255, 141, 0, 0.3);
}

.ws-bottom-bar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ws-text, #1f2937);
    -webkit-tap-highlight-color: transparent;
}

.ws-bottom-bar__counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.ws-bottom-bar__counter strong {
    color: var(--ws-primary, #ff8d00);
    font-size: 1.05rem;
}

.ws-bottom-bar__toggle i {
    color: var(--ws-text-muted, #6b7280);
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.ws-bottom-bar__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 16px;
}

.ws-bottom-bar__panel--open {
    max-height: 280px;
    padding: 0 16px 16px;
    overflow-y: auto;
}

/* --- Desktop sidebar (hidden on mobile) --- */
.ws-sidebar-desktop {
    display: none;
}

@media (min-width: 992px) {
    /* Two-column layout: grid left, sidebar right */
    .ws-game-layout {
        display: flex;
        gap: 24px;
        align-items: flex-start;
        justify-content: center;
        max-width: 1100px;
        margin: 0 auto;
    }

    .ws-game-layout .ws-grid-wrapper {
        flex: 0 0 auto;
    }

    .ws-sidebar-desktop {
        display: block;
        flex: 1;
        min-width: 220px;
        max-width: 300px;
        position: sticky;
        top: 80px;
        background: #fff;
        border: 1px solid var(--ws-border, #ffe0c0);
        border-radius: var(--ws-radius, 20px);
        padding: 16px;
    }

    .ws-sidebar-theme {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ws-primary, #ff8d00);
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ws-border, #ffe0c0);
    }

    .ws-sidebar-progress {
        font-size: 0.95rem;
        color: var(--ws-text, #1f2937);
        margin-bottom: 14px;
    }

    .ws-sidebar-progress strong {
        color: var(--ws-primary, #ff8d00);
    }

    .ws-sidebar-desktop .ws-word-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Hide bottom bar on desktop — sidebar replaces it */
    .ws-bottom-bar {
        display: none;
    }

    .ws-main--with-bottom-bar {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Points Breakdown
   ========================================================================== */

.ws-completion-breakdown {
    width: 100%;
    max-width: 280px;
    margin: 16px auto;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.9rem;
}

.ws-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--ws-text-muted, #6b7280);
}

.ws-breakdown-row--time {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ws-text, #1f2937);
}

.ws-breakdown-divider {
    border-bottom: 1px solid var(--ws-border-light, #e5e7eb);
    margin: 6px 0;
}

.ws-breakdown-row--penalty {
    color: #ef4444;
}

.ws-breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    margin-top: 6px;
    border-top: 1px solid var(--ws-border, #ffe0c0);
    font-size: 1rem;
    color: var(--ws-text, #1f2937);
}

.ws-breakdown-total strong {
    color: var(--ws-primary, #ff8d00);
}

/* ==========================================================================
   Badges in Completion
   ========================================================================== */

.ws-completion-badges {
    width: 100%;
    max-width: 320px;
    margin: 14px auto;
    text-align: center;
}

.ws-completion-badges__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--ws-text, #1f2937);
}

.ws-completion-badges__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ws-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff3e0;
    border-radius: 20px;
    font-size: 0.85rem;
    animation: ws-badge-pop 0.5s ease-out;
}

.ws-badge-icon {
    font-size: 1.1rem;
}

.ws-badge-name {
    font-weight: 600;
    color: var(--ws-text, #1f2937);
}

@keyframes ws-badge-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Level Up
   ========================================================================== */

.ws-completion-levelup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto;
    padding: 8px 16px;
    background: #d1fae5;
    border-radius: 10px;
    color: #065f46;
    font-size: 0.95rem;
    font-weight: 600;
    animation: ws-badge-pop 0.5s ease-out;
}

.ws-completion-levelup i {
    color: #10b981;
}

/* ==========================================================================
   Countdown
   ========================================================================== */

.ws-completion-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px auto;
    font-size: 0.9rem;
    color: var(--ws-text-muted, #6b7280);
}

.ws-countdown-timer {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ws-text, #1f2937);
}

/* ==========================================================================
   No-Hints Modal
   ========================================================================== */

.ws-modal__content--small {
    max-width: 340px;
    text-align: center;
    padding: 28px 24px;
}

.ws-no-hints-icon {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 12px;
}

.ws-no-hints-desc {
    color: var(--ws-text-muted, #6b7280);
    font-size: 0.95rem;
    margin: 8px 0 20px;
    line-height: 1.5;
}

.ws-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: var(--ws-primary, #ff8d00);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ws-ad-btn:hover {
    background: var(--ws-primary-dark, #e67e00);
}

.ws-ad-btn:active {
    transform: scale(0.97);
}

.ws-ad-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 4px;
}

/* CTA button in completion modal */
.ws-completion-cta {
    margin: 18px 0 14px;
}

.ws-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 2px solid var(--ws-primary, #ff8d00);
    background: transparent;
    color: var(--ws-primary, #ff8d00);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ws-cta-btn:hover {
    background: var(--ws-primary, #ff8d00);
    color: #fff;
    text-decoration: none;
}
