@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--primary: #4f46e5;--primary-hover: #4338ca;--primary-light: #eef2ff;--bg: #f8fafc;--surface: #ffffff;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--danger: #ef4444;--danger-hover: #dc2626;--success: #10b981;--radius: 12px;--radius-sm: 8px;--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);--shadow-lg: 0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);--transition: .2s ease}[data-theme=dark]{--primary: #6366f1;--primary-hover: #818cf8;--primary-light: #1e1b4b;--bg: #0f172a;--surface: #1e293b;--text: #f1f5f9;--text-muted: #94a3b8;--border: #334155;--danger: #f87171;--danger-hover: #fca5a5;--success: #34d399;--shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);--shadow-md: 0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);--shadow-lg: 0 10px 15px rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.3)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}.nav{display:flex;align-items:center;gap:1rem;padding:.85rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow);position:sticky;top:0;z-index:100}.nav-logo{font-weight:700;font-size:1.15rem;color:var(--primary);letter-spacing:-.02em}.nav-actions{margin-left:auto;display:flex;align-items:center;gap:.75rem}.nav-link{text-decoration:none;color:var(--text-muted);font-weight:500;font-size:.9rem;padding:.4rem .85rem;border-radius:var(--radius-sm);transition:var(--transition)}.nav-link:hover{color:var(--primary);background:var(--primary-light)}.theme-toggle{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.35rem .5rem;font-size:1rem;cursor:pointer;transition:var(--transition);line-height:1}.theme-toggle:hover{border-color:var(--primary);background:var(--primary-light)}.main{max-width:680px;margin:0 auto;padding:2.5rem 1.5rem}.wide{max-width:780px}.auth-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:2.5rem;margin:1.5rem auto 0;max-width:420px}.auth-card h2{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.auth-card .subtitle{color:var(--text-muted);font-size:.9rem;margin-bottom:1.5rem}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}.field label{font-size:.85rem;font-weight:600;color:var(--text)}.field input,.field textarea{padding:.65rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.95rem;font-family:inherit;transition:var(--transition);background:var(--bg);color:var(--text)}.field input:focus,.field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.field textarea{resize:vertical;min-height:100px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1.25rem;border:none;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;font-family:inherit;cursor:pointer;transition:var(--transition);text-decoration:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover);box-shadow:var(--shadow)}.btn-danger{background:transparent;color:var(--danger);border:1.5px solid var(--border)}.btn-danger:hover{background:#ef44441a;border-color:var(--danger);color:var(--danger-hover)}.btn-sm{padding:.4rem .85rem;font-size:.82rem}.page-header{margin-bottom:1.75rem}.page-header h2{font-size:1.6rem;font-weight:700}.page-header p{color:var(--text-muted);font-size:.95rem;margin-top:.2rem}.post-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.75rem;box-shadow:var(--shadow)}.post-form h3{font-size:1.05rem;font-weight:600;margin-bottom:1rem}.section-title{font-size:1.05rem;font-weight:600;margin-bottom:.75rem}.post-list{display:flex;flex-direction:column;gap:.75rem}.post-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.4rem;box-shadow:var(--shadow);transition:var(--transition)}.post-card:hover{box-shadow:var(--shadow-md)}.post-card h4{font-size:1rem;font-weight:600;margin-bottom:.35rem}.post-card p{color:var(--text-muted);font-size:.92rem;line-height:1.55;white-space:pre-wrap}.post-card .meta{display:flex;align-items:center;justify-content:space-between;margin-top:.75rem;padding-top:.6rem;border-top:1px solid var(--border)}.post-card .timestamp{font-size:.78rem;color:var(--text-muted)}.error-msg{background:#ef44441a;color:var(--danger);border:1px solid #fecaca;border-radius:var(--radius-sm);padding:.6rem 1rem;font-size:.88rem;margin-bottom:1rem}.empty-state{text-align:center;color:var(--text-muted);padding:2rem;font-size:.92rem;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.auth-footer{margin-top:1.25rem;text-align:center;font-size:.88rem;color:var(--text-muted)}.auth-footer a{color:var(--primary);font-weight:500;text-decoration:none}.auth-footer a:hover{text-decoration:underline}.post-card-clickable{cursor:pointer}.post-card-clickable:hover{border-color:var(--primary)}.comments-section{margin-top:2rem}.comment-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin-bottom:1rem;box-shadow:var(--shadow)}.comment-form textarea{width:100%;padding:.6rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.92rem;font-family:inherit;resize:vertical;min-height:70px;background:var(--bg);color:var(--text);transition:var(--transition)}.comment-form textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.comment-form .btn{margin-top:.65rem}.comment-list{display:flex;flex-direction:column;gap:.65rem}.comment-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem 1.15rem;box-shadow:var(--shadow);transition:var(--transition)}.comment-card:hover{box-shadow:var(--shadow-md)}.comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem}.comment-author{font-size:.88rem;font-weight:600;color:var(--text)}.badge-own{font-size:.75rem;font-weight:500;color:var(--primary)}.comment-header .timestamp{font-size:.78rem;color:var(--text-muted)}.comment-body{font-size:.92rem;color:var(--text);line-height:1.55;white-space:pre-wrap}.comment-actions{display:flex;gap:.75rem;margin-top:.5rem;padding-top:.45rem;border-top:1px solid var(--border)}.btn-link{background:none;border:none;cursor:pointer;font-size:.8rem;font-family:inherit;font-weight:500;color:var(--primary);padding:.1rem 0;transition:var(--transition)}.btn-link:hover{text-decoration:underline}.btn-danger-link{color:var(--danger)}.btn-danger-link:hover{color:var(--danger-hover)}.comment-edit textarea{width:100%;padding:.55rem .8rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.9rem;font-family:inherit;resize:vertical;min-height:60px;background:var(--bg);color:var(--text)}.comment-edit textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.comment-edit-actions{display:flex;gap:.5rem;margin-top:.5rem}.devgate{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);padding:1.5rem}.devgate-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:3rem;text-align:center;max-width:400px;width:100%}.devgate-icon{font-size:3rem;margin-bottom:1rem}.devgate-card h2{font-size:1.5rem;font-weight:700;margin-bottom:.35rem}.devgate-hint{color:var(--text-muted);font-size:.9rem;margin-bottom:1.5rem}.devgate-form{display:flex;flex-direction:column;gap:.75rem}.devgate-input{padding:.7rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:1rem;font-family:inherit;background:var(--bg);color:var(--text);transition:var(--transition);text-align:center}.devgate-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.devgate-error{color:var(--danger);font-size:.85rem;font-weight:500}.devgate-btn{margin-top:.25rem}.nav-logo-link{text-decoration:none}.hub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}@media (max-width: 480px){.hub-grid{grid-template-columns:1fr}}.hub-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:2rem 1.5rem;text-decoration:none;color:var(--text);transition:var(--transition);min-height:160px}.hub-tile:hover{border-color:var(--primary);box-shadow:var(--shadow-lg);transform:translateY(-2px)}.hub-tile-icon{font-size:2.8rem;margin-bottom:.75rem}.hub-tile h3{font-size:1.1rem;font-weight:700;margin-bottom:.2rem}.hub-tile p{font-size:.85rem;color:var(--text-muted)}.hub-tile-arrow{position:absolute;bottom:.75rem;right:1rem;font-size:1.1rem;color:var(--primary);opacity:0;transition:var(--transition)}.hub-tile:hover .hub-tile-arrow{opacity:1}.hub-tile-disabled{opacity:.55;cursor:not-allowed}.hub-tile-disabled:hover{border-color:var(--border);box-shadow:var(--shadow);transform:none}.hub-tile-badge{position:absolute;top:.75rem;right:.75rem;font-size:.7rem;font-weight:600;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:99px;padding:.15rem .5rem}.tetris-layout{display:flex;gap:1.5rem;align-items:flex-start;justify-content:center;flex-wrap:wrap}.tetris-board-frame{position:relative;border:2px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;background:var(--bg);box-shadow:var(--shadow-lg)}.tetris-board{display:grid;grid-template-columns:repeat(10,1.25rem);grid-template-rows:repeat(20,1.25rem);gap:1px;padding:3px}.tsell{width:1.25rem;height:1.25rem;border-radius:2px;background:transparent;border:1px solid rgba(128,128,128,.1)}.tsell-I{background:#06b6d4;border-color:#0891b2;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-O{background:#eab308;border-color:#ca8a04;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-T{background:#a855f7;border-color:#9333ea;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-S{background:#22c55e;border-color:#16a34a;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-Z{background:#ef4444;border-color:#dc2626;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-J{background:#3b82f6;border-color:#2563eb;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-L{background:#f97316;border-color:#ea580c;box-shadow:inset 0 -2px 4px #0003,inset 0 2px 2px #fff3}.tsell-ghost-I{background:#06b6d433;border-color:#06b6d466}.tsell-ghost-O{background:#eab30833;border-color:#eab30866}.tsell-ghost-T{background:#a855f733;border-color:#a855f766}.tsell-ghost-S{background:#22c55e33;border-color:#22c55e66}.tsell-ghost-Z{background:#ef444433;border-color:#ef444466}.tsell-ghost-J{background:#3b82f633;border-color:#3b82f666}.tsell-ghost-L{background:#f9731633;border-color:#f9731666}.tetris-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);gap:.75rem;z-index:10}.tetris-overlay h3{color:#fff;font-size:1.5rem;font-weight:700}.tetris-overlay p{color:#fffc;font-size:1rem}.tetris-hud{display:flex;flex-direction:column;gap:.75rem;min-width:150px}.tetris-hud-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.75rem 1rem;box-shadow:var(--shadow)}.tetris-hud-label{font-size:.72rem;font-weight:700;color:var(--text-muted);letter-spacing:.08em;margin-bottom:.3rem}.tetris-hud-value{font-size:1.4rem;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}.tetris-next{display:flex;flex-direction:column;align-items:center;gap:1px;padding-top:.2rem}.tnext-row{display:flex;gap:1px}.tetris-next .tsell{width:1rem;height:1rem}.tetris-hud-actions{display:flex;gap:.5rem;flex-wrap:wrap}@media (max-width: 640px){.tetris-layout{flex-direction:column;align-items:center}.tetris-board{grid-template-columns:repeat(10,1rem);grid-template-rows:repeat(20,1rem)}.tsell{width:1rem;height:1rem}.tetris-hud{flex-direction:row;flex-wrap:wrap;justify-content:center;min-width:unset}.tetris-hud-box{padding:.5rem .75rem}.tetris-hud-value{font-size:1.1rem}}
