| 1 | * { |
| 2 | margin: 0; |
| 3 | padding: 0; |
| 4 | box-sizing: border-box; |
| 5 | } |
| 6 | |
| 7 | body { |
| 8 | font-family: 'Arial', sans-serif; |
| 9 | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 10 | min-height: 100vh; |
| 11 | color: #333; |
| 12 | } |
| 13 | |
| 14 | #app { |
| 15 | min-height: 100vh; |
| 16 | display: flex; |
| 17 | align-items: center; |
| 18 | justify-content: center; |
| 19 | } |
| 20 | |
| 21 | .screen { |
| 22 | width: 100%; |
| 23 | min-height: 100vh; |
| 24 | display: flex; |
| 25 | align-items: center; |
| 26 | justify-content: center; |
| 27 | } |
| 28 | |
| 29 | .screen.hidden { |
| 30 | display: none; |
| 31 | } |
| 32 | |
| 33 | /* Auth Screen */ |
| 34 | .auth-container { |
| 35 | background: white; |
| 36 | padding: 40px; |
| 37 | border-radius: 10px; |
| 38 | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 39 | max-width: 400px; |
| 40 | width: 100%; |
| 41 | } |
| 42 | |
| 43 | .auth-container h1 { |
| 44 | text-align: center; |
| 45 | color: #667eea; |
| 46 | margin-bottom: 10px; |
| 47 | font-size: 2.5em; |
| 48 | } |
| 49 | |
| 50 | .auth-container p { |
| 51 | text-align: center; |
| 52 | color: #666; |
| 53 | margin-bottom: 30px; |
| 54 | } |
| 55 | |
| 56 | .tabs { |
| 57 | display: flex; |
| 58 | margin-bottom: 20px; |
| 59 | border-bottom: 2px solid #eee; |
| 60 | } |
| 61 | |
| 62 | .tab-btn { |
| 63 | flex: 1; |
| 64 | padding: 10px; |
| 65 | background: none; |
| 66 | border: none; |
| 67 | cursor: pointer; |
| 68 | font-size: 1em; |
| 69 | color: #999; |
| 70 | border-bottom: 3px solid transparent; |
| 71 | transition: all 0.3s; |
| 72 | } |
| 73 | |
| 74 | .tab-btn.active { |
| 75 | color: #667eea; |
| 76 | border-bottom-color: #667eea; |
| 77 | } |
| 78 | |
| 79 | .tab-btn:hover { |
| 80 | color: #667eea; |
| 81 | } |
| 82 | |
| 83 | .tab-content { |
| 84 | display: none; |
| 85 | } |
| 86 | |
| 87 | .tab-content.active { |
| 88 | display: block; |
| 89 | } |
| 90 | |
| 91 | .tab-content form { |
| 92 | display: flex; |
| 93 | flex-direction: column; |
| 94 | gap: 15px; |
| 95 | } |
| 96 | |
| 97 | input { |
| 98 | padding: 12px; |
| 99 | border: 1px solid #ddd; |
| 100 | border-radius: 5px; |
| 101 | font-size: 1em; |
| 102 | transition: border-color 0.3s; |
| 103 | } |
| 104 | |
| 105 | input:focus { |
| 106 | outline: none; |
| 107 | border-color: #667eea; |
| 108 | box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); |
| 109 | } |
| 110 | |
| 111 | button { |
| 112 | padding: 12px; |
| 113 | border: none; |
| 114 | border-radius: 5px; |
| 115 | font-size: 1em; |
| 116 | cursor: pointer; |
| 117 | transition: all 0.3s; |
| 118 | font-weight: bold; |
| 119 | } |
| 120 | |
| 121 | .primary { |
| 122 | background: #667eea; |
| 123 | color: white; |
| 124 | } |
| 125 | |
| 126 | .primary:hover { |
| 127 | background: #5568d3; |
| 128 | transform: translateY(-2px); |
| 129 | box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); |
| 130 | } |
| 131 | |
| 132 | .secondary { |
| 133 | background: #f0f0f0; |
| 134 | color: #333; |
| 135 | } |
| 136 | |
| 137 | .secondary:hover { |
| 138 | background: #e0e0e0; |
| 139 | } |
| 140 | |
| 141 | .error-message { |
| 142 | color: #e74c3c; |
| 143 | text-align: center; |
| 144 | margin-top: 15px; |
| 145 | display: none; |
| 146 | } |
| 147 | |
| 148 | .error-message.show { |
| 149 | display: block; |
| 150 | } |
| 151 | |
| 152 | /* Main Menu Screen */ |
| 153 | .main-menu { |
| 154 | background: white; |
| 155 | padding: 40px; |
| 156 | border-radius: 10px; |
| 157 | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 158 | max-width: 800px; |
| 159 | width: 100%; |
| 160 | } |
| 161 | |
| 162 | .main-menu h1 { |
| 163 | text-align: center; |
| 164 | color: #667eea; |
| 165 | margin-bottom: 20px; |
| 166 | } |
| 167 | |
| 168 | .user-info { |
| 169 | text-align: right; |
| 170 | margin-bottom: 30px; |
| 171 | padding-bottom: 20px; |
| 172 | border-bottom: 1px solid #eee; |
| 173 | } |
| 174 | |
| 175 | .user-info p { |
| 176 | margin-bottom: 10px; |
| 177 | color: #666; |
| 178 | } |
| 179 | |
| 180 | .saves-section h2 { |
| 181 | color: #333; |
| 182 | margin-bottom: 20px; |
| 183 | } |
| 184 | |
| 185 | .saves-grid { |
| 186 | display: grid; |
| 187 | grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| 188 | gap: 15px; |
| 189 | margin-bottom: 20px; |
| 190 | } |
| 191 | |
| 192 | .save-card { |
| 193 | background: #f9f9f9; |
| 194 | border: 2px solid #ddd; |
| 195 | border-radius: 5px; |
| 196 | padding: 15px; |
| 197 | cursor: pointer; |
| 198 | transition: all 0.3s; |
| 199 | } |
| 200 | |
| 201 | .save-card:hover { |
| 202 | border-color: #667eea; |
| 203 | box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2); |
| 204 | transform: translateY(-2px); |
| 205 | } |
| 206 | |
| 207 | .save-card h3 { |
| 208 | margin-bottom: 10px; |
| 209 | color: #667eea; |
| 210 | } |
| 211 | |
| 212 | .save-card p { |
| 213 | font-size: 0.9em; |
| 214 | color: #666; |
| 215 | margin-bottom: 5px; |
| 216 | } |
| 217 | |
| 218 | /* Game Setup Screen */ |
| 219 | .game-setup { |
| 220 | background: white; |
| 221 | padding: 40px; |
| 222 | border-radius: 10px; |
| 223 | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 224 | max-width: 1000px; |
| 225 | width: 100%; |
| 226 | } |
| 227 | |
| 228 | .game-setup h2 { |
| 229 | color: #667eea; |
| 230 | margin-bottom: 30px; |
| 231 | } |
| 232 | |
| 233 | .setup-step { |
| 234 | display: block; |
| 235 | } |
| 236 | |
| 237 | .setup-step.hidden { |
| 238 | display: none; |
| 239 | } |
| 240 | |
| 241 | .setup-step p { |
| 242 | margin-bottom: 15px; |
| 243 | font-size: 1.1em; |
| 244 | color: #333; |
| 245 | } |
| 246 | |
| 247 | .setup-step input { |
| 248 | display: block; |
| 249 | width: 100%; |
| 250 | margin-bottom: 20px; |
| 251 | } |
| 252 | |
| 253 | .kobold-grid { |
| 254 | display: grid; |
| 255 | grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); |
| 256 | gap: 15px; |
| 257 | margin-bottom: 20px; |
| 258 | } |
| 259 | |
| 260 | .kobold-card { |
| 261 | background: #f9f9f9; |
| 262 | border: 2px solid #ddd; |
| 263 | border-radius: 5px; |
| 264 | padding: 15px; |
| 265 | text-align: center; |
| 266 | cursor: pointer; |
| 267 | transition: all 0.3s; |
| 268 | } |
| 269 | |
| 270 | .kobold-card:hover { |
| 271 | border-color: #667eea; |
| 272 | transform: translateY(-3px); |
| 273 | } |
| 274 | |
| 275 | .kobold-card.selected { |
| 276 | border-color: #27ae60; |
| 277 | background: #eafef0; |
| 278 | } |
| 279 | |
| 280 | .kobold-sprite { |
| 281 | width: 80px; |
| 282 | height: 80px; |
| 283 | background: #ddd; |
| 284 | margin: 0 auto 10px; |
| 285 | border-radius: 3px; |
| 286 | } |
| 287 | |
| 288 | .kobold-stats { |
| 289 | font-size: 0.8em; |
| 290 | color: #666; |
| 291 | text-align: left; |
| 292 | line-height: 1.4; |
| 293 | } |
| 294 | |
| 295 | .counter { |
| 296 | text-align: center; |
| 297 | font-size: 1.1em; |
| 298 | color: #666; |
| 299 | margin-bottom: 20px; |
| 300 | } |
| 301 | |
| 302 | .full-width { |
| 303 | width: 100%; |
| 304 | } |
| 305 | |
| 306 | /* Game Screen */ |
| 307 | .game-container { |
| 308 | background: white; |
| 309 | width: 95%; |
| 310 | max-width: 1400px; |
| 311 | height: 90vh; |
| 312 | border-radius: 10px; |
| 313 | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 314 | display: flex; |
| 315 | flex-direction: column; |
| 316 | } |
| 317 | |
| 318 | .game-header { |
| 319 | padding: 20px; |
| 320 | border-bottom: 2px solid #eee; |
| 321 | display: flex; |
| 322 | justify-content: space-between; |
| 323 | align-items: center; |
| 324 | } |
| 325 | |
| 326 | .game-header h1 { |
| 327 | color: #667eea; |
| 328 | } |
| 329 | |
| 330 | .game-time { |
| 331 | font-size: 1.1em; |
| 332 | color: #666; |
| 333 | } |
| 334 | |
| 335 | .game-time span { |
| 336 | margin-left: 20px; |
| 337 | } |
| 338 | |
| 339 | .game-main { |
| 340 | display: flex; |
| 341 | flex: 1; |
| 342 | overflow: hidden; |
| 343 | } |
| 344 | |
| 345 | .game-left { |
| 346 | flex: 1; |
| 347 | display: flex; |
| 348 | flex-direction: column; |
| 349 | border-right: 2px solid #eee; |
| 350 | overflow-y: auto; |
| 351 | } |
| 352 | |
| 353 | .environment { |
| 354 | flex: 1; |
| 355 | background: linear-gradient(to bottom, #87ceeb, #90ee90); |
| 356 | position: relative; |
| 357 | overflow-y: auto; |
| 358 | } |
| 359 | |
| 360 | .placements { |
| 361 | display: flex; |
| 362 | flex-wrap: wrap; |
| 363 | gap: 10px; |
| 364 | padding: 10px; |
| 365 | background: #f9f9f9; |
| 366 | } |
| 367 | |
| 368 | .placement { |
| 369 | width: 60px; |
| 370 | height: 60px; |
| 371 | background: #ddd; |
| 372 | border-radius: 5px; |
| 373 | cursor: pointer; |
| 374 | display: flex; |
| 375 | align-items: center; |
| 376 | justify-content: center; |
| 377 | color: #666; |
| 378 | font-size: 0.8em; |
| 379 | text-align: center; |
| 380 | padding: 5px; |
| 381 | transition: all 0.3s; |
| 382 | } |
| 383 | |
| 384 | .placement:hover { |
| 385 | background: #ccc; |
| 386 | transform: scale(1.05); |
| 387 | } |
| 388 | |
| 389 | .game-right { |
| 390 | width: 300px; |
| 391 | display: flex; |
| 392 | flex-direction: column; |
| 393 | overflow-y: auto; |
| 394 | padding: 15px; |
| 395 | gap: 15px; |
| 396 | } |
| 397 | |
| 398 | .panel { |
| 399 | background: #f9f9f9; |
| 400 | border: 1px solid #ddd; |
| 401 | border-radius: 5px; |
| 402 | padding: 15px; |
| 403 | overflow-y: auto; |
| 404 | } |
| 405 | |
| 406 | .panel h3 { |
| 407 | color: #667eea; |
| 408 | margin-bottom: 10px; |
| 409 | } |
| 410 | |
| 411 | .events-list, |
| 412 | .tribe-list { |
| 413 | display: flex; |
| 414 | flex-direction: column; |
| 415 | gap: 10px; |
| 416 | } |
| 417 | |
| 418 | .event-item, |
| 419 | .tribe-item { |
| 420 | background: white; |
| 421 | border: 1px solid #ddd; |
| 422 | border-radius: 3px; |
| 423 | padding: 10px; |
| 424 | cursor: pointer; |
| 425 | transition: all 0.3s; |
| 426 | } |
| 427 | |
| 428 | .event-item:hover, |
| 429 | .tribe-item:hover { |
| 430 | background: #f0f0f0; |
| 431 | border-color: #667eea; |
| 432 | } |
| 433 | |
| 434 | .tribe-item { |
| 435 | display: flex; |
| 436 | justify-content: space-between; |
| 437 | align-items: center; |
| 438 | } |
| 439 | |
| 440 | .tribe-item-name { |
| 441 | font-weight: bold; |
| 442 | color: #333; |
| 443 | } |
| 444 | |
| 445 | .tribe-item-age { |
| 446 | font-size: 0.8em; |
| 447 | color: #999; |
| 448 | } |
| 449 | |
| 450 | /* Modal */ |
| 451 | .modal { |
| 452 | position: fixed; |
| 453 | top: 0; |
| 454 | left: 0; |
| 455 | right: 0; |
| 456 | bottom: 0; |
| 457 | background: rgba(0, 0, 0, 0.7); |
| 458 | display: flex; |
| 459 | align-items: center; |
| 460 | justify-content: center; |
| 461 | z-index: 1000; |
| 462 | } |
| 463 | |
| 464 | .modal.hidden { |
| 465 | display: none; |
| 466 | } |
| 467 | |
| 468 | .modal-content { |
| 469 | background: white; |
| 470 | border-radius: 10px; |
| 471 | padding: 40px; |
| 472 | max-width: 600px; |
| 473 | width: 90%; |
| 474 | max-height: 80vh; |
| 475 | overflow-y: auto; |
| 476 | position: relative; |
| 477 | } |
| 478 | |
| 479 | .modal-close { |
| 480 | position: absolute; |
| 481 | top: 10px; |
| 482 | right: 10px; |
| 483 | background: none; |
| 484 | border: none; |
| 485 | font-size: 2em; |
| 486 | cursor: pointer; |
| 487 | color: #999; |
| 488 | } |
| 489 | |
| 490 | .modal-close:hover { |
| 491 | color: #333; |
| 492 | } |
| 493 | |
| 494 | .event-story { |
| 495 | font-size: 1.1em; |
| 496 | line-height: 1.6; |
| 497 | color: #333; |
| 498 | margin-bottom: 20px; |
| 499 | white-space: pre-wrap; |
| 500 | } |
| 501 | |
| 502 | /* Config Screen */ |
| 503 | .config-container { |
| 504 | background: white; |
| 505 | padding: 40px; |
| 506 | border-radius: 10px; |
| 507 | box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); |
| 508 | max-width: 600px; |
| 509 | width: 100%; |
| 510 | } |
| 511 | |
| 512 | .config-container h2 { |
| 513 | color: #667eea; |
| 514 | margin-bottom: 30px; |
| 515 | } |
| 516 | |
| 517 | .config-section { |
| 518 | margin-bottom: 30px; |
| 519 | } |
| 520 | |
| 521 | .config-section h3 { |
| 522 | color: #333; |
| 523 | margin-bottom: 15px; |
| 524 | } |
| 525 | |
| 526 | .config-list { |
| 527 | display: flex; |
| 528 | flex-direction: column; |
| 529 | gap: 10px; |
| 530 | } |
| 531 | |
| 532 | .config-item { |
| 533 | display: flex; |
| 534 | align-items: center; |
| 535 | gap: 10px; |
| 536 | padding: 10px; |
| 537 | background: #f9f9f9; |
| 538 | border-radius: 5px; |
| 539 | } |
| 540 | |
| 541 | .config-item input[type="checkbox"] { |
| 542 | width: 18px; |
| 543 | height: 18px; |
| 544 | cursor: pointer; |
| 545 | } |
| 546 | |
| 547 | .config-item label { |
| 548 | flex: 1; |
| 549 | cursor: pointer; |
| 550 | } |
| 551 | |
| 552 | /* Responsive */ |
| 553 | @media (max-width: 768px) { |
| 554 | .game-main { |
| 555 | flex-direction: column; |
| 556 | } |
| 557 | |
| 558 | .game-right { |
| 559 | width: 100%; |
| 560 | border-right: none; |
| 561 | border-top: 2px solid #eee; |
| 562 | } |
| 563 | |
| 564 | .kobold-grid { |
| 565 | grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); |
| 566 | } |
| 567 | } |