/* ============================================
   SEEDLE v5.0 - Elegant Theme with Dynamic Mode
   ============================================ */

:root {
    --primary: #7c6ca8;
    --primary-light: #9a8bc4;
    --primary-dark: #5d5080;
    --secondary: #6b8f5c;
    --secondary-light: #8aad7a;
    --secondary-dark: #4a6b3f;
    --accent-gold: #c9a66b;
    --accent-rose: #b07070;
    --dynamic-primary: #6a4c93;
    --dynamic-secondary: #1982c4;
    --dynamic-accent: #8ac926;
    --hint-correct: #2d6a4f;
    --hint-close: #f77f00;
    --hint-wrong: #d62828;
    --bg-primary: #f8f7f5;
    --bg-secondary: #ffffff;
    --bg-lavender: #f3f1f8;
    --bg-sage: #f2f5f0;
    --bg-dynamic: linear-gradient(135deg, #e8e3f5 0%, #e3f2f7 50%, #f0f8e8 100%);
    --text-primary: #2d2838;
    --text-secondary: #4a4458;
    --text-light: #7a7488;
    --text-muted: #9894a5;
    --text-on-dark: #f8f7f5;
    --border: #e0dce8;
    --border-light: #ebe8f0;
    --shadow-sm: 0 2px 8px rgba(124, 108, 168, 0.08);
    --shadow-md: 0 4px 16px rgba(124, 108, 168, 0.12);
    --shadow-lg: 0 8px 32px rgba(124, 108, 168, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--text-primary); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.floating-seeds { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.seed { position: absolute; font-size: 1.4rem; opacity: 0.15; animation: float 25s infinite ease-in-out; }
.seed-1 { left: 5%; top: 10%; } .seed-2 { left: 15%; top: 70%; animation-delay: -4s; }
.seed-3 { left: 85%; top: 15%; animation-delay: -8s; } .seed-4 { left: 75%; top: 80%; animation-delay: -12s; }
.seed-5 { left: 45%; top: 5%; animation-delay: -16s; } .seed-6 { left: 55%; top: 90%; animation-delay: -20s; }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: 0.12; } 50% { transform: translateY(-15px); opacity: 0.2; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 500;
    border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--bg-lavender); }
.btn-icon { width: 36px; height: 36px; padding: 0; background: var(--bg-secondary); border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 1.1rem; }
.btn-icon:hover { border-color: var(--primary-light); background: var(--bg-lavender); }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn-large { padding: 12px 24px; font-size: 1rem; }

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--secondary) 100%);
    padding: 12px 20px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(124, 108, 168, 0.2);
}
.header-content { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.6rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.logo h1 { font-size: 1.4rem; color: white; }
.nav { display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); }
.user-name { font-weight: 600; color: white; display: none; }
@media (min-width: 600px) { .user-name { display: block; } }
.header .btn-icon { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); color: white; }
.header .btn-icon:hover { background: rgba(255,255,255,0.3); }
.header .btn-outline { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: white; }
.header .btn-primary { background: rgba(255,255,255,0.25); }

/* Main */
.main { flex: 1; padding: 16px; position: relative; z-index: 1; }
.screen { display: none; max-width: 900px; margin: 0 auto; animation: fadeIn 0.3s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Home */
.home-content { text-align: center; }
.hero { margin-bottom: 24px; }
.hero-icon { font-size: 3.5rem; margin-bottom: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hero h2 { font-size: 1.8rem; margin-bottom: 8px; color: var(--primary); }
.hero p { font-size: 1rem; color: var(--text-secondary); max-width: 360px; margin: 0 auto; }

/* ============================================
   Daily Challenge Card - Elegant Design
   ============================================ */
.daily-challenge-card {
    background: linear-gradient(135deg, #4a3f6b 0%, #5d4f80 50%, #4a6b50 100%);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin: 0 auto 28px;
    max-width: 400px;
    color: white;
    box-shadow: 0 8px 32px rgba(74, 63, 107, 0.3);
    position: relative;
    overflow: hidden;
}
.daily-challenge-card::before {
    content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.daily-header {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 12px; position: relative;
}
.daily-icon { font-size: 1.5rem; }
.daily-title { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 600; }
.daily-number { 
    background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 12px;
    font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 600;
}
.daily-info {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 14px; font-size: 0.95rem; opacity: 0.95;
}
.daily-divider { opacity: 0.5; }
.daily-status {
    background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; display: inline-block;
}
.daily-play-btn {
    background: white; color: #4a3f6b; border: none; border-radius: var(--radius-md);
    padding: 12px 32px; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; width: 100%; margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.daily-play-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.daily-play-btn.completed { background: rgba(255,255,255,0.2); color: white; }
.daily-countdown {
    font-size: 0.85rem; opacity: 0.85;
}
.daily-countdown span:last-child {
    font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: 1px;
}

/* ============================================
   Difficulty Cards - Dynamic Mode Enhanced
   ============================================ */
.difficulty-select h3 { margin-bottom: 16px; color: var(--text-secondary); font-size: 1rem; font-weight: 500; }
.difficulty-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.difficulty-card {
    background: var(--bg-secondary); border: 2px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 16px 20px; min-width: 130px; cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.difficulty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.difficulty-card[data-difficulty="easy"]:hover { border-color: var(--secondary); background: var(--bg-sage); }
.difficulty-card[data-difficulty="medium"]:hover { border-color: var(--accent-gold); }
.difficulty-card[data-difficulty="hard"]:hover { border-color: var(--accent-rose); }
.difficulty-card[data-difficulty="expert"]:hover { border-color: var(--primary); background: var(--bg-lavender); }

/* Dynamic Mode Special Styling */
.difficulty-dynamic {
    background: linear-gradient(135deg, #f5f2ff 0%, #f0f9ff 50%, #f7ffe8 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.difficulty-dynamic::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--dynamic-primary), var(--dynamic-secondary), var(--dynamic-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.difficulty-dynamic:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(106, 76, 147, 0.25);
}
.difficulty-dynamic .difficulty-icon {
    background: linear-gradient(135deg, var(--dynamic-primary), var(--dynamic-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dynamicPulse 2s infinite;
}
@keyframes dynamicPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.difficulty-icon { font-size: 2rem; margin-bottom: 6px; }
.difficulty-card h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text-primary); }
.difficulty-details { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: var(--text-secondary); }
.guest-notice { margin-top: 24px; padding: 12px; background: var(--bg-lavender); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 0.9rem; }
.guest-notice a { color: var(--primary); font-weight: 600; }

/* ============================================
   GAME LAYOUT
   ============================================ */
.game-layout {
    display: grid; grid-template-columns: 190px 1fr; gap: 14px;
    max-width: 1000px; margin: 0 auto; padding: 6px;
    height: calc(100vh - 70px); overflow: hidden;
}

.left-pane {
    display: flex; flex-direction: column; gap: 8px; padding: 12px;
    background: var(--bg-secondary); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); height: fit-content; border: 1px solid var(--border-light);
}
.game-info-section { display: flex; flex-direction: column; gap: 6px; }
.info-card {
    background: var(--bg-lavender); padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.info-card label {
    display: block; font-size: 9px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;
}
.difficulty-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white; padding: 4px 12px; border-radius: 10px; font-weight: 600; font-size: 0.8rem;
    display: inline-block; width: 100%; text-align: center;
}
.difficulty-badge.medium { background: linear-gradient(135deg, var(--accent-gold), #a88a50); color: #3d3020; }
.difficulty-badge.hard { background: linear-gradient(135deg, var(--accent-rose), #904848); }
.difficulty-badge.expert { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.difficulty-badge.daily { background: linear-gradient(135deg, #5d4f80, #4a6b50); }
.difficulty-badge.dynamic {
    background: linear-gradient(135deg, var(--dynamic-primary), var(--dynamic-secondary), var(--dynamic-accent));
    color: white;
    animation: dynamicShimmer 3s infinite;
}
@keyframes dynamicShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.attempts-display { font-size: 20px; font-weight: bold; color: var(--primary); text-align: center; }
.seed-counter { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 15px; font-weight: bold; }
.seed-icon { font-size: 16px; }
.seed-count { color: var(--secondary); }
.clues-counter { text-align: center; font-size: 13px; }
.clues-counter strong { color: var(--primary); }

/* Dynamic Info Card */
.dynamic-info {
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(25, 130, 196, 0.1));
    border: 1px solid rgba(106, 76, 147, 0.3);
}
.dynamic-status {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dynamic-primary);
}

.color-legend {
    display: flex; flex-direction: column; gap: 3px; padding: 8px 10px;
    background: var(--bg-lavender); border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 600; color: var(--text-primary); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-correct { background: var(--hint-correct); }
.legend-close { background: var(--hint-close); }
.legend-wrong { background: var(--hint-wrong); }
.btn-back { margin-top: 6px; width: 100%; font-size: 11px; padding: 8px; }

/* Right Pane */
.right-pane { display: flex; flex-direction: column; height: calc(100vh - 82px); overflow: hidden; }

.clue-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white; padding: 10px 14px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); flex-shrink: 0; text-align: center;
}
.clue-box.dynamic-mode {
    background: linear-gradient(135deg, var(--dynamic-primary) 0%, var(--dynamic-secondary) 50%, var(--dynamic-accent) 100%);
}
.clue-box .total-seeds { font-size: 13px; font-weight: 700; color: var(--text-on-dark); }
.clue-box .total-seeds strong { color: #fff8e8; }
.cryptic-clue {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm); padding: 8px 12px; margin: 6px 0; text-align: center;
}
.cryptic-clue .puzzle-icon { font-size: 18px; margin-bottom: 2px; }
.cryptic-clue .puzzle-text { font-size: 15px; font-weight: 600; }
.cryptic-clue.expert-clue { background: rgba(255,255,255,0.2); }
.digit-preview { font-size: 13px; font-family: monospace; letter-spacing: 3px; margin-top: 4px; opacity: 0.9; }

.pots-section { flex-shrink: 0; text-align: center; padding: 8px 0; }
.pot-hint-instruction { font-size: 11px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.cups-container { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; transition: all 0.5s ease; }
.cups-container.expanding {
    animation: expandAnimation 0.5s ease;
}
@keyframes expandAnimation {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.pot { display: flex; flex-direction: column; align-items: center; position: relative; transition: all 0.3s ease; }
.pot.new-pot {
    animation: potAppear 0.6s ease;
}
@keyframes potAppear {
    0% { transform: scale(0) translateY(-20px); opacity: 0; }
    60% { transform: scale(1.15) translateY(0); }
    100% { transform: scale(1); opacity: 1; }
}

.pot-sprout { font-size: 9px; line-height: 1; margin-bottom: -2px; z-index: 2; animation: sway 3s infinite ease-in-out; }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.pot-rim { width: 30px; height: 5px; background: linear-gradient(180deg, #c9a66b, #a88a50); border-radius: 3px 3px 0 0; }
.pot-body {
    width: 26px; height: 22px; background: linear-gradient(180deg, #a88a50, #8a7040);
    border-radius: 0 0 9px 9px; display: flex; align-items: center; justify-content: center;
    box-shadow: inset -2px 0 4px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.1); position: relative;
}
.pot-body::before { content: ''; position: absolute; top: 0; left: 3px; right: 3px; height: 4px; background: linear-gradient(180deg, #5a5040, #4a4035); border-radius: 0 0 2px 2px; }
.pot-number { font-family: 'Fredoka', sans-serif; font-size: 9px; font-weight: 700; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); margin-top: 2px; }
.pot-label { font-size: 8px; color: var(--text-secondary); margin-top: 2px; font-weight: 600; }
.pot.revealed .pot-label { background: var(--secondary); color: white; padding: 1px 5px; border-radius: 6px; }
.clue-btn {
    position: absolute; top: -4px; right: -5px; width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid white; background: linear-gradient(135deg, #e8d4a8, var(--accent-gold));
    color: #5a4530; font-size: 5px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; font-weight: bold; padding: 0;
}
.clue-btn:hover:not(:disabled) { transform: scale(1.15); }
.clue-btn:disabled, .clue-btn.used { background: var(--text-muted); border-color: var(--text-muted); cursor: not-allowed; opacity: 0.7; color: white; }

#hintNotificationArea { min-height: 24px; flex-shrink: 0; }
.game-notification {
    padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12px;
    text-align: center; box-shadow: var(--shadow-sm); animation: fadeInUp 0.3s ease; margin: 6px auto; max-width: 90%;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }

.guess-history {
    flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 100px;
    padding: 6px; background: rgba(255,255,255,0.6); border-radius: var(--radius-sm);
    border: 1px dashed var(--border); overflow-y: auto; margin: 6px 0;
}
.guess-row { display: flex; justify-content: center; gap: 4px; animation: slideIn 0.3s ease; flex-shrink: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.guess-cell {
    width: 28px; height: 28px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif; font-size: 12px; font-weight: 700; color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.guess-cell.correct { background: var(--hint-correct); }
.guess-cell.close { background: var(--hint-close); color: white; }
.guess-cell.wrong { background: var(--hint-wrong); }

.input-area {
    background: var(--bg-secondary); border-radius: var(--radius-md); padding: 10px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border-light); flex-shrink: 0;
}
.cup-inputs { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; flex-wrap: wrap; }
.cup-input {
    width: 38px; height: 38px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    text-align: center; font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--text-primary); background: var(--bg-lavender); transition: all 0.15s;
}
.cup-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 108, 168, 0.15); background: white; }
.cup-input::-webkit-inner-spin-button, .cup-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cup-input[type=number] { -moz-appearance: textfield; }
.cup-input.pre-filled { background: var(--bg-sage) !important; border-color: var(--secondary) !important; color: var(--secondary-dark) !important; }
.input-feedback { text-align: center; margin-bottom: 6px; }
.total-seeds { font-size: 12px; font-weight: bold; color: var(--primary); }
#submitGuess { width: 100%; padding: 10px; font-size: 14px; }

/* Modals */
.modal {
    display: none; position: fixed; inset: 0; background: rgba(61, 56, 82, 0.4);
    backdrop-filter: blur(6px); z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.modal.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-content {
    background: var(--bg-secondary); border-radius: var(--radius-xl); padding: 24px;
    max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto;
    position: relative; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.modal-close {
    position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
    border: none; background: var(--bg-lavender); border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; color: var(--text-secondary);
}
.modal-close:hover { background: var(--primary); color: white; }

.result-modal { text-align: center; }
.result-icon { font-size: 3rem; margin-bottom: 8px; }
.result-modal h2 { margin-bottom: 4px; font-size: 1.4rem; }
.result-modal p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.9rem; }
.result-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.result-stats .stat { text-align: center; }
.result-stats .stat-value { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.result-stats .stat-label { font-size: 0.7rem; color: var(--text-secondary); }
.bonus-text { color: var(--accent-gold); font-weight: bold; font-size: 13px; margin-top: 8px; }
.result-answer { background: var(--bg-sage); border-radius: var(--radius-md); padding: 12px; margin-bottom: 16px; border: 1px solid #d0e0c8; }
.answer-label { text-align: center; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; font-size: 0.85rem; }
.answer-values { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.answer-cup { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.answer-number { font-size: 9px; color: var(--text-muted); font-weight: 600; }
.answer-value { font-size: 16px; font-weight: bold; color: var(--secondary); background: white; padding: 4px 10px; border-radius: 6px; min-width: 28px; text-align: center; border: 1px solid #d0e0c8; }
.result-actions { display: flex; gap: 8px; }
.result-actions .btn { flex: 1; padding: 10px; font-size: 0.9rem; }

.share-container { margin-bottom: 16px; }
.share-title { font-weight: 600; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 8px; }
.share-preview { margin-bottom: 10px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.share-preview img { display: block; width: 100%; height: auto; }
.share-buttons { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.btn-share { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; color: white; }
.btn-share:hover { opacity: 0.9; }
.btn-twitter { background: #555; }
.btn-facebook { background: #4a6fa5; }
.btn-copy { background: var(--primary); }
.btn-download { background: var(--secondary); }

#howToPlayModal h2, #statsModal h2 { text-align: center; margin-bottom: 16px; }
.instructions { display: flex; flex-direction: column; gap: 14px; }
.instruction { display: flex; gap: 10px; align-items: flex-start; }
.instruction-num {
    width: 26px; height: 26px; background: var(--primary); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.instruction p { font-size: 0.9rem; color: var(--text-secondary); }
.hint-examples { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.hint-example { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-primary); }
.hint-dot { width: 18px; height: 18px; border-radius: 4px; }
.hint-dot.hint-correct { background: var(--hint-correct); }
.hint-dot.hint-close { background: var(--hint-close); }
.hint-dot.hint-wrong { background: var(--hint-wrong); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-card { background: var(--bg-lavender); border-radius: var(--radius-md); padding: 10px; text-align: center; border: 1px solid var(--border-light); }
.stat-card .stat-value { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.65rem; color: var(--text-secondary); }
.stats-login-prompt { text-align: center; padding: 12px; background: var(--bg-lavender); border-radius: var(--radius-md); }
.stats-login-prompt p { margin-bottom: 10px; color: var(--text-secondary); font-size: 0.85rem; }

.footer { text-align: center; padding: 16px; color: var(--text-light); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 10px 16px; }
    .logo h1 { font-size: 1.2rem; }
    .logo-icon { font-size: 1.4rem; }
    
    .game-layout { grid-template-columns: 1fr; height: auto; max-height: none; padding: 4px; gap: 8px; }
    .left-pane { order: 2; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 8px; }
    .game-info-section { flex-direction: row; flex-wrap: wrap; gap: 6px; width: 100%; }
    .info-card { flex: 1; min-width: 70px; padding: 6px 8px; }
    .color-legend { flex-direction: row; gap: 10px; flex: 1; min-width: 140px; }
    .btn-back { flex: none; width: auto; min-width: 90px; }
    
    .right-pane { order: 1; height: auto; gap: 8px; }
    .clue-box { padding: 8px 12px; }
    .cryptic-clue .puzzle-text { font-size: 14px; }
    .cups-container { gap: 6px; }
    .pot-rim { width: 28px; } .pot-body { width: 24px; height: 20px; }
    .guess-history { min-height: 160px; max-height: 240px; }
    .guess-cell { width: 26px; height: 26px; font-size: 11px; }
    .cup-input { width: 34px; height: 34px; font-size: 0.95rem; }
    
    .difficulty-cards { gap: 8px; }
    .difficulty-card { padding: 14px 16px; min-width: 120px; }
    .difficulty-icon { font-size: 1.8rem; }
    .difficulty-card h4 { font-size: 1rem; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .result-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .daily-challenge-card { padding: 16px 18px; margin-bottom: 20px; }
    .daily-title { font-size: 1.1rem; }
    .daily-play-btn { padding: 10px 24px; font-size: 1rem; }
    .cup-input { width: 32px; height: 32px; font-size: 0.9rem; }
    .guess-cell { width: 24px; height: 24px; font-size: 10px; }
}

/* ============================================
   DYNAMIC MODE - Minimal CSS Addition
   ============================================ */

/* New pot animation when it appears */
.pot.new-pot {
    animation: potAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes potAppear {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Expanding container animation */
#cupsContainer.expanding {
    animation: containerPulse 0.5s ease;
}

@keyframes containerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}