* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f0eb; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 10px; user-select: none; -webkit-user-select: none; } #app { max-width: 600px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; } header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0; } .header-center { display: flex; gap: 30px; } .stat { display: flex; flex-direction: column; align-items: center; } .stat-label { font-size: 14px; color: #8b7355; font-weight: 500; } .stat-value { font-size: 28px; font-weight: 700; color: #5d4e37; } .header-right { display: flex; align-items: center; gap: 10px; } .player-name { font-size: 14px; color: #8b7355; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #d4c5b0; background: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #8b7355; transition: background 0.2s; } .icon-btn:hover { background: #f0e8dc; } .info-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 16px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); } .progress { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: #5d4e37; } .cat-icon { font-size: 24px; } .errors { display: flex; gap: 4px; font-size: 22px; } .heart { transition: opacity 0.3s; } .heart.lost { opacity: 0.2; } .rules-bar { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; justify-content: center; } .rule { background: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #8b7355; box-shadow: 0 1px 4px rgba(0,0,0,0.05); white-space: nowrap; } .grid-container { display: grid; gap: 2px; background: #d4c5b0; padding: 3px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); width: 100%; max-width: 500px; aspect-ratio: 1; } .cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: transform 0.1s, filter 0.1s; position: relative; border-radius: 3px; } .cell:hover { filter: brightness(1.1); } .cell:active { transform: scale(0.95); } .cell .cat { font-size: 22px; pointer-events: none; animation: catPlace 0.3s ease; } .cell .x-mark { font-size: 18px; color: rgba(255,255,255,0.85); font-weight: 700; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,0.3); } .cell.error-flash { animation: errorFlash 0.5s ease; } @keyframes catPlace { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.3); } 100% { transform: scale(1); opacity: 1; } } @keyframes errorFlash { 0%, 100% { filter: brightness(1); } 25% { filter: brightness(2) hue-rotate(320deg); } 50% { filter: brightness(0.8); } 75% { filter: brightness(1.5) hue-rotate(320deg); } } .controls { display: flex; gap: 20px; align-items: center; } .tool-btn { width: 50px; height: 50px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform 0.2s, box-shadow 0.2s; position: relative; } .tool-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .tool-btn:active { transform: translateY(0); } .hint-count { position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .hint-count.zero { background: #d4af37; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .size-selector { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); } .size-selector label { font-size: 14px; color: #8b7355; font-weight: 500; } .size-selector select { padding: 6px 10px; border-radius: 8px; border: 2px solid #d4c5b0; font-size: 14px; color: #5d4e37; background: #fff; cursor: pointer; } .size-selector button { padding: 8px 18px; border-radius: 8px; border: none; background: #5d4e37; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .size-selector button:hover { background: #7a6750; } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal-overlay.hidden { display: none; } .modal { background: #fff; border-radius: 16px; padding: 30px 40px; text-align: center; max-width: 350px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.2); } .modal h2 { font-size: 24px; color: #5d4e37; margin-bottom: 12px; } .modal p { font-size: 16px; color: #8b7355; margin-bottom: 20px; } .modal-btn { padding: 10px 30px; border-radius: 10px; border: none; background: #5d4e37; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .modal-btn:hover { background: #7a6750; } /* Premium Modal Styles */ .premium-modal { background: linear-gradient(135deg, #fff 0%, #f8f4ff 100%); border: 3px solid #d4af37; box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3); } .premium-icon { font-size: 60px; margin-bottom: 10px; } .premium-text { font-size: 14px; color: #666; font-style: italic; margin: 10px 0; } .premium-timer { font-size: 16px; color: #5d4e37; margin: 15px 0; font-weight: 600; } .timer-value { font-size: 24px; color: #e74c3c; font-weight: 700; } .premium-btn { background: #d4af37; transition: background 0.3s, opacity 0.3s; } .premium-btn:hover:not(:disabled) { background: #b8941f; } .premium-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; } /* Name Input Modal Styles */ .name-modal { background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%); border: 3px solid #4a90d9; box-shadow: 0 8px 32px rgba(74, 144, 217, 0.3); } .name-input { width: 100%; padding: 12px 16px; border: 2px solid #d4c5b0; border-radius: 10px; font-size: 18px; text-align: center; margin: 15px 0; outline: none; transition: border-color 0.2s; } .name-input:focus { border-color: #4a90d9; } .name-modal h2 { color: #4a90d9; margin-bottom: 10px; }