PokemonRPG / static /css /style.css
gundarapuashwin's picture
Update space
7a6bd93
Raw History Blame Contribute Delete
40.7 kB
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; } body { background: #1a1a2e; color: #fff; min-height: 100vh; } /* ── Navbar ── */ .navbar { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: #0d0d1a; border-bottom: 2px solid #f5c518; display: flex; align-items: center; padding: 0 16px; gap: 12px; z-index: 1000; } .nav-logo { font-size: 1rem; font-weight: 700; color: #f5c518; white-space: nowrap; } .nav-links { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; } .nav-links::-webkit-scrollbar { display: none; } .nav-item { padding: 6px 10px; border-radius: 8px; color: #aaa; text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap; transition: background 0.2s, color 0.2s; } .nav-item:hover, .nav-item.active { background: rgba(245,197,24,0.15); color: #f5c518; } .nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; } .nav-right .currency, #currency-display { color: #f5c518; font-weight: 700; font-size: 0.88rem; white-space: nowrap; } .nav-daily { padding: 5px 10px; background: rgba(245,197,24,0.15); border: 1px solid #f5c518; border-radius: 8px; color: #f5c518; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s; } .nav-daily:hover { background: rgba(245,197,24,0.35); } .nav-profile { position: relative; cursor: pointer; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.82rem; white-space: nowrap; user-select: none; } .nav-profile:hover { background: rgba(255,255,255,0.08); } .profile-menu { position: absolute; top: calc(100% + 6px); right: 0; background: #0d0d1a; border: 1px solid #f5c518; border-radius: 10px; min-width: 160px; z-index: 2000; overflow: hidden; } .profile-menu-item { padding: 11px 16px; font-size: 0.88rem; color: #fff; cursor: pointer; transition: background 0.15s; } .profile-menu-item:hover { background: rgba(245,197,24,0.15); } .profile-menu-item.logout { color: #ff6b6b; } .profile-menu-item.logout:hover { background: rgba(255,107,107,0.15); } /* ── Auth Pages ── */ .auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); } .auth-container { width: 100%; max-width: 400px; padding: 20px; } .auth-logo { text-align: center; margin-bottom: 28px; } .auth-logo h1 { font-size: 2.2rem; color: #f5c518; letter-spacing: 2px; } .auth-logo p { color: #aaa; margin-top: 6px; font-size: 0.9rem; } .auth-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px; } .auth-box h2 { font-size: 1.4rem; margin-bottom: 20px; text-align: center; } .auth-box input { width: 100%; padding: 12px 14px; margin-bottom: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: #fff; font-size: 0.95rem; outline: none; transition: border 0.2s; } .auth-box input:focus { border-color: #f5c518; } .auth-box input::placeholder { color: #666; } .auth-box button { width: 100%; padding: 13px; background: #f5c518; color: #1a1a2e; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 4px; } .auth-box button:hover { background: #ffd700; } .switch-auth { text-align: center; margin-top: 16px; color: #777; font-size: 0.88rem; } .switch-auth a { color: #f5c518; text-decoration: none; font-weight: 600; } /* ── Messages ── */ .error-msg { background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.3); color: #ff6b6b; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.88rem; text-align: center; } .success-msg { background: rgba(80,255,120,0.12); border: 1px solid rgba(80,255,120,0.3); color: #6bffaa; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.88rem; text-align: center; } /* ── Map ── */ .map-page { background: #1a1a2e; overflow: hidden; height: 100vh; } <<<<<<< HEAD .map-container { position: relative; width: 100vw; height: 100vh; background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px), #2d5a27; overflow: hidden; } .player { position: absolute; font-size: 1.8rem; transition: left 0.08s, top 0.08s; z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); ======= .map-viewport { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; overflow: hidden; background: #1a1a2e; } .map-world { position: absolute; top: 0; left: 0; transition: transform 0.08s linear; } #map-canvas { display: block; image-rendering: pixelated; } .player-char { position: absolute; font-size: 1.6rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; z-index: 20; transition: left 0.08s, top 0.08s; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); pointer-events: none; } .map-name-badge { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 5px 14px; font-size: 0.82rem; font-weight: 600; z-index: 200; pointer-events: none; color: #fff; >>>>>>> 6248e46 (Initial commit) } /* ── D-Pad ── */ .dpad { position: fixed; bottom: 30px; right: 30px; display: grid; grid-template-areas: ". up ." "left . right" ". down ."; grid-template-columns: 52px 52px 52px; grid-template-rows: 52px 52px 52px; gap: 4px; z-index: 500; } .dpad-btn { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; color: #fff; font-size: 1.2rem; cursor: pointer; transition: background 0.1s; user-select: none; } .dpad-btn:active, .dpad-btn:focus { background: rgba(245,197,24,0.4); outline: none; } .dpad-btn.up { grid-area: up; } .dpad-btn.left { grid-area: left; } .dpad-btn.right { grid-area: right; } .dpad-btn.down { grid-area: down; } /* ── Encounter ── */ .encounter-popup { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: flex; justify-content: center; align-items: center; z-index: 600; } .encounter-box { background: #16213e; border: 2px solid #f5c518; border-radius: 20px; padding: 28px 24px; text-align: center; max-width: 320px; width: 90%; } .encounter-name { font-size: 1.15rem; font-weight: 700; margin: 8px 0 4px; } .encounter-types { color: #aaa; font-size: 0.82rem; text-transform: capitalize; margin-bottom: 6px; } .encounter-stats { font-size: 0.78rem; color: #777; margin-bottom: 16px; } .encounter-buttons { display: flex; flex-direction: column; gap: 8px; } .encounter-buttons button { padding: 11px; border: none; border-radius: 10px; font-size: 0.92rem; font-weight: 600; cursor: pointer; background: #f5c518; color: #1a1a2e; transition: background 0.2s; } .encounter-buttons button:hover { background: #ffd700; } /* ── Popups ── */ .popup { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 700; } .popup-box { background: #16213e; border: 2px solid #f5c518; border-radius: 20px; padding: 28px; text-align: center; max-width: 320px; width: 90%; } .popup-box h2 { margin-bottom: 10px; font-size: 1.3rem; } .popup-box p { color: #aaa; margin-bottom: 18px; font-size: 0.95rem; } .popup-box button { padding: 10px 22px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; margin: 5px; font-size: 0.92rem; } .popup-box button:hover { background: #ffd700; } /* ── Toast ── */ .toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: rgba(10,10,20,0.92); color: #fff; padding: 10px 22px; border-radius: 20px; font-size: 0.92rem; z-index: 800; border: 1px solid rgba(255,255,255,0.15); white-space: nowrap; } /* ── Inner Pages ── */ .inner-page { background: #1a1a2e; min-height: 100vh; color: #fff; } .page-content { padding: 72px 20px 20px; max-width: 1100px; margin: 0 auto; } .page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: #f5c518; } .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; } .search-input { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-size: 0.9rem; outline: none; min-width: 200px; } .search-input::placeholder { color: #666; } .search-input:focus { border-color: #f5c518; } .info-text { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; } /* ── Pokemon Cards ── */ .party-grid, .pokedex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; } .pokemon-card, .pokedex-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 12px; text-align: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s; } .pokemon-card:hover, .pokedex-card:hover { transform: translateY(-3px); border-color: #f5c518; } .pokemon-card.shiny { border-color: gold; background: rgba(255,215,0,0.08); } .pokemon-card img, .pokedex-card img { width: 80px; height: 80px; image-rendering: pixelated; } .card-id { color: #666; font-size: 0.78rem; } .card-name { font-weight: 600; font-size: 0.92rem; margin-top: 6px; } .card-level { color: #f5c518; font-size: 0.82rem; margin-top: 3px; } .card-types { color: #aaa; font-size: 0.78rem; margin-top: 3px; text-transform: capitalize; } .card-stats { font-size: 0.75rem; color: #666; margin-top: 6px; } .card-actions { display: flex; gap: 6px; margin-top: 10px; justify-content: center; } .card-actions button { padding: 5px 10px; border: none; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; background: #f5c518; color: #1a1a2e; } .release-btn { background: rgba(255,100,100,0.2) !important; color: #ff6b6b !important; border: 1px solid #ff6b6b !important; } .train-btn { margin-top: 10px; padding: 8px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; width: 100%; font-size: 0.82rem; } /* ── Shop ── */ .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } .shop-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px 14px; text-align: center; transition: border-color 0.2s; } .shop-item:hover { border-color: #f5c518; } .shop-icon { font-size: 2.4rem; margin-bottom: 8px; } .shop-name { font-weight: 600; font-size: 0.95rem; } .shop-desc { color: #aaa; font-size: 0.8rem; margin: 5px 0; } .shop-price { color: #f5c518; font-weight: 700; margin-bottom: 10px; font-size: 0.88rem; } .shop-item button { padding: 7px 18px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.88rem; } /* ── Battles ── */ .battle-section { margin-bottom: 28px; } .battle-section h2 { font-size: 1.05rem; color: #f5c518; margin-bottom: 14px; } .battle-form { display: flex; gap: 10px; flex-wrap: wrap; } .battle-form input { flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: #fff; font-size: 0.95rem; outline: none; min-width: 180px; } .battle-form input:focus { border-color: #f5c518; } .battle-form button { padding: 11px 20px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; } .battle-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 8px; } .battle-id { font-size: 0.82rem; color: #888; flex: 1; } .battle-status { font-size: 0.88rem; } .battle-item button { margin-left: auto; padding: 6px 14px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.82rem; } /* ── Profile ── */ .profile-card { display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; margin-bottom: 24px; } .profile-avatar { font-size: 4rem; } .profile-username { font-size: 1.4rem; font-weight: 700; } .profile-currency { color: #f5c518; font-size: 1.1rem; margin-top: 6px; } .profile-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; } .stat-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; text-align: center; } .stat-value { font-size: 2rem; font-weight: 700; color: #f5c518; } .stat-label { font-size: 0.82rem; color: #aaa; margin-top: 6px; } .logout-btn { padding: 12px 28px; background: rgba(255,100,100,0.15); border: 1px solid #ff6b6b; border-radius: 10px; color: #ff6b6b; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; } .logout-btn:hover { background: rgba(255,100,100,0.3); } /* ── Utility ── */ .empty, .loading { text-align: center; color: #555; padding: 40px; grid-column: 1 / -1; font-size: 0.95rem; <<<<<<< HEAD } ======= } /* ── Starter ── */ .starter-container { max-width: 600px; margin: 0 auto; padding: 40px 20px; text-align: center; } .starter-title { font-size: 2rem; color: #f5c518; margin-bottom: 10px; } .starter-sub { color: #aaa; margin-bottom: 24px; } .starter-search-row input { width: 100%; padding: 14px 18px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 1rem; outline: none; transition: border 0.2s; } .starter-search-row input:focus { border-color: #f5c518; } .starter-search-row input::placeholder { color: #666; } .starter-result { margin-top: 24px; } .starter-card { background: rgba(255,255,255,0.06); border: 2px solid #f5c518; border-radius: 16px; padding: 24px; display: inline-block; min-width: 220px; } .starter-card img { width: 120px; height: 120px; image-rendering: pixelated; } .starter-name { font-size: 1.2rem; font-weight: 700; margin-top: 8px; } .starter-types { color: #aaa; font-size: 0.85rem; text-transform: capitalize; margin: 4px 0; } .starter-stats { font-size: 0.82rem; color: #777; margin-bottom: 16px; } .starter-card button { padding: 12px 24px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 1rem; transition: background 0.2s; } .starter-card button:hover { background: #ffd700; } .starter-suggestions { margin-top: 28px; color: #888; font-size: 0.9rem; } .suggestion-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; } .suggestion-row span { padding: 8px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; cursor: pointer; font-size: 0.88rem; transition: border-color 0.2s, background 0.2s; } .suggestion-row span:hover { border-color: #f5c518; background: rgba(245,197,24,0.1); } .hidden { display: none !important; } /* ── Battle Screen (Unite-style) ── */ .battle-screen { position: fixed; inset: 0; background: #0a0a1a; display: flex; align-items: center; justify-content: center; z-index: 900; } .battle-arena { position: relative; width: 100%; max-width: 900px; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; } .battle-side { display: flex; flex-direction: column; align-items: center; gap: 8px; } .enemy-side { position: absolute; top: 80px; right: 60px; } .player-side { position: absolute; bottom: 180px; left: 60px; } .battle-sprite { width: 120px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255,200,0,0.3)); } .enemy-sprite { transform: scaleX(-1); } .player-sprite { transform: scale(1.1); } .battle-hp-bar-wrap { min-width: 180px; } .battle-poke-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; } .battle-rarity { font-size: 0.78rem; font-weight: 700; margin-bottom: 4px; } .rarity-legendary { color: gold; } .rarity-rare { color: #a78bfa; } .hp-bar-bg { width: 180px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; } .hp-bar { height: 100%; border-radius: 5px; background: #4caf50; transition: width 0.3s, background 0.3s; } .hp-text { font-size: 0.75rem; color: #aaa; margin-top: 2px; } .shiny-badge { background: gold; color: #1a1a2e; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; margin-top: 4px; } /* ── Battle Log ── */ .battle-log { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 240px; max-height: 140px; overflow-y: auto; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px; font-size: 0.78rem; color: #ddd; line-height: 1.6; } .battle-log p { margin-bottom: 4px; } .battle-log::-webkit-scrollbar { width: 4px; } .battle-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; } /* ── Moves Radial ── */ .moves-radial { position: absolute; bottom: 40px; right: 40px; width: 200px; height: 200px; display: grid; grid-template-areas: ". top ." "left center right" ". bottom ."; grid-template-columns: 80px 40px 80px; grid-template-rows: 80px 40px 80px; align-items: center; justify-items: center; } .move-btn { width: 76px; height: 76px; border-radius: 50%; border: 2px solid #f5c518; background: rgba(10,10,30,0.9); color: #fff; font-size: 0.65rem; font-weight: 600; cursor: pointer; text-align: center; white-space: pre-line; line-height: 1.3; transition: background 0.15s, transform 0.1s; } .move-btn:hover:not(:disabled) { background: rgba(245,197,24,0.2); transform: scale(1.05); } .move-btn:disabled, .move-btn.on-cooldown { background: rgba(80,80,80,0.5); border-color: #555; cursor: not-allowed; } .m1 { grid-area: top; } .m2 { grid-area: left; } .m3 { grid-area: right; } .m4 { grid-area: bottom; } .move-center { grid-area: center; font-size: 0.6rem; color: #666; font-weight: 700; } /* ── Battle Actions ── */ .battle-actions { position: absolute; bottom: 40px; left: 40px; display: flex; flex-direction: column; gap: 10px; } .catch-btn { padding: 12px 20px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.95rem; animation: pulse 1s infinite; } @keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } } .flee-btn { padding: 10px 18px; background: rgba(255,100,100,0.15); border: 1px solid #ff6b6b; border-radius: 10px; color: #ff6b6b; font-size: 0.9rem; font-weight: 600; cursor: pointer; } /* ── Maps ── */ .maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } .map-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px 14px; text-align: center; transition: border-color 0.2s, transform 0.2s; } .map-card:hover { border-color: #f5c518; transform: translateY(-3px); } .active-map { border-color: #f5c518; background: rgba(245,197,24,0.08); } .map-emoji { font-size: 2.5rem; margin-bottom: 8px; } .map-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; } .map-spawns { color: #888; font-size: 0.78rem; margin-bottom: 12px; line-height: 1.5; } .map-current { color: #f5c518; font-weight: 700; font-size: 0.88rem; } .map-card button { padding: 8px 18px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.88rem; } /* ── Chat ── */ .chat-layout { display: flex; height: calc(100vh - 56px); margin-top: 56px; } .chat-sidebar { width: 260px; min-width: 260px; background: rgba(0,0,0,0.3); border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; } .chat-sidebar-header { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); } .chat-sidebar-header h2 { font-size: 1rem; margin-bottom: 10px; } .chat-sidebar-header input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.85rem; outline: none; } #players-list { flex: 1; overflow-y: auto; padding: 8px 0; } .player-list-item { padding: 12px 16px; cursor: pointer; font-size: 0.9rem; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); } .player-list-item:hover { background: rgba(255,255,255,0.06); } .active-chat { background: rgba(245,197,24,0.1) !important; border-left: 3px solid #f5c518; } .chat-main { flex: 1; display: flex; flex-direction: column; } .chat-header { padding: 14px 20px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; font-weight: 600; } .chat-header button { padding: 7px 14px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.82rem; } .chat-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; } .chat-bubble { max-width: 65%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; word-break: break-word; } .mine { align-self: flex-end; background: rgba(245,197,24,0.2); border: 1px solid rgba(245,197,24,0.3); border-radius: 14px 14px 4px 14px; } .theirs { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px 14px 14px 4px; } .chat-input-row { display: flex; gap: 10px; padding: 14px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.08); } .chat-input-row input { flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: #fff; font-size: 0.95rem; outline: none; } .chat-input-row input:focus { border-color: #f5c518; } .chat-input-row button { padding: 11px 20px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; } /* ── Gym Layout ── */ .gym-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; } .section-title { font-size: 1.1rem; color: #f5c518; margin-bottom: 14px; font-weight: 600; } .trainer-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 10px; transition: border-color 0.2s; } .trainer-card:hover { border-color: #f5c518; } .trainer-sprite { width: 56px; height: 56px; image-rendering: pixelated; } .trainer-info { flex: 1; } .trainer-name-text { font-weight: 600; font-size: 0.95rem; } .trainer-level { color: #aaa; font-size: 0.82rem; margin-top: 3px; } .trainer-reward { color: #f5c518; font-size: 0.82rem; margin-top: 2px; } .battle-trainer-btn { padding: 8px 14px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.85rem; white-space: nowrap; } .gym-party { position: sticky; top: 72px; } .party-select-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s; } .party-select-card:hover { border-color: #f5c518; } .party-select-card.selected { border-color: #f5c518; background: rgba(245,197,24,0.1); } .party-select-card img { width: 48px; height: 48px; image-rendering: pixelated; } .gym-battle-box { max-width: 340px; } .gym-battle-box h2 { font-size: 1.5rem; margin: 10px 0 8px; } .gym-battle-box p { color: #aaa; margin-bottom: 6px; } .map-name-badge { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 16px; font-size: 0.88rem; font-weight: 600; z-index: 50; pointer-events: none; } .battle-section { margin-bottom: 28px; } .battle-section h2 { font-size: 1.05rem; color: #f5c518; margin-bottom: 14px; } .battle-item.pending { border-color: rgba(245,197,24,0.3); background: rgba(245,197,24,0.05); } @media (max-width: 700px) { .gym-layout { grid-template-columns: 1fr; } .chat-sidebar { width: 200px; min-width: 200px; } .enemy-side { top: 60px; right: 20px; } .player-side { bottom: 200px; left: 20px; } .moves-radial { bottom: 20px; right: 10px; width: 170px; height: 170px; } .move-btn { width: 64px; height: 64px; font-size: 0.58rem; } } /* ── Gym extras ── */ .milestone-info { background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.2); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.85rem; } .milestone-title { font-weight: 700; color: #f5c518; margin-bottom: 8px; } .milestone-row { display: flex; justify-content: space-between; color: #aaa; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); } .milestone-row:last-child { border-bottom: none; } .milestone-row span:last-child { color: #f5c518; font-weight: 600; } .train-free-btn { width: 100%; padding: 12px; background: #f5c518; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.95rem; margin-top: 12px; transition: background 0.2s; } .train-free-btn:hover { background: #ffd700; } .train-free-btn:disabled { background: #888; cursor: not-allowed; } /* ── Obstacles ── */ .obstacle { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; pointer-events: none; user-select: none; z-index: 5; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); } /* ── Buildings ── */ .building { position: absolute; font-size: 2.4rem; cursor: pointer; z-index: 8; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 0 8px gold); transition: transform 0.2s; } .building:hover { transform: scale(1.1); } .building span { font-size: 0.7rem; font-weight: 700; color: #f5c518; background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 6px; margin-top: 2px; white-space: nowrap; } /* ── Leaderboard ── */ .leaderboard-container { max-width: 900px; margin: 80px auto 20px; /* pushes below fixed navbar */ padding: 20px; text-align: center; } .leaderboard-title { font-size: 1.6rem; color: #f5c518; margin-bottom: 20px; font-weight: 700; } .leaderboard-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; } .leaderboard-table th { background: rgba(245,197,24,0.1); color: #f5c518; font-size: 0.9rem; padding: 12px; text-transform: uppercase; } .leaderboard-table td { padding: 12px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); } .leaderboard-table tr:hover { background: rgba(255,255,255,0.05); } /* Top ranks highlight */ .rank-1 { color: gold; font-weight: 700; } .rank-2 { color: #c0c0c0; font-weight: 700; } .rank-3 { color: #cd7f32; font-weight: 700; } .back-btn { margin-top: 20px; padding: 10px 18px; background: #f5c518; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: #1a1a2e; font-size: 0.9rem; } .back-btn:hover { background: #ffd700; } .nav-links { overflow-x: auto; scrollbar-width: thin; } .nav-links::-webkit-scrollbar { height: 4px; } .nav-links::-webkit-scrollbar-thumb { background: rgba(245,197,24,0.4); border-radius: 4px; } .nav-links { display: flex; overflow-x: auto; } /* ── Trade UI (Blox Fruits style) ── */ .trade-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 1000; } .trade-modal-overlay.active { display: flex; } .trade-modal { background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); border: 3px solid #f5c518; border-radius: 20px; width: 90%; max-width: 800px; max-height: 90vh; overflow: hidden; box-shadow: 0 0 40px rgba(245,197,24,0.3); } .trade-modal-header { background: rgba(0,0,0,0.3); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid rgba(245,197,24,0.3); } .trade-modal-header h2 { color: #f5c518; font-size: 1.3rem; font-weight: 700; } .trade-modal-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; } .trade-modal-close:hover { background: rgba(255,100,100,0.3); } .trade-modal-body { padding: 24px; } .trade-parties { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; } .trade-party-col { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px; min-height: 200px; } .trade-party-col.yours { border-color: rgba(76,175,80,0.4); } .trade-party-col.theirs { border-color: rgba(244,67,54,0.4); } .trade-party-header { font-weight: 700; font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); } .yours .trade-party-header { color: #4caf50; } .theirs .trade-party-header { color: #f44336; } .trade-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; } .trade-item-slot { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; transition: all 0.2s; } .trade-item-slot:hover { border-color: #f5c518; transform: scale(1.05); } .trade-item-slot.selected { border-color: #4caf50; background: rgba(76,175,80,0.2); box-shadow: 0 0 10px rgba(76,175,80,0.4); } .trade-item-slot img { width: 48px; height: 48px; image-rendering: pixelated; margin-bottom: 6px; } .trade-item-slot .item-name { font-size: 0.72rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .trade-item-slot .item-level { font-size: 0.68rem; color: #f5c518; } .trade-item-slot .item-shiny { color: gold; font-size: 0.8rem; } .trade-empty-slot { background: rgba(255,255,255,0.03); border: 2px dashed rgba(255,255,255,0.15); border-radius: 10px; padding: 20px; text-align: center; color: #555; font-size: 0.8rem; } .trade-vs-divider { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; } .trade-vs-symbol { font-size: 2rem; font-weight: 900; color: #f5c518; text-shadow: 0 0 20px rgba(245,197,24,0.6); } .trade-vs-arrow { font-size: 1.5rem; color: #888; margin-top: 8px; } .trade-coins-row { margin-top: 16px; padding: 12px; background: rgba(245,197,24,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; } .trade-coins-row span { color: #f5c518; font-weight: 700; font-size: 1.1rem; } .trade-coins-row input { width: 100px; padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: #fff; font-size: 0.9rem; text-align: center; } .trade-modal-footer { padding: 16px 24px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: center; gap: 12px; } .trade-action-btn { padding: 12px 32px; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; } .trade-action-btn.accept { background: #4caf50; color: #fff; } .trade-action-btn.accept:hover { background: #66bb6a; box-shadow: 0 0 20px rgba(76,175,80,0.5); } .trade-action-btn.accept:disabled { background: #555; cursor: not-allowed; } .trade-action-btn.cancel { background: rgba(244,67,54,0.2); color: #f44336; border: 1px solid #f44336; } .trade-action-btn.cancel:hover { background: rgba(244,67,54,0.4); } .trade-status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-left: 10px; } .trade-status-badge.pending { background: rgba(245,197,24,0.2); color: #f5c518; } .trade-status-badge.accepted { background: rgba(76,175,80,0.2); color: #4caf50; } .trade-status-badge.rejected { background: rgba(244,67,54,0.2); color: #f44336; } /* Trade card in list */ .trade-card { background: linear-gradient(135deg, rgba(30,30,50,0.95) 0%, rgba(20,20,40,0.95) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; margin-bottom: 14px; transition: all 0.25s ease; position: relative; overflow: hidden; } .trade-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; } .trade-card.incoming::before { background: linear-gradient(90deg, #4caf50, #81c784); } .trade-card.sent::before { background: linear-gradient(90deg, #f44336, #e57373); } .trade-card:hover { border-color: rgba(245,197,24,0.5); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); } .trade-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .trade-from { font-size: 0.95rem; color: #ccc; } .trade-card-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 16px; } .trade-offer-col { text-align: center; } .trade-offer-label { font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; } .yours .trade-offer-label { color: #4caf50; } .theirs .trade-offer-label { color: #f44336; } .trade-poke-display { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 40px; } .trade-poke-mini { background: rgba(0,0,0,0.4); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1); } .trade-poke-mini img { width: 28px; height: 28px; image-rendering: pixelated; } .trade-poke-mini .shiny { color: gold; font-size: 0.7rem; } .trade-coins-display { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.9rem; color: #f5c518; font-weight: 600; padding: 6px 12px; background: rgba(245,197,24,0.1); border-radius: 20px; } .trade-vs-mini { color: #f5c518; font-weight: 900; font-size: 1.2rem; } .trade-card-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); } .trade-accept-btn, .trade-reject-btn, .trade-view-btn { padding: 8px 16px; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; } .trade-view-btn { background: rgba(245,197,24,0.15); color: #f5c518; border: 1px solid rgba(245,197,24,0.3); } .trade-view-btn:hover { background: rgba(245,197,24,0.3); } .trade-accept-btn { background: #4caf50; color: #fff; } .trade-accept-btn:hover { background: #66bb6a; box-shadow: 0 4px 15px rgba(76,175,80,0.4); } .trade-reject-btn { background: rgba(244,67,54,0.2); color: #f44336; } .trade-reject-btn:hover { background: rgba(244,67,54,0.4); } .trade-poke-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: all 0.2s; display: inline-block; margin: 4px; } .trade-poke-card:hover { border-color: #f5c518; } .trade-poke-card.selected { border-color: #4caf50; background: rgba(76,175,80,0.2); } @media (max-width: 600px) { .trade-parties { grid-template-columns: 1fr; } .trade-vs-divider { flex-direction: row; padding: 10px 0; } } >>>>>>> 6248e46 (Initial commit)
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', sans-serif;
}
body {
background: #1a1a2e;
color: #fff;
min-height: 100vh;
}
/* ── Navbar ── */
.navbar {
position: fixed;
top: 0; left: 0; right: 0;
height: 56px;
background: #0d0d1a;
border-bottom: 2px solid #f5c518;
display: flex;
align-items: center;
padding: 0 16px;
gap: 12px;
z-index: 1000;
}
.nav-logo {
font-size: 1rem;
font-weight: 700;
color: #f5c518;
white-space: nowrap;
}
.nav-links {
display: flex;
align-items: center;
gap: 2px;
flex: 1;
overflow-x: auto;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-item {
padding: 6px 10px;
border-radius: 8px;
color: #aaa;
text-decoration: none;
font-size: 0.82rem;
font-weight: 600;
white-space: nowrap;
transition: background 0.2s, color 0.2s;
}
.nav-item:hover, .nav-item.active {
background: rgba(245,197,24,0.15);
color: #f5c518;
}
.nav-right {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}
.nav-right .currency,
#currency-display {
color: #f5c518;
font-weight: 700;
font-size: 0.88rem;
white-space: nowrap;
}
.nav-daily {
padding: 5px 10px;
background: rgba(245,197,24,0.15);
border: 1px solid #f5c518;
border-radius: 8px;
color: #f5c518;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: background 0.2s;
}
.nav-daily:hover { background: rgba(245,197,24,0.35); }
.nav-profile {
position: relative;
cursor: pointer;
padding: 5px 10px;
border-radius: 8px;
border: 1px solid rgba(255,255,255,0.15);
color: #fff;
font-size: 0.82rem;
white-space: nowrap;
user-select: none;