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|
|
|
|
|
|
|
| 1 |
+
:root{
|
| 2 |
+
--bg:#0a0a0f;
|
| 3 |
+
--panel:#121223;
|
| 4 |
+
--panel-2:#0f1020;
|
| 5 |
+
--text:#e7e7ff;
|
| 6 |
+
--muted:#9aa0b3;
|
| 7 |
+
--accent:#7c4dff;
|
| 8 |
+
--accent-2:#00e5ff;
|
| 9 |
+
--good:#00e676;
|
| 10 |
+
--warn:#ffea00;
|
| 11 |
+
--bad:#ff5252;
|
| 12 |
+
--glass:rgba(255,255,255,0.06);
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
*{ box-sizing: border-box; }
|
| 16 |
+
html,body,#root{ height:100%; }
|
| 17 |
+
body{
|
| 18 |
+
margin:0; background: radial-gradient(1200px 600px at 20% -10%, rgba(124,77,255,.25), transparent 40%),
|
| 19 |
+
radial-gradient(1000px 700px at 120% 10%, rgba(0,229,255,.18), transparent 35%),
|
| 20 |
+
var(--bg);
|
| 21 |
+
color:var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.app-shell{
|
| 25 |
+
display:flex; min-height:100%; flex-direction:column;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.top-glow{
|
| 29 |
+
height:4px; width:100%;
|
| 30 |
+
background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--good) 100%);
|
| 31 |
+
filter: blur(2px);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.header{
|
| 35 |
+
padding:16px 20px; position:sticky; top:0; z-index:10;
|
| 36 |
+
background: linear-gradient(180deg, rgba(10,10,15,.9), rgba(10,10,15,.5) 80%, transparent);
|
| 37 |
+
backdrop-filter: blur(6px);
|
| 38 |
+
border-bottom:1px solid rgba(255,255,255,.06);
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.brand{
|
| 42 |
+
display:flex; align-items:center; gap:10px; font-weight:700;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.brand .logo{
|
| 46 |
+
width:28px; height:28px; border-radius:50%;
|
| 47 |
+
background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent));
|
| 48 |
+
box-shadow: 0 0 16px rgba(124,77,255,.6), 0 0 24px rgba(0,229,255,.4);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.container{
|
| 52 |
+
max-width:1100px; margin:0 auto; padding:20px;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.panel{
|
| 56 |
+
background: linear-gradient(180deg, var(--panel), var(--panel-2));
|
| 57 |
+
border:1px solid rgba(255,255,255,.08);
|
| 58 |
+
border-radius:14px; padding:16px;
|
| 59 |
+
box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.row{ display:flex; gap:16px; flex-wrap:wrap; }
|
| 63 |
+
.col{ flex:1 1 320px; }
|
| 64 |
+
|
| 65 |
+
.input, .select {
|
| 66 |
+
width:100%; padding:12px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
|
| 67 |
+
background: rgba(10,10,20,.7); color:var(--text); outline:none;
|
| 68 |
+
}
|
| 69 |
+
.input:focus, .select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
|
| 70 |
+
|
| 71 |
+
.btn{
|
| 72 |
+
display:inline-flex; align-items:center; justify-content:center;
|
| 73 |
+
gap:8px; padding:10px 14px; border-radius:10px; cursor:pointer;
|
| 74 |
+
border:1px solid rgba(255,255,255,.12); background: rgba(20,20,35,.7); color:var(--text);
|
| 75 |
+
transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
|
| 76 |
+
}
|
| 77 |
+
.btn:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,77,255,.25); }
|
| 78 |
+
.btn.primary{ background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; }
|
| 79 |
+
.btn.good{ background: linear-gradient(90deg, #00c853, #00e5ff); border-color: transparent; }
|
| 80 |
+
.btn.warn{ background: linear-gradient(90deg, #ff9800, #ff5252); border-color: transparent; }
|
| 81 |
+
|
| 82 |
+
.section-title{ font-weight:700; margin:0 0 10px; letter-spacing:.3px; }
|
| 83 |
+
|
| 84 |
+
.kbd{
|
| 85 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
| 86 |
+
padding:2px 6px; border-radius:6px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.player{
|
| 90 |
+
border-radius:14px; overflow:hidden; position:relative;
|
| 91 |
+
background: rgba(0,0,0,.25);
|
| 92 |
+
border:1px solid rgba(255,255,255,.08);
|
| 93 |
+
}
|
| 94 |
+
.player-header{
|
| 95 |
+
display:flex; align-items:center; justify-content:space-between; padding:12px 14px;
|
| 96 |
+
background: linear-gradient(90deg, rgba(124,77,255,.18), rgba(0,229,255,.18));
|
| 97 |
+
border-bottom:1px solid rgba(255,255,255,.08);
|
| 98 |
+
}
|
| 99 |
+
.player-body{ padding:12px; }
|
| 100 |
+
|
| 101 |
+
.badge{
|
| 102 |
+
display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; letter-spacing:.3px;
|
| 103 |
+
background: rgba(124,77,255,.18); border:1px solid rgba(124,77,255,.35);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.chat{
|
| 107 |
+
display:flex; flex-direction:column; gap:8px; height:280px;
|
| 108 |
+
}
|
| 109 |
+
.chat-log{
|
| 110 |
+
flex:1; overflow:auto; padding:10px; border-radius:10px; background: rgba(255,255,255,.04);
|
| 111 |
+
border:1px solid rgba(255,255,255,.08);
|
| 112 |
+
}
|
| 113 |
+
.chat-input{ display:flex; gap:8px; }
|
| 114 |
+
|
| 115 |
+
.member-list{
|
| 116 |
+
display:flex; flex-direction:column; gap:8px; max-height:280px; overflow:auto;
|
| 117 |
+
}
|
| 118 |
+
.member{
|
| 119 |
+
display:flex; align-items:center; gap:10px; padding:8px; border-radius:10px;
|
| 120 |
+
background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
|
| 121 |
+
}
|
| 122 |
+
.avatar{
|
| 123 |
+
width:28px; height:28px; border-radius:50%;
|
| 124 |
+
background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent));
|
| 125 |
+
box-shadow: 0 0 10px rgba(124,77,255,.4);
|
| 126 |
+
}
|
| 127 |
+
.tag{ font-size:12px; opacity:.8; padding:2px 6px; border-radius:999px; border:1px solid rgba(255,255,255,.12); }
|
| 128 |
+
|
| 129 |
+
.bar{
|
| 130 |
+
height:8px; background: rgba(255,255,255,.06); border-radius:999px; overflow:hidden; border:1px solid rgba(255,255,255,.08);
|
| 131 |
+
}
|
| 132 |
+
.bar > span{ display:block; height:100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
|
| 133 |
+
|
| 134 |
+
.toast-wrap{
|
| 135 |
+
position:fixed; right:16px; bottom:16px; display:flex; flex-direction:column; gap:10px; z-index:9999;
|
| 136 |
+
}
|
| 137 |
+
.toast{
|
| 138 |
+
background: rgba(15,15,30,.9); border:1px solid rgba(255,255,255,.12); color:var(--text);
|
| 139 |
+
padding:10px 12px; border-radius:10px; min-width:220px; max-width:320px; box-shadow: 0 8px 24px rgba(0,0,0,.45);
|
| 140 |
+
}
|
| 141 |
+
.toast.good{ border-color: rgba(0,230,118,.5); }
|
| 142 |
+
.toast.warn{ border-color: rgba(255,234,0,.5); }
|
| 143 |
+
.toast.bad{ border-color: rgba(255,82,82,.5); }
|
| 144 |
+
|
| 145 |
+
.modal-backdrop{
|
| 146 |
+
position:fixed; inset:0; background: rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index: 2000;
|
| 147 |
+
}
|
| 148 |
+
.modal{
|
| 149 |
+
width: min(520px, 92vw); background: var(--panel); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:16px;
|
| 150 |
+
box-shadow: 0 16px 60px rgba(0,0,0,.6);
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
.room-grid{
|
| 154 |
+
display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px;
|
| 155 |
+
}
|
| 156 |
+
.room-card{
|
| 157 |
+
border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:12px; background: rgba(255,255,255,.04);
|
| 158 |
+
}
|
| 159 |
+
.room-card .meta{ font-size:12px; color:var(--muted); }
|