:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:#ffffffde;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);background-attachment:fixed;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}h1,h2,h3,h4,h5,h6{margin:0}button{font-family:inherit}.lotto-ball{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;font-size:16px;font-weight:700;color:#fff;margin:0 4px;text-shadow:1px 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 -3px 6px #0003,inset 0 3px 6px #ffffff4d,0 2px 4px #0003}.ball-yellow{background:linear-gradient(145deg,gold,#ffb300);color:#333;text-shadow:1px 1px 2px rgba(255,255,255,.5)}.ball-blue{background:linear-gradient(145deg,#4dabf7,#1971c2)}.ball-red{background:linear-gradient(145deg,#ff6b6b,#c92a2a)}.ball-gray{background:linear-gradient(145deg,#868e96,#495057)}.ball-green{background:linear-gradient(145deg,#51cf66,#2f9e44)}.lotto-game{display:flex;align-items:center;padding:12px 16px;background:#ffffff0d;border-radius:12px;margin-bottom:8px;transition:background .2s ease}.lotto-game:hover{background:#ffffff1a}.game-number{font-size:14px;font-weight:600;color:#adb5bd;min-width:30px;margin-right:12px}.balls-container{display:flex;gap:4px}@media(max-width:480px){.lotto-game{padding:10px 12px}.balls-container{gap:2px}}.lotto-recommender{max-width:600px;margin:0 auto;padding:20px}.header{text-align:center;margin-bottom:30px}.header h1{font-size:2.5rem;margin:0;background:linear-gradient(135deg,gold,#ff6b6b,#4dabf7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{color:#adb5bd;margin:8px 0 16px;font-size:1rem}.info-box{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:.85rem;color:#868e96}.info-box span{background:#ffffff0d;padding:6px 12px;border-radius:20px}.action-section{display:flex;flex-direction:column;align-items:center;margin-bottom:30px;gap:20px}.exclude-options{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;background:#ffffff0d;padding:15px 20px;border-radius:12px}.exclude-options label{display:flex;align-items:center;gap:6px;color:#e9ecef;cursor:pointer;font-size:.95rem;transition:color .2s}.exclude-options label:hover{color:#fff}.exclude-options input[type=radio]{accent-color:#4dabf7;cursor:pointer;width:16px;height:16px}.loading-message{display:flex;justify-content:center;align-items:center;padding:20px;margin-bottom:20px;background:#4dabf71a;border:1px solid rgba(77,171,247,.3);border-radius:12px;color:#4dabf7;font-weight:500}.loading-message p{margin:0;animation:pulse 1.5s ease-in-out infinite}.error-message{display:flex;justify-content:center;align-items:center;padding:20px;margin-bottom:20px;background:#ff47571a;border:1px solid rgba(255,71,87,.3);border-radius:12px;color:#ff4757;font-weight:500}.error-message p{margin:0}.generate-btn{padding:16px 40px;font-size:1.1rem;font-weight:600;border:none;border-radius:12px;background:linear-gradient(135deg,#4dabf7,#1971c2);color:#fff;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #4dabf74d}.generate-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #4dabf766}.generate-btn:active:not(:disabled){transform:translateY(0)}.generate-btn:disabled{opacity:.7;cursor:not-allowed}.generate-btn.generating{animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:.7}50%{opacity:1}}.games-section{margin-top:20px}.section-title{font-size:1.2rem;margin-bottom:16px;color:#f8f9fa;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1)}.games-list{max-height:700px;overflow-y:auto;padding-right:8px}.games-list::-webkit-scrollbar{width:6px}.games-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}.games-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.games-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.footer{margin-top:30px;text-align:center;font-size:.8rem;color:#868e96}.footer p{margin:4px 0}.history-section{margin-top:30px;border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden;background:#ffffff05}.history-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#ffffff0d;cursor:pointer;transition:background .2s ease}.history-header:hover{background:#ffffff14}.history-title{font-size:1rem;margin:0;color:#adb5bd;display:flex;align-items:center;gap:10px}.history-toggle-icon{font-size:.7rem;transition:transform .3s ease;display:inline-block}.history-toggle-icon.open{transform:rotate(90deg)}.clear-history-btn{padding:6px 14px;font-size:.8rem;font-weight:500;border:1px solid rgba(255,71,87,.5);border-radius:6px;background:transparent;color:#ff6b6b;cursor:pointer;transition:all .2s ease}.clear-history-btn:hover{background:#ff47571a;border-color:#ff6b6b}.history-content{padding:16px 20px;border-top:1px solid rgba(255,255,255,.05)}.history-description{font-size:.85rem;color:#868e96;margin:0 0 16px}.history-list{max-height:400px;overflow-y:auto;padding-right:8px}.history-list::-webkit-scrollbar{width:6px}.history-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}.history-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.history-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}@media(max-width:480px){.lotto-recommender{padding:16px}.header h1{font-size:2rem}.info-box{flex-direction:column;gap:8px}.generate-btn{padding:14px 30px;font-size:1rem}}.lotto-history{max-width:1200px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.lotto-history .header{text-align:center;margin-bottom:40px;padding:20px 0;border-bottom:2px solid #f0f0f0}.lotto-history .header h1{margin:0 0 10px;font-size:2.5rem;font-weight:700;color:#1a1a1a}.lotto-history .subtitle{margin:0;font-size:1rem;color:#666}.loading-message,.error-message,.empty-message{text-align:center;padding:40px 20px;border-radius:8px;margin:20px 0}.loading-message{background:#f5f5f5;color:#666;font-size:1.1rem}.loading-message p{margin:0;animation:pulse 1.5s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.error-message{background:#fff3cd;color:#856404;border:1px solid #ffeaa7}.error-message p{margin:0 0 15px;font-weight:500}.retry-btn{padding:8px 20px;background:#ffc107;border:none;border-radius:4px;color:#333;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-btn:hover{background:#ffb300;transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.empty-message{background:#f0f0f0;color:#999;font-size:1.1rem}.history-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding:15px 20px;background:#f9f9f9;border-radius:8px;flex-wrap:wrap;gap:15px}.data-count{font-size:1.1rem;font-weight:600;color:#333}.sort-btn{padding:10px 20px;background:#007bff;color:#fff;border:none;border-radius:4px;font-weight:600;cursor:pointer;transition:all .3s ease}.sort-btn:hover{background:#0056b3;transform:translateY(-2px);box-shadow:0 4px 8px #005bcc33}.history-list{display:grid;gap:15px;max-height:70vh;overflow-y:auto;padding-right:10px}.history-list::-webkit-scrollbar{width:8px}.history-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.history-list::-webkit-scrollbar-thumb{background:#667eea;border-radius:10px}.history-list::-webkit-scrollbar-thumb:hover{background:#764ba2}.history-item{display:flex;align-items:center;gap:20px;padding:15px 20px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;transition:all .3s ease;box-shadow:0 2px 4px #0000000d}.history-item:hover{border-color:#007bff;box-shadow:0 4px 12px #005bcc26;transform:translateY(-2px)}.round-info{flex-shrink:0;min-width:80px}.round-badge{display:inline-block;padding:8px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-weight:700;font-size:.95rem;text-align:center}.numbers-display{display:flex;gap:10px;flex-wrap:wrap;flex:1}.error-number{color:#dc3545;font-weight:600;padding:10px 15px;background:#f8d7da;border-radius:4px}@media(max-width:768px){.lotto-history{padding:15px}.lotto-history .header h1{font-size:1.8rem}.history-controls{flex-direction:column;align-items:stretch}.sort-btn{width:100%}.history-item{flex-direction:column;align-items:flex-start;gap:15px}.numbers-display{width:100%}.round-badge{width:100%;text-align:center}}.app{min-height:100vh;padding:0}.app-nav{display:flex;gap:0;background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 2px 8px #0000001a;position:sticky;top:0;z-index:100}.nav-btn{flex:1;padding:15px 20px;border:none;background:transparent;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;border-bottom:3px solid transparent;text-align:center}.nav-btn:hover{background:#ffffff1a}.nav-btn.active{background:#fff3;border-bottom-color:#fff}.app-content{padding:20px 0}
