@import "https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap";*{box-sizing:border-box;margin:0;padding:0}html{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;scrollbar-color:#334155 #0f172a}body{color:#e2e8f0;background-color:#0f172a;min-height:100vh;font-family:Ubuntu Mono,monospace}.container{max-width:1200px;margin:0 auto;padding:20px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:16px}.min-h-screen{min-height:100vh;padding:0 20px}.w-full{width:100%}.max-w-md{max-width:28rem}h1{color:#fff;letter-spacing:-.025em;margin-bottom:40px;font-size:2.25rem;font-weight:700}h2{margin-bottom:20px;font-size:1.875rem;font-weight:700}input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{color:#e5e7eb;background-color:#1e293b;border:1px solid #334155;border-radius:6px;width:100%;padding:12px 16px;font-family:Ubuntu Mono,monospace;font-size:1rem}input:focus,select:focus,textarea:focus{border-color:#60a5fa;outline:none}textarea{resize:vertical;min-height:200px}button,a.button{color:#0f172a;cursor:pointer;background-color:#60a5fa;border:none;border-radius:6px;padding:12px 16px;font-family:Ubuntu Mono,monospace;font-size:1rem;font-weight:700;transition:background-color .2s}button:hover,a.button:hover{background-color:#93c5fd}button.secondary,a.button.secondary{color:#e2e8f0;background-color:#334155}button.secondary:hover,a.button.secondary:hover{background-color:#475569}button.danger{color:#fff;background-color:#ef4444}button.danger:hover{background-color:#dc2626}button.success{color:#fff;background-color:#10b981}button.success:hover{background-color:#059669}a{color:#60a5fa;text-decoration:none}a:hover{text-decoration:underline}.card{background-color:#1e293b;border:1px solid #334155;border-radius:8px;margin-bottom:20px;padding:20px}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;border-bottom:1px solid #334155;padding:12px}.table th{background-color:#1e293b;font-weight:700}.table tr:hover{background-color:#1e293b}.badge{border-radius:4px;padding:4px 8px;font-size:.875rem;font-weight:700;display:inline-block}.badge.pending{color:#0f172a;background-color:#fbbf24}.badge.active{color:#fff;background-color:#10b981}.badge.ended{color:#fff;background-color:#6b7280}.badge.ac{color:#fff;background-color:#10b981}.badge.wa{color:#fff;background-color:#ef4444}.badge.tle{color:#0f172a;background-color:#eab308}.badge.re{color:#fff;background-color:#f97316}.badge.error{color:#fff;background-color:#6b7280}.nav{background-color:#1e293b;border-bottom:1px solid #334155;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;padding:16px 20px;display:flex}.nav strong{white-space:nowrap}.nav-user{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 20px;min-width:0;max-width:100%;display:flex}.nav-username{color:#94a3b8;overflow-wrap:anywhere;min-width:0;max-width:100%}.nav-user>a,.nav-user>form{white-space:nowrap;flex-shrink:0}.nav form{display:inline}.nav button.link-btn{color:#60a5fa;font:inherit;cursor:pointer;background:0 0;border:none;padding:0;font-family:inherit}.nav button.link-btn:hover{background:0 0;text-decoration:underline}form{flex-direction:column;gap:16px;display:flex}label{margin-bottom:4px;font-weight:700}.error{color:#fca5a5;background-color:#3f1d1d;border:1px solid #ef4444;border-radius:6px;margin-bottom:16px;padding:12px 16px}.notice{color:#fde68a;background-color:#1e293b;border:1px solid #fbbf24;border-radius:6px;margin-bottom:16px;padding:12px 16px}.success-notice{color:#6ee7b7;background-color:#052e1f;border:1px solid #10b981;border-radius:6px;margin-bottom:16px;padding:12px 16px}.muted{color:#94a3b8}.btn-row{flex-flow:wrap;align-items:center;gap:12px;display:flex}.btn-row form{display:inline}.page-links{margin-bottom:16px}.field{flex-direction:column;gap:4px;display:flex}textarea.mono,textarea.code-area{min-height:140px;font-family:Ubuntu Mono,monospace}textarea.code-area.tall{min-height:260px}.help-box{color:#cbd5e1;background-color:#1e293b;border:1px solid #334155;border-radius:8px;margin-bottom:20px;padding:16px 20px;line-height:1.6}.help-box code{background-color:#0f172a;border-radius:4px;padding:2px 6px;font-family:Ubuntu Mono,monospace}.problem-choice-table td,.problem-choice-table th{padding:8px 12px}.problem-choice-table input[type=number]{width:60px;padding:6px 8px}.click-row{cursor:pointer}.code-row pre{background-color:#0f172a;border-radius:4px;margin:0;padding:12px;font-family:Ubuntu Mono,monospace;font-size:.875rem;overflow-x:auto}.badge.se{color:#fff;background-color:#a855f7}.badge.best{color:#fbbf24;background-color:#0000;border:1px solid #fbbf24;margin-left:4px}.player-link{color:inherit}.player-link:hover{color:#60a5fa}.player-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin:16px 0 24px;display:flex}.player-name{word-break:break-all;margin:0}.stat-row{flex-wrap:wrap;gap:12px;display:flex}.stat{background-color:#1e293b;border:1px solid #334155;border-radius:8px;flex-direction:column;align-items:flex-end;min-width:96px;padding:10px 16px;display:flex}.stat-value{font-size:1.5rem;font-weight:700}.stat-value.bytes{color:#fbbf24}.stat-label{color:#94a3b8;font-size:.875rem}.problem-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:20px;display:grid}.problem-card{color:#e2e8f0;background-color:#1e293b;border:1px solid #334155;border-radius:8px;flex-direction:column;gap:4px;padding:12px 14px;transition:border-color .15s,transform .15s;display:flex}.problem-card:hover{border-color:#60a5fa;text-decoration:none;transform:translateY(-1px)}.problem-card.selected{border-color:#60a5fa;box-shadow:inset 0 0 0 1px #60a5fa}.problem-card.unsolved{opacity:.65}.pc-label{color:#60a5fa;font-weight:700;display:inline-block}.pc-title{color:#cbd5e1;white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;overflow:hidden}.pc-score{margin-top:4px;font-size:1.25rem;font-weight:700}.pc-score small{color:#94a3b8;font-size:.75rem;font-weight:400}.medal-diamond .pc-score,.medal-diamond .solution-bytes{color:#60a5fa}.medal-gold .pc-score,.medal-gold .solution-bytes{color:#fbbf24}.pc-attempts{font-size:.75rem}.filter-bar{background-color:#172554;border:1px solid #1e40af;border-radius:8px;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:20px;padding:10px 16px;display:flex}.section-title{margin:28px 0 12px;font-size:1.25rem}.solution{border-left:3px solid #334155}.solution.medal-diamond{border-left-color:#60a5fa}.solution.medal-gold{border-left-color:#fbbf24}.solution-head,.solution-foot{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.solution-title{color:#e2e8f0;font-weight:700}.solution-bytes{white-space:nowrap;font-weight:700}.code-block{color:#f1f5f9;background-color:#0f172a;border:1px solid #334155;border-radius:6px;margin:12px 0;padding:14px 16px;font-family:Ubuntu Mono,monospace;font-size:1rem;line-height:1.5;overflow-x:auto}.records{flex-wrap:wrap;align-items:center;gap:6px;display:flex}button.chip{color:#cbd5e1;background-color:#0f172a;border:1px solid #334155;border-radius:999px;padding:2px 10px;font-size:.875rem;font-weight:400}button.chip:hover{background-color:#1e293b;border-color:#60a5fa}button.chip.active{color:#fbbf24;border-color:#fbbf24;font-weight:700}button.copy-btn{padding:6px 14px;font-size:.875rem}.score-link{border-radius:4px;padding:2px 6px;display:inline-block}.score-link:hover{background-color:#334155;text-decoration:none}.table-scroll{overflow-x:auto}.code-editor.ace_editor,.code-editor .ace_gutter{background-color:#0f172a}.code-editor .ace_gutter{color:#475569;border-right:1px solid #1e293b}.code-editor .ace_active-line,.code-editor .ace_gutter-active-line{background-color:#1e293b}.statement-edit-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.statement-edit-layout>.field{min-width:0}.problem-editor{border:1px solid #334155;border-radius:6px;height:400px}.statement-preview{overflow-wrap:anywhere;height:400px;margin-bottom:0;overflow:auto}.hljs{color:#c5c8c6}.hljs-comment,.hljs-quote{color:#969896}.hljs-keyword,.hljs-selector-tag{color:#b294bb}.hljs-string,.hljs-regexp,.hljs-addition{color:#b5bd68}.hljs-number,.hljs-literal,.hljs-attr,.hljs-variable{color:#de935f}.hljs-title,.hljs-section,.hljs-selector-id{color:#81a2be}.hljs-built_in,.hljs-type,.hljs-class{color:#f0c674}.hljs-meta,.hljs-symbol,.hljs-bullet,.hljs-link{color:#8abeb7}.hljs-name,.hljs-tag,.hljs-deletion{color:#c66}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.problem-statement{line-height:1.75}.problem-statement ul,.problem-statement ol{margin:16px 0;padding-left:24px}.problem-statement li{margin:8px 0}.problem-statement p{margin:12px 0}.problem-statement code{background-color:#0f172a;border-radius:4px;padding:2px 6px;font-family:Ubuntu Mono,monospace;font-size:.9em}.problem-statement pre{background-color:#0f172a;border-radius:6px;margin:16px 0;padding:12px;overflow-x:auto}.problem-statement pre code{background-color:#0000;padding:0}.problem-statement h2,.problem-statement h3{margin-top:20px;margin-bottom:12px}.problem-layout{flex-wrap:wrap;gap:20px;padding:20px;display:flex}.problem-layout>*{flex:400px;min-width:0}@media (width<=640px){.statement-edit-layout{grid-template-columns:1fr}.container,.problem-layout{padding:16px}.table th,.table td{padding:8px}h1{margin-bottom:24px;font-size:1.75rem}}a.button{text-decoration:none;display:inline-block}.section-actions{margin:20px 0}.editor-controls{justify-content:space-between;margin:4px 0 12px}.judge-output{white-space:pre-wrap;overflow-wrap:anywhere;background:#1e293b;border-radius:8px;max-height:300px;padding:16px;overflow:auto}.countdown{color:#fbbf24;font-weight:700}.verdict-ac{color:#10b981}.verdict-wa{color:#ef4444}.verdict-tle{color:#eab308}.verdict-re{color:#f97316}.verdict-se{color:#a855f7}.problem-statement img{max-width:100%}.login-container{max-width:28rem;margin:10vh auto;padding:20px}.login-container form{gap:12px;margin-top:20px;display:grid}.ace_editor textarea{min-height:0}.leaderboard-total{color:#fbbf24;font-weight:600}.score-gold{color:#fbbf24;font-weight:700}.score-diamond{color:#60a5fa;font-weight:700}.score-none{color:#94a3b8}.score-missing{color:#374151}.leaderboard th a,.score-link{color:inherit}button.code-toggle{color:#60a5fa;font-size:inherit;white-space:nowrap;background:0 0;padding:0;font-weight:400}button.code-toggle:hover{text-decoration:underline}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}
