:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Space Mono,monospace}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}body.focus-mode{background:#242424;transition:background .5s ease-in-out}body.break-mode{background:#1a1e30;transition:background .5s ease-in-out}.container{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;height:100vh}h1{font-size:3rem;font-weight:700}.container.break{background-color:#1a2b3c}.auth-nav{width:calc(100vw - 15px);display:flex;justify-content:flex-end;margin-top:15px}.auth-links{display:flex;gap:1rem;list-style:none;margin-right:30px}.auth-link{text-decoration:none;font-weight:500;padding:.5rem .75rem}.highlight-link{border:1px solid hsla(0,0%,100%,.685);border-radius:.375rem;padding:.5rem 1rem;transition:.5s}.highlight-link:hover{background:#0000001c;border:1px solid hsla(0,0%,100%,.486)}.highlight{color:#d891ef}.title{margin:0;display:inline-block}header{margin-bottom:35px}a,a:hover{color:inherit}.admin-controls{position:fixed;bottom:1rem;right:1rem;background-color:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1rem;z-index:1000;min-width:200px}.admin-controls-header{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#4b5563;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid #e5e7eb}.admin-controls-buttons{display:flex;flex-direction:column;gap:.5rem}.admin-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;border:none;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.admin-button:disabled{opacity:.5;cursor:not-allowed}.admin-button-primary{background-color:#3b82f6;color:#fff}.admin-button-primary:hover:not(:disabled){background-color:#2563eb}.admin-button-secondary{background-color:#6b7280;color:#fff}.admin-button-secondary:hover:not(:disabled){background-color:#4b5563}.progress-bar{position:relative;width:320px;height:8px;background:#fff3;border-radius:10px;overflow:hidden;margin:0 auto}.focus-fill{position:absolute;top:0;left:0;height:100%;background:#d891ef}.break-fill{position:absolute;top:0;height:100%;background:#39f}.card{width:320px;height:250px;font-size:80px;background-color:#ffffff1a;display:flex;justify-content:center;align-items:center;border-radius:8px;margin-bottom:20px;margin-left:auto;margin-right:auto}.dashboard-container{position:relative;display:inline-block}.content{transition:filter .3s ease}.blurred{filter:blur(10px);pointer-events:none}.overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.join-button{border-radius:12px;border:2px solid transparent;padding:.8em 1.6em;font-size:1.1em;font-weight:600;font-family:inherit;background:linear-gradient(135deg,#667eea,#764ba2);cursor:pointer;transition:all .3s ease;color:#fff;box-shadow:0 4px 15px #0003}.join-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0000004d;border-color:#ffffff40}.join-button:focus,.join-button:focus-visible{outline:4px auto -webkit-focus-ring-color}.join-button:active{transform:translateY(0);box-shadow:0 2px 10px #0003}.join-button.loading{position:relative;color:transparent}.join-button.loading:after{content:"";position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid transparent;border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.content{display:flex;flex-direction:column;gap:20px;opacity:1;transform:translateY(0);transition:all .5s ease}.content.fade-in{animation:fadeInUp .5s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.minesweeper-container{display:flex;gap:20px;align-items:stretch;justify-content:center;animation:slideIn .6s ease}@keyframes slideIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.minesweeper-game{flex-shrink:0}.chat-desktop-wrapper{flex-shrink:0;width:320px}@media (max-width: 1133px){.minesweeper-container{flex-direction:column;align-items:center}.chatbox{max-width:none}.minesweeper-game{width:100%;max-width:100%;display:flex;justify-content:center}}.chat{background:#000;color:#fff;width:320px;height:400px;border-radius:30px;padding:20px;display:flex;flex-direction:column}.chat ul{list-style:none;padding:0;margin:0;flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column}.chat li{background:#222;margin-bottom:4px;padding:6px 10px;border-radius:12px;word-wrap:break-word;max-width:90%;font-size:12px;text-align:left}.chat form{padding-top:10px;display:flex;gap:6px}.chat input[type=text]{flex:1 1 auto;padding:6px 10px;border:none;border-radius:8px;background:#333;color:#fff}.chat input[type=text]::placeholder{color:#999}.chat .send{background:#f0f8ff;border:none;border-radius:8px;padding:6px 12px;cursor:pointer;color:#000;font-weight:500}.chat .send:hover{background:#e6f3ff}.chat-toggle-button{position:fixed;bottom:20px;right:20px;width:60px;height:60px;border-radius:50%;background:#000;color:#fff;border:none;cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 4px 12px #0000004d;z-index:1000;transition:all .3s ease}.chat-toggle-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0006}.chat-notification-badge{position:absolute;top:-5px;right:-5px;background:#ef4444;color:#fff;border-radius:50%;width:20px;height:20px;font-size:10px;display:flex;align-items:center;justify-content:center;font-weight:700}.chat-drawer{position:fixed;bottom:0;left:0;right:0;background:#000;color:#fff;border-radius:20px 20px 0 0;transform:translateY(100%);transition:transform .3s ease;z-index:1001;max-height:70vh;height:70vh;display:none;flex-direction:column;will-change:transform}@supports (height: 100vh) and (height: 100dvh){.chat-drawer{max-height:calc(100dvh - env(keyboard-inset-height,0px));height:calc(100dvh - env(keyboard-inset-height,0px))}}.chat-drawer-open{transform:translateY(0)}.chat-drawer.keyboard-open{height:calc(100vh - env(keyboard-inset-height,0px));max-height:calc(100vh - env(keyboard-inset-height,0px))}.chat-drawer-header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 10px;border-bottom:1px solid #333;flex-shrink:0}.chat-drawer-header h3{margin:0;font-size:18px;font-weight:600}.chat-drawer-close{background:none;border:none;color:#fff;cursor:pointer;padding:5px;border-radius:5px;transition:background-color .2s ease}.chat-drawer-close:hover{background:#333}.chat-mobile{flex:1;display:flex;flex-direction:column;padding:15px;overflow:hidden;min-height:0;max-height:100%}.chat-mobile ul{list-style:none;padding:0 0 10px;margin:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;min-height:0}.chat-mobile li{background:#222;margin-bottom:4px;padding:8px 12px;border-radius:12px;word-wrap:break-word;max-width:90%;font-size:14px;text-align:left}.chat-mobile form{padding-top:15px;display:flex;gap:8px;flex-shrink:0;margin-top:auto;padding-bottom:env(safe-area-inset-bottom,0)}.chat-mobile input[type=text]{flex:1;padding:10px 12px;border:none;border-radius:8px;background:#333;color:#fff;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.chat-mobile input[type=text]:focus{outline:2px solid #45b7d1;outline-offset:-2px}.chat-mobile input[type=text]::placeholder{color:#999}.chat-mobile .send{background:#f0f8ff;border:none;border-radius:8px;padding:10px 16px;cursor:pointer;color:#000;font-weight:500;font-size:14px;flex-shrink:0}.chat-mobile .send:hover{background:#e6f3ff}.chat-desktop-wrapper,.chat-mobile-wrapper{display:none}@media (max-width: 1133px){.chat-desktop-wrapper{display:none}.chat-mobile-wrapper{display:block}.chat-toggle-button{display:flex}.chat-drawer{display:none}.chat-drawer.chat-drawer-open{display:flex}}@media (min-width: 1134px){.chat-desktop-wrapper{display:block}.chat-mobile-wrapper,.chat-toggle-button,.chat-drawer{display:none}.chat{display:flex}}@media screen and (max-width: 1133px){.chat-drawer{max-height:calc(100vh - 1px)}.chat-drawer:has(input:focus){height:100vh;max-height:100vh}.chat-drawer:has(input:focus) .chat-mobile{max-height:calc(100vh - 80px)}}@supports not selector(:has(*)){.chat-drawer.input-focused{height:100vh;max-height:100vh}.chat-drawer.input-focused .chat-mobile{max-height:calc(100vh - 80px)}}.minesweeper-cell{width:2rem;height:2rem;border:1px solid #9ca3af;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:all .2s ease;background-color:#d1d5db;cursor:pointer;padding:0;position:relative;overflow:hidden}.minesweeper-cell:not(.minesweeper-cell-revealed):not(.minesweeper-cell-flagged):before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transition:left .5s ease}.minesweeper-cell:not(.minesweeper-cell-revealed):not(.minesweeper-cell-flagged):hover:before{left:100%}.minesweeper-cell:hover:not(.minesweeper-cell-revealed):not(.minesweeper-cell-flagged):not(:disabled){background-color:#e5e7eb;transform:scale(1.05);box-shadow:0 2px 8px #00000026}.minesweeper-cell:disabled{cursor:not-allowed}.minesweeper-cell-revealed{background-color:#fff;cursor:default}.minesweeper-cell-mine{background-color:#fecaca}.minesweeper-number-1{color:#2563eb}.minesweeper-number-2{color:#16a34a}.minesweeper-number-3{color:#dc2626}.minesweeper-number-4{color:#9333ea}.minesweeper-number-5,.minesweeper-number-6,.minesweeper-number-7,.minesweeper-number-8{color:#1f2937}.minesweeper-icon{width:1rem;height:1rem}.minesweeper-flag-icon{color:#ef4444}.minesweeper-bomb-icon{color:#dc2626}.minesweeper-score-section{width:20rem}.minesweeper-leaderboard-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.minesweeper-trophy-icon{color:#eab308}.minesweeper-score-title{font-size:1.25rem;font-weight:700;color:#000;margin:0}.minesweeper-player-count{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#6b7280;margin-bottom:1rem}.minesweeper-your-stats{background-color:#eff6ff;border:1px solid #3b82f6;border-radius:.5rem;padding:.5rem .75rem;margin-bottom:1rem;display:flex;justify-content:space-between;min-height:2.5rem;align-items:center;margin-right:.5rem}.minesweeper-your-rank,.minesweeper-your-score{font-size:.875rem;color:#1f2937}.minesweeper-your-rank strong,.minesweeper-your-score strong{color:#3b82f6}.minesweeper-score-list{display:flex;flex-direction:column;gap:.5rem;height:12rem;overflow-y:auto;padding-right:.5rem}.minesweeper-score-list::-webkit-scrollbar{width:6px}.minesweeper-score-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.minesweeper-score-list::-webkit-scrollbar-thumb{background:#888;border-radius:3px}.minesweeper-score-list::-webkit-scrollbar-thumb:hover{background:#555}.minesweeper-player-card{padding:.5rem .75rem;border-radius:.5rem;border:1px solid #e5e7eb;background-color:#f9fafb;transition:all .2s;color:#6b7280;min-height:2.5rem;display:flex;align-items:center}.minesweeper-player-card:hover{background-color:#f3f4f6}.minesweeper-player-card-current{border-color:#3b82f6;background-color:#eff6ff}.minesweeper-player-card-current:hover{background-color:#dbeafe}.minesweeper-player-info{display:flex;justify-content:space-between;align-items:center;width:100%}.minesweeper-player-name{display:flex;align-items:center;gap:.5rem;font-weight:500}.minesweeper-rank{font-size:.75rem;color:#6b7280;font-weight:400}.minesweeper-player-dead{text-decoration:line-through;color:#6b7280}.minesweeper-crown{color:#eab308;font-size:1rem}.minesweeper-skull{color:#ef4444;font-size:.75rem}.minesweeper-score{font-weight:700;font-size:1rem}.minesweeper-instructions{margin-top:1.5rem;padding:1rem;background-color:#f3f4f6;border-radius:.5rem}.minesweeper-instructions-title{font-weight:600;margin-bottom:.5rem;font-size:.875rem;color:#4b5563}.minesweeper-instructions-list{font-size:.8125rem;color:#4b5563;list-style:none;padding:0;margin:0;text-align:left}.minesweeper-instructions-list li{margin-bottom:.25rem}.minesweeper-loading{display:flex;align-items:center;justify-content:center;height:100vh;font-size:1.25rem}@media (max-width: 1133px){.minesweeper-game-layout{flex-direction:column}.minesweeper-score-section{width:100%;margin-top:1.5rem}.minesweeper-cell{width:1.75rem;height:1.75rem;font-size:.625rem}}container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:#f3f4f6;padding:1rem}.minesweeper-game-wrapper{background-color:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1.5rem;max-width:72rem;width:100%;justify-content:center}.minesweeper-status-message{margin-bottom:1rem;padding:1.5rem;border-radius:.75rem;text-align:center;font-weight:700;color:#fff;font-size:1.1rem;animation:statusPulse 2s ease-in-out infinite;box-shadow:0 4px 15px #0003}@keyframes statusPulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}.minesweeper-status-won{background:linear-gradient(135deg,#10b981,#059669)}.minesweeper-status-lost{background:linear-gradient(135deg,#ef4444,#dc2626)}.minesweeper-spectating-message{margin-bottom:1rem;padding:1rem;background:linear-gradient(135deg,#fee2e2,#fecaca);border:2px solid #f87171;border-radius:.75rem;color:#991b1b;text-align:center;display:flex;align-items:center;justify-content:center;gap:.5rem;font-weight:600;animation:bounce 1s ease-in-out}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-5px)}60%{transform:translateY(-3px)}}.minesweeper-game-layout{display:flex;gap:2rem}.minesweeper-game-section{flex:1}.minesweeper-board-container{display:inline-block;background-color:#e5e7eb;padding:.5rem;border-radius:.25rem}.minesweeper-board-row{display:flex}.subtitle{font-size:1rem;opacity:.7;margin-bottom:35px;margin-top:0}.login-container{background-color:#161b22;border:1px solid #30363d;border-radius:6px;padding:32px;width:320px;box-shadow:0 4px 12px #0006;color:#c9d1d9}.login-container{background-color:#1c1f26;border:none;border-radius:12px;box-shadow:none;padding:32px;width:320px;margin-top:59px}.login-title{text-align:center;margin-bottom:24px;font-size:24px;line-height:1.4;letter-spacing:.5px}.login-error{background-color:#2d0000;color:#ff7b72;border:1px solid #da3633;padding:12px;border-radius:6px;margin-bottom:16px;font-size:14px}.login-field{margin-bottom:16px;text-align:left}.login-label{display:block;font-size:14px;margin-bottom:6px;padding-left:2px}.login-input{width:100%;padding:8px 12px;font-size:14px;border-radius:6px;border:1px solid #30363d;background-color:#0d1117;color:#c9d1d9;box-sizing:border-box}.login-button{width:100%;padding:10px;background-color:#2ea043;color:#fff;font-size:14px;border:none;border-radius:6px;cursor:pointer;transition:background-color .2s}.login-button:disabled{background-color:#2ea04399;cursor:not-allowed}.login-footer{margin-top:24px;text-align:center;font-size:14px;color:#8b949e}.login-footer a{color:#58a6ff;text-decoration:none}.field-error{height:36px;margin-top:4px;font-size:12px;line-height:18px;color:#ff7b72}.register-title{text-align:center;margin-bottom:32px;font-size:24px}
