/* Keeping the existing inline CSS from game.html to avoid functional changes. */
/* Logo theme switching tied to body theme classes */
.logo-light { display: block !important; }
.logo-dark { display: none !important; }
.logo-halloween { display: none !important; }
body.theme-dark .logo-dark { display: block !important; }
body.theme-dark .logo-light { display: none !important; }
body.theme-dark .logo-halloween { display: none !important; }
body.theme-halloween .logo-halloween { display: block !important; }
body.theme-halloween .logo-light { display: none !important; }
body.theme-halloween .logo-dark { display: none !important; }

/* Halloween logo sizing - make it larger due to narrower aspect ratio */
.logo-halloween {
  height: clamp(96px, 18vw, 150px) !important;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body { overscroll-behavior-x: none; }
body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; flex-direction: column; align-items: center; color: var(--text-color); overflow: hidden; padding: 10px max(calc(env(safe-area-inset-left, 0) + 14px), 14px) calc(env(safe-area-inset-bottom, 0) + 60px) max(calc(env(safe-area-inset-right, 0) + 14px), 14px); touch-action: manipulation; }
/* Edge guards to reduce accidental system back-swipe on mobile */
.edge-guard{ position: fixed; top: 0; bottom: 0; width: max(12px, env(safe-area-inset-left, 0)); z-index: 100; pointer-events: auto; touch-action: none; }
.edge-guard.left{ left: 0; }
.edge-guard.right{ right: 0; width: max(12px, env(safe-area-inset-right, 0)); }
/* Ensure ad banner is visible on mobile */
#adBanner{ position:sticky; bottom:0; left:0; right:0; z-index:1800; padding-bottom: env(safe-area-inset-bottom, 0); overscroll-behavior: contain; touch-action: none; user-select: none; -webkit-user-select: none; -ms-user-select: none; -webkit-user-drag: none; }
#adContainer{ overflow:hidden; overscroll-behavior: contain; touch-action: none; user-select: none; -webkit-user-select: none; -ms-user-select: none; -webkit-user-drag: none; }
#adBanner *{ touch-action: none; }
@media (max-width: 600px){ #adContainer iframe{ max-width:100vw !important; width:100% !important; height:50px !important; } }
        .game-header { text-align: center; margin-bottom: 8px; width: 100%; }
        .score-board { display:flex; justify-content:space-between; width:100%; max-width:600px; margin:0 auto 8px auto; font-size: clamp(0.8rem, 3vw, 1rem); }
        .score-item { display:flex; align-items:center; gap:6px; background: rgba(255,255,255,0.22); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(10px); box-shadow: 0 2px 6px rgba(0,0,0,0.18); color:#111827; }
        body.theme-dark .score-item { color:#ffffff; }
        body.theme-halloween .score-item { color:#ffd89b; background: rgba(77, 45, 0, 0.5); border: 1px solid rgba(212, 131, 79, 0.3); }
        .score-item > span[aria-hidden="true"]{ font-size:1.1em; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }
        .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
        .timer-warning { display:inline-block; animation: pulseGlow 0.9s infinite; color:#fff !important; background: linear-gradient(135deg, #ef4444, #dc2626); padding:2px 10px; border-radius:999px; text-shadow:0 1px 2px rgba(0,0,0,0.5); box-shadow:0 0 0 3px rgba(239,68,68,0.25), 0 6px 14px rgba(0,0,0,0.25); }
        .timer-urgent { animation: flash 0.6s infinite alternate; background: linear-gradient(135deg, #b91c1c, #991b1b) !important; box-shadow: 0 0 0 4px rgba(153,27,27,0.35), 0 10px 18px rgba(0,0,0,0.35) !important; transform: scale(1.06); }
        @keyframes pulseGlow { 0%{ transform: scale(1); box-shadow: 0 0 0 3px rgba(239,68,68,0.25), 0 6px 14px rgba(0,0,0,0.25);} 50%{ transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239,68,68,0.32), 0 10px 20px rgba(0,0,0,0.35);} 100%{ transform: scale(1); box-shadow: 0 0 0 3px rgba(239,68,68,0.25), 0 6px 14px rgba(0,0,0,0.25);} }
        @keyframes flash { 0%{ filter:brightness(1);} 100%{ filter:brightness(1.35);} }
        .game-container { display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; width:100%; max-width:100vw; }
        .grid-container { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 15px; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); display:flex; justify-content:center; align-items:center; }
        .grid { display:grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap:1px; background: rgba(0,0,0,0.2); padding:8px; border-radius:12px; width: min(85vw, 85vh, 400px); height: min(85vw, 85vh, 400px); }
        @media (max-width: 600px) { .grid { width: min(96vw, 96vh); height: min(96vw,96vh);} .grid-container{ padding:6px;} .letter{ font-size: clamp(1.1rem, 6vw, 1.8rem);} .current-word{ width:98vw; max-width:98vw; } }
        @media (max-width: 600px) and (min-height: 740px) { .word-list{ max-height:200px; } .found-word{ font-size: clamp(0.8rem, 3vw, 1rem); } }
        .letter { width:100%; height:100%; background: linear-gradient(145deg,#fff,#e0e0e0); border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:clamp(1rem,4vw,1.4rem); font-weight:bold; color:#333; cursor:pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2); user-select:none; touch-action:none; position:relative; }
        .letter::before { content:''; position:absolute; left:50%; top:50%; width:70%; height:70%; transform: translate(-50%,-50%); border-radius:50%; background:transparent; pointer-events:auto; box-sizing:border-box; }
        .letter:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
        .letter.selected { background: linear-gradient(145deg,#4CAF50,#45a049); color:white; transform: scale(1.05); }
        .current-word { background: rgba(255,255,255,0.2); padding: 8px 15px; border-radius: 20px; font-size:clamp(0.9rem,4vw,1.2rem); font-weight:bold; height:50px; text-align:center; backdrop-filter: blur(10px); width:min(95vw, 640px); display:flex; align-items:center; justify-content:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--text-color); }
        body.theme-dark .current-word { color:var(--text-color); }
        body.theme-light .current-word { color:#ffffff; }
        body.theme-halloween .current-word { color:#ffd89b; background: rgba(77, 45, 0, 0.4); border: 1px solid rgba(212, 131, 79, 0.3); }
        .word-list { background: rgba(255,255,255,0.2); padding:8px 15px; border-radius:20px; width:min(95vw, 640px); max-width:640px; max-height:120px; overflow-y:auto; color:var(--text-color); }
        body.theme-dark .word-list { color:var(--text-color); }
        body.theme-light .word-list { color:#ffffff; }
        body.theme-halloween .word-list { color:#ffd89b; background: rgba(77, 45, 0, 0.4); border: 1px solid rgba(212, 131, 79, 0.3); }
        .word-list h3 { margin-bottom:5px; text-align:center; font-size:clamp(0.8rem,3vw,1rem); color: inherit; }
        .found-words { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
        .found-word { background: rgba(255,255,255,0.2); padding:6px 14px; border-radius:14px; font-size:clamp(0.95rem,3.5vw,1.15rem); font-weight:700; text-decoration:none; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
        .found-word:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25); }
        .found-word.score-low { background: rgba(76, 175, 80, 0.85); color: #fff; }
        .found-word.score-med { background: rgba(33, 150, 243, 0.9); color: #fff; }
        .found-word.score-high { background: rgba(255, 152, 0, 0.95); color: #fff; }
        .found-word.score-elite { background: rgba(244, 67, 54, 0.95); color: #fff; }
        .found-word.score-legend { background: linear-gradient(135deg, #7b1fa2, #e91e63); color: #fff; box-shadow: 0 4px 8px rgba(123, 31, 162, 0.5); }
        .modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); display:none; align-items:center; justify-content:center; z-index:2000; padding:15px; cursor:pointer; }
        .modal-content { background:#fff; color:#333; border-radius:10px; max-width:760px; width:100%; max-height:80vh; position:relative; box-shadow:0 5px 15px rgba(0,0,0,0.3); cursor:default; display:flex; flex-direction:column; overflow:hidden; }
        .modal-header { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px 10px 20px; background:inherit; z-index:2; border-bottom:1px solid rgba(0,0,0,0.06); border-top-left-radius:10px; border-top-right-radius:10px; }
        .modal-body { padding:12px 20px 16px 20px; overflow-y:auto; }
        .modal-close-btn { position:static; background:transparent; border:none; font-size:1.8rem; line-height:1; cursor:pointer; color:#aaa; }
        .modal-close-btn:hover { color:#333; }
        .release-notes-modal { max-width:520px; }
        .release-notes-version { font-weight:700; color:var(--text-muted, #6b7280); }
        .release-notes-intro { margin:0 0 12px 0; font-size:1rem; line-height:1.5; color:var(--text-muted, #6b7280); }
        .release-notes-content { font-size:0.98rem; line-height:1.6; color:var(--text-color); }
        .release-notes-content p { margin:0 0 10px 0; }
        .release-notes-content ul { margin:0 0 12px 20px; padding:0; list-style:disc; }
        .release-notes-content li { margin-bottom:6px; }
        .release-notes-footer { margin-top:12px; display:flex; flex-direction:column; gap:12px; }
        .release-notes-tip { font-size:0.95rem; color:var(--text-muted, #6b7280); display:flex; align-items:center; gap:6px; }
.release-notes-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.release-notes-action { flex:0 0 auto; }
.release-notes-action[data-action="releaseNotesEnablePush"] {
    background: #f44336 !important;
    color: #ffffff !important;
    box-shadow: none;
    border: 1px solid #d32f2f !important;
}
.release-notes-action[data-action="releaseNotesEnablePush"]:hover {
    background: #d32f2f !important;
}
.release-notes-loading { color:var(--text-muted, #6b7280); font-style:italic; }

        .ranking-groups { display:grid; gap:14px; }
        .ranking-card { background: linear-gradient(145deg, rgba(255,255,255,0.95), #f4f7ff); border:2px solid #e6edff; border-radius:14px; padding:12px; }
        .ranking-title { display:flex; align-items:center; gap:8px; color:#1e3a8a; margin:0 0 8px 0; font-size:1.1rem; }
        .ranking-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; width:100%; }
        .ranking-item { display:flex; align-items:center; justify-content:space-between; background:#ffffff; border:1px solid #edf2ff; border-radius:12px; padding:8px 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
        .rk-left { display:flex; align-items:center; gap:10px; }
        .rk-medal { font-size:1.2rem; width:24px; text-align:center; }
        .rk-name { font-weight:700; color: var(--text-color); }
        .rk-meta { color:#6b7280; font-size:0.85rem; }
        .rk-score { font-weight:800; color:#0f766e; }
        .rk-chip { background:#eef2ff; color:#3730a3; padding:2px 8px; border-radius:999px; font-size:0.78rem; margin-left:8px; }
        .rk-date { color:#94a3b8; font-size:0.78rem; }
        .ranking-item.me { border:2px solid #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
        .tabs { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
        .tab-btn { padding:6px 10px; border-radius:999px; border:1px solid #c7d2fe; background:#eef2ff; color:#1e3a8a; cursor:pointer; font-weight:700; }
        .tab-btn.active { background:#3b82f6; color:#fff; border-color:#2563eb; }
        .tab-panel { display:none; }
        .tab-panel.active { display:block; }
        #definitionModal { z-index:3000; }
        #historyModal .found-word { font-size: clamp(0.95rem, 3.4vw, 1.1rem); padding: 4px 10px; }
        #historyModal .rk-chip { font-size: 0.9rem; }
        #historyModal .rk-score { font-size: 1rem; }
        #historyModal .ranking-card table.ranking-list th a { color: inherit; text-decoration: none; }
        #historyModal .ranking-card table.ranking-list th a.sort-active { font-weight: bold; }
        #historyModal .ranking-card table.ranking-list th a .sort-arrow { display: inline-block; margin-left: 4px; }
        #historyModal .ranking-card table.ranking-list th a .sort-arrow.sort-asc::after { content: ' ▲'; }
        #historyModal .ranking-card table.ranking-list th a .sort-arrow.sort-desc::after { content: ' ▼'; }

        /* History table responsive fixes */
        #historyModal table.ranking-list thead tr,
        #historyModal table.ranking-list tbody tr {
          min-width: 0;
        }
        #historyModal table.ranking-list td,
        #historyModal table.ranking-list th { min-width:0; }
        #historyModal table.ranking-list td:first-child,
        #historyModal table.ranking-list th:first-child { }
        #historyModal table.ranking-list td:first-child a { }

        /* Default grid columns for games history table (desktop) */
        #historyModal #historyGamesTable thead tr,
        #historyModal #historyGamesTable tbody tr {
          grid-template-columns: minmax(120px, 1fr) minmax(80px, 100px) minmax(60px, 80px) minmax(100px, 120px);
        }

        /* Default grid columns for words history table (desktop) */
        #historyModal #historyWordsTable thead tr,
        #historyModal #historyWordsTable tbody tr {
          grid-template-columns: minmax(100px, 1fr) minmax(40px, 60px) minmax(60px, 80px) minmax(80px, 100px);
        }

        @media (max-width: 420px){
          /* Tighter columns for words table so Fecha stays visible */
          #historyModal #historyWordsTable thead tr { grid-template-columns: minmax(100px, 1fr) minmax(50px, 70px) minmax(60px, 80px) minmax(70px, 100px); }
          #historyModal #historyWordsTable tbody tr { grid-template-columns: minmax(100px, 1fr) minmax(50px, 70px) minmax(60px, 80px) minmax(70px, 100px); }
          /* Tighter columns for games table with AI column */
          #historyModal #historyGamesTable thead tr { grid-template-columns: minmax(60px, 1fr) minmax(50px, 70px) minmax(40px, 50px) minmax(80px, 100px); }
          #historyModal #historyGamesTable tbody tr { grid-template-columns: minmax(60px, 1fr) minmax(50px, 70px) minmax(40px, 50px) minmax(80px, 100px); }
          
          #historyModal .found-word { max-width: 100%; display: inline-block; }
        }
#historyModal table.ranking-list th:last-child,
#historyModal table.ranking-list td:last-child {
  word-break: break-all;
}

        @media (max-width: 340px){
          /* Extra narrow screens - words table */
          #historyModal #historyWordsTable thead tr { grid-template-columns: minmax(80px, 1fr) minmax(40px, 60px) minmax(50px, 70px) minmax(60px, 90px); }
          #historyModal #historyWordsTable tbody tr { grid-template-columns: minmax(80px, 1fr) minmax(40px, 60px) minmax(50px, 70px) minmax(60px, 90px); }
          /* Extra narrow screens - games table with AI column */
          #historyModal #historyGamesTable thead tr { grid-template-columns: minmax(70px, 1fr) minmax(50px, 70px) minmax(40px, 50px) minmax(60px, 80px); }
          #historyModal #historyGamesTable tbody tr { grid-template-columns: minmax(70px, 1fr) minmax(50px, 70px) minmax(40px, 50px) minmax(60px, 80px); }
        }

        /* Restore rounded, pill-shaped buttons style */
        .btn { border:none; color:#fff; font-weight:800; letter-spacing:0.2px; border-radius:999px; padding:10px 14px; box-shadow:0 4px 10px rgba(0,0,0,0.15); cursor:pointer; transition:transform .08s ease, box-shadow .12s ease; }
        .btn:active { transform: translateY(1px); box-shadow:0 2px 6px rgba(0,0,0,0.2); }
        /* Ensure btn has good contrast in light theme when no inline background is set */
        body.theme-light .btn:not([style*="background"]) { background: linear-gradient(145deg,#3b82f6,#1d4ed8); color:#fff; }
        /* Ensure btn has good contrast in dark theme when no inline background is set */
        body.theme-dark .btn:not([style*="background"]) { background: linear-gradient(145deg,#334155,#0f172a); color:#e5e7eb; border:1px solid var(--border-color); }
        /* Dark mode: soften vivid menu button gradients only in the Menu modal */
        body.theme-dark #menuModal .btn { filter: saturate(0.8) brightness(0.9); }
        body.theme-dark #menuModal .btn:hover { filter: saturate(0.85) brightness(1.0); }

        /* Compact icon bar inside menu modal */
        #menuModal .mini-icon-bar{ display:flex; gap:8px; justify-content:flex-end; align-items:center; margin-top:12px; }
        #menuModal .mini-icon{ width:38px; height:38px; border-radius:999px; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:18px; box-shadow:0 4px 10px rgba(0,0,0,0.15); background:linear-gradient(145deg,#eef2ff,#e0e7ff); color:#1f2937; }
        #menuModal .mini-icon:active{ transform: translateY(1px); box-shadow:0 2px 6px rgba(0,0,0,0.2); }
        body.theme-dark #menuModal .mini-icon{ background: linear-gradient(145deg,#0f172a,#111827); color:#e5e7eb; border:1px solid #1f2937; }

        /* New bottom icon bar flanking footer */
        #menuModal .bottom-icon-bar{ margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
        #menuModal .bottom-icon-bar .mini-icon-group{ display:flex; gap:8px; align-items:center; }
        #menuModal .bottom-icon-bar .footer-text{ color:#6b7280; font-size:0.9rem; flex:1; text-align:center; }
        body.theme-dark #menuModal .bottom-icon-bar .footer-text{ color:#9ca3af; }

        /* Success/feedback popup message styles (restored from original game.html) */
        .message { position:fixed; bottom:50px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.8); color:#fff; padding: clamp(18px, 3.5vw, 28px) clamp(28px, 6vw, 52px); border-radius:16px; font-size: clamp(1.4rem, 4.8vw, 2rem); font-weight:bold; z-index:3000; opacity:0; transition: all .3s ease; pointer-events:none; text-align:center; max-width:94vw; }
        .message.show { opacity:1; }
        .message.tier-low { background: rgba(46, 204, 113, 0.95); }
        .message.tier-med { background: rgba(33, 150, 243, 0.95); }
        .message.tier-high { background: rgba(255, 152, 0, 0.95); }
        .message.tier-elite { background: rgba(244, 67, 54, 0.95); }
        .message.tier-legend { background: linear-gradient(135deg, #7b1fa2, #e91e63); }
        .message.pop { animation: msgPopIn 350ms ease-out; }
        @keyframes msgPopIn { 0% { transform: translateX(-50%) scale(0.7); opacity:0; } 60% { transform: translateX(-50%) scale(1.06); opacity:1; } 100% { transform: translateX(-50%) scale(1); opacity:1; } }
        .message .big-emoji { font-size:2.6rem; display:block; margin-bottom:6px; }

        /* Grid celebration + floating emoji particles */
        .celebrate .grid { animation: glow 800ms ease-out; }
        @keyframes glow { 0% { box-shadow:0 0 0 rgba(255,255,255,0); } 50% { box-shadow:0 0 24px rgba(255,255,255,0.75);} 100% { box-shadow:0 0 0 rgba(255,255,255,0);} }
        .floating-emoji { position:fixed; pointer-events:none; z-index:3001; animation: floatUp 1000ms ease-out forwards; font-size:1.4rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
        @keyframes floatUp { 0% { transform: translateY(0) scale(0.8); opacity:0; } 20% { opacity:1; } 100% { transform: translateY(-60px) scale(1.1); opacity:0; } }
            /* Explode and fall animations for grid updates */
            .letter.explode { animation: explode 220ms ease-out forwards; }
            @keyframes explode { 0%{ transform: scale(1); opacity:1; } 60%{ transform: scale(1.2); opacity:0.7;} 100%{ transform: scale(0.6); opacity:0; } }
            @keyframes fall { 0%{ transform: translateY(-20%); } 100%{ transform: translateY(0); } }
            @keyframes spawn { 0%{ transform: scale(0.6); opacity:0; } 100%{ transform: scale(1); opacity:1; } }

/* Accessibility and theming additions (0–2 semanas): dark theme + reduced motion */
:root {
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-color: #ffffff;
  --tile-fg: #333333;
  --tile-bg-from: #ffffff;
  --tile-bg-to: #e0e0e0;
  /* UI surfaces */
  --surface: #ffffff;
  --surface-muted: rgba(255,255,255,0.95);
  --overlay-bg: rgba(0,0,0,0.7);
  --border-color: #e6edff;
  --border-color-soft: #edf2ff;
  --heading: #1e3a8a;
  --text-muted: #6b7280;
  --chip-bg: #eef2ff;
  --chip-fg: #3730a3;
  --success: #10b981;
  --accent: #3b82f6;
}
body.theme-dark {
  --bg-gradient: linear-gradient(135deg, #0b1020 0%, #111827 100%);
  --text-color: #e5e7eb;
  --tile-fg: #e5e7eb;
  --tile-bg-from: #303745;
  --tile-bg-to: #1a2130;
  --surface: #0b1020;
  --surface-muted: #0f172a;
  --overlay-bg: rgba(0,0,0,0.8);
  --border-color: #1c2432;
  --border-color-soft: #131a26;
  --heading: #bfdbfe; /* softer heading in dark */
  --text-muted: #9ca3af;
  --chip-bg: #111827;
  --chip-fg: #c7d2fe;
  --success: #22c55e; /* slightly toned down from neon */
  --accent: #3b82f6; /* less saturated accent */
}
body.theme-halloween {
  --bg-gradient: linear-gradient(135deg, #1a0d00 0%, #2d1b0e 50%, #0f0a0a 100%);
  --text-color: #ffd89b;
  --tile-fg: #f4f1e8;
  --tile-bg-from: #8b5a3c;
  --tile-bg-to: #5d3a22;
  --surface: #2d1b0e;
  --surface-muted: #3d2b1e;
  --overlay-bg: rgba(0,0,0,0.9);
  --border-color: #d4834f;
  --border-color-soft: #a66a3b;
  --heading: #ffcc80;
  --text-muted: #d4a574;
  --chip-bg: #4d2d00;
  --chip-fg: #ffd89b;
  --success: #ff9933;
  --accent: #ff9933;
}

/* Apply variables */
body { background: var(--bg-gradient); color: var(--text-color); }
body.theme-light { --text-color: #111827; }
.letter { color: var(--tile-fg); background: linear-gradient(145deg, var(--tile-bg-from), var(--tile-bg-to)); }
.letter.selected { color: #fff; }

/* Menu/header and scoreboard surfaces */
.score-item { background: color-mix(in oklab, var(--surface-muted), transparent 20%); }

/* Modals and overlays */
.modal-overlay { background: var(--overlay-bg); }
.modal-content { background: var(--surface); color: var(--text-color); }
.modal-header { border-bottom: 1px solid var(--border-color); }
.modal-title { color: var(--heading); }
.modal-close-btn { color: var(--text-muted); }
.modal-close-btn:hover { color: var(--text-color); }

/* Ranking cards and lists */
.ranking-card { background: linear-gradient(145deg, var(--surface-muted), var(--surface)); border: 2px solid var(--border-color); }
.ranking-title { color: var(--heading); }
.ranking-item { background: var(--surface); border: 1px solid var(--border-color-soft); }
.rk-name { color: var(--text-color); }
.rk-meta, .rk-date { color: var(--text-muted); }
.rk-score { color: var(--success); }
.rk-chip { background: var(--chip-bg); color: var(--chip-fg); }
/* Force override inline light backgrounds inside modals when dark theme is active */
body.theme-dark .ranking-card { background: linear-gradient(145deg, var(--surface-muted), var(--surface)) !important; border-color: var(--border-color) !important; }
body.theme-dark .ranking-item { background: var(--surface) !important; border-color: var(--border-color-soft) !important; }
body.theme-dark .ranking-card, body.theme-dark .ranking-card * { color: var(--text-color) !important; }
/* Dark theme override for notification prompt banner created inline via JS */
body.theme-dark #notifPromptBanner { background: linear-gradient(145deg, var(--surface-muted), var(--surface)) !important; border-color: var(--border-color) !important; color: var(--text-color) !important; }

/* Forms and preview boxes inside modals */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content textarea {
  background: var(--surface);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
.modal-content input::placeholder,
.modal-content textarea::placeholder { color: var(--text-muted); }
#sharePreview {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
}

/* Tabs */
.tab-btn { background: var(--chip-bg); color: var(--heading); border-color: var(--border-color); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* High contrast helper (optional via body.classList) */
body.high-contrast .score-item,
body.high-contrast .current-word,
body.high-contrast .word-list { background: rgba(255,255,0,0.28); }

/* Reduced motion: respect user preference and optional local toggle */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
body.reduce-motion * { animation: none !important; transition: none !important; }

/* Light theme readability fixes for ranking text and modal content */
body.theme-light .rk-name { color: #1f2937; }

/* Light theme readability fixes for modal content and form fields */
body.theme-light .modal-content { color: #111827; }
body.theme-light .modal-content input[type="text"],
body.theme-light .modal-content input[type="email"],
body.theme-light .modal-content input[type="password"],
body.theme-light .modal-content textarea {
  color: #111827;
}
body.theme-light .modal-content input::placeholder,
body.theme-light .modal-content textarea::placeholder { color: #6b7280; }
body.theme-light #sharePreview { color: #111827; }

/* Temporary mobile tooltip bubble for date long format */
.mobile-tooltip-bubble {
  position: absolute;
  transform: translateX(-50%);
  background: rgba(17,24,39,0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.1;
  z-index: 4000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 80vw;
  pointer-events: none;
}
.mobile-tooltip-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(17,24,39,0.95) transparent transparent transparent;
}

/* Achievements progress bars */
.achievement-item .ach-progress { width: 160px; height: 10px; background: var(--border-color-soft); border-radius: 999px; overflow: hidden; border:1px solid var(--border-color); }
.achievement-item .ach-progress-bar { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); width: 0%; transition: width 0.4s ease; }
body.theme-dark .achievement-item .ach-progress { background: var(--surface-muted); border-color: var(--border-color-soft); }
.achievement-item.unlocked .ach-progress-bar { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.achievement-item .ach-progress-label { text-align: right; margin-top: 4px; }

/* Missing letters display for alphabet achievement */
.achievement-item .missing-letters {
  color: #e67e22;
  font-style: italic;
}
.achievement-item .missing-letters strong {
  font-weight: 600;
  color: #d35400;
}
body.theme-dark .achievement-item .missing-letters {
  color: #f39c12;
}
body.theme-dark .achievement-item .missing-letters strong {
  color: #e67e22;
}

/* Achievement words button */
.achievement-words-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}
.achievement-words-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}
.achievement-words-btn:active {
  transform: translateY(0);
}

/* Word badges in achievement words modal */
.word-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0c4a6e;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #bae6fd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
body.theme-dark .word-badge {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #93c5fd;
  border-color: #475569;
}

/* Alphabet letter groups */
.alphabet-letter-group {
  padding: 12px;
  background: linear-gradient(135deg, #fefce8, #fef3c7);
  border-radius: 8px;
  border: 1px solid #fde047;
}
body.theme-dark .alphabet-letter-group {
  background: linear-gradient(135deg, #18181b, #27272a);
  border-color: #3f3f46;
}

/* Today progress badge */
.today-progress-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  animation: pulseOnce 0.6s ease-out;
}

@keyframes pulseOnce {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Mobile layout for achievements: title above description */
@media (max-width: 600px) {
  /* Stack the left block vertically so name is above description */
  .achievement-item .rk-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .achievement-item .rk-name {
    line-height: 1.2;
  }
  .achievement-item .rk-meta {
    line-height: 1.2;
  }
  /* Allow right panel to wrap under if space is tight */
  .achievement-item { flex-wrap: wrap; }
  .achievement-item .rk-right { margin-top: 6px; width: 100%; }
  .achievement-item .ach-progress { width: 100%; }
}

/* Pagination styles */
.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px; /* Space between buttons */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-btn {
  background: var(--chip-bg); /* Reusing existing variable for consistency */
  color: var(--heading); /* Reusing existing variable for consistency */
  border: 1px solid var(--border-color); /* Reusing existing variable for consistency */
  padding: 8px 14px;
  border-radius: 999px; /* Pill shape */
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  min-width: 40px; /* Ensure a minimum width for numbers */
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent); /* Reusing existing variable for consistency */
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pagination-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-muted); /* Softer background for disabled */
  color: var(--text-muted);
  border-color: var(--border-color-soft);
}

/* Custom styles for word ranking display */
.rk-word-display .found-word {
  font-size: clamp(1rem, 3.5vw, 1.2rem); /* Slightly smaller font */
  font-weight: 700; /* Keep it bold */
  padding: 1px 6px; /* Less vertical, less horizontal padding */
}

.rk-user-display {
  font-size: 0.8rem; /* Make username smaller */
  color: var(--text-muted); /* Use muted color for username */
  font-weight: 400; /* Normal weight */
}

/* Adjust .rk-name if it's still used elsewhere and needs to be smaller */
.rk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.rk-avatar-initial {
  font-size: 1.3rem;
  line-height: 1;
}

.rk-medal-top {
  font-size: 1.6rem;
}

.rk-name {
  font-weight: 700; /* Keep original rk-name bold */
  color: var(--text-color); /* Keep original rk-name color */
}

/* Fullscreen Menu */
#menuModal.modal-overlay {
    padding: 0;
    cursor: default;
    background: var(--bg-gradient); /* Use gradient background */
}

/* Halloween menu background images */
body.theme-halloween #menuModal.modal-overlay {
    background-image: url('/img/halloween/desktop_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobile Halloween background */
@media (max-width: 768px) {
    body.theme-halloween #menuModal.modal-overlay {
        background-image: url('/img/halloween/mobile_background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* Halloween full-screen background images during gameplay */
body.theme-halloween {
    background-image: url('/img/halloween/desktop_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(45, 27, 14, 0.3); /* Fallback color matching Halloween theme */
}


/* Halloween profile modal icon */
body.theme-halloween #profileModalTitle .profile-icon {
    font-size: 0;
}
body.theme-halloween #profileModalTitle .profile-icon::before {
    content: '🎃';
    font-size: 1.35rem;
    display: inline-block;
}

/* Mobile Halloween background during gameplay */
@media (max-width: 768px) {
    body.theme-halloween {
        background-image: url('/img/halloween/mobile_background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

#menuModal .menu-content {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Use vh for full height */
    width: 100vw; /* Use vw for full width */
    padding: 20px;
    padding-top: 40px; /* Less padding at the top */
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 20px);
}

#menuModal .menu-header {
    text-align: center;
    flex-shrink: 0;
}

#menuModal .menu-center {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menuModal .menu-footer {
    flex-shrink: 0;
}

body.theme-light #menuModal .bottom-icon-bar .footer-text {
    color: #FFFFFF;
}

.update-message {
    background: linear-gradient(145deg, #10b981, #059669);
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-radius: 15px;
    margin: 0 20px 20px 20px; /* 0 top, 20 right, 20 bottom, 20 left */
    opacity: 0.7; /* More transparency */
}

.menu-buttons {
    width: 80%;
    max-width: 400px;
}

body.theme-light .update-message {
    background: linear-gradient(145deg, #f59e0b, #d97706); /* Orange gradient for light mode */
}

.update-message a {
    color: #FFFFFF;
    text-decoration: none;
}

/* Profile modal */
.profile-modal {
  max-width: min(760px, 94vw);
  border-radius: 24px;
  background: var(--surface);
}

.profile-modal-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

@media (max-width: 600px) {
  .profile-modal-body {
    padding: 18px;
    gap: 16px;
  }
}

.profile-loading {
  text-align: center;
  padding: 36px 0;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-overview {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 520px) {
  .profile-overview {
    flex-direction: column;
    align-items: flex-start;
  }
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #ccc; /* Default background */
}







.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
  position: relative;
  z-index: 2;
}

.profile-avatar.has-image img {
  display: block;
}

.profile-avatar.has-image .profile-avatar-initial {
  display: none;
}

.profile-avatar-initial {
  font-size: 3.5rem; /* Increased from 2.5rem */
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}







/* Color variants based on username hash */
.avatar-color-0 { background-color: #06b6d4; }
.avatar-color-1 { background-color: #10b981; }
.avatar-color-2 { background-color: #f59e0b; }
.avatar-color-3 { background-color: #ec4899; }
.avatar-color-4 { background-color: #8b5cf6; }

.profile-overview-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-display-name {
  font-size: 1.4rem;
  margin: 0;
  color: var(--heading);
  word-break: break-word;
}

.profile-username {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.profile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-chip {
  background: var(--chip-bg);
  color: var(--chip-fg);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-actions .btn {
  font-size: 0.95rem;
  padding: 10px 14px;
}

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-section-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--heading);
}

.profile-section-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.profile-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color-soft);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}

.profile-badge-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.profile-badge-card {
  background: var(--surface);
  border: 1px solid var(--border-color-soft);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.profile-badge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-badge-card--unlocked::after {
  opacity: 0.18;
  background: linear-gradient(140deg, rgba(250, 204, 21, 0.35), transparent 65%);
}

.profile-badge-card--in_progress::after {
  opacity: 0.14;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.3), transparent 65%);
}

.profile-badge-card--locked {
  opacity: 0.65;
}

.profile-badge-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-badge-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badge-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.profile-badge-card__name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
}

.profile-badge-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
}

.profile-badge-progress {
  width: 100%;
  height: 6px;
  background: var(--border-color-soft);
  border-radius: 999px;
  overflow: hidden;
}

.profile-badge-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  width: 0%;
}

.profile-badge-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-empty {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.profile-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-activity-item {
  background: var(--surface);
  border: 1px solid var(--border-color-soft);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-activity-item .label {
  font-size: 0.85rem;
  color: var(--text-color);
  flex: 1;
}

.profile-activity-item .time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.profile-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.profile-modal-footer .btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.profile-badge-card--locked .profile-badge-card__icon,
.profile-badge-card--in_progress .profile-badge-card__icon {
  filter: grayscale(100%);
  opacity: 0.6;
}

.profile-badge-card--locked .profile-badge-card__name,
.profile-badge-card--in_progress .profile-badge-card__name {
  color: var(--text-muted);
}


/** Override: keep avatar left and info right inside profile modal, even on small widths */
.profile-modal .profile-overview {
  flex-direction: row;
  align-items: center;
}

/* Completion multiplier badge for repeatable achievements */
.completion-multiplier {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
  vertical-align: middle;
}

/* Google Sign-In Button - Dark theme support */
#googleSignInButton {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

#googleSignInButton iframe {
  border-radius: 8px !important;
}

/* Contenedor personalizado para mejor control */
#googleNotLinked {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

body.theme-dark #googleNotLinked {
  background: rgba(255, 255, 255, 0.08);
}

/* Streak Motivation Section Styles */
.profile-streak-section {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}

.profile-streak-content {
  display: grid;
  gap: 16px;
}

.profile-streak-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.profile-streak-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.profile-streak-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
}

.profile-streak-label small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.profile-streak-progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.profile-streak-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 999px;
}

.profile-streak-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.profile-streak-card {
  background: var(--surface);
  border: 1px solid var(--border-color-soft);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.profile-streak-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--surface-muted);
  transform: translateY(-2px);
}

.profile-streak-card-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-streak-card-value {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-streak-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.profile-streak-card-today {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.profile-streak-card-today .profile-streak-card-value {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-streak-card-tomorrow {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.profile-streak-card-tomorrow .profile-streak-card-value {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-streak-card-call-to-action {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
  border-width: 2px;
}

.profile-streak-card-call-to-action .profile-streak-card-value {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-streak-card-future {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.05);
}

.profile-streak-card-future .profile-streak-card-value {
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-streak-message {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 500;
  text-align: center;
}
