.app{max-width:700px;margin:0 auto;padding:1rem;font-family:system-ui,-apple-system,sans-serif;color:#e0e0e0}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}header h1{margin:0;font-size:1.8rem;background:linear-gradient(135deg,#6366f1,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent}header button{padding:.5rem 1rem;border:1px solid #6366f1;border-radius:8px;background:transparent;color:#6366f1;cursor:pointer;font-size:.9rem}header button:hover{background:#6366f1;color:#fff}.wallet-info{display:flex;align-items:center;gap:.75rem}.wallet-info span{font-family:monospace;font-size:.85rem;color:#a0a0a0}.grid{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;background:#1a1a2e;padding:3px;border-radius:12px}.square{aspect-ratio:1;border-radius:4px;cursor:pointer;transition:transform .15s,box-shadow .15s}.square.unowned{background-color:#2a2a4a}.square.owned{background-color:#3b82f6}.square:hover{transform:scale(1.15);box-shadow:0 0 12px #6366f180;z-index:1}.loading{text-align:center;padding:4rem;color:#888}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#1e1e2f;border:1px solid #333;border-radius:16px;padding:2rem;width:90%;max-width:400px;position:relative}.modal-close{position:absolute;top:.75rem;right:.75rem;background:none;border:none;color:#888;font-size:1.2rem;cursor:pointer}.modal h2{margin:0 0 1rem}.square-preview{width:80px;height:80px;border-radius:8px;margin:0 auto 1rem}.detail{margin-bottom:.5rem;font-size:.9rem}.detail a{color:#6366f1;word-break:break-all}.hint{color:#888;font-style:italic;font-size:.85rem}.buy-btn{display:block;width:100%;margin-top:1rem;padding:.75rem;background:linear-gradient(135deg,#6366f1,#a855f7);border:none;border-radius:10px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer}.buy-btn:hover{opacity:.9}.buy-btn:disabled{opacity:.5;cursor:not-allowed}.customize-form{margin-top:1rem;border-top:1px solid #333;padding-top:1rem}.customize-form h3{margin:0 0 .75rem;font-size:1rem}.customize-form label{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.85rem;color:#aaa}.fill-toggle{display:flex;gap:.5rem;margin-bottom:.75rem}.fill-toggle button{flex:1;padding:.4rem;background:#2a2a4a;border:1px solid #444;border-radius:6px;color:#aaa;font-size:.85rem;cursor:pointer}.fill-toggle button.active{background:#6366f1;border-color:#6366f1;color:#fff}.customize-form label.stack{flex-direction:column;align-items:stretch}.customize-form label.stack input[type=text]{width:100%}.customize-form .error{color:#f87171;font-size:.8rem}.customize-form input[type=text]{flex:1;padding:.4rem .6rem;background:#2a2a4a;border:1px solid #444;border-radius:6px;color:#e0e0e0;font-size:.85rem}.customize-form input[type=color]{width:36px;height:28px;border:none;background:none;cursor:pointer}.save-btn{display:block;width:100%;margin-top:.75rem;padding:.6rem;background:#22c55e;border:none;border-radius:8px;color:#fff;font-weight:600;cursor:pointer}.save-btn:disabled{opacity:.5;cursor:not-allowed}.wrong-chain{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;margin-bottom:1rem;background:#44200a;border:1px solid #f59e0b;border-radius:10px;color:#fbbf24;font-size:.9rem}.wrong-chain button{padding:.4rem .8rem;background:#f59e0b;border:none;border-radius:6px;color:#1a1a2e;font-weight:600;cursor:pointer;white-space:nowrap}*{box-sizing:border-box}body{margin:0;background-color:#0f0f1a;color:#e0e0e0;font-family:system-ui,-apple-system,sans-serif;min-height:100vh}a{color:#6366f1;text-decoration:none}a:hover{text-decoration:underline}
