* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; min-height: 100vh; overflow-x: hidden; }
.hidden { display: none !important; }
.screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.container { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 40px; max-width: 500px; width: 100%; text-align: center; }
h1 { font-size: 48px; margin-bottom: 10px; background: linear-gradient(45deg, #ff6b35, #f7931e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 24px; margin-bottom: 30px; color: #ccc; }
.character-preview { margin: 20px auto; background: #2a2a4a; border-radius: 10px; padding: 20px; display: inline-block; }
.form-group { margin: 20px 0; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #ff6b35; }
input[type="text"] { width: 100%; padding: 12px 16px; border: 2px solid #ff6b35; border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 16px; }
.gender-select, .bonus-select { display: flex; gap: 10px; flex-wrap: wrap; }
.gender-btn, .bonus-btn { flex: 1; padding: 12px 16px; border: 2px solid #555; border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; transition: all 0.3s; font-size: 14px; }
.gender-btn:hover, .bonus-btn:hover { border-color: #ff6b35; }
.gender-btn.active, .bonus-btn.active { border-color: #ff6b35; background: rgba(255, 107, 53, 0.3); }
.btn-primary { width: 100%; padding: 16px 24px; font-size: 18px; font-weight: 600; border: none; border-radius: 12px; background: linear-gradient(45deg, #ff6b35, #f7931e); color: #fff; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; margin-top: 20px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4); }
.btn-secondary { padding: 12px 24px; font-size: 14px; border: 2px solid #555; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; transition: all 0.3s; }
.btn-secondary:hover { border-color: #ff6b35; }

#game-screen { padding: 0; justify-content: flex-start; }
.top-bar { width: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.player-info { display: flex; align-items: center; gap: 10px; }
.player-stats { display: flex; flex-direction: column; }
#player-name-display { font-weight: 600; font-size: 16px; }
#player-job { font-size: 12px; color: #888; }
.money { display: flex; align-items: center; gap: 8px; background: rgba(255, 215, 0, 0.2); padding: 8px 16px; border-radius: 20px; font-size: 18px; font-weight: 600; color: #ffd700; }
.time { text-align: right; }
#day-display { font-weight: 600; }
#time-display { font-size: 12px; color: #888; }

.nav-tabs { display: flex; background: rgba(0, 0, 0, 0.3); overflow-x: auto; border-bottom: 2px solid #333; }
.tab-btn { flex: 1; padding: 15px 20px; border: none; background: transparent; color: #888; cursor: pointer; transition: all 0.3s; font-size: 14px; white-space: nowrap; }
.tab-btn:hover { background: rgba(255, 107, 53, 0.1); }
.tab-btn.active { background: rgba(255, 107, 53, 0.2); color: #ff6b35; border-bottom: 3px solid #ff6b35; }

.content-area { flex: 1; padding: 20px; overflow-y: auto; max-height: calc(100vh - 200px); }
.tab-content { display: none; }
.tab-content:not(.hidden) { display: block; }

.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; }
.location-card { background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.location-card:hover { background: rgba(255, 107, 53, 0.2); transform: translateY(-5px); }
.location-icon { font-size: 40px; margin-bottom: 10px; }
.location-name { font-weight: 600; margin-bottom: 5px; }
.location-desc { font-size: 12px; color: #888; }

.action-btn { padding: 12px 24px; border: none; border-radius: 8px; background: linear-gradient(45deg, #ff6b35, #f7931e); color: #fff; cursor: pointer; transition: all 0.3s; margin: 5px; }
.action-btn:hover { transform: translateY(-2px); }
.action-btn:disabled { background: #555; cursor: not-allowed; }

.bottom-bar { position: fixed; bottom: 0; width: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); padding: 10px 20px; }
.needs-display { display: flex; gap: 20px; justify-content: center; }
.need { display: flex; align-items: center; gap: 8px; }
.need-icon { font-size: 20px; }
.need-bar { width: 80px; height: 10px; background: rgba(255, 255, 255, 0.2); border-radius: 5px; overflow: hidden; }
.need-fill { height: 100%; background: linear-gradient(90deg, #ff6b35, #ffd700); border-radius: 5px; transition: width 0.3s; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #1a1a2e; border-radius: 20px; padding: 30px; max-width: 500px; width: 90%; text-align: center; }
.modal-content h3 { margin-bottom: 20px; color: #ff6b35; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

@media (max-width: 600px) {
    .container { padding: 20px; }
    h1 { font-size: 32px; }
    .nav-tabs { font-size: 12px; }
    .top-bar { flex-wrap: wrap; gap: 10px; }
}
